# extendify/trunk/src/AutoLaunch/templates/registries.js

Extendify, version trunk. 36 lines.

- Page: https://pluginprobe.com/plugins/extendify/trunk/code/src/AutoLaunch/templates/registries.js
- Raw: https://pluginprobe.com/plugins/extendify/trunk/raw/src/AutoLaunch/templates/registries.js
- Modified: 2026-09-09T18:23:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/trunk/code/src/AutoLaunch/templates/registries.js#L10-L20`.

```javascript
import {
	CHOICE_PAGES,
	DESCRIPTION_PAGES,
	MODAL_PAGES,
	PROGRESS_PAGES,
} from './index';
import {
	choiceManifests,
	descriptionManifests,
	modalManifests,
	progressManifests,
} from './manifests';

/**
 * Every layout a screen can draw, paired with the manifest describing it.
 *
 * Nothing in the flow reads this: the flow draws one layout and asks `index`
 * for it. Importing it here would pull all 15 manifests into the bundle.
 */
const entriesFrom = (pages) => (manifest) => {
	const id = manifest.$id.split('/').pop();
	return { id, label: manifest.title, Page: pages[id] };
};

export const descriptionTemplates = () =>
	descriptionManifests().map(entriesFrom(DESCRIPTION_PAGES));

export const progressTemplates = () =>
	progressManifests().map(entriesFrom(PROGRESS_PAGES));

export const choiceTemplates = () =>
	choiceManifests().map(entriesFrom(CHOICE_PAGES));

export const modalTemplates = () =>
	modalManifests().map(entriesFrom(MODAL_PAGES));

```
