@ankhorage/templates 1.2.13 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +23 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/zora-nodes.d.ts +8 -13
- package/dist/internal/zora-nodes.d.ts.map +1 -1
- package/dist/internal/zora-nodes.js.map +1 -1
- package/dist/templates/shared/index.d.ts +1 -1
- package/dist/templates/shared/index.d.ts.map +1 -1
- package/dist/templates/shared/index.js +1 -1
- package/dist/templates/shared/index.js.map +1 -1
- package/dist/templates/shared/starter-screens.d.ts.map +1 -1
- package/dist/templates/shared/starter-screens.js +5 -5
- package/dist/templates/shared/starter-screens.js.map +1 -1
- package/dist/templates/shared/zora-node-helpers.d.ts +3 -4
- package/dist/templates/shared/zora-node-helpers.d.ts.map +1 -1
- package/dist/templates/shared/zora-node-helpers.js +3 -6
- package/dist/templates/shared/zora-node-helpers.js.map +1 -1
- package/dist/templates/starter/categories/fallback/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/fallback/screens.js +11 -12
- package/dist/templates/starter/categories/fallback/screens.js.map +1 -1
- package/dist/templates/starter/categories/food-drink/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/food-drink/screens.js +9 -8
- package/dist/templates/starter/categories/food-drink/screens.js.map +1 -1
- package/dist/templates/starter/categories/games/chess.content.d.ts +39 -0
- package/dist/templates/starter/categories/games/chess.content.d.ts.map +1 -0
- package/dist/templates/starter/categories/games/chess.content.js +49 -0
- package/dist/templates/starter/categories/games/chess.content.js.map +1 -0
- package/dist/templates/starter/categories/games/chess.routes.d.ts +8 -0
- package/dist/templates/starter/categories/games/chess.routes.d.ts.map +1 -0
- package/dist/templates/starter/categories/games/chess.routes.js +28 -0
- package/dist/templates/starter/categories/games/chess.routes.js.map +1 -0
- package/dist/templates/starter/categories/games/chess.screens.d.ts +5 -0
- package/dist/templates/starter/categories/games/chess.screens.d.ts.map +1 -0
- package/dist/templates/starter/categories/games/chess.screens.js +19 -0
- package/dist/templates/starter/categories/games/chess.screens.js.map +1 -0
- package/dist/templates/starter/categories/games/chess.template.d.ts +4 -0
- package/dist/templates/starter/categories/games/chess.template.d.ts.map +1 -0
- package/dist/templates/starter/categories/games/chess.template.js +17 -0
- package/dist/templates/starter/categories/games/chess.template.js.map +1 -0
- package/dist/templates/starter/categories/games/index.d.ts.map +1 -1
- package/dist/templates/starter/categories/games/index.js +7 -0
- package/dist/templates/starter/categories/games/index.js.map +1 -1
- package/dist/templates/starter/categories/health-fitness/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/health-fitness/screens.js +8 -7
- package/dist/templates/starter/categories/health-fitness/screens.js.map +1 -1
- package/dist/templates/starter/categories/music-audio/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/music-audio/screens.js +3 -3
- package/dist/templates/starter/categories/music-audio/screens.js.map +1 -1
- package/dist/templates/starter/categories/news-magazines/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/news-magazines/screens.js +3 -3
- package/dist/templates/starter/categories/news-magazines/screens.js.map +1 -1
- package/dist/templates/starter/categories/reference/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/reference/screens.js +3 -3
- package/dist/templates/starter/categories/reference/screens.js.map +1 -1
- package/dist/templates/starter/categories/shopping-commerce/screens.d.ts.map +1 -1
- package/dist/templates/starter/categories/shopping-commerce/screens.js +8 -7
- package/dist/templates/starter/categories/shopping-commerce/screens.js.map +1 -1
- package/dist/templates/starter/categories/social-community/screens.community.d.ts.map +1 -1
- package/dist/templates/starter/categories/social-community/screens.community.js +9 -8
- package/dist/templates/starter/categories/social-community/screens.community.js.map +1 -1
- package/dist/templates/starter/categories/social-community/screens.creator.d.ts.map +1 -1
- package/dist/templates/starter/categories/social-community/screens.creator.js +9 -8
- package/dist/templates/starter/categories/social-community/screens.creator.js.map +1 -1
- package/dist/templates/starter/index.d.ts +1 -1
- package/dist/templates/starter/index.d.ts.map +1 -1
- package/dist/templates/starter/index.js +1 -1
- package/dist/templates/starter/index.js.map +1 -1
- package/dist/templates/starter/starter.registry.d.ts +3 -1
- package/dist/templates/starter/starter.registry.d.ts.map +1 -1
- package/dist/templates/starter/starter.registry.js +19 -0
- package/dist/templates/starter/starter.registry.js.map +1 -1
- package/dist/templates/starter/starter.template.d.ts +3 -1
- package/dist/templates/starter/starter.template.d.ts.map +1 -1
- package/dist/templates/starter/starter.template.js +2 -1
- package/dist/templates/starter/starter.template.js.map +1 -1
- package/dist/templates/starter/starter.types.d.ts +6 -0
- package/dist/templates/starter/starter.types.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ankhorage/templates
|
|
2
2
|
|
|
3
|
+
## 1.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b22f678: Expose starter template listing APIs and add a games chess starter template.
|
|
8
|
+
|
|
9
|
+
## 1.2.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1cb8715: Generate ZORA `Screen` and `ScreenSection` manifest nodes instead of the removed `Page`, `PageHeader`, and `PageSection` nodes.
|
|
14
|
+
- 5ef4b15: Update ZORA
|
|
15
|
+
|
|
3
16
|
## 1.2.13
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -5,20 +5,39 @@ Reusable Ankhorage app templates, presets, and manifest generators.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
createCategoryAppManifest,
|
|
10
|
+
createStarterTemplate,
|
|
11
|
+
listStarterTemplatesByCategory,
|
|
12
|
+
} from '@ankhorage/templates';
|
|
9
13
|
|
|
10
14
|
const manifest = createCategoryAppManifest('social_community');
|
|
11
15
|
|
|
12
16
|
const creatorManifest = createStarterTemplate(seed, {
|
|
13
17
|
templateId: 'creator',
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
const gameTemplates = listStarterTemplatesByCategory('games');
|
|
15
21
|
```
|
|
16
22
|
|
|
17
23
|
## Category Starter Templates
|
|
18
24
|
|
|
19
25
|
Starter templates are category-aware. A category can expose one or more template variants.
|
|
20
26
|
For example, `social_community` provides a default community starter and a `creator`
|
|
21
|
-
starter.
|
|
27
|
+
starter, while `games` provides the default quest-loop starter and a `chess` starter.
|
|
28
|
+
|
|
29
|
+
Use `listStarterTemplatesByCategory(category)` when an editor or generator needs a selectable
|
|
30
|
+
list for one category. It returns summaries only, not factories:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
const templates = listStarterTemplatesByCategory('games');
|
|
34
|
+
// [
|
|
35
|
+
// { id: 'default', category: 'games', label: 'Quest loop', ... },
|
|
36
|
+
// { id: 'chess', category: 'games', label: 'Chess', ... },
|
|
37
|
+
// ]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Use `listStarterTemplateSummaries()` when a tool needs all registered starter choices.
|
|
22
41
|
|
|
23
42
|
Default resolution is deterministic:
|
|
24
43
|
|
|
@@ -77,8 +96,9 @@ The fallback template remains available and is used only for unknown runtime cat
|
|
|
77
96
|
|
|
78
97
|
- `fallback/default`: Home · Details · Settings (stack)
|
|
79
98
|
|
|
80
|
-
|
|
99
|
+
Additional variants:
|
|
81
100
|
|
|
101
|
+
- `games/chess`: Home · Chess board & settings
|
|
82
102
|
- `social_community/creator`: Studio · Posts · Audience · Insights · Settings
|
|
83
103
|
|
|
84
104
|
Only categories that exist in `AppCategory` are registered. New category literals should be added
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createCategoryAppManifest } from './generators/create-category-app';
|
|
2
2
|
export { CATEGORY_PRESETS, type CategoryPreset } from './presets/category-presets';
|
|
3
|
-
export { type CategoryStarterTemplateDefinition, createStarterTemplate, type StarterTemplateFactory, type StarterTemplateId, type StarterTemplateOptions, type StarterTemplateSelection, TEMPLATE_KINDS, type TemplateKind, type TemplateSeed, } from './templates/starter';
|
|
3
|
+
export { type CategoryStarterTemplateDefinition, createStarterTemplate, listStarterTemplates, listStarterTemplatesByCategory, listStarterTemplateSummaries, resolveStarterTemplate, type StarterTemplateFactory, type StarterTemplateId, type StarterTemplateOptions, type StarterTemplateSelection, type StarterTemplateSummary, TEMPLATE_KINDS, type TemplateKind, type TemplateSeed, } from './templates/starter';
|
|
4
4
|
export { APP_CATEGORIES, type AppCategory } from '@ankhorage/contracts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EACL,KAAK,iCAAiC,EACtC,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EACL,KAAK,iCAAiC,EACtC,qBAAqB,EACrB,oBAAoB,EACpB,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createCategoryAppManifest } from './generators/create-category-app';
|
|
2
2
|
export { CATEGORY_PRESETS } from './presets/category-presets';
|
|
3
|
-
export { createStarterTemplate, TEMPLATE_KINDS, } from './templates/starter';
|
|
3
|
+
export { createStarterTemplate, listStarterTemplates, listStarterTemplatesByCategory, listStarterTemplateSummaries, resolveStarterTemplate, TEMPLATE_KINDS, } from './templates/starter';
|
|
4
4
|
export { APP_CATEGORIES } from '@ankhorage/contracts';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAEL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAEL,qBAAqB,EACrB,oBAAoB,EACpB,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EAMtB,cAAc,GAGf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAoB,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import type { UiNode } from '@ankhorage/contracts';
|
|
2
2
|
import type { ButtonProps, CardProps, InputProps } from '@ankhorage/zora';
|
|
3
|
-
import type { AuthLayoutProps, PageHeaderProps, PageProps, PageSectionProps } from '@ankhorage/zora';
|
|
4
3
|
import type { EmptyStateProps, NoticeProps, PanelProps } from '@ankhorage/zora';
|
|
4
|
+
import type { ScreenProps, ScreenSectionProps } from '@ankhorage/zora';
|
|
5
5
|
import type { SectionHeaderProps, SettingsRowProps } from '@ankhorage/zora';
|
|
6
6
|
type SerializableProps<T extends object> = T & Record<string, unknown>;
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
title: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
eyebrow?: string;
|
|
12
|
-
};
|
|
13
|
-
type SerializablePageSectionProps = Omit<PageSectionProps, 'actions' | 'children' | 'title' | 'description'> & {
|
|
7
|
+
type SerializableScreenProps = Omit<ScreenProps, 'children' | 'footer'>;
|
|
8
|
+
type SerializableScreenSectionProps = Omit<ScreenSectionProps, 'actions' | 'children' | 'title' | 'description'> & {
|
|
14
9
|
title?: string;
|
|
15
10
|
description?: string;
|
|
16
11
|
};
|
|
@@ -26,12 +21,13 @@ type SerializableCardProps = Omit<CardProps, 'actions' | 'children' | 'descripti
|
|
|
26
21
|
eyebrow?: string;
|
|
27
22
|
footer?: string;
|
|
28
23
|
};
|
|
29
|
-
type SerializableAuthLayoutProps =
|
|
24
|
+
type SerializableAuthLayoutProps = SerializableProps<{
|
|
30
25
|
title?: string;
|
|
31
26
|
description?: string;
|
|
32
27
|
eyebrow?: string;
|
|
33
28
|
footer?: string;
|
|
34
|
-
|
|
29
|
+
testID?: string;
|
|
30
|
+
}>;
|
|
35
31
|
type SerializableSectionHeaderProps = Omit<SectionHeaderProps, 'actions' | 'description' | 'eyebrow' | 'title'> & {
|
|
36
32
|
title: string;
|
|
37
33
|
description?: string;
|
|
@@ -75,10 +71,9 @@ export interface ZoraNodePropsByType {
|
|
|
75
71
|
FormField: SerializableFormFieldProps;
|
|
76
72
|
Input: SerializableInputProps;
|
|
77
73
|
Notice: SerializableNoticeProps;
|
|
78
|
-
Page: SerializablePageProps;
|
|
79
|
-
PageHeader: SerializablePageHeaderProps;
|
|
80
|
-
PageSection: SerializablePageSectionProps;
|
|
81
74
|
Panel: SerializablePanelProps;
|
|
75
|
+
Screen: SerializableScreenProps;
|
|
76
|
+
ScreenSection: SerializableScreenSectionProps;
|
|
82
77
|
SectionHeader: SerializableSectionHeaderProps;
|
|
83
78
|
SettingsRow: SerializableSettingsRowProps;
|
|
84
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zora-nodes.d.ts","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"zora-nodes.d.ts","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,KAAK,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO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|
|
1
|
-
{"version":3,"file":"zora-nodes.js","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zora-nodes.js","sourceRoot":"","sources":["../../src/internal/zora-nodes.ts"],"names":[],"mappings":"AAkIA,MAAM,UAAU,cAAc,CAC5B,EAAU,EACV,IAAW,EACX,KAAkC,EAClC,QAAqB;IAErB,OAAO;QACL,EAAE;QACF,IAAI;QACJ,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3B,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -3,5 +3,5 @@ export { createTheme } from './create-theme';
|
|
|
3
3
|
export { createRoute } from './route';
|
|
4
4
|
export { createScreen } from './screen';
|
|
5
5
|
export { createStarterContentScreen, createStarterSettingsScreen } from './starter-screens';
|
|
6
|
-
export {
|
|
6
|
+
export { createScreenRoot, createSection, createSettingsSection, createZoraNode, type ZoraNode, } from './zora-node-helpers';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,KAAK,QAAQ,GACd,MAAM,qBAAqB,CAAC"}
|
|
@@ -3,5 +3,5 @@ export { createTheme } from './create-theme';
|
|
|
3
3
|
export { createRoute } from './route';
|
|
4
4
|
export { createScreen } from './screen';
|
|
5
5
|
export { createStarterContentScreen, createStarterSettingsScreen } from './starter-screens';
|
|
6
|
-
export {
|
|
6
|
+
export { createScreenRoot, createSection, createSettingsSection, createZoraNode, } from './zora-node-helpers';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,GAEf,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter-screens.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/starter-screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"starter-screens.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/starter-screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAWvD,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;CAC5C;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,2BAA2B,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,GAAG,UAAU,CA8Cb;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,SAAS;YACb,EAAE,EAAE,MAAM,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;KACL,CAAC;CACH,GAAG,UAAU,CAsBb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createScreen } from './screen';
|
|
2
|
-
import {
|
|
2
|
+
import { createScreenRoot, createSection, createSettingsSection, createZoraNode, } from './zora-node-helpers';
|
|
3
3
|
export function createStarterContentScreen(args) {
|
|
4
4
|
const idSegment = createIdSegment(args.name);
|
|
5
5
|
const sectionNodes = args.content.sections.map((section, sectionIndex) => createSection(`${args.idPrefix}-${idSegment}-section-${sectionIndex + 1}`, { title: section.title, description: section.description }, [
|
|
@@ -15,8 +15,8 @@ export function createStarterContentScreen(args) {
|
|
|
15
15
|
name: args.name,
|
|
16
16
|
title: args.content.title,
|
|
17
17
|
description: args.content.description,
|
|
18
|
-
root:
|
|
19
|
-
|
|
18
|
+
root: createScreenRoot(`${args.idPrefix}-${idSegment}-screen`, { width: args.pageWidth ?? 'wide' }, [
|
|
19
|
+
createZoraNode(`${args.idPrefix}-${idSegment}-screen-header`, 'SectionHeader', {
|
|
20
20
|
eyebrow: args.content.eyebrow,
|
|
21
21
|
title: args.content.title,
|
|
22
22
|
description: args.content.description,
|
|
@@ -32,8 +32,8 @@ export function createStarterSettingsScreen(args) {
|
|
|
32
32
|
name: args.name,
|
|
33
33
|
title: args.header.title,
|
|
34
34
|
description: args.header.description,
|
|
35
|
-
root:
|
|
36
|
-
|
|
35
|
+
root: createScreenRoot(`${args.idPrefix}-${idSegment}-screen`, { width: 'default' }, [
|
|
36
|
+
createZoraNode(`${args.idPrefix}-${idSegment}-screen-header`, 'SectionHeader', {
|
|
37
37
|
eyebrow: args.header.eyebrow,
|
|
38
38
|
title: args.header.title,
|
|
39
39
|
description: args.header.description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter-screens.js","sourceRoot":"","sources":["../../../src/templates/shared/starter-screens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"starter-screens.js","sourceRoot":"","sources":["../../../src/templates/shared/starter-screens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAqB7B,MAAM,UAAU,0BAA0B,CAAC,IAM1C;IACC,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAe,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CACnF,aAAa,CACX,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,YAAY,YAAY,GAAG,CAAC,EAAE,EAC3D,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,EAC1D;QACE,cAAc,CACZ,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,UAAU,YAAY,GAAG,CAAC,EAAE,EACzD,OAAO,EACP,EAAE,KAA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AC;QAClB,EAAE,EAAE,IAAI,CAAC,QAAQ;QACjB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK;QACxB,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;QACpC,IAAI,EAAE,gBAAgB,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;YACnF,cAAc,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,gBAAgB,EAAE,eAAe,EAAE;gBAC7E,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;gBAC5B,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK;gBACxB,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;aACrC,CAAC;YACF,qBAAqB,CACnB,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE,EAC/B,IAAI,CAAC,OAAO,CAAC,KAAK,EAClB,IAAI,CAAC,OAAO,CAAC,WAAW,EACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAClB;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAED,SAAS,eAAe,CAAC,KAAa;IACpC,MAAM,OAAO,GAAG,KAAK;SAClB,IAAI,EAAE;SACN,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEzB,OAAO,OAAO,IAAI,QAAQ,CAAC;AAC7B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { createZoraNode, type ZoraNode, type ZoraNodePropsByType } from '../../internal/zora-nodes';
|
|
2
2
|
export { createZoraNode };
|
|
3
3
|
export type { ZoraNode } from '../../internal/zora-nodes';
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function createSection(id: string, props: ZoraNodePropsByType['PageSection'], children: ZoraNode[]): ZoraNode<'PageSection'>;
|
|
4
|
+
export declare function createScreenRoot(id: string, props: ZoraNodePropsByType['Screen'], children: ZoraNode[]): ZoraNode<'Screen'>;
|
|
5
|
+
export declare function createSection(id: string, props: ZoraNodePropsByType['ScreenSection'], children: ZoraNode[]): ZoraNode<'ScreenSection'>;
|
|
7
6
|
export declare function createSettingsSection(idPrefix: string, title: string, description: string, rows: readonly {
|
|
8
7
|
id: string;
|
|
9
8
|
title: string;
|
|
10
9
|
description: string;
|
|
11
10
|
meta?: string;
|
|
12
|
-
}[]): ZoraNode<'
|
|
11
|
+
}[]): ZoraNode<'ScreenSection'>;
|
|
13
12
|
//# sourceMappingURL=zora-node-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zora-node-helpers.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/zora-node-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,wBAAgB,
|
|
1
|
+
{"version":3,"file":"zora-node-helpers.d.ts","sourceRoot":"","sources":["../../../src/templates/shared/zora-node-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,mBAAmB,CAAC,QAAQ,CAAC,EACpC,QAAQ,EAAE,QAAQ,EAAE,GACnB,QAAQ,CAAC,QAAQ,CAAC,CAEpB;AAED,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,mBAAmB,CAAC,eAAe,CAAC,EAC3C,QAAQ,EAAE,QAAQ,EAAE,GACnB,QAAQ,CAAC,eAAe,CAAC,CAE3B;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,SAAS;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,EAAE,GACF,QAAQ,CAAC,eAAe,CAAC,CAqB3B"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { createZoraNode } from '../../internal/zora-nodes';
|
|
2
2
|
export { createZoraNode };
|
|
3
|
-
export function
|
|
4
|
-
return createZoraNode(id, '
|
|
5
|
-
}
|
|
6
|
-
export function createHeader(id, props) {
|
|
7
|
-
return createZoraNode(id, 'PageHeader', props);
|
|
3
|
+
export function createScreenRoot(id, props, children) {
|
|
4
|
+
return createZoraNode(id, 'Screen', props, children);
|
|
8
5
|
}
|
|
9
6
|
export function createSection(id, props, children) {
|
|
10
|
-
return createZoraNode(id, '
|
|
7
|
+
return createZoraNode(id, 'ScreenSection', props, children);
|
|
11
8
|
}
|
|
12
9
|
export function createSettingsSection(idPrefix, title, description, rows) {
|
|
13
10
|
return createSection(`${idPrefix}-settings-section`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zora-node-helpers.js","sourceRoot":"","sources":["../../../src/templates/shared/zora-node-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2C,MAAM,2BAA2B,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"zora-node-helpers.js","sourceRoot":"","sources":["../../../src/templates/shared/zora-node-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2C,MAAM,2BAA2B,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,MAAM,UAAU,gBAAgB,CAC9B,EAAU,EACV,KAAoC,EACpC,QAAoB;IAEpB,OAAO,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,EAAU,EACV,KAA2C,EAC3C,QAAoB;IAEpB,OAAO,cAAc,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,QAAgB,EAChB,KAAa,EACb,WAAmB,EACnB,IAKG;IAEH,OAAO,aAAa,CAClB,GAAG,QAAQ,mBAAmB,EAC9B;QACE,KAAK;QACL,WAAW;KACZ,EACD;QACE,cAAc,CAAC,GAAG,QAAQ,sBAAsB,EAAE,eAAe,EAAE;YACjE,KAAK;YACL,WAAW;SACZ,CAAC;QACF,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAClB,cAAc,CAAC,GAAG,QAAQ,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE;YACrD,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxC,CAAC,CACH;KACF,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/fallback/screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAQlD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,iBAAiB,GAC3B,WAAW,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/fallback/screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAQlD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,iBAAiB,GAC3B,WAAW,CAAC,SAAS,CAAC,CAsJxB"}
|
|
@@ -12,13 +12,13 @@ export function createFallbackScreens(seed, idPrefix, screenIds) {
|
|
|
12
12
|
name: 'Home',
|
|
13
13
|
title: seed.appName,
|
|
14
14
|
description: `Starter experience for ${seed.categoryLabel}.`,
|
|
15
|
-
root: createZoraNode(`${idPrefix}-home-
|
|
16
|
-
createZoraNode(`${idPrefix}-home-header`, '
|
|
15
|
+
root: createZoraNode(`${idPrefix}-home-screen`, 'Screen', { width: 'wide', testID: `${idPrefix}-home-screen` }, [
|
|
16
|
+
createZoraNode(`${idPrefix}-home-header`, 'SectionHeader', {
|
|
17
17
|
eyebrow: seed.categoryLabel,
|
|
18
18
|
title: seed.appName,
|
|
19
19
|
description: `Starter experience for ${seed.summary}.`,
|
|
20
20
|
}),
|
|
21
|
-
createZoraNode(`${idPrefix}-home-section`, '
|
|
21
|
+
createZoraNode(`${idPrefix}-home-section`, 'ScreenSection', {
|
|
22
22
|
title: 'Launch surface',
|
|
23
23
|
description: 'Use this starter as the base for navigation, content modules, and onboarding.',
|
|
24
24
|
}, [
|
|
@@ -30,7 +30,7 @@ export function createFallbackScreens(seed, idPrefix, screenIds) {
|
|
|
30
30
|
createZoraNode(`${idPrefix}-overview-notice`, 'Notice', {
|
|
31
31
|
title: 'ZORA-first authoring',
|
|
32
32
|
description: 'This screen uses ZORA layout and pattern nodes instead of legacy Surface-only trees.',
|
|
33
|
-
|
|
33
|
+
color: 'primary',
|
|
34
34
|
}),
|
|
35
35
|
createZoraNode(`${idPrefix}-focus-card-1`, 'Card', {
|
|
36
36
|
eyebrow: 'Focus area',
|
|
@@ -52,8 +52,7 @@ export function createFallbackScreens(seed, idPrefix, screenIds) {
|
|
|
52
52
|
}),
|
|
53
53
|
createZoraNode(`${idPrefix}-overview-button`, 'Button', {
|
|
54
54
|
children: 'Customize this starter',
|
|
55
|
-
|
|
56
|
-
emphasis: 'solid',
|
|
55
|
+
color: 'primary',
|
|
57
56
|
size: 'm',
|
|
58
57
|
fullWidth: true,
|
|
59
58
|
}),
|
|
@@ -66,13 +65,13 @@ export function createFallbackScreens(seed, idPrefix, screenIds) {
|
|
|
66
65
|
name: 'Details',
|
|
67
66
|
title: 'Details',
|
|
68
67
|
description: 'Secondary informational screen for the starter template.',
|
|
69
|
-
root: createZoraNode(`${idPrefix}-details-
|
|
70
|
-
createZoraNode(`${idPrefix}-details-header`, '
|
|
68
|
+
root: createZoraNode(`${idPrefix}-details-screen`, 'Screen', { width: 'default' }, [
|
|
69
|
+
createZoraNode(`${idPrefix}-details-header`, 'SectionHeader', {
|
|
71
70
|
eyebrow: 'Starter module',
|
|
72
71
|
title: 'Detail screen',
|
|
73
72
|
description: 'Use this route for previews, drill-downs, or richer storytelling.',
|
|
74
73
|
}),
|
|
75
|
-
createZoraNode(`${idPrefix}-details-section`, '
|
|
74
|
+
createZoraNode(`${idPrefix}-details-section`, 'ScreenSection', {
|
|
76
75
|
title: 'Placeholder state',
|
|
77
76
|
description: 'Replace the placeholder with ZORA cards, panels, or task-specific layouts.',
|
|
78
77
|
}, [
|
|
@@ -89,13 +88,13 @@ export function createFallbackScreens(seed, idPrefix, screenIds) {
|
|
|
89
88
|
name: 'Settings',
|
|
90
89
|
title: 'Settings',
|
|
91
90
|
description: 'Configuration screen for starter defaults.',
|
|
92
|
-
root: createZoraNode(`${idPrefix}-settings-
|
|
93
|
-
createZoraNode(`${idPrefix}-settings-header`, '
|
|
91
|
+
root: createZoraNode(`${idPrefix}-settings-screen`, 'Screen', { width: 'default' }, [
|
|
92
|
+
createZoraNode(`${idPrefix}-settings-header`, 'SectionHeader', {
|
|
94
93
|
eyebrow: 'Operations',
|
|
95
94
|
title: 'Settings',
|
|
96
95
|
description: 'Starter defaults for localization, auth flow, and deployment assumptions.',
|
|
97
96
|
}),
|
|
98
|
-
createZoraNode(`${idPrefix}-settings-section`, '
|
|
97
|
+
createZoraNode(`${idPrefix}-settings-section`, 'ScreenSection', {
|
|
99
98
|
title: 'Manifest defaults',
|
|
100
99
|
description: 'These rows mirror the baseline config shipped with the template package.',
|
|
101
100
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/fallback/screens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAI/D,MAAM,mBAAmB,GAAG;IAC1B,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;CACd,CAAC;AAEX,MAAM,UAAU,qBAAqB,CACnC,IAAkB,EAClB,QAAgB,EAChB,SAA4B;IAE5B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,mBAAmB,CAAC;IAE1D,OAAO;QACL,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;YAC7B,EAAE,EAAE,SAAS,CAAC,IAAI;YAClB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI,CAAC,OAAO;YACnB,WAAW,EAAE,0BAA0B,IAAI,CAAC,aAAa,GAAG;YAC5D,IAAI,EAAE,cAAc,CAClB,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"screens.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/fallback/screens.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAI/D,MAAM,mBAAmB,GAAG;IAC1B,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;CACd,CAAC;AAEX,MAAM,UAAU,qBAAqB,CACnC,IAAkB,EAClB,QAAgB,EAChB,SAA4B;IAE5B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,mBAAmB,CAAC;IAE1D,OAAO;QACL,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;YAC7B,EAAE,EAAE,SAAS,CAAC,IAAI;YAClB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI,CAAC,OAAO;YACnB,WAAW,EAAE,0BAA0B,IAAI,CAAC,aAAa,GAAG;YAC5D,IAAI,EAAE,cAAc,CAClB,GAAG,QAAQ,cAAc,EACzB,QAAQ,EACR,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,cAAc,EAAE,EACpD;gBACE,cAAc,CAAC,GAAG,QAAQ,cAAc,EAAE,eAAe,EAAE;oBACzD,OAAO,EAAE,IAAI,CAAC,aAAa;oBAC3B,KAAK,EAAE,IAAI,CAAC,OAAO;oBACnB,WAAW,EAAE,0BAA0B,IAAI,CAAC,OAAO,GAAG;iBACvD,CAAC;gBACF,cAAc,CACZ,GAAG,QAAQ,eAAe,EAC1B,eAAe,EACf;oBACE,KAAK,EAAE,gBAAgB;oBACvB,WAAW,EACT,+EAA+E;iBAClF,EACD;oBACE,cAAc,CACZ,GAAG,QAAQ,iBAAiB,EAC5B,OAAO,EACP;wBACE,KAAK,EAAE,yBAAyB;wBAChC,WAAW,EACT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CAAC,GAAG,QAAQ,sBAAsB,EAAE,aAAa,EAAE;wBAC/D,KAAK,EAAE,gBAAgB;wBACvB,WAAW,EAAE,mDAAmD;wBAChE,IAAI,EAAE,IAAI;qBACX,CAAC;oBACF,cAAc,CAAC,GAAG,QAAQ,oBAAoB,EAAE,aAAa,EAAE;wBAC7D,KAAK,EAAE,YAAY;wBACnB,WAAW,EAAE,mDAAmD;wBAChE,IAAI,EAAE,QAAQ;qBACf,CAAC;oBACF,cAAc,CAAC,GAAG,QAAQ,sBAAsB,EAAE,aAAa,EAAE;wBAC/D,KAAK,EAAE,mBAAmB;wBAC1B,WAAW,EAAE,4DAA4D;wBACzE,IAAI,EAAE,UAAU;qBACjB,CAAC;iBACH,CACF;aACF,CAAC;SACH,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA0EnD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,kBAAkB,GAC5B,WAAW,CAAC,SAAS,CAAC,CAiExB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createScreen, createScreenRoot, createSection, createSettingsSection, createZoraNode, } from '../../../shared';
|
|
2
2
|
import { foodDrinkContent } from './content';
|
|
3
3
|
function createFoodDrinkContentScreen(args) {
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const idSegment = args.name.toLowerCase();
|
|
5
|
+
const sectionNodes = args.content.sections.map((section, sectionIndex) => createSection(`${args.idPrefix}-${idSegment}-section-${sectionIndex + 1}`, { title: section.title, description: section.description }, [
|
|
6
|
+
createZoraNode(`${args.idPrefix}-${idSegment}-panel-${sectionIndex + 1}`, 'Panel', {
|
|
6
7
|
title: section.title,
|
|
7
8
|
description: section.description,
|
|
8
9
|
tone: 'subtle',
|
|
9
|
-
}, section.cards.map((card, cardIndex) => createZoraNode(`${args.idPrefix}-${
|
|
10
|
+
}, section.cards.map((card, cardIndex) => createZoraNode(`${args.idPrefix}-${idSegment}-card-${sectionIndex + 1}-${cardIndex + 1}`, 'Card', {
|
|
10
11
|
eyebrow: card.eyebrow,
|
|
11
12
|
title: card.title,
|
|
12
13
|
description: card.description,
|
|
@@ -18,8 +19,8 @@ function createFoodDrinkContentScreen(args) {
|
|
|
18
19
|
name: args.name,
|
|
19
20
|
title: args.content.title,
|
|
20
21
|
description: args.content.description,
|
|
21
|
-
root:
|
|
22
|
-
|
|
22
|
+
root: createScreenRoot(`${args.idPrefix}-${idSegment}-screen`, { width: 'wide' }, [
|
|
23
|
+
createZoraNode(`${args.idPrefix}-${idSegment}-header`, 'SectionHeader', {
|
|
23
24
|
eyebrow: args.content.eyebrow,
|
|
24
25
|
title: args.content.title,
|
|
25
26
|
description: args.content.description,
|
|
@@ -59,8 +60,8 @@ export function createFoodDrinkScreens(seed, idPrefix, screenIds) {
|
|
|
59
60
|
name: 'Profile',
|
|
60
61
|
title: foodDrinkContent.profile.title,
|
|
61
62
|
description: foodDrinkContent.profile.description,
|
|
62
|
-
root:
|
|
63
|
-
|
|
63
|
+
root: createScreenRoot(`${idPrefix}-profile-screen`, { width: 'default' }, [
|
|
64
|
+
createZoraNode(`${idPrefix}-profile-header`, 'SectionHeader', {
|
|
64
65
|
eyebrow: foodDrinkContent.profile.eyebrow,
|
|
65
66
|
title: foodDrinkContent.profile.title,
|
|
66
67
|
description: foodDrinkContent.profile.description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"screens.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/food-drink/screens.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,cAAc,GAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAsB7C,SAAS,4BAA4B,CAAC,IAKrC;IACC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,MAAM,YAAY,GAAe,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CACnF,aAAa,CACX,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,YAAY,YAAY,GAAG,CAAC,EAAE,EAC3D,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,EAC1D;QACE,cAAc,CACZ,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,UAAU,YAAY,GAAG,CAAC,EAAE,EACzD,OAAO,EACP;YACE,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,IAAI,EAAE,QAAQ;SACf,EACD,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CACpC,cAAc,CACZ,GAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,SAAS,YAAY,GAAG,CAAC,IAAI,SAAS,GAAG,CAAC,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wBACE,EAAE,EAAE,UAAU;wBACd,KAAK,EAAE,YAAY;wBACnB,WAAW,EAAE,GAAG,IAAI,CAAC,aAAa,4CAA4C;wBAC9E,IAAI,EAAE,QAAQ;qBACf;iBACF,CACF;aACF,CAAC;SACH,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const chessContent: {
|
|
2
|
+
readonly home: {
|
|
3
|
+
readonly eyebrow: "Chess";
|
|
4
|
+
readonly title: "Your next move";
|
|
5
|
+
readonly description: "A compact home screen for study continuity, current position, and quick play.";
|
|
6
|
+
readonly sections: readonly [{
|
|
7
|
+
readonly title: "Study snapshot";
|
|
8
|
+
readonly description: "Keep the current position and next action visible without building a full trainer.";
|
|
9
|
+
readonly cards: readonly [{
|
|
10
|
+
readonly eyebrow: "Position";
|
|
11
|
+
readonly title: "Continue from the board";
|
|
12
|
+
readonly description: "Reserve this card for the current FEN, side to move, and last move summary.";
|
|
13
|
+
}, {
|
|
14
|
+
readonly eyebrow: "Focus";
|
|
15
|
+
readonly title: "Practice one line";
|
|
16
|
+
readonly description: "A placeholder for a short study goal such as a variation or opening idea.";
|
|
17
|
+
}];
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
readonly boardSettings: {
|
|
21
|
+
readonly eyebrow: "Board";
|
|
22
|
+
readonly title: "Chess board & settings";
|
|
23
|
+
readonly description: "Prepare board display controls and study preferences for a chess app.";
|
|
24
|
+
readonly sections: readonly [{
|
|
25
|
+
readonly title: "Board placeholder";
|
|
26
|
+
readonly description: "Use this area for a future ChessBoard integration and board-specific controls.";
|
|
27
|
+
readonly cards: readonly [{
|
|
28
|
+
readonly eyebrow: "Board";
|
|
29
|
+
readonly title: "Interactive board slot";
|
|
30
|
+
readonly description: "A placeholder ready for @ankhorage/zora-chess once app dependencies are wired.";
|
|
31
|
+
}, {
|
|
32
|
+
readonly eyebrow: "Controls";
|
|
33
|
+
readonly title: "Orientation and coordinates";
|
|
34
|
+
readonly description: "Reserve controls for white/black orientation, coordinates, and study mode.";
|
|
35
|
+
}];
|
|
36
|
+
}];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chess.content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chess.content.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/games/chess.content.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDf,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const chessContent = {
|
|
2
|
+
home: {
|
|
3
|
+
eyebrow: 'Chess',
|
|
4
|
+
title: 'Your next move',
|
|
5
|
+
description: 'A compact home screen for study continuity, current position, and quick play.',
|
|
6
|
+
sections: [
|
|
7
|
+
{
|
|
8
|
+
title: 'Study snapshot',
|
|
9
|
+
description: 'Keep the current position and next action visible without building a full trainer.',
|
|
10
|
+
cards: [
|
|
11
|
+
{
|
|
12
|
+
eyebrow: 'Position',
|
|
13
|
+
title: 'Continue from the board',
|
|
14
|
+
description: 'Reserve this card for the current FEN, side to move, and last move summary.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
eyebrow: 'Focus',
|
|
18
|
+
title: 'Practice one line',
|
|
19
|
+
description: 'A placeholder for a short study goal such as a variation or opening idea.',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
boardSettings: {
|
|
26
|
+
eyebrow: 'Board',
|
|
27
|
+
title: 'Chess board & settings',
|
|
28
|
+
description: 'Prepare board display controls and study preferences for a chess app.',
|
|
29
|
+
sections: [
|
|
30
|
+
{
|
|
31
|
+
title: 'Board placeholder',
|
|
32
|
+
description: 'Use this area for a future ChessBoard integration and board-specific controls.',
|
|
33
|
+
cards: [
|
|
34
|
+
{
|
|
35
|
+
eyebrow: 'Board',
|
|
36
|
+
title: 'Interactive board slot',
|
|
37
|
+
description: 'A placeholder ready for @ankhorage/zora-chess once app dependencies are wired.',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
eyebrow: 'Controls',
|
|
41
|
+
title: 'Orientation and coordinates',
|
|
42
|
+
description: 'Reserve controls for white/black orientation, coordinates, and study mode.',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=chess.content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chess.content.js","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/games/chess.content.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE;QACJ,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,+EAA+E;QAC5F,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EACT,oFAAoF;gBACtF,KAAK,EAAE;oBACL;wBACE,OAAO,EAAE,UAAU;wBACnB,KAAK,EAAE,yBAAyB;wBAChC,WAAW,EACT,6EAA6E;qBAChF;oBACD;wBACE,OAAO,EAAE,OAAO;wBAChB,KAAK,EAAE,mBAAmB;wBAC1B,WAAW,EACT,2EAA2E;qBAC9E;iBACF;aACF;SACF;KACF;IACD,aAAa,EAAE;QACb,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EAAE,uEAAuE;QACpF,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACT,gFAAgF;gBAClF,KAAK,EAAE;oBACL;wBACE,OAAO,EAAE,OAAO;wBAChB,KAAK,EAAE,wBAAwB;wBAC/B,WAAW,EACT,gFAAgF;qBACnF;oBACD;wBACE,OAAO,EAAE,UAAU;wBACnB,KAAK,EAAE,6BAA6B;wBACpC,WAAW,EACT,4EAA4E;qBAC/E;iBACF;aACF;SACF;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
export interface ChessScreenIds {
|
|
3
|
+
home: string;
|
|
4
|
+
boardSettings: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function createChessScreenIds(idPrefix: string): ChessScreenIds;
|
|
7
|
+
export declare function createChessNavigator(screenIds: ChessScreenIds): AppManifest['navigator'];
|
|
8
|
+
//# sourceMappingURL=chess.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chess.routes.d.ts","sourceRoot":"","sources":["../../../../../src/templates/starter/categories/games/chess.routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAKrE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,CAmBxF"}
|