@ankhorage/zora-game 0.1.0

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +19 -0
  4. package/dist/ZORA_GAME_COMPONENT_META.d.ts +224 -0
  5. package/dist/ZORA_GAME_COMPONENT_META.d.ts.map +1 -0
  6. package/dist/ZORA_GAME_COMPONENT_META.js +10 -0
  7. package/dist/ZORA_GAME_COMPONENT_META.js.map +1 -0
  8. package/dist/ZORA_GAME_PLUGIN.d.ts +247 -0
  9. package/dist/ZORA_GAME_PLUGIN.d.ts.map +1 -0
  10. package/dist/ZORA_GAME_PLUGIN.js +14 -0
  11. package/dist/ZORA_GAME_PLUGIN.js.map +1 -0
  12. package/dist/ZORA_PLUGIN_METADATA.d.ts +239 -0
  13. package/dist/ZORA_PLUGIN_METADATA.d.ts.map +1 -0
  14. package/dist/ZORA_PLUGIN_METADATA.js +23 -0
  15. package/dist/ZORA_PLUGIN_METADATA.js.map +1 -0
  16. package/dist/features/game-presentation/adapters/inbound/GameEntity.d.ts +4 -0
  17. package/dist/features/game-presentation/adapters/inbound/GameEntity.d.ts.map +1 -0
  18. package/dist/features/game-presentation/adapters/inbound/GameEntity.js +39 -0
  19. package/dist/features/game-presentation/adapters/inbound/GameEntity.js.map +1 -0
  20. package/dist/features/game-presentation/adapters/inbound/GameField.d.ts +4 -0
  21. package/dist/features/game-presentation/adapters/inbound/GameField.d.ts.map +1 -0
  22. package/dist/features/game-presentation/adapters/inbound/GameField.js +28 -0
  23. package/dist/features/game-presentation/adapters/inbound/GameField.js.map +1 -0
  24. package/dist/features/game-presentation/adapters/inbound/GameOverlay.d.ts +4 -0
  25. package/dist/features/game-presentation/adapters/inbound/GameOverlay.d.ts.map +1 -0
  26. package/dist/features/game-presentation/adapters/inbound/GameOverlay.js +39 -0
  27. package/dist/features/game-presentation/adapters/inbound/GameOverlay.js.map +1 -0
  28. package/dist/features/game-presentation/meta/gameEntityMeta.d.ts +119 -0
  29. package/dist/features/game-presentation/meta/gameEntityMeta.d.ts.map +1 -0
  30. package/dist/features/game-presentation/meta/gameEntityMeta.js +90 -0
  31. package/dist/features/game-presentation/meta/gameEntityMeta.js.map +1 -0
  32. package/dist/features/game-presentation/meta/gameFieldMeta.d.ts +52 -0
  33. package/dist/features/game-presentation/meta/gameFieldMeta.d.ts.map +1 -0
  34. package/dist/features/game-presentation/meta/gameFieldMeta.js +41 -0
  35. package/dist/features/game-presentation/meta/gameFieldMeta.js.map +1 -0
  36. package/dist/features/game-presentation/meta/gameOverlayMeta.d.ts +55 -0
  37. package/dist/features/game-presentation/meta/gameOverlayMeta.d.ts.map +1 -0
  38. package/dist/features/game-presentation/meta/gameOverlayMeta.js +65 -0
  39. package/dist/features/game-presentation/meta/gameOverlayMeta.js.map +1 -0
  40. package/dist/features/game-presentation/public.d.ts +5 -0
  41. package/dist/features/game-presentation/public.d.ts.map +1 -0
  42. package/dist/features/game-presentation/public.js +4 -0
  43. package/dist/features/game-presentation/public.js.map +1 -0
  44. package/dist/index.d.ts +4 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +3 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/metadata.d.ts +3 -0
  49. package/dist/metadata.d.ts.map +1 -0
  50. package/dist/metadata.js +3 -0
  51. package/dist/metadata.js.map +1 -0
  52. package/dist/types/gamePresentation.d.ts +37 -0
  53. package/dist/types/gamePresentation.d.ts.map +1 -0
  54. package/dist/types/gamePresentation.js +2 -0
  55. package/dist/types/gamePresentation.js.map +1 -0
  56. package/package.json +95 -0
  57. package/src/ZORA_GAME_COMPONENT_META.ts +10 -0
  58. package/src/ZORA_GAME_PLUGIN.ts +14 -0
  59. package/src/ZORA_PLUGIN_METADATA.test.ts +24 -0
  60. package/src/ZORA_PLUGIN_METADATA.ts +25 -0
  61. package/src/features/game-presentation/adapters/inbound/GameEntity.tsx +88 -0
  62. package/src/features/game-presentation/adapters/inbound/GameField.tsx +44 -0
  63. package/src/features/game-presentation/adapters/inbound/GameOverlay.tsx +57 -0
  64. package/src/features/game-presentation/meta/gameEntityMeta.ts +91 -0
  65. package/src/features/game-presentation/meta/gameFieldMeta.ts +42 -0
  66. package/src/features/game-presentation/meta/gameOverlayMeta.ts +66 -0
  67. package/src/features/game-presentation/public.ts +10 -0
  68. package/src/index.ts +9 -0
  69. package/src/metadata.ts +2 -0
  70. package/src/types/gamePresentation.ts +41 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # @ankhorage/zora-game
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5eb7739: Add the initial generic game presentation plugin with embeddable field, entity, and overlay primitives.
8
+
9
+ ## 0.0.0
10
+
11
+ Initial package bootstrap. Future release entries are managed by Changesets.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ankhorage
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ <!-- markdownlint-disable MD013 MD033 -->
2
+ <!-- This file is generated by Paradox. Do not edit manually. -->
3
+
4
+ # @ankhorage/zora-game
5
+
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v0.1.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
+
8
+ Generic game presentation primitives for React Native and React Native Web apps built on ZORA.
9
+
10
+ ## Generated documentation
11
+
12
+ - [Interactive documentation app](././paradox/index.html)
13
+ - [Public API reference](././paradox/exports.md)
14
+ - [Component registry](././paradox/components.md)
15
+ - [Architecture overview](././paradox/diagrams/architecture-overview.mmd)
16
+ - [Module relationships](././paradox/diagrams/module-relationships.mmd)
17
+ - [Export graph](././paradox/diagrams/export-graph.mmd)
18
+ - [GameEntity sequence](././paradox/diagrams/sequences/game-entity.mmd)
19
+ - [GameOverlay sequence](././paradox/diagrams/sequences/game-overlay.mmd)
@@ -0,0 +1,224 @@
1
+ /*** Register the generic game presentation metadata owned by this package. */
2
+ export declare const ZORA_GAME_COMPONENT_META: {
3
+ readonly GameEntity: {
4
+ readonly name: "GameEntity";
5
+ readonly category: "component";
6
+ readonly description: "Positions arbitrary visual content inside a GameField without owning game rules.";
7
+ readonly directManifestNode: true;
8
+ readonly allowedChildren: readonly ["Badge", "Icon", "Image", "Text", "View"];
9
+ readonly blueprint: {
10
+ readonly label: "Game entity";
11
+ readonly defaultProps: {
12
+ readonly x: 0;
13
+ readonly y: 0;
14
+ readonly opacity: 1;
15
+ readonly scale: 1;
16
+ readonly rotation: 0;
17
+ readonly zIndex: 0;
18
+ };
19
+ };
20
+ readonly props: {
21
+ readonly x: {
22
+ readonly type: "number";
23
+ readonly category: "Position";
24
+ readonly label: "X (%)";
25
+ readonly default: 0;
26
+ readonly authoring: {
27
+ readonly authority: "instance";
28
+ };
29
+ };
30
+ readonly y: {
31
+ readonly type: "number";
32
+ readonly category: "Position";
33
+ readonly label: "Y (%)";
34
+ readonly default: 0;
35
+ readonly authoring: {
36
+ readonly authority: "instance";
37
+ };
38
+ };
39
+ readonly width: {
40
+ readonly type: "number";
41
+ readonly category: "Size";
42
+ readonly label: "Width";
43
+ readonly authoring: {
44
+ readonly authority: "instance";
45
+ };
46
+ };
47
+ readonly height: {
48
+ readonly type: "number";
49
+ readonly category: "Size";
50
+ readonly label: "Height";
51
+ readonly authoring: {
52
+ readonly authority: "instance";
53
+ };
54
+ };
55
+ readonly opacity: {
56
+ readonly type: "number";
57
+ readonly category: "Appearance";
58
+ readonly label: "Opacity";
59
+ readonly default: 1;
60
+ readonly authoring: {
61
+ readonly authority: "instance";
62
+ };
63
+ };
64
+ readonly scale: {
65
+ readonly type: "number";
66
+ readonly category: "Transform";
67
+ readonly label: "Scale";
68
+ readonly default: 1;
69
+ readonly authoring: {
70
+ readonly authority: "instance";
71
+ };
72
+ };
73
+ readonly rotation: {
74
+ readonly type: "number";
75
+ readonly category: "Transform";
76
+ readonly label: "Rotation";
77
+ readonly default: 0;
78
+ readonly authoring: {
79
+ readonly authority: "instance";
80
+ };
81
+ };
82
+ readonly zIndex: {
83
+ readonly type: "number";
84
+ readonly category: "Position";
85
+ readonly label: "Z index";
86
+ readonly default: 0;
87
+ readonly authoring: {
88
+ readonly authority: "instance";
89
+ };
90
+ };
91
+ readonly hidden: {
92
+ readonly type: "boolean";
93
+ readonly category: "State";
94
+ readonly label: "Hidden";
95
+ readonly default: false;
96
+ readonly authoring: {
97
+ readonly authority: "instance";
98
+ };
99
+ };
100
+ readonly pointerEvents: {
101
+ readonly type: "enum";
102
+ readonly category: "Interaction";
103
+ readonly label: "Pointer events";
104
+ readonly enum: readonly ["auto", "box-none", "box-only", "none"];
105
+ readonly default: "auto";
106
+ readonly authoring: {
107
+ readonly authority: "instance";
108
+ };
109
+ };
110
+ readonly accessibilityLabel: {
111
+ readonly type: "string";
112
+ readonly category: "Accessibility";
113
+ readonly label: "Accessibility label";
114
+ readonly authoring: {
115
+ readonly authority: "instance";
116
+ };
117
+ };
118
+ };
119
+ };
120
+ readonly GameField: {
121
+ readonly name: "GameField";
122
+ readonly category: "layout";
123
+ readonly description: "Relative positioning surface for embeddable game presentation content.";
124
+ readonly directManifestNode: true;
125
+ readonly allowedChildren: readonly ["GameEntity", "GameOverlay", "Gradient", "Image", "View"];
126
+ readonly blueprint: {
127
+ readonly label: "Game field";
128
+ readonly defaultProps: {
129
+ readonly minHeight: 320;
130
+ readonly clip: true;
131
+ };
132
+ };
133
+ readonly props: {
134
+ readonly aspectRatio: {
135
+ readonly type: "number";
136
+ readonly category: "Layout";
137
+ readonly label: "Aspect ratio";
138
+ readonly authoring: {
139
+ readonly authority: "instance";
140
+ };
141
+ };
142
+ readonly minHeight: {
143
+ readonly type: "number";
144
+ readonly category: "Layout";
145
+ readonly label: "Minimum height";
146
+ readonly default: 320;
147
+ readonly authoring: {
148
+ readonly authority: "instance";
149
+ };
150
+ };
151
+ readonly clip: {
152
+ readonly type: "boolean";
153
+ readonly category: "Layout";
154
+ readonly label: "Clip overflow";
155
+ readonly default: true;
156
+ readonly authoring: {
157
+ readonly authority: "instance";
158
+ };
159
+ };
160
+ readonly accessibilityLabel: {
161
+ readonly type: "string";
162
+ readonly category: "Accessibility";
163
+ readonly label: "Accessibility label";
164
+ readonly authoring: {
165
+ readonly authority: "instance";
166
+ };
167
+ };
168
+ };
169
+ };
170
+ readonly GameOverlay: {
171
+ readonly name: "GameOverlay";
172
+ readonly category: "layout";
173
+ readonly description: "Absolute presentation layer for HUD, feedback, controls, and phase content.";
174
+ readonly directManifestNode: true;
175
+ readonly allowedChildren: readonly ["Badge", "Button", "ButtonGroup", "Card", "GameEntity", "Heading", "Icon", "Image", "Progress", "ProgressRing", "Text", "View"];
176
+ readonly blueprint: {
177
+ readonly label: "Game overlay";
178
+ readonly defaultProps: {
179
+ readonly placement: "fill";
180
+ readonly blocking: false;
181
+ readonly padding: 0;
182
+ };
183
+ };
184
+ readonly props: {
185
+ readonly placement: {
186
+ readonly type: "enum";
187
+ readonly category: "Layout";
188
+ readonly label: "Placement";
189
+ readonly enum: readonly ["fill", "center", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"];
190
+ readonly default: "fill";
191
+ readonly authoring: {
192
+ readonly authority: "instance";
193
+ };
194
+ };
195
+ readonly blocking: {
196
+ readonly type: "boolean";
197
+ readonly category: "Interaction";
198
+ readonly label: "Block pointer input";
199
+ readonly default: false;
200
+ readonly authoring: {
201
+ readonly authority: "instance";
202
+ };
203
+ };
204
+ readonly padding: {
205
+ readonly type: "number";
206
+ readonly category: "Layout";
207
+ readonly label: "Padding";
208
+ readonly default: 0;
209
+ readonly authoring: {
210
+ readonly authority: "instance";
211
+ };
212
+ };
213
+ readonly accessibilityLabel: {
214
+ readonly type: "string";
215
+ readonly category: "Accessibility";
216
+ readonly label: "Accessibility label";
217
+ readonly authoring: {
218
+ readonly authority: "instance";
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ //# sourceMappingURL=ZORA_GAME_COMPONENT_META.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZORA_GAME_COMPONENT_META.d.ts","sourceRoot":"","sources":["../src/ZORA_GAME_COMPONENT_META.ts"],"names":[],"mappings":"AAIA,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { gameEntityMeta } from './features/game-presentation/meta/gameEntityMeta';
2
+ import { gameFieldMeta } from './features/game-presentation/meta/gameFieldMeta';
3
+ import { gameOverlayMeta } from './features/game-presentation/meta/gameOverlayMeta';
4
+ /*** Register the generic game presentation metadata owned by this package. */
5
+ export const ZORA_GAME_COMPONENT_META = {
6
+ GameEntity: gameEntityMeta,
7
+ GameField: gameFieldMeta,
8
+ GameOverlay: gameOverlayMeta,
9
+ };
10
+ //# sourceMappingURL=ZORA_GAME_COMPONENT_META.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZORA_GAME_COMPONENT_META.js","sourceRoot":"","sources":["../src/ZORA_GAME_COMPONENT_META.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAEpF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["import { gameEntityMeta } from './features/game-presentation/meta/gameEntityMeta';\nimport { gameFieldMeta } from './features/game-presentation/meta/gameFieldMeta';\nimport { gameOverlayMeta } from './features/game-presentation/meta/gameOverlayMeta';\n\n/*** Register the generic game presentation metadata owned by this package. */\nexport const ZORA_GAME_COMPONENT_META = {\n GameEntity: gameEntityMeta,\n GameField: gameFieldMeta,\n GameOverlay: gameOverlayMeta,\n} as const;\n"]}
@@ -0,0 +1,247 @@
1
+ import { GameEntity } from './features/game-presentation/adapters/inbound/GameEntity';
2
+ import { GameField } from './features/game-presentation/adapters/inbound/GameField';
3
+ import { GameOverlay } from './features/game-presentation/adapters/inbound/GameOverlay';
4
+ /*** Expose the runtime component registry together with metadata for ZORA plugin consumers. */
5
+ export declare const ZORA_GAME_PLUGIN: {
6
+ readonly componentRegistry: {
7
+ readonly GameEntity: typeof GameEntity;
8
+ readonly GameField: typeof GameField;
9
+ readonly GameOverlay: typeof GameOverlay;
10
+ };
11
+ readonly packageName: "@ankhorage/zora-game";
12
+ readonly displayName: "ZORA Game";
13
+ readonly componentMeta: {
14
+ readonly GameEntity: {
15
+ readonly name: "GameEntity";
16
+ readonly category: "component";
17
+ readonly description: "Positions arbitrary visual content inside a GameField without owning game rules.";
18
+ readonly directManifestNode: true;
19
+ readonly allowedChildren: readonly ["Badge", "Icon", "Image", "Text", "View"];
20
+ readonly blueprint: {
21
+ readonly label: "Game entity";
22
+ readonly defaultProps: {
23
+ readonly x: 0;
24
+ readonly y: 0;
25
+ readonly opacity: 1;
26
+ readonly scale: 1;
27
+ readonly rotation: 0;
28
+ readonly zIndex: 0;
29
+ };
30
+ };
31
+ readonly props: {
32
+ readonly x: {
33
+ readonly type: "number";
34
+ readonly category: "Position";
35
+ readonly label: "X (%)";
36
+ readonly default: 0;
37
+ readonly authoring: {
38
+ readonly authority: "instance";
39
+ };
40
+ };
41
+ readonly y: {
42
+ readonly type: "number";
43
+ readonly category: "Position";
44
+ readonly label: "Y (%)";
45
+ readonly default: 0;
46
+ readonly authoring: {
47
+ readonly authority: "instance";
48
+ };
49
+ };
50
+ readonly width: {
51
+ readonly type: "number";
52
+ readonly category: "Size";
53
+ readonly label: "Width";
54
+ readonly authoring: {
55
+ readonly authority: "instance";
56
+ };
57
+ };
58
+ readonly height: {
59
+ readonly type: "number";
60
+ readonly category: "Size";
61
+ readonly label: "Height";
62
+ readonly authoring: {
63
+ readonly authority: "instance";
64
+ };
65
+ };
66
+ readonly opacity: {
67
+ readonly type: "number";
68
+ readonly category: "Appearance";
69
+ readonly label: "Opacity";
70
+ readonly default: 1;
71
+ readonly authoring: {
72
+ readonly authority: "instance";
73
+ };
74
+ };
75
+ readonly scale: {
76
+ readonly type: "number";
77
+ readonly category: "Transform";
78
+ readonly label: "Scale";
79
+ readonly default: 1;
80
+ readonly authoring: {
81
+ readonly authority: "instance";
82
+ };
83
+ };
84
+ readonly rotation: {
85
+ readonly type: "number";
86
+ readonly category: "Transform";
87
+ readonly label: "Rotation";
88
+ readonly default: 0;
89
+ readonly authoring: {
90
+ readonly authority: "instance";
91
+ };
92
+ };
93
+ readonly zIndex: {
94
+ readonly type: "number";
95
+ readonly category: "Position";
96
+ readonly label: "Z index";
97
+ readonly default: 0;
98
+ readonly authoring: {
99
+ readonly authority: "instance";
100
+ };
101
+ };
102
+ readonly hidden: {
103
+ readonly type: "boolean";
104
+ readonly category: "State";
105
+ readonly label: "Hidden";
106
+ readonly default: false;
107
+ readonly authoring: {
108
+ readonly authority: "instance";
109
+ };
110
+ };
111
+ readonly pointerEvents: {
112
+ readonly type: "enum";
113
+ readonly category: "Interaction";
114
+ readonly label: "Pointer events";
115
+ readonly enum: readonly ["auto", "box-none", "box-only", "none"];
116
+ readonly default: "auto";
117
+ readonly authoring: {
118
+ readonly authority: "instance";
119
+ };
120
+ };
121
+ readonly accessibilityLabel: {
122
+ readonly type: "string";
123
+ readonly category: "Accessibility";
124
+ readonly label: "Accessibility label";
125
+ readonly authoring: {
126
+ readonly authority: "instance";
127
+ };
128
+ };
129
+ };
130
+ };
131
+ readonly GameField: {
132
+ readonly name: "GameField";
133
+ readonly category: "layout";
134
+ readonly description: "Relative positioning surface for embeddable game presentation content.";
135
+ readonly directManifestNode: true;
136
+ readonly allowedChildren: readonly ["GameEntity", "GameOverlay", "Gradient", "Image", "View"];
137
+ readonly blueprint: {
138
+ readonly label: "Game field";
139
+ readonly defaultProps: {
140
+ readonly minHeight: 320;
141
+ readonly clip: true;
142
+ };
143
+ };
144
+ readonly props: {
145
+ readonly aspectRatio: {
146
+ readonly type: "number";
147
+ readonly category: "Layout";
148
+ readonly label: "Aspect ratio";
149
+ readonly authoring: {
150
+ readonly authority: "instance";
151
+ };
152
+ };
153
+ readonly minHeight: {
154
+ readonly type: "number";
155
+ readonly category: "Layout";
156
+ readonly label: "Minimum height";
157
+ readonly default: 320;
158
+ readonly authoring: {
159
+ readonly authority: "instance";
160
+ };
161
+ };
162
+ readonly clip: {
163
+ readonly type: "boolean";
164
+ readonly category: "Layout";
165
+ readonly label: "Clip overflow";
166
+ readonly default: true;
167
+ readonly authoring: {
168
+ readonly authority: "instance";
169
+ };
170
+ };
171
+ readonly accessibilityLabel: {
172
+ readonly type: "string";
173
+ readonly category: "Accessibility";
174
+ readonly label: "Accessibility label";
175
+ readonly authoring: {
176
+ readonly authority: "instance";
177
+ };
178
+ };
179
+ };
180
+ };
181
+ readonly GameOverlay: {
182
+ readonly name: "GameOverlay";
183
+ readonly category: "layout";
184
+ readonly description: "Absolute presentation layer for HUD, feedback, controls, and phase content.";
185
+ readonly directManifestNode: true;
186
+ readonly allowedChildren: readonly ["Badge", "Button", "ButtonGroup", "Card", "GameEntity", "Heading", "Icon", "Image", "Progress", "ProgressRing", "Text", "View"];
187
+ readonly blueprint: {
188
+ readonly label: "Game overlay";
189
+ readonly defaultProps: {
190
+ readonly placement: "fill";
191
+ readonly blocking: false;
192
+ readonly padding: 0;
193
+ };
194
+ };
195
+ readonly props: {
196
+ readonly placement: {
197
+ readonly type: "enum";
198
+ readonly category: "Layout";
199
+ readonly label: "Placement";
200
+ readonly enum: readonly ["fill", "center", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"];
201
+ readonly default: "fill";
202
+ readonly authoring: {
203
+ readonly authority: "instance";
204
+ };
205
+ };
206
+ readonly blocking: {
207
+ readonly type: "boolean";
208
+ readonly category: "Interaction";
209
+ readonly label: "Block pointer input";
210
+ readonly default: false;
211
+ readonly authoring: {
212
+ readonly authority: "instance";
213
+ };
214
+ };
215
+ readonly padding: {
216
+ readonly type: "number";
217
+ readonly category: "Layout";
218
+ readonly label: "Padding";
219
+ readonly default: 0;
220
+ readonly authoring: {
221
+ readonly authority: "instance";
222
+ };
223
+ };
224
+ readonly accessibilityLabel: {
225
+ readonly type: "string";
226
+ readonly category: "Accessibility";
227
+ readonly label: "Accessibility label";
228
+ readonly authoring: {
229
+ readonly authority: "instance";
230
+ };
231
+ };
232
+ };
233
+ };
234
+ };
235
+ readonly extensionHosts: readonly ["GameField", "GameEntity", "GameOverlay"];
236
+ readonly placements: readonly [{
237
+ readonly child: "GameField";
238
+ readonly parents: readonly ["Card", "Grid", "Screen", "ScreenSection", "View"];
239
+ }, {
240
+ readonly child: "GameEntity";
241
+ readonly parents: readonly ["GameField", "GameOverlay"];
242
+ }, {
243
+ readonly child: "GameOverlay";
244
+ readonly parents: readonly ["GameField"];
245
+ }];
246
+ };
247
+ //# sourceMappingURL=ZORA_GAME_PLUGIN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZORA_GAME_PLUGIN.d.ts","sourceRoot":"","sources":["../src/ZORA_GAME_PLUGIN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,yDAAyD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAGxF,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOnB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { GameEntity } from './features/game-presentation/adapters/inbound/GameEntity';
2
+ import { GameField } from './features/game-presentation/adapters/inbound/GameField';
3
+ import { GameOverlay } from './features/game-presentation/adapters/inbound/GameOverlay';
4
+ import { ZORA_PLUGIN_METADATA } from './ZORA_PLUGIN_METADATA';
5
+ /*** Expose the runtime component registry together with metadata for ZORA plugin consumers. */
6
+ export const ZORA_GAME_PLUGIN = {
7
+ ...ZORA_PLUGIN_METADATA,
8
+ componentRegistry: {
9
+ GameEntity,
10
+ GameField,
11
+ GameOverlay,
12
+ },
13
+ };
14
+ //# sourceMappingURL=ZORA_GAME_PLUGIN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZORA_GAME_PLUGIN.js","sourceRoot":"","sources":["../src/ZORA_GAME_PLUGIN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,yDAAyD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,oBAAoB;IACvB,iBAAiB,EAAE;QACjB,UAAU;QACV,SAAS;QACT,WAAW;KACZ;CACO,CAAC","sourcesContent":["import { GameEntity } from './features/game-presentation/adapters/inbound/GameEntity';\nimport { GameField } from './features/game-presentation/adapters/inbound/GameField';\nimport { GameOverlay } from './features/game-presentation/adapters/inbound/GameOverlay';\nimport { ZORA_PLUGIN_METADATA } from './ZORA_PLUGIN_METADATA';\n\n/*** Expose the runtime component registry together with metadata for ZORA plugin consumers. */\nexport const ZORA_GAME_PLUGIN = {\n ...ZORA_PLUGIN_METADATA,\n componentRegistry: {\n GameEntity,\n GameField,\n GameOverlay,\n },\n} as const;\n"]}