@ankhorage/zora 27.4.7 → 27.5.3

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 (999) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts +2 -2
  4. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts.map +1 -1
  5. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js +6 -4
  6. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js.map +1 -1
  7. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.d.ts +7 -0
  8. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.d.ts.map +1 -0
  9. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.js +52 -0
  10. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.js.map +1 -0
  11. package/dist/features/graph-view/public.d.ts +1 -1
  12. package/dist/features/graph-view/public.d.ts.map +1 -1
  13. package/dist/features/graph-view/public.js.map +1 -1
  14. package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts +1 -1
  15. package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts.map +1 -1
  16. package/dist/features/theme/application/use-cases/compileZoraTheme.js.map +1 -1
  17. package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts +1 -1
  18. package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts.map +1 -1
  19. package/dist/features/theme/application/use-cases/createZoraThemeConfig.js +1 -1
  20. package/dist/features/theme/application/use-cases/createZoraThemeConfig.js.map +1 -1
  21. package/dist/features/theme/public.d.ts +4 -4
  22. package/dist/features/theme/public.d.ts.map +1 -1
  23. package/dist/features/theme/public.js +3 -3
  24. package/dist/features/theme/public.js.map +1 -1
  25. package/dist/features/theme/zoraDefaultTheme.d.ts +1 -1
  26. package/dist/features/theme/zoraDefaultTheme.d.ts.map +1 -1
  27. package/dist/features/theme/zoraDefaultTheme.js.map +1 -1
  28. package/dist/types/graph-view.d.ts +28 -4
  29. package/dist/types/graph-view.d.ts.map +1 -1
  30. package/dist/types/graph-view.js.map +1 -1
  31. package/package.json +7 -5
  32. package/src/features/flow-status/assets/completed.svg +1 -0
  33. package/src/features/flow-status/assets/flowStatusAssets.test.ts +78 -0
  34. package/src/features/flow-status/assets/manifest.json +36 -0
  35. package/src/features/flow-status/assets/preview.svg +21 -0
  36. package/src/features/flow-status/assets/waiting.svg +1 -0
  37. package/src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx +17 -15
  38. package/src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.test.ts +95 -0
  39. package/src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.ts +71 -0
  40. package/src/features/graph-view/public.ts +5 -0
  41. package/src/features/grid-view/adapters/inbound/GridView.interaction.test.tsx +4 -3
  42. package/src/features/icon/assets/flow/README.md +11 -0
  43. package/src/features/icon/assets/flow/contact-sheet.svg +115 -0
  44. package/src/features/icon/assets/flow/manifest.json +185 -0
  45. package/src/features/icon/assets/flow/node-kinds/ai-agent.svg +1 -0
  46. package/src/features/icon/assets/flow/node-kinds/analytics.svg +1 -0
  47. package/src/features/icon/assets/flow/node-kinds/approval.svg +1 -0
  48. package/src/features/icon/assets/flow/node-kinds/code.svg +1 -0
  49. package/src/features/icon/assets/flow/node-kinds/condition.svg +1 -0
  50. package/src/features/icon/assets/flow/node-kinds/content-input.svg +1 -0
  51. package/src/features/icon/assets/flow/node-kinds/database.svg +1 -0
  52. package/src/features/icon/assets/flow/node-kinds/delay.svg +1 -0
  53. package/src/features/icon/assets/flow/node-kinds/email.svg +1 -0
  54. package/src/features/icon/assets/flow/node-kinds/end.svg +1 -0
  55. package/src/features/icon/assets/flow/node-kinds/filter.svg +1 -0
  56. package/src/features/icon/assets/flow/node-kinds/http-request.svg +1 -0
  57. package/src/features/icon/assets/flow/node-kinds/loop.svg +1 -0
  58. package/src/features/icon/assets/flow/node-kinds/manual.svg +1 -0
  59. package/src/features/icon/assets/flow/node-kinds/merge.svg +1 -0
  60. package/src/features/icon/assets/flow/node-kinds/notification.svg +1 -0
  61. package/src/features/icon/assets/flow/node-kinds/publish.svg +1 -0
  62. package/src/features/icon/assets/flow/node-kinds/split.svg +1 -0
  63. package/src/features/icon/assets/flow/node-kinds/transform.svg +1 -0
  64. package/src/features/icon/assets/flow/node-kinds/trigger.svg +1 -0
  65. package/src/features/icon/assets/flow/node-kinds/webhook.svg +1 -0
  66. package/src/features/tabs/adapters/inbound/Tabs.layout.test.tsx +8 -2
  67. package/src/features/theme/application/use-cases/compileZoraTheme.ts +1 -1
  68. package/src/features/theme/application/use-cases/createZoraThemeConfig.ts +2 -2
  69. package/src/features/theme/public.ts +4 -4
  70. package/src/features/theme/themeModuleResolution.test.ts +41 -0
  71. package/src/features/theme/zoraDefaultTheme.ts +1 -1
  72. package/src/types/graph-view.ts +37 -4
  73. package/src/webPackageExports.test.ts +122 -0
  74. package/web-dist/components/accordion/Accordion.d.ts +6 -3
  75. package/web-dist/components/accordion/Accordion.dependency-0.d.ts +27 -0
  76. package/web-dist/components/accordion/Accordion.dependency-1.d.ts +3 -0
  77. package/web-dist/components/accordion/Accordion.js +2 -4
  78. package/web-dist/components/accordion/Accordion.types-0.d.ts +15 -0
  79. package/web-dist/components/accordion/index.d.ts +2 -1
  80. package/web-dist/components/accordion/index.js +1 -1
  81. package/web-dist/components/accordion-item/AccordionItem.d.ts +6 -3
  82. package/web-dist/components/accordion-item/AccordionItem.dependency-0.d.ts +27 -0
  83. package/web-dist/components/accordion-item/AccordionItem.dependency-1.d.ts +3 -0
  84. package/web-dist/components/accordion-item/AccordionItem.js +0 -2
  85. package/web-dist/components/accordion-item/AccordionItem.types-0.d.ts +13 -0
  86. package/web-dist/components/accordion-item/index.d.ts +2 -1
  87. package/web-dist/components/accordion-item/index.js +1 -1
  88. package/web-dist/components/activity-indicator/ActivityIndicator.d.ts +3 -1
  89. package/web-dist/components/activity-indicator/index.d.ts +2 -1
  90. package/web-dist/components/activity-indicator/index.js +1 -1
  91. package/web-dist/components/app-bar/AppBar.d.ts +6 -2
  92. package/web-dist/components/app-bar/AppBar.dependency-0.d.ts +27 -0
  93. package/web-dist/components/app-bar/AppBar.dependency-1.d.ts +3 -0
  94. package/web-dist/components/app-bar/AppBar.dependency-2.d.ts +18 -0
  95. package/web-dist/components/app-bar/AppBar.types-0.d.ts +39 -0
  96. package/web-dist/components/app-bar/index.d.ts +2 -1
  97. package/web-dist/components/app-bar/index.js +1 -1
  98. package/web-dist/components/app-header/AppHeader.d.ts +6 -2
  99. package/web-dist/components/app-header/AppHeader.dependency-0.d.ts +39 -0
  100. package/web-dist/components/app-header/AppHeader.dependency-1.d.ts +27 -0
  101. package/web-dist/components/app-header/AppHeader.dependency-2.d.ts +3 -0
  102. package/web-dist/components/app-header/AppHeader.dependency-3.d.ts +18 -0
  103. package/web-dist/components/app-header/AppHeader.types-0.d.ts +3 -0
  104. package/web-dist/components/app-header/index.d.ts +2 -1
  105. package/web-dist/components/app-header/index.js +1 -1
  106. package/web-dist/components/app-shell/AppShell.d.ts +6 -7
  107. package/web-dist/components/app-shell/AppShell.dependency-0.d.ts +27 -0
  108. package/web-dist/components/app-shell/AppShell.dependency-1.d.ts +3 -0
  109. package/web-dist/components/app-shell/AppShell.js +2 -12
  110. package/web-dist/components/app-shell/AppShell.types-0.d.ts +10 -0
  111. package/web-dist/components/app-shell/index.d.ts +2 -1
  112. package/web-dist/components/app-shell/index.js +1 -1
  113. package/web-dist/components/auth-screen/AuthScreen.d.ts +11 -8
  114. package/web-dist/components/auth-screen/AuthScreen.dependency-0.d.ts +27 -0
  115. package/web-dist/components/auth-screen/AuthScreen.dependency-1.d.ts +3 -0
  116. package/web-dist/components/auth-screen/AuthScreen.dependency-2.d.ts +45 -0
  117. package/web-dist/components/auth-screen/AuthScreen.dependency-3.d.ts +1 -0
  118. package/web-dist/components/auth-screen/AuthScreen.js +2 -14
  119. package/web-dist/components/auth-screen/AuthScreen.types-0.d.ts +50 -0
  120. package/web-dist/components/auth-screen/index.d.ts +2 -1
  121. package/web-dist/components/auth-screen/index.js +1 -1
  122. package/web-dist/components/avatar/Avatar.d.ts +8 -3
  123. package/web-dist/components/avatar/Avatar.dependency-0.d.ts +27 -0
  124. package/web-dist/components/avatar/Avatar.dependency-1.d.ts +3 -0
  125. package/web-dist/components/avatar/Avatar.dependency-2.d.ts +3 -0
  126. package/web-dist/components/avatar/Avatar.js +2 -4
  127. package/web-dist/components/avatar/Avatar.types-0.d.ts +22 -0
  128. package/web-dist/components/avatar/index.d.ts +2 -1
  129. package/web-dist/components/avatar/index.js +1 -1
  130. package/web-dist/components/avatar-group/AvatarGroup.d.ts +8 -3
  131. package/web-dist/components/avatar-group/AvatarGroup.dependency-0.d.ts +3 -0
  132. package/web-dist/components/avatar-group/AvatarGroup.dependency-1.d.ts +27 -0
  133. package/web-dist/components/avatar-group/AvatarGroup.dependency-2.d.ts +3 -0
  134. package/web-dist/components/avatar-group/AvatarGroup.dependency-3.d.ts +3 -0
  135. package/web-dist/components/avatar-group/AvatarGroup.js +0 -2
  136. package/web-dist/components/avatar-group/AvatarGroup.types-0.d.ts +27 -0
  137. package/web-dist/components/avatar-group/index.d.ts +2 -1
  138. package/web-dist/components/avatar-group/index.js +1 -1
  139. package/web-dist/components/badge/Badge.d.ts +8 -2
  140. package/web-dist/components/badge/Badge.dependency-0.d.ts +27 -0
  141. package/web-dist/components/badge/Badge.dependency-1.d.ts +3 -0
  142. package/web-dist/components/badge/Badge.dependency-2.d.ts +3 -0
  143. package/web-dist/components/badge/Badge.dependency-3.d.ts +3 -0
  144. package/web-dist/components/badge/Badge.types-0.d.ts +18 -0
  145. package/web-dist/components/badge/index.d.ts +2 -1
  146. package/web-dist/components/badge/index.js +1 -1
  147. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.d.ts +12 -4
  148. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-0.d.ts +27 -0
  149. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-1.d.ts +3 -0
  150. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +1 -5
  151. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.types-0.d.ts +21 -0
  152. package/web-dist/components/barcode-scanner-view/index.d.ts +2 -1
  153. package/web-dist/components/barcode-scanner-view/index.js +1 -1
  154. package/web-dist/components/bottom-sheet/BottomSheet.d.ts +6 -7
  155. package/web-dist/components/bottom-sheet/BottomSheet.dependency-0.d.ts +27 -0
  156. package/web-dist/components/bottom-sheet/BottomSheet.dependency-1.d.ts +3 -0
  157. package/web-dist/components/bottom-sheet/BottomSheet.js +1 -11
  158. package/web-dist/components/bottom-sheet/BottomSheet.types-0.d.ts +19 -0
  159. package/web-dist/components/bottom-sheet/index.d.ts +2 -1
  160. package/web-dist/components/bottom-sheet/index.js +1 -1
  161. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.d.ts +1 -7
  162. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +2 -12
  163. package/web-dist/components/bottom-sheet-flat-list/index.d.ts +1 -1
  164. package/web-dist/components/bottom-sheet-flat-list/index.js +1 -1
  165. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.d.ts +1 -7
  166. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +2 -12
  167. package/web-dist/components/bottom-sheet-scroll-view/index.d.ts +1 -1
  168. package/web-dist/components/bottom-sheet-scroll-view/index.js +1 -1
  169. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.d.ts +1 -7
  170. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +2 -12
  171. package/web-dist/components/bottom-sheet-section-list/index.d.ts +1 -1
  172. package/web-dist/components/bottom-sheet-section-list/index.js +1 -1
  173. package/web-dist/components/bottom-sheet-view/BottomSheetView.d.ts +1 -7
  174. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +2 -12
  175. package/web-dist/components/bottom-sheet-view/index.d.ts +1 -1
  176. package/web-dist/components/bottom-sheet-view/index.js +1 -1
  177. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.d.ts +1 -7
  178. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +1 -11
  179. package/web-dist/components/bottom-sheet-virtualized-list/index.d.ts +1 -1
  180. package/web-dist/components/bottom-sheet-virtualized-list/index.js +1 -1
  181. package/web-dist/components/breadcrumbs/Breadcrumbs.d.ts +6 -2
  182. package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-0.d.ts +27 -0
  183. package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-1.d.ts +3 -0
  184. package/web-dist/components/breadcrumbs/Breadcrumbs.types-0.d.ts +24 -0
  185. package/web-dist/components/breadcrumbs/index.d.ts +2 -1
  186. package/web-dist/components/breadcrumbs/index.js +1 -1
  187. package/web-dist/components/button/Button.d.ts +12 -4
  188. package/web-dist/components/button/Button.dependency-0.d.ts +27 -0
  189. package/web-dist/components/button/Button.dependency-1.d.ts +3 -0
  190. package/web-dist/components/button/Button.dependency-2.d.ts +3 -0
  191. package/web-dist/components/button/Button.dependency-3.d.ts +3 -0
  192. package/web-dist/components/button/Button.js +2 -6
  193. package/web-dist/components/button/Button.types-0.d.ts +20 -0
  194. package/web-dist/components/button/index.d.ts +2 -1
  195. package/web-dist/components/button/index.js +1 -1
  196. package/web-dist/components/button-group/ButtonGroup.d.ts +8 -4
  197. package/web-dist/components/button-group/ButtonGroup.dependency-0.d.ts +27 -0
  198. package/web-dist/components/button-group/ButtonGroup.dependency-1.d.ts +3 -0
  199. package/web-dist/components/button-group/ButtonGroup.dependency-2.d.ts +6 -0
  200. package/web-dist/components/button-group/ButtonGroup.js +2 -6
  201. package/web-dist/components/button-group/ButtonGroup.types-0.d.ts +17 -0
  202. package/web-dist/components/button-group/index.d.ts +2 -1
  203. package/web-dist/components/button-group/index.js +1 -1
  204. package/web-dist/components/camera-permission-view/CameraPermissionView.d.ts +12 -4
  205. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-0.d.ts +27 -0
  206. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-1.d.ts +3 -0
  207. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-2.d.ts +20 -0
  208. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-3.d.ts +3 -0
  209. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-4.d.ts +3 -0
  210. package/web-dist/components/camera-permission-view/CameraPermissionView.js +2 -6
  211. package/web-dist/components/camera-permission-view/CameraPermissionView.types-0.d.ts +20 -0
  212. package/web-dist/components/camera-permission-view/index.d.ts +2 -1
  213. package/web-dist/components/camera-permission-view/index.js +1 -1
  214. package/web-dist/components/card/Card.d.ts +12 -6
  215. package/web-dist/components/card/Card.dependency-0.d.ts +27 -0
  216. package/web-dist/components/card/Card.dependency-1.d.ts +3 -0
  217. package/web-dist/components/card/Card.js +2 -10
  218. package/web-dist/components/card/Card.types-0.d.ts +20 -0
  219. package/web-dist/components/card/index.d.ts +2 -1
  220. package/web-dist/components/card/index.js +1 -1
  221. package/web-dist/components/card-back/CardBack.d.ts +6 -6
  222. package/web-dist/components/card-back/CardBack.dependency-0.d.ts +27 -0
  223. package/web-dist/components/card-back/CardBack.dependency-1.d.ts +3 -0
  224. package/web-dist/components/card-back/CardBack.js +2 -10
  225. package/web-dist/components/card-back/CardBack.types-0.d.ts +34 -0
  226. package/web-dist/components/card-back/index.d.ts +2 -1
  227. package/web-dist/components/card-back/index.js +1 -1
  228. package/web-dist/components/card-hand/CardHand.d.ts +6 -6
  229. package/web-dist/components/card-hand/CardHand.dependency-0.d.ts +27 -0
  230. package/web-dist/components/card-hand/CardHand.dependency-1.d.ts +3 -0
  231. package/web-dist/components/card-hand/CardHand.js +2 -10
  232. package/web-dist/components/card-hand/CardHand.types-0.d.ts +43 -0
  233. package/web-dist/components/card-hand/index.d.ts +2 -1
  234. package/web-dist/components/card-hand/index.js +1 -1
  235. package/web-dist/components/chat-list-item/ChatListItem.d.ts +10 -3
  236. package/web-dist/components/chat-list-item/ChatListItem.dependency-0.d.ts +3 -0
  237. package/web-dist/components/chat-list-item/ChatListItem.dependency-1.d.ts +27 -0
  238. package/web-dist/components/chat-list-item/ChatListItem.dependency-2.d.ts +3 -0
  239. package/web-dist/components/chat-list-item/ChatListItem.dependency-3.d.ts +3 -0
  240. package/web-dist/components/chat-list-item/ChatListItem.js +2 -4
  241. package/web-dist/components/chat-list-item/ChatListItem.types-0.d.ts +36 -0
  242. package/web-dist/components/chat-list-item/index.d.ts +2 -1
  243. package/web-dist/components/chat-list-item/index.js +1 -1
  244. package/web-dist/components/checkbox/Checkbox.d.ts +10 -3
  245. package/web-dist/components/checkbox/Checkbox.dependency-0.d.ts +27 -0
  246. package/web-dist/components/checkbox/Checkbox.dependency-1.d.ts +3 -0
  247. package/web-dist/components/checkbox/Checkbox.js +2 -4
  248. package/web-dist/components/checkbox/Checkbox.types-0.d.ts +6 -0
  249. package/web-dist/components/checkbox/index.d.ts +2 -1
  250. package/web-dist/components/checkbox/index.js +1 -1
  251. package/web-dist/components/checkbox-group/CheckboxGroup.d.ts +8 -3
  252. package/web-dist/components/checkbox-group/CheckboxGroup.dependency-0.d.ts +27 -0
  253. package/web-dist/components/checkbox-group/CheckboxGroup.dependency-1.d.ts +3 -0
  254. package/web-dist/components/checkbox-group/CheckboxGroup.js +0 -2
  255. package/web-dist/components/checkbox-group/CheckboxGroup.types-0.d.ts +21 -0
  256. package/web-dist/components/checkbox-group/index.d.ts +2 -1
  257. package/web-dist/components/checkbox-group/index.js +1 -1
  258. package/web-dist/components/chess-board/ChessBoard.d.ts +6 -3
  259. package/web-dist/components/chess-board/ChessBoard.dependency-0.d.ts +27 -0
  260. package/web-dist/components/chess-board/ChessBoard.dependency-1.d.ts +3 -0
  261. package/web-dist/components/chess-board/ChessBoard.js +2 -4
  262. package/web-dist/components/chess-board/ChessBoard.types-0.d.ts +79 -0
  263. package/web-dist/components/chess-board/index.d.ts +2 -1
  264. package/web-dist/components/chess-board/index.js +1 -1
  265. package/web-dist/components/chip/Chip.d.ts +8 -3
  266. package/web-dist/components/chip/Chip.dependency-0.d.ts +27 -0
  267. package/web-dist/components/chip/Chip.dependency-1.d.ts +3 -0
  268. package/web-dist/components/chip/Chip.dependency-2.d.ts +3 -0
  269. package/web-dist/components/chip/Chip.dependency-3.d.ts +3 -0
  270. package/web-dist/components/chip/Chip.js +2 -4
  271. package/web-dist/components/chip/Chip.types-0.d.ts +19 -0
  272. package/web-dist/components/chip/index.d.ts +2 -1
  273. package/web-dist/components/chip/index.js +1 -1
  274. package/web-dist/components/chip-group/ChipGroup.d.ts +8 -3
  275. package/web-dist/components/chip-group/ChipGroup.js +0 -2
  276. package/web-dist/components/chip-group/ChipGroup.types-0.d.ts +13 -0
  277. package/web-dist/components/chip-group/index.d.ts +2 -1
  278. package/web-dist/components/chip-group/index.js +1 -1
  279. package/web-dist/components/collection-editor/CollectionEditor.d.ts +10 -2
  280. package/web-dist/components/collection-editor/CollectionEditor.dependency-0.d.ts +27 -0
  281. package/web-dist/components/collection-editor/CollectionEditor.dependency-1.d.ts +3 -0
  282. package/web-dist/components/collection-editor/CollectionEditor.types-0.d.ts +26 -0
  283. package/web-dist/components/collection-editor/index.d.ts +2 -1
  284. package/web-dist/components/collection-editor/index.js +1 -1
  285. package/web-dist/components/color-hue-scale/ColorHueScale.d.ts +4 -5
  286. package/web-dist/components/color-hue-scale/ColorHueScale.dependency-0.d.ts +27 -0
  287. package/web-dist/components/color-hue-scale/ColorHueScale.dependency-1.d.ts +3 -0
  288. package/web-dist/components/color-hue-scale/ColorHueScale.js +2 -8
  289. package/web-dist/components/color-hue-scale/ColorHueScale.types-0.d.ts +8 -0
  290. package/web-dist/components/color-hue-scale/index.d.ts +2 -1
  291. package/web-dist/components/color-hue-scale/index.js +1 -1
  292. package/web-dist/components/color-picker/ColorPicker.d.ts +6 -5
  293. package/web-dist/components/color-picker/ColorPicker.dependency-0.d.ts +27 -0
  294. package/web-dist/components/color-picker/ColorPicker.dependency-1.d.ts +3 -0
  295. package/web-dist/components/color-picker/ColorPicker.js +1 -7
  296. package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +81 -0
  297. package/web-dist/components/color-picker/index.d.ts +2 -1
  298. package/web-dist/components/color-picker/index.js +1 -1
  299. package/web-dist/components/color-tone/ColorTone.d.ts +6 -5
  300. package/web-dist/components/color-tone/ColorTone.dependency-0.d.ts +27 -0
  301. package/web-dist/components/color-tone/ColorTone.dependency-1.d.ts +3 -0
  302. package/web-dist/components/color-tone/ColorTone.js +2 -8
  303. package/web-dist/components/color-tone/ColorTone.types-0.d.ts +31 -0
  304. package/web-dist/components/color-tone/index.d.ts +2 -1
  305. package/web-dist/components/color-tone/index.js +1 -1
  306. package/web-dist/components/color-wheel/ColorWheel.d.ts +6 -5
  307. package/web-dist/components/color-wheel/ColorWheel.dependency-0.d.ts +27 -0
  308. package/web-dist/components/color-wheel/ColorWheel.dependency-1.d.ts +3 -0
  309. package/web-dist/components/color-wheel/ColorWheel.js +1 -7
  310. package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +15 -0
  311. package/web-dist/components/color-wheel/index.d.ts +2 -1
  312. package/web-dist/components/color-wheel/index.js +1 -1
  313. package/web-dist/components/content-rail/ContentRail.d.ts +11 -2
  314. package/web-dist/components/content-rail/ContentRail.dependency-0.d.ts +27 -0
  315. package/web-dist/components/content-rail/ContentRail.dependency-1.d.ts +3 -0
  316. package/web-dist/components/content-rail/ContentRail.types-0.d.ts +40 -0
  317. package/web-dist/components/content-rail/index.d.ts +2 -1
  318. package/web-dist/components/content-rail/index.js +1 -1
  319. package/web-dist/components/data-table/DataTable.d.ts +8 -2
  320. package/web-dist/components/data-table/DataTable.dependency-0.d.ts +27 -0
  321. package/web-dist/components/data-table/DataTable.dependency-1.d.ts +3 -0
  322. package/web-dist/components/data-table/DataTable.dependency-2.d.ts +3 -0
  323. package/web-dist/components/data-table/DataTable.types-0.d.ts +62 -0
  324. package/web-dist/components/data-table/index.d.ts +2 -1
  325. package/web-dist/components/data-table/index.js +1 -1
  326. package/web-dist/components/date-picker/DatePicker.d.ts +6 -2
  327. package/web-dist/components/date-picker/DatePicker.dependency-0.d.ts +27 -0
  328. package/web-dist/components/date-picker/DatePicker.dependency-1.d.ts +3 -0
  329. package/web-dist/components/date-picker/DatePicker.types-0.d.ts +20 -0
  330. package/web-dist/components/date-picker/index.d.ts +2 -1
  331. package/web-dist/components/date-picker/index.js +1 -1
  332. package/web-dist/components/dialog/Dialog.d.ts +6 -2
  333. package/web-dist/components/dialog/Dialog.dependency-0.d.ts +27 -0
  334. package/web-dist/components/dialog/Dialog.dependency-1.d.ts +3 -0
  335. package/web-dist/components/dialog/Dialog.dependency-2.d.ts +1 -0
  336. package/web-dist/components/dialog/Dialog.types-0.d.ts +16 -0
  337. package/web-dist/components/dialog/index.d.ts +2 -1
  338. package/web-dist/components/dialog/index.js +1 -1
  339. package/web-dist/components/divider/Divider.d.ts +6 -7
  340. package/web-dist/components/divider/Divider.dependency-0.d.ts +27 -0
  341. package/web-dist/components/divider/Divider.dependency-1.d.ts +3 -0
  342. package/web-dist/components/divider/Divider.js +2 -12
  343. package/web-dist/components/divider/Divider.types-0.d.ts +6 -0
  344. package/web-dist/components/divider/index.d.ts +2 -1
  345. package/web-dist/components/divider/index.js +1 -1
  346. package/web-dist/components/empty-state/EmptyState.d.ts +13 -2
  347. package/web-dist/components/empty-state/EmptyState.dependency-0.d.ts +27 -0
  348. package/web-dist/components/empty-state/EmptyState.dependency-1.d.ts +3 -0
  349. package/web-dist/components/empty-state/EmptyState.dependency-2.d.ts +3 -0
  350. package/web-dist/components/empty-state/EmptyState.dependency-3.d.ts +3 -0
  351. package/web-dist/components/empty-state/EmptyState.types-0.d.ts +23 -0
  352. package/web-dist/components/empty-state/index.d.ts +2 -1
  353. package/web-dist/components/empty-state/index.js +1 -1
  354. package/web-dist/components/explorer/Explorer.d.ts +6 -4
  355. package/web-dist/components/explorer/Explorer.dependency-0.d.ts +27 -0
  356. package/web-dist/components/explorer/Explorer.dependency-1.d.ts +3 -0
  357. package/web-dist/components/explorer/Explorer.js +2 -6
  358. package/web-dist/components/explorer/Explorer.types-0.d.ts +75 -0
  359. package/web-dist/components/explorer/index.d.ts +2 -1
  360. package/web-dist/components/explorer/index.js +1 -1
  361. package/web-dist/components/field/Field.d.ts +6 -2
  362. package/web-dist/components/field/Field.dependency-0.d.ts +11 -0
  363. package/web-dist/components/field/Field.dependency-1.d.ts +27 -0
  364. package/web-dist/components/field/Field.dependency-2.d.ts +3 -0
  365. package/web-dist/components/field/index.d.ts +1 -1
  366. package/web-dist/components/field/index.js +1 -1
  367. package/web-dist/components/file-explorer/FileExplorer.d.ts +6 -4
  368. package/web-dist/components/file-explorer/FileExplorer.dependency-0.d.ts +27 -0
  369. package/web-dist/components/file-explorer/FileExplorer.dependency-1.d.ts +3 -0
  370. package/web-dist/components/file-explorer/FileExplorer.js +2 -6
  371. package/web-dist/components/file-explorer/FileExplorer.types-0.d.ts +75 -0
  372. package/web-dist/components/file-explorer/index.d.ts +2 -1
  373. package/web-dist/components/file-explorer/index.js +1 -1
  374. package/web-dist/components/flat-list/FlatList.d.ts +6 -6
  375. package/web-dist/components/flat-list/FlatList.dependency-0.d.ts +27 -0
  376. package/web-dist/components/flat-list/FlatList.dependency-1.d.ts +3 -0
  377. package/web-dist/components/flat-list/FlatList.js +2 -10
  378. package/web-dist/components/flat-list/FlatList.types-0.d.ts +26 -0
  379. package/web-dist/components/flat-list/index.d.ts +2 -1
  380. package/web-dist/components/flat-list/index.js +1 -1
  381. package/web-dist/components/forgot-password-form/ForgotPasswordForm.d.ts +10 -8
  382. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-0.d.ts +27 -0
  383. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-1.d.ts +3 -0
  384. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-2.d.ts +45 -0
  385. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-3.d.ts +1 -0
  386. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +2 -14
  387. package/web-dist/components/forgot-password-form/ForgotPasswordForm.types-0.d.ts +27 -0
  388. package/web-dist/components/forgot-password-form/index.d.ts +2 -1
  389. package/web-dist/components/forgot-password-form/index.js +1 -1
  390. package/web-dist/components/form/Form.d.ts +6 -5
  391. package/web-dist/components/form/Form.dependency-0.d.ts +27 -0
  392. package/web-dist/components/form/Form.dependency-1.d.ts +3 -0
  393. package/web-dist/components/form/Form.js +3 -10
  394. package/web-dist/components/form/Form.types-0.d.ts +12 -0
  395. package/web-dist/components/form/index.d.ts +2 -1
  396. package/web-dist/components/form/index.js +1 -1
  397. package/web-dist/components/form-actions/FormActions.d.ts +8 -5
  398. package/web-dist/components/form-actions/FormActions.dependency-0.d.ts +27 -0
  399. package/web-dist/components/form-actions/FormActions.dependency-1.d.ts +3 -0
  400. package/web-dist/components/form-actions/FormActions.js +3 -10
  401. package/web-dist/components/form-actions/FormActions.types-0.d.ts +11 -0
  402. package/web-dist/components/form-actions/index.d.ts +2 -1
  403. package/web-dist/components/form-actions/index.js +1 -1
  404. package/web-dist/components/form-error/FormError.d.ts +6 -5
  405. package/web-dist/components/form-error/FormError.dependency-0.d.ts +27 -0
  406. package/web-dist/components/form-error/FormError.dependency-1.d.ts +3 -0
  407. package/web-dist/components/form-error/FormError.js +1 -8
  408. package/web-dist/components/form-error/FormError.types-0.d.ts +7 -0
  409. package/web-dist/components/form-error/index.d.ts +2 -1
  410. package/web-dist/components/form-error/index.js +1 -1
  411. package/web-dist/components/game/Game.d.ts +6 -7
  412. package/web-dist/components/game/Game.dependency-0.d.ts +27 -0
  413. package/web-dist/components/game/Game.dependency-1.d.ts +3 -0
  414. package/web-dist/components/game/Game.js +2 -12
  415. package/web-dist/components/game/Game.types-0.d.ts +24 -0
  416. package/web-dist/components/game/index.d.ts +2 -1
  417. package/web-dist/components/game/index.js +1 -1
  418. package/web-dist/components/game-entity/GameEntity.d.ts +6 -7
  419. package/web-dist/components/game-entity/GameEntity.dependency-0.d.ts +27 -0
  420. package/web-dist/components/game-entity/GameEntity.dependency-1.d.ts +3 -0
  421. package/web-dist/components/game-entity/GameEntity.js +2 -12
  422. package/web-dist/components/game-entity/GameEntity.types-0.d.ts +41 -0
  423. package/web-dist/components/game-entity/index.d.ts +2 -1
  424. package/web-dist/components/game-entity/index.js +1 -1
  425. package/web-dist/components/game-field/GameField.d.ts +4 -7
  426. package/web-dist/components/game-field/GameField.dependency-0.d.ts +27 -0
  427. package/web-dist/components/game-field/GameField.dependency-1.d.ts +3 -0
  428. package/web-dist/components/game-field/GameField.js +2 -12
  429. package/web-dist/components/game-field/GameField.types-0.d.ts +13 -0
  430. package/web-dist/components/game-field/index.d.ts +2 -1
  431. package/web-dist/components/game-field/index.js +1 -1
  432. package/web-dist/components/game-input-zone/GameInputZone.d.ts +4 -7
  433. package/web-dist/components/game-input-zone/GameInputZone.dependency-0.d.ts +27 -0
  434. package/web-dist/components/game-input-zone/GameInputZone.dependency-1.d.ts +3 -0
  435. package/web-dist/components/game-input-zone/GameInputZone.js +2 -12
  436. package/web-dist/components/game-input-zone/GameInputZone.types-0.d.ts +25 -0
  437. package/web-dist/components/game-input-zone/index.d.ts +2 -1
  438. package/web-dist/components/game-input-zone/index.js +1 -1
  439. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.d.ts +6 -7
  440. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-0.d.ts +27 -0
  441. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-1.d.ts +3 -0
  442. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +2 -12
  443. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.types-0.d.ts +10 -0
  444. package/web-dist/components/game-measurement-probe/index.d.ts +2 -1
  445. package/web-dist/components/game-measurement-probe/index.js +1 -1
  446. package/web-dist/components/game-overlay/GameOverlay.d.ts +4 -7
  447. package/web-dist/components/game-overlay/GameOverlay.dependency-0.d.ts +27 -0
  448. package/web-dist/components/game-overlay/GameOverlay.dependency-1.d.ts +3 -0
  449. package/web-dist/components/game-overlay/GameOverlay.js +0 -10
  450. package/web-dist/components/game-overlay/GameOverlay.types-0.d.ts +14 -0
  451. package/web-dist/components/game-overlay/index.d.ts +2 -1
  452. package/web-dist/components/game-overlay/index.js +1 -1
  453. package/web-dist/components/gradient/Gradient.d.ts +11 -3
  454. package/web-dist/components/gradient/Gradient.dependency-0.d.ts +27 -0
  455. package/web-dist/components/gradient/Gradient.dependency-1.d.ts +3 -0
  456. package/web-dist/components/gradient/Gradient.dependency-2.d.ts +6 -0
  457. package/web-dist/components/gradient/Gradient.js +1 -3
  458. package/web-dist/components/gradient/Gradient.types-0.d.ts +29 -0
  459. package/web-dist/components/gradient/index.d.ts +2 -1
  460. package/web-dist/components/gradient/index.js +1 -1
  461. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.d.ts +11 -3
  462. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +1 -3
  463. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.types-0.d.ts +30 -0
  464. package/web-dist/components/gradient-renderer-provider/index.d.ts +2 -1
  465. package/web-dist/components/gradient-renderer-provider/index.js +1 -1
  466. package/web-dist/components/graph-view/GraphView.d.ts +3 -10
  467. package/web-dist/components/graph-view/GraphView.js +48 -7
  468. package/web-dist/components/graph-view/GraphView.types-0.d.ts +49 -36
  469. package/web-dist/components/graph-view/index.d.ts +2 -1
  470. package/web-dist/components/graph-view/index.js +1 -1
  471. package/web-dist/components/grid/Grid.d.ts +6 -7
  472. package/web-dist/components/grid/Grid.dependency-0.d.ts +27 -0
  473. package/web-dist/components/grid/Grid.dependency-1.d.ts +3 -0
  474. package/web-dist/components/grid/Grid.js +2 -12
  475. package/web-dist/components/grid/Grid.types-0.d.ts +6 -0
  476. package/web-dist/components/grid/index.d.ts +2 -1
  477. package/web-dist/components/grid/index.js +1 -1
  478. package/web-dist/components/grid-interactions/GridInteractions.d.ts +6 -2
  479. package/web-dist/components/grid-interactions/GridInteractions.dependency-0.d.ts +27 -0
  480. package/web-dist/components/grid-interactions/GridInteractions.dependency-1.d.ts +3 -0
  481. package/web-dist/components/grid-interactions/GridInteractions.types-0.d.ts +66 -0
  482. package/web-dist/components/grid-interactions/index.d.ts +2 -1
  483. package/web-dist/components/grid-interactions/index.js +1 -1
  484. package/web-dist/components/grid-line-overlay/GridLineOverlay.d.ts +6 -3
  485. package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-0.d.ts +27 -0
  486. package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-1.d.ts +3 -0
  487. package/web-dist/components/grid-line-overlay/GridLineOverlay.js +2 -4
  488. package/web-dist/components/grid-line-overlay/GridLineOverlay.types-0.d.ts +32 -0
  489. package/web-dist/components/grid-line-overlay/index.d.ts +2 -1
  490. package/web-dist/components/grid-line-overlay/index.js +1 -1
  491. package/web-dist/components/grid-ruler/GridRuler.d.ts +6 -3
  492. package/web-dist/components/grid-ruler/GridRuler.dependency-0.d.ts +27 -0
  493. package/web-dist/components/grid-ruler/GridRuler.dependency-1.d.ts +3 -0
  494. package/web-dist/components/grid-ruler/GridRuler.js +0 -2
  495. package/web-dist/components/grid-ruler/GridRuler.types-0.d.ts +26 -0
  496. package/web-dist/components/grid-ruler/index.d.ts +2 -1
  497. package/web-dist/components/grid-ruler/index.js +1 -1
  498. package/web-dist/components/grid-view/GridView.d.ts +6 -3
  499. package/web-dist/components/grid-view/GridView.dependency-0.d.ts +27 -0
  500. package/web-dist/components/grid-view/GridView.dependency-1.d.ts +3 -0
  501. package/web-dist/components/grid-view/GridView.js +2 -4
  502. package/web-dist/components/grid-view/GridView.types-0.d.ts +35 -0
  503. package/web-dist/components/grid-view/index.d.ts +2 -1
  504. package/web-dist/components/grid-view/index.js +1 -1
  505. package/web-dist/components/heading/Heading.d.ts +12 -3
  506. package/web-dist/components/heading/Heading.dependency-0.d.ts +27 -0
  507. package/web-dist/components/heading/Heading.dependency-1.d.ts +3 -0
  508. package/web-dist/components/heading/Heading.dependency-2.d.ts +5 -0
  509. package/web-dist/components/heading/Heading.js +2 -4
  510. package/web-dist/components/heading/Heading.types-0.d.ts +42 -0
  511. package/web-dist/components/heading/index.d.ts +2 -1
  512. package/web-dist/components/heading/index.js +1 -1
  513. package/web-dist/components/hero/Hero.d.ts +10 -2
  514. package/web-dist/components/hero/Hero.dependency-0.d.ts +27 -0
  515. package/web-dist/components/hero/Hero.dependency-1.d.ts +3 -0
  516. package/web-dist/components/hero/Hero.dependency-2.d.ts +3 -0
  517. package/web-dist/components/hero/Hero.dependency-3.d.ts +3 -0
  518. package/web-dist/components/hero/Hero.types-0.d.ts +35 -0
  519. package/web-dist/components/hero/index.d.ts +2 -1
  520. package/web-dist/components/hero/index.js +1 -1
  521. package/web-dist/components/icon/Icon.d.ts +6 -2
  522. package/web-dist/components/icon/Icon.dependency-0.d.ts +27 -0
  523. package/web-dist/components/icon/Icon.dependency-1.d.ts +3 -0
  524. package/web-dist/components/icon/Icon.types-0.d.ts +5 -0
  525. package/web-dist/components/icon/index.d.ts +2 -1
  526. package/web-dist/components/icon/index.js +1 -1
  527. package/web-dist/components/icon-button/IconButton.d.ts +8 -4
  528. package/web-dist/components/icon-button/IconButton.dependency-0.d.ts +27 -0
  529. package/web-dist/components/icon-button/IconButton.dependency-1.d.ts +3 -0
  530. package/web-dist/components/icon-button/IconButton.dependency-2.d.ts +3 -0
  531. package/web-dist/components/icon-button/IconButton.dependency-3.d.ts +3 -0
  532. package/web-dist/components/icon-button/IconButton.dependency-4.d.ts +3 -0
  533. package/web-dist/components/icon-button/IconButton.js +0 -4
  534. package/web-dist/components/icon-button/IconButton.types-0.d.ts +24 -0
  535. package/web-dist/components/icon-button/index.d.ts +2 -1
  536. package/web-dist/components/icon-button/index.js +1 -1
  537. package/web-dist/components/image/Image.d.ts +6 -2
  538. package/web-dist/components/image/Image.dependency-0.d.ts +27 -0
  539. package/web-dist/components/image/Image.dependency-1.d.ts +3 -0
  540. package/web-dist/components/image/Image.dependency-2.d.ts +23 -0
  541. package/web-dist/components/image/Image.types-0.d.ts +9 -0
  542. package/web-dist/components/image/index.d.ts +2 -1
  543. package/web-dist/components/image/index.js +1 -1
  544. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.d.ts +6 -2
  545. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-0.d.ts +27 -0
  546. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-1.d.ts +3 -0
  547. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.types-0.d.ts +8 -0
  548. package/web-dist/components/keyboard-avoiding-view/index.d.ts +2 -1
  549. package/web-dist/components/keyboard-avoiding-view/index.js +1 -1
  550. package/web-dist/components/list/List.d.ts +6 -6
  551. package/web-dist/components/list/List.dependency-0.d.ts +27 -0
  552. package/web-dist/components/list/List.dependency-1.d.ts +3 -0
  553. package/web-dist/components/list/List.js +2 -10
  554. package/web-dist/components/list/List.types-0.d.ts +19 -0
  555. package/web-dist/components/list/index.d.ts +2 -1
  556. package/web-dist/components/list/index.js +1 -1
  557. package/web-dist/components/list-item/ListItem.d.ts +6 -6
  558. package/web-dist/components/list-item/ListItem.js +2 -10
  559. package/web-dist/components/list-item/ListItem.types-0.d.ts +3 -0
  560. package/web-dist/components/list-item/index.d.ts +2 -1
  561. package/web-dist/components/list-item/index.js +1 -1
  562. package/web-dist/components/list-section/ListSection.d.ts +6 -6
  563. package/web-dist/components/list-section/ListSection.js +2 -10
  564. package/web-dist/components/list-section/ListSection.types-0.d.ts +1 -0
  565. package/web-dist/components/list-section/index.d.ts +2 -1
  566. package/web-dist/components/list-section/index.js +1 -1
  567. package/web-dist/components/matrix-grid/MatrixGrid.d.ts +6 -2
  568. package/web-dist/components/matrix-grid/MatrixGrid.dependency-0.d.ts +27 -0
  569. package/web-dist/components/matrix-grid/MatrixGrid.dependency-1.d.ts +3 -0
  570. package/web-dist/components/matrix-grid/MatrixGrid.dependency-2.d.ts +1 -0
  571. package/web-dist/components/matrix-grid/MatrixGrid.types-0.d.ts +30 -0
  572. package/web-dist/components/matrix-grid/index.d.ts +2 -1
  573. package/web-dist/components/matrix-grid/index.js +1 -1
  574. package/web-dist/components/media-card/MediaCard.d.ts +8 -6
  575. package/web-dist/components/media-card/MediaCard.js +2 -10
  576. package/web-dist/components/media-card/MediaCard.types-0.d.ts +3 -0
  577. package/web-dist/components/media-card/index.d.ts +2 -1
  578. package/web-dist/components/media-card/index.js +1 -1
  579. package/web-dist/components/media-explorer/MediaExplorer.d.ts +6 -4
  580. package/web-dist/components/media-explorer/MediaExplorer.dependency-0.d.ts +27 -0
  581. package/web-dist/components/media-explorer/MediaExplorer.dependency-1.d.ts +3 -0
  582. package/web-dist/components/media-explorer/MediaExplorer.js +0 -4
  583. package/web-dist/components/media-explorer/MediaExplorer.types-0.d.ts +75 -0
  584. package/web-dist/components/media-explorer/index.d.ts +2 -1
  585. package/web-dist/components/media-explorer/index.js +1 -1
  586. package/web-dist/components/message-bubble/MessageBubble.d.ts +10 -3
  587. package/web-dist/components/message-bubble/MessageBubble.dependency-0.d.ts +3 -0
  588. package/web-dist/components/message-bubble/MessageBubble.dependency-1.d.ts +27 -0
  589. package/web-dist/components/message-bubble/MessageBubble.dependency-2.d.ts +3 -0
  590. package/web-dist/components/message-bubble/MessageBubble.dependency-3.d.ts +3 -0
  591. package/web-dist/components/message-bubble/MessageBubble.js +0 -2
  592. package/web-dist/components/message-bubble/MessageBubble.types-0.d.ts +46 -0
  593. package/web-dist/components/message-bubble/index.d.ts +2 -1
  594. package/web-dist/components/message-bubble/index.js +1 -1
  595. package/web-dist/components/metric-card/MetricCard.d.ts +8 -6
  596. package/web-dist/components/metric-card/MetricCard.dependency-0.d.ts +27 -0
  597. package/web-dist/components/metric-card/MetricCard.dependency-1.d.ts +3 -0
  598. package/web-dist/components/metric-card/MetricCard.dependency-2.d.ts +1 -0
  599. package/web-dist/components/metric-card/MetricCard.dependency-3.d.ts +3 -0
  600. package/web-dist/components/metric-card/MetricCard.js +2 -10
  601. package/web-dist/components/metric-card/MetricCard.types-0.d.ts +22 -0
  602. package/web-dist/components/metric-card/index.d.ts +2 -1
  603. package/web-dist/components/metric-card/index.js +1 -1
  604. package/web-dist/components/missing-element/MissingElement.d.ts +11 -2
  605. package/web-dist/components/missing-element/MissingElement.dependency-0.d.ts +27 -0
  606. package/web-dist/components/missing-element/MissingElement.dependency-1.d.ts +3 -0
  607. package/web-dist/components/missing-element/MissingElement.types-0.d.ts +9 -0
  608. package/web-dist/components/missing-element/index.d.ts +2 -1
  609. package/web-dist/components/missing-element/index.js +1 -1
  610. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.d.ts +11 -8
  611. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-0.d.ts +27 -0
  612. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-1.d.ts +3 -0
  613. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-2.d.ts +20 -0
  614. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-3.d.ts +3 -0
  615. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-4.d.ts +3 -0
  616. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +2 -14
  617. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.types-0.d.ts +22 -0
  618. package/web-dist/components/o-auth-provider-button/index.d.ts +2 -1
  619. package/web-dist/components/o-auth-provider-button/index.js +1 -1
  620. package/web-dist/components/o-auth-provider-list/OAuthProviderList.d.ts +8 -8
  621. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-0.d.ts +27 -0
  622. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-1.d.ts +3 -0
  623. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-2.d.ts +20 -0
  624. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-3.d.ts +3 -0
  625. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-4.d.ts +3 -0
  626. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +2 -14
  627. package/web-dist/components/o-auth-provider-list/OAuthProviderList.types-0.d.ts +31 -0
  628. package/web-dist/components/o-auth-provider-list/index.d.ts +2 -1
  629. package/web-dist/components/o-auth-provider-list/index.js +1 -1
  630. package/web-dist/components/opening-book/OpeningBook.d.ts +6 -3
  631. package/web-dist/components/opening-book/OpeningBook.dependency-0.d.ts +27 -0
  632. package/web-dist/components/opening-book/OpeningBook.dependency-1.d.ts +3 -0
  633. package/web-dist/components/opening-book/OpeningBook.js +0 -2
  634. package/web-dist/components/opening-book/OpeningBook.types-0.d.ts +37 -0
  635. package/web-dist/components/opening-book/index.d.ts +2 -1
  636. package/web-dist/components/opening-book/index.js +1 -1
  637. package/web-dist/components/otp-form/OtpForm.d.ts +10 -8
  638. package/web-dist/components/otp-form/OtpForm.dependency-0.d.ts +27 -0
  639. package/web-dist/components/otp-form/OtpForm.dependency-1.d.ts +3 -0
  640. package/web-dist/components/otp-form/OtpForm.dependency-2.d.ts +45 -0
  641. package/web-dist/components/otp-form/OtpForm.dependency-3.d.ts +1 -0
  642. package/web-dist/components/otp-form/OtpForm.js +1 -13
  643. package/web-dist/components/otp-form/OtpForm.types-0.d.ts +26 -0
  644. package/web-dist/components/otp-form/index.d.ts +2 -1
  645. package/web-dist/components/otp-form/index.js +1 -1
  646. package/web-dist/components/pagination/Pagination.d.ts +6 -2
  647. package/web-dist/components/pagination/Pagination.dependency-0.d.ts +27 -0
  648. package/web-dist/components/pagination/Pagination.dependency-1.d.ts +3 -0
  649. package/web-dist/components/pagination/Pagination.types-0.d.ts +16 -0
  650. package/web-dist/components/pagination/index.d.ts +2 -1
  651. package/web-dist/components/pagination/index.js +1 -1
  652. package/web-dist/components/palette-item/PaletteItem.d.ts +10 -2
  653. package/web-dist/components/palette-item/PaletteItem.dependency-0.d.ts +27 -0
  654. package/web-dist/components/palette-item/PaletteItem.dependency-1.d.ts +3 -0
  655. package/web-dist/components/palette-item/PaletteItem.types-0.d.ts +15 -0
  656. package/web-dist/components/palette-item/index.d.ts +2 -1
  657. package/web-dist/components/palette-item/index.js +1 -1
  658. package/web-dist/components/playing-card/PlayingCard.d.ts +6 -6
  659. package/web-dist/components/playing-card/PlayingCard.dependency-0.d.ts +27 -0
  660. package/web-dist/components/playing-card/PlayingCard.dependency-1.d.ts +3 -0
  661. package/web-dist/components/playing-card/PlayingCard.js +2 -10
  662. package/web-dist/components/playing-card/PlayingCard.types-0.d.ts +43 -0
  663. package/web-dist/components/playing-card/index.d.ts +2 -1
  664. package/web-dist/components/playing-card/index.js +1 -1
  665. package/web-dist/components/poker-training-table/PokerTrainingTable.d.ts +6 -6
  666. package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-0.d.ts +27 -0
  667. package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-1.d.ts +3 -0
  668. package/web-dist/components/poker-training-table/PokerTrainingTable.js +1 -9
  669. package/web-dist/components/poker-training-table/PokerTrainingTable.types-0.d.ts +95 -0
  670. package/web-dist/components/poker-training-table/index.d.ts +2 -1
  671. package/web-dist/components/poker-training-table/index.js +1 -1
  672. package/web-dist/components/popover-menu/PopoverMenu.d.ts +6 -2
  673. package/web-dist/components/popover-menu/PopoverMenu.dependency-0.d.ts +27 -0
  674. package/web-dist/components/popover-menu/PopoverMenu.dependency-1.d.ts +3 -0
  675. package/web-dist/components/popover-menu/PopoverMenu.types-0.d.ts +28 -0
  676. package/web-dist/components/popover-menu/index.d.ts +2 -1
  677. package/web-dist/components/popover-menu/index.js +1 -1
  678. package/web-dist/components/post-card/PostCard.d.ts +10 -6
  679. package/web-dist/components/post-card/PostCard.dependency-0.d.ts +3 -0
  680. package/web-dist/components/post-card/PostCard.dependency-1.d.ts +27 -0
  681. package/web-dist/components/post-card/PostCard.dependency-2.d.ts +3 -0
  682. package/web-dist/components/post-card/PostCard.dependency-3.d.ts +1 -0
  683. package/web-dist/components/post-card/PostCard.dependency-4.d.ts +3 -0
  684. package/web-dist/components/post-card/PostCard.js +2 -10
  685. package/web-dist/components/post-card/PostCard.types-0.d.ts +63 -0
  686. package/web-dist/components/post-card/index.d.ts +2 -1
  687. package/web-dist/components/post-card/index.js +1 -1
  688. package/web-dist/components/product-card/ProductCard.d.ts +7 -6
  689. package/web-dist/components/product-card/ProductCard.dependency-0.d.ts +27 -0
  690. package/web-dist/components/product-card/ProductCard.dependency-1.d.ts +3 -0
  691. package/web-dist/components/product-card/ProductCard.js +0 -8
  692. package/web-dist/components/product-card/ProductCard.types-0.d.ts +23 -0
  693. package/web-dist/components/product-card/index.d.ts +2 -1
  694. package/web-dist/components/product-card/index.js +1 -1
  695. package/web-dist/components/progress/Progress.d.ts +8 -3
  696. package/web-dist/components/progress/Progress.dependency-0.d.ts +27 -0
  697. package/web-dist/components/progress/Progress.dependency-1.d.ts +3 -0
  698. package/web-dist/components/progress/Progress.dependency-2.d.ts +3 -0
  699. package/web-dist/components/progress/Progress.dependency-3.d.ts +3 -0
  700. package/web-dist/components/progress/Progress.js +2 -4
  701. package/web-dist/components/progress/Progress.types-0.d.ts +12 -0
  702. package/web-dist/components/progress/index.d.ts +2 -1
  703. package/web-dist/components/progress/index.js +1 -1
  704. package/web-dist/components/progress-ring/ProgressRing.d.ts +8 -3
  705. package/web-dist/components/progress-ring/ProgressRing.dependency-0.d.ts +27 -0
  706. package/web-dist/components/progress-ring/ProgressRing.dependency-1.d.ts +3 -0
  707. package/web-dist/components/progress-ring/ProgressRing.dependency-2.d.ts +3 -0
  708. package/web-dist/components/progress-ring/ProgressRing.js +0 -2
  709. package/web-dist/components/progress-ring/ProgressRing.types-0.d.ts +16 -0
  710. package/web-dist/components/progress-ring/index.d.ts +2 -1
  711. package/web-dist/components/progress-ring/index.js +1 -1
  712. package/web-dist/components/radio/Radio.d.ts +8 -3
  713. package/web-dist/components/radio/Radio.dependency-0.d.ts +27 -0
  714. package/web-dist/components/radio/Radio.dependency-1.d.ts +3 -0
  715. package/web-dist/components/radio/Radio.js +2 -4
  716. package/web-dist/components/radio/Radio.types-0.d.ts +6 -0
  717. package/web-dist/components/radio/index.d.ts +2 -1
  718. package/web-dist/components/radio/index.js +1 -1
  719. package/web-dist/components/radio-group/RadioGroup.d.ts +6 -3
  720. package/web-dist/components/radio-group/RadioGroup.dependency-0.d.ts +27 -0
  721. package/web-dist/components/radio-group/RadioGroup.dependency-1.d.ts +3 -0
  722. package/web-dist/components/radio-group/RadioGroup.dependency-2.d.ts +5 -0
  723. package/web-dist/components/radio-group/RadioGroup.js +0 -2
  724. package/web-dist/components/radio-group/RadioGroup.types-0.d.ts +33 -0
  725. package/web-dist/components/radio-group/index.d.ts +2 -1
  726. package/web-dist/components/radio-group/index.js +1 -1
  727. package/web-dist/components/rating/Rating.d.ts +4 -2
  728. package/web-dist/components/rating/Rating.dependency-0.d.ts +27 -0
  729. package/web-dist/components/rating/Rating.dependency-1.d.ts +3 -0
  730. package/web-dist/components/rating/Rating.dependency-2.d.ts +3 -0
  731. package/web-dist/components/rating/Rating.dependency-3.d.ts +3 -0
  732. package/web-dist/components/rating/Rating.types-0.d.ts +12 -0
  733. package/web-dist/components/rating/index.d.ts +2 -1
  734. package/web-dist/components/rating/index.js +1 -1
  735. package/web-dist/components/reader/Reader.d.ts +10 -2
  736. package/web-dist/components/reader/Reader.dependency-0.d.ts +27 -0
  737. package/web-dist/components/reader/Reader.dependency-1.d.ts +3 -0
  738. package/web-dist/components/reader/Reader.types-0.d.ts +56 -0
  739. package/web-dist/components/reader/index.d.ts +2 -1
  740. package/web-dist/components/reader/index.js +1 -1
  741. package/web-dist/components/scan-overlay/ScanOverlay.d.ts +12 -4
  742. package/web-dist/components/scan-overlay/ScanOverlay.dependency-0.d.ts +27 -0
  743. package/web-dist/components/scan-overlay/ScanOverlay.dependency-1.d.ts +3 -0
  744. package/web-dist/components/scan-overlay/ScanOverlay.js +1 -5
  745. package/web-dist/components/scan-overlay/ScanOverlay.types-0.d.ts +9 -0
  746. package/web-dist/components/scan-overlay/index.d.ts +2 -1
  747. package/web-dist/components/scan-overlay/index.js +1 -1
  748. package/web-dist/components/screen/Screen.d.ts +6 -7
  749. package/web-dist/components/screen/Screen.dependency-0.d.ts +27 -0
  750. package/web-dist/components/screen/Screen.dependency-1.d.ts +3 -0
  751. package/web-dist/components/screen/Screen.js +1 -11
  752. package/web-dist/components/screen/Screen.types-0.d.ts +12 -0
  753. package/web-dist/components/screen/index.d.ts +2 -1
  754. package/web-dist/components/screen/index.js +1 -1
  755. package/web-dist/components/screen-section/ScreenSection.d.ts +6 -3
  756. package/web-dist/components/screen-section/ScreenSection.dependency-0.d.ts +27 -0
  757. package/web-dist/components/screen-section/ScreenSection.dependency-1.d.ts +3 -0
  758. package/web-dist/components/screen-section/ScreenSection.js +1 -3
  759. package/web-dist/components/screen-section/ScreenSection.types-0.d.ts +10 -0
  760. package/web-dist/components/screen-section/index.d.ts +2 -1
  761. package/web-dist/components/screen-section/index.js +1 -1
  762. package/web-dist/components/scroll-view/ScrollView.d.ts +6 -7
  763. package/web-dist/components/scroll-view/ScrollView.dependency-0.d.ts +27 -0
  764. package/web-dist/components/scroll-view/ScrollView.dependency-1.d.ts +3 -0
  765. package/web-dist/components/scroll-view/ScrollView.js +2 -12
  766. package/web-dist/components/scroll-view/ScrollView.types-0.d.ts +6 -0
  767. package/web-dist/components/scroll-view/index.d.ts +2 -1
  768. package/web-dist/components/scroll-view/index.js +1 -1
  769. package/web-dist/components/search-input/SearchInput.d.ts +4 -2
  770. package/web-dist/components/search-input/SearchInput.dependency-0.d.ts +27 -0
  771. package/web-dist/components/search-input/SearchInput.dependency-1.d.ts +3 -0
  772. package/web-dist/components/search-input/SearchInput.dependency-2.d.ts +3 -0
  773. package/web-dist/components/search-input/SearchInput.types-0.d.ts +15 -0
  774. package/web-dist/components/search-input/index.d.ts +2 -1
  775. package/web-dist/components/search-input/index.js +1 -1
  776. package/web-dist/components/section-header/SectionHeader.d.ts +10 -3
  777. package/web-dist/components/section-header/SectionHeader.dependency-0.d.ts +27 -0
  778. package/web-dist/components/section-header/SectionHeader.dependency-1.d.ts +3 -0
  779. package/web-dist/components/section-header/SectionHeader.js +1 -3
  780. package/web-dist/components/section-header/SectionHeader.types-0.d.ts +10 -0
  781. package/web-dist/components/section-header/index.d.ts +2 -1
  782. package/web-dist/components/section-header/index.js +1 -1
  783. package/web-dist/components/section-list/SectionList.d.ts +6 -6
  784. package/web-dist/components/section-list/SectionList.dependency-0.d.ts +27 -0
  785. package/web-dist/components/section-list/SectionList.dependency-1.d.ts +3 -0
  786. package/web-dist/components/section-list/SectionList.js +0 -8
  787. package/web-dist/components/section-list/SectionList.types-0.d.ts +37 -0
  788. package/web-dist/components/section-list/index.d.ts +2 -1
  789. package/web-dist/components/section-list/index.js +1 -1
  790. package/web-dist/components/select/Select.d.ts +6 -2
  791. package/web-dist/components/select/Select.dependency-0.d.ts +27 -0
  792. package/web-dist/components/select/Select.dependency-1.d.ts +3 -0
  793. package/web-dist/components/select/Select.types-0.d.ts +23 -0
  794. package/web-dist/components/select/index.d.ts +2 -1
  795. package/web-dist/components/select/index.js +1 -1
  796. package/web-dist/components/selectable-item/SelectableItem.d.ts +6 -3
  797. package/web-dist/components/selectable-item/SelectableItem.dependency-0.d.ts +27 -0
  798. package/web-dist/components/selectable-item/SelectableItem.dependency-1.d.ts +3 -0
  799. package/web-dist/components/selectable-item/SelectableItem.js +1 -3
  800. package/web-dist/components/selectable-item/SelectableItem.types-0.d.ts +30 -0
  801. package/web-dist/components/selectable-item/index.d.ts +2 -1
  802. package/web-dist/components/selectable-item/index.js +1 -1
  803. package/web-dist/components/selection-provider/SelectionProvider.d.ts +6 -3
  804. package/web-dist/components/selection-provider/SelectionProvider.js +1 -3
  805. package/web-dist/components/selection-provider/SelectionProvider.types-0.d.ts +30 -0
  806. package/web-dist/components/selection-provider/index.d.ts +2 -1
  807. package/web-dist/components/selection-provider/index.js +1 -1
  808. package/web-dist/components/sign-in-form/SignInForm.d.ts +10 -8
  809. package/web-dist/components/sign-in-form/SignInForm.dependency-0.d.ts +27 -0
  810. package/web-dist/components/sign-in-form/SignInForm.dependency-1.d.ts +3 -0
  811. package/web-dist/components/sign-in-form/SignInForm.dependency-2.d.ts +45 -0
  812. package/web-dist/components/sign-in-form/SignInForm.dependency-3.d.ts +1 -0
  813. package/web-dist/components/sign-in-form/SignInForm.js +2 -14
  814. package/web-dist/components/sign-in-form/SignInForm.types-0.d.ts +31 -0
  815. package/web-dist/components/sign-in-form/index.d.ts +2 -1
  816. package/web-dist/components/sign-in-form/index.js +1 -1
  817. package/web-dist/components/sign-up-form/SignUpForm.d.ts +10 -8
  818. package/web-dist/components/sign-up-form/SignUpForm.dependency-0.d.ts +27 -0
  819. package/web-dist/components/sign-up-form/SignUpForm.dependency-1.d.ts +3 -0
  820. package/web-dist/components/sign-up-form/SignUpForm.dependency-2.d.ts +45 -0
  821. package/web-dist/components/sign-up-form/SignUpForm.dependency-3.d.ts +1 -0
  822. package/web-dist/components/sign-up-form/SignUpForm.js +1 -13
  823. package/web-dist/components/sign-up-form/SignUpForm.types-0.d.ts +23 -0
  824. package/web-dist/components/sign-up-form/index.d.ts +2 -1
  825. package/web-dist/components/sign-up-form/index.js +1 -1
  826. package/web-dist/components/skeleton/Skeleton.d.ts +8 -5
  827. package/web-dist/components/skeleton/Skeleton.dependency-0.d.ts +27 -0
  828. package/web-dist/components/skeleton/Skeleton.dependency-1.d.ts +3 -0
  829. package/web-dist/components/skeleton/Skeleton.dependency-2.d.ts +6 -0
  830. package/web-dist/components/skeleton/Skeleton.js +2 -8
  831. package/web-dist/components/skeleton/Skeleton.types-0.d.ts +13 -0
  832. package/web-dist/components/skeleton/index.d.ts +2 -1
  833. package/web-dist/components/skeleton/index.js +1 -1
  834. package/web-dist/components/skeleton-card/SkeletonCard.d.ts +8 -5
  835. package/web-dist/components/skeleton-card/SkeletonCard.dependency-0.d.ts +27 -0
  836. package/web-dist/components/skeleton-card/SkeletonCard.dependency-1.d.ts +3 -0
  837. package/web-dist/components/skeleton-card/SkeletonCard.js +2 -8
  838. package/web-dist/components/skeleton-card/SkeletonCard.types-0.d.ts +8 -0
  839. package/web-dist/components/skeleton-card/index.d.ts +2 -1
  840. package/web-dist/components/skeleton-card/index.js +1 -1
  841. package/web-dist/components/skeleton-list/SkeletonList.d.ts +10 -5
  842. package/web-dist/components/skeleton-list/SkeletonList.dependency-0.d.ts +27 -0
  843. package/web-dist/components/skeleton-list/SkeletonList.dependency-1.d.ts +3 -0
  844. package/web-dist/components/skeleton-list/SkeletonList.js +1 -7
  845. package/web-dist/components/skeleton-list/SkeletonList.types-0.d.ts +12 -0
  846. package/web-dist/components/skeleton-list/index.d.ts +2 -1
  847. package/web-dist/components/skeleton-list/index.js +1 -1
  848. package/web-dist/components/skeleton-text/SkeletonText.d.ts +10 -5
  849. package/web-dist/components/skeleton-text/SkeletonText.dependency-0.d.ts +27 -0
  850. package/web-dist/components/skeleton-text/SkeletonText.dependency-1.d.ts +3 -0
  851. package/web-dist/components/skeleton-text/SkeletonText.dependency-2.d.ts +6 -0
  852. package/web-dist/components/skeleton-text/SkeletonText.js +1 -7
  853. package/web-dist/components/skeleton-text/SkeletonText.types-0.d.ts +13 -0
  854. package/web-dist/components/skeleton-text/index.d.ts +2 -1
  855. package/web-dist/components/skeleton-text/index.js +1 -1
  856. package/web-dist/components/spatial-grid/SpatialGrid.d.ts +6 -2
  857. package/web-dist/components/spatial-grid/SpatialGrid.dependency-0.d.ts +27 -0
  858. package/web-dist/components/spatial-grid/SpatialGrid.dependency-1.d.ts +3 -0
  859. package/web-dist/components/spatial-grid/SpatialGrid.types-0.d.ts +45 -0
  860. package/web-dist/components/spatial-grid/index.d.ts +2 -1
  861. package/web-dist/components/spatial-grid/index.js +1 -1
  862. package/web-dist/components/surface/Surface.d.ts +6 -2
  863. package/web-dist/components/surface/Surface.dependency-0.d.ts +27 -0
  864. package/web-dist/components/surface/Surface.dependency-1.d.ts +3 -0
  865. package/web-dist/components/surface/Surface.types-0.d.ts +6 -0
  866. package/web-dist/components/surface/index.d.ts +2 -1
  867. package/web-dist/components/surface/index.js +1 -1
  868. package/web-dist/components/switch/Switch.d.ts +6 -2
  869. package/web-dist/components/switch/Switch.dependency-0.d.ts +27 -0
  870. package/web-dist/components/switch/Switch.dependency-1.d.ts +3 -0
  871. package/web-dist/components/switch/Switch.types-0.d.ts +6 -0
  872. package/web-dist/components/switch/index.d.ts +2 -1
  873. package/web-dist/components/switch/index.js +1 -1
  874. package/web-dist/components/tab/Tab.d.ts +6 -5
  875. package/web-dist/components/tab/Tab.dependency-0.d.ts +27 -0
  876. package/web-dist/components/tab/Tab.dependency-1.d.ts +3 -0
  877. package/web-dist/components/tab/Tab.js +2 -8
  878. package/web-dist/components/tab/Tab.types-0.d.ts +7 -0
  879. package/web-dist/components/tab/index.d.ts +2 -1
  880. package/web-dist/components/tab/index.js +1 -1
  881. package/web-dist/components/tab-list/TabList.d.ts +4 -5
  882. package/web-dist/components/tab-list/TabList.dependency-0.d.ts +27 -0
  883. package/web-dist/components/tab-list/TabList.dependency-1.d.ts +3 -0
  884. package/web-dist/components/tab-list/TabList.js +2 -8
  885. package/web-dist/components/tab-list/TabList.types-0.d.ts +6 -0
  886. package/web-dist/components/tab-list/index.d.ts +2 -1
  887. package/web-dist/components/tab-list/index.js +1 -1
  888. package/web-dist/components/tab-panel/TabPanel.d.ts +4 -5
  889. package/web-dist/components/tab-panel/TabPanel.dependency-0.d.ts +27 -0
  890. package/web-dist/components/tab-panel/TabPanel.dependency-1.d.ts +3 -0
  891. package/web-dist/components/tab-panel/TabPanel.js +2 -8
  892. package/web-dist/components/tab-panel/TabPanel.types-0.d.ts +6 -0
  893. package/web-dist/components/tab-panel/index.d.ts +2 -1
  894. package/web-dist/components/tab-panel/index.js +1 -1
  895. package/web-dist/components/tabletop-table/TabletopTable.d.ts +6 -6
  896. package/web-dist/components/tabletop-table/TabletopTable.dependency-0.d.ts +27 -0
  897. package/web-dist/components/tabletop-table/TabletopTable.dependency-1.d.ts +3 -0
  898. package/web-dist/components/tabletop-table/TabletopTable.js +1 -9
  899. package/web-dist/components/tabletop-table/TabletopTable.types-0.d.ts +66 -0
  900. package/web-dist/components/tabletop-table/index.d.ts +2 -1
  901. package/web-dist/components/tabletop-table/index.js +1 -1
  902. package/web-dist/components/tabs/Tabs.d.ts +4 -5
  903. package/web-dist/components/tabs/Tabs.dependency-0.d.ts +27 -0
  904. package/web-dist/components/tabs/Tabs.dependency-1.d.ts +3 -0
  905. package/web-dist/components/tabs/Tabs.js +0 -6
  906. package/web-dist/components/tabs/Tabs.types-0.d.ts +6 -0
  907. package/web-dist/components/tabs/index.d.ts +2 -1
  908. package/web-dist/components/tabs/index.js +1 -1
  909. package/web-dist/components/text/Text.d.ts +12 -3
  910. package/web-dist/components/text/Text.dependency-0.d.ts +27 -0
  911. package/web-dist/components/text/Text.dependency-1.d.ts +3 -0
  912. package/web-dist/components/text/Text.dependency-2.d.ts +5 -0
  913. package/web-dist/components/text/Text.js +0 -2
  914. package/web-dist/components/text/Text.types-0.d.ts +40 -0
  915. package/web-dist/components/text/index.d.ts +2 -1
  916. package/web-dist/components/text/index.js +1 -1
  917. package/web-dist/components/text-input/TextInput.d.ts +11 -2
  918. package/web-dist/components/text-input/TextInput.types-0.d.ts +9 -0
  919. package/web-dist/components/text-input/index.d.ts +2 -1
  920. package/web-dist/components/text-input/index.js +1 -1
  921. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.d.ts +4 -2
  922. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-0.d.ts +27 -0
  923. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-1.d.ts +3 -0
  924. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-2.d.ts +24 -0
  925. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-3.d.ts +3 -0
  926. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-4.d.ts +3 -0
  927. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-5.d.ts +3 -0
  928. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.types-0.d.ts +5 -0
  929. package/web-dist/components/theme-mode-toggle/index.d.ts +2 -1
  930. package/web-dist/components/theme-mode-toggle/index.js +1 -1
  931. package/web-dist/components/tile-grid/TileGrid.d.ts +6 -3
  932. package/web-dist/components/tile-grid/TileGrid.dependency-0.d.ts +27 -0
  933. package/web-dist/components/tile-grid/TileGrid.dependency-1.d.ts +3 -0
  934. package/web-dist/components/tile-grid/TileGrid.js +0 -2
  935. package/web-dist/components/tile-grid/TileGrid.types-0.d.ts +32 -0
  936. package/web-dist/components/tile-grid/index.d.ts +2 -1
  937. package/web-dist/components/tile-grid/index.js +1 -1
  938. package/web-dist/components/time-grid/TimeGrid.d.ts +6 -2
  939. package/web-dist/components/time-grid/TimeGrid.dependency-0.d.ts +27 -0
  940. package/web-dist/components/time-grid/TimeGrid.dependency-1.d.ts +3 -0
  941. package/web-dist/components/time-grid/TimeGrid.types-0.d.ts +34 -0
  942. package/web-dist/components/time-grid/index.d.ts +2 -1
  943. package/web-dist/components/time-grid/index.js +1 -1
  944. package/web-dist/components/time-picker/TimePicker.d.ts +6 -2
  945. package/web-dist/components/time-picker/TimePicker.dependency-0.d.ts +27 -0
  946. package/web-dist/components/time-picker/TimePicker.dependency-1.d.ts +3 -0
  947. package/web-dist/components/time-picker/TimePicker.types-0.d.ts +21 -0
  948. package/web-dist/components/time-picker/index.d.ts +2 -1
  949. package/web-dist/components/time-picker/index.js +1 -1
  950. package/web-dist/components/timeline/Timeline.d.ts +10 -2
  951. package/web-dist/components/timeline/Timeline.dependency-0.d.ts +27 -0
  952. package/web-dist/components/timeline/Timeline.dependency-1.d.ts +3 -0
  953. package/web-dist/components/timeline/Timeline.dependency-2.d.ts +3 -0
  954. package/web-dist/components/timeline/Timeline.types-0.d.ts +22 -0
  955. package/web-dist/components/timeline/index.d.ts +2 -1
  956. package/web-dist/components/timeline/index.js +1 -1
  957. package/web-dist/components/toast/Toast.d.ts +6 -3
  958. package/web-dist/components/toast/Toast.dependency-0.d.ts +27 -0
  959. package/web-dist/components/toast/Toast.dependency-1.d.ts +3 -0
  960. package/web-dist/components/toast/Toast.js +2 -4
  961. package/web-dist/components/toast/Toast.types-0.d.ts +6 -0
  962. package/web-dist/components/toast/index.d.ts +2 -1
  963. package/web-dist/components/toast/index.js +1 -1
  964. package/web-dist/components/toast-provider/ToastProvider.d.ts +6 -3
  965. package/web-dist/components/toast-provider/ToastProvider.js +0 -2
  966. package/web-dist/components/toast-provider/ToastProvider.types-0.d.ts +3 -0
  967. package/web-dist/components/toast-provider/index.d.ts +2 -1
  968. package/web-dist/components/toast-provider/index.js +1 -1
  969. package/web-dist/components/toolbar/Toolbar.d.ts +4 -2
  970. package/web-dist/components/toolbar/Toolbar.dependency-0.d.ts +27 -0
  971. package/web-dist/components/toolbar/Toolbar.dependency-1.d.ts +3 -0
  972. package/web-dist/components/toolbar/Toolbar.types-0.d.ts +9 -0
  973. package/web-dist/components/toolbar/index.d.ts +2 -1
  974. package/web-dist/components/toolbar/index.js +1 -1
  975. package/web-dist/components/tree-item/TreeItem.d.ts +4 -3
  976. package/web-dist/components/tree-item/TreeItem.js +1 -50
  977. package/web-dist/components/tree-item/TreeItem.types-0.d.ts +22 -0
  978. package/web-dist/components/tree-item/index.d.ts +2 -1
  979. package/web-dist/components/tree-item/index.js +1 -1
  980. package/web-dist/components/tree-view/TreeView.d.ts +6 -1
  981. package/web-dist/components/tree-view/TreeView.js +5 -3
  982. package/web-dist/components/tree-view/index.d.ts +2 -1
  983. package/web-dist/components/tree-view/index.js +1 -1
  984. package/web-dist/components/uploader/Uploader.d.ts +6 -2
  985. package/web-dist/components/uploader/Uploader.dependency-0.d.ts +27 -0
  986. package/web-dist/components/uploader/Uploader.dependency-1.d.ts +3 -0
  987. package/web-dist/components/uploader/Uploader.dependency-2.d.ts +15 -0
  988. package/web-dist/components/uploader/Uploader.types-0.d.ts +79 -0
  989. package/web-dist/components/uploader/index.d.ts +2 -1
  990. package/web-dist/components/uploader/index.js +1 -1
  991. package/web-dist/components/view/View.d.ts +6 -7
  992. package/web-dist/components/view/View.dependency-0.d.ts +27 -0
  993. package/web-dist/components/view/View.dependency-1.d.ts +3 -0
  994. package/web-dist/components/view/View.js +1 -11
  995. package/web-dist/components/view/View.types-0.d.ts +6 -0
  996. package/web-dist/components/view/index.d.ts +2 -1
  997. package/web-dist/components/view/index.js +1 -1
  998. package/web-dist/manifest.json +427 -2
  999. package/web-dist/chunks/Accordion-52fg6h9t.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ ## 27.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 4d2ea38: Fix the published theme entrypoint's Node ESM module specifiers.
8
+ - 1ce4016: Resolve theme imports from TypeScript source in Expo Metro while emitting explicit Node ESM JavaScript specifiers.
9
+
10
+ ## 27.5.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 1f3022d: Rebuild the public web View artifact with Surface SSR flex layout support.
15
+
16
+ ## 27.5.1
17
+
18
+ ### Patch Changes
19
+
20
+ - 96c1049: Restrict generated web component subpaths to their intended component runtime and associated public types.
21
+
22
+ ## 27.5.0
23
+
24
+ ### Minor Changes
25
+
26
+ - 546ca96: Add canonical `@ankhorage/graph` input support to GraphView.
27
+
28
+ ## 27.4.10
29
+
30
+ ### Patch Changes
31
+
32
+ - a887aae: Update dependencies: `@ankhorage/runtime`.
33
+
34
+ ## 27.4.9
35
+
36
+ ### Patch Changes
37
+
38
+ - 6db0f71: Update dependencies: `@ankhorage/contracts`, `@ankhorage/runtime`.
39
+
40
+ ## 27.4.8
41
+
42
+ ### Patch Changes
43
+
44
+ - aa49904: Update dependencies: `@ankhorage/color-theory`.
45
+
3
46
  ## 27.4.7
4
47
 
5
48
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # ZORA
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v27.4.7](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v27.5.3](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Provides opinionated React Native and React Native Web UI components, theme primitives, registries, and reader surfaces built on @ankhorage/surface.
9
9
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { GraphViewProps } from '../../../../../types/graph-view';
2
+ import type { GraphViewInput } from '../../../../../types/graph-view';
3
3
  /***
4
4
  * Render a browser graph while one runtime owns Cytoscape layout, viewport, and disposal.
5
5
  * zoomMode Use `fit-relative` to make controller zoom, events and min/max limits relative
@@ -21,7 +21,7 @@ import type { GraphViewProps } from '../../../../../types/graph-view';
21
21
  * local grid. Use an explicit controller fit or a layout change when a complete rearrangement is
22
22
  * intentional.
23
23
  */
24
- export declare function GraphView(props: GraphViewProps): React.JSX.Element;
24
+ export declare function GraphView(props: GraphViewInput): React.JSX.Element;
25
25
  export declare namespace GraphView {
26
26
  var events: {
27
27
  readonly ready: "zora-graph-view-ready";
@@ -1 +1 @@
1
- {"version":3,"file":"GraphView.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,iCAAiC,CAAC;AASzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBA0C9C;yBA1Ce,SAAS"}
1
+ {"version":3,"file":"GraphView.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,iCAAiC,CAAC;AAUzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBA2C9C;yBA3Ce,SAAS"}
@@ -4,6 +4,7 @@ import { createGraphPointerDownReader } from './createGraphPointerDownReader';
4
4
  import { createGraphRuntime } from './createGraphRuntime';
5
5
  import { createGraphViewDomCallbacks } from './createGraphViewDomCallbacks';
6
6
  import { GraphNodeOverlay } from './GraphNodeOverlay';
7
+ import { resolveGraphViewProps } from './resolveGraphViewProps';
7
8
  /***
8
9
  * Render a browser graph while one runtime owns Cytoscape layout, viewport, and disposal.
9
10
  * zoomMode Use `fit-relative` to make controller zoom, events and min/max limits relative
@@ -26,21 +27,22 @@ import { GraphNodeOverlay } from './GraphNodeOverlay';
26
27
  * intentional.
27
28
  */
28
29
  export function GraphView(props) {
30
+ const resolvedProps = React.useMemo(() => resolveGraphViewProps(props), [props]);
29
31
  const hostRef = React.useRef(null);
30
32
  const pointerDownReader = React.useMemo(createGraphPointerDownReader, []);
31
- const { containerRef, renderedNodes, runtimeRef } = useGraphViewRuntime(props, hostRef, pointerDownReader);
33
+ const { containerRef, renderedNodes, runtimeRef } = useGraphViewRuntime(resolvedProps, hostRef, pointerDownReader);
32
34
  return (<div ref={hostRef} onPointerDown={(event) => {
33
35
  pointerDownReader.write(event.nativeEvent);
34
- }} onPointerCancel={pointerDownReader.clear} aria-label={props.ariaLabel ?? 'Graph'} className={props.className} role="application" style={{
36
+ }} onPointerCancel={pointerDownReader.clear} aria-label={resolvedProps.ariaLabel ?? 'Graph'} className={resolvedProps.className} role="application" style={{
35
37
  height: '100%',
36
38
  minHeight: 0,
37
39
  minWidth: 0,
38
40
  position: 'relative',
39
41
  width: '100%',
40
- ...props.style,
42
+ ...resolvedProps.style,
41
43
  }}>
42
44
  <div ref={containerRef} style={{ height: '100%', width: '100%' }}/>
43
- {props.renderNode ? (<GraphNodeOverlay nodes={props.nodes} renderedNodes={renderedNodes} renderNode={props.renderNode} onNodeEvent={(id, type, selectionIntent) => runtimeRef.current?.handleOverlayNodeEvent(id, type, selectionIntent)} onNodeSize={(id, size) => runtimeRef.current?.setNodeSize(id, size)}/>) : null}
45
+ {resolvedProps.renderNode ? (<GraphNodeOverlay nodes={resolvedProps.nodes} renderedNodes={renderedNodes} renderNode={resolvedProps.renderNode} onNodeEvent={(id, type, selectionIntent) => runtimeRef.current?.handleOverlayNodeEvent(id, type, selectionIntent)} onNodeSize={(id, size) => runtimeRef.current?.setNodeSize(id, size)}/>) : null}
44
46
  </div>);
45
47
  }
46
48
  /*** Publish the same canonical event registry on the standalone GraphView artifact. */
@@ -1 +1 @@
1
- {"version":3,"file":"GraphView.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAqB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,SAAS,CAAC,KA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EAAE,CAAC;YACjD,gBAAgB,CAAC,EAAE,CAAC,CAAC;YACrB,OAAO;QACT,CAAC;QACD,OAAO,OAAO,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACjD,CAAC;AAED,0EAA0E;AAC1E,SAAS,iBAAiB,CACxB,UAA4C,EAC5C,KAA+B,EAC/B,WAA0C;IAE1C,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QACnC,IAAI,OAAO,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS;YAAE,OAAO;QAC1D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YAC/B,IAAI,IAAI;gBAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,uEAAuE;AACvE,SAAS,aAAa,CAAC,KAAqB;IAC1C,OAAO;QACL,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;KACnD,CAAC;AACJ,CAAC","sourcesContent":["import type { CytoscapeOptions } from 'cytoscape';\nimport React from 'react';\n\nimport type {\n GraphViewCallbacks,\n GraphViewNode,\n GraphViewProps,\n GraphViewRenderedNode,\n} from '../../../../../types/graph-view';\nimport { GRAPH_VIEW_EVENTS } from '../../../constants/events';\nimport { createGraphPointerDownReader } from './createGraphPointerDownReader';\nimport { createGraphRuntime, type GraphRuntime } from './createGraphRuntime';\nimport { createGraphViewDomCallbacks } from './createGraphViewDomCallbacks';\nimport { GraphNodeOverlay } from './GraphNodeOverlay';\n\ntype GraphContainer = NonNullable<CytoscapeOptions['container']>;\n\n/***\n * Render a browser graph while one runtime owns Cytoscape layout, viewport, and disposal.\n * zoomMode Use `fit-relative` to make controller zoom, events and min/max limits relative\n * to the visible-node fit (1 = fit). The default `absolute` keeps engine-space zoom units.\n * sizeNodesToLabels Opt in to renderer-measured plain labels, including bold and Unicode\n * text. Keep padding in styleRules. Compound and rich-node dimensions retain their existing owners.\n * minReadableLabelSize Expand the manual zoom ceiling until plain labels reach this CSS-pixel size.\n * maxFitLabelSize Cap automatic fitting at this plain-label CSS-pixel size, leaving whitespace for tiny graphs.\n * Browser lifecycle events named by public GRAPH_VIEW_EVENTS bubble from the root\n * with `detail.controller`: the same public GraphViewController delivered to React.\n * Browser integrations can call `measureNodes` without accessing the Cytoscape runtime.\n * The standalone browser artifact exposes the same names as `GraphView.events`.\n * onSpacingFactorChange Receive the spacing accepted by explicit fit({ optimizeSpacing: true }).\n * Ordinary zoom never adjusts spacing or relayouts. Explicit optimization preserves layout ordering,\n * stops once effective fit reaches maxFitLabelSize, keeps labels and unrelated compound boundaries\n * collision-safe, and permits only a small rendered background-overlap fallback for dense graphs.\n * topologyUpdatePolicy Use `preserve-positions` for controlled incremental topology changes. It\n * retains settled nodes and the user viewport, and initially places new nodes on a deterministic\n * local grid. Use an explicit controller fit or a layout change when a complete rearrangement is\n * intentional.\n */\nexport function GraphView(props: GraphViewProps) {\n const hostRef = React.useRef<HTMLDivElement | null>(null);\n const pointerDownReader = React.useMemo(createGraphPointerDownReader, []);\n const { containerRef, renderedNodes, runtimeRef } = useGraphViewRuntime(\n props,\n hostRef,\n pointerDownReader,\n );\n\n return (\n <div\n ref={hostRef}\n onPointerDown={(event) => {\n pointerDownReader.write(event.nativeEvent);\n }}\n onPointerCancel={pointerDownReader.clear}\n aria-label={props.ariaLabel ?? 'Graph'}\n className={props.className}\n role=\"application\"\n style={{\n height: '100%',\n minHeight: 0,\n minWidth: 0,\n position: 'relative',\n width: '100%',\n ...props.style,\n }}\n >\n <div ref={containerRef} style={{ height: '100%', width: '100%' }} />\n {props.renderNode ? (\n <GraphNodeOverlay\n nodes={props.nodes}\n renderedNodes={renderedNodes}\n renderNode={props.renderNode}\n onNodeEvent={(id, type, selectionIntent) =>\n runtimeRef.current?.handleOverlayNodeEvent(id, type, selectionIntent)\n }\n onNodeSize={(id, size) => runtimeRef.current?.setNodeSize(id, size)}\n />\n ) : null}\n </div>\n );\n}\n\n/*** Publish the same canonical event registry on the standalone GraphView artifact. */\nGraphView.events = GRAPH_VIEW_EVENTS;\n\n/*** Compose React synchronization around the single imperative graph runtime. */\nfunction useGraphViewRuntime(\n props: GraphViewProps,\n hostRef: React.RefObject<HTMLDivElement | null>,\n pointerDownReader: ReturnType<typeof createGraphPointerDownReader>,\n) {\n const containerRef = React.useRef<GraphContainer | null>(null);\n const runtimeRef = React.useRef<GraphRuntime | null>(null);\n const callbacksRef = useGraphCallbacksRef(props, hostRef);\n const [renderedNodes, setRenderedNodes] = React.useState<readonly GraphViewRenderedNode[]>([]);\n\n useRuntimeLifecycle(containerRef, runtimeRef, callbacksRef, pointerDownReader);\n useRuntimeGraphUpdate(runtimeRef, props);\n useRuntimeSelection(runtimeRef, props.selectedNodeIds);\n useRenderedNodeSubscription(runtimeRef, props.renderNode, setRenderedNodes);\n useKnownNodeSizes(runtimeRef, props.nodes, props.getNodeSize);\n\n return { containerRef, renderedNodes, runtimeRef };\n}\n\n/*** Keep the callback ref current without mutating refs during render. */\nfunction useGraphCallbacksRef(\n props: GraphViewProps,\n hostRef: React.RefObject<HTMLDivElement | null>,\n) {\n const callbacksRef = React.useRef<GraphViewCallbacks>(\n createGraphViewDomCallbacks(readCallbacks(props), hostRef),\n );\n const {\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n } = props;\n\n React.useEffect(() => {\n callbacksRef.current = createGraphViewDomCallbacks(\n {\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n },\n hostRef,\n );\n }, [\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n hostRef,\n ]);\n\n return callbacksRef;\n}\n\n/*** Create and dispose the runtime only with the underlying browser container lifetime. */\nfunction useRuntimeLifecycle(\n containerRef: { current: GraphContainer | null },\n runtimeRef: { current: GraphRuntime | null },\n callbacksRef: { current: GraphViewCallbacks },\n pointerDownReader: ReturnType<typeof createGraphPointerDownReader>,\n) {\n React.useEffect(() => {\n const container = containerRef.current;\n if (container === null) return;\n const runtime = createGraphRuntime(container, callbacksRef, pointerDownReader.read);\n runtimeRef.current = runtime;\n return () => {\n runtime.destroy();\n runtimeRef.current = null;\n };\n }, [callbacksRef, containerRef, pointerDownReader, runtimeRef]);\n}\n\n/*** Synchronize graph data and layout policy without exposing Cytoscape to React. */\nfunction useRuntimeGraphUpdate(\n runtimeRef: { current: GraphRuntime | null },\n props: GraphViewProps,\n) {\n const {\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n renderNode,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n } = props;\n\n React.useEffect(() => {\n runtimeRef.current?.update({\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n richNodeRendering: renderNode !== undefined,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n });\n }, [\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n renderNode,\n runtimeRef,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n ]);\n}\n\n/*** Synchronize optional controlled selection independently from graph layout. */\nfunction useRuntimeSelection(\n runtimeRef: { current: GraphRuntime | null },\n selectedNodeIds: readonly string[] | undefined,\n) {\n React.useEffect(() => {\n runtimeRef.current?.setSelectedNodeIds(selectedNodeIds);\n }, [runtimeRef, selectedNodeIds]);\n}\n\n/*** Subscribe the optional rich-node overlay to rendered runtime positions. */\nfunction useRenderedNodeSubscription(\n runtimeRef: { current: GraphRuntime | null },\n renderNode: GraphViewProps['renderNode'],\n setRenderedNodes: (nodes: readonly GraphViewRenderedNode[]) => void,\n) {\n React.useEffect(() => {\n const runtime = runtimeRef.current;\n if (runtime === null || renderNode === undefined) {\n setRenderedNodes([]);\n return;\n }\n return runtime.subscribeRenderedNodes(setRenderedNodes);\n }, [renderNode, runtimeRef, setRenderedNodes]);\n}\n\n/*** Seed known rich-node dimensions without requiring DOM measurement. */\nfunction useKnownNodeSizes(\n runtimeRef: { current: GraphRuntime | null },\n nodes: readonly GraphViewNode[],\n getNodeSize: GraphViewProps['getNodeSize'],\n) {\n React.useEffect(() => {\n const runtime = runtimeRef.current;\n if (runtime === null || getNodeSize === undefined) return;\n for (const node of nodes) {\n const size = getNodeSize(node);\n if (size) runtime.setNodeSize(node.id, size);\n }\n }, [getNodeSize, nodes, runtimeRef]);\n}\n\n/*** Read callback props for the initial runtime callback-ref value. */\nfunction readCallbacks(props: GraphViewProps): GraphViewCallbacks {\n return {\n onEdgeEvent: props.onEdgeEvent,\n onLayoutComplete: props.onLayoutComplete,\n onNodeEvent: props.onNodeEvent,\n onReady: props.onReady,\n onViewportChange: props.onViewportChange,\n onSpacingFactorChange: props.onSpacingFactorChange,\n };\n}\n"]}
1
+ {"version":3,"file":"GraphView.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/GraphView.ts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AC/C,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,uEAAuE;AACvE,SAAS,aAAa,CAAC,KAA+C;IACpE,OAAO;QACL,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;KACnD,CAAC;AACJ,CAAC","sourcesContent":["import type { CytoscapeOptions } from 'cytoscape';\nimport React from 'react';\n\nimport type {\n GraphViewCallbacks,\n GraphViewInput,\n GraphViewNode,\n GraphViewRenderedNode,\n} from '../../../../../types/graph-view';\nimport { GRAPH_VIEW_EVENTS } from '../../../constants/events';\nimport { createGraphPointerDownReader } from './createGraphPointerDownReader';\nimport { createGraphRuntime, type GraphRuntime } from './createGraphRuntime';\nimport { createGraphViewDomCallbacks } from './createGraphViewDomCallbacks';\nimport { GraphNodeOverlay } from './GraphNodeOverlay';\nimport { resolveGraphViewProps } from './resolveGraphViewProps';\n\ntype GraphContainer = NonNullable<CytoscapeOptions['container']>;\n\n/***\n * Render a browser graph while one runtime owns Cytoscape layout, viewport, and disposal.\n * zoomMode Use `fit-relative` to make controller zoom, events and min/max limits relative\n * to the visible-node fit (1 = fit). The default `absolute` keeps engine-space zoom units.\n * sizeNodesToLabels Opt in to renderer-measured plain labels, including bold and Unicode\n * text. Keep padding in styleRules. Compound and rich-node dimensions retain their existing owners.\n * minReadableLabelSize Expand the manual zoom ceiling until plain labels reach this CSS-pixel size.\n * maxFitLabelSize Cap automatic fitting at this plain-label CSS-pixel size, leaving whitespace for tiny graphs.\n * Browser lifecycle events named by public GRAPH_VIEW_EVENTS bubble from the root\n * with `detail.controller`: the same public GraphViewController delivered to React.\n * Browser integrations can call `measureNodes` without accessing the Cytoscape runtime.\n * The standalone browser artifact exposes the same names as `GraphView.events`.\n * onSpacingFactorChange Receive the spacing accepted by explicit fit({ optimizeSpacing: true }).\n * Ordinary zoom never adjusts spacing or relayouts. Explicit optimization preserves layout ordering,\n * stops once effective fit reaches maxFitLabelSize, keeps labels and unrelated compound boundaries\n * collision-safe, and permits only a small rendered background-overlap fallback for dense graphs.\n * topologyUpdatePolicy Use `preserve-positions` for controlled incremental topology changes. It\n * retains settled nodes and the user viewport, and initially places new nodes on a deterministic\n * local grid. Use an explicit controller fit or a layout change when a complete rearrangement is\n * intentional.\n */\nexport function GraphView(props: GraphViewInput) {\n const resolvedProps = React.useMemo(() => resolveGraphViewProps(props), [props]);\n const hostRef = React.useRef<HTMLDivElement | null>(null);\n const pointerDownReader = React.useMemo(createGraphPointerDownReader, []);\n const { containerRef, renderedNodes, runtimeRef } = useGraphViewRuntime(\n resolvedProps,\n hostRef,\n pointerDownReader,\n );\n\n return (\n <div\n ref={hostRef}\n onPointerDown={(event) => {\n pointerDownReader.write(event.nativeEvent);\n }}\n onPointerCancel={pointerDownReader.clear}\n aria-label={resolvedProps.ariaLabel ?? 'Graph'}\n className={resolvedProps.className}\n role=\"application\"\n style={{\n height: '100%',\n minHeight: 0,\n minWidth: 0,\n position: 'relative',\n width: '100%',\n ...resolvedProps.style,\n }}\n >\n <div ref={containerRef} style={{ height: '100%', width: '100%' }} />\n {resolvedProps.renderNode ? (\n <GraphNodeOverlay\n nodes={resolvedProps.nodes}\n renderedNodes={renderedNodes}\n renderNode={resolvedProps.renderNode}\n onNodeEvent={(id, type, selectionIntent) =>\n runtimeRef.current?.handleOverlayNodeEvent(id, type, selectionIntent)\n }\n onNodeSize={(id, size) => runtimeRef.current?.setNodeSize(id, size)}\n />\n ) : null}\n </div>\n );\n}\n\n/*** Publish the same canonical event registry on the standalone GraphView artifact. */\nGraphView.events = GRAPH_VIEW_EVENTS;\n\n/*** Compose React synchronization around the single imperative graph runtime. */\nfunction useGraphViewRuntime(\n props: ReturnType<typeof resolveGraphViewProps>,\n hostRef: React.RefObject<HTMLDivElement | null>,\n pointerDownReader: ReturnType<typeof createGraphPointerDownReader>,\n) {\n const containerRef = React.useRef<GraphContainer | null>(null);\n const runtimeRef = React.useRef<GraphRuntime | null>(null);\n const callbacksRef = useGraphCallbacksRef(props, hostRef);\n const [renderedNodes, setRenderedNodes] = React.useState<readonly GraphViewRenderedNode[]>([]);\n\n useRuntimeLifecycle(containerRef, runtimeRef, callbacksRef, pointerDownReader);\n useRuntimeGraphUpdate(runtimeRef, props);\n useRuntimeSelection(runtimeRef, props.selectedNodeIds);\n useRenderedNodeSubscription(runtimeRef, props.renderNode, setRenderedNodes);\n useKnownNodeSizes(runtimeRef, props.nodes, props.getNodeSize);\n\n return { containerRef, renderedNodes, runtimeRef };\n}\n\n/*** Keep the callback ref current without mutating refs during render. */\nfunction useGraphCallbacksRef(\n props: ReturnType<typeof resolveGraphViewProps>,\n hostRef: React.RefObject<HTMLDivElement | null>,\n) {\n const callbacksRef = React.useRef<GraphViewCallbacks>(\n createGraphViewDomCallbacks(readCallbacks(props), hostRef),\n );\n const {\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n } = props;\n\n React.useEffect(() => {\n callbacksRef.current = createGraphViewDomCallbacks(\n {\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n },\n hostRef,\n );\n }, [\n onEdgeEvent,\n onLayoutComplete,\n onNodeEvent,\n onReady,\n onViewportChange,\n onSpacingFactorChange,\n hostRef,\n ]);\n\n return callbacksRef;\n}\n\n/*** Create and dispose the runtime only with the underlying browser container lifetime. */\nfunction useRuntimeLifecycle(\n containerRef: { current: GraphContainer | null },\n runtimeRef: { current: GraphRuntime | null },\n callbacksRef: { current: GraphViewCallbacks },\n pointerDownReader: ReturnType<typeof createGraphPointerDownReader>,\n) {\n React.useEffect(() => {\n const container = containerRef.current;\n if (container === null) return;\n const runtime = createGraphRuntime(container, callbacksRef, pointerDownReader.read);\n runtimeRef.current = runtime;\n return () => {\n runtime.destroy();\n runtimeRef.current = null;\n };\n }, [callbacksRef, containerRef, pointerDownReader, runtimeRef]);\n}\n\n/*** Synchronize graph data and layout policy without exposing Cytoscape to React. */\nfunction useRuntimeGraphUpdate(\n runtimeRef: { current: GraphRuntime | null },\n props: ReturnType<typeof resolveGraphViewProps>,\n) {\n const {\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n renderNode,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n } = props;\n\n React.useEffect(() => {\n runtimeRef.current?.update({\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n richNodeRendering: renderNode !== undefined,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n });\n }, [\n edges,\n fitPadding,\n layout,\n layoutOptions,\n maxZoom,\n minReadableLabelSize,\n maxFitLabelSize,\n minZoom,\n zoomMode,\n sizeNodesToLabels,\n nodes,\n renderNode,\n runtimeRef,\n spacingFactor,\n styleRules,\n topologyUpdatePolicy,\n ]);\n}\n\n/*** Synchronize optional controlled selection independently from graph layout. */\nfunction useRuntimeSelection(\n runtimeRef: { current: GraphRuntime | null },\n selectedNodeIds: readonly string[] | undefined,\n) {\n React.useEffect(() => {\n runtimeRef.current?.setSelectedNodeIds(selectedNodeIds);\n }, [runtimeRef, selectedNodeIds]);\n}\n\n/*** Subscribe the optional rich-node overlay to rendered runtime positions. */\nfunction useRenderedNodeSubscription(\n runtimeRef: { current: GraphRuntime | null },\n renderNode: ReturnType<typeof resolveGraphViewProps>['renderNode'],\n setRenderedNodes: (nodes: readonly GraphViewRenderedNode[]) => void,\n) {\n React.useEffect(() => {\n const runtime = runtimeRef.current;\n if (runtime === null || renderNode === undefined) {\n setRenderedNodes([]);\n return;\n }\n return runtime.subscribeRenderedNodes(setRenderedNodes);\n }, [renderNode, runtimeRef, setRenderedNodes]);\n}\n\n/*** Seed known rich-node dimensions without requiring DOM measurement. */\nfunction useKnownNodeSizes(\n runtimeRef: { current: GraphRuntime | null },\n nodes: readonly GraphViewNode[],\n getNodeSize: ReturnType<typeof resolveGraphViewProps>['getNodeSize'],\n) {\n React.useEffect(() => {\n const runtime = runtimeRef.current;\n if (runtime === null || getNodeSize === undefined) return;\n for (const node of nodes) {\n const size = getNodeSize(node);\n if (size) runtime.setNodeSize(node.id, size);\n }\n }, [getNodeSize, nodes, runtimeRef]);\n}\n\n/*** Read callback props for the initial runtime callback-ref value. */\nfunction readCallbacks(props: ReturnType<typeof resolveGraphViewProps>): GraphViewCallbacks {\n return {\n onEdgeEvent: props.onEdgeEvent,\n onLayoutComplete: props.onLayoutComplete,\n onNodeEvent: props.onNodeEvent,\n onReady: props.onReady,\n onViewportChange: props.onViewportChange,\n onSpacingFactorChange: props.onSpacingFactorChange,\n };\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import type { Graph, GraphId } from '@ankhorage/graph';
2
+ import type { GraphViewInput, ResolvedGraphViewProps } from '../../../../../types/graph-view';
3
+ /*** Resolve either supported public GraphView input into the existing renderer element contract. */
4
+ export declare function resolveGraphViewProps(props: GraphViewInput): ResolvedGraphViewProps;
5
+ /*** Project canonical graph identity and payloads without placing presentation state in the domain. */
6
+ export declare function projectCanonicalGraph(graph: Graph<unknown, unknown, GraphId, GraphId>): Pick<ResolvedGraphViewProps, 'nodes' | 'edges'>;
7
+ //# sourceMappingURL=resolveGraphViewProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveGraphViewProps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAIV,cAAc,EAEd,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAEzC,oGAAoG;AACpG,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,sBAAsB,CAKnF;AAED,uGAAuG;AACvG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAC/C,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,OAAO,CAAC,CAoBjD"}
@@ -0,0 +1,52 @@
1
+ /*** Resolve either supported public GraphView input into the existing renderer element contract. */
2
+ export function resolveGraphViewProps(props) {
3
+ if (!('graph' in props) || props.graph === undefined)
4
+ return props;
5
+ const { graph, ...presentation } = props;
6
+ return { ...presentation, ...projectCanonicalGraph(graph) };
7
+ }
8
+ /*** Project canonical graph identity and payloads without placing presentation state in the domain. */
9
+ export function projectCanonicalGraph(graph) {
10
+ assertDistinctProjectedElementIds(graph);
11
+ const nodes = graph.nodes
12
+ .map((canonicalNode) => ({
13
+ data: { canonicalNode },
14
+ id: String(canonicalNode.id),
15
+ }))
16
+ .sort(compareGraphViewNodes);
17
+ const nodeIds = new Set(nodes.map(({ id }) => id));
18
+ const edges = graph.edges
19
+ .filter((edge) => nodeIds.has(String(edge.source)) && nodeIds.has(String(edge.target)))
20
+ .map((canonicalEdge) => ({
21
+ data: { canonicalEdge },
22
+ id: String(canonicalEdge.id),
23
+ source: String(canonicalEdge.source),
24
+ target: String(canonicalEdge.target),
25
+ }))
26
+ .sort(compareGraphViewEdges);
27
+ return { nodes, edges };
28
+ }
29
+ /*** Reject canonical IDs that cannot coexist in Cytoscape's shared string identifier space. */
30
+ function assertDistinctProjectedElementIds(graph) {
31
+ const projectedIds = [...graph.nodes, ...graph.edges].map(({ id }) => String(id));
32
+ if (new Set(projectedIds).size !== projectedIds.length) {
33
+ throw new Error('Canonical graph IDs collide after GraphView string projection.');
34
+ }
35
+ }
36
+ /*** Sort projected nodes by their stable renderer identity. */
37
+ function compareGraphViewNodes(left, right) {
38
+ return compareProjectedIds(left.id, right.id);
39
+ }
40
+ /*** Sort projected edges by identity, then endpoints for deterministic reconciliation. */
41
+ function compareGraphViewEdges(left, right) {
42
+ return (compareProjectedIds(left.id ?? '', right.id ?? '') ||
43
+ compareProjectedIds(left.source, right.source) ||
44
+ compareProjectedIds(left.target, right.target));
45
+ }
46
+ /*** Compare projected identifiers without locale-dependent ordering. */
47
+ function compareProjectedIds(left, right) {
48
+ if (left < right)
49
+ return -1;
50
+ return left > right ? 1 : 0;
51
+ }
52
+ //# sourceMappingURL=resolveGraphViewProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveGraphViewProps.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.ts"],"names":[],"mappings":"AAWA,oGAAoG;AACpG,MAAM,UAAU,qBAAqB,CAAC,KAAqB;IACzD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAEnE,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,GAAG,KAAK,CAAC;IACzC,OAAO,EAAE,GAAG,YAAY,EAAE,GAAG,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;AAC9D,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,qBAAqB,CACnC,KAAgD;IAEhD,iCAAiC,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;SACtB,GAAG,CAAC,CAAC,aAAa,EAAiB,EAAE,CAAC,CAAC;QACtC,IAAI,EAAE,EAAE,aAAa,EAAuC;QAC5D,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;KAC7B,CAAC,CAAC;SACF,IAAI,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tE,OAAO,mBAAmB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AAChD,CAAC;AAED,0FAA0F;AAC1F,SAAS,qBAAqB,CAAC,IAAmB,EAAE,KAAoB;IACtE,OAAO,CACL,mBAAmB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;QAClD,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QAC9C,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAC/C,CAAC;AACJ,CAAC;AAED,wEAAwE;AACxE,SAAS,mBAAmB,CAAC,IAAY,EAAE,KAAa;IACtD,IAAI,IAAI,GAAG,KAAK;QAAE,OAAO,CAAC,CAAC,CAAC;IAC5B,OAAO,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import type { Graph, GraphId } from '@ankhorage/graph';\n\nimport type {\n GraphViewCanonicalEdgeData,\n GraphViewCanonicalNodeData,\n GraphViewEdge,\n GraphViewInput,\n GraphViewNode,\n ResolvedGraphViewProps,\n} from '../../../../../types/graph-view';\n\n/*** Resolve either supported public GraphView input into the existing renderer element contract. */\nexport function resolveGraphViewProps(props: GraphViewInput): ResolvedGraphViewProps {\n if (!('graph' in props) || props.graph === undefined) return props;\n\n const { graph, ...presentation } = props;\n return { ...presentation, ...projectCanonicalGraph(graph) };\n}\n\n/*** Project canonical graph identity and payloads without placing presentation state in the domain. */\nexport function projectCanonicalGraph(\n graph: Graph<unknown, unknown, GraphId, GraphId>,\n): Pick<ResolvedGraphViewProps, 'nodes' | 'edges'> {\n assertDistinctProjectedElementIds(graph);\n const nodes = graph.nodes\n .map((canonicalNode): GraphViewNode => ({\n data: { canonicalNode } satisfies GraphViewCanonicalNodeData,\n id: String(canonicalNode.id),\n }))\n .sort(compareGraphViewNodes);\n const nodeIds = new Set(nodes.map(({ id }) => id));\n const edges = graph.edges\n .filter((edge) => nodeIds.has(String(edge.source)) && nodeIds.has(String(edge.target)))\n .map((canonicalEdge): GraphViewEdge => ({\n data: { canonicalEdge } satisfies GraphViewCanonicalEdgeData,\n id: String(canonicalEdge.id),\n source: String(canonicalEdge.source),\n target: String(canonicalEdge.target),\n }))\n .sort(compareGraphViewEdges);\n\n return { nodes, edges };\n}\n\n/*** Reject canonical IDs that cannot coexist in Cytoscape's shared string identifier space. */\nfunction assertDistinctProjectedElementIds(graph: Graph<unknown, unknown, GraphId, GraphId>): void {\n const projectedIds = [...graph.nodes, ...graph.edges].map(({ id }) => String(id));\n if (new Set(projectedIds).size !== projectedIds.length) {\n throw new Error('Canonical graph IDs collide after GraphView string projection.');\n }\n}\n\n/*** Sort projected nodes by their stable renderer identity. */\nfunction compareGraphViewNodes(left: GraphViewNode, right: GraphViewNode): number {\n return compareProjectedIds(left.id, right.id);\n}\n\n/*** Sort projected edges by identity, then endpoints for deterministic reconciliation. */\nfunction compareGraphViewEdges(left: GraphViewEdge, right: GraphViewEdge): number {\n return (\n compareProjectedIds(left.id ?? '', right.id ?? '') ||\n compareProjectedIds(left.source, right.source) ||\n compareProjectedIds(left.target, right.target)\n );\n}\n\n/*** Compare projected identifiers without locale-dependent ordering. */\nfunction compareProjectedIds(left: string, right: string): number {\n if (left < right) return -1;\n return left > right ? 1 : 0;\n}\n"]}
@@ -1,4 +1,4 @@
1
- export type { GraphViewCallbacks, GraphViewController, GraphViewDomControllerEventDetail, GraphViewEdge, GraphViewElementEvent, GraphViewElementEventType, GraphViewFitOptions, GraphViewLayoutName, GraphViewMeasurement, GraphViewNode, GraphViewNodeMeasurement, GraphViewNodeRenderContext, GraphViewPoint, GraphViewProps, GraphViewRenderedNode, GraphViewSize, GraphViewStyleRule, GraphViewTopologyUpdatePolicy, GraphViewViewport, } from '../../types/graph-view';
1
+ export type { GraphViewCallbacks, GraphViewCanonicalEdgeData, GraphViewCanonicalGraphProps, GraphViewCanonicalNodeData, GraphViewController, GraphViewDomControllerEventDetail, GraphViewEdge, GraphViewElementEvent, GraphViewElementEventType, GraphViewFitOptions, GraphViewInput, GraphViewLayoutName, GraphViewMeasurement, GraphViewNode, GraphViewNodeMeasurement, GraphViewNodeRenderContext, GraphViewPoint, GraphViewProps, GraphViewRenderedNode, GraphViewSize, GraphViewStyleRule, GraphViewTopologyUpdatePolicy, GraphViewViewport, ResolvedGraphViewProps, } from '../../types/graph-view';
2
2
  export { GraphView } from './adapters/inbound/web-artifact/GraphView';
3
3
  export { GRAPH_VIEW_EVENTS } from './constants/events';
4
4
  //# 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,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,iCAAiC,EACjC,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,mBAAmB,EACnB,iCAAiC,EACjC,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export type {\n GraphViewCallbacks,\n GraphViewController,\n GraphViewDomControllerEventDetail,\n GraphViewEdge,\n GraphViewElementEvent,\n GraphViewElementEventType,\n GraphViewFitOptions,\n GraphViewLayoutName,\n GraphViewMeasurement,\n GraphViewNode,\n GraphViewNodeMeasurement,\n GraphViewNodeRenderContext,\n GraphViewPoint,\n GraphViewProps,\n GraphViewRenderedNode,\n GraphViewSize,\n GraphViewStyleRule,\n GraphViewTopologyUpdatePolicy,\n GraphViewViewport,\n} from '../../types/graph-view';\nexport { GraphView } from './adapters/inbound/web-artifact/GraphView';\nexport { GRAPH_VIEW_EVENTS } from './constants/events';\n"]}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/graph-view/public.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export type {\n GraphViewCallbacks,\n GraphViewCanonicalEdgeData,\n GraphViewCanonicalGraphProps,\n GraphViewCanonicalNodeData,\n GraphViewController,\n GraphViewDomControllerEventDetail,\n GraphViewEdge,\n GraphViewElementEvent,\n GraphViewElementEventType,\n GraphViewFitOptions,\n GraphViewInput,\n GraphViewLayoutName,\n GraphViewMeasurement,\n GraphViewNode,\n GraphViewNodeMeasurement,\n GraphViewNodeRenderContext,\n GraphViewPoint,\n GraphViewProps,\n GraphViewRenderedNode,\n GraphViewSize,\n GraphViewStyleRule,\n GraphViewTopologyUpdatePolicy,\n GraphViewViewport,\n ResolvedGraphViewProps,\n} from '../../types/graph-view';\nexport { GraphView } from './adapters/inbound/web-artifact/GraphView';\nexport { GRAPH_VIEW_EVENTS } from './constants/events';\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ThemeConfig } from '@ankhorage/contracts';
2
- import type { ZoraComputedTheme, ZoraThemeCompilationOptions } from '../../../../types/theme';
2
+ import type { ZoraComputedTheme, ZoraThemeCompilationOptions } from '../../../../types/theme.ts';
3
3
  /***
4
4
  * Compile canonical theme source into Color Theory evidence and resolved Surface themes.
5
5
  * This function is pure and does not mount React or reproduce owner algorithms.
@@ -1 +1 @@
1
- {"version":3,"file":"compileZoraTheme.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EACV,iBAAiB,EAGjB,2BAA2B,EAK5B,MAAM,yBAAyB,CAAC;AAOjC;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,2BAAgC,GACxC,iBAAiB,CAYnB"}
1
+ {"version":3,"file":"compileZoraTheme.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EACV,iBAAiB,EAGjB,2BAA2B,EAK5B,MAAM,4BAA4B,CAAC;AAOpC;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,2BAAgC,GACxC,iBAAiB,CAYnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"compileZoraTheme.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAaxD,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAC/C,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAC9B,WAAwB,EACxB,UAAuC,EAAE;IAEzC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IACvF,MAAM,IAAI,GAAG,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACpF,MAAM,WAAW,GAAG,CAAC,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAEhE,OAAO;QACL,WAAW;QACX,KAAK;QACL,IAAI;QACJ,WAAW;QACX,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;KAC9C,CAAC;AACJ,CAAC;AAED,6EAA6E;AAC7E,SAAS,WAAW,CAClB,WAAwB,EACxB,IAAmB,EACnB,OAA4C;IAE5C,MAAM,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;IAC3E,MAAM,SAAS,GAAG,uBAAuB,CAAC,UAAU,CAAC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ACxC,MAAM,OAAO,GAA+B;QAC1C,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE;QAC7D;YACE,IAAI,EAAE,GAAG,IAAI,YAAY;YACzB,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE,CAAC,SAAS,CAAC;SACpB;QACD;YACE,IAAI,EAAE,GAAG,IAAI,eAAe;YAC5B,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC;SACnC;KACF,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,GAAG,IAAI,qBAAqB,MAAM,CAAC,EAAE,EAAE,CAAC;QAC3D,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;QACxE,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,GAAG,IAAI,eAAe,MAAM,CAAC,EAAE,EAAE;YACvC,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE,CAAC,GAAG,IAAI,uBAAuB,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,CAAC;SACpE,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,8EAA8E;AAC9E,SAAS,YAAY,CAAC,IAAa,EAAE,KAAc;IACjD,OAAO,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC","sourcesContent":["import { generateThemeModeColors, selectColorSwatchStep } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\nimport { createTheme } from '@ankhorage/surface/theme';\nimport { isDeepEqual } from '@ankhorage/utility/object';\n\nimport type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationOptions,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n} from '../../../../types/theme';\n\nconst CONTRACTS_OWNER = '@ankhorage/contracts';\nconst COLOR_THEORY_OWNER = '@ankhorage/color-theory';\nconst SURFACE_OWNER = '@ankhorage/surface';\nconst ZORA_OWNER = '@ankhorage/zora';\n\n/***\n * Compile canonical theme source into Color Theory evidence and resolved Surface themes.\n * This function is pure and does not mount React or reproduce owner algorithms.\n */\nexport function compileZoraTheme(\n themeConfig: ThemeConfig,\n options: ZoraThemeCompilationOptions = {},\n): ZoraComputedTheme {\n const light = compileMode(themeConfig, 'light', options.selectionTargets?.light ?? []);\n const dark = compileMode(themeConfig, 'dark', options.selectionTargets?.dark ?? []);\n const diagnostics = [...light.diagnostics, ...dark.diagnostics];\n\n return {\n themeConfig,\n light,\n dark,\n diagnostics,\n provenance: createRootProvenance(themeConfig),\n };\n}\n\n/*** Compile one canonical mode and compare the independent owner results. */\nfunction compileMode(\n themeConfig: ThemeConfig,\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraComputedThemeMode {\n const modeConfig = mode === 'light' ? themeConfig.light : themeConfig.dark;\n const generated = generateThemeModeColors(modeConfig);\n const surfaceTheme = createTheme(themeConfig, mode);\n const { diagnostics, selections } = resolveSelections(generated, mode, targets);\n\n if (!outputsAgree(generated, surfaceTheme.colorDiagnostics.generated)) {\n diagnostics.push({\n code: 'generated-output-divergence',\n message: 'Surface and Color Theory returned different generated color evidence.',\n mode,\n path: `${mode}.generated`,\n severity: 'error',\n });\n }\n\n return {\n mode,\n generated,\n surfaceTheme,\n selections,\n diagnostics,\n provenance: createModeProvenance(mode, targets),\n };\n}\n\n/*** Resolve measurable swatch targets without substituting unavailable roles. */\nfunction resolveSelections(\n generated: ZoraComputedThemeMode['generated'],\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): {\n diagnostics: ZoraThemeCompilationDiagnostic[];\n selections: ZoraThemeSelectionResult[];\n} {\n const diagnostics: ZoraThemeCompilationDiagnostic[] = [];\n const selections = targets.map((request) => {\n const swatch = generated.swatches[request.swatch];\n const result = swatch\n ? selectColorSwatchStep(swatch, request.target, request.contexts, request.tiePolicy)\n : null;\n\n if (!swatch) diagnostics.push(createMissingSwatchDiagnostic(mode, request));\n else if (!result?.selected) diagnostics.push(createUnresolvedTargetDiagnostic(mode, request));\n\n return { request, result };\n });\n\n return { diagnostics, selections };\n}\n\n/*** Describe a requested swatch that the selected harmony does not generate. */\nfunction createMissingSwatchDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'missing-target-swatch',\n message: `The selected harmony does not generate the '${request.swatch}' swatch.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Describe a measurable target that has no passing swatch candidate. */\nfunction createUnresolvedTargetDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'unresolved-selection-target',\n message: `No '${request.swatch}' step satisfies selection target '${request.id}'.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Record direct source and Surface-owned default provenance. */\nfunction createRootProvenance(themeConfig: ThemeConfig): ZoraThemeProvenanceEntry[] {\n return [\n { path: 'themeConfig', origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: 'themeConfig.tokens',\n origin: themeConfig.tokens ? 'direct' : 'defaulted',\n owner: themeConfig.tokens ? CONTRACTS_OWNER : SURFACE_OWNER,\n },\n ];\n}\n\n/*** Record the owner transformation chain for one compiled mode. */\nfunction createModeProvenance(\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraThemeProvenanceEntry[] {\n const inputPath = `themeConfig.${mode}`;\n const entries: ZoraThemeProvenanceEntry[] = [\n { path: inputPath, origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: `${mode}.generated`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [inputPath],\n },\n {\n path: `${mode}.surfaceTheme`,\n origin: 'derived',\n owner: SURFACE_OWNER,\n inputs: ['themeConfig', inputPath],\n },\n ];\n\n for (const target of targets) {\n const targetPath = `${mode}.selectionTargets.${target.id}`;\n entries.push({ path: targetPath, origin: 'direct', owner: ZORA_OWNER });\n entries.push({\n path: `${mode}.selections.${target.id}`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [`${mode}.generated.swatches.${target.swatch}`, targetPath],\n });\n }\n\n return entries;\n}\n\n/*** Compare deterministic owner result records for divergence diagnostics. */\nfunction outputsAgree(left: unknown, right: unknown): boolean {\n return isDeepEqual(left, right);\n}\n"]}
1
+ {"version":3,"file":"compileZoraTheme.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAaxD,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAC/C,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAC9B,WAAwB,EACxB,UAAuC,EAAE;IAEzC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IACvF,MAAM,IAAI,GAAG,WAAW,CAAC,WAAW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AE,GAAG,IAAI,eAAe,MAAM,CAAC,EAAE,EAAE;YACvC,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE,CAAC,GAAG,IAAI,uBAAuB,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,CAAC;SACpE,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,8EAA8E;AAC9E,SAAS,YAAY,CAAC,IAAa,EAAE,KAAc;IACjD,OAAO,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC","sourcesContent":["import { generateThemeModeColors, selectColorSwatchStep } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\nimport { createTheme } from '@ankhorage/surface/theme';\nimport { isDeepEqual } from '@ankhorage/utility/object';\n\nimport type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationOptions,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n} from '../../../../types/theme.ts';\n\nconst CONTRACTS_OWNER = '@ankhorage/contracts';\nconst COLOR_THEORY_OWNER = '@ankhorage/color-theory';\nconst SURFACE_OWNER = '@ankhorage/surface';\nconst ZORA_OWNER = '@ankhorage/zora';\n\n/***\n * Compile canonical theme source into Color Theory evidence and resolved Surface themes.\n * This function is pure and does not mount React or reproduce owner algorithms.\n */\nexport function compileZoraTheme(\n themeConfig: ThemeConfig,\n options: ZoraThemeCompilationOptions = {},\n): ZoraComputedTheme {\n const light = compileMode(themeConfig, 'light', options.selectionTargets?.light ?? []);\n const dark = compileMode(themeConfig, 'dark', options.selectionTargets?.dark ?? []);\n const diagnostics = [...light.diagnostics, ...dark.diagnostics];\n\n return {\n themeConfig,\n light,\n dark,\n diagnostics,\n provenance: createRootProvenance(themeConfig),\n };\n}\n\n/*** Compile one canonical mode and compare the independent owner results. */\nfunction compileMode(\n themeConfig: ThemeConfig,\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraComputedThemeMode {\n const modeConfig = mode === 'light' ? themeConfig.light : themeConfig.dark;\n const generated = generateThemeModeColors(modeConfig);\n const surfaceTheme = createTheme(themeConfig, mode);\n const { diagnostics, selections } = resolveSelections(generated, mode, targets);\n\n if (!outputsAgree(generated, surfaceTheme.colorDiagnostics.generated)) {\n diagnostics.push({\n code: 'generated-output-divergence',\n message: 'Surface and Color Theory returned different generated color evidence.',\n mode,\n path: `${mode}.generated`,\n severity: 'error',\n });\n }\n\n return {\n mode,\n generated,\n surfaceTheme,\n selections,\n diagnostics,\n provenance: createModeProvenance(mode, targets),\n };\n}\n\n/*** Resolve measurable swatch targets without substituting unavailable roles. */\nfunction resolveSelections(\n generated: ZoraComputedThemeMode['generated'],\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): {\n diagnostics: ZoraThemeCompilationDiagnostic[];\n selections: ZoraThemeSelectionResult[];\n} {\n const diagnostics: ZoraThemeCompilationDiagnostic[] = [];\n const selections = targets.map((request) => {\n const swatch = generated.swatches[request.swatch];\n const result = swatch\n ? selectColorSwatchStep(swatch, request.target, request.contexts, request.tiePolicy)\n : null;\n\n if (!swatch) diagnostics.push(createMissingSwatchDiagnostic(mode, request));\n else if (!result?.selected) diagnostics.push(createUnresolvedTargetDiagnostic(mode, request));\n\n return { request, result };\n });\n\n return { diagnostics, selections };\n}\n\n/*** Describe a requested swatch that the selected harmony does not generate. */\nfunction createMissingSwatchDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'missing-target-swatch',\n message: `The selected harmony does not generate the '${request.swatch}' swatch.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Describe a measurable target that has no passing swatch candidate. */\nfunction createUnresolvedTargetDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'unresolved-selection-target',\n message: `No '${request.swatch}' step satisfies selection target '${request.id}'.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Record direct source and Surface-owned default provenance. */\nfunction createRootProvenance(themeConfig: ThemeConfig): ZoraThemeProvenanceEntry[] {\n return [\n { path: 'themeConfig', origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: 'themeConfig.tokens',\n origin: themeConfig.tokens ? 'direct' : 'defaulted',\n owner: themeConfig.tokens ? CONTRACTS_OWNER : SURFACE_OWNER,\n },\n ];\n}\n\n/*** Record the owner transformation chain for one compiled mode. */\nfunction createModeProvenance(\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraThemeProvenanceEntry[] {\n const inputPath = `themeConfig.${mode}`;\n const entries: ZoraThemeProvenanceEntry[] = [\n { path: inputPath, origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: `${mode}.generated`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [inputPath],\n },\n {\n path: `${mode}.surfaceTheme`,\n origin: 'derived',\n owner: SURFACE_OWNER,\n inputs: ['themeConfig', inputPath],\n },\n ];\n\n for (const target of targets) {\n const targetPath = `${mode}.selectionTargets.${target.id}`;\n entries.push({ path: targetPath, origin: 'direct', owner: ZORA_OWNER });\n entries.push({\n path: `${mode}.selections.${target.id}`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [`${mode}.generated.swatches.${target.swatch}`, targetPath],\n });\n }\n\n return entries;\n}\n\n/*** Compare deterministic owner result records for divergence diagnostics. */\nfunction outputsAgree(left: unknown, right: unknown): boolean {\n return isDeepEqual(left, right);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ThemeConfig } from '@ankhorage/contracts';
2
- import type { ZoraTheme } from '../../../../types/theme';
2
+ import type { ZoraTheme } from '../../../../types/theme.ts';
3
3
  /*** Convert the concise ZORA design seed into canonical persisted theme source. */
4
4
  export declare function createZoraThemeConfig(theme?: ZoraTheme): ThemeConfig;
5
5
  //# sourceMappingURL=createZoraThemeConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createZoraThemeConfig.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,SAA4B,GAAG,WAAW,CAetF"}
1
+ {"version":3,"file":"createZoraThemeConfig.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,SAA4B,GAAG,WAAW,CAetF"}
@@ -1,5 +1,5 @@
1
1
  import { parseHexColorOrThrow } from '@ankhorage/color-theory';
2
- import { zoraDefaultTheme } from '../../zoraDefaultTheme';
2
+ import { zoraDefaultTheme } from "../../zoraDefaultTheme.js";
3
3
  /*** Convert the concise ZORA design seed into canonical persisted theme source. */
4
4
  export function createZoraThemeConfig(theme = zoraDefaultTheme) {
5
5
  const primaryColor = parseHexColorOrThrow(theme.primaryColor);
@@ -1 +1 @@
1
- {"version":3,"file":"createZoraThemeConfig.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,mFAAmF;AACnF,MAAM,UAAU,qBAAqB,CAAC,QAAmB,gBAAgB;IACvE,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE9D,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE;YACL,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;QACD,IAAI,EAAE;YACJ,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { parseHexColorOrThrow } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\n\nimport type { ZoraTheme } from '../../../../types/theme';\nimport { zoraDefaultTheme } from '../../zoraDefaultTheme';\n\n/*** Convert the concise ZORA design seed into canonical persisted theme source. */\nexport function createZoraThemeConfig(theme: ZoraTheme = zoraDefaultTheme): ThemeConfig {\n const primaryColor = parseHexColorOrThrow(theme.primaryColor);\n\n return {\n id: theme.id,\n name: theme.name,\n light: {\n primaryColor,\n harmony: theme.harmony,\n },\n dark: {\n primaryColor,\n harmony: theme.harmony,\n },\n };\n}\n"]}
1
+ {"version":3,"file":"createZoraThemeConfig.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,mFAAmF;AACnF,MAAM,UAAU,qBAAqB,CAAC,QAAmB,gBAAgB;IACvE,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE9D,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE;YACL,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;QACD,IAAI,EAAE;YACJ,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { parseHexColorOrThrow } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\n\nimport type { ZoraTheme } from '../../../../types/theme.ts';\nimport { zoraDefaultTheme } from '../../zoraDefaultTheme.ts';\n\n/*** Convert the concise ZORA design seed into canonical persisted theme source. */\nexport function createZoraThemeConfig(theme: ZoraTheme = zoraDefaultTheme): ThemeConfig {\n const primaryColor = parseHexColorOrThrow(theme.primaryColor);\n\n return {\n id: theme.id,\n name: theme.name,\n light: {\n primaryColor,\n harmony: theme.harmony,\n },\n dark: {\n primaryColor,\n harmony: theme.harmony,\n },\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
- export type { ZoraComputedTheme, ZoraComputedThemeMode, ZoraTheme, ZoraThemeCompilationDiagnostic, ZoraThemeCompilationDiagnosticCode, ZoraThemeCompilationOptions, ZoraThemeId, ZoraThemeMode, ZoraThemeProvenanceEntry, ZoraThemeSelectionResult, ZoraThemeSelectionTarget, ZoraThemeSwatchRole, ZoraThemeValueOrigin, } from '../../types/theme';
2
- export { compileZoraTheme } from './application/use-cases/compileZoraTheme';
3
- export { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';
4
- export { zoraDefaultTheme } from './zoraDefaultTheme';
1
+ export type { ZoraComputedTheme, ZoraComputedThemeMode, ZoraTheme, ZoraThemeCompilationDiagnostic, ZoraThemeCompilationDiagnosticCode, ZoraThemeCompilationOptions, ZoraThemeId, ZoraThemeMode, ZoraThemeProvenanceEntry, ZoraThemeSelectionResult, ZoraThemeSelectionTarget, ZoraThemeSwatchRole, ZoraThemeValueOrigin, } from '../../types/theme.ts';
2
+ export { compileZoraTheme } from './application/use-cases/compileZoraTheme.ts';
3
+ export { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig.ts';
4
+ export { zoraDefaultTheme } from './zoraDefaultTheme.ts';
5
5
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,SAAS,EACT,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,SAAS,EACT,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,4 +1,4 @@
1
- export { compileZoraTheme } from './application/use-cases/compileZoraTheme';
2
- export { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';
3
- export { zoraDefaultTheme } from './zoraDefaultTheme';
1
+ export { compileZoraTheme } from "./application/use-cases/compileZoraTheme.js";
2
+ export { createZoraThemeConfig } from "./application/use-cases/createZoraThemeConfig.js";
3
+ export { zoraDefaultTheme } from "./zoraDefaultTheme.js";
4
4
  //# sourceMappingURL=public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraTheme,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationDiagnosticCode,\n ZoraThemeCompilationOptions,\n ZoraThemeId,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n ZoraThemeSwatchRole,\n ZoraThemeValueOrigin,\n} from '../../types/theme';\nexport { compileZoraTheme } from './application/use-cases/compileZoraTheme';\nexport { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';\nexport { zoraDefaultTheme } from './zoraDefaultTheme';\n"]}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraTheme,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationDiagnosticCode,\n ZoraThemeCompilationOptions,\n ZoraThemeId,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n ZoraThemeSwatchRole,\n ZoraThemeValueOrigin,\n} from '../../types/theme.ts';\nexport { compileZoraTheme } from './application/use-cases/compileZoraTheme.ts';\nexport { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig.ts';\nexport { zoraDefaultTheme } from './zoraDefaultTheme.ts';\n"]}
@@ -1,3 +1,3 @@
1
- import type { ZoraTheme } from '../../types/theme';
1
+ import type { ZoraTheme } from '../../types/theme.ts';
2
2
  export declare const zoraDefaultTheme: ZoraTheme;
3
3
  //# sourceMappingURL=zoraDefaultTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zoraDefaultTheme.d.ts","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,SAM9B,CAAC"}
1
+ {"version":3,"file":"zoraDefaultTheme.d.ts","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,SAM9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"zoraDefaultTheme.js","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,WAAW;CACrB,CAAC","sourcesContent":["import type { ZoraTheme } from '../../types/theme';\n\nexport const zoraDefaultTheme: ZoraTheme = {\n id: 'zora',\n name: 'ZORA',\n appCategory: 'developer_tools',\n primaryColor: '#0f766e',\n harmony: 'analogous',\n};\n"]}
1
+ {"version":3,"file":"zoraDefaultTheme.js","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,WAAW;CACrB,CAAC","sourcesContent":["import type { ZoraTheme } from '../../types/theme.ts';\n\nexport const zoraDefaultTheme: ZoraTheme = {\n id: 'zora',\n name: 'ZORA',\n appCategory: 'developer_tools',\n primaryColor: '#0f766e',\n harmony: 'analogous',\n};\n"]}
@@ -1,3 +1,4 @@
1
+ import type { Graph, GraphEdge, GraphId, GraphNode } from '@ankhorage/graph';
1
2
  import type { SelectionIntent } from '@ankhorage/utility/selection';
2
3
  import type React from 'react';
3
4
  export type GraphViewLayoutName = 'breadthfirst' | 'circle' | 'concentric' | 'elk' | 'grid';
@@ -17,6 +18,14 @@ export interface GraphViewEdge {
17
18
  readonly classes?: string;
18
19
  readonly data?: Readonly<Record<string, unknown>>;
19
20
  }
21
+ /*** Preserve one canonical graph node alongside its GraphView presentation projection. */
22
+ export interface GraphViewCanonicalNodeData<NodeData = unknown, NodeId extends GraphId = GraphId> {
23
+ readonly canonicalNode: GraphNode<NodeData, NodeId>;
24
+ }
25
+ /*** Preserve one canonical graph edge alongside its GraphView presentation projection. */
26
+ export interface GraphViewCanonicalEdgeData<EdgeData = unknown, NodeId extends GraphId = GraphId, EdgeId extends GraphId = GraphId> {
27
+ readonly canonicalEdge: GraphEdge<EdgeData, NodeId, EdgeId>;
28
+ }
20
29
  export interface GraphViewStyleRule {
21
30
  readonly selector: string;
22
31
  readonly style: Readonly<Record<string, unknown>>;
@@ -86,9 +95,7 @@ export interface GraphViewController {
86
95
  export interface GraphViewDomControllerEventDetail {
87
96
  readonly controller: GraphViewController;
88
97
  }
89
- export interface GraphViewProps {
90
- readonly nodes: readonly GraphViewNode[];
91
- readonly edges: readonly GraphViewEdge[];
98
+ interface GraphViewSharedProps {
92
99
  readonly layout?: GraphViewLayoutName;
93
100
  readonly layoutOptions?: Readonly<Record<string, unknown>>;
94
101
  /**
@@ -121,5 +128,22 @@ export interface GraphViewProps {
121
128
  readonly onViewportChange?: (viewport: GraphViewViewport) => void;
122
129
  readonly onSpacingFactorChange?: (spacingFactor: number) => void;
123
130
  }
124
- export type GraphViewCallbacks = Pick<GraphViewProps, 'onEdgeEvent' | 'onLayoutComplete' | 'onNodeEvent' | 'onReady' | 'onViewportChange' | 'onSpacingFactorChange'>;
131
+ /*** Retain the original GraphView nodes and edges input contract. */
132
+ export interface GraphViewProps extends GraphViewSharedProps {
133
+ readonly nodes: readonly GraphViewNode[];
134
+ readonly edges: readonly GraphViewEdge[];
135
+ readonly graph?: never;
136
+ }
137
+ /*** Accept a published canonical graph without introducing a second domain graph model. */
138
+ export interface GraphViewCanonicalGraphProps extends GraphViewSharedProps {
139
+ readonly graph: Graph<unknown, unknown, GraphId, GraphId>;
140
+ readonly nodes?: never;
141
+ readonly edges?: never;
142
+ }
143
+ /*** Accept either the established presentation elements or one canonical Ankhorage graph. */
144
+ export type GraphViewInput = GraphViewProps | GraphViewCanonicalGraphProps;
145
+ /*** Describe the resolved element input consumed by the existing GraphView runtime. */
146
+ export type ResolvedGraphViewProps = GraphViewProps;
147
+ export type GraphViewCallbacks = Pick<GraphViewSharedProps, 'onEdgeEvent' | 'onLayoutComplete' | 'onNodeEvent' | 'onReady' | 'onViewportChange' | 'onSpacingFactorChange'>;
148
+ export {};
125
149
  //# sourceMappingURL=graph-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph-view.d.ts","sourceRoot":"","sources":["../../src/types/graph-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;AAC5F,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CA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G,IAAI,CACnC,oBAAoB,EAClB,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,SAAS,GACT,kBAAkB,GAClB,uBAAuB,CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"graph-view.js","sourceRoot":"","sources":["../../src/types/graph-view.ts"],"names":[],"mappings":"","sourcesContent":["import type { SelectionIntent } from '@ankhorage/utility/selection';\nimport type React from 'react';\n\nexport type GraphViewLayoutName = 'breadthfirst' | 'circle' | 'concentric' | 'elk' | 'grid';\nexport type GraphViewTopologyUpdatePolicy = 'preserve-positions';\nexport type GraphViewElementEventType =\n 'press' | 'double-press' | 'select' | 'unselect' | 'pointer-enter' | 'pointer-leave';\n\nexport interface GraphViewNode {\n readonly id: string;\n readonly label?: string;\n readonly parentId?: string;\n readonly classes?: string;\n readonly data?: Readonly<Record<string, unknown>>;\n}\n\nexport interface GraphViewEdge {\n readonly id?: string;\n readonly source: string;\n readonly target: string;\n readonly classes?: string;\n readonly data?: Readonly<Record<string, unknown>>;\n}\n\nexport interface GraphViewStyleRule {\n readonly selector: string;\n readonly style: Readonly<Record<string, unknown>>;\n}\n\nexport interface GraphViewPoint {\n readonly x: number;\n readonly y: number;\n}\n\nexport interface GraphViewSize {\n readonly width: number;\n readonly height: number;\n}\n\nexport interface GraphViewNodeRenderContext {\n readonly hovered: boolean;\n readonly node: GraphViewNode;\n readonly selected: boolean;\n readonly zoom: number;\n}\n\nexport interface GraphViewRenderedNode {\n readonly hovered: boolean;\n readonly id: string;\n readonly position: GraphViewPoint;\n readonly selected: boolean;\n readonly zoom: number;\n}\n\nexport interface GraphViewNodeMeasurement {\n readonly id: string;\n readonly position: GraphViewPoint;\n readonly size: GraphViewSize;\n}\n\nexport interface GraphViewMeasurement {\n readonly nodes: readonly GraphViewNodeMeasurement[];\n readonly viewport: GraphViewSize;\n}\n\nexport interface GraphViewViewport {\n readonly zoom: number;\n readonly pan: GraphViewPoint;\n}\n\nexport interface GraphViewFitOptions {\n /**\n * Optimize effective rendered fit without rerunning the layout algorithm; whole-graph fits only.\n * Stops at the configured fit-size target and keeps semantic labels collision-safe.\n */\n readonly optimizeSpacing?: boolean;\n readonly nodeIds?: readonly string[];\n readonly padding?: number;\n}\n\nexport interface GraphViewElementEvent {\n readonly id: string;\n readonly type: GraphViewElementEventType;\n readonly selectionIntent?: SelectionIntent;\n}\n\nexport interface GraphViewController {\n fit(options?: GraphViewFitOptions): void;\n /** Measure rendered node geometry without exposing the backing graph engine. */\n measureNodes?(nodeIds: readonly string[]): GraphViewMeasurement | null;\n getViewport(): GraphViewViewport;\n getZoomRange(): { readonly min: number; readonly max: number };\n setPan(pan: GraphViewPoint): void;\n setZoom(zoom: number): void;\n zoomBy(factor: number): void;\n}\n\n/*** The browser lifecycle events carry only the existing public graph controller. */\nexport interface GraphViewDomControllerEventDetail {\n readonly controller: GraphViewController;\n}\n\nexport interface GraphViewProps {\n readonly nodes: readonly GraphViewNode[];\n readonly edges: readonly GraphViewEdge[];\n readonly layout?: GraphViewLayoutName;\n readonly layoutOptions?: Readonly<Record<string, unknown>>;\n /**\n * Preserve the settled viewport and retained-node positions during controlled topology updates.\n * New nodes receive a deterministic initial position; call controller.fit() or change layout to\n * intentionally fit or relayout the graph. Without this opt-in, topology changes relayout.\n */\n readonly topologyUpdatePolicy?: GraphViewTopologyUpdatePolicy;\n readonly spacingFactor?: number;\n readonly styleRules?: readonly GraphViewStyleRule[];\n readonly selectedNodeIds?: readonly string[];\n readonly renderNode?: (context: GraphViewNodeRenderContext) => React.ReactNode;\n readonly getNodeSize?: (node: GraphViewNode) => GraphViewSize | undefined;\n readonly fitPadding?: number;\n readonly minZoom?: number;\n readonly maxZoom?: number;\n readonly minReadableLabelSize?: number;\n readonly maxFitLabelSize?: number;\n /** Zoom values and bounds use the full-node fit as 1 when fit-relative is selected. */\n readonly zoomMode?: 'absolute' | 'fit-relative';\n /** Measure plain labels before layout instead of estimating width from character count. */\n readonly sizeNodesToLabels?: boolean;\n readonly className?: string;\n readonly style?: React.CSSProperties;\n readonly ariaLabel?: string;\n readonly onReady?: (controller: GraphViewController) => void;\n readonly onLayoutComplete?: (controller: GraphViewController) => void;\n readonly onNodeEvent?: (event: GraphViewElementEvent) => void;\n readonly onEdgeEvent?: (event: GraphViewElementEvent) => void;\n readonly onViewportChange?: (viewport: GraphViewViewport) => void;\n readonly onSpacingFactorChange?: (spacingFactor: number) => void;\n}\n\nexport type GraphViewCallbacks = Pick<\n GraphViewProps,\n | 'onEdgeEvent'\n | 'onLayoutComplete'\n | 'onNodeEvent'\n | 'onReady'\n | 'onViewportChange'\n | 'onSpacingFactorChange'\n>;\n"]}
1
+ {"version":3,"file":"graph-view.js","sourceRoot":"","sources":["../../src/types/graph-view.ts"],"names":[],"mappings":"","sourcesContent":["import type { Graph, GraphEdge, GraphId, GraphNode } from '@ankhorage/graph';\nimport type { SelectionIntent } from '@ankhorage/utility/selection';\nimport type React from 'react';\n\nexport type GraphViewLayoutName = 'breadthfirst' | 'circle' | 'concentric' | 'elk' | 'grid';\nexport type GraphViewTopologyUpdatePolicy = 'preserve-positions';\nexport type GraphViewElementEventType =\n 'press' | 'double-press' | 'select' | 'unselect' | 'pointer-enter' | 'pointer-leave';\n\nexport interface GraphViewNode {\n readonly id: string;\n readonly label?: string;\n readonly parentId?: string;\n readonly classes?: string;\n readonly data?: Readonly<Record<string, unknown>>;\n}\n\nexport interface GraphViewEdge {\n readonly id?: string;\n readonly source: string;\n readonly target: string;\n readonly classes?: string;\n readonly data?: Readonly<Record<string, unknown>>;\n}\n\n/*** Preserve one canonical graph node alongside its GraphView presentation projection. */\nexport interface GraphViewCanonicalNodeData<NodeData = unknown, NodeId extends GraphId = GraphId> {\n readonly canonicalNode: GraphNode<NodeData, NodeId>;\n}\n\n/*** Preserve one canonical graph edge alongside its GraphView presentation projection. */\nexport interface GraphViewCanonicalEdgeData<\n EdgeData = unknown,\n NodeId extends GraphId = GraphId,\n EdgeId extends GraphId = GraphId,\n> {\n readonly canonicalEdge: GraphEdge<EdgeData, NodeId, EdgeId>;\n}\n\nexport interface GraphViewStyleRule {\n readonly selector: string;\n readonly style: Readonly<Record<string, unknown>>;\n}\n\nexport interface GraphViewPoint {\n readonly x: number;\n readonly y: number;\n}\n\nexport interface GraphViewSize {\n readonly width: number;\n readonly height: number;\n}\n\nexport interface GraphViewNodeRenderContext {\n readonly hovered: boolean;\n readonly node: GraphViewNode;\n readonly selected: boolean;\n readonly zoom: number;\n}\n\nexport interface GraphViewRenderedNode {\n readonly hovered: boolean;\n readonly id: string;\n readonly position: GraphViewPoint;\n readonly selected: boolean;\n readonly zoom: number;\n}\n\nexport interface GraphViewNodeMeasurement {\n readonly id: string;\n readonly position: GraphViewPoint;\n readonly size: GraphViewSize;\n}\n\nexport interface GraphViewMeasurement {\n readonly nodes: readonly GraphViewNodeMeasurement[];\n readonly viewport: GraphViewSize;\n}\n\nexport interface GraphViewViewport {\n readonly zoom: number;\n readonly pan: GraphViewPoint;\n}\n\nexport interface GraphViewFitOptions {\n /**\n * Optimize effective rendered fit without rerunning the layout algorithm; whole-graph fits only.\n * Stops at the configured fit-size target and keeps semantic labels collision-safe.\n */\n readonly optimizeSpacing?: boolean;\n readonly nodeIds?: readonly string[];\n readonly padding?: number;\n}\n\nexport interface GraphViewElementEvent {\n readonly id: string;\n readonly type: GraphViewElementEventType;\n readonly selectionIntent?: SelectionIntent;\n}\n\nexport interface GraphViewController {\n fit(options?: GraphViewFitOptions): void;\n /** Measure rendered node geometry without exposing the backing graph engine. */\n measureNodes?(nodeIds: readonly string[]): GraphViewMeasurement | null;\n getViewport(): GraphViewViewport;\n getZoomRange(): { readonly min: number; readonly max: number };\n setPan(pan: GraphViewPoint): void;\n setZoom(zoom: number): void;\n zoomBy(factor: number): void;\n}\n\n/*** The browser lifecycle events carry only the existing public graph controller. */\nexport interface GraphViewDomControllerEventDetail {\n readonly controller: GraphViewController;\n}\n\ninterface GraphViewSharedProps {\n readonly layout?: GraphViewLayoutName;\n readonly layoutOptions?: Readonly<Record<string, unknown>>;\n /**\n * Preserve the settled viewport and retained-node positions during controlled topology updates.\n * New nodes receive a deterministic initial position; call controller.fit() or change layout to\n * intentionally fit or relayout the graph. Without this opt-in, topology changes relayout.\n */\n readonly topologyUpdatePolicy?: GraphViewTopologyUpdatePolicy;\n readonly spacingFactor?: number;\n readonly styleRules?: readonly GraphViewStyleRule[];\n readonly selectedNodeIds?: readonly string[];\n readonly renderNode?: (context: GraphViewNodeRenderContext) => React.ReactNode;\n readonly getNodeSize?: (node: GraphViewNode) => GraphViewSize | undefined;\n readonly fitPadding?: number;\n readonly minZoom?: number;\n readonly maxZoom?: number;\n readonly minReadableLabelSize?: number;\n readonly maxFitLabelSize?: number;\n /** Zoom values and bounds use the full-node fit as 1 when fit-relative is selected. */\n readonly zoomMode?: 'absolute' | 'fit-relative';\n /** Measure plain labels before layout instead of estimating width from character count. */\n readonly sizeNodesToLabels?: boolean;\n readonly className?: string;\n readonly style?: React.CSSProperties;\n readonly ariaLabel?: string;\n readonly onReady?: (controller: GraphViewController) => void;\n readonly onLayoutComplete?: (controller: GraphViewController) => void;\n readonly onNodeEvent?: (event: GraphViewElementEvent) => void;\n readonly onEdgeEvent?: (event: GraphViewElementEvent) => void;\n readonly onViewportChange?: (viewport: GraphViewViewport) => void;\n readonly onSpacingFactorChange?: (spacingFactor: number) => void;\n}\n\n/*** Retain the original GraphView nodes and edges input contract. */\nexport interface GraphViewProps extends GraphViewSharedProps {\n readonly nodes: readonly GraphViewNode[];\n readonly edges: readonly GraphViewEdge[];\n readonly graph?: never;\n}\n\n/*** Accept a published canonical graph without introducing a second domain graph model. */\nexport interface GraphViewCanonicalGraphProps extends GraphViewSharedProps {\n readonly graph: Graph<unknown, unknown, GraphId, GraphId>;\n readonly nodes?: never;\n readonly edges?: never;\n}\n\n/*** Accept either the established presentation elements or one canonical Ankhorage graph. */\nexport type GraphViewInput = GraphViewProps | GraphViewCanonicalGraphProps;\n\n/*** Describe the resolved element input consumed by the existing GraphView runtime. */\nexport type ResolvedGraphViewProps = GraphViewProps;\n\nexport type GraphViewCallbacks = Pick<\n GraphViewSharedProps,\n | 'onEdgeEvent'\n | 'onLayoutComplete'\n | 'onNodeEvent'\n | 'onReady'\n | 'onViewportChange'\n | 'onSpacingFactorChange'\n>;\n"]}