@ankhorage/zora 22.0.72 → 22.0.74

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 (477) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -1
  3. package/dist/{features/authoring/allowedChildren.d.ts → constants/authoring.d.ts} +40 -1
  4. package/dist/constants/authoring.d.ts.map +1 -0
  5. package/dist/{features/authoring/allowedChildren.js → constants/authoring.js} +53 -1
  6. package/dist/constants/authoring.js.map +1 -0
  7. package/dist/features/accordion/accordionItemMeta.js +1 -1
  8. package/dist/features/accordion/accordionItemMeta.js.map +1 -1
  9. package/dist/features/accordion/accordionMeta.js.map +1 -1
  10. package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -1
  11. package/dist/features/app-bar/appBarMeta.js.map +1 -1
  12. package/dist/features/auth/forgotPasswordFormMeta.js.map +1 -1
  13. package/dist/features/auth/oauthProviderButtonMeta.js.map +1 -1
  14. package/dist/features/auth/oauthProviderListMeta.js.map +1 -1
  15. package/dist/features/auth/otpFormMeta.js.map +1 -1
  16. package/dist/features/auth/signInFormMeta.js.map +1 -1
  17. package/dist/features/auth/signUpFormMeta.js.map +1 -1
  18. package/dist/features/bottom-sheet/bottomSheetMeta.js +1 -1
  19. package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -1
  20. package/dist/features/breadcrumbs/breadcrumbsMeta.js.map +1 -1
  21. package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -1
  22. package/dist/features/button/adapters/inbound/Button.js +2 -1
  23. package/dist/features/button/adapters/inbound/Button.js.map +1 -1
  24. package/dist/features/button/buttonGroupMeta.js.map +1 -1
  25. package/dist/features/button/buttonMeta.js +1 -1
  26. package/dist/features/button/buttonMeta.js.map +1 -1
  27. package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -1
  28. package/dist/features/card/adapters/inbound/Card.js +2 -1
  29. package/dist/features/card/adapters/inbound/Card.js.map +1 -1
  30. package/dist/features/card/cardMeta.js +2 -2
  31. package/dist/features/card/cardMeta.js.map +1 -1
  32. package/dist/features/card/mediaCardMeta.js +1 -1
  33. package/dist/features/card/mediaCardMeta.js.map +1 -1
  34. package/dist/features/card/postCardMeta.js +1 -1
  35. package/dist/features/card/postCardMeta.js.map +1 -1
  36. package/dist/features/card/productCardMeta.js.map +1 -1
  37. package/dist/features/chat/chatListItemMeta.js.map +1 -1
  38. package/dist/features/chat/messageBubbleMeta.js +1 -1
  39. package/dist/features/chat/messageBubbleMeta.js.map +1 -1
  40. package/dist/features/collection-editor/meta.js.map +1 -1
  41. package/dist/features/content-rail/contentRailMeta.js +1 -1
  42. package/dist/features/content-rail/contentRailMeta.js.map +1 -1
  43. package/dist/features/date-picker/datePickerMeta.js.map +1 -1
  44. package/dist/features/dialog/dialogMeta.js +1 -1
  45. package/dist/features/dialog/dialogMeta.js.map +1 -1
  46. package/dist/features/empty-state/emptyStateMeta.js.map +1 -1
  47. package/dist/features/form/checkbox/checkboxMeta.js.map +1 -1
  48. package/dist/features/form/field/meta.js.map +1 -1
  49. package/dist/features/form/formActionsMeta.js.map +1 -1
  50. package/dist/features/form/formErrorMeta.js.map +1 -1
  51. package/dist/features/form/formMeta.js.map +1 -1
  52. package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -1
  53. package/dist/features/form/radio/adapters/inbound/RadioGroup.js +2 -1
  54. package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
  55. package/dist/features/form/radio/radioMeta.js.map +1 -1
  56. package/dist/features/form/select/selectMeta.js.map +1 -1
  57. package/dist/features/form/switch/switchMeta.js.map +1 -1
  58. package/dist/features/form/text-input/textInputMeta.js.map +1 -1
  59. package/dist/features/game/{adapters/inbound → utils}/measureGameEntity.d.ts +1 -1
  60. package/dist/features/game/utils/measureGameEntity.d.ts.map +1 -0
  61. package/dist/features/game/utils/measureGameEntity.js.map +1 -0
  62. package/dist/features/game/utils/useGameEntityMeasurement.js +1 -1
  63. package/dist/features/game/utils/useGameEntityMeasurement.js.map +1 -1
  64. package/dist/features/gradient/gradientMeta.js +1 -1
  65. package/dist/features/gradient/gradientMeta.js.map +1 -1
  66. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphNodeOverlay.d.ts +1 -1
  67. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphNodeOverlay.d.ts.map +1 -1
  68. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphNodeOverlay.js.map +1 -1
  69. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts +1 -96
  70. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts.map +1 -1
  71. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js.map +1 -1
  72. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.d.ts +1 -1
  73. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.d.ts.map +1 -1
  74. package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.js.map +1 -1
  75. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.d.ts +1 -1
  76. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.d.ts.map +1 -1
  77. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js.map +1 -1
  78. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.d.ts +1 -1
  79. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.d.ts.map +1 -1
  80. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js.map +1 -1
  81. package/dist/features/graph-view/adapters/inbound/web-artifact/createRenderableGraphElements.d.ts +1 -1
  82. package/dist/features/graph-view/adapters/inbound/web-artifact/createRenderableGraphElements.d.ts.map +1 -1
  83. package/dist/features/graph-view/adapters/inbound/web-artifact/createRenderableGraphElements.js.map +1 -1
  84. package/dist/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.d.ts +1 -1
  85. package/dist/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.d.ts.map +1 -1
  86. package/dist/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.js.map +1 -1
  87. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.d.ts +1 -1
  88. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.d.ts.map +1 -1
  89. package/dist/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.js.map +1 -1
  90. package/dist/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.d.ts +1 -1
  91. package/dist/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.d.ts.map +1 -1
  92. package/dist/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.js.map +1 -1
  93. package/dist/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.d.ts +1 -1
  94. package/dist/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.d.ts.map +1 -1
  95. package/dist/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.js.map +1 -1
  96. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.d.ts +1 -1
  97. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.d.ts.map +1 -1
  98. package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.js.map +1 -1
  99. package/dist/features/graph-view/public.d.ts +2 -1
  100. package/dist/features/graph-view/public.d.ts.map +1 -1
  101. package/dist/features/graph-view/public.js +1 -1
  102. package/dist/features/graph-view/public.js.map +1 -1
  103. package/dist/features/hero/heroMeta.js.map +1 -1
  104. package/dist/features/icon/iconMeta.js.map +1 -1
  105. package/dist/features/image/imageMeta.js.map +1 -1
  106. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js +1 -1
  107. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js.map +1 -1
  108. package/dist/features/layout/appShellMeta.js.map +1 -1
  109. package/dist/features/layout/gridMeta.js +1 -1
  110. package/dist/features/layout/gridMeta.js.map +1 -1
  111. package/dist/features/layout/screenMeta.js +1 -1
  112. package/dist/features/layout/screenMeta.js.map +1 -1
  113. package/dist/features/layout/scrollViewMeta.js +1 -1
  114. package/dist/features/layout/scrollViewMeta.js.map +1 -1
  115. package/dist/features/layout/viewMeta.js +1 -1
  116. package/dist/features/layout/viewMeta.js.map +1 -1
  117. package/dist/features/list/flatListMeta.js +1 -1
  118. package/dist/features/list/flatListMeta.js.map +1 -1
  119. package/dist/features/list/meta.js.map +1 -1
  120. package/dist/features/missing-element/missingElementMeta.js.map +1 -1
  121. package/dist/features/palette-item/paletteItemMeta.js.map +1 -1
  122. package/dist/features/popover-menu/popoverMenuMeta.js.map +1 -1
  123. package/dist/features/progress/progressMeta.js.map +1 -1
  124. package/dist/features/reader/meta.js +1 -1
  125. package/dist/features/reader/meta.js.map +1 -1
  126. package/dist/features/{authoring → registry}/bindableComponentMeta.d.ts.map +1 -1
  127. package/dist/features/registry/bindableComponentMeta.js.map +1 -0
  128. package/dist/features/registry/componentMeta.d.ts.map +1 -0
  129. package/dist/features/{authoring → registry}/componentMeta.js +1 -1
  130. package/dist/features/registry/componentMeta.js.map +1 -0
  131. package/dist/features/{authoring/utils → registry}/createManifestBindings.d.ts +1 -1
  132. package/dist/features/registry/createManifestBindings.d.ts.map +1 -0
  133. package/dist/features/registry/createManifestBindings.js.map +1 -0
  134. package/dist/features/{authoring/utils → registry}/finalizeFeatureMetadata.d.ts +1 -1
  135. package/dist/features/registry/finalizeFeatureMetadata.d.ts.map +1 -0
  136. package/dist/features/{authoring/utils → registry}/finalizeFeatureMetadata.js +1 -1
  137. package/dist/features/registry/finalizeFeatureMetadata.js.map +1 -0
  138. package/dist/features/{authoring → registry}/index.d.ts +1 -1
  139. package/dist/features/registry/index.d.ts.map +1 -0
  140. package/dist/features/{authoring → registry}/index.js +1 -1
  141. package/dist/features/registry/index.js.map +1 -0
  142. package/dist/features/registry/themeRecipeMeta.d.ts.map +1 -0
  143. package/dist/features/registry/themeRecipeMeta.js.map +1 -0
  144. package/dist/features/scanner/meta.js +1 -1
  145. package/dist/features/scanner/meta.js.map +1 -1
  146. package/dist/features/section/screenSectionMeta.js +1 -1
  147. package/dist/features/section/screenSectionMeta.js.map +1 -1
  148. package/dist/features/section/sectionHeaderMeta.js.map +1 -1
  149. package/dist/features/selection/meta.js.map +1 -1
  150. package/dist/features/skeleton/skeletonMeta.js.map +1 -1
  151. package/dist/features/surface/surfaceMeta.js +1 -1
  152. package/dist/features/surface/surfaceMeta.js.map +1 -1
  153. package/dist/features/tabs/tabPanelMeta.js +1 -1
  154. package/dist/features/tabs/tabPanelMeta.js.map +1 -1
  155. package/dist/features/theme/ThemeModeToggle.meta.js.map +1 -1
  156. package/dist/features/theme/composition/useZoraThemeRecipe.d.ts +3 -1
  157. package/dist/features/theme/composition/useZoraThemeRecipe.d.ts.map +1 -1
  158. package/dist/features/theme/composition/useZoraThemeRecipe.js +3 -2
  159. package/dist/features/theme/composition/useZoraThemeRecipe.js.map +1 -1
  160. package/dist/features/theme/utils/resolveZoraThemeRecipe.d.ts +3 -1
  161. package/dist/features/theme/utils/resolveZoraThemeRecipe.d.ts.map +1 -1
  162. package/dist/features/theme/utils/resolveZoraThemeRecipe.js +6 -6
  163. package/dist/features/theme/utils/resolveZoraThemeRecipe.js.map +1 -1
  164. package/dist/features/time-picker/timePickerMeta.js.map +1 -1
  165. package/dist/features/timeline/meta.js.map +1 -1
  166. package/dist/features/toast/toastMeta.js.map +1 -1
  167. package/dist/features/toast/toastProviderMeta.js.map +1 -1
  168. package/dist/features/tree-view/meta.js.map +1 -1
  169. package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -1
  170. package/dist/features/typography/adapters/inbound/Heading.js +2 -1
  171. package/dist/features/typography/adapters/inbound/Heading.js.map +1 -1
  172. package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -1
  173. package/dist/features/typography/adapters/inbound/Text.js +2 -1
  174. package/dist/features/typography/adapters/inbound/Text.js.map +1 -1
  175. package/dist/features/typography/headingMeta.js +1 -1
  176. package/dist/features/typography/headingMeta.js.map +1 -1
  177. package/dist/features/typography/textMeta.js +1 -1
  178. package/dist/features/typography/textMeta.js.map +1 -1
  179. package/dist/index.d.ts +2 -2
  180. package/dist/index.d.ts.map +1 -1
  181. package/dist/index.js +1 -1
  182. package/dist/index.js.map +1 -1
  183. package/dist/types/auth.d.ts +1 -1
  184. package/dist/types/auth.d.ts.map +1 -1
  185. package/dist/types/auth.js.map +1 -1
  186. package/dist/types/avatar-group.d.ts +1 -1
  187. package/dist/types/avatar-group.d.ts.map +1 -1
  188. package/dist/types/avatar-group.js.map +1 -1
  189. package/dist/types/button-group.d.ts +1 -1
  190. package/dist/types/button-group.d.ts.map +1 -1
  191. package/dist/types/button-group.js.map +1 -1
  192. package/dist/types/chat.d.ts +1 -1
  193. package/dist/types/chat.d.ts.map +1 -1
  194. package/dist/types/chat.js.map +1 -1
  195. package/dist/types/gradient.d.ts +1 -1
  196. package/dist/types/gradient.d.ts.map +1 -1
  197. package/dist/types/gradient.js.map +1 -1
  198. package/dist/types/graph-view.d.ts +98 -0
  199. package/dist/types/graph-view.d.ts.map +1 -0
  200. package/dist/types/graph-view.js +2 -0
  201. package/dist/types/graph-view.js.map +1 -0
  202. package/dist/types/graphViewRuntime.d.ts +1 -1
  203. package/dist/types/graphViewRuntime.d.ts.map +1 -1
  204. package/dist/types/graphViewRuntime.js.map +1 -1
  205. package/dist/types/post-card.d.ts +1 -1
  206. package/dist/types/post-card.d.ts.map +1 -1
  207. package/dist/types/post-card.js.map +1 -1
  208. package/dist/types/radio.d.ts +1 -1
  209. package/dist/types/radio.d.ts.map +1 -1
  210. package/dist/types/radio.js.map +1 -1
  211. package/dist/types/scanner.d.ts +1 -1
  212. package/dist/types/scanner.d.ts.map +1 -1
  213. package/dist/types/scanner.js.map +1 -1
  214. package/dist/types/skeleton.d.ts +1 -1
  215. package/dist/types/skeleton.d.ts.map +1 -1
  216. package/dist/types/skeleton.js.map +1 -1
  217. package/dist/types/theme-mode-toggle.d.ts +1 -1
  218. package/dist/types/theme-mode-toggle.d.ts.map +1 -1
  219. package/dist/types/theme-mode-toggle.js.map +1 -1
  220. package/package.json +25 -25
  221. package/src/{features/authoring/allowedChildren.ts → constants/authoring.ts} +55 -0
  222. package/src/features/accordion/accordionItemMeta.ts +2 -2
  223. package/src/features/accordion/accordionMeta.ts +1 -1
  224. package/src/features/activity-indicator/activityIndicatorMeta.ts +1 -1
  225. package/src/features/app-bar/appBarMeta.ts +1 -1
  226. package/src/features/auth/forgotPasswordFormMeta.ts +1 -1
  227. package/src/features/auth/oauthProviderButtonMeta.ts +1 -1
  228. package/src/features/auth/oauthProviderListMeta.ts +1 -1
  229. package/src/features/auth/otpFormMeta.ts +1 -1
  230. package/src/features/auth/public.test.ts +21 -18
  231. package/src/features/auth/signInFormMeta.ts +1 -1
  232. package/src/features/auth/signUpFormMeta.ts +1 -1
  233. package/src/features/bottom-sheet/bottomSheetMeta.ts +1 -1
  234. package/src/features/breadcrumbs/breadcrumbsMeta.ts +1 -1
  235. package/src/features/button/adapters/inbound/Button.tsx +2 -1
  236. package/src/features/button/buttonGroupMeta.ts +1 -1
  237. package/src/features/button/buttonMeta.ts +2 -2
  238. package/src/features/card/adapters/inbound/Card.tsx +2 -1
  239. package/src/features/card/adapters/inbound/PostCard.test.tsx +4 -4
  240. package/src/features/card/adapters/inbound/ProductCard.test.tsx +9 -9
  241. package/src/features/card/cardMeta.ts +3 -3
  242. package/src/features/card/mediaCardMeta.ts +1 -1
  243. package/src/features/card/postCardMeta.ts +2 -2
  244. package/src/features/card/productCardMeta.ts +1 -1
  245. package/src/features/chat/adapters/inbound/ChatListItem.test.tsx +4 -4
  246. package/src/features/chat/chatListItemMeta.ts +1 -1
  247. package/src/features/chat/messageBubbleMeta.ts +2 -2
  248. package/src/features/collection-editor/meta.ts +1 -1
  249. package/src/features/content-rail/contentRailMeta.ts +2 -2
  250. package/src/features/date-picker/datePickerMeta.ts +1 -1
  251. package/src/features/date-picker/public.test.ts +4 -6
  252. package/src/features/dialog/dialogMeta.ts +1 -1
  253. package/src/features/empty-state/emptyStateMeta.ts +1 -1
  254. package/src/features/form/checkbox/checkboxMeta.ts +1 -1
  255. package/src/features/form/field/meta.ts +1 -1
  256. package/src/features/form/formActionsMeta.ts +1 -1
  257. package/src/features/form/formErrorMeta.ts +1 -1
  258. package/src/features/form/formMeta.ts +1 -1
  259. package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +2 -1
  260. package/src/features/form/radio/radioMeta.ts +1 -1
  261. package/src/features/form/select/selectMeta.ts +1 -1
  262. package/src/features/form/switch/switchMeta.ts +1 -1
  263. package/src/features/form/text-input/textInputMeta.ts +1 -1
  264. package/src/features/game/{adapters/inbound → utils}/measureGameEntity.ts +1 -1
  265. package/src/features/game/utils/useGameEntityMeasurement.ts +1 -1
  266. package/src/features/gradient/gradientMeta.ts +2 -2
  267. package/src/features/gradient/public.test.ts +4 -6
  268. package/src/features/graph-view/adapters/inbound/web-artifact/GraphNodeOverlay.tsx +1 -1
  269. package/src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx +6 -116
  270. package/src/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.ts +1 -1
  271. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphController.ts +1 -1
  272. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.test.ts +2 -2
  273. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts +8 -8
  274. package/src/features/graph-view/adapters/inbound/web-artifact/createRenderableGraphElements.test.ts +1 -1
  275. package/src/features/graph-view/adapters/inbound/web-artifact/createRenderableGraphElements.ts +1 -1
  276. package/src/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.ts +1 -1
  277. package/src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts +1 -1
  278. package/src/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.ts +1 -1
  279. package/src/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.ts +1 -1
  280. package/src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts +1 -1
  281. package/src/features/graph-view/public.ts +18 -18
  282. package/src/features/hero/heroMeta.ts +1 -1
  283. package/src/features/icon/iconMeta.ts +1 -1
  284. package/src/features/icon/utils/meta.test.ts +8 -17
  285. package/src/features/image/imageMeta.ts +1 -1
  286. package/src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts +1 -1
  287. package/src/features/layout/appShellMeta.ts +1 -1
  288. package/src/features/layout/gridMeta.ts +2 -2
  289. package/src/features/layout/screenMeta.ts +2 -2
  290. package/src/features/layout/scrollViewMeta.ts +1 -1
  291. package/src/features/layout/viewMeta.ts +2 -2
  292. package/src/features/list/flatListMeta.ts +1 -1
  293. package/src/features/list/meta.ts +1 -1
  294. package/src/features/missing-element/MissingElement.test.ts +7 -6
  295. package/src/features/missing-element/missingElementMeta.ts +1 -1
  296. package/src/features/palette-item/paletteItemMeta.ts +1 -1
  297. package/src/features/popover-menu/popoverMenuMeta.ts +1 -1
  298. package/src/features/progress/progressMeta.ts +1 -1
  299. package/src/features/reader/meta.ts +2 -2
  300. package/src/features/{authoring → registry}/componentMeta.ts +1 -1
  301. package/src/features/{authoring/utils → registry}/createManifestBindings.ts +1 -1
  302. package/src/features/{authoring → registry}/featureManifest.test.ts +1 -1
  303. package/src/features/{authoring/utils → registry}/finalizeFeatureMetadata.ts +2 -2
  304. package/src/features/{authoring → registry}/index.ts +1 -1
  305. package/src/features/scanner/meta.ts +2 -2
  306. package/src/features/section/screenSectionMeta.ts +2 -2
  307. package/src/features/section/sectionHeaderMeta.ts +1 -1
  308. package/src/features/selection/meta.ts +1 -1
  309. package/src/features/skeleton/public.test.ts +6 -6
  310. package/src/features/skeleton/skeletonMeta.ts +1 -1
  311. package/src/features/surface/surfaceMeta.ts +1 -1
  312. package/src/features/tabs/tabPanelMeta.ts +1 -1
  313. package/src/features/theme/ThemeModeToggle.meta.ts +1 -1
  314. package/src/features/theme/composition/useZoraThemeRecipe.ts +4 -2
  315. package/src/features/theme/utils/resolveZoraThemeRecipe.test.ts +45 -8
  316. package/src/features/theme/utils/resolveZoraThemeRecipe.ts +11 -8
  317. package/src/features/time-picker/public.test.ts +4 -6
  318. package/src/features/time-picker/timePickerMeta.ts +1 -1
  319. package/src/features/timeline/meta.ts +1 -1
  320. package/src/features/toast/public.test.ts +4 -3
  321. package/src/features/toast/toastMeta.ts +1 -1
  322. package/src/features/toast/toastProviderMeta.ts +1 -1
  323. package/src/features/tree-view/meta.ts +1 -1
  324. package/src/features/typography/adapters/inbound/Heading.tsx +2 -1
  325. package/src/features/typography/adapters/inbound/Text.tsx +2 -1
  326. package/src/features/typography/headingMeta.ts +2 -2
  327. package/src/features/typography/textMeta.ts +2 -2
  328. package/src/features/uploader/public.test.ts +1 -1
  329. package/src/index.ts +33 -33
  330. package/src/structureOwnership.test.ts +3 -3
  331. package/src/types/auth.ts +1 -1
  332. package/src/types/avatar-group.ts +1 -1
  333. package/src/types/button-group.ts +1 -1
  334. package/src/types/chat.ts +1 -1
  335. package/src/types/gradient.ts +1 -1
  336. package/src/types/graph-view.ts +117 -0
  337. package/src/types/graphViewRuntime.ts +1 -1
  338. package/src/types/post-card.ts +1 -1
  339. package/src/types/radio.ts +1 -1
  340. package/src/types/scanner.ts +1 -1
  341. package/src/types/skeleton.ts +1 -1
  342. package/src/types/theme-mode-toggle.ts +1 -1
  343. package/web-dist/chunks/{Accordion-jd33dw92.js → Accordion-07rdw2vh.js} +1 -1
  344. package/web-dist/chunks/{Accordion-sn80af3k.js → Accordion-45ej9brb.js} +1 -1
  345. package/web-dist/chunks/{Accordion-qyckg9d2.js → Accordion-555gnfmw.js} +3 -3
  346. package/web-dist/chunks/{Accordion-ypdtx57y.js → Accordion-73m7z73v.js} +3 -3
  347. package/web-dist/chunks/{Accordion-s334j5tf.js → Accordion-8af800ts.js} +2 -2
  348. package/web-dist/chunks/{Accordion-7ycn5332.js → Accordion-9rnepkvk.js} +1 -1
  349. package/web-dist/chunks/{Accordion-1vbm971q.js → Accordion-avmgvcef.js} +1 -1
  350. package/web-dist/chunks/{Accordion-a03xpbc0.js → Accordion-b3qy1trj.js} +39 -7
  351. package/web-dist/chunks/Accordion-e1nn8m46.js +82 -0
  352. package/web-dist/chunks/{Accordion-eps4ej1m.js → Accordion-emczc5rg.js} +33 -5
  353. package/web-dist/chunks/{Accordion-wzybs1e3.js → Accordion-jhwsvx3g.js} +1 -1
  354. package/web-dist/chunks/{Accordion-qy22k9t8.js → Accordion-jj3bg8c1.js} +1 -1
  355. package/web-dist/chunks/{Accordion-nn80tt99.js → Accordion-mpnb4qqw.js} +2 -2
  356. package/web-dist/chunks/{Accordion-z5rdysmt.js → Accordion-nc5gnvnb.js} +33 -4
  357. package/web-dist/chunks/{Accordion-qkrwkab6.js → Accordion-nn38n7q4.js} +1 -1
  358. package/web-dist/chunks/{Accordion-zh8esf04.js → Accordion-pnvt10cv.js} +2 -2
  359. package/web-dist/chunks/{Accordion-4prv90j4.js → Accordion-qvt6qdqm.js} +1 -1
  360. package/web-dist/chunks/{Accordion-hk6zs4dc.js → Accordion-tj61sa5s.js} +2 -2
  361. package/web-dist/chunks/{Accordion-5r2dxq03.js → Accordion-v1dtv6v0.js} +1 -1
  362. package/web-dist/chunks/{Accordion-5t5sw5cp.js → Accordion-vmz8y01b.js} +4 -4
  363. package/web-dist/chunks/{Accordion-pssgp0pq.js → Accordion-ycmg06sq.js} +71 -4
  364. package/web-dist/chunks/{Accordion-h62mzp3n.js → Accordion-yz7b7njb.js} +2 -2
  365. package/web-dist/chunks/{Accordion-2ga47602.js → Accordion-zf3kzvef.js} +1 -1
  366. package/web-dist/components/accordion/Accordion.js +3 -3
  367. package/web-dist/components/accordion-item/AccordionItem.js +3 -3
  368. package/web-dist/components/app-bar/AppBar.js +4 -4
  369. package/web-dist/components/avatar/Avatar.js +3 -3
  370. package/web-dist/components/avatar-group/AvatarGroup.js +3 -3
  371. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +6 -6
  372. package/web-dist/components/breadcrumbs/Breadcrumbs.js +3 -3
  373. package/web-dist/components/button/Button.js +2 -2
  374. package/web-dist/components/button-group/ButtonGroup.js +2 -2
  375. package/web-dist/components/camera-permission-view/CameraPermissionView.js +6 -6
  376. package/web-dist/components/card/Card.js +5 -5
  377. package/web-dist/components/chat-list-item/ChatListItem.js +4 -4
  378. package/web-dist/components/checkbox/Checkbox.js +3 -3
  379. package/web-dist/components/checkbox-group/CheckboxGroup.js +3 -3
  380. package/web-dist/components/chip/Chip.js +3 -3
  381. package/web-dist/components/chip-group/ChipGroup.js +3 -3
  382. package/web-dist/components/collection-editor/CollectionEditor.js +5 -5
  383. package/web-dist/components/content-rail/ContentRail.js +3 -3
  384. package/web-dist/components/data-table/DataTable.js +9 -9
  385. package/web-dist/components/date-picker/DatePicker.js +3 -3
  386. package/web-dist/components/dialog/Dialog.js +3 -3
  387. package/web-dist/components/empty-state/EmptyState.js +6 -6
  388. package/web-dist/components/field/Field.js +3 -3
  389. package/web-dist/components/flat-list/FlatList.js +4 -4
  390. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +7 -7
  391. package/web-dist/components/form/Form.js +5 -5
  392. package/web-dist/components/form-actions/FormActions.js +5 -5
  393. package/web-dist/components/form-error/FormError.js +5 -5
  394. package/web-dist/components/game/Game.js +1 -1
  395. package/web-dist/components/game-entity/GameEntity.js +1 -1
  396. package/web-dist/components/game-field/GameField.js +1 -1
  397. package/web-dist/components/game-input-zone/GameInputZone.js +1 -1
  398. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +1 -1
  399. package/web-dist/components/game-overlay/GameOverlay.js +1 -1
  400. package/web-dist/components/graph-view/GraphView.d.ts +1 -96
  401. package/web-dist/components/heading/Heading.js +2 -2
  402. package/web-dist/components/hero/Hero.js +5 -5
  403. package/web-dist/components/icon-button/IconButton.js +2 -2
  404. package/web-dist/components/list/List.js +4 -4
  405. package/web-dist/components/list-item/ListItem.js +4 -4
  406. package/web-dist/components/list-section/ListSection.js +4 -4
  407. package/web-dist/components/media-card/MediaCard.js +5 -5
  408. package/web-dist/components/message-bubble/MessageBubble.js +4 -4
  409. package/web-dist/components/metric-card/MetricCard.js +5 -5
  410. package/web-dist/components/missing-element/MissingElement.js +2 -2
  411. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +7 -7
  412. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +7 -7
  413. package/web-dist/components/otp-form/OtpForm.js +7 -7
  414. package/web-dist/components/pagination/Pagination.js +3 -3
  415. package/web-dist/components/palette-item/PaletteItem.js +5 -5
  416. package/web-dist/components/post-card/PostCard.js +5 -5
  417. package/web-dist/components/product-card/ProductCard.js +5 -5
  418. package/web-dist/components/progress/Progress.js +3 -3
  419. package/web-dist/components/progress-ring/ProgressRing.js +3 -3
  420. package/web-dist/components/radio/Radio.js +3 -3
  421. package/web-dist/components/radio-group/RadioGroup.js +3 -3
  422. package/web-dist/components/reader-surface/ReaderSurface.js +5 -5
  423. package/web-dist/components/scan-overlay/ScanOverlay.js +6 -6
  424. package/web-dist/components/screen-section/ScreenSection.js +3 -3
  425. package/web-dist/components/search-input/SearchInput.js +3 -3
  426. package/web-dist/components/section-header/SectionHeader.js +3 -3
  427. package/web-dist/components/section-list/SectionList.js +4 -4
  428. package/web-dist/components/select/Select.js +2 -2
  429. package/web-dist/components/sign-in-form/SignInForm.js +7 -7
  430. package/web-dist/components/sign-up-form/SignUpForm.js +7 -7
  431. package/web-dist/components/skeleton/Skeleton.js +8 -8
  432. package/web-dist/components/skeleton-card/SkeletonCard.js +8 -8
  433. package/web-dist/components/skeleton-list/SkeletonList.js +8 -8
  434. package/web-dist/components/skeleton-text/SkeletonText.js +8 -8
  435. package/web-dist/components/text/Text.js +2 -2
  436. package/web-dist/components/text-input/TextInput.js +3 -3
  437. package/web-dist/components/time-picker/TimePicker.js +3 -3
  438. package/web-dist/components/timeline/Timeline.js +2 -2
  439. package/web-dist/components/toolbar/Toolbar.js +5 -5
  440. package/web-dist/components/tree-item/TreeItem.js +5 -5
  441. package/web-dist/components/uploader/Uploader.js +7 -7
  442. package/web-dist/manifest.json +354 -354
  443. package/dist/features/authoring/allowedChildren.d.ts.map +0 -1
  444. package/dist/features/authoring/allowedChildren.js.map +0 -1
  445. package/dist/features/authoring/bindableComponentMeta.js.map +0 -1
  446. package/dist/features/authoring/componentMeta.d.ts.map +0 -1
  447. package/dist/features/authoring/componentMeta.js.map +0 -1
  448. package/dist/features/authoring/constants.d.ts +0 -40
  449. package/dist/features/authoring/constants.d.ts.map +0 -1
  450. package/dist/features/authoring/constants.js +0 -53
  451. package/dist/features/authoring/constants.js.map +0 -1
  452. package/dist/features/authoring/index.d.ts.map +0 -1
  453. package/dist/features/authoring/index.js.map +0 -1
  454. package/dist/features/authoring/themeRecipeMeta.d.ts.map +0 -1
  455. package/dist/features/authoring/themeRecipeMeta.js.map +0 -1
  456. package/dist/features/authoring/utils/createManifestBindings.d.ts.map +0 -1
  457. package/dist/features/authoring/utils/createManifestBindings.js.map +0 -1
  458. package/dist/features/authoring/utils/finalizeFeatureMetadata.d.ts.map +0 -1
  459. package/dist/features/authoring/utils/finalizeFeatureMetadata.js.map +0 -1
  460. package/dist/features/game/adapters/inbound/measureGameEntity.d.ts.map +0 -1
  461. package/dist/features/game/adapters/inbound/measureGameEntity.js.map +0 -1
  462. package/src/features/authoring/constants.ts +0 -56
  463. package/web-dist/chunks/Accordion-wvphg9x4.js +0 -246
  464. /package/dist/features/game/{adapters/inbound → utils}/measureGameEntity.js +0 -0
  465. /package/dist/features/{authoring → registry}/bindableComponentMeta.d.ts +0 -0
  466. /package/dist/features/{authoring → registry}/bindableComponentMeta.js +0 -0
  467. /package/dist/features/{authoring → registry}/componentMeta.d.ts +0 -0
  468. /package/dist/features/{authoring/utils → registry}/createManifestBindings.js +0 -0
  469. /package/dist/features/{authoring → registry}/themeRecipeMeta.d.ts +0 -0
  470. /package/dist/features/{authoring → registry}/themeRecipeMeta.js +0 -0
  471. /package/src/features/{authoring → registry}/authoringMeta.test.ts +0 -0
  472. /package/src/features/{authoring → registry}/bindableComponentMeta.test.ts +0 -0
  473. /package/src/features/{authoring → registry}/bindableComponentMeta.ts +0 -0
  474. /package/src/features/{authoring → registry}/componentMeta.test.ts +0 -0
  475. /package/src/features/{authoring → registry}/radioGroupReachability.test.ts +0 -0
  476. /package/src/features/{authoring → registry}/themeRecipeMeta.test.ts +0 -0
  477. /package/src/features/{authoring → registry}/themeRecipeMeta.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { Core } from 'cytoscape';
2
- import type { GraphViewFitOptions } from './GraphView';
2
+ import type { GraphViewFitOptions } from '../../../../../types/graph-view';
3
3
  /*** Fit the requested visible nodes and never include edge geometry in viewport bounds. */
4
4
  export declare function fitGraphViewport(cy: Core, options?: GraphViewFitOptions, maxZoom?: number): boolean;
5
5
  //# sourceMappingURL=fitGraphViewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fitGraphViewport.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,IAAI,EACR,OAAO,GAAE,mBAAwB,EACjC,OAAO,SAAW,GACjB,OAAO,CAWT"}
1
+ {"version":3,"file":"fitGraphViewport.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,IAAI,EACR,OAAO,GAAE,mBAAwB,EACjC,OAAO,SAAW,GACjB,OAAO,CAWT"}
@@ -1 +1 @@
1
- {"version":3,"file":"fitGraphViewport.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.ts"],"names":[],"mappings":"AAIA,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAC9B,EAAQ,EACR,UAA+B,EAAE,EACjC,OAAO,GAAG,QAAQ;IAElB,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO,KAAK,CAAC;IACjC,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,KAAK,CAAC,KAAK,EAAE;QAAE,OAAO,KAAK,CAAC;IAEhC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;QACxB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,2FAA2F;AAC3F,SAAS,WAAW,CAAC,EAAQ,EAAE,OAAsC;IACnE,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;IACrE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import type { Core } from 'cytoscape';\n\nimport type { GraphViewFitOptions } from './GraphView';\n\n/*** Fit the requested visible nodes and never include edge geometry in viewport bounds. */\nexport function fitGraphViewport(\n cy: Core,\n options: GraphViewFitOptions = {},\n maxZoom = Infinity,\n): boolean {\n if (cy.destroyed()) return false;\n const nodes = getFitNodes(cy, options.nodeIds);\n if (nodes.empty()) return false;\n\n cy.fit(nodes, options.padding ?? 50);\n if (cy.zoom() > maxZoom) {\n cy.zoom(maxZoom);\n cy.center(nodes);\n }\n return true;\n}\n\n/*** Resolve an optional node-id target without ever adding edges to the fit collection. */\nfunction getFitNodes(cy: Core, nodeIds: readonly string[] | undefined) {\n if (nodeIds === undefined || nodeIds.length === 0) return cy.nodes();\n const requestedIds = new Set(nodeIds);\n return cy.nodes().filter((node) => requestedIds.has(node.id()));\n}\n"]}
1
+ {"version":3,"file":"fitGraphViewport.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.ts"],"names":[],"mappings":"AAIA,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAC9B,EAAQ,EACR,UAA+B,EAAE,EACjC,OAAO,GAAG,QAAQ;IAElB,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO,KAAK,CAAC;IACjC,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,KAAK,CAAC,KAAK,EAAE;QAAE,OAAO,KAAK,CAAC;IAEhC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IACrC,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;QACxB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjB,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,2FAA2F;AAC3F,SAAS,WAAW,CAAC,EAAQ,EAAE,OAAsC;IACnE,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;IACrE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import type { Core } from 'cytoscape';\n\nimport type { GraphViewFitOptions } from '../../../../../types/graph-view';\n\n/*** Fit the requested visible nodes and never include edge geometry in viewport bounds. */\nexport function fitGraphViewport(\n cy: Core,\n options: GraphViewFitOptions = {},\n maxZoom = Infinity,\n): boolean {\n if (cy.destroyed()) return false;\n const nodes = getFitNodes(cy, options.nodeIds);\n if (nodes.empty()) return false;\n\n cy.fit(nodes, options.padding ?? 50);\n if (cy.zoom() > maxZoom) {\n cy.zoom(maxZoom);\n cy.center(nodes);\n }\n return true;\n}\n\n/*** Resolve an optional node-id target without ever adding edges to the fit collection. */\nfunction getFitNodes(cy: Core, nodeIds: readonly string[] | undefined) {\n if (nodeIds === undefined || nodeIds.length === 0) return cy.nodes();\n const requestedIds = new Set(nodeIds);\n return cy.nodes().filter((node) => requestedIds.has(node.id()));\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { GraphViewEdge, GraphViewNode } from './GraphView';
1
+ import type { GraphViewEdge, GraphViewNode } from '../../../../../types/graph-view';
2
2
  /***
3
3
  * Identify visible graph membership and hierarchy independently of presentation metadata.
4
4
  * Keep presentation-only changes out of the relayout decision.
@@ -1 +1 @@
1
- {"version":3,"file":"getGraphTopologyKey.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,GAC9B,MAAM,CAKR"}
1
+ {"version":3,"file":"getGraphTopologyKey.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEpF;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,GAC9B,MAAM,CAKR"}
@@ -1 +1 @@
1
- {"version":3,"file":"getGraphTopologyKey.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAA+B,EAC/B,KAA+B;IAE/B,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;QAC5D,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE;KACxE,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { GraphViewEdge, GraphViewNode } from './GraphView';\n\n/***\n * Identify visible graph membership and hierarchy independently of presentation metadata.\n * Keep presentation-only changes out of the relayout decision.\n */\nexport function getGraphTopologyKey(\n nodes: readonly GraphViewNode[],\n edges: readonly GraphViewEdge[],\n): string {\n return JSON.stringify([\n nodes.map((node) => [node.id, node.parentId ?? null]).sort(),\n edges.map((edge) => [edge.id ?? null, edge.source, edge.target]).sort(),\n ]);\n}\n"]}
1
+ {"version":3,"file":"getGraphTopologyKey.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/getGraphTopologyKey.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAA+B,EAC/B,KAA+B;IAE/B,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;QAC5D,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE;KACxE,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { GraphViewEdge, GraphViewNode } from '../../../../../types/graph-view';\n\n/***\n * Identify visible graph membership and hierarchy independently of presentation metadata.\n * Keep presentation-only changes out of the relayout decision.\n */\nexport function getGraphTopologyKey(\n nodes: readonly GraphViewNode[],\n edges: readonly GraphViewEdge[],\n): string {\n return JSON.stringify([\n nodes.map((node) => [node.id, node.parentId ?? null]).sort(),\n edges.map((edge) => [edge.id ?? null, edge.source, edge.target]).sort(),\n ]);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { Core } from 'cytoscape';
2
- import type { GraphViewRenderedNode } from './GraphView';
2
+ import type { GraphViewRenderedNode } from '../../../../../types/graph-view';
3
3
  /*** Read React-overlay node state from Cytoscape's authoritative rendered positions. */
4
4
  export declare function readGraphRenderedNodes(cy: Core, hoveredNodeIds: ReadonlySet<string>): readonly GraphViewRenderedNode[];
5
5
  //# sourceMappingURL=readGraphRenderedNodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readGraphRenderedNodes.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,wFAAwF;AACxF,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,IAAI,EACR,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAClC,SAAS,qBAAqB,EAAE,CAWlC"}
1
+ {"version":3,"file":"readGraphRenderedNodes.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,wFAAwF;AACxF,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,IAAI,EACR,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAClC,SAAS,qBAAqB,EAAE,CAWlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"readGraphRenderedNodes.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.ts"],"names":[],"mappings":"AAIA,wFAAwF;AACxF,MAAM,UAAU,sBAAsB,CACpC,EAAQ,EACR,cAAmC;IAEnC,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO,EAAE,CAAC;IAC9B,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;IAEvB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/B,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACtC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE;QACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;QACzB,IAAI;KACL,CAAC,CAAC,CAAC;AACN,CAAC","sourcesContent":["import type { Core } from 'cytoscape';\n\nimport type { GraphViewRenderedNode } from './GraphView';\n\n/*** Read React-overlay node state from Cytoscape's authoritative rendered positions. */\nexport function readGraphRenderedNodes(\n cy: Core,\n hoveredNodeIds: ReadonlySet<string>,\n): readonly GraphViewRenderedNode[] {\n if (cy.destroyed()) return [];\n const zoom = cy.zoom();\n\n return cy.nodes().map((node) => ({\n hovered: hoveredNodeIds.has(node.id()),\n id: node.id(),\n position: node.renderedPosition(),\n selected: node.selected(),\n zoom,\n }));\n}\n"]}
1
+ {"version":3,"file":"readGraphRenderedNodes.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/readGraphRenderedNodes.ts"],"names":[],"mappings":"AAIA,wFAAwF;AACxF,MAAM,UAAU,sBAAsB,CACpC,EAAQ,EACR,cAAmC;IAEnC,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO,EAAE,CAAC;IAC9B,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;IAEvB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/B,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACtC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE;QACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;QACzB,IAAI;KACL,CAAC,CAAC,CAAC;AACN,CAAC","sourcesContent":["import type { Core } from 'cytoscape';\n\nimport type { GraphViewRenderedNode } from '../../../../../types/graph-view';\n\n/*** Read React-overlay node state from Cytoscape's authoritative rendered positions. */\nexport function readGraphRenderedNodes(\n cy: Core,\n hoveredNodeIds: ReadonlySet<string>,\n): readonly GraphViewRenderedNode[] {\n if (cy.destroyed()) return [];\n const zoom = cy.zoom();\n\n return cy.nodes().map((node) => ({\n hovered: hoveredNodeIds.has(node.id()),\n id: node.id(),\n position: node.renderedPosition(),\n selected: node.selected(),\n zoom,\n }));\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { Core } from 'cytoscape';
2
- import type { GraphViewLayoutName } from './GraphView';
2
+ import type { GraphViewLayoutName } from '../../../../../types/graph-view';
3
3
  interface RunGraphLayoutInput {
4
4
  readonly layout: GraphViewLayoutName;
5
5
  readonly layoutOptions?: Readonly<Record<string, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"runGraphLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,WAAW,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,UAAU,kBAAkB;IAC1B,IAAI,IAAI,IAAI,CAAC;CACd;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAC5B,EAAE,EAAE,IAAI,EACR,KAAK,EAAE,mBAAmB,EAC1B,UAAU,EAAE,MAAM,IAAI,GACrB,kBAAkB,CAcpB"}
1
+ {"version":3,"file":"runGraphLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,WAAW,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,UAAU,kBAAkB;IAC1B,IAAI,IAAI,IAAI,CAAC;CACd;AAED,6FAA6F;AAC7F,wBAAgB,cAAc,CAC5B,EAAE,EAAE,IAAI,EACR,KAAK,EAAE,mBAAmB,EAC1B,UAAU,EAAE,MAAM,IAAI,GACrB,kBAAkB,CAcpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"runGraphLayout.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAYlE,6FAA6F;AAC7F,MAAM,UAAU,cAAc,CAC5B,EAAQ,EACR,KAA0B,EAC1B,UAAsB;IAEtB,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;QAC3B,OAAO,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;IAC5E,CAAC;IACD,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC;IACtC,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACrC,MAAM,CAAC,GAAG,EAAE,CAAC;IAEb,OAAO;QACL,IAAI;YACF,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iFAAiF;AACjF,SAAS,mBAAmB,CAAC,KAA0B;IACrD,OAAO;QACL,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,EAAE,CAAC;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM;QAClB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,2BAA2B,EAAE,IAAI;QACjC,GAAG,EAAE,KAAK;QACV,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,SAAS,eAAe,CAAC,MAAe,EAAE,UAAsB;IAC9D,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACrC,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,2DAA2D;IAC7D,CAAC;AACH,CAAC","sourcesContent":["import type { Core, LayoutOptions, Layouts } from 'cytoscape';\n\nimport type { GraphViewLayoutName } from './GraphView';\nimport { runDetachedGraphLayout } from './runDetachedGraphLayout';\n\ninterface RunGraphLayoutInput {\n readonly layout: GraphViewLayoutName;\n readonly layoutOptions?: Readonly<Record<string, unknown>>;\n readonly spacingFactor: number;\n}\n\ninterface GraphLayoutSession {\n stop(): void;\n}\n\n/*** Run one Cytoscape layout with automatic fitting disabled and explicit stop ownership. */\nexport function runGraphLayout(\n cy: Core,\n input: RunGraphLayoutInput,\n onComplete: () => void,\n): GraphLayoutSession {\n if (input.layout === 'elk') {\n return runDetachedGraphLayout(cy, createLayoutOptions(input), onComplete);\n }\n const layout = cy.layout(createLayoutOptions(input));\n const handleStop = () => onComplete();\n layout.one('layoutstop', handleStop);\n layout.run();\n\n return {\n stop() {\n stopGraphLayout(layout, handleStop);\n },\n };\n}\n\n/*** Build layout options while reserving fit ownership for the graph runtime. */\nfunction createLayoutOptions(input: RunGraphLayoutInput): LayoutOptions {\n return {\n ...(input.layoutOptions ?? {}),\n name: input.layout,\n spacingFactor: input.spacingFactor,\n nodeDimensionsIncludeLabels: true,\n fit: false,\n animate: false,\n };\n}\n\n/*** Stop one layout without allowing its stale layout-stop callback to escape. */\nfunction stopGraphLayout(layout: Layouts, handleStop: () => void) {\n layout.off('layoutstop', handleStop);\n try {\n layout.stop();\n } catch {\n // Cytoscape may already have disposed a superseded layout.\n }\n}\n"]}
1
+ {"version":3,"file":"runGraphLayout.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAYlE,6FAA6F;AAC7F,MAAM,UAAU,cAAc,CAC5B,EAAQ,EACR,KAA0B,EAC1B,UAAsB;IAEtB,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;QAC3B,OAAO,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;IAC5E,CAAC;IACD,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC;IACtC,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACrC,MAAM,CAAC,GAAG,EAAE,CAAC;IAEb,OAAO;QACL,IAAI;YACF,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iFAAiF;AACjF,SAAS,mBAAmB,CAAC,KAA0B;IACrD,OAAO;QACL,GAAG,CAAC,KAAK,CAAC,aAAa,IAAI,EAAE,CAAC;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM;QAClB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,2BAA2B,EAAE,IAAI;QACjC,GAAG,EAAE,KAAK;QACV,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,SAAS,eAAe,CAAC,MAAe,EAAE,UAAsB;IAC9D,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACrC,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,2DAA2D;IAC7D,CAAC;AACH,CAAC","sourcesContent":["import type { Core, LayoutOptions, Layouts } from 'cytoscape';\n\nimport type { GraphViewLayoutName } from '../../../../../types/graph-view';\nimport { runDetachedGraphLayout } from './runDetachedGraphLayout';\n\ninterface RunGraphLayoutInput {\n readonly layout: GraphViewLayoutName;\n readonly layoutOptions?: Readonly<Record<string, unknown>>;\n readonly spacingFactor: number;\n}\n\ninterface GraphLayoutSession {\n stop(): void;\n}\n\n/*** Run one Cytoscape layout with automatic fitting disabled and explicit stop ownership. */\nexport function runGraphLayout(\n cy: Core,\n input: RunGraphLayoutInput,\n onComplete: () => void,\n): GraphLayoutSession {\n if (input.layout === 'elk') {\n return runDetachedGraphLayout(cy, createLayoutOptions(input), onComplete);\n }\n const layout = cy.layout(createLayoutOptions(input));\n const handleStop = () => onComplete();\n layout.one('layoutstop', handleStop);\n layout.run();\n\n return {\n stop() {\n stopGraphLayout(layout, handleStop);\n },\n };\n}\n\n/*** Build layout options while reserving fit ownership for the graph runtime. */\nfunction createLayoutOptions(input: RunGraphLayoutInput): LayoutOptions {\n return {\n ...(input.layoutOptions ?? {}),\n name: input.layout,\n spacingFactor: input.spacingFactor,\n nodeDimensionsIncludeLabels: true,\n fit: false,\n animate: false,\n };\n}\n\n/*** Stop one layout without allowing its stale layout-stop callback to escape. */\nfunction stopGraphLayout(layout: Layouts, handleStop: () => void) {\n layout.off('layoutstop', handleStop);\n try {\n layout.stop();\n } catch {\n // Cytoscape may already have disposed a superseded layout.\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { Core } from 'cytoscape';
2
- import type { GraphViewEdge, GraphViewNode } from './GraphView';
2
+ import type { GraphViewEdge, GraphViewNode } from '../../../../../types/graph-view';
3
3
  /***
4
4
  * Reconciles graph data in one batch while retaining positions, selection and element identity.
5
5
  * Do not replace this with remove-all/add-all: presentation updates must not discard interaction
@@ -1 +1 @@
1
- {"version":3,"file":"syncGraphElements.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGtC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,IAAI,EACR,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,QAgBhC"}
1
+ {"version":3,"file":"syncGraphElements.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGpF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,IAAI,EACR,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,QAgBhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"syncGraphElements.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAGhF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAC/B,EAAQ,EACR,KAA+B,EAC/B,KAA+B;IAE/B,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO;IAE3B,MAAM,QAAQ,GAAG,6BAA6B,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7D,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;QACZ,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,QAAQ,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAY,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CACjE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAC3C,CAAC;YACF,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC;gBAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3E,CAAC;QACD,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { isRecord } from '@ankhorage/utility/object';\nimport type { Core } from 'cytoscape';\n\nimport { createRenderableGraphElements } from './createRenderableGraphElements';\nimport type { GraphViewEdge, GraphViewNode } from './GraphView';\n\n/***\n * Reconciles graph data in one batch while retaining positions, selection and element identity.\n * Do not replace this with remove-all/add-all: presentation updates must not discard interaction\n * state or force the runtime to rebuild the graph. Use direct ID lookups for obsolete metadata;\n * per-element selector scans would add avoidable work. Runtime tests cover hover/selection updates.\n */\nexport function syncGraphElements(\n cy: Core,\n nodes: readonly GraphViewNode[],\n edges: readonly GraphViewEdge[],\n) {\n if (cy.destroyed()) return;\n\n const elements = createRenderableGraphElements(nodes, edges);\n cy.batch(() => {\n for (const element of elements) {\n const existing = cy.getElementById(element.data.id ?? '');\n const data: unknown = existing.data();\n const obsoleteKeys = Object.keys(isRecord(data) ? data : {}).filter(\n (key) => !Object.hasOwn(element.data, key),\n );\n if (obsoleteKeys.length > 0) existing.removeData(obsoleteKeys.join(' '));\n }\n cy.json({ elements });\n });\n}\n"]}
1
+ {"version":3,"file":"syncGraphElements.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAC/B,EAAQ,EACR,KAA+B,EAC/B,KAA+B;IAE/B,IAAI,EAAE,CAAC,SAAS,EAAE;QAAE,OAAO;IAE3B,MAAM,QAAQ,GAAG,6BAA6B,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7D,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;QACZ,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,QAAQ,GAAG,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAY,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CACjE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAC3C,CAAC;YACF,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC;gBAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3E,CAAC;QACD,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { isRecord } from '@ankhorage/utility/object';\nimport type { Core } from 'cytoscape';\n\nimport type { GraphViewEdge, GraphViewNode } from '../../../../../types/graph-view';\nimport { createRenderableGraphElements } from './createRenderableGraphElements';\n\n/***\n * Reconciles graph data in one batch while retaining positions, selection and element identity.\n * Do not replace this with remove-all/add-all: presentation updates must not discard interaction\n * state or force the runtime to rebuild the graph. Use direct ID lookups for obsolete metadata;\n * per-element selector scans would add avoidable work. Runtime tests cover hover/selection updates.\n */\nexport function syncGraphElements(\n cy: Core,\n nodes: readonly GraphViewNode[],\n edges: readonly GraphViewEdge[],\n) {\n if (cy.destroyed()) return;\n\n const elements = createRenderableGraphElements(nodes, edges);\n cy.batch(() => {\n for (const element of elements) {\n const existing = cy.getElementById(element.data.id ?? '');\n const data: unknown = existing.data();\n const obsoleteKeys = Object.keys(isRecord(data) ? data : {}).filter(\n (key) => !Object.hasOwn(element.data, key),\n );\n if (obsoleteKeys.length > 0) existing.removeData(obsoleteKeys.join(' '));\n }\n cy.json({ elements });\n });\n}\n"]}
@@ -1,2 +1,3 @@
1
- export { GraphView, type GraphViewCallbacks, type GraphViewController, type GraphViewEdge, type GraphViewElementEvent, type GraphViewElementEventType, type GraphViewFitOptions, type GraphViewLayoutName, type GraphViewNode, type GraphViewNodeRenderContext, type GraphViewPoint, type GraphViewProps, type GraphViewRenderedNode, type GraphViewSize, type GraphViewStyleRule, type GraphViewViewport, } from './adapters/inbound/web-artifact/GraphView';
1
+ export type { GraphViewCallbacks, GraphViewController, GraphViewEdge, GraphViewElementEvent, GraphViewElementEventType, GraphViewFitOptions, GraphViewLayoutName, GraphViewNode, GraphViewNodeRenderContext, GraphViewPoint, GraphViewProps, GraphViewRenderedNode, GraphViewSize, GraphViewStyleRule, GraphViewViewport, } from '../../types/graph-view';
2
+ export { GraphView } from './adapters/inbound/web-artifact/GraphView';
2
3
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,2CAA2C,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC"}
@@ -1,2 +1,2 @@
1
- export { GraphView, } from './adapters/inbound/web-artifact/GraphView';
1
+ export { GraphView } from './adapters/inbound/web-artifact/GraphView';
2
2
  //# sourceMappingURL=public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,GAgBV,MAAM,2CAA2C,CAAC","sourcesContent":["export {\n GraphView,\n type GraphViewCallbacks,\n type GraphViewController,\n type GraphViewEdge,\n type GraphViewElementEvent,\n type GraphViewElementEventType,\n type GraphViewFitOptions,\n type GraphViewLayoutName,\n type GraphViewNode,\n type GraphViewNodeRenderContext,\n type GraphViewPoint,\n type GraphViewProps,\n type GraphViewRenderedNode,\n type GraphViewSize,\n type GraphViewStyleRule,\n type GraphViewViewport,\n} from './adapters/inbound/web-artifact/GraphView';\n"]}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC","sourcesContent":["export type {\n GraphViewCallbacks,\n GraphViewController,\n GraphViewEdge,\n GraphViewElementEvent,\n GraphViewElementEventType,\n GraphViewFitOptions,\n GraphViewLayoutName,\n GraphViewNode,\n GraphViewNodeRenderContext,\n GraphViewPoint,\n GraphViewProps,\n GraphViewRenderedNode,\n GraphViewSize,\n GraphViewStyleRule,\n GraphViewViewport,\n} from '../../types/graph-view';\nexport { GraphView } from './adapters/inbound/web-artifact/GraphView';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"heroMeta.js","sourceRoot":"","sources":["../../../src/features/hero/heroMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAClC,YAAY,EAAE;YACZ,OAAO,EAAE,aAAa;YACtB,KAAK,EAAE,8BAA8B;YACrC,WAAW,EAAE,4EAA4E;YACzF,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,OAAO;YACf,IAAI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IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACtC,OAAO,EAAE,QAAQ;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,gBAAgB;SACxB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const heroMeta = {\n name: 'Hero',\n category: 'pattern',\n description: 'Landing-page and section hero with title copy, actions, and optional media.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Hero',\n icon: { name: 'sparkles-outline' },\n defaultProps: {\n eyebrow: 'New release',\n title: 'Build product screens faster',\n description: 'Use a responsive hero pattern with strong defaults and structured actions.',\n align: 'start',\n layout: 'split',\n tone: 'subtle',\n },\n },\n i18n: {\n fields: [\n { keyProp: 'eyebrowI18nKey', defaultTextProp: 'eyebrow' },\n { keyProp: 'titleI18nKey', defaultTextProp: 'title' },\n { keyProp: 'descriptionI18nKey', defaultTextProp: 'description' },\n ],\n },\n slots: {\n media: {\n label: 'Media',\n allowedChildren: ['Image', 'Card', 'MetricCard', 'MediaCard'],\n },\n footer: {\n label: 'Footer',\n allowedChildren: ['Badge', 'Text', 'AvatarGroup'],\n },\n },\n props: {\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n default: 'New release',\n },\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Build product screens faster',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n default: 'Use a responsive hero pattern with strong defaults and structured actions.',\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Alignment',\n enum: ['start', 'center'],\n default: 'start',\n },\n layout: {\n type: 'enum',\n category: 'Layout',\n label: 'Layout',\n enum: ['stack', 'split', 'mediaFirst'],\n default: 'split',\n },\n tone: {\n type: 'enum',\n category: 'Appearance',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n default: 'subtle',\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n },\n primaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Primary action',\n },\n secondaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Secondary action',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"heroMeta.js","sourceRoot":"","sources":["../../../src/features/hero/heroMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAClC,YAAY,EAAE;YACZ,OAAO,EAAE,aAAa;YACtB,KAAK,EAAE,8BAA8B;YACrC,WAAW,EAAE,4EAA4E;YACzF,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,QAAQ;SACf;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE;YACN,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,SAAS,EAAE;YACzD,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE;YACrD,EAAE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE;SAClE;KACF;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EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,gBAAgB;SACxB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,kBAAkB;SAC1B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const heroMeta = {\n name: 'Hero',\n category: 'pattern',\n description: 'Landing-page and section hero with title copy, actions, and optional media.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Hero',\n icon: { name: 'sparkles-outline' },\n defaultProps: {\n eyebrow: 'New release',\n title: 'Build product screens faster',\n description: 'Use a responsive hero pattern with strong defaults and structured actions.',\n align: 'start',\n layout: 'split',\n tone: 'subtle',\n },\n },\n i18n: {\n fields: [\n { keyProp: 'eyebrowI18nKey', defaultTextProp: 'eyebrow' },\n { keyProp: 'titleI18nKey', defaultTextProp: 'title' },\n { keyProp: 'descriptionI18nKey', defaultTextProp: 'description' },\n ],\n },\n slots: {\n media: {\n label: 'Media',\n allowedChildren: ['Image', 'Card', 'MetricCard', 'MediaCard'],\n },\n footer: {\n label: 'Footer',\n allowedChildren: ['Badge', 'Text', 'AvatarGroup'],\n },\n },\n props: {\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n default: 'New release',\n },\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Build product screens faster',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n default: 'Use a responsive hero pattern with strong defaults and structured actions.',\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Alignment',\n enum: ['start', 'center'],\n default: 'start',\n },\n layout: {\n type: 'enum',\n category: 'Layout',\n label: 'Layout',\n enum: ['stack', 'split', 'mediaFirst'],\n default: 'split',\n },\n tone: {\n type: 'enum',\n category: 'Appearance',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n default: 'subtle',\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n },\n primaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Primary action',\n },\n secondaryAction: {\n type: 'action',\n category: 'Actions',\n label: 'Secondary action',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"iconMeta.js","sourceRoot":"","sources":["../../../src/features/icon/iconMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,6DAA6D;IAC1E,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5B,KAAK,EAAE;QACL,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,MAAM;YACb,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const iconMeta = {\n name: 'Icon',\n category: 'component',\n description: 'Displays a standalone SVG icon from the app media registry.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Icon' },\n props: {\n source: {\n type: 'media',\n category: 'Content',\n label: 'SVG source',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n size: {\n type: 'number',\n category: 'Appearance',\n label: 'Size',\n authoring: { authority: 'instance' },\n },\n color: {\n type: 'string',\n category: 'Appearance',\n label: 'Color',\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"iconMeta.js","sourceRoot":"","sources":["../../../src/features/icon/iconMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,6DAA6D;IAC1E,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;IAC5B,KAAK,EAAE;QACL,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,MAAM;YACb,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const iconMeta = {\n name: 'Icon',\n category: 'component',\n description: 'Displays a standalone SVG icon from the app media registry.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Icon' },\n props: {\n source: {\n type: 'media',\n category: 'Content',\n label: 'SVG source',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n size: {\n type: 'number',\n category: 'Appearance',\n label: 'Size',\n authoring: { authority: 'instance' },\n },\n color: {\n type: 'string',\n category: 'Appearance',\n label: 'Color',\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"imageMeta.js","sourceRoot":"","sources":["../../../src/features/image/imageMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC7B,KAAK,EAAE;QACL,GAAG,EAAE;YACH,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;SAClE;QACD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QACnD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC9C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAC7C,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;QAC7E,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const imageMeta = {\n name: 'Image',\n category: 'component',\n description: 'Displays an image from the app media registry or a resolved runtime source.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Image' },\n props: {\n fit: {\n type: 'enum',\n category: 'Layout',\n enum: ['cover', 'contain', 'stretch', 'repeat', 'center', 'none'],\n },\n aspectRatio: { type: 'number', category: 'Layout' },\n width: { type: 'number', category: 'Layout' },\n height: { type: 'number', category: 'Layout' },\n radius: { type: 'radius', category: 'Style' },\n fallbackSource: { type: 'media', category: 'Content', mediaKinds: ['image'] },\n source: {\n type: 'media',\n category: 'Content',\n label: 'Source',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n alt: {\n type: 'string',\n category: 'Accessibility',\n label: 'Alt text',\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"imageMeta.js","sourceRoot":"","sources":["../../../src/features/image/imageMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,6EAA6E;IAC1F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC7B,KAAK,EAAE;QACL,GAAG,EAAE;YACH,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;SAClE;QACD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QACnD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC9C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAC7C,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;QAC7E,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const imageMeta = {\n name: 'Image',\n category: 'component',\n description: 'Displays an image from the app media registry or a resolved runtime source.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Image' },\n props: {\n fit: {\n type: 'enum',\n category: 'Layout',\n enum: ['cover', 'contain', 'stretch', 'repeat', 'center', 'none'],\n },\n aspectRatio: { type: 'number', category: 'Layout' },\n width: { type: 'number', category: 'Layout' },\n height: { type: 'number', category: 'Layout' },\n radius: { type: 'radius', category: 'Style' },\n fallbackSource: { type: 'media', category: 'Content', mediaKinds: ['image'] },\n source: {\n type: 'media',\n category: 'Content',\n label: 'Source',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n alt: {\n type: 'string',\n category: 'Accessibility',\n label: 'Alt text',\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
1
+ import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';
2
2
  export const keyboardAvoidingViewMeta = {
3
3
  name: 'KeyboardAvoidingView',
4
4
  category: 'layout',
@@ -1 +1 @@
1
- {"version":3,"file":"keyboardAvoidingViewMeta.js","sourceRoot":"","sources":["../../../src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,sBAAsB;IAC5B,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,wBAAwB;QAC/B,YAAY,EAAE;YACZ,QAAQ,EAAE,SAAS;YACnB,OAAO,EAAE,IAAI;YACb,sBAAsB,EAAE,CAAC;SAC1B;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;YACvC,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,IAAI;SACd;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,0BAA0B;YACjC,OAAO,EAAE,CAAC;SACX;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';\n\nexport const keyboardAvoidingViewMeta = {\n name: 'KeyboardAvoidingView',\n category: 'layout',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Keyboard avoiding view',\n defaultProps: {\n behavior: 'padding',\n enabled: true,\n keyboardVerticalOffset: 0,\n },\n },\n props: {\n behavior: {\n type: 'enum',\n category: 'Behavior',\n label: 'Behavior',\n enum: ['height', 'position', 'padding'],\n default: 'padding',\n },\n enabled: {\n type: 'boolean',\n category: 'Behavior',\n label: 'Enabled',\n default: true,\n },\n keyboardVerticalOffset: {\n type: 'number',\n category: 'Layout',\n label: 'Keyboard vertical offset',\n default: 0,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"keyboardAvoidingViewMeta.js","sourceRoot":"","sources":["../../../src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,sBAAsB;IAC5B,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,wBAAwB;QAC/B,YAAY,EAAE;YACZ,QAAQ,EAAE,SAAS;YACnB,OAAO,EAAE,IAAI;YACb,sBAAsB,EAAE,CAAC;SAC1B;KACF;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;YACvC,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,IAAI;SACd;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,0BAA0B;YACjC,OAAO,EAAE,CAAC;SACX;KACF;CACmC,CAAC","sourcesContent":["import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const keyboardAvoidingViewMeta = {\n name: 'KeyboardAvoidingView',\n category: 'layout',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Keyboard avoiding view',\n defaultProps: {\n behavior: 'padding',\n enabled: true,\n keyboardVerticalOffset: 0,\n },\n },\n props: {\n behavior: {\n type: 'enum',\n category: 'Behavior',\n label: 'Behavior',\n enum: ['height', 'position', 'padding'],\n default: 'padding',\n },\n enabled: {\n type: 'boolean',\n category: 'Behavior',\n label: 'Enabled',\n default: true,\n },\n keyboardVerticalOffset: {\n type: 'number',\n category: 'Layout',\n label: 'Keyboard vertical offset',\n default: 0,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"appShellMeta.js","sourceRoot":"","sources":["../../../src/features/layout/appShellMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,qEAAqE;IAC3E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const appShellMeta = {\n name: 'AppShell',\n category: 'layout',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Application shell layout; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"appShellMeta.js","sourceRoot":"","sources":["../../../src/features/layout/appShellMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,qEAAqE;IAC3E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const appShellMeta = {\n name: 'AppShell',\n category: 'layout',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Application shell layout; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CHESS_ALLOWED_CHILDREN, CONTAINER_ALLOWED_CHILDREN, GAME_ALLOWED_CHILDREN, TABLETOP_ALLOWED_CHILDREN, } from '../authoring/allowedChildren';
1
+ import { CHESS_ALLOWED_CHILDREN, CONTAINER_ALLOWED_CHILDREN, GAME_ALLOWED_CHILDREN, TABLETOP_ALLOWED_CHILDREN, } from '../../constants/authoring';
2
2
  import { LAYOUT_PROPS } from './constants';
3
3
  export const gridMeta = {
4
4
  name: 'Grid',
@@ -1 +1 @@
1
- {"version":3,"file":"gridMeta.js","sourceRoot":"","sources":["../../../src/features/layout/gridMeta.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE;QACf,GAAG,0BAA0B;QAC7B,GAAG,sBAAsB;QACzB,GAAG,qBAAqB;QACxB,GAAG,yBAAyB;KAC7B;IACD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;QACxD,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACrD;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport {\n CHESS_ALLOWED_CHILDREN,\n CONTAINER_ALLOWED_CHILDREN,\n GAME_ALLOWED_CHILDREN,\n TABLETOP_ALLOWED_CHILDREN,\n} from '../authoring/allowedChildren';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const gridMeta = {\n name: 'Grid',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [\n ...CONTAINER_ALLOWED_CHILDREN,\n ...CHESS_ALLOWED_CHILDREN,\n ...GAME_ALLOWED_CHILDREN,\n ...TABLETOP_ALLOWED_CHILDREN,\n ],\n props: {\n ...LAYOUT_PROPS,\n cols: { type: 'number', category: 'Layout', default: 1 },\n gap: { type: 'spacing', category: 'Spacing' },\n rowGap: { type: 'spacing', category: 'Spacing' },\n colGap: { type: 'spacing', category: 'Spacing' },\n minItemWidth: { type: 'number', category: 'Layout' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"gridMeta.js","sourceRoot":"","sources":["../../../src/features/layout/gridMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE;QACf,GAAG,0BAA0B;QAC7B,GAAG,sBAAsB;QACzB,GAAG,qBAAqB;QACxB,GAAG,yBAAyB;KAC7B;IACD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;QACxD,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACrD;CACmC,CAAC","sourcesContent":["import {\n CHESS_ALLOWED_CHILDREN,\n CONTAINER_ALLOWED_CHILDREN,\n GAME_ALLOWED_CHILDREN,\n TABLETOP_ALLOWED_CHILDREN,\n} from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const gridMeta = {\n name: 'Grid',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [\n ...CONTAINER_ALLOWED_CHILDREN,\n ...CHESS_ALLOWED_CHILDREN,\n ...GAME_ALLOWED_CHILDREN,\n ...TABLETOP_ALLOWED_CHILDREN,\n ],\n props: {\n ...LAYOUT_PROPS,\n cols: { type: 'number', category: 'Layout', default: 1 },\n gap: { type: 'spacing', category: 'Spacing' },\n rowGap: { type: 'spacing', category: 'Spacing' },\n colGap: { type: 'spacing', category: 'Spacing' },\n minItemWidth: { type: 'number', category: 'Layout' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { SCREEN_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
1
+ import { SCREEN_ALLOWED_CHILDREN } from '../../constants/authoring';
2
2
  export const screenMeta = {
3
3
  name: 'Screen',
4
4
  category: 'layout',
@@ -1 +1 @@
1
- {"version":3,"file":"screenMeta.js","sourceRoot":"","sources":["../../../src/features/layout/screenMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,uBAAuB,CAAC;IAC7C,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;KAChB;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;YACnC,OAAO,EAAE,SAAS;SACnB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,IAAI;SACd;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\nimport { SCREEN_ALLOWED_CHILDREN } from '../authoring/allowedChildren';\n\nexport const screenMeta = {\n name: 'Screen',\n category: 'layout',\n directManifestNode: true,\n allowedChildren: [...SCREEN_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Screen',\n },\n props: {\n width: {\n type: 'enum',\n category: 'Layout',\n label: 'Width',\n enum: ['narrow', 'default', 'wide'],\n default: 'default',\n },\n scroll: {\n type: 'boolean',\n category: 'Layout',\n label: 'Scroll',\n default: true,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"screenMeta.js","sourceRoot":"","sources":["../../../src/features/layout/screenMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,uBAAuB,CAAC;IAC7C,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;KAChB;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;YACnC,OAAO,EAAE,SAAS;SACnB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,IAAI;SACd;KACF;CACmC,CAAC","sourcesContent":["import { SCREEN_ALLOWED_CHILDREN } from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const screenMeta = {\n name: 'Screen',\n category: 'layout',\n directManifestNode: true,\n allowedChildren: [...SCREEN_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Screen',\n },\n props: {\n width: {\n type: 'enum',\n category: 'Layout',\n label: 'Width',\n enum: ['narrow', 'default', 'wide'],\n default: 'default',\n },\n scroll: {\n type: 'boolean',\n category: 'Layout',\n label: 'Scroll',\n default: true,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
1
+ import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';
2
2
  import { LAYOUT_PROPS } from './constants';
3
3
  export const scrollViewMeta = {
4
4
  name: 'ScrollView',
@@ -1 +1 @@
1
- {"version":3,"file":"scrollViewMeta.js","sourceRoot":"","sources":["../../../src/features/layout/scrollViewMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE;KACpE;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const scrollViewMeta = {\n name: 'ScrollView',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n props: {\n ...LAYOUT_PROPS,\n horizontal: { type: 'boolean', category: 'Layout', default: false },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"scrollViewMeta.js","sourceRoot":"","sources":["../../../src/features/layout/scrollViewMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE;KACpE;CACmC,CAAC","sourcesContent":["import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const scrollViewMeta = {\n name: 'ScrollView',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n props: {\n ...LAYOUT_PROPS,\n horizontal: { type: 'boolean', category: 'Layout', default: false },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CHESS_ALLOWED_CHILDREN, CONTAINER_ALLOWED_CHILDREN, GAME_ALLOWED_CHILDREN, } from '../authoring/allowedChildren';
1
+ import { CHESS_ALLOWED_CHILDREN, CONTAINER_ALLOWED_CHILDREN, GAME_ALLOWED_CHILDREN, } from '../../constants/authoring';
2
2
  import { LAYOUT_PROPS } from './constants';
3
3
  export const viewMeta = {
4
4
  name: 'View',
@@ -1 +1 @@
1
- {"version":3,"file":"viewMeta.js","sourceRoot":"","sources":["../../../src/features/layout/viewMeta.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE;QACf,GAAG,0BAA0B;QAC7B,GAAG,sBAAsB;QACzB,GAAG,qBAAqB;KACzB;IACD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;QACxE,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC;SAClE;QACD,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,CAAC;SAC5F;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACpE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;QACxC,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;KACnD;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport {\n CHESS_ALLOWED_CHILDREN,\n CONTAINER_ALLOWED_CHILDREN,\n GAME_ALLOWED_CHILDREN,\n} from '../authoring/allowedChildren';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const viewMeta = {\n name: 'View',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [\n ...CONTAINER_ALLOWED_CHILDREN,\n ...CHESS_ALLOWED_CHILDREN,\n ...GAME_ALLOWED_CHILDREN,\n ],\n props: {\n ...LAYOUT_PROPS,\n direction: { type: 'enum', category: 'Layout', enum: ['row', 'column'] },\n gap: { type: 'spacing', category: 'Spacing' },\n rowGap: { type: 'spacing', category: 'Spacing' },\n columnGap: { type: 'spacing', category: 'Spacing' },\n align: {\n type: 'enum',\n category: 'Layout',\n enum: ['flex-start', 'center', 'flex-end', 'stretch', 'baseline'],\n },\n justify: {\n type: 'enum',\n category: 'Layout',\n enum: ['flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly'],\n },\n wrap: { type: 'enum', category: 'Layout', enum: ['nowrap', 'wrap'] },\n bg: { type: 'color', category: 'Style' },\n borderColor: { type: 'color', category: 'Style' },\n borderWidth: { type: 'number', category: 'Style' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"viewMeta.js","sourceRoot":"","sources":["../../../src/features/layout/viewMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE;QACf,GAAG,0BAA0B;QAC7B,GAAG,sBAAsB;QACzB,GAAG,qBAAqB;KACzB;IACD,KAAK,EAAE;QACL,GAAG,YAAY;QACf,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;QACxE,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAC7C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QAChD,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC;SAClE;QACD,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,CAAC;SAC5F;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACpE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;QACxC,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;QACjD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;KACnD;CACmC,CAAC","sourcesContent":["import {\n CHESS_ALLOWED_CHILDREN,\n CONTAINER_ALLOWED_CHILDREN,\n GAME_ALLOWED_CHILDREN,\n} from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\nimport { LAYOUT_PROPS } from './constants';\n\nexport const viewMeta = {\n name: 'View',\n category: 'foundation',\n directManifestNode: true,\n allowedChildren: [\n ...CONTAINER_ALLOWED_CHILDREN,\n ...CHESS_ALLOWED_CHILDREN,\n ...GAME_ALLOWED_CHILDREN,\n ],\n props: {\n ...LAYOUT_PROPS,\n direction: { type: 'enum', category: 'Layout', enum: ['row', 'column'] },\n gap: { type: 'spacing', category: 'Spacing' },\n rowGap: { type: 'spacing', category: 'Spacing' },\n columnGap: { type: 'spacing', category: 'Spacing' },\n align: {\n type: 'enum',\n category: 'Layout',\n enum: ['flex-start', 'center', 'flex-end', 'stretch', 'baseline'],\n },\n justify: {\n type: 'enum',\n category: 'Layout',\n enum: ['flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly'],\n },\n wrap: { type: 'enum', category: 'Layout', enum: ['nowrap', 'wrap'] },\n bg: { type: 'color', category: 'Style' },\n borderColor: { type: 'color', category: 'Style' },\n borderWidth: { type: 'number', category: 'Style' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
1
+ import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';
2
2
  export const flatListMeta = {
3
3
  name: 'FlatList',
4
4
  category: 'layout',
@@ -1 +1 @@
1
- {"version":3,"file":"flatListMeta.js","sourceRoot":"","sources":["../../../src/features/list/flatListMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACjC,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,WAAW,EACT,qNAAqN;IACvN,MAAM,EAAE;QACN,kBAAkB,EAAE;YAClB,KAAK,EAAE,sBAAsB;YAC7B,SAAS,EAAE,6BAA6B;YACxC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;SACnD;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,aAAa,EAAE,EAAE,EAAE;QAC/E,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,qBAAqB;YAChC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SAC7D;KACF;IACD,KAAK,EAAE;QACL,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE;QACnD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QAClD,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAClE,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QACnE,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC1D,qBAAqB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE;QAC/D,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE;QAClD,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QACtD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;KACnD;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';\n\nexport const flatListMeta = {\n name: 'FlatList',\n category: 'layout',\n directManifestNode: true,\n blueprint: { label: 'Flat list' },\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n description:\n 'Virtualized children. Put node.repeat on this list for keyed data and item bindings; bind selection on the child Button/Card press event. Bound the list viewport and avoid nesting in a same-direction ScrollView.',\n events: {\n visibleItemsChange: {\n label: 'Visible items change',\n eventType: 'flatList.visibleItemsChange',\n payloadFields: [{ path: 'keys', type: 'unknown' }],\n },\n refresh: { label: 'Refresh', eventType: 'flatList.refresh', payloadFields: [] },\n endReached: {\n label: 'End reached',\n eventType: 'flatList.endReached',\n payloadFields: [{ path: 'distanceFromEnd', type: 'number' }],\n },\n },\n props: {\n horizontal: { type: 'boolean', category: 'Layout' },\n refreshing: { type: 'boolean', category: 'State' },\n initialNumToRender: { type: 'number', category: 'Virtualization' },\n maxToRenderPerBatch: { type: 'number', category: 'Virtualization' },\n windowSize: { type: 'number', category: 'Virtualization' },\n onEndReachedThreshold: { type: 'number', category: 'Behavior' },\n showsScrollIndicator: { type: 'boolean', category: 'Style' },\n bounces: { type: 'boolean', category: 'Behavior' },\n showSeparators: { type: 'boolean', category: 'Style' },\n headerText: { type: 'string', category: 'Content' },\n footerText: { type: 'string', category: 'Content' },\n emptyText: { type: 'string', category: 'Content' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"flatListMeta.js","sourceRoot":"","sources":["../../../src/features/list/flatListMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;IACjC,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,WAAW,EACT,qNAAqN;IACvN,MAAM,EAAE;QACN,kBAAkB,EAAE;YAClB,KAAK,EAAE,sBAAsB;YAC7B,SAAS,EAAE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AE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;KACnD;CACmC,CAAC","sourcesContent":["import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const flatListMeta = {\n name: 'FlatList',\n category: 'layout',\n directManifestNode: true,\n blueprint: { label: 'Flat list' },\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n description:\n 'Virtualized children. Put node.repeat on this list for keyed data and item bindings; bind selection on the child Button/Card press event. Bound the list viewport and avoid nesting in a same-direction ScrollView.',\n events: {\n visibleItemsChange: {\n label: 'Visible items change',\n eventType: 'flatList.visibleItemsChange',\n payloadFields: [{ path: 'keys', type: 'unknown' }],\n },\n refresh: { label: 'Refresh', eventType: 'flatList.refresh', payloadFields: [] },\n endReached: {\n label: 'End reached',\n eventType: 'flatList.endReached',\n payloadFields: [{ path: 'distanceFromEnd', type: 'number' }],\n },\n },\n props: {\n horizontal: { type: 'boolean', category: 'Layout' },\n refreshing: { type: 'boolean', category: 'State' },\n initialNumToRender: { type: 'number', category: 'Virtualization' },\n maxToRenderPerBatch: { type: 'number', category: 'Virtualization' },\n windowSize: { type: 'number', category: 'Virtualization' },\n onEndReachedThreshold: { type: 'number', category: 'Behavior' },\n showsScrollIndicator: { type: 'boolean', category: 'Style' },\n bounces: { type: 'boolean', category: 'Behavior' },\n showSeparators: { type: 'boolean', category: 'Style' },\n headerText: { type: 'string', category: 'Content' },\n footerText: { type: 'string', category: 'Content' },\n emptyText: { type: 'string', category: 'Content' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/features/list/meta.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GACb,oFAAoF,CAAC;AAEvF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE,sBAAsB;YACjC,WAAW,EAAE,6CAA6C;YAC1D,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC5D,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;aACxD;SACF;KACF;IACD,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nconst LIST_NOTE =\n 'List feature component; collection authoring is represented through List metadata.';\n\nexport const listMeta = {\n name: 'List',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const listItemMeta = {\n name: 'ListItem',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n events: {\n itemPress: {\n label: 'Item press',\n eventType: 'collection.itemPress',\n description: 'Emitted when a collection item is selected.',\n payloadFields: [\n { path: 'payload.itemId', type: 'string', label: 'Item ID' },\n { path: 'payload.item', type: 'record', label: 'Item' },\n ],\n },\n },\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const listSectionMeta = {\n name: 'ListSection',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/features/list/meta.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GACb,oFAAoF,CAAC;AAEvF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE,sBAAsB;YACjC,WAAW,EAAE,6CAA6C;YAC1D,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC5D,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;aACxD;SACF;KACF;IACD,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nconst LIST_NOTE =\n 'List feature component; collection authoring is represented through List metadata.';\n\nexport const listMeta = {\n name: 'List',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const listItemMeta = {\n name: 'ListItem',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n events: {\n itemPress: {\n label: 'Item press',\n eventType: 'collection.itemPress',\n description: 'Emitted when a collection item is selected.',\n payloadFields: [\n { path: 'payload.itemId', type: 'string', label: 'Item ID' },\n { path: 'payload.item', type: 'record', label: 'Item' },\n ],\n },\n },\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const listSectionMeta = {\n name: 'ListSection',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: LIST_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"missingElementMeta.js","sourceRoot":"","sources":["../../../src/features/missing-element/missingElementMeta.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,EAAE,SAAS,EAAE,UAAU,EAAW,CAAC;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,oGAAoG;IACtG,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE;QACd,IAAI,EAAE,oBAAoB;QAC1B,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,SAAS;KACvB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,iBAAiB;QACxB,YAAY,EAAE;YACZ,mBAAmB,EAAE,iCAAiC;YACtD,MAAM,EAAE,wCAAwC;YAChD,YAAY,EAAE,GAAG;YACjB,aAAa,EAAE,GAAG;SACnB;KACF;IACD,KAAK,EAAE;QACL,mBAAmB,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,iCAAiC;YAC1C,SAAS,EAAE,iBAAiB;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,wCAAwC;YACjD,SAAS,EAAE,iBAAiB;SAC7B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,iBAAiB;SAC7B;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nconst instanceAuthoring = { authority: 'instance' } as const;\n\nexport const missingElementMeta = {\n name: 'MissingElement',\n category: 'pattern',\n description:\n 'Draft-only marker for an unresolved semantic ZORA capability that must be replaced before release.',\n directManifestNode: true,\n allowedChildren: [],\n manifestPolicy: {\n kind: 'unresolved-element',\n availability: 'draft-only',\n releaseGate: 'blocked',\n },\n blueprint: {\n label: 'Missing element',\n defaultProps: {\n requestedCapability: 'Unresolved interface capability',\n reason: 'No matching ZORA element is available.',\n minimumWidth: 240,\n minimumHeight: 160,\n },\n },\n props: {\n requestedCapability: {\n type: 'string',\n category: 'Gap',\n label: 'Requested capability',\n default: 'Unresolved interface capability',\n authoring: instanceAuthoring,\n },\n reason: {\n type: 'string',\n category: 'Gap',\n label: 'Reason',\n default: 'No matching ZORA element is available.',\n authoring: instanceAuthoring,\n },\n evidenceId: {\n type: 'string',\n category: 'Evidence',\n label: 'Evidence ID',\n authoring: instanceAuthoring,\n },\n minimumWidth: {\n type: 'number',\n category: 'Layout',\n label: 'Minimum width',\n default: 240,\n authoring: instanceAuthoring,\n },\n minimumHeight: {\n type: 'number',\n category: 'Layout',\n label: 'Minimum height',\n default: 160,\n authoring: instanceAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"missingElementMeta.js","sourceRoot":"","sources":["../../../src/features/missing-element/missingElementMeta.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,EAAE,SAAS,EAAE,UAAU,EAAW,CAAC;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,oGAAoG;IACtG,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE;QACd,IAAI,EAAE,oBAAoB;QAC1B,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,SAAS;KACvB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,iBAAiB;QACxB,YAAY,EAAE;YACZ,mBAAmB,EAAE,iCAAiC;YACtD,MAAM,EAAE,wCAAwC;YAChD,YAAY,EAAE,GAAG;YACjB,aAAa,EAAE,GAAG;SACnB;KACF;IACD,KAAK,EAAE;QACL,mBAAmB,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,iCAAiC;YAC1C,SAAS,EAAE,iBAAiB;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,wCAAwC;YACjD,SAAS,EAAE,iBAAiB;SAC7B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,iBAAiB;SAC7B;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nconst instanceAuthoring = { authority: 'instance' } as const;\n\nexport const missingElementMeta = {\n name: 'MissingElement',\n category: 'pattern',\n description:\n 'Draft-only marker for an unresolved semantic ZORA capability that must be replaced before release.',\n directManifestNode: true,\n allowedChildren: [],\n manifestPolicy: {\n kind: 'unresolved-element',\n availability: 'draft-only',\n releaseGate: 'blocked',\n },\n blueprint: {\n label: 'Missing element',\n defaultProps: {\n requestedCapability: 'Unresolved interface capability',\n reason: 'No matching ZORA element is available.',\n minimumWidth: 240,\n minimumHeight: 160,\n },\n },\n props: {\n requestedCapability: {\n type: 'string',\n category: 'Gap',\n label: 'Requested capability',\n default: 'Unresolved interface capability',\n authoring: instanceAuthoring,\n },\n reason: {\n type: 'string',\n category: 'Gap',\n label: 'Reason',\n default: 'No matching ZORA element is available.',\n authoring: instanceAuthoring,\n },\n evidenceId: {\n type: 'string',\n category: 'Evidence',\n label: 'Evidence ID',\n authoring: instanceAuthoring,\n },\n minimumWidth: {\n type: 'number',\n category: 'Layout',\n label: 'Minimum width',\n default: 240,\n authoring: instanceAuthoring,\n },\n minimumHeight: {\n type: 'number',\n category: 'Layout',\n label: 'Minimum height',\n default: 160,\n authoring: instanceAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"paletteItemMeta.js","sourceRoot":"","sources":["../../../src/features/palette-item/paletteItemMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,mEAAmE;IACzE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const paletteItemMeta = {\n name: 'PaletteItem',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Palette option pattern; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"paletteItemMeta.js","sourceRoot":"","sources":["../../../src/features/palette-item/paletteItemMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,mEAAmE;IACzE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const paletteItemMeta = {\n name: 'PaletteItem',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Palette option pattern; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"popoverMenuMeta.js","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,iHAAiH;IACvH,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\n\nexport const popoverMenuMeta = {\n name: 'PopoverMenu',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"popoverMenuMeta.js","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,iHAAiH;IACvH,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const popoverMenuMeta = {\n name: 'PopoverMenu',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"progressMeta.js","sourceRoot":"","sources":["../../../src/features/progress/progressMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG;SACV;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,E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OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,iBAAiB;SAC7B;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,iBAAiB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\nimport { ZORA_COLORS } from '../theme/colorModel';\n\nexport const progressMeta = {\n name: 'Progress',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress',\n defaultProps: {\n value: 50,\n max: 100,\n color: 'primary',\n size: 'm',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 50,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Max',\n default: 100,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\n default: 'm',\n },\n },\n} as const satisfies ZoraComponentMeta;\n\nconst instanceAuthoring = { authority: 'instance' } as const;\n\nexport const progressRingMeta = {\n name: 'ProgressRing',\n category: 'component',\n description: 'Displays circular determinate progress with optional center value and label text.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress ring',\n defaultProps: {\n value: 68,\n max: 100,\n color: 'primary',\n trackColor: 'neutral',\n size: 120,\n thickness: 10,\n centerValue: '68%',\n centerLabel: 'Complete',\n accessibilityLabel: 'Progress',\n accessibilityValueText: '68% complete',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 68,\n authoring: instanceAuthoring,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Maximum',\n default: 100,\n authoring: instanceAuthoring,\n },\n centerValue: {\n type: 'string',\n category: 'Content',\n label: 'Center value',\n default: '68%',\n authoring: instanceAuthoring,\n },\n centerLabel: {\n type: 'string',\n category: 'Content',\n label: 'Center label',\n default: 'Complete',\n authoring: instanceAuthoring,\n },\n accessibilityLabel: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility label',\n default: 'Progress',\n authoring: instanceAuthoring,\n },\n accessibilityValueText: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility value text',\n default: '68% complete',\n authoring: instanceAuthoring,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Progress color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n authoring: instanceAuthoring,\n },\n trackColor: {\n type: 'enum',\n category: 'Style',\n label: 'Track color',\n enum: [...ZORA_COLORS],\n default: 'neutral',\n authoring: instanceAuthoring,\n },\n size: {\n type: 'number',\n category: 'Layout',\n label: 'Diameter',\n default: 120,\n authoring: instanceAuthoring,\n },\n thickness: {\n type: 'number',\n category: 'Style',\n label: 'Thickness',\n default: 10,\n authoring: instanceAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"progressMeta.js","sourceRoot":"","sources":["../../../src/features/progress/progressMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG;SACV;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,EAAE;SACZ;QACD,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,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YACjB,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,iBAAiB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\nimport { ZORA_COLORS } from '../theme/colorModel';\n\nexport const progressMeta = {\n name: 'Progress',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress',\n defaultProps: {\n value: 50,\n max: 100,\n color: 'primary',\n size: 'm',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 50,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Max',\n default: 100,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\n default: 'm',\n },\n },\n} as const satisfies ZoraComponentMeta;\n\nconst instanceAuthoring = { authority: 'instance' } as const;\n\nexport const progressRingMeta = {\n name: 'ProgressRing',\n category: 'component',\n description: 'Displays circular determinate progress with optional center value and label text.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Progress ring',\n defaultProps: {\n value: 68,\n max: 100,\n color: 'primary',\n trackColor: 'neutral',\n size: 120,\n thickness: 10,\n centerValue: '68%',\n centerLabel: 'Complete',\n accessibilityLabel: 'Progress',\n accessibilityValueText: '68% complete',\n },\n },\n props: {\n value: {\n type: 'number',\n category: 'State',\n label: 'Value',\n default: 68,\n authoring: instanceAuthoring,\n },\n max: {\n type: 'number',\n category: 'State',\n label: 'Maximum',\n default: 100,\n authoring: instanceAuthoring,\n },\n centerValue: {\n type: 'string',\n category: 'Content',\n label: 'Center value',\n default: '68%',\n authoring: instanceAuthoring,\n },\n centerLabel: {\n type: 'string',\n category: 'Content',\n label: 'Center label',\n default: 'Complete',\n authoring: instanceAuthoring,\n },\n accessibilityLabel: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility label',\n default: 'Progress',\n authoring: instanceAuthoring,\n },\n accessibilityValueText: {\n type: 'string',\n category: 'Accessibility',\n label: 'Accessibility value text',\n default: '68% complete',\n authoring: instanceAuthoring,\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Progress color',\n enum: [...ZORA_COLORS],\n default: 'primary',\n authoring: instanceAuthoring,\n },\n trackColor: {\n type: 'enum',\n category: 'Style',\n label: 'Track color',\n enum: [...ZORA_COLORS],\n default: 'neutral',\n authoring: instanceAuthoring,\n },\n size: {\n type: 'number',\n category: 'Layout',\n label: 'Diameter',\n default: 120,\n authoring: instanceAuthoring,\n },\n thickness: {\n type: 'number',\n category: 'Style',\n label: 'Thickness',\n default: 10,\n authoring: instanceAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,4 +1,4 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';
1
+ import { CONTAINER_ALLOWED_CHILDREN } from '../../constants/authoring';
2
2
  const EMPTY_EVENT_FIELDS = [];
3
3
  export const readerSurfaceMeta = {
4
4
  name: 'ReaderSurface',
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/features/reader/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,kBAAkB,GAAG,EAAW,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,oGAAoG;IACtG,kBAAkB,EAAE,IAAI;IACxB,YAAY,EAAE;QACZ,YAAY,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;KACpC;IACD,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,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iBAAiB,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,yBAAyB;SACjC;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,2BAA2B;SACnC;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,qBAAqB;SAC7B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../authoring';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../authoring/allowedChildren';\n\nconst EMPTY_EVENT_FIELDS = [] as const;\n\nexport const readerSurfaceMeta = {\n name: 'ReaderSurface',\n category: 'pattern',\n description:\n 'Adapter-neutral EPUB and PDF reader shell with controlled chrome, progress, and navigation events.',\n directManifestNode: true,\n requirements: {\n capabilities: { ebookReader: true },\n },\n allowedChildren: [],\n blueprint: {\n label: 'Reader',\n defaultProps: {\n format: 'epub',\n status: 'idle',\n showChrome: true,\n readerColorScheme: 'system',\n fontScale: 1,\n lineHeight: 'normal',\n },\n },\n events: {\n previousPage: {\n label: 'Previous page',\n eventType: 'reader.previousPage',\n description: 'Requests navigation to the previous page.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n nextPage: {\n label: 'Next page',\n eventType: 'reader.nextPage',\n description: 'Requests navigation to the next page.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n locationChange: {\n label: 'Location change',\n eventType: 'reader.locationChange',\n description: 'Emitted by the adapter after the destination has been displayed.',\n payloadFields: [\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'locator', type: 'string', label: 'Opaque locator' },\n { path: 'page', type: 'number', label: 'Page' },\n { path: 'pageCount', type: 'number', label: 'Page count' },\n { path: 'progression', type: 'number', label: 'Progression' },\n { path: 'chapterId', type: 'string', label: 'Chapter ID' },\n { path: 'chapterTitle', type: 'string', label: 'Chapter title' },\n { path: 'trigger', type: 'string', label: 'Navigation trigger' },\n ],\n },\n openContents: {\n label: 'Open contents',\n eventType: 'reader.openContents',\n description: 'Requests the app-owned table of contents.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n openAppearance: {\n label: 'Open appearance',\n eventType: 'reader.openAppearance',\n description: 'Requests the app-owned reader appearance controls.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n toggleHighlight: {\n label: 'Toggle highlight',\n eventType: 'reader.toggleHighlight',\n description: 'Requests the app-owned highlight action.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n openExternalLink: {\n label: 'Open external link',\n eventType: 'reader.openExternalLink',\n description: 'Emitted when publication content requests an external URL.',\n payloadFields: [{ path: 'url', type: 'string', label: 'URL' }],\n },\n readerError: {\n label: 'Reader error',\n eventType: 'reader.error',\n description: 'Emitted when the adapter rejects or cannot load a document.',\n payloadFields: [\n { path: 'code', type: 'string', label: 'Error code' },\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'message', type: 'string', label: 'Message' },\n ],\n },\n },\n slots: {\n viewport: {\n label: 'Reader viewport adapter',\n allowedChildren: [],\n },\n headerActions: {\n label: 'Header actions',\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n },\n footerActions: {\n label: 'Footer actions',\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n },\n },\n props: {\n source: {\n type: 'media',\n category: 'Document',\n label: 'Source',\n mediaKinds: ['file'],\n },\n format: {\n type: 'enum',\n category: 'Document',\n label: 'Format',\n enum: ['epub', 'pdf'],\n default: 'epub',\n },\n location: {\n type: 'string',\n category: 'State',\n label: 'Location',\n },\n status: {\n type: 'enum',\n category: 'State',\n label: 'Status',\n enum: ['idle', 'loading', 'ready', 'error'],\n default: 'idle',\n },\n page: {\n type: 'number',\n category: 'State',\n label: 'Page',\n },\n pageCount: {\n type: 'number',\n category: 'State',\n label: 'Page count',\n },\n progress: {\n type: 'number',\n category: 'State',\n label: 'Progress',\n },\n canGoPrevious: {\n type: 'boolean',\n category: 'State',\n label: 'Can go previous',\n },\n canGoNext: {\n type: 'boolean',\n category: 'State',\n label: 'Can go next',\n },\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n },\n subtitle: {\n type: 'string',\n category: 'Content',\n label: 'Subtitle',\n },\n chapterLabel: {\n type: 'string',\n category: 'Content',\n label: 'Chapter label',\n },\n pageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Page label',\n },\n previousPageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Previous page label',\n default: 'Previous page',\n },\n nextPageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Next page label',\n default: 'Next page',\n },\n contentsLabel: {\n type: 'string',\n category: 'Content',\n label: 'Contents label',\n default: 'Table of contents',\n },\n appearanceLabel: {\n type: 'string',\n category: 'Content',\n label: 'Appearance label',\n default: 'Reading appearance',\n },\n highlightLabel: {\n type: 'string',\n category: 'Content',\n label: 'Highlight label',\n default: 'Toggle highlight',\n },\n loadingLabel: {\n type: 'string',\n category: 'Content',\n label: 'Loading label',\n default: 'Loading document…',\n },\n errorTitle: {\n type: 'string',\n category: 'Content',\n label: 'Error title',\n default: 'Unable to open this document.',\n },\n unavailableTitle: {\n type: 'string',\n category: 'Content',\n label: 'Unavailable title',\n default: 'Reader preview unavailable.',\n },\n showChrome: {\n type: 'boolean',\n category: 'Chrome',\n label: 'Show chrome',\n default: true,\n },\n readerColorScheme: {\n type: 'enum',\n category: 'Appearance',\n label: 'Color scheme',\n enum: ['system', 'light', 'dark', 'sepia'],\n default: 'system',\n },\n fontScale: {\n type: 'number',\n category: 'Appearance',\n label: 'Font scale',\n default: 1,\n },\n lineHeight: {\n type: 'enum',\n category: 'Appearance',\n label: 'Line height',\n enum: ['compact', 'normal', 'relaxed'],\n default: 'normal',\n },\n highlighted: {\n type: 'boolean',\n category: 'State',\n label: 'Highlighted',\n default: false,\n },\n onPreviousPage: {\n type: 'action',\n category: 'Events',\n label: 'Previous page action',\n },\n onNextPage: {\n type: 'action',\n category: 'Events',\n label: 'Next page action',\n },\n onLocationChange: {\n type: 'action',\n category: 'Events',\n label: 'Location change action',\n },\n onOpenContents: {\n type: 'action',\n category: 'Events',\n label: 'Open contents action',\n },\n onOpenAppearance: {\n type: 'action',\n category: 'Events',\n label: 'Open appearance action',\n },\n onToggleHighlight: {\n type: 'action',\n category: 'Events',\n label: 'Toggle highlight action',\n },\n onOpenExternalLink: {\n type: 'action',\n category: 'Events',\n label: 'Open external link action',\n },\n onReaderError: {\n type: 'action',\n category: 'Events',\n label: 'Reader error action',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/features/reader/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGvE,MAAM,kBAAkB,GAAG,EAAW,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,oGAAoG;IACtG,kBAAkB,EAAE,IAAI;IACxB,YAAY,EAAE;QACZ,YAAY,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;KACpC;IACD,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,IAAI;YAChB,iBAAiB,EAAE,QAAQ;YAC3B,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,QAAQ;SACrB;KACF;IACD,MAAM,EAAE;QACN,YAAY,EAAE;YACZ,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,qBAAqB;YAChC,WAAW,EAAE,2CAA2C;YACxD,aAAa,EAAE,kBAAkB;SAClC;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,WAAW;YAClB,SAAS,EAAE,iBAAiB;YAC5B,WAAW,EAAE,uCAAuC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AINER_ALLOWED_CHILDREN } from '../../constants/authoring';\nimport type { ZoraComponentMeta } from '../../types/authoring';\n\nconst EMPTY_EVENT_FIELDS = [] as const;\n\nexport const readerSurfaceMeta = {\n name: 'ReaderSurface',\n category: 'pattern',\n description:\n 'Adapter-neutral EPUB and PDF reader shell with controlled chrome, progress, and navigation events.',\n directManifestNode: true,\n requirements: {\n capabilities: { ebookReader: true },\n },\n allowedChildren: [],\n blueprint: {\n label: 'Reader',\n defaultProps: {\n format: 'epub',\n status: 'idle',\n showChrome: true,\n readerColorScheme: 'system',\n fontScale: 1,\n lineHeight: 'normal',\n },\n },\n events: {\n previousPage: {\n label: 'Previous page',\n eventType: 'reader.previousPage',\n description: 'Requests navigation to the previous page.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n nextPage: {\n label: 'Next page',\n eventType: 'reader.nextPage',\n description: 'Requests navigation to the next page.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n locationChange: {\n label: 'Location change',\n eventType: 'reader.locationChange',\n description: 'Emitted by the adapter after the destination has been displayed.',\n payloadFields: [\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'locator', type: 'string', label: 'Opaque locator' },\n { path: 'page', type: 'number', label: 'Page' },\n { path: 'pageCount', type: 'number', label: 'Page count' },\n { path: 'progression', type: 'number', label: 'Progression' },\n { path: 'chapterId', type: 'string', label: 'Chapter ID' },\n { path: 'chapterTitle', type: 'string', label: 'Chapter title' },\n { path: 'trigger', type: 'string', label: 'Navigation trigger' },\n ],\n },\n openContents: {\n label: 'Open contents',\n eventType: 'reader.openContents',\n description: 'Requests the app-owned table of contents.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n openAppearance: {\n label: 'Open appearance',\n eventType: 'reader.openAppearance',\n description: 'Requests the app-owned reader appearance controls.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n toggleHighlight: {\n label: 'Toggle highlight',\n eventType: 'reader.toggleHighlight',\n description: 'Requests the app-owned highlight action.',\n payloadFields: EMPTY_EVENT_FIELDS,\n },\n openExternalLink: {\n label: 'Open external link',\n eventType: 'reader.openExternalLink',\n description: 'Emitted when publication content requests an external URL.',\n payloadFields: [{ path: 'url', type: 'string', label: 'URL' }],\n },\n readerError: {\n label: 'Reader error',\n eventType: 'reader.error',\n description: 'Emitted when the adapter rejects or cannot load a document.',\n payloadFields: [\n { path: 'code', type: 'string', label: 'Error code' },\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'message', type: 'string', label: 'Message' },\n ],\n },\n },\n slots: {\n viewport: {\n label: 'Reader viewport adapter',\n allowedChildren: [],\n },\n headerActions: {\n label: 'Header actions',\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n },\n footerActions: {\n label: 'Footer actions',\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n },\n },\n props: {\n source: {\n type: 'media',\n category: 'Document',\n label: 'Source',\n mediaKinds: ['file'],\n },\n format: {\n type: 'enum',\n category: 'Document',\n label: 'Format',\n enum: ['epub', 'pdf'],\n default: 'epub',\n },\n location: {\n type: 'string',\n category: 'State',\n label: 'Location',\n },\n status: {\n type: 'enum',\n category: 'State',\n label: 'Status',\n enum: ['idle', 'loading', 'ready', 'error'],\n default: 'idle',\n },\n page: {\n type: 'number',\n category: 'State',\n label: 'Page',\n },\n pageCount: {\n type: 'number',\n category: 'State',\n label: 'Page count',\n },\n progress: {\n type: 'number',\n category: 'State',\n label: 'Progress',\n },\n canGoPrevious: {\n type: 'boolean',\n category: 'State',\n label: 'Can go previous',\n },\n canGoNext: {\n type: 'boolean',\n category: 'State',\n label: 'Can go next',\n },\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n },\n subtitle: {\n type: 'string',\n category: 'Content',\n label: 'Subtitle',\n },\n chapterLabel: {\n type: 'string',\n category: 'Content',\n label: 'Chapter label',\n },\n pageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Page label',\n },\n previousPageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Previous page label',\n default: 'Previous page',\n },\n nextPageLabel: {\n type: 'string',\n category: 'Content',\n label: 'Next page label',\n default: 'Next page',\n },\n contentsLabel: {\n type: 'string',\n category: 'Content',\n label: 'Contents label',\n default: 'Table of contents',\n },\n appearanceLabel: {\n type: 'string',\n category: 'Content',\n label: 'Appearance label',\n default: 'Reading appearance',\n },\n highlightLabel: {\n type: 'string',\n category: 'Content',\n label: 'Highlight label',\n default: 'Toggle highlight',\n },\n loadingLabel: {\n type: 'string',\n category: 'Content',\n label: 'Loading label',\n default: 'Loading document…',\n },\n errorTitle: {\n type: 'string',\n category: 'Content',\n label: 'Error title',\n default: 'Unable to open this document.',\n },\n unavailableTitle: {\n type: 'string',\n category: 'Content',\n label: 'Unavailable title',\n default: 'Reader preview unavailable.',\n },\n showChrome: {\n type: 'boolean',\n category: 'Chrome',\n label: 'Show chrome',\n default: true,\n },\n readerColorScheme: {\n type: 'enum',\n category: 'Appearance',\n label: 'Color scheme',\n enum: ['system', 'light', 'dark', 'sepia'],\n default: 'system',\n },\n fontScale: {\n type: 'number',\n category: 'Appearance',\n label: 'Font scale',\n default: 1,\n },\n lineHeight: {\n type: 'enum',\n category: 'Appearance',\n label: 'Line height',\n enum: ['compact', 'normal', 'relaxed'],\n default: 'normal',\n },\n highlighted: {\n type: 'boolean',\n category: 'State',\n label: 'Highlighted',\n default: false,\n },\n onPreviousPage: {\n type: 'action',\n category: 'Events',\n label: 'Previous page action',\n },\n onNextPage: {\n type: 'action',\n category: 'Events',\n label: 'Next page action',\n },\n onLocationChange: {\n type: 'action',\n category: 'Events',\n label: 'Location change action',\n },\n onOpenContents: {\n type: 'action',\n category: 'Events',\n label: 'Open contents action',\n },\n onOpenAppearance: {\n type: 'action',\n category: 'Events',\n label: 'Open appearance action',\n },\n onToggleHighlight: {\n type: 'action',\n category: 'Events',\n label: 'Toggle highlight action',\n },\n onOpenExternalLink: {\n type: 'action',\n category: 'Events',\n label: 'Open external link action',\n },\n onReaderError: {\n type: 'action',\n category: 'Events',\n label: 'Reader error action',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"bindableComponentMeta.d.ts","sourceRoot":"","sources":["../../../src/features/authoring/bindableComponentMeta.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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