@ankhorage/zora 27.4.7 → 27.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1172) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +1 -1
  3. package/dist/capabilities/index.js +13 -1
  4. package/dist/capabilities/index.js.map +5 -4
  5. package/dist/features/calendar/adapters/inbound/Calendar.d.ts +5 -0
  6. package/dist/features/calendar/adapters/inbound/Calendar.d.ts.map +1 -0
  7. package/dist/features/calendar/adapters/inbound/Calendar.js +126 -0
  8. package/dist/features/calendar/adapters/inbound/Calendar.js.map +1 -0
  9. package/dist/features/calendar/application/createCalendarMonth.d.ts +9 -0
  10. package/dist/features/calendar/application/createCalendarMonth.d.ts.map +1 -0
  11. package/dist/features/calendar/application/createCalendarMonth.js +25 -0
  12. package/dist/features/calendar/application/createCalendarMonth.js.map +1 -0
  13. package/dist/features/calendar/application/isCalendarDateDisabled.d.ts +10 -0
  14. package/dist/features/calendar/application/isCalendarDateDisabled.d.ts.map +1 -0
  15. package/dist/features/calendar/application/isCalendarDateDisabled.js +23 -0
  16. package/dist/features/calendar/application/isCalendarDateDisabled.js.map +1 -0
  17. package/dist/features/calendar/calendarMeta.d.ts +10 -0
  18. package/dist/features/calendar/calendarMeta.d.ts.map +1 -0
  19. package/dist/features/calendar/calendarMeta.js +10 -0
  20. package/dist/features/calendar/calendarMeta.js.map +1 -0
  21. package/dist/features/calendar/public.d.ts +2 -0
  22. package/dist/features/calendar/public.d.ts.map +1 -1
  23. package/dist/features/calendar/public.js +1 -1
  24. package/dist/features/calendar/public.js.map +1 -1
  25. package/dist/features/data-table/adapters/inbound/DataTable.d.ts +1 -1
  26. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  27. package/dist/features/data-table/adapters/inbound/DataTable.js +82 -23
  28. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  29. package/dist/features/date-picker/composition/DatePickerContent.d.ts +1 -1
  30. package/dist/features/date-picker/composition/DatePickerContent.d.ts.map +1 -1
  31. package/dist/features/date-picker/composition/DatePickerContent.js +5 -104
  32. package/dist/features/date-picker/composition/DatePickerContent.js.map +1 -1
  33. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts +2 -2
  34. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.d.ts.map +1 -1
  35. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js +6 -4
  36. package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js.map +1 -1
  37. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.d.ts.map +1 -1
  38. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js +19 -0
  39. package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js.map +1 -1
  40. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.d.ts +7 -0
  41. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.d.ts.map +1 -0
  42. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.js +52 -0
  43. package/dist/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.js.map +1 -0
  44. package/dist/features/graph-view/public.d.ts +1 -1
  45. package/dist/features/graph-view/public.d.ts.map +1 -1
  46. package/dist/features/graph-view/public.js.map +1 -1
  47. package/dist/features/grid-view/adapters/inbound/GridView.d.ts +1 -1
  48. package/dist/features/grid-view/adapters/inbound/GridView.d.ts.map +1 -1
  49. package/dist/features/grid-view/adapters/inbound/GridView.js +6 -5
  50. package/dist/features/grid-view/adapters/inbound/GridView.js.map +1 -1
  51. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
  52. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +2 -0
  53. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
  54. package/dist/features/registry/componentMeta.d.ts.map +1 -1
  55. package/dist/features/registry/componentMeta.js +2 -0
  56. package/dist/features/registry/componentMeta.js.map +1 -1
  57. package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts +1 -1
  58. package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts.map +1 -1
  59. package/dist/features/theme/application/use-cases/compileZoraTheme.js.map +1 -1
  60. package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts +1 -1
  61. package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts.map +1 -1
  62. package/dist/features/theme/application/use-cases/createZoraThemeConfig.js +1 -1
  63. package/dist/features/theme/application/use-cases/createZoraThemeConfig.js.map +1 -1
  64. package/dist/features/theme/public.d.ts +4 -4
  65. package/dist/features/theme/public.d.ts.map +1 -1
  66. package/dist/features/theme/public.js +3 -3
  67. package/dist/features/theme/public.js.map +1 -1
  68. package/dist/features/theme/zoraDefaultTheme.d.ts +1 -1
  69. package/dist/features/theme/zoraDefaultTheme.d.ts.map +1 -1
  70. package/dist/features/theme/zoraDefaultTheme.js.map +1 -1
  71. package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -1
  72. package/dist/features/timeline/adapters/inbound/Timeline.js +17 -11
  73. package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -1
  74. package/dist/readerFree.d.ts +1 -0
  75. package/dist/readerFree.d.ts.map +1 -1
  76. package/dist/readerFree.js +1 -0
  77. package/dist/readerFree.js.map +1 -1
  78. package/dist/types/calendar.d.ts +24 -0
  79. package/dist/types/calendar.d.ts.map +1 -0
  80. package/dist/types/calendar.js +2 -0
  81. package/dist/types/calendar.js.map +1 -0
  82. package/dist/types/data-table.d.ts +4 -0
  83. package/dist/types/data-table.d.ts.map +1 -1
  84. package/dist/types/data-table.js.map +1 -1
  85. package/dist/types/graph-view.d.ts +28 -4
  86. package/dist/types/graph-view.d.ts.map +1 -1
  87. package/dist/types/graph-view.js.map +1 -1
  88. package/dist/types/grid-view.d.ts +2 -0
  89. package/dist/types/grid-view.d.ts.map +1 -1
  90. package/dist/types/grid-view.js.map +1 -1
  91. package/dist/types/timeline.d.ts +3 -0
  92. package/dist/types/timeline.d.ts.map +1 -1
  93. package/dist/types/timeline.js.map +1 -1
  94. package/package.json +7 -5
  95. package/src/features/calendar/adapters/inbound/Calendar.interaction.test.tsx +115 -0
  96. package/src/features/calendar/adapters/inbound/Calendar.tsx +219 -0
  97. package/src/features/calendar/application/createCalendarMonth.test.ts +23 -0
  98. package/src/features/calendar/application/createCalendarMonth.ts +38 -0
  99. package/src/features/calendar/application/isCalendarDateDisabled.test.ts +49 -0
  100. package/src/features/calendar/application/isCalendarDateDisabled.ts +41 -0
  101. package/src/features/calendar/calendarMeta.ts +11 -0
  102. package/src/features/calendar/public.test.ts +14 -0
  103. package/src/features/calendar/public.ts +7 -0
  104. package/src/features/data-table/adapters/inbound/DataTable.test.tsx +242 -0
  105. package/src/features/data-table/adapters/inbound/DataTable.tsx +162 -38
  106. package/src/features/date-picker/composition/DatePickerContent.tsx +8 -192
  107. package/src/features/date-picker/public.test.ts +2 -1
  108. package/src/features/flow-status/assets/completed.svg +1 -0
  109. package/src/features/flow-status/assets/flowStatusAssets.test.ts +78 -0
  110. package/src/features/flow-status/assets/manifest.json +36 -0
  111. package/src/features/flow-status/assets/preview.svg +21 -0
  112. package/src/features/flow-status/assets/waiting.svg +1 -0
  113. package/src/features/graph-view/adapters/inbound/web-artifact/GraphView.tsx +17 -15
  114. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.test.ts +102 -3
  115. package/src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts +25 -0
  116. package/src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.test.ts +95 -0
  117. package/src/features/graph-view/adapters/inbound/web-artifact/resolveGraphViewProps.ts +71 -0
  118. package/src/features/graph-view/public.ts +5 -0
  119. package/src/features/grid-view/adapters/inbound/GridView.interaction.test.tsx +4 -3
  120. package/src/features/grid-view/adapters/inbound/GridView.tsx +6 -4
  121. package/src/features/icon/assets/flow/README.md +11 -0
  122. package/src/features/icon/assets/flow/contact-sheet.svg +115 -0
  123. package/src/features/icon/assets/flow/manifest.json +185 -0
  124. package/src/features/icon/assets/flow/node-kinds/ai-agent.svg +1 -0
  125. package/src/features/icon/assets/flow/node-kinds/analytics.svg +1 -0
  126. package/src/features/icon/assets/flow/node-kinds/approval.svg +1 -0
  127. package/src/features/icon/assets/flow/node-kinds/code.svg +1 -0
  128. package/src/features/icon/assets/flow/node-kinds/condition.svg +1 -0
  129. package/src/features/icon/assets/flow/node-kinds/content-input.svg +1 -0
  130. package/src/features/icon/assets/flow/node-kinds/database.svg +1 -0
  131. package/src/features/icon/assets/flow/node-kinds/delay.svg +1 -0
  132. package/src/features/icon/assets/flow/node-kinds/email.svg +1 -0
  133. package/src/features/icon/assets/flow/node-kinds/end.svg +1 -0
  134. package/src/features/icon/assets/flow/node-kinds/filter.svg +1 -0
  135. package/src/features/icon/assets/flow/node-kinds/http-request.svg +1 -0
  136. package/src/features/icon/assets/flow/node-kinds/loop.svg +1 -0
  137. package/src/features/icon/assets/flow/node-kinds/manual.svg +1 -0
  138. package/src/features/icon/assets/flow/node-kinds/merge.svg +1 -0
  139. package/src/features/icon/assets/flow/node-kinds/notification.svg +1 -0
  140. package/src/features/icon/assets/flow/node-kinds/publish.svg +1 -0
  141. package/src/features/icon/assets/flow/node-kinds/split.svg +1 -0
  142. package/src/features/icon/assets/flow/node-kinds/transform.svg +1 -0
  143. package/src/features/icon/assets/flow/node-kinds/trigger.svg +1 -0
  144. package/src/features/icon/assets/flow/node-kinds/webhook.svg +1 -0
  145. package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +2 -0
  146. package/src/features/registry/componentMeta.ts +2 -0
  147. package/src/features/tabs/adapters/inbound/Tabs.layout.test.tsx +8 -2
  148. package/src/features/theme/application/use-cases/compileZoraTheme.ts +1 -1
  149. package/src/features/theme/application/use-cases/createZoraThemeConfig.ts +2 -2
  150. package/src/features/theme/public.ts +4 -4
  151. package/src/features/theme/themeModuleResolution.test.ts +41 -0
  152. package/src/features/theme/zoraDefaultTheme.ts +1 -1
  153. package/src/features/timeline/adapters/inbound/Timeline.test.tsx +175 -0
  154. package/src/features/timeline/adapters/inbound/Timeline.tsx +47 -26
  155. package/src/readerFree.ts +7 -0
  156. package/src/types/calendar.ts +25 -0
  157. package/src/types/data-table.ts +4 -0
  158. package/src/types/graph-view.ts +37 -4
  159. package/src/types/grid-view.ts +2 -0
  160. package/src/types/timeline.ts +3 -0
  161. package/src/webPackageExports.test.ts +122 -0
  162. package/web-dist/chunks/{Accordion-k81eyekh.js → Accordion-0j4xzcwz.js} +2 -2
  163. package/web-dist/chunks/{Accordion-5f9e10c6.js → Accordion-252dr90x.js} +1 -1
  164. package/web-dist/chunks/{Accordion-0pryvztw.js → Accordion-260pyaxy.js} +1 -1
  165. package/web-dist/chunks/{Accordion-g9hn7fht.js → Accordion-4c7hqeg3.js} +1 -1
  166. package/web-dist/chunks/{Accordion-0z8nry94.js → Accordion-4kmh6s2k.js} +1 -1
  167. package/web-dist/chunks/{Accordion-g758dqfc.js → Accordion-5pbvgvqc.js} +1 -1
  168. package/web-dist/chunks/{Accordion-jp5xt2kz.js → Accordion-5z8pbn4z.js} +1 -1
  169. package/web-dist/chunks/{Accordion-qzx53csd.js → Accordion-6jsea4e0.js} +4 -4
  170. package/web-dist/chunks/{Accordion-yd025qec.js → Accordion-7788ybcs.js} +2 -2
  171. package/web-dist/chunks/{Accordion-ppksc4jh.js → Accordion-7mnan4q4.js} +4 -4
  172. package/web-dist/chunks/{Accordion-0pm8dvcy.js → Accordion-8j7t77tf.js} +2 -2
  173. package/web-dist/chunks/{Accordion-6tesp7jr.js → Accordion-c44m1q0m.js} +1 -1
  174. package/web-dist/chunks/{Accordion-a6h4ff7g.js → Accordion-f2n2zz1x.js} +2 -2
  175. package/web-dist/chunks/{Accordion-ep9xpmbw.js → Accordion-fbehwpr1.js} +3 -3
  176. package/web-dist/chunks/{Accordion-j09h3pg1.js → Accordion-hf4nfkn0.js} +7 -7
  177. package/web-dist/chunks/{Accordion-xr81ntxh.js → Accordion-hh48jjhk.js} +4 -4
  178. package/web-dist/chunks/{Accordion-3qz6s2z9.js → Accordion-j6bs1yfn.js} +1 -1
  179. package/web-dist/chunks/{Accordion-dnpfe329.js → Accordion-jh94mg56.js} +3 -3
  180. package/web-dist/chunks/{Accordion-6c2ykyad.js → Accordion-jx9tc6p1.js} +2 -2
  181. package/web-dist/chunks/{Accordion-8xgdw6ry.js → Accordion-kcca65d8.js} +1 -1
  182. package/web-dist/chunks/{Accordion-g009pehq.js → Accordion-m3xb7z7j.js} +3 -3
  183. package/web-dist/chunks/{Accordion-eqkmzs33.js → Accordion-mpebzjby.js} +1 -1
  184. package/web-dist/chunks/{Accordion-n29svm40.js → Accordion-ms1y70gq.js} +1 -1
  185. package/web-dist/chunks/{Accordion-t0k1cjca.js → Accordion-neg1cgeh.js} +7 -5
  186. package/web-dist/chunks/{Accordion-wfrt39d2.js → Accordion-nnhznqgf.js} +1 -1
  187. package/web-dist/chunks/{Accordion-cqdfhyr9.js → Accordion-np16p9mh.js} +1 -1
  188. package/web-dist/chunks/{Accordion-zjygy6n2.js → Accordion-p2f0e4pn.js} +3 -3
  189. package/web-dist/chunks/{Accordion-q1vqpaw6.js → Accordion-p7mxkxhs.js} +4 -4
  190. package/web-dist/chunks/{Accordion-d6f4vr6s.js → Accordion-r6zvzrkd.js} +1 -1
  191. package/web-dist/chunks/Accordion-r86ce0wj.js +237 -0
  192. package/web-dist/chunks/{Accordion-b8659jt9.js → Accordion-rwc34cn2.js} +1 -1
  193. package/web-dist/chunks/{Accordion-rcff84ws.js → Accordion-s9nbkzky.js} +1 -1
  194. package/web-dist/chunks/{Accordion-01s50nga.js → Accordion-sxzts6bj.js} +1 -1
  195. package/web-dist/chunks/{Accordion-36nt5xmp.js → Accordion-t2cvrn0r.js} +4 -4
  196. package/web-dist/chunks/{Accordion-y5kdx80m.js → Accordion-tnt1txfq.js} +3 -3
  197. package/web-dist/chunks/{Accordion-bj7hv2dq.js → Accordion-vq8zrnwh.js} +1 -1
  198. package/web-dist/chunks/{Accordion-hh6jrz1e.js → Accordion-w0prbwy0.js} +4 -4
  199. package/web-dist/chunks/{Accordion-zqzqg9yc.js → Accordion-wvghkwxx.js} +6 -6
  200. package/web-dist/chunks/{Accordion-cp82h5jx.js → Accordion-wx0jp5cn.js} +4 -4
  201. package/web-dist/chunks/{Accordion-bwp6m0zd.js → Accordion-yb4as6wc.js} +2 -2
  202. package/web-dist/chunks/{Accordion-e9c80kn7.js → Accordion-yrzm02g2.js} +2 -2
  203. package/web-dist/components/accordion/Accordion.d.ts +6 -3
  204. package/web-dist/components/accordion/Accordion.dependency-0.d.ts +27 -0
  205. package/web-dist/components/accordion/Accordion.dependency-1.d.ts +3 -0
  206. package/web-dist/components/accordion/Accordion.js +5 -7
  207. package/web-dist/components/accordion/Accordion.types-0.d.ts +15 -0
  208. package/web-dist/components/accordion/index.d.ts +2 -1
  209. package/web-dist/components/accordion/index.js +1 -1
  210. package/web-dist/components/accordion-item/AccordionItem.d.ts +6 -3
  211. package/web-dist/components/accordion-item/AccordionItem.dependency-0.d.ts +27 -0
  212. package/web-dist/components/accordion-item/AccordionItem.dependency-1.d.ts +3 -0
  213. package/web-dist/components/accordion-item/AccordionItem.js +3 -5
  214. package/web-dist/components/accordion-item/AccordionItem.types-0.d.ts +13 -0
  215. package/web-dist/components/accordion-item/index.d.ts +2 -1
  216. package/web-dist/components/accordion-item/index.js +1 -1
  217. package/web-dist/components/activity-indicator/ActivityIndicator.d.ts +3 -1
  218. package/web-dist/components/activity-indicator/index.d.ts +2 -1
  219. package/web-dist/components/activity-indicator/index.js +1 -1
  220. package/web-dist/components/app-bar/AppBar.d.ts +6 -2
  221. package/web-dist/components/app-bar/AppBar.dependency-0.d.ts +27 -0
  222. package/web-dist/components/app-bar/AppBar.dependency-1.d.ts +3 -0
  223. package/web-dist/components/app-bar/AppBar.dependency-2.d.ts +18 -0
  224. package/web-dist/components/app-bar/AppBar.js +8 -8
  225. package/web-dist/components/app-bar/AppBar.types-0.d.ts +39 -0
  226. package/web-dist/components/app-bar/index.d.ts +2 -1
  227. package/web-dist/components/app-bar/index.js +1 -1
  228. package/web-dist/components/app-header/AppHeader.d.ts +6 -2
  229. package/web-dist/components/app-header/AppHeader.dependency-0.d.ts +39 -0
  230. package/web-dist/components/app-header/AppHeader.dependency-1.d.ts +27 -0
  231. package/web-dist/components/app-header/AppHeader.dependency-2.d.ts +3 -0
  232. package/web-dist/components/app-header/AppHeader.dependency-3.d.ts +18 -0
  233. package/web-dist/components/app-header/AppHeader.js +8 -8
  234. package/web-dist/components/app-header/AppHeader.types-0.d.ts +3 -0
  235. package/web-dist/components/app-header/index.d.ts +2 -1
  236. package/web-dist/components/app-header/index.js +1 -1
  237. package/web-dist/components/app-shell/AppShell.d.ts +6 -7
  238. package/web-dist/components/app-shell/AppShell.dependency-0.d.ts +27 -0
  239. package/web-dist/components/app-shell/AppShell.dependency-1.d.ts +3 -0
  240. package/web-dist/components/app-shell/AppShell.js +4 -14
  241. package/web-dist/components/app-shell/AppShell.types-0.d.ts +10 -0
  242. package/web-dist/components/app-shell/index.d.ts +2 -1
  243. package/web-dist/components/app-shell/index.js +1 -1
  244. package/web-dist/components/auth-screen/AuthScreen.d.ts +11 -8
  245. package/web-dist/components/auth-screen/AuthScreen.dependency-0.d.ts +27 -0
  246. package/web-dist/components/auth-screen/AuthScreen.dependency-1.d.ts +3 -0
  247. package/web-dist/components/auth-screen/AuthScreen.dependency-2.d.ts +45 -0
  248. package/web-dist/components/auth-screen/AuthScreen.dependency-3.d.ts +1 -0
  249. package/web-dist/components/auth-screen/AuthScreen.js +14 -26
  250. package/web-dist/components/auth-screen/AuthScreen.types-0.d.ts +50 -0
  251. package/web-dist/components/auth-screen/index.d.ts +2 -1
  252. package/web-dist/components/auth-screen/index.js +1 -1
  253. package/web-dist/components/avatar/Avatar.d.ts +8 -3
  254. package/web-dist/components/avatar/Avatar.dependency-0.d.ts +27 -0
  255. package/web-dist/components/avatar/Avatar.dependency-1.d.ts +3 -0
  256. package/web-dist/components/avatar/Avatar.dependency-2.d.ts +3 -0
  257. package/web-dist/components/avatar/Avatar.js +5 -7
  258. package/web-dist/components/avatar/Avatar.types-0.d.ts +22 -0
  259. package/web-dist/components/avatar/index.d.ts +2 -1
  260. package/web-dist/components/avatar/index.js +1 -1
  261. package/web-dist/components/avatar-group/AvatarGroup.d.ts +8 -3
  262. package/web-dist/components/avatar-group/AvatarGroup.dependency-0.d.ts +3 -0
  263. package/web-dist/components/avatar-group/AvatarGroup.dependency-1.d.ts +27 -0
  264. package/web-dist/components/avatar-group/AvatarGroup.dependency-2.d.ts +3 -0
  265. package/web-dist/components/avatar-group/AvatarGroup.dependency-3.d.ts +3 -0
  266. package/web-dist/components/avatar-group/AvatarGroup.js +3 -5
  267. package/web-dist/components/avatar-group/AvatarGroup.types-0.d.ts +27 -0
  268. package/web-dist/components/avatar-group/index.d.ts +2 -1
  269. package/web-dist/components/avatar-group/index.js +1 -1
  270. package/web-dist/components/badge/Badge.d.ts +8 -2
  271. package/web-dist/components/badge/Badge.dependency-0.d.ts +27 -0
  272. package/web-dist/components/badge/Badge.dependency-1.d.ts +3 -0
  273. package/web-dist/components/badge/Badge.dependency-2.d.ts +3 -0
  274. package/web-dist/components/badge/Badge.dependency-3.d.ts +3 -0
  275. package/web-dist/components/badge/Badge.js +2 -2
  276. package/web-dist/components/badge/Badge.types-0.d.ts +18 -0
  277. package/web-dist/components/badge/index.d.ts +2 -1
  278. package/web-dist/components/badge/index.js +1 -1
  279. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.d.ts +12 -4
  280. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-0.d.ts +27 -0
  281. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-1.d.ts +3 -0
  282. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +12 -16
  283. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.types-0.d.ts +21 -0
  284. package/web-dist/components/barcode-scanner-view/index.d.ts +2 -1
  285. package/web-dist/components/barcode-scanner-view/index.js +1 -1
  286. package/web-dist/components/bottom-sheet/BottomSheet.d.ts +6 -7
  287. package/web-dist/components/bottom-sheet/BottomSheet.dependency-0.d.ts +27 -0
  288. package/web-dist/components/bottom-sheet/BottomSheet.dependency-1.d.ts +3 -0
  289. package/web-dist/components/bottom-sheet/BottomSheet.js +4 -14
  290. package/web-dist/components/bottom-sheet/BottomSheet.types-0.d.ts +19 -0
  291. package/web-dist/components/bottom-sheet/index.d.ts +2 -1
  292. package/web-dist/components/bottom-sheet/index.js +1 -1
  293. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.d.ts +1 -7
  294. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +5 -15
  295. package/web-dist/components/bottom-sheet-flat-list/index.d.ts +1 -1
  296. package/web-dist/components/bottom-sheet-flat-list/index.js +1 -1
  297. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.d.ts +1 -7
  298. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +5 -15
  299. package/web-dist/components/bottom-sheet-scroll-view/index.d.ts +1 -1
  300. package/web-dist/components/bottom-sheet-scroll-view/index.js +1 -1
  301. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.d.ts +1 -7
  302. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +5 -15
  303. package/web-dist/components/bottom-sheet-section-list/index.d.ts +1 -1
  304. package/web-dist/components/bottom-sheet-section-list/index.js +1 -1
  305. package/web-dist/components/bottom-sheet-view/BottomSheetView.d.ts +1 -7
  306. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +5 -15
  307. package/web-dist/components/bottom-sheet-view/index.d.ts +1 -1
  308. package/web-dist/components/bottom-sheet-view/index.js +1 -1
  309. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.d.ts +1 -7
  310. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +4 -14
  311. package/web-dist/components/bottom-sheet-virtualized-list/index.d.ts +1 -1
  312. package/web-dist/components/bottom-sheet-virtualized-list/index.js +1 -1
  313. package/web-dist/components/breadcrumbs/Breadcrumbs.d.ts +6 -2
  314. package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-0.d.ts +27 -0
  315. package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-1.d.ts +3 -0
  316. package/web-dist/components/breadcrumbs/Breadcrumbs.js +5 -5
  317. package/web-dist/components/breadcrumbs/Breadcrumbs.types-0.d.ts +24 -0
  318. package/web-dist/components/breadcrumbs/index.d.ts +2 -1
  319. package/web-dist/components/breadcrumbs/index.js +1 -1
  320. package/web-dist/components/button/Button.d.ts +12 -4
  321. package/web-dist/components/button/Button.dependency-0.d.ts +27 -0
  322. package/web-dist/components/button/Button.dependency-1.d.ts +3 -0
  323. package/web-dist/components/button/Button.dependency-2.d.ts +3 -0
  324. package/web-dist/components/button/Button.dependency-3.d.ts +3 -0
  325. package/web-dist/components/button/Button.js +7 -11
  326. package/web-dist/components/button/Button.types-0.d.ts +20 -0
  327. package/web-dist/components/button/index.d.ts +2 -1
  328. package/web-dist/components/button/index.js +1 -1
  329. package/web-dist/components/button-group/ButtonGroup.d.ts +8 -4
  330. package/web-dist/components/button-group/ButtonGroup.dependency-0.d.ts +27 -0
  331. package/web-dist/components/button-group/ButtonGroup.dependency-1.d.ts +3 -0
  332. package/web-dist/components/button-group/ButtonGroup.dependency-2.d.ts +6 -0
  333. package/web-dist/components/button-group/ButtonGroup.js +7 -11
  334. package/web-dist/components/button-group/ButtonGroup.types-0.d.ts +17 -0
  335. package/web-dist/components/button-group/index.d.ts +2 -1
  336. package/web-dist/components/button-group/index.js +1 -1
  337. package/web-dist/components/calendar/Calendar.d.ts +8 -0
  338. package/web-dist/components/calendar/Calendar.dependency-0.d.ts +27 -0
  339. package/web-dist/components/calendar/Calendar.dependency-1.d.ts +3 -0
  340. package/web-dist/components/calendar/Calendar.js +25 -0
  341. package/web-dist/components/calendar/Calendar.types-0.d.ts +27 -0
  342. package/web-dist/components/calendar/Calendar.types-1.d.ts +146 -0
  343. package/web-dist/components/calendar/index.d.ts +2 -0
  344. package/web-dist/components/calendar/index.js +2 -0
  345. package/web-dist/components/camera-permission-view/CameraPermissionView.d.ts +12 -4
  346. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-0.d.ts +27 -0
  347. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-1.d.ts +3 -0
  348. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-2.d.ts +20 -0
  349. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-3.d.ts +3 -0
  350. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-4.d.ts +3 -0
  351. package/web-dist/components/camera-permission-view/CameraPermissionView.js +13 -17
  352. package/web-dist/components/camera-permission-view/CameraPermissionView.types-0.d.ts +20 -0
  353. package/web-dist/components/camera-permission-view/index.d.ts +2 -1
  354. package/web-dist/components/camera-permission-view/index.js +1 -1
  355. package/web-dist/components/card/Card.d.ts +12 -6
  356. package/web-dist/components/card/Card.dependency-0.d.ts +27 -0
  357. package/web-dist/components/card/Card.dependency-1.d.ts +3 -0
  358. package/web-dist/components/card/Card.js +12 -20
  359. package/web-dist/components/card/Card.types-0.d.ts +20 -0
  360. package/web-dist/components/card/index.d.ts +2 -1
  361. package/web-dist/components/card/index.js +1 -1
  362. package/web-dist/components/card-back/CardBack.d.ts +6 -6
  363. package/web-dist/components/card-back/CardBack.dependency-0.d.ts +27 -0
  364. package/web-dist/components/card-back/CardBack.dependency-1.d.ts +3 -0
  365. package/web-dist/components/card-back/CardBack.js +2 -10
  366. package/web-dist/components/card-back/CardBack.types-0.d.ts +34 -0
  367. package/web-dist/components/card-back/index.d.ts +2 -1
  368. package/web-dist/components/card-back/index.js +1 -1
  369. package/web-dist/components/card-hand/CardHand.d.ts +6 -6
  370. package/web-dist/components/card-hand/CardHand.dependency-0.d.ts +27 -0
  371. package/web-dist/components/card-hand/CardHand.dependency-1.d.ts +3 -0
  372. package/web-dist/components/card-hand/CardHand.js +2 -10
  373. package/web-dist/components/card-hand/CardHand.types-0.d.ts +43 -0
  374. package/web-dist/components/card-hand/index.d.ts +2 -1
  375. package/web-dist/components/card-hand/index.js +1 -1
  376. package/web-dist/components/chat-list-item/ChatListItem.d.ts +10 -3
  377. package/web-dist/components/chat-list-item/ChatListItem.dependency-0.d.ts +3 -0
  378. package/web-dist/components/chat-list-item/ChatListItem.dependency-1.d.ts +27 -0
  379. package/web-dist/components/chat-list-item/ChatListItem.dependency-2.d.ts +3 -0
  380. package/web-dist/components/chat-list-item/ChatListItem.dependency-3.d.ts +3 -0
  381. package/web-dist/components/chat-list-item/ChatListItem.js +8 -10
  382. package/web-dist/components/chat-list-item/ChatListItem.types-0.d.ts +36 -0
  383. package/web-dist/components/chat-list-item/index.d.ts +2 -1
  384. package/web-dist/components/chat-list-item/index.js +1 -1
  385. package/web-dist/components/checkbox/Checkbox.d.ts +10 -3
  386. package/web-dist/components/checkbox/Checkbox.dependency-0.d.ts +27 -0
  387. package/web-dist/components/checkbox/Checkbox.dependency-1.d.ts +3 -0
  388. package/web-dist/components/checkbox/Checkbox.js +6 -8
  389. package/web-dist/components/checkbox/Checkbox.types-0.d.ts +6 -0
  390. package/web-dist/components/checkbox/index.d.ts +2 -1
  391. package/web-dist/components/checkbox/index.js +1 -1
  392. package/web-dist/components/checkbox-group/CheckboxGroup.d.ts +8 -3
  393. package/web-dist/components/checkbox-group/CheckboxGroup.dependency-0.d.ts +27 -0
  394. package/web-dist/components/checkbox-group/CheckboxGroup.dependency-1.d.ts +3 -0
  395. package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -6
  396. package/web-dist/components/checkbox-group/CheckboxGroup.types-0.d.ts +21 -0
  397. package/web-dist/components/checkbox-group/index.d.ts +2 -1
  398. package/web-dist/components/checkbox-group/index.js +1 -1
  399. package/web-dist/components/chess-board/ChessBoard.d.ts +6 -3
  400. package/web-dist/components/chess-board/ChessBoard.dependency-0.d.ts +27 -0
  401. package/web-dist/components/chess-board/ChessBoard.dependency-1.d.ts +3 -0
  402. package/web-dist/components/chess-board/ChessBoard.js +4 -6
  403. package/web-dist/components/chess-board/ChessBoard.types-0.d.ts +79 -0
  404. package/web-dist/components/chess-board/index.d.ts +2 -1
  405. package/web-dist/components/chess-board/index.js +1 -1
  406. package/web-dist/components/chip/Chip.d.ts +8 -3
  407. package/web-dist/components/chip/Chip.dependency-0.d.ts +27 -0
  408. package/web-dist/components/chip/Chip.dependency-1.d.ts +3 -0
  409. package/web-dist/components/chip/Chip.dependency-2.d.ts +3 -0
  410. package/web-dist/components/chip/Chip.dependency-3.d.ts +3 -0
  411. package/web-dist/components/chip/Chip.js +6 -8
  412. package/web-dist/components/chip/Chip.types-0.d.ts +19 -0
  413. package/web-dist/components/chip/index.d.ts +2 -1
  414. package/web-dist/components/chip/index.js +1 -1
  415. package/web-dist/components/chip-group/ChipGroup.d.ts +8 -3
  416. package/web-dist/components/chip-group/ChipGroup.js +4 -6
  417. package/web-dist/components/chip-group/ChipGroup.types-0.d.ts +13 -0
  418. package/web-dist/components/chip-group/index.d.ts +2 -1
  419. package/web-dist/components/chip-group/index.js +1 -1
  420. package/web-dist/components/collection-editor/CollectionEditor.d.ts +10 -2
  421. package/web-dist/components/collection-editor/CollectionEditor.dependency-0.d.ts +27 -0
  422. package/web-dist/components/collection-editor/CollectionEditor.dependency-1.d.ts +3 -0
  423. package/web-dist/components/collection-editor/CollectionEditor.js +10 -10
  424. package/web-dist/components/collection-editor/CollectionEditor.types-0.d.ts +26 -0
  425. package/web-dist/components/collection-editor/index.d.ts +2 -1
  426. package/web-dist/components/collection-editor/index.js +1 -1
  427. package/web-dist/components/color-hue-scale/ColorHueScale.d.ts +4 -5
  428. package/web-dist/components/color-hue-scale/ColorHueScale.dependency-0.d.ts +27 -0
  429. package/web-dist/components/color-hue-scale/ColorHueScale.dependency-1.d.ts +3 -0
  430. package/web-dist/components/color-hue-scale/ColorHueScale.js +8 -14
  431. package/web-dist/components/color-hue-scale/ColorHueScale.types-0.d.ts +8 -0
  432. package/web-dist/components/color-hue-scale/index.d.ts +2 -1
  433. package/web-dist/components/color-hue-scale/index.js +1 -1
  434. package/web-dist/components/color-picker/ColorPicker.d.ts +6 -5
  435. package/web-dist/components/color-picker/ColorPicker.dependency-0.d.ts +27 -0
  436. package/web-dist/components/color-picker/ColorPicker.dependency-1.d.ts +3 -0
  437. package/web-dist/components/color-picker/ColorPicker.js +7 -13
  438. package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +81 -0
  439. package/web-dist/components/color-picker/index.d.ts +2 -1
  440. package/web-dist/components/color-picker/index.js +1 -1
  441. package/web-dist/components/color-tone/ColorTone.d.ts +6 -5
  442. package/web-dist/components/color-tone/ColorTone.dependency-0.d.ts +27 -0
  443. package/web-dist/components/color-tone/ColorTone.dependency-1.d.ts +3 -0
  444. package/web-dist/components/color-tone/ColorTone.js +8 -14
  445. package/web-dist/components/color-tone/ColorTone.types-0.d.ts +31 -0
  446. package/web-dist/components/color-tone/index.d.ts +2 -1
  447. package/web-dist/components/color-tone/index.js +1 -1
  448. package/web-dist/components/color-wheel/ColorWheel.d.ts +6 -5
  449. package/web-dist/components/color-wheel/ColorWheel.dependency-0.d.ts +27 -0
  450. package/web-dist/components/color-wheel/ColorWheel.dependency-1.d.ts +3 -0
  451. package/web-dist/components/color-wheel/ColorWheel.js +7 -13
  452. package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +15 -0
  453. package/web-dist/components/color-wheel/index.d.ts +2 -1
  454. package/web-dist/components/color-wheel/index.js +1 -1
  455. package/web-dist/components/content-rail/ContentRail.d.ts +11 -2
  456. package/web-dist/components/content-rail/ContentRail.dependency-0.d.ts +27 -0
  457. package/web-dist/components/content-rail/ContentRail.dependency-1.d.ts +3 -0
  458. package/web-dist/components/content-rail/ContentRail.js +5 -5
  459. package/web-dist/components/content-rail/ContentRail.types-0.d.ts +40 -0
  460. package/web-dist/components/content-rail/index.d.ts +2 -1
  461. package/web-dist/components/content-rail/index.js +1 -1
  462. package/web-dist/components/data-table/DataTable.d.ts +8 -2
  463. package/web-dist/components/data-table/DataTable.dependency-0.d.ts +27 -0
  464. package/web-dist/components/data-table/DataTable.dependency-1.d.ts +3 -0
  465. package/web-dist/components/data-table/DataTable.dependency-2.d.ts +3 -0
  466. package/web-dist/components/data-table/DataTable.js +149 -64
  467. package/web-dist/components/data-table/DataTable.types-0.d.ts +66 -0
  468. package/web-dist/components/data-table/index.d.ts +2 -1
  469. package/web-dist/components/data-table/index.js +1 -1
  470. package/web-dist/components/date-picker/DatePicker.d.ts +6 -2
  471. package/web-dist/components/date-picker/DatePicker.dependency-0.d.ts +27 -0
  472. package/web-dist/components/date-picker/DatePicker.dependency-1.d.ts +3 -0
  473. package/web-dist/components/date-picker/DatePicker.js +19 -160
  474. package/web-dist/components/date-picker/DatePicker.types-0.d.ts +20 -0
  475. package/web-dist/components/date-picker/index.d.ts +2 -1
  476. package/web-dist/components/date-picker/index.js +1 -1
  477. package/web-dist/components/dialog/Dialog.d.ts +6 -2
  478. package/web-dist/components/dialog/Dialog.dependency-0.d.ts +27 -0
  479. package/web-dist/components/dialog/Dialog.dependency-1.d.ts +3 -0
  480. package/web-dist/components/dialog/Dialog.dependency-2.d.ts +1 -0
  481. package/web-dist/components/dialog/Dialog.js +4 -4
  482. package/web-dist/components/dialog/Dialog.types-0.d.ts +16 -0
  483. package/web-dist/components/dialog/index.d.ts +2 -1
  484. package/web-dist/components/dialog/index.js +1 -1
  485. package/web-dist/components/divider/Divider.d.ts +6 -7
  486. package/web-dist/components/divider/Divider.dependency-0.d.ts +27 -0
  487. package/web-dist/components/divider/Divider.dependency-1.d.ts +3 -0
  488. package/web-dist/components/divider/Divider.js +4 -14
  489. package/web-dist/components/divider/Divider.types-0.d.ts +6 -0
  490. package/web-dist/components/divider/index.d.ts +2 -1
  491. package/web-dist/components/divider/index.js +1 -1
  492. package/web-dist/components/empty-state/EmptyState.d.ts +13 -2
  493. package/web-dist/components/empty-state/EmptyState.dependency-0.d.ts +27 -0
  494. package/web-dist/components/empty-state/EmptyState.dependency-1.d.ts +3 -0
  495. package/web-dist/components/empty-state/EmptyState.dependency-2.d.ts +3 -0
  496. package/web-dist/components/empty-state/EmptyState.dependency-3.d.ts +3 -0
  497. package/web-dist/components/empty-state/EmptyState.js +11 -11
  498. package/web-dist/components/empty-state/EmptyState.types-0.d.ts +23 -0
  499. package/web-dist/components/empty-state/index.d.ts +2 -1
  500. package/web-dist/components/empty-state/index.js +1 -1
  501. package/web-dist/components/explorer/Explorer.d.ts +6 -4
  502. package/web-dist/components/explorer/Explorer.dependency-0.d.ts +27 -0
  503. package/web-dist/components/explorer/Explorer.dependency-1.d.ts +3 -0
  504. package/web-dist/components/explorer/Explorer.js +7 -11
  505. package/web-dist/components/explorer/Explorer.types-0.d.ts +75 -0
  506. package/web-dist/components/explorer/index.d.ts +2 -1
  507. package/web-dist/components/explorer/index.js +1 -1
  508. package/web-dist/components/field/Field.d.ts +6 -2
  509. package/web-dist/components/field/Field.dependency-0.d.ts +11 -0
  510. package/web-dist/components/field/Field.dependency-1.d.ts +27 -0
  511. package/web-dist/components/field/Field.dependency-2.d.ts +3 -0
  512. package/web-dist/components/field/Field.js +4 -4
  513. package/web-dist/components/field/index.d.ts +1 -1
  514. package/web-dist/components/field/index.js +1 -1
  515. package/web-dist/components/file-explorer/FileExplorer.d.ts +6 -4
  516. package/web-dist/components/file-explorer/FileExplorer.dependency-0.d.ts +27 -0
  517. package/web-dist/components/file-explorer/FileExplorer.dependency-1.d.ts +3 -0
  518. package/web-dist/components/file-explorer/FileExplorer.js +7 -11
  519. package/web-dist/components/file-explorer/FileExplorer.types-0.d.ts +75 -0
  520. package/web-dist/components/file-explorer/index.d.ts +2 -1
  521. package/web-dist/components/file-explorer/index.js +1 -1
  522. package/web-dist/components/flat-list/FlatList.d.ts +6 -6
  523. package/web-dist/components/flat-list/FlatList.dependency-0.d.ts +27 -0
  524. package/web-dist/components/flat-list/FlatList.dependency-1.d.ts +3 -0
  525. package/web-dist/components/flat-list/FlatList.js +7 -15
  526. package/web-dist/components/flat-list/FlatList.types-0.d.ts +26 -0
  527. package/web-dist/components/flat-list/index.d.ts +2 -1
  528. package/web-dist/components/flat-list/index.js +1 -1
  529. package/web-dist/components/forgot-password-form/ForgotPasswordForm.d.ts +10 -8
  530. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-0.d.ts +27 -0
  531. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-1.d.ts +3 -0
  532. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-2.d.ts +45 -0
  533. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-3.d.ts +1 -0
  534. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +14 -26
  535. package/web-dist/components/forgot-password-form/ForgotPasswordForm.types-0.d.ts +27 -0
  536. package/web-dist/components/forgot-password-form/index.d.ts +2 -1
  537. package/web-dist/components/forgot-password-form/index.js +1 -1
  538. package/web-dist/components/form/Form.d.ts +6 -5
  539. package/web-dist/components/form/Form.dependency-0.d.ts +27 -0
  540. package/web-dist/components/form/Form.dependency-1.d.ts +3 -0
  541. package/web-dist/components/form/Form.js +10 -17
  542. package/web-dist/components/form/Form.types-0.d.ts +12 -0
  543. package/web-dist/components/form/index.d.ts +2 -1
  544. package/web-dist/components/form/index.js +1 -1
  545. package/web-dist/components/form-actions/FormActions.d.ts +8 -5
  546. package/web-dist/components/form-actions/FormActions.dependency-0.d.ts +27 -0
  547. package/web-dist/components/form-actions/FormActions.dependency-1.d.ts +3 -0
  548. package/web-dist/components/form-actions/FormActions.js +10 -17
  549. package/web-dist/components/form-actions/FormActions.types-0.d.ts +11 -0
  550. package/web-dist/components/form-actions/index.d.ts +2 -1
  551. package/web-dist/components/form-actions/index.js +1 -1
  552. package/web-dist/components/form-error/FormError.d.ts +6 -5
  553. package/web-dist/components/form-error/FormError.dependency-0.d.ts +27 -0
  554. package/web-dist/components/form-error/FormError.dependency-1.d.ts +3 -0
  555. package/web-dist/components/form-error/FormError.js +8 -15
  556. package/web-dist/components/form-error/FormError.types-0.d.ts +7 -0
  557. package/web-dist/components/form-error/index.d.ts +2 -1
  558. package/web-dist/components/form-error/index.js +1 -1
  559. package/web-dist/components/game/Game.d.ts +6 -7
  560. package/web-dist/components/game/Game.dependency-0.d.ts +27 -0
  561. package/web-dist/components/game/Game.dependency-1.d.ts +3 -0
  562. package/web-dist/components/game/Game.js +5 -15
  563. package/web-dist/components/game/Game.types-0.d.ts +24 -0
  564. package/web-dist/components/game/index.d.ts +2 -1
  565. package/web-dist/components/game/index.js +1 -1
  566. package/web-dist/components/game-entity/GameEntity.d.ts +6 -7
  567. package/web-dist/components/game-entity/GameEntity.dependency-0.d.ts +27 -0
  568. package/web-dist/components/game-entity/GameEntity.dependency-1.d.ts +3 -0
  569. package/web-dist/components/game-entity/GameEntity.js +5 -15
  570. package/web-dist/components/game-entity/GameEntity.types-0.d.ts +41 -0
  571. package/web-dist/components/game-entity/index.d.ts +2 -1
  572. package/web-dist/components/game-entity/index.js +1 -1
  573. package/web-dist/components/game-field/GameField.d.ts +4 -7
  574. package/web-dist/components/game-field/GameField.dependency-0.d.ts +27 -0
  575. package/web-dist/components/game-field/GameField.dependency-1.d.ts +3 -0
  576. package/web-dist/components/game-field/GameField.js +5 -15
  577. package/web-dist/components/game-field/GameField.types-0.d.ts +13 -0
  578. package/web-dist/components/game-field/index.d.ts +2 -1
  579. package/web-dist/components/game-field/index.js +1 -1
  580. package/web-dist/components/game-input-zone/GameInputZone.d.ts +4 -7
  581. package/web-dist/components/game-input-zone/GameInputZone.dependency-0.d.ts +27 -0
  582. package/web-dist/components/game-input-zone/GameInputZone.dependency-1.d.ts +3 -0
  583. package/web-dist/components/game-input-zone/GameInputZone.js +5 -15
  584. package/web-dist/components/game-input-zone/GameInputZone.types-0.d.ts +25 -0
  585. package/web-dist/components/game-input-zone/index.d.ts +2 -1
  586. package/web-dist/components/game-input-zone/index.js +1 -1
  587. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.d.ts +6 -7
  588. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-0.d.ts +27 -0
  589. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-1.d.ts +3 -0
  590. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +5 -15
  591. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.types-0.d.ts +10 -0
  592. package/web-dist/components/game-measurement-probe/index.d.ts +2 -1
  593. package/web-dist/components/game-measurement-probe/index.js +1 -1
  594. package/web-dist/components/game-overlay/GameOverlay.d.ts +4 -7
  595. package/web-dist/components/game-overlay/GameOverlay.dependency-0.d.ts +27 -0
  596. package/web-dist/components/game-overlay/GameOverlay.dependency-1.d.ts +3 -0
  597. package/web-dist/components/game-overlay/GameOverlay.js +3 -13
  598. package/web-dist/components/game-overlay/GameOverlay.types-0.d.ts +14 -0
  599. package/web-dist/components/game-overlay/index.d.ts +2 -1
  600. package/web-dist/components/game-overlay/index.js +1 -1
  601. package/web-dist/components/gradient/Gradient.d.ts +11 -3
  602. package/web-dist/components/gradient/Gradient.dependency-0.d.ts +27 -0
  603. package/web-dist/components/gradient/Gradient.dependency-1.d.ts +3 -0
  604. package/web-dist/components/gradient/Gradient.dependency-2.d.ts +6 -0
  605. package/web-dist/components/gradient/Gradient.js +4 -6
  606. package/web-dist/components/gradient/Gradient.types-0.d.ts +29 -0
  607. package/web-dist/components/gradient/index.d.ts +2 -1
  608. package/web-dist/components/gradient/index.js +1 -1
  609. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.d.ts +11 -3
  610. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +4 -6
  611. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.types-0.d.ts +30 -0
  612. package/web-dist/components/gradient-renderer-provider/index.d.ts +2 -1
  613. package/web-dist/components/gradient-renderer-provider/index.js +1 -1
  614. package/web-dist/components/graph-view/GraphView.d.ts +3 -10
  615. package/web-dist/components/graph-view/GraphView.js +61 -7
  616. package/web-dist/components/graph-view/GraphView.types-0.d.ts +49 -36
  617. package/web-dist/components/graph-view/index.d.ts +2 -1
  618. package/web-dist/components/graph-view/index.js +1 -1
  619. package/web-dist/components/grid/Grid.d.ts +6 -7
  620. package/web-dist/components/grid/Grid.dependency-0.d.ts +27 -0
  621. package/web-dist/components/grid/Grid.dependency-1.d.ts +3 -0
  622. package/web-dist/components/grid/Grid.js +4 -14
  623. package/web-dist/components/grid/Grid.types-0.d.ts +6 -0
  624. package/web-dist/components/grid/index.d.ts +2 -1
  625. package/web-dist/components/grid/index.js +1 -1
  626. package/web-dist/components/grid-interactions/GridInteractions.d.ts +6 -2
  627. package/web-dist/components/grid-interactions/GridInteractions.dependency-0.d.ts +27 -0
  628. package/web-dist/components/grid-interactions/GridInteractions.dependency-1.d.ts +3 -0
  629. package/web-dist/components/grid-interactions/GridInteractions.types-0.d.ts +66 -0
  630. package/web-dist/components/grid-interactions/index.d.ts +2 -1
  631. package/web-dist/components/grid-interactions/index.js +1 -1
  632. package/web-dist/components/grid-line-overlay/GridLineOverlay.d.ts +6 -3
  633. package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-0.d.ts +27 -0
  634. package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-1.d.ts +3 -0
  635. package/web-dist/components/grid-line-overlay/GridLineOverlay.js +2 -4
  636. package/web-dist/components/grid-line-overlay/GridLineOverlay.types-0.d.ts +32 -0
  637. package/web-dist/components/grid-line-overlay/index.d.ts +2 -1
  638. package/web-dist/components/grid-line-overlay/index.js +1 -1
  639. package/web-dist/components/grid-ruler/GridRuler.d.ts +6 -3
  640. package/web-dist/components/grid-ruler/GridRuler.dependency-0.d.ts +27 -0
  641. package/web-dist/components/grid-ruler/GridRuler.dependency-1.d.ts +3 -0
  642. package/web-dist/components/grid-ruler/GridRuler.js +0 -2
  643. package/web-dist/components/grid-ruler/GridRuler.types-0.d.ts +26 -0
  644. package/web-dist/components/grid-ruler/index.d.ts +2 -1
  645. package/web-dist/components/grid-ruler/index.js +1 -1
  646. package/web-dist/components/grid-view/GridView.d.ts +6 -3
  647. package/web-dist/components/grid-view/GridView.dependency-0.d.ts +27 -0
  648. package/web-dist/components/grid-view/GridView.dependency-1.d.ts +3 -0
  649. package/web-dist/components/grid-view/GridView.js +3 -5
  650. package/web-dist/components/grid-view/GridView.types-0.d.ts +37 -0
  651. package/web-dist/components/grid-view/index.d.ts +2 -1
  652. package/web-dist/components/grid-view/index.js +1 -1
  653. package/web-dist/components/heading/Heading.d.ts +12 -3
  654. package/web-dist/components/heading/Heading.dependency-0.d.ts +27 -0
  655. package/web-dist/components/heading/Heading.dependency-1.d.ts +3 -0
  656. package/web-dist/components/heading/Heading.dependency-2.d.ts +5 -0
  657. package/web-dist/components/heading/Heading.js +2 -4
  658. package/web-dist/components/heading/Heading.types-0.d.ts +42 -0
  659. package/web-dist/components/heading/index.d.ts +2 -1
  660. package/web-dist/components/heading/index.js +1 -1
  661. package/web-dist/components/hero/Hero.d.ts +10 -2
  662. package/web-dist/components/hero/Hero.dependency-0.d.ts +27 -0
  663. package/web-dist/components/hero/Hero.dependency-1.d.ts +3 -0
  664. package/web-dist/components/hero/Hero.dependency-2.d.ts +3 -0
  665. package/web-dist/components/hero/Hero.dependency-3.d.ts +3 -0
  666. package/web-dist/components/hero/Hero.js +10 -10
  667. package/web-dist/components/hero/Hero.types-0.d.ts +35 -0
  668. package/web-dist/components/hero/index.d.ts +2 -1
  669. package/web-dist/components/hero/index.js +1 -1
  670. package/web-dist/components/icon/Icon.d.ts +6 -2
  671. package/web-dist/components/icon/Icon.dependency-0.d.ts +27 -0
  672. package/web-dist/components/icon/Icon.dependency-1.d.ts +3 -0
  673. package/web-dist/components/icon/Icon.types-0.d.ts +5 -0
  674. package/web-dist/components/icon/index.d.ts +2 -1
  675. package/web-dist/components/icon/index.js +1 -1
  676. package/web-dist/components/icon-button/IconButton.d.ts +8 -4
  677. package/web-dist/components/icon-button/IconButton.dependency-0.d.ts +27 -0
  678. package/web-dist/components/icon-button/IconButton.dependency-1.d.ts +3 -0
  679. package/web-dist/components/icon-button/IconButton.dependency-2.d.ts +3 -0
  680. package/web-dist/components/icon-button/IconButton.dependency-3.d.ts +3 -0
  681. package/web-dist/components/icon-button/IconButton.dependency-4.d.ts +3 -0
  682. package/web-dist/components/icon-button/IconButton.js +5 -9
  683. package/web-dist/components/icon-button/IconButton.types-0.d.ts +24 -0
  684. package/web-dist/components/icon-button/index.d.ts +2 -1
  685. package/web-dist/components/icon-button/index.js +1 -1
  686. package/web-dist/components/image/Image.d.ts +6 -2
  687. package/web-dist/components/image/Image.dependency-0.d.ts +27 -0
  688. package/web-dist/components/image/Image.dependency-1.d.ts +3 -0
  689. package/web-dist/components/image/Image.dependency-2.d.ts +23 -0
  690. package/web-dist/components/image/Image.js +3 -3
  691. package/web-dist/components/image/Image.types-0.d.ts +9 -0
  692. package/web-dist/components/image/index.d.ts +2 -1
  693. package/web-dist/components/image/index.js +1 -1
  694. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.d.ts +6 -2
  695. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-0.d.ts +27 -0
  696. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-1.d.ts +3 -0
  697. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.types-0.d.ts +8 -0
  698. package/web-dist/components/keyboard-avoiding-view/index.d.ts +2 -1
  699. package/web-dist/components/keyboard-avoiding-view/index.js +1 -1
  700. package/web-dist/components/list/List.d.ts +6 -6
  701. package/web-dist/components/list/List.dependency-0.d.ts +27 -0
  702. package/web-dist/components/list/List.dependency-1.d.ts +3 -0
  703. package/web-dist/components/list/List.js +7 -15
  704. package/web-dist/components/list/List.types-0.d.ts +19 -0
  705. package/web-dist/components/list/index.d.ts +2 -1
  706. package/web-dist/components/list/index.js +1 -1
  707. package/web-dist/components/list-item/ListItem.d.ts +6 -6
  708. package/web-dist/components/list-item/ListItem.js +7 -15
  709. package/web-dist/components/list-item/ListItem.types-0.d.ts +3 -0
  710. package/web-dist/components/list-item/index.d.ts +2 -1
  711. package/web-dist/components/list-item/index.js +1 -1
  712. package/web-dist/components/list-section/ListSection.d.ts +6 -6
  713. package/web-dist/components/list-section/ListSection.js +7 -15
  714. package/web-dist/components/list-section/ListSection.types-0.d.ts +1 -0
  715. package/web-dist/components/list-section/index.d.ts +2 -1
  716. package/web-dist/components/list-section/index.js +1 -1
  717. package/web-dist/components/matrix-grid/MatrixGrid.d.ts +6 -2
  718. package/web-dist/components/matrix-grid/MatrixGrid.dependency-0.d.ts +27 -0
  719. package/web-dist/components/matrix-grid/MatrixGrid.dependency-1.d.ts +3 -0
  720. package/web-dist/components/matrix-grid/MatrixGrid.dependency-2.d.ts +1 -0
  721. package/web-dist/components/matrix-grid/MatrixGrid.js +1 -1
  722. package/web-dist/components/matrix-grid/MatrixGrid.types-0.d.ts +30 -0
  723. package/web-dist/components/matrix-grid/index.d.ts +2 -1
  724. package/web-dist/components/matrix-grid/index.js +1 -1
  725. package/web-dist/components/media-card/MediaCard.d.ts +8 -6
  726. package/web-dist/components/media-card/MediaCard.js +12 -20
  727. package/web-dist/components/media-card/MediaCard.types-0.d.ts +3 -0
  728. package/web-dist/components/media-card/index.d.ts +2 -1
  729. package/web-dist/components/media-card/index.js +1 -1
  730. package/web-dist/components/media-explorer/MediaExplorer.d.ts +6 -4
  731. package/web-dist/components/media-explorer/MediaExplorer.dependency-0.d.ts +27 -0
  732. package/web-dist/components/media-explorer/MediaExplorer.dependency-1.d.ts +3 -0
  733. package/web-dist/components/media-explorer/MediaExplorer.js +5 -9
  734. package/web-dist/components/media-explorer/MediaExplorer.types-0.d.ts +75 -0
  735. package/web-dist/components/media-explorer/index.d.ts +2 -1
  736. package/web-dist/components/media-explorer/index.js +1 -1
  737. package/web-dist/components/message-bubble/MessageBubble.d.ts +10 -3
  738. package/web-dist/components/message-bubble/MessageBubble.dependency-0.d.ts +3 -0
  739. package/web-dist/components/message-bubble/MessageBubble.dependency-1.d.ts +27 -0
  740. package/web-dist/components/message-bubble/MessageBubble.dependency-2.d.ts +3 -0
  741. package/web-dist/components/message-bubble/MessageBubble.dependency-3.d.ts +3 -0
  742. package/web-dist/components/message-bubble/MessageBubble.js +6 -8
  743. package/web-dist/components/message-bubble/MessageBubble.types-0.d.ts +46 -0
  744. package/web-dist/components/message-bubble/index.d.ts +2 -1
  745. package/web-dist/components/message-bubble/index.js +1 -1
  746. package/web-dist/components/metric-card/MetricCard.d.ts +8 -6
  747. package/web-dist/components/metric-card/MetricCard.dependency-0.d.ts +27 -0
  748. package/web-dist/components/metric-card/MetricCard.dependency-1.d.ts +3 -0
  749. package/web-dist/components/metric-card/MetricCard.dependency-2.d.ts +1 -0
  750. package/web-dist/components/metric-card/MetricCard.dependency-3.d.ts +3 -0
  751. package/web-dist/components/metric-card/MetricCard.js +12 -20
  752. package/web-dist/components/metric-card/MetricCard.types-0.d.ts +22 -0
  753. package/web-dist/components/metric-card/index.d.ts +2 -1
  754. package/web-dist/components/metric-card/index.js +1 -1
  755. package/web-dist/components/missing-element/MissingElement.d.ts +11 -2
  756. package/web-dist/components/missing-element/MissingElement.dependency-0.d.ts +27 -0
  757. package/web-dist/components/missing-element/MissingElement.dependency-1.d.ts +3 -0
  758. package/web-dist/components/missing-element/MissingElement.js +3 -3
  759. package/web-dist/components/missing-element/MissingElement.types-0.d.ts +9 -0
  760. package/web-dist/components/missing-element/index.d.ts +2 -1
  761. package/web-dist/components/missing-element/index.js +1 -1
  762. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.d.ts +11 -8
  763. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-0.d.ts +27 -0
  764. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-1.d.ts +3 -0
  765. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-2.d.ts +20 -0
  766. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-3.d.ts +3 -0
  767. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-4.d.ts +3 -0
  768. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +14 -26
  769. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.types-0.d.ts +22 -0
  770. package/web-dist/components/o-auth-provider-button/index.d.ts +2 -1
  771. package/web-dist/components/o-auth-provider-button/index.js +1 -1
  772. package/web-dist/components/o-auth-provider-list/OAuthProviderList.d.ts +8 -8
  773. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-0.d.ts +27 -0
  774. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-1.d.ts +3 -0
  775. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-2.d.ts +20 -0
  776. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-3.d.ts +3 -0
  777. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-4.d.ts +3 -0
  778. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +14 -26
  779. package/web-dist/components/o-auth-provider-list/OAuthProviderList.types-0.d.ts +31 -0
  780. package/web-dist/components/o-auth-provider-list/index.d.ts +2 -1
  781. package/web-dist/components/o-auth-provider-list/index.js +1 -1
  782. package/web-dist/components/opening-book/OpeningBook.d.ts +6 -3
  783. package/web-dist/components/opening-book/OpeningBook.dependency-0.d.ts +27 -0
  784. package/web-dist/components/opening-book/OpeningBook.dependency-1.d.ts +3 -0
  785. package/web-dist/components/opening-book/OpeningBook.js +2 -4
  786. package/web-dist/components/opening-book/OpeningBook.types-0.d.ts +37 -0
  787. package/web-dist/components/opening-book/index.d.ts +2 -1
  788. package/web-dist/components/opening-book/index.js +1 -1
  789. package/web-dist/components/otp-form/OtpForm.d.ts +10 -8
  790. package/web-dist/components/otp-form/OtpForm.dependency-0.d.ts +27 -0
  791. package/web-dist/components/otp-form/OtpForm.dependency-1.d.ts +3 -0
  792. package/web-dist/components/otp-form/OtpForm.dependency-2.d.ts +45 -0
  793. package/web-dist/components/otp-form/OtpForm.dependency-3.d.ts +1 -0
  794. package/web-dist/components/otp-form/OtpForm.js +13 -25
  795. package/web-dist/components/otp-form/OtpForm.types-0.d.ts +26 -0
  796. package/web-dist/components/otp-form/index.d.ts +2 -1
  797. package/web-dist/components/otp-form/index.js +1 -1
  798. package/web-dist/components/pagination/Pagination.d.ts +6 -2
  799. package/web-dist/components/pagination/Pagination.dependency-0.d.ts +27 -0
  800. package/web-dist/components/pagination/Pagination.dependency-1.d.ts +3 -0
  801. package/web-dist/components/pagination/Pagination.js +5 -5
  802. package/web-dist/components/pagination/Pagination.types-0.d.ts +16 -0
  803. package/web-dist/components/pagination/index.d.ts +2 -1
  804. package/web-dist/components/pagination/index.js +1 -1
  805. package/web-dist/components/palette-item/PaletteItem.d.ts +10 -2
  806. package/web-dist/components/palette-item/PaletteItem.dependency-0.d.ts +27 -0
  807. package/web-dist/components/palette-item/PaletteItem.dependency-1.d.ts +3 -0
  808. package/web-dist/components/palette-item/PaletteItem.js +10 -10
  809. package/web-dist/components/palette-item/PaletteItem.types-0.d.ts +15 -0
  810. package/web-dist/components/palette-item/index.d.ts +2 -1
  811. package/web-dist/components/palette-item/index.js +1 -1
  812. package/web-dist/components/playing-card/PlayingCard.d.ts +6 -6
  813. package/web-dist/components/playing-card/PlayingCard.dependency-0.d.ts +27 -0
  814. package/web-dist/components/playing-card/PlayingCard.dependency-1.d.ts +3 -0
  815. package/web-dist/components/playing-card/PlayingCard.js +2 -10
  816. package/web-dist/components/playing-card/PlayingCard.types-0.d.ts +43 -0
  817. package/web-dist/components/playing-card/index.d.ts +2 -1
  818. package/web-dist/components/playing-card/index.js +1 -1
  819. package/web-dist/components/poker-training-table/PokerTrainingTable.d.ts +6 -6
  820. package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-0.d.ts +27 -0
  821. package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-1.d.ts +3 -0
  822. package/web-dist/components/poker-training-table/PokerTrainingTable.js +1 -9
  823. package/web-dist/components/poker-training-table/PokerTrainingTable.types-0.d.ts +95 -0
  824. package/web-dist/components/poker-training-table/index.d.ts +2 -1
  825. package/web-dist/components/poker-training-table/index.js +1 -1
  826. package/web-dist/components/popover-menu/PopoverMenu.d.ts +6 -2
  827. package/web-dist/components/popover-menu/PopoverMenu.dependency-0.d.ts +27 -0
  828. package/web-dist/components/popover-menu/PopoverMenu.dependency-1.d.ts +3 -0
  829. package/web-dist/components/popover-menu/PopoverMenu.js +4 -4
  830. package/web-dist/components/popover-menu/PopoverMenu.types-0.d.ts +28 -0
  831. package/web-dist/components/popover-menu/index.d.ts +2 -1
  832. package/web-dist/components/popover-menu/index.js +1 -1
  833. package/web-dist/components/post-card/PostCard.d.ts +10 -6
  834. package/web-dist/components/post-card/PostCard.dependency-0.d.ts +3 -0
  835. package/web-dist/components/post-card/PostCard.dependency-1.d.ts +27 -0
  836. package/web-dist/components/post-card/PostCard.dependency-2.d.ts +3 -0
  837. package/web-dist/components/post-card/PostCard.dependency-3.d.ts +1 -0
  838. package/web-dist/components/post-card/PostCard.dependency-4.d.ts +3 -0
  839. package/web-dist/components/post-card/PostCard.js +12 -20
  840. package/web-dist/components/post-card/PostCard.types-0.d.ts +63 -0
  841. package/web-dist/components/post-card/index.d.ts +2 -1
  842. package/web-dist/components/post-card/index.js +1 -1
  843. package/web-dist/components/product-card/ProductCard.d.ts +7 -6
  844. package/web-dist/components/product-card/ProductCard.dependency-0.d.ts +27 -0
  845. package/web-dist/components/product-card/ProductCard.dependency-1.d.ts +3 -0
  846. package/web-dist/components/product-card/ProductCard.js +10 -18
  847. package/web-dist/components/product-card/ProductCard.types-0.d.ts +23 -0
  848. package/web-dist/components/product-card/index.d.ts +2 -1
  849. package/web-dist/components/product-card/index.js +1 -1
  850. package/web-dist/components/progress/Progress.d.ts +8 -3
  851. package/web-dist/components/progress/Progress.dependency-0.d.ts +27 -0
  852. package/web-dist/components/progress/Progress.dependency-1.d.ts +3 -0
  853. package/web-dist/components/progress/Progress.dependency-2.d.ts +3 -0
  854. package/web-dist/components/progress/Progress.dependency-3.d.ts +3 -0
  855. package/web-dist/components/progress/Progress.js +5 -7
  856. package/web-dist/components/progress/Progress.types-0.d.ts +12 -0
  857. package/web-dist/components/progress/index.d.ts +2 -1
  858. package/web-dist/components/progress/index.js +1 -1
  859. package/web-dist/components/progress-ring/ProgressRing.d.ts +8 -3
  860. package/web-dist/components/progress-ring/ProgressRing.dependency-0.d.ts +27 -0
  861. package/web-dist/components/progress-ring/ProgressRing.dependency-1.d.ts +3 -0
  862. package/web-dist/components/progress-ring/ProgressRing.dependency-2.d.ts +3 -0
  863. package/web-dist/components/progress-ring/ProgressRing.js +3 -5
  864. package/web-dist/components/progress-ring/ProgressRing.types-0.d.ts +16 -0
  865. package/web-dist/components/progress-ring/index.d.ts +2 -1
  866. package/web-dist/components/progress-ring/index.js +1 -1
  867. package/web-dist/components/radio/Radio.d.ts +8 -3
  868. package/web-dist/components/radio/Radio.dependency-0.d.ts +27 -0
  869. package/web-dist/components/radio/Radio.dependency-1.d.ts +3 -0
  870. package/web-dist/components/radio/Radio.js +6 -8
  871. package/web-dist/components/radio/Radio.types-0.d.ts +6 -0
  872. package/web-dist/components/radio/index.d.ts +2 -1
  873. package/web-dist/components/radio/index.js +1 -1
  874. package/web-dist/components/radio-group/RadioGroup.d.ts +6 -3
  875. package/web-dist/components/radio-group/RadioGroup.dependency-0.d.ts +27 -0
  876. package/web-dist/components/radio-group/RadioGroup.dependency-1.d.ts +3 -0
  877. package/web-dist/components/radio-group/RadioGroup.dependency-2.d.ts +5 -0
  878. package/web-dist/components/radio-group/RadioGroup.js +4 -6
  879. package/web-dist/components/radio-group/RadioGroup.types-0.d.ts +33 -0
  880. package/web-dist/components/radio-group/index.d.ts +2 -1
  881. package/web-dist/components/radio-group/index.js +1 -1
  882. package/web-dist/components/rating/Rating.d.ts +4 -2
  883. package/web-dist/components/rating/Rating.dependency-0.d.ts +27 -0
  884. package/web-dist/components/rating/Rating.dependency-1.d.ts +3 -0
  885. package/web-dist/components/rating/Rating.dependency-2.d.ts +3 -0
  886. package/web-dist/components/rating/Rating.dependency-3.d.ts +3 -0
  887. package/web-dist/components/rating/Rating.js +2 -2
  888. package/web-dist/components/rating/Rating.types-0.d.ts +12 -0
  889. package/web-dist/components/rating/index.d.ts +2 -1
  890. package/web-dist/components/rating/index.js +1 -1
  891. package/web-dist/components/reader/Reader.d.ts +10 -2
  892. package/web-dist/components/reader/Reader.dependency-0.d.ts +27 -0
  893. package/web-dist/components/reader/Reader.dependency-1.d.ts +3 -0
  894. package/web-dist/components/reader/Reader.js +11 -11
  895. package/web-dist/components/reader/Reader.types-0.d.ts +56 -0
  896. package/web-dist/components/reader/index.d.ts +2 -1
  897. package/web-dist/components/reader/index.js +1 -1
  898. package/web-dist/components/scan-overlay/ScanOverlay.d.ts +12 -4
  899. package/web-dist/components/scan-overlay/ScanOverlay.dependency-0.d.ts +27 -0
  900. package/web-dist/components/scan-overlay/ScanOverlay.dependency-1.d.ts +3 -0
  901. package/web-dist/components/scan-overlay/ScanOverlay.js +12 -16
  902. package/web-dist/components/scan-overlay/ScanOverlay.types-0.d.ts +9 -0
  903. package/web-dist/components/scan-overlay/index.d.ts +2 -1
  904. package/web-dist/components/scan-overlay/index.js +1 -1
  905. package/web-dist/components/screen/Screen.d.ts +6 -7
  906. package/web-dist/components/screen/Screen.dependency-0.d.ts +27 -0
  907. package/web-dist/components/screen/Screen.dependency-1.d.ts +3 -0
  908. package/web-dist/components/screen/Screen.js +3 -13
  909. package/web-dist/components/screen/Screen.types-0.d.ts +12 -0
  910. package/web-dist/components/screen/index.d.ts +2 -1
  911. package/web-dist/components/screen/index.js +1 -1
  912. package/web-dist/components/screen-section/ScreenSection.d.ts +6 -3
  913. package/web-dist/components/screen-section/ScreenSection.dependency-0.d.ts +27 -0
  914. package/web-dist/components/screen-section/ScreenSection.dependency-1.d.ts +3 -0
  915. package/web-dist/components/screen-section/ScreenSection.js +4 -6
  916. package/web-dist/components/screen-section/ScreenSection.types-0.d.ts +10 -0
  917. package/web-dist/components/screen-section/index.d.ts +2 -1
  918. package/web-dist/components/screen-section/index.js +1 -1
  919. package/web-dist/components/scroll-view/ScrollView.d.ts +6 -7
  920. package/web-dist/components/scroll-view/ScrollView.dependency-0.d.ts +27 -0
  921. package/web-dist/components/scroll-view/ScrollView.dependency-1.d.ts +3 -0
  922. package/web-dist/components/scroll-view/ScrollView.js +4 -14
  923. package/web-dist/components/scroll-view/ScrollView.types-0.d.ts +6 -0
  924. package/web-dist/components/scroll-view/index.d.ts +2 -1
  925. package/web-dist/components/scroll-view/index.js +1 -1
  926. package/web-dist/components/search-input/SearchInput.d.ts +4 -2
  927. package/web-dist/components/search-input/SearchInput.dependency-0.d.ts +27 -0
  928. package/web-dist/components/search-input/SearchInput.dependency-1.d.ts +3 -0
  929. package/web-dist/components/search-input/SearchInput.dependency-2.d.ts +3 -0
  930. package/web-dist/components/search-input/SearchInput.js +6 -6
  931. package/web-dist/components/search-input/SearchInput.types-0.d.ts +15 -0
  932. package/web-dist/components/search-input/index.d.ts +2 -1
  933. package/web-dist/components/search-input/index.js +1 -1
  934. package/web-dist/components/section-header/SectionHeader.d.ts +10 -3
  935. package/web-dist/components/section-header/SectionHeader.dependency-0.d.ts +27 -0
  936. package/web-dist/components/section-header/SectionHeader.dependency-1.d.ts +3 -0
  937. package/web-dist/components/section-header/SectionHeader.js +4 -6
  938. package/web-dist/components/section-header/SectionHeader.types-0.d.ts +10 -0
  939. package/web-dist/components/section-header/index.d.ts +2 -1
  940. package/web-dist/components/section-header/index.js +1 -1
  941. package/web-dist/components/section-list/SectionList.d.ts +6 -6
  942. package/web-dist/components/section-list/SectionList.dependency-0.d.ts +27 -0
  943. package/web-dist/components/section-list/SectionList.dependency-1.d.ts +3 -0
  944. package/web-dist/components/section-list/SectionList.js +5 -13
  945. package/web-dist/components/section-list/SectionList.types-0.d.ts +37 -0
  946. package/web-dist/components/section-list/index.d.ts +2 -1
  947. package/web-dist/components/section-list/index.js +1 -1
  948. package/web-dist/components/select/Select.d.ts +6 -2
  949. package/web-dist/components/select/Select.dependency-0.d.ts +27 -0
  950. package/web-dist/components/select/Select.dependency-1.d.ts +3 -0
  951. package/web-dist/components/select/Select.js +8 -8
  952. package/web-dist/components/select/Select.types-0.d.ts +23 -0
  953. package/web-dist/components/select/index.d.ts +2 -1
  954. package/web-dist/components/select/index.js +1 -1
  955. package/web-dist/components/selectable-item/SelectableItem.d.ts +6 -3
  956. package/web-dist/components/selectable-item/SelectableItem.dependency-0.d.ts +27 -0
  957. package/web-dist/components/selectable-item/SelectableItem.dependency-1.d.ts +3 -0
  958. package/web-dist/components/selectable-item/SelectableItem.js +1 -3
  959. package/web-dist/components/selectable-item/SelectableItem.types-0.d.ts +30 -0
  960. package/web-dist/components/selectable-item/index.d.ts +2 -1
  961. package/web-dist/components/selectable-item/index.js +1 -1
  962. package/web-dist/components/selection-provider/SelectionProvider.d.ts +6 -3
  963. package/web-dist/components/selection-provider/SelectionProvider.js +1 -3
  964. package/web-dist/components/selection-provider/SelectionProvider.types-0.d.ts +30 -0
  965. package/web-dist/components/selection-provider/index.d.ts +2 -1
  966. package/web-dist/components/selection-provider/index.js +1 -1
  967. package/web-dist/components/sign-in-form/SignInForm.d.ts +10 -8
  968. package/web-dist/components/sign-in-form/SignInForm.dependency-0.d.ts +27 -0
  969. package/web-dist/components/sign-in-form/SignInForm.dependency-1.d.ts +3 -0
  970. package/web-dist/components/sign-in-form/SignInForm.dependency-2.d.ts +45 -0
  971. package/web-dist/components/sign-in-form/SignInForm.dependency-3.d.ts +1 -0
  972. package/web-dist/components/sign-in-form/SignInForm.js +14 -26
  973. package/web-dist/components/sign-in-form/SignInForm.types-0.d.ts +31 -0
  974. package/web-dist/components/sign-in-form/index.d.ts +2 -1
  975. package/web-dist/components/sign-in-form/index.js +1 -1
  976. package/web-dist/components/sign-up-form/SignUpForm.d.ts +10 -8
  977. package/web-dist/components/sign-up-form/SignUpForm.dependency-0.d.ts +27 -0
  978. package/web-dist/components/sign-up-form/SignUpForm.dependency-1.d.ts +3 -0
  979. package/web-dist/components/sign-up-form/SignUpForm.dependency-2.d.ts +45 -0
  980. package/web-dist/components/sign-up-form/SignUpForm.dependency-3.d.ts +1 -0
  981. package/web-dist/components/sign-up-form/SignUpForm.js +13 -25
  982. package/web-dist/components/sign-up-form/SignUpForm.types-0.d.ts +23 -0
  983. package/web-dist/components/sign-up-form/index.d.ts +2 -1
  984. package/web-dist/components/sign-up-form/index.js +1 -1
  985. package/web-dist/components/skeleton/Skeleton.d.ts +8 -5
  986. package/web-dist/components/skeleton/Skeleton.dependency-0.d.ts +27 -0
  987. package/web-dist/components/skeleton/Skeleton.dependency-1.d.ts +3 -0
  988. package/web-dist/components/skeleton/Skeleton.dependency-2.d.ts +6 -0
  989. package/web-dist/components/skeleton/Skeleton.js +15 -21
  990. package/web-dist/components/skeleton/Skeleton.types-0.d.ts +13 -0
  991. package/web-dist/components/skeleton/index.d.ts +2 -1
  992. package/web-dist/components/skeleton/index.js +1 -1
  993. package/web-dist/components/skeleton-card/SkeletonCard.d.ts +8 -5
  994. package/web-dist/components/skeleton-card/SkeletonCard.dependency-0.d.ts +27 -0
  995. package/web-dist/components/skeleton-card/SkeletonCard.dependency-1.d.ts +3 -0
  996. package/web-dist/components/skeleton-card/SkeletonCard.js +15 -21
  997. package/web-dist/components/skeleton-card/SkeletonCard.types-0.d.ts +8 -0
  998. package/web-dist/components/skeleton-card/index.d.ts +2 -1
  999. package/web-dist/components/skeleton-card/index.js +1 -1
  1000. package/web-dist/components/skeleton-list/SkeletonList.d.ts +10 -5
  1001. package/web-dist/components/skeleton-list/SkeletonList.dependency-0.d.ts +27 -0
  1002. package/web-dist/components/skeleton-list/SkeletonList.dependency-1.d.ts +3 -0
  1003. package/web-dist/components/skeleton-list/SkeletonList.js +14 -20
  1004. package/web-dist/components/skeleton-list/SkeletonList.types-0.d.ts +12 -0
  1005. package/web-dist/components/skeleton-list/index.d.ts +2 -1
  1006. package/web-dist/components/skeleton-list/index.js +1 -1
  1007. package/web-dist/components/skeleton-text/SkeletonText.d.ts +10 -5
  1008. package/web-dist/components/skeleton-text/SkeletonText.dependency-0.d.ts +27 -0
  1009. package/web-dist/components/skeleton-text/SkeletonText.dependency-1.d.ts +3 -0
  1010. package/web-dist/components/skeleton-text/SkeletonText.dependency-2.d.ts +6 -0
  1011. package/web-dist/components/skeleton-text/SkeletonText.js +14 -20
  1012. package/web-dist/components/skeleton-text/SkeletonText.types-0.d.ts +13 -0
  1013. package/web-dist/components/skeleton-text/index.d.ts +2 -1
  1014. package/web-dist/components/skeleton-text/index.js +1 -1
  1015. package/web-dist/components/spatial-grid/SpatialGrid.d.ts +6 -2
  1016. package/web-dist/components/spatial-grid/SpatialGrid.dependency-0.d.ts +27 -0
  1017. package/web-dist/components/spatial-grid/SpatialGrid.dependency-1.d.ts +3 -0
  1018. package/web-dist/components/spatial-grid/SpatialGrid.js +1 -1
  1019. package/web-dist/components/spatial-grid/SpatialGrid.types-0.d.ts +45 -0
  1020. package/web-dist/components/spatial-grid/index.d.ts +2 -1
  1021. package/web-dist/components/spatial-grid/index.js +1 -1
  1022. package/web-dist/components/surface/Surface.d.ts +6 -2
  1023. package/web-dist/components/surface/Surface.dependency-0.d.ts +27 -0
  1024. package/web-dist/components/surface/Surface.dependency-1.d.ts +3 -0
  1025. package/web-dist/components/surface/Surface.js +3 -3
  1026. package/web-dist/components/surface/Surface.types-0.d.ts +6 -0
  1027. package/web-dist/components/surface/index.d.ts +2 -1
  1028. package/web-dist/components/surface/index.js +1 -1
  1029. package/web-dist/components/switch/Switch.d.ts +6 -2
  1030. package/web-dist/components/switch/Switch.dependency-0.d.ts +27 -0
  1031. package/web-dist/components/switch/Switch.dependency-1.d.ts +3 -0
  1032. package/web-dist/components/switch/Switch.js +2 -2
  1033. package/web-dist/components/switch/Switch.types-0.d.ts +6 -0
  1034. package/web-dist/components/switch/index.d.ts +2 -1
  1035. package/web-dist/components/switch/index.js +1 -1
  1036. package/web-dist/components/tab/Tab.d.ts +6 -5
  1037. package/web-dist/components/tab/Tab.dependency-0.d.ts +27 -0
  1038. package/web-dist/components/tab/Tab.dependency-1.d.ts +3 -0
  1039. package/web-dist/components/tab/Tab.js +4 -10
  1040. package/web-dist/components/tab/Tab.types-0.d.ts +7 -0
  1041. package/web-dist/components/tab/index.d.ts +2 -1
  1042. package/web-dist/components/tab/index.js +1 -1
  1043. package/web-dist/components/tab-list/TabList.d.ts +4 -5
  1044. package/web-dist/components/tab-list/TabList.dependency-0.d.ts +27 -0
  1045. package/web-dist/components/tab-list/TabList.dependency-1.d.ts +3 -0
  1046. package/web-dist/components/tab-list/TabList.js +4 -10
  1047. package/web-dist/components/tab-list/TabList.types-0.d.ts +6 -0
  1048. package/web-dist/components/tab-list/index.d.ts +2 -1
  1049. package/web-dist/components/tab-list/index.js +1 -1
  1050. package/web-dist/components/tab-panel/TabPanel.d.ts +4 -5
  1051. package/web-dist/components/tab-panel/TabPanel.dependency-0.d.ts +27 -0
  1052. package/web-dist/components/tab-panel/TabPanel.dependency-1.d.ts +3 -0
  1053. package/web-dist/components/tab-panel/TabPanel.js +4 -10
  1054. package/web-dist/components/tab-panel/TabPanel.types-0.d.ts +6 -0
  1055. package/web-dist/components/tab-panel/index.d.ts +2 -1
  1056. package/web-dist/components/tab-panel/index.js +1 -1
  1057. package/web-dist/components/tabletop-table/TabletopTable.d.ts +6 -6
  1058. package/web-dist/components/tabletop-table/TabletopTable.dependency-0.d.ts +27 -0
  1059. package/web-dist/components/tabletop-table/TabletopTable.dependency-1.d.ts +3 -0
  1060. package/web-dist/components/tabletop-table/TabletopTable.js +1 -9
  1061. package/web-dist/components/tabletop-table/TabletopTable.types-0.d.ts +66 -0
  1062. package/web-dist/components/tabletop-table/index.d.ts +2 -1
  1063. package/web-dist/components/tabletop-table/index.js +1 -1
  1064. package/web-dist/components/tabs/Tabs.d.ts +4 -5
  1065. package/web-dist/components/tabs/Tabs.dependency-0.d.ts +27 -0
  1066. package/web-dist/components/tabs/Tabs.dependency-1.d.ts +3 -0
  1067. package/web-dist/components/tabs/Tabs.js +2 -8
  1068. package/web-dist/components/tabs/Tabs.types-0.d.ts +6 -0
  1069. package/web-dist/components/tabs/index.d.ts +2 -1
  1070. package/web-dist/components/tabs/index.js +1 -1
  1071. package/web-dist/components/text/Text.d.ts +12 -3
  1072. package/web-dist/components/text/Text.dependency-0.d.ts +27 -0
  1073. package/web-dist/components/text/Text.dependency-1.d.ts +3 -0
  1074. package/web-dist/components/text/Text.dependency-2.d.ts +5 -0
  1075. package/web-dist/components/text/Text.js +0 -2
  1076. package/web-dist/components/text/Text.types-0.d.ts +40 -0
  1077. package/web-dist/components/text/index.d.ts +2 -1
  1078. package/web-dist/components/text/index.js +1 -1
  1079. package/web-dist/components/text-input/TextInput.d.ts +11 -2
  1080. package/web-dist/components/text-input/TextInput.js +6 -6
  1081. package/web-dist/components/text-input/TextInput.types-0.d.ts +9 -0
  1082. package/web-dist/components/text-input/index.d.ts +2 -1
  1083. package/web-dist/components/text-input/index.js +1 -1
  1084. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.d.ts +4 -2
  1085. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-0.d.ts +27 -0
  1086. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-1.d.ts +3 -0
  1087. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-2.d.ts +24 -0
  1088. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-3.d.ts +3 -0
  1089. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-4.d.ts +3 -0
  1090. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-5.d.ts +3 -0
  1091. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +5 -5
  1092. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.types-0.d.ts +5 -0
  1093. package/web-dist/components/theme-mode-toggle/index.d.ts +2 -1
  1094. package/web-dist/components/theme-mode-toggle/index.js +1 -1
  1095. package/web-dist/components/tile-grid/TileGrid.d.ts +6 -3
  1096. package/web-dist/components/tile-grid/TileGrid.dependency-0.d.ts +27 -0
  1097. package/web-dist/components/tile-grid/TileGrid.dependency-1.d.ts +3 -0
  1098. package/web-dist/components/tile-grid/TileGrid.js +1 -3
  1099. package/web-dist/components/tile-grid/TileGrid.types-0.d.ts +32 -0
  1100. package/web-dist/components/tile-grid/index.d.ts +2 -1
  1101. package/web-dist/components/tile-grid/index.js +1 -1
  1102. package/web-dist/components/time-grid/TimeGrid.d.ts +6 -2
  1103. package/web-dist/components/time-grid/TimeGrid.dependency-0.d.ts +27 -0
  1104. package/web-dist/components/time-grid/TimeGrid.dependency-1.d.ts +3 -0
  1105. package/web-dist/components/time-grid/TimeGrid.js +1 -1
  1106. package/web-dist/components/time-grid/TimeGrid.types-0.d.ts +34 -0
  1107. package/web-dist/components/time-grid/index.d.ts +2 -1
  1108. package/web-dist/components/time-grid/index.js +1 -1
  1109. package/web-dist/components/time-picker/TimePicker.d.ts +6 -2
  1110. package/web-dist/components/time-picker/TimePicker.dependency-0.d.ts +27 -0
  1111. package/web-dist/components/time-picker/TimePicker.dependency-1.d.ts +3 -0
  1112. package/web-dist/components/time-picker/TimePicker.js +9 -9
  1113. package/web-dist/components/time-picker/TimePicker.types-0.d.ts +21 -0
  1114. package/web-dist/components/time-picker/index.d.ts +2 -1
  1115. package/web-dist/components/time-picker/index.js +1 -1
  1116. package/web-dist/components/timeline/Timeline.d.ts +10 -2
  1117. package/web-dist/components/timeline/Timeline.dependency-0.d.ts +27 -0
  1118. package/web-dist/components/timeline/Timeline.dependency-1.d.ts +3 -0
  1119. package/web-dist/components/timeline/Timeline.dependency-2.d.ts +9 -0
  1120. package/web-dist/components/timeline/Timeline.dependency-3.d.ts +23 -0
  1121. package/web-dist/components/timeline/Timeline.dependency-4.d.ts +3 -0
  1122. package/web-dist/components/timeline/Timeline.js +30 -11
  1123. package/web-dist/components/timeline/Timeline.types-0.d.ts +26 -0
  1124. package/web-dist/components/timeline/index.d.ts +2 -1
  1125. package/web-dist/components/timeline/index.js +1 -1
  1126. package/web-dist/components/toast/Toast.d.ts +6 -3
  1127. package/web-dist/components/toast/Toast.dependency-0.d.ts +27 -0
  1128. package/web-dist/components/toast/Toast.dependency-1.d.ts +3 -0
  1129. package/web-dist/components/toast/Toast.js +6 -8
  1130. package/web-dist/components/toast/Toast.types-0.d.ts +6 -0
  1131. package/web-dist/components/toast/index.d.ts +2 -1
  1132. package/web-dist/components/toast/index.js +1 -1
  1133. package/web-dist/components/toast-provider/ToastProvider.d.ts +6 -3
  1134. package/web-dist/components/toast-provider/ToastProvider.js +4 -6
  1135. package/web-dist/components/toast-provider/ToastProvider.types-0.d.ts +3 -0
  1136. package/web-dist/components/toast-provider/index.d.ts +2 -1
  1137. package/web-dist/components/toast-provider/index.js +1 -1
  1138. package/web-dist/components/toolbar/Toolbar.d.ts +4 -2
  1139. package/web-dist/components/toolbar/Toolbar.dependency-0.d.ts +27 -0
  1140. package/web-dist/components/toolbar/Toolbar.dependency-1.d.ts +3 -0
  1141. package/web-dist/components/toolbar/Toolbar.js +10 -10
  1142. package/web-dist/components/toolbar/Toolbar.types-0.d.ts +9 -0
  1143. package/web-dist/components/toolbar/index.d.ts +2 -1
  1144. package/web-dist/components/toolbar/index.js +1 -1
  1145. package/web-dist/components/tree-item/TreeItem.d.ts +4 -3
  1146. package/web-dist/components/tree-item/TreeItem.js +8 -57
  1147. package/web-dist/components/tree-item/TreeItem.types-0.d.ts +22 -0
  1148. package/web-dist/components/tree-item/index.d.ts +2 -1
  1149. package/web-dist/components/tree-item/index.js +1 -1
  1150. package/web-dist/components/tree-view/TreeView.d.ts +6 -1
  1151. package/web-dist/components/tree-view/TreeView.js +5 -3
  1152. package/web-dist/components/tree-view/index.d.ts +2 -1
  1153. package/web-dist/components/tree-view/index.js +1 -1
  1154. package/web-dist/components/uploader/Uploader.d.ts +6 -2
  1155. package/web-dist/components/uploader/Uploader.dependency-0.d.ts +27 -0
  1156. package/web-dist/components/uploader/Uploader.dependency-1.d.ts +3 -0
  1157. package/web-dist/components/uploader/Uploader.dependency-2.d.ts +15 -0
  1158. package/web-dist/components/uploader/Uploader.js +14 -14
  1159. package/web-dist/components/uploader/Uploader.types-0.d.ts +79 -0
  1160. package/web-dist/components/uploader/index.d.ts +2 -1
  1161. package/web-dist/components/uploader/index.js +1 -1
  1162. package/web-dist/components/view/View.d.ts +6 -7
  1163. package/web-dist/components/view/View.dependency-0.d.ts +27 -0
  1164. package/web-dist/components/view/View.dependency-1.d.ts +3 -0
  1165. package/web-dist/components/view/View.js +3 -13
  1166. package/web-dist/components/view/View.types-0.d.ts +6 -0
  1167. package/web-dist/components/view/index.d.ts +2 -1
  1168. package/web-dist/components/view/index.js +1 -1
  1169. package/web-dist/manifest.json +1147 -675
  1170. package/web-dist/runtime/ZoraProvider.js +3 -3
  1171. package/web-dist/chunks/Accordion-52fg6h9t.js +0 -7
  1172. /package/web-dist/chunks/{Accordion-kpk964z0.js → Accordion-a8k3cvj0.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"createGraphRuntime.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAoC,MAAM,WAAW,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAA4B,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAm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,EAAE,CAAC,CAAC;IAC3D,IAAI,IAAI,KAAK,eAAe;QAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9D,IAAI,IAAI,KAAK,OAAO;QAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3D,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IACxE,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAED,+EAA+E;AAC/E,SAAS,iBAAiB,CAAC,EAAQ;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED,8EAA8E;AAC9E,SAAS,cAAc,CAAC,KAAwB;IAC9C,KAAK,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC;IACnC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzB,KAAK,CAAC,YAAY,EAAE,CAAC;IACrB,KAAK,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IACpC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE;QAAE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,oBAAoB,EAAE,CAAC","sourcesContent":["import type { SelectionIntent } from '@ankhorage/utility/selection';\nimport cytoscape, { type Core, type CytoscapeOptions } from 'cytoscape';\n\nimport type {\n GraphViewCallbacks,\n GraphViewElementEventType,\n GraphViewFitOptions,\n GraphViewRenderedNode,\n GraphViewSize,\n GraphViewStyleRule,\n} from '../../../../../types/graph-view';\nimport type { GraphRuntimeUpdate } from '../../../../../types/graphViewRuntime';\nimport { bindGraphEvents } from './bindGraphEvents';\nimport { compactGraphSpacing } from './compactGraphSpacing';\nimport { createGraphController } from './createGraphController';\nimport { createGraphLoopSizer } from './createGraphLoopSizer';\nimport { createGraphResizeObserver, type GraphResizeObserver } from './createGraphResizeObserver';\nimport { getGraphGeometryKey } from './getGraphGeometryKey';\nimport { getGraphTopologyKey } from './getGraphTopologyKey';\nimport { hasGraphLayoutChanged } from './hasGraphLayoutChanged';\nimport { placeAddedGraphNodes } from './placeAddedGraphNodes';\nimport { readGraphRenderedNodes } from './readGraphRenderedNodes';\nimport { registerGraphLayouts } from './registerGraphLayouts';\nimport { runGraphLayout } from './runGraphLayout';\nimport { scheduleGraphFrame } from './scheduleGraphFrame';\nimport { shouldFitGraphAfterLayout } from './shouldFitGraphAfterLayout';\nimport { sizeGraphNodesToLabels } from './sizeGraphNodesToLabels';\nimport { syncGraphElements } from './syncGraphElements';\n\ntype GraphContainer = CytoscapeOptions['container'];\ntype RenderedNodeListener = (nodes: readonly GraphViewRenderedNode[]) => void;\n\nexport interface GraphRuntime {\n destroy(): void;\n handleOverlayNodeEvent(\n id: string,\n type: GraphViewElementEventType,\n selectionIntent?: SelectionIntent,\n ): void;\n setNodeSize(id: string, size: GraphViewSize): void;\n setSelectedNodeIds(nodeIds: readonly string[] | undefined): void;\n subscribeRenderedNodes(listener: RenderedNodeListener): () => void;\n update(input: GraphRuntimeUpdate): void;\n}\n\ninterface GraphRuntimeState {\n readonly fitRequestRef: { current: GraphViewFitOptions | null };\n readonly optimizedSpacingRef: { current: number | null };\n readonly callbacksRef: { current: GraphViewCallbacks };\n readonly controller: ReturnType<typeof createGraphController>['controller'];\n readonly viewport: ReturnType<typeof createGraphController>;\n readonly cy: Core;\n readonly fitPaddingRef: { current: number };\n readonly generationRef: { current: number };\n readonly geometryRef: { current: string | null };\n readonly hoveredNodeIds: Set<string>;\n readonly initialLayoutScheduledRef: { current: boolean };\n readonly latestUpdateRef: { current: GraphRuntimeUpdate | null };\n readonly layoutRef: { current: ReturnType<typeof runGraphLayout> | null };\n readonly layoutRunningRef: { current: boolean };\n readonly nodeSizes: Map<string, GraphViewSize>;\n readonly labelSizedNodeIds: Set<string>;\n readonly loopSizer: ReturnType<typeof createGraphLoopSizer>;\n readonly pendingInitialFitRef: { current: boolean };\n readonly readyRef: { current: boolean };\n readonly settledLayoutRef: { current: GraphRuntimeUpdate['layout'] | null };\n readonly settledTopologyRef: { current: string | null };\n readonly relayoutScheduledRef: { current: boolean };\n readonly renderedNodeListeners: Set<RenderedNodeListener>;\n readonly resizeObserver: GraphResizeObserver | null;\n readonly unbindEvents: () => void;\n}\n\n/*** Create one Cytoscape runtime that exclusively owns layout, fit, resize, and disposal. */\nexport function createGraphRuntime(\n container: GraphContainer,\n callbacksRef: { current: GraphViewCallbacks },\n readLatestPointerDown: (event: unknown) => unknown = () => null,\n): GraphRuntime {\n const cy = cytoscape({\n container,\n elements: [],\n minZoom: 0.05,\n maxZoom: 2,\n selectionType: 'additive',\n userPanningEnabled: true,\n });\n const state = createRuntimeState(cy, container, callbacksRef, readLatestPointerDown);\n\n return {\n destroy: () => destroyRuntime(state),\n handleOverlayNodeEvent: (id, type, selectionIntent) =>\n handleOverlayNodeEvent(state, id, type, selectionIntent),\n setNodeSize: (id, size) => setNodeSize(state, id, size),\n setSelectedNodeIds: (nodeIds) => setSelectedNodeIds(state, nodeIds),\n subscribeRenderedNodes: (listener) => subscribeRenderedNodes(state, listener),\n update: (input) => updateRuntime(state, input),\n };\n}\n\n/*** Build the mutable state shared by the single graph-runtime owner. */\nfunction createRuntimeState(\n cy: Core,\n container: GraphContainer,\n callbacksRef: { current: GraphViewCallbacks },\n readLatestPointerDown: (event: unknown) => unknown,\n): GraphRuntimeState {\n const fitPaddingRef = { current: 50 };\n const viewport = createGraphController(cy, fitPaddingRef, (options) =>\n requestOptimizedFit(state, options),\n );\n const { controller } = viewport;\n const layoutRunningRef = { current: false };\n const readyRef = { current: false };\n const renderedNodeListeners = new Set<RenderedNodeListener>();\n const stateBase = {\n fitRequestRef: { current: null as GraphViewFitOptions | null },\n optimizedSpacingRef: { current: null as number | null },\n callbacksRef,\n controller,\n viewport,\n cy,\n fitPaddingRef,\n generationRef: { current: 0 },\n geometryRef: { current: null as string | null },\n hoveredNodeIds: new Set<string>(),\n initialLayoutScheduledRef: { current: false },\n latestUpdateRef: { current: null as GraphRuntimeUpdate | null },\n layoutRef: { current: null as ReturnType<typeof runGraphLayout> | null },\n layoutRunningRef,\n nodeSizes: new Map<string, GraphViewSize>(),\n labelSizedNodeIds: new Set<string>(),\n loopSizer: createGraphLoopSizer(cy),\n pendingInitialFitRef: { current: false },\n readyRef,\n settledLayoutRef: { current: null as GraphRuntimeUpdate['layout'] | null },\n settledTopologyRef: { current: null as string | null },\n relayoutScheduledRef: { current: false },\n renderedNodeListeners,\n };\n const unbindEvents = bindGraphEvents(\n cy,\n callbacksRef,\n controller,\n () => emitRenderedNodes(stateBase),\n readLatestPointerDown,\n );\n const resizeObserver = createGraphResizeObserver({\n container,\n cy,\n beginViewportResize: () => viewport.beginResize(),\n settleViewport: (fit) => viewport.settle(fit),\n layoutRunningRef,\n pendingInitialFitRef: stateBase.pendingInitialFitRef,\n onViewportSettled: (completedPendingInitialFit) => {\n emitRenderedNodes(stateBase);\n if (!completedPendingInitialFit || readyRef.current) return;\n readyRef.current = true;\n callbacksRef.current.onReady?.(controller);\n callbacksRef.current.onLayoutComplete?.(controller);\n },\n readyRef,\n });\n\n const state = { ...stateBase, resizeObserver, unbindEvents };\n return state;\n}\n\n/***\n * Reconcile presentation in place and relayout only when graph geometry or layout policy changes.\n * Batch reconciliation and skip layout for presentation-only updates.\n */\nfunction updateRuntime(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n if (state.cy.destroyed()) return;\n const last = state.latestUpdateRef.current;\n const acceptsSpacing =\n state.optimizedSpacingRef.current !== null &&\n state.optimizedSpacingRef.current === input.spacingFactor;\n const previous = acceptsSpacing && last ? { ...last, spacingFactor: input.spacingFactor } : last;\n if (acceptsSpacing) state.optimizedSpacingRef.current = null;\n state.latestUpdateRef.current = input;\n state.fitPaddingRef.current = input.fitPadding ?? 50;\n state.viewport.configure(input);\n const preservesTopology = shouldPreserveTopology(state, previous, input);\n const retainedNodeIds = getRetainedNodeIds(previous, input, preservesTopology);\n const retainedGeometry =\n retainedNodeIds === null ? null : getGraphGeometryKey(state.cy, retainedNodeIds);\n state.cy.batch(() => {\n if (previous?.nodes !== input.nodes || previous.edges !== input.edges) {\n syncGraphElements(state.cy, input.nodes, input.edges);\n if (preservesTopology) placeAddedGraphNodes(state.cy, previous?.nodes ?? [], input.nodes);\n }\n if (\n previous?.styleRules !== input.styleRules ||\n previous?.richNodeRendering !== input.richNodeRendering\n ) {\n state.loopSizer.reset();\n applyGraphStyles(state.cy, input.styleRules, input.richNodeRendering);\n }\n });\n sizeGraphNodesToLabels(\n state.cy,\n state.labelSizedNodeIds,\n input.sizeNodesToLabels === true && !input.richNodeRendering,\n );\n applyKnownNodeSizes(state);\n state.loopSizer.update();\n const geometry = getGraphGeometryKey(state.cy);\n // Keep native double-press targets stable for paint-only class changes. A class that changes\n // measured node dimensions remains a geometry change and must relayout.\n const geometryChanged =\n retainedGeometry === null\n ? geometry !== state.geometryRef.current\n : retainedGeometry !== getGraphGeometryKey(state.cy, retainedNodeIds ?? undefined);\n const relayout = hasGraphLayoutChanged(previous, input, preservesTopology) || geometryChanged;\n state.geometryRef.current = geometry;\n if (!relayout) {\n if (\n previous?.zoomMode !== input.zoomMode ||\n previous?.fitPadding !== input.fitPadding ||\n previous?.minZoom !== input.minZoom ||\n previous?.maxZoom !== input.maxZoom ||\n previous?.minReadableLabelSize !== input.minReadableLabelSize ||\n previous?.maxFitLabelSize !== input.maxFitLabelSize\n ) {\n state.viewport.settle(previous?.zoomMode !== input.zoomMode);\n }\n emitRenderedNodes(state);\n return;\n }\n stopCurrentLayout(state);\n state.fitRequestRef.current = null;\n state.optimizedSpacingRef.current = null;\n startCurrentLayout(state, input);\n}\n\n/*** Preserve only opt-in topology updates after the initial layout and fit have settled. */\nfunction shouldPreserveTopology(\n state: GraphRuntimeState,\n previous: GraphRuntimeUpdate | null,\n input: GraphRuntimeUpdate,\n): boolean {\n return (\n previous !== null &&\n state.readyRef.current &&\n !state.pendingInitialFitRef.current &&\n input.topologyUpdatePolicy === 'preserve-positions'\n );\n}\n\n/*** Limit stable-update geometry checks to nodes that existed before reconciliation. */\nfunction getRetainedNodeIds(\n previous: GraphRuntimeUpdate | null,\n input: GraphRuntimeUpdate,\n preservesTopology: boolean,\n): ReadonlySet<string> | null {\n if (!preservesTopology || previous === null) return null;\n const nextNodeIds = new Set(input.nodes.map((node) => node.id));\n return new Set(previous.nodes.map((node) => node.id).filter((id) => nextNodeIds.has(id)));\n}\n\n/*** Start a generation-safe layout whose completion is the only normal automatic fit trigger. */\nfunction startCurrentLayout(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n if (!state.readyRef.current) {\n scheduleInitialLayout(state);\n return;\n }\n startGraphLayout(state, input);\n}\n\n/*** Coalesce progressive pre-ready topology updates before the initial layout can complete. */\nfunction scheduleInitialLayout(state: GraphRuntimeState) {\n if (state.initialLayoutScheduledRef.current) return;\n state.initialLayoutScheduledRef.current = true;\n scheduleGraphFrame(() => {\n scheduleGraphFrame(() => {\n state.initialLayoutScheduledRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null || state.cy.destroyed() || state.readyRef.current) return;\n startGraphLayout(state, input);\n });\n });\n}\n\n/*** Start one layout generation after its input has reached the runtime owner. */\nfunction startGraphLayout(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n state.pendingInitialFitRef.current = false;\n const generation = state.generationRef.current + 1;\n state.generationRef.current = generation;\n state.layoutRunningRef.current = true;\n state.cy.resize();\n state.layoutRef.current = runGraphLayout(\n state.cy,\n {\n layout: input.layout ?? 'concentric',\n layoutOptions: input.layoutOptions,\n spacingFactor: input.spacingFactor ?? 1,\n },\n () => completeCurrentLayout(state, generation),\n );\n}\n\n/***\n * Settle only the latest layout generation and fit once from node bounds.\n * Discard stale completions and avoid repeated automatic fits.\n */\nfunction completeCurrentLayout(state: GraphRuntimeState, generation: number) {\n scheduleGraphFrame(() => {\n if (state.cy.destroyed() || generation !== state.generationRef.current) return;\n state.loopSizer.update();\n state.layoutRef.current = null;\n state.cy.resize();\n state.layoutRunningRef.current = false;\n state.resizeObserver?.flushAfterLayout();\n if (!hasUsableViewport(state.cy)) {\n if (!state.readyRef.current) state.pendingInitialFitRef.current = true;\n return;\n }\n state.pendingInitialFitRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null) return;\n const topology = getGraphTopologyKey(input.nodes, input.edges);\n const shouldFit = shouldFitGraphAfterLayout(\n state.readyRef.current,\n topology !== state.settledTopologyRef.current,\n input.layout !== state.settledLayoutRef.current,\n );\n state.viewport.settle(shouldFit);\n state.settledLayoutRef.current = input.layout;\n state.settledTopologyRef.current = topology;\n const fitRequest = state.fitRequestRef.current;\n state.fitRequestRef.current = null;\n if (fitRequest) requestOptimizedFit(state, fitRequest);\n emitRenderedNodes(state);\n\n if (!state.readyRef.current) {\n state.readyRef.current = true;\n state.callbacksRef.current.onReady?.(state.controller);\n }\n state.callbacksRef.current.onLayoutComplete?.(state.controller);\n });\n}\n\n/***\n * Handle explicit readable-fit intent in the runtime owner, never from zoom or React effects.\n * Bounded spacing optimization preserves the settled algorithm instead of repeatedly running it.\n */\nfunction requestOptimizedFit(state: GraphRuntimeState, options: GraphViewFitOptions) {\n if (state.cy.destroyed()) return;\n if (state.layoutRunningRef.current) {\n state.fitRequestRef.current = options;\n return;\n }\n const input = state.latestUpdateRef.current;\n if (!input) return;\n const previous = state.optimizedSpacingRef.current ?? input.spacingFactor ?? 1;\n const spacing = compactGraphSpacing(state.cy, previous, {\n fitPadding: options.padding ?? state.fitPaddingRef.current,\n maxFitZoom: state.viewport.getFitZoomLimit(),\n minReadableZoom: state.viewport.getReadableZoomTarget(),\n });\n state.geometryRef.current = getGraphGeometryKey(state.cy);\n state.loopSizer.update();\n state.viewport.settle(false);\n state.controller.fit({ ...options, optimizeSpacing: false });\n if (spacing !== previous) {\n state.optimizedSpacingRef.current = spacing;\n state.callbacksRef.current.onSpacingFactorChange?.(spacing);\n }\n emitRenderedNodes(state);\n}\n\n/*** Stop the current layout and invalidate every stale completion callback. */\nfunction stopCurrentLayout(state: GraphRuntimeState) {\n state.generationRef.current += 1;\n state.layoutRunningRef.current = false;\n state.layoutRef.current?.stop();\n state.layoutRef.current = null;\n}\n\n/*** Apply consumer styles and hide native node paint only when React rich nodes are active. */\nfunction applyGraphStyles(\n cy: Core,\n rules: readonly GraphViewStyleRule[] | undefined,\n richNodeRendering: boolean,\n) {\n const styles = [...(rules ?? [])];\n if (richNodeRendering) {\n styles.push({\n selector: 'node',\n style: {\n 'background-opacity': 0,\n 'border-width': 0,\n label: '',\n 'overlay-opacity': 0,\n },\n });\n }\n if (styles.length > 0) cy.style(styles).update();\n}\n\n/***\n * Synchronize controlled selection without rerunning layout.\n * Selection updates must not trigger graph reconstruction or layout.\n */\nfunction setSelectedNodeIds(state: GraphRuntimeState, nodeIds: readonly string[] | undefined) {\n if (state.cy.destroyed() || nodeIds === undefined) return;\n const selectedIds = new Set(nodeIds);\n state.cy.nodes().forEach((node) => {\n if (selectedIds.has(node.id())) node.select();\n else node.unselect();\n });\n emitRenderedNodes(state);\n}\n\n/***\n * Persist one rich-node size and schedule at most one relayout for changed geometry.\n * Ignore unchanged measurements before scheduling layout work.\n */\nfunction setNodeSize(state: GraphRuntimeState, id: string, size: GraphViewSize) {\n const previous = state.nodeSizes.get(id);\n if (previous?.width === size.width && previous.height === size.height) return;\n state.nodeSizes.set(id, size);\n applyNodeSize(state.cy, id, size);\n scheduleMeasuredNodeRelayout(state);\n}\n\n/*** Apply every known rich-node size after Cytoscape elements are replaced. */\nfunction applyKnownNodeSizes(state: GraphRuntimeState) {\n for (const [id, size] of state.nodeSizes) applyNodeSize(state.cy, id, size);\n}\n\n/*** Apply one measured model-space size as a Cytoscape per-node style bypass. */\nfunction applyNodeSize(cy: Core, id: string, size: GraphViewSize) {\n const node = cy.getElementById(id);\n if (node.empty()) return;\n node.style({ height: size.height, width: size.width });\n}\n\n/***\n * Coalesce DOM measurements into one follow-up layout generation.\n * Keep one scheduled layout per frame instead of one per measured node.\n */\nfunction scheduleMeasuredNodeRelayout(state: GraphRuntimeState) {\n if (state.relayoutScheduledRef.current) return;\n state.relayoutScheduledRef.current = true;\n scheduleGraphFrame(() => {\n state.relayoutScheduledRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null || state.cy.destroyed()) return;\n stopCurrentLayout(state);\n startCurrentLayout(state, input);\n });\n}\n\n/*** Subscribe one React overlay to rendered node state without exposing the Cytoscape core. */\nfunction subscribeRenderedNodes(state: GraphRuntimeState, listener: RenderedNodeListener) {\n state.renderedNodeListeners.add(listener);\n listener(readGraphRenderedNodes(state.cy, state.hoveredNodeIds));\n return () => {\n state.renderedNodeListeners.delete(listener);\n };\n}\n\n/***\n * Publish current rendered node positions only to active rich-node subscribers.\n * Skip snapshot preparation when no overlay is subscribed.\n */\nfunction emitRenderedNodes(\n state: Pick<GraphRuntimeState, 'cy' | 'hoveredNodeIds' | 'renderedNodeListeners'>,\n) {\n if (state.renderedNodeListeners.size === 0) return;\n const nodes = readGraphRenderedNodes(state.cy, state.hoveredNodeIds);\n for (const listener of state.renderedNodeListeners) listener(nodes);\n}\n\n/*** Translate one rich-overlay event back into normal graph selection and callbacks. */\nfunction handleOverlayNodeEvent(\n state: GraphRuntimeState,\n id: string,\n type: GraphViewElementEventType,\n selectionIntent?: SelectionIntent,\n) {\n if (type === 'pointer-enter') state.hoveredNodeIds.add(id);\n if (type === 'pointer-leave') state.hoveredNodeIds.delete(id);\n if (type === 'press') state.cy.getElementById(id).select();\n state.callbacksRef.current.onNodeEvent?.({ id, type, selectionIntent });\n emitRenderedNodes(state);\n}\n\n/*** Return whether Cytoscape currently has dimensions suitable for fitting. */\nfunction hasUsableViewport(cy: Core): boolean {\n return cy.width() > 0 && cy.height() > 0;\n}\n\n/*** Dispose all runtime resources in the reverse order they were acquired. */\nfunction destroyRuntime(state: GraphRuntimeState) {\n state.resizeObserver?.disconnect();\n stopCurrentLayout(state);\n state.unbindEvents();\n state.renderedNodeListeners.clear();\n if (!state.cy.destroyed()) state.cy.destroy();\n}\n\nregisterGraphLayouts();\n"]}
1
+ {"version":3,"file":"createGraphRuntime.js","sourceRoot":"","sources":["../../../../../../src/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAoC,MAAM,WAAW,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAA4B,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AA+CxD,6FAA6F;AAC7F,MAAM,UAAU,kBAAkB,CAChC,SAAyB,EACzB,YA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wF;AACxF,SAAS,sBAAsB,CAC7B,KAAwB,EACxB,EAAU,EACV,IAA+B,EAC/B,eAAiC;IAEjC,IAAI,IAAI,KAAK,eAAe;QAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC3D,IAAI,IAAI,KAAK,eAAe;QAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9D,IAAI,IAAI,KAAK,OAAO;QAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3D,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IACxE,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAED,+EAA+E;AAC/E,SAAS,iBAAiB,CAAC,EAAQ;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED,8EAA8E;AAC9E,SAAS,cAAc,CAAC,KAAwB;IAC9C,KAAK,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC;IACnC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzB,KAAK,CAAC,YAAY,EAAE,CAAC;IACrB,KAAK,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IACpC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE;QAAE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,oBAAoB,EAAE,CAAC","sourcesContent":["import type { SelectionIntent } from '@ankhorage/utility/selection';\nimport cytoscape, { type Core, type CytoscapeOptions } from 'cytoscape';\n\nimport type {\n GraphViewCallbacks,\n GraphViewElementEventType,\n GraphViewFitOptions,\n GraphViewRenderedNode,\n GraphViewSize,\n GraphViewStyleRule,\n} from '../../../../../types/graph-view';\nimport type { GraphRuntimeUpdate } from '../../../../../types/graphViewRuntime';\nimport { bindGraphEvents } from './bindGraphEvents';\nimport { compactGraphSpacing } from './compactGraphSpacing';\nimport { createGraphController } from './createGraphController';\nimport { createGraphLoopSizer } from './createGraphLoopSizer';\nimport { createGraphResizeObserver, type GraphResizeObserver } from './createGraphResizeObserver';\nimport { getGraphGeometryKey } from './getGraphGeometryKey';\nimport { getGraphTopologyKey } from './getGraphTopologyKey';\nimport { hasGraphLayoutChanged } from './hasGraphLayoutChanged';\nimport { placeAddedGraphNodes } from './placeAddedGraphNodes';\nimport { readGraphRenderedNodes } from './readGraphRenderedNodes';\nimport { registerGraphLayouts } from './registerGraphLayouts';\nimport { runGraphLayout } from './runGraphLayout';\nimport { scheduleGraphFrame } from './scheduleGraphFrame';\nimport { shouldFitGraphAfterLayout } from './shouldFitGraphAfterLayout';\nimport { sizeGraphNodesToLabels } from './sizeGraphNodesToLabels';\nimport { syncGraphElements } from './syncGraphElements';\n\ntype GraphContainer = CytoscapeOptions['container'];\ntype RenderedNodeListener = (nodes: readonly GraphViewRenderedNode[]) => void;\n\nexport interface GraphRuntime {\n destroy(): void;\n handleOverlayNodeEvent(\n id: string,\n type: GraphViewElementEventType,\n selectionIntent?: SelectionIntent,\n ): void;\n setNodeSize(id: string, size: GraphViewSize): void;\n setSelectedNodeIds(nodeIds: readonly string[] | undefined): void;\n subscribeRenderedNodes(listener: RenderedNodeListener): () => void;\n update(input: GraphRuntimeUpdate): void;\n}\n\ninterface GraphRuntimeState {\n readonly fitRequestRef: { current: GraphViewFitOptions | null };\n readonly optimizedSpacingRef: { current: number | null };\n readonly callbacksRef: { current: GraphViewCallbacks };\n readonly controller: ReturnType<typeof createGraphController>['controller'];\n readonly viewport: ReturnType<typeof createGraphController>;\n readonly cy: Core;\n readonly fitPaddingRef: { current: number };\n readonly generationRef: { current: number };\n readonly geometryRef: { current: string | null };\n readonly hoveredNodeIds: Set<string>;\n readonly initialLayoutScheduledRef: { current: boolean };\n readonly latestUpdateRef: { current: GraphRuntimeUpdate | null };\n readonly layoutRef: { current: ReturnType<typeof runGraphLayout> | null };\n readonly layoutRunningRef: { current: boolean };\n readonly nodeSizes: Map<string, GraphViewSize>;\n readonly labelSizedNodeIds: Set<string>;\n readonly loopSizer: ReturnType<typeof createGraphLoopSizer>;\n readonly pendingInitialFitRef: { current: boolean };\n readonly preservedTopologyMeasurementRef: { current: boolean };\n readonly readyRef: { current: boolean };\n readonly settledLayoutRef: { current: GraphRuntimeUpdate['layout'] | null };\n readonly settledTopologyRef: { current: string | null };\n readonly relayoutScheduledRef: { current: boolean };\n readonly renderedNodeListeners: Set<RenderedNodeListener>;\n readonly resizeObserver: GraphResizeObserver | null;\n readonly unbindEvents: () => void;\n}\n\n/*** Create one Cytoscape runtime that exclusively owns layout, fit, resize, and disposal. */\nexport function createGraphRuntime(\n container: GraphContainer,\n callbacksRef: { current: GraphViewCallbacks },\n readLatestPointerDown: (event: unknown) => unknown = () => null,\n): GraphRuntime {\n const cy = cytoscape({\n container,\n elements: [],\n minZoom: 0.05,\n maxZoom: 2,\n selectionType: 'additive',\n userPanningEnabled: true,\n });\n const state = createRuntimeState(cy, container, callbacksRef, readLatestPointerDown);\n\n return {\n destroy: () => destroyRuntime(state),\n handleOverlayNodeEvent: (id, type, selectionIntent) =>\n handleOverlayNodeEvent(state, id, type, selectionIntent),\n setNodeSize: (id, size) => setNodeSize(state, id, size),\n setSelectedNodeIds: (nodeIds) => setSelectedNodeIds(state, nodeIds),\n subscribeRenderedNodes: (listener) => subscribeRenderedNodes(state, listener),\n update: (input) => updateRuntime(state, input),\n };\n}\n\n/*** Build the mutable state shared by the single graph-runtime owner. */\nfunction createRuntimeState(\n cy: Core,\n container: GraphContainer,\n callbacksRef: { current: GraphViewCallbacks },\n readLatestPointerDown: (event: unknown) => unknown,\n): GraphRuntimeState {\n const fitPaddingRef = { current: 50 };\n const viewport = createGraphController(cy, fitPaddingRef, (options) =>\n requestOptimizedFit(state, options),\n );\n const { controller } = viewport;\n const layoutRunningRef = { current: false };\n const readyRef = { current: false };\n const renderedNodeListeners = new Set<RenderedNodeListener>();\n const stateBase = {\n fitRequestRef: { current: null as GraphViewFitOptions | null },\n optimizedSpacingRef: { current: null as number | null },\n callbacksRef,\n controller,\n viewport,\n cy,\n fitPaddingRef,\n generationRef: { current: 0 },\n geometryRef: { current: null as string | null },\n hoveredNodeIds: new Set<string>(),\n initialLayoutScheduledRef: { current: false },\n latestUpdateRef: { current: null as GraphRuntimeUpdate | null },\n layoutRef: { current: null as ReturnType<typeof runGraphLayout> | null },\n layoutRunningRef,\n nodeSizes: new Map<string, GraphViewSize>(),\n labelSizedNodeIds: new Set<string>(),\n loopSizer: createGraphLoopSizer(cy),\n pendingInitialFitRef: { current: false },\n preservedTopologyMeasurementRef: { current: false },\n readyRef,\n settledLayoutRef: { current: null as GraphRuntimeUpdate['layout'] | null },\n settledTopologyRef: { current: null as string | null },\n relayoutScheduledRef: { current: false },\n renderedNodeListeners,\n };\n const unbindEvents = bindGraphEvents(\n cy,\n callbacksRef,\n controller,\n () => emitRenderedNodes(stateBase),\n readLatestPointerDown,\n );\n const resizeObserver = createGraphResizeObserver({\n container,\n cy,\n beginViewportResize: () => viewport.beginResize(),\n settleViewport: (fit) => viewport.settle(fit),\n layoutRunningRef,\n pendingInitialFitRef: stateBase.pendingInitialFitRef,\n onViewportSettled: (completedPendingInitialFit) => {\n emitRenderedNodes(stateBase);\n if (!completedPendingInitialFit || readyRef.current) return;\n readyRef.current = true;\n callbacksRef.current.onReady?.(controller);\n callbacksRef.current.onLayoutComplete?.(controller);\n },\n readyRef,\n });\n\n const state = { ...stateBase, resizeObserver, unbindEvents };\n return state;\n}\n\n/***\n * Reconcile presentation in place and relayout only when graph geometry or layout policy changes.\n * Batch reconciliation and skip layout for presentation-only updates.\n */\nfunction updateRuntime(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n if (state.cy.destroyed()) return;\n const last = state.latestUpdateRef.current;\n const acceptsSpacing =\n state.optimizedSpacingRef.current !== null &&\n state.optimizedSpacingRef.current === input.spacingFactor;\n const previous = acceptsSpacing && last ? { ...last, spacingFactor: input.spacingFactor } : last;\n if (acceptsSpacing) state.optimizedSpacingRef.current = null;\n state.latestUpdateRef.current = input;\n state.fitPaddingRef.current = input.fitPadding ?? 50;\n state.viewport.configure(input);\n const preservesTopology = shouldPreserveTopology(state, previous, input);\n beginPreservedTopologyMeasurementWindow(state, previous, input, preservesTopology);\n const retainedNodeIds = getRetainedNodeIds(previous, input, preservesTopology);\n const retainedGeometry =\n retainedNodeIds === null ? null : getGraphGeometryKey(state.cy, retainedNodeIds);\n state.cy.batch(() => {\n if (previous?.nodes !== input.nodes || previous.edges !== input.edges) {\n syncGraphElements(state.cy, input.nodes, input.edges);\n if (preservesTopology) placeAddedGraphNodes(state.cy, previous?.nodes ?? [], input.nodes);\n }\n if (\n previous?.styleRules !== input.styleRules ||\n previous?.richNodeRendering !== input.richNodeRendering\n ) {\n state.loopSizer.reset();\n applyGraphStyles(state.cy, input.styleRules, input.richNodeRendering);\n }\n });\n sizeGraphNodesToLabels(\n state.cy,\n state.labelSizedNodeIds,\n input.sizeNodesToLabels === true && !input.richNodeRendering,\n );\n applyKnownNodeSizes(state);\n state.loopSizer.update();\n const geometry = getGraphGeometryKey(state.cy);\n // Keep native double-press targets stable for paint-only class changes. A class that changes\n // measured node dimensions remains a geometry change and must relayout.\n const geometryChanged =\n retainedGeometry === null\n ? geometry !== state.geometryRef.current\n : retainedGeometry !== getGraphGeometryKey(state.cy, retainedNodeIds ?? undefined);\n const relayout = hasGraphLayoutChanged(previous, input, preservesTopology) || geometryChanged;\n state.geometryRef.current = geometry;\n if (!relayout) {\n if (\n previous?.zoomMode !== input.zoomMode ||\n previous?.fitPadding !== input.fitPadding ||\n previous?.minZoom !== input.minZoom ||\n previous?.maxZoom !== input.maxZoom ||\n previous?.minReadableLabelSize !== input.minReadableLabelSize ||\n previous?.maxFitLabelSize !== input.maxFitLabelSize\n ) {\n state.viewport.settle(previous?.zoomMode !== input.zoomMode);\n }\n emitRenderedNodes(state);\n return;\n }\n stopCurrentLayout(state);\n state.fitRequestRef.current = null;\n state.optimizedSpacingRef.current = null;\n startCurrentLayout(state, input);\n}\n\n/*** Preserve only opt-in topology updates after the initial layout and fit have settled. */\nfunction shouldPreserveTopology(\n state: GraphRuntimeState,\n previous: GraphRuntimeUpdate | null,\n input: GraphRuntimeUpdate,\n): boolean {\n return (\n previous !== null &&\n state.readyRef.current &&\n !state.pendingInitialFitRef.current &&\n input.topologyUpdatePolicy === 'preserve-positions'\n );\n}\n\n/***\n * Retain measurements emitted by the overlay commit that follows one controlled topology update.\n * A later resize remains geometry input and therefore schedules its normal relayout.\n */\nfunction beginPreservedTopologyMeasurementWindow(\n state: GraphRuntimeState,\n previous: GraphRuntimeUpdate | null,\n input: GraphRuntimeUpdate,\n preservesTopology: boolean,\n) {\n const topologyChanged =\n previous !== null &&\n getGraphTopologyKey(previous.nodes, previous.edges) !==\n getGraphTopologyKey(input.nodes, input.edges);\n state.preservedTopologyMeasurementRef.current = preservesTopology && topologyChanged;\n if (!state.preservedTopologyMeasurementRef.current) return;\n scheduleGraphFrame(() => {\n state.preservedTopologyMeasurementRef.current = false;\n });\n}\n\n/*** Limit stable-update geometry checks to nodes that existed before reconciliation. */\nfunction getRetainedNodeIds(\n previous: GraphRuntimeUpdate | null,\n input: GraphRuntimeUpdate,\n preservesTopology: boolean,\n): ReadonlySet<string> | null {\n if (!preservesTopology || previous === null) return null;\n const nextNodeIds = new Set(input.nodes.map((node) => node.id));\n return new Set(previous.nodes.map((node) => node.id).filter((id) => nextNodeIds.has(id)));\n}\n\n/*** Start a generation-safe layout whose completion is the only normal automatic fit trigger. */\nfunction startCurrentLayout(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n if (!state.readyRef.current) {\n scheduleInitialLayout(state);\n return;\n }\n startGraphLayout(state, input);\n}\n\n/*** Coalesce progressive pre-ready topology updates before the initial layout can complete. */\nfunction scheduleInitialLayout(state: GraphRuntimeState) {\n if (state.initialLayoutScheduledRef.current) return;\n state.initialLayoutScheduledRef.current = true;\n scheduleGraphFrame(() => {\n scheduleGraphFrame(() => {\n state.initialLayoutScheduledRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null || state.cy.destroyed() || state.readyRef.current) return;\n startGraphLayout(state, input);\n });\n });\n}\n\n/*** Start one layout generation after its input has reached the runtime owner. */\nfunction startGraphLayout(state: GraphRuntimeState, input: GraphRuntimeUpdate) {\n state.pendingInitialFitRef.current = false;\n const generation = state.generationRef.current + 1;\n state.generationRef.current = generation;\n state.layoutRunningRef.current = true;\n state.cy.resize();\n state.layoutRef.current = runGraphLayout(\n state.cy,\n {\n layout: input.layout ?? 'concentric',\n layoutOptions: input.layoutOptions,\n spacingFactor: input.spacingFactor ?? 1,\n },\n () => completeCurrentLayout(state, generation),\n );\n}\n\n/***\n * Settle only the latest layout generation and fit once from node bounds.\n * Discard stale completions and avoid repeated automatic fits.\n */\nfunction completeCurrentLayout(state: GraphRuntimeState, generation: number) {\n scheduleGraphFrame(() => {\n if (state.cy.destroyed() || generation !== state.generationRef.current) return;\n state.loopSizer.update();\n state.layoutRef.current = null;\n state.cy.resize();\n state.layoutRunningRef.current = false;\n state.resizeObserver?.flushAfterLayout();\n if (!hasUsableViewport(state.cy)) {\n if (!state.readyRef.current) state.pendingInitialFitRef.current = true;\n return;\n }\n state.pendingInitialFitRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null) return;\n const topology = getGraphTopologyKey(input.nodes, input.edges);\n const shouldFit = shouldFitGraphAfterLayout(\n state.readyRef.current,\n topology !== state.settledTopologyRef.current,\n input.layout !== state.settledLayoutRef.current,\n );\n state.viewport.settle(shouldFit);\n state.settledLayoutRef.current = input.layout;\n state.settledTopologyRef.current = topology;\n const fitRequest = state.fitRequestRef.current;\n state.fitRequestRef.current = null;\n if (fitRequest) requestOptimizedFit(state, fitRequest);\n emitRenderedNodes(state);\n\n if (!state.readyRef.current) {\n state.readyRef.current = true;\n state.callbacksRef.current.onReady?.(state.controller);\n }\n state.callbacksRef.current.onLayoutComplete?.(state.controller);\n });\n}\n\n/***\n * Handle explicit readable-fit intent in the runtime owner, never from zoom or React effects.\n * Bounded spacing optimization preserves the settled algorithm instead of repeatedly running it.\n */\nfunction requestOptimizedFit(state: GraphRuntimeState, options: GraphViewFitOptions) {\n if (state.cy.destroyed()) return;\n if (state.layoutRunningRef.current) {\n state.fitRequestRef.current = options;\n return;\n }\n const input = state.latestUpdateRef.current;\n if (!input) return;\n const previous = state.optimizedSpacingRef.current ?? input.spacingFactor ?? 1;\n const spacing = compactGraphSpacing(state.cy, previous, {\n fitPadding: options.padding ?? state.fitPaddingRef.current,\n maxFitZoom: state.viewport.getFitZoomLimit(),\n minReadableZoom: state.viewport.getReadableZoomTarget(),\n });\n state.geometryRef.current = getGraphGeometryKey(state.cy);\n state.loopSizer.update();\n state.viewport.settle(false);\n state.controller.fit({ ...options, optimizeSpacing: false });\n if (spacing !== previous) {\n state.optimizedSpacingRef.current = spacing;\n state.callbacksRef.current.onSpacingFactorChange?.(spacing);\n }\n emitRenderedNodes(state);\n}\n\n/*** Stop the current layout and invalidate every stale completion callback. */\nfunction stopCurrentLayout(state: GraphRuntimeState) {\n state.generationRef.current += 1;\n state.layoutRunningRef.current = false;\n state.layoutRef.current?.stop();\n state.layoutRef.current = null;\n}\n\n/*** Apply consumer styles and hide native node paint only when React rich nodes are active. */\nfunction applyGraphStyles(\n cy: Core,\n rules: readonly GraphViewStyleRule[] | undefined,\n richNodeRendering: boolean,\n) {\n const styles = [...(rules ?? [])];\n if (richNodeRendering) {\n styles.push({\n selector: 'node',\n style: {\n 'background-opacity': 0,\n 'border-width': 0,\n label: '',\n 'overlay-opacity': 0,\n },\n });\n }\n if (styles.length > 0) cy.style(styles).update();\n}\n\n/***\n * Synchronize controlled selection without rerunning layout.\n * Selection updates must not trigger graph reconstruction or layout.\n */\nfunction setSelectedNodeIds(state: GraphRuntimeState, nodeIds: readonly string[] | undefined) {\n if (state.cy.destroyed() || nodeIds === undefined) return;\n const selectedIds = new Set(nodeIds);\n state.cy.nodes().forEach((node) => {\n if (selectedIds.has(node.id())) node.select();\n else node.unselect();\n });\n emitRenderedNodes(state);\n}\n\n/***\n * Persist one rich-node size and schedule at most one relayout for changed geometry.\n * Ignore unchanged measurements before scheduling layout work.\n */\nfunction setNodeSize(state: GraphRuntimeState, id: string, size: GraphViewSize) {\n const previous = state.nodeSizes.get(id);\n if (previous?.width === size.width && previous.height === size.height) return;\n state.nodeSizes.set(id, size);\n applyNodeSize(state.cy, id, size);\n if (state.preservedTopologyMeasurementRef.current) return;\n scheduleMeasuredNodeRelayout(state);\n}\n\n/*** Apply every known rich-node size after Cytoscape elements are replaced. */\nfunction applyKnownNodeSizes(state: GraphRuntimeState) {\n for (const [id, size] of state.nodeSizes) applyNodeSize(state.cy, id, size);\n}\n\n/*** Apply one measured model-space size as a Cytoscape per-node style bypass. */\nfunction applyNodeSize(cy: Core, id: string, size: GraphViewSize) {\n const node = cy.getElementById(id);\n if (node.empty()) return;\n node.style({ height: size.height, width: size.width });\n}\n\n/***\n * Coalesce DOM measurements into one follow-up layout generation.\n * Keep one scheduled layout per frame instead of one per measured node.\n */\nfunction scheduleMeasuredNodeRelayout(state: GraphRuntimeState) {\n if (state.relayoutScheduledRef.current) return;\n state.relayoutScheduledRef.current = true;\n scheduleGraphFrame(() => {\n state.relayoutScheduledRef.current = false;\n const input = state.latestUpdateRef.current;\n if (input === null || state.cy.destroyed()) return;\n stopCurrentLayout(state);\n startCurrentLayout(state, input);\n });\n}\n\n/*** Subscribe one React overlay to rendered node state without exposing the Cytoscape core. */\nfunction subscribeRenderedNodes(state: GraphRuntimeState, listener: RenderedNodeListener) {\n state.renderedNodeListeners.add(listener);\n listener(readGraphRenderedNodes(state.cy, state.hoveredNodeIds));\n return () => {\n state.renderedNodeListeners.delete(listener);\n };\n}\n\n/***\n * Publish current rendered node positions only to active rich-node subscribers.\n * Skip snapshot preparation when no overlay is subscribed.\n */\nfunction emitRenderedNodes(\n state: Pick<GraphRuntimeState, 'cy' | 'hoveredNodeIds' | 'renderedNodeListeners'>,\n) {\n if (state.renderedNodeListeners.size === 0) return;\n const nodes = readGraphRenderedNodes(state.cy, state.hoveredNodeIds);\n for (const listener of state.renderedNodeListeners) listener(nodes);\n}\n\n/*** Translate one rich-overlay event back into normal graph selection and callbacks. */\nfunction handleOverlayNodeEvent(\n state: GraphRuntimeState,\n id: string,\n type: GraphViewElementEventType,\n selectionIntent?: SelectionIntent,\n) {\n if (type === 'pointer-enter') state.hoveredNodeIds.add(id);\n if (type === 'pointer-leave') state.hoveredNodeIds.delete(id);\n if (type === 'press') state.cy.getElementById(id).select();\n state.callbacksRef.current.onNodeEvent?.({ id, type, selectionIntent });\n emitRenderedNodes(state);\n}\n\n/*** Return whether Cytoscape currently has dimensions suitable for fitting. */\nfunction hasUsableViewport(cy: Core): boolean {\n return cy.width() > 0 && cy.height() > 0;\n}\n\n/*** Dispose all runtime resources in the reverse order they were acquired. */\nfunction destroyRuntime(state: GraphRuntimeState) {\n state.resizeObserver?.disconnect();\n stopCurrentLayout(state);\n state.unbindEvents();\n state.renderedNodeListeners.clear();\n if (!state.cy.destroyed()) state.cy.destroy();\n}\n\nregisterGraphLayouts();\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,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AM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;IACpF,CAAC;AACH,CAAC;AAED,+DAA+D;AAC/D,SAAS,qBAAqB,CAAC,IAAmB,EAAE,KAAoB;IACtE,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 React from 'react';
2
2
  import type { GridViewProps } from '../../../../types/grid-view';
3
3
  /*** Renders a controlled or uncontrolled, virtualized 2D world through the canonical grid viewport engine. */
4
- export declare function GridView({ items, contentWidth, contentHeight, width, height, viewport: controlledViewport, defaultViewport, viewportConstraints, zoomLimits, zoom, overscanPixels, focusedItemId, revealPaddingPixels, interactionPolicy, onViewportChange, onVisibleItemIdsChange, renderItem, testID, }: GridViewProps): React.JSX.Element;
4
+ export declare function GridView({ items, contentWidth, contentHeight, width, height, viewport: controlledViewport, defaultViewport, viewportConstraints, zoomLimits, zoom, overscanPixels, focusedItemId, revealPaddingPixels, interactionPolicy, onViewportChange, onVisibleItemIdsChange, renderItem, testID, viewportInteraction, }: GridViewProps): React.JSX.Element;
5
5
  //# sourceMappingURL=GridView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridView.d.ts","sourceRoot":"","sources":["../../../../../src/features/grid-view/adapters/inbound/GridView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAkC,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAkBjG,8GAA8G;AAC9G,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EAAE,kBAAkB,EAC5B,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,IAAQ,EACR,cAAoB,EACpB,aAAa,EACb,mBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,MAAM,GACP,EAAE,aAAa,qBAmYf"}
1
+ {"version":3,"file":"GridView.d.ts","sourceRoot":"","sources":["../../../../../src/features/grid-view/adapters/inbound/GridView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAkC,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAkBjG,8GAA8G;AAC9G,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EAAE,kBAAkB,EAC5B,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,IAAQ,EACR,cAAoB,EACpB,aAAa,EACb,mBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,MAAM,EACN,mBAA+B,GAChC,EAAE,aAAa,qBAoYf"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Pressable as NativePressable, ScrollView as NativeScrollView, Text as NativeText, View as NativeView, } from 'react-native';
4
4
  import { createGridScrollSync } from '../../application/createGridScrollSync';
5
5
  /*** Renders a controlled or uncontrolled, virtualized 2D world through the canonical grid viewport engine. */
6
- export function GridView({ items, contentWidth, contentHeight, width, height, viewport: controlledViewport, defaultViewport, viewportConstraints, zoomLimits, zoom = 1, overscanPixels = 160, focusedItemId, revealPaddingPixels = 8, interactionPolicy, onViewportChange, onVisibleItemIdsChange, renderItem, testID, }) {
6
+ export function GridView({ items, contentWidth, contentHeight, width, height, viewport: controlledViewport, defaultViewport, viewportConstraints, zoomLimits, zoom = 1, overscanPixels = 160, focusedItemId, revealPaddingPixels = 8, interactionPolicy, onViewportChange, onVisibleItemIdsChange, renderItem, testID, viewportInteraction = 'enabled', }) {
7
7
  const [uncontrolledViewport, setUncontrolledViewport] = React.useState(() => createInitialViewport(width, height, zoom, defaultViewport));
8
8
  const horizontalScrollRef = React.useRef(null);
9
9
  const verticalScrollRef = React.useRef(null);
@@ -32,6 +32,7 @@ export function GridView({ items, contentWidth, contentHeight, width, height, vi
32
32
  const previousVisibleIdsRef = React.useRef([]);
33
33
  const uncontrolled = controlledViewport === undefined;
34
34
  const interactive = interactionPolicy !== 'passive';
35
+ const viewportInteractive = interactive && viewportInteraction === 'enabled';
35
36
  const publish = React.useCallback((nextViewport) => {
36
37
  if (areViewportsEqual(viewportRef.current, nextViewport))
37
38
  return;
@@ -196,7 +197,7 @@ export function GridView({ items, contentWidth, contentHeight, width, height, vi
196
197
  if (wasPinching)
197
198
  syncScrollPosition();
198
199
  }} onTouchMove={(event) => {
199
- if (!interactive)
200
+ if (!viewportInteractive)
200
201
  return;
201
202
  measurePinchGesture([...event.nativeEvent.touches], pinchSessionRef.current, (pinch) => {
202
203
  const previous = pinchGestureRef.current;
@@ -214,8 +215,8 @@ export function GridView({ items, contentWidth, contentHeight, width, height, vi
214
215
  setIsPinching(pinch !== undefined);
215
216
  });
216
217
  }} style={{ height, overflow: 'hidden', width }} testID={testID}>
217
- <NativeScrollView ref={horizontalScrollRef} testID={testID ? `${testID}-horizontal-scroll` : undefined} horizontal scrollEnabled={interactive && !isPinching} scrollEventThrottle={16} showsHorizontalScrollIndicator style={{ height, width }} onMomentumScrollEnd={(event) => scrollSyncRef.current?.scrollEnded('x', event.nativeEvent.contentOffset.x)} onScroll={(event) => handleNativeScroll('x', event.nativeEvent.contentOffset.x)} onScrollBeginDrag={(event) => scrollSyncRef.current?.dragBegan('x', event.nativeEvent.contentOffset.x)}>
218
- <NativeScrollView ref={verticalScrollRef} testID={testID ? `${testID}-vertical-scroll` : undefined} scrollEnabled={interactive && !isPinching} scrollEventThrottle={16} showsVerticalScrollIndicator style={{ height, width: scrollMapping.horizontal.contentSize }} onMomentumScrollEnd={(event) => scrollSyncRef.current?.scrollEnded('y', event.nativeEvent.contentOffset.y)} onScroll={(event) => handleNativeScroll('y', event.nativeEvent.contentOffset.y)} onScrollBeginDrag={(event) => scrollSyncRef.current?.dragBegan('y', event.nativeEvent.contentOffset.y)}>
218
+ <NativeScrollView ref={horizontalScrollRef} testID={testID ? `${testID}-horizontal-scroll` : undefined} horizontal scrollEnabled={viewportInteractive && !isPinching} scrollEventThrottle={16} showsHorizontalScrollIndicator style={{ height, width }} onMomentumScrollEnd={(event) => scrollSyncRef.current?.scrollEnded('x', event.nativeEvent.contentOffset.x)} onScroll={(event) => handleNativeScroll('x', event.nativeEvent.contentOffset.x)} onScrollBeginDrag={(event) => scrollSyncRef.current?.dragBegan('x', event.nativeEvent.contentOffset.x)}>
219
+ <NativeScrollView ref={verticalScrollRef} testID={testID ? `${testID}-vertical-scroll` : undefined} scrollEnabled={viewportInteractive && !isPinching} scrollEventThrottle={16} showsVerticalScrollIndicator style={{ height, width: scrollMapping.horizontal.contentSize }} onMomentumScrollEnd={(event) => scrollSyncRef.current?.scrollEnded('y', event.nativeEvent.contentOffset.y)} onScroll={(event) => handleNativeScroll('y', event.nativeEvent.contentOffset.y)} onScrollBeginDrag={(event) => scrollSyncRef.current?.dragBegan('y', event.nativeEvent.contentOffset.y)}>
219
220
  <NativeView style={{
220
221
  height: scrollMapping.vertical.contentSize,
221
222
  width: scrollMapping.horizontal.contentSize,
@@ -235,7 +236,7 @@ export function GridView({ items, contentWidth, contentHeight, width, height, vi
235
236
  </NativeView>
236
237
  </NativeScrollView>
237
238
  </NativeScrollView>
238
- {interactive ? (<NativeView accessibilityLabel="Viewport controls" style={controlsStyle}>
239
+ {viewportInteractive ? (<NativeView accessibilityLabel="Viewport controls" style={controlsStyle}>
239
240
  <NativePressable accessibilityLabel="Pan left" accessibilityRole="button" onPress={() => pan({ x: 48, y: 0 })}>
240
241
  <NativeText>←</NativeText>
241
242
  </NativePressable>
@@ -1 +1 @@
1
- {"version":3,"file":"GridView.js","sourceRoot":"","sources":["../../../../../src/features/grid-view/adapters/inbound/GridView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAInB,WAAW,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,UAAU,IAAI,gBAAgB,EAC9B,IAAI,IAAI,UAAU,EAClB,IAAI,IAAI,UAAU,GACnB,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAgB9E,8GAA8G;AAC9G,MAAM,UAAU,QAAQ,CAAC,EACvB,KAAK,EACL,YAAY,EACZ,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EAAE,kBAAkB,EAC5B,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,IAAI,GAAG,CAAC,EACR,cAAc,GAAG,GAAG,EACpB,aAAa,EACb,mBAAmB,GAAG,CAAC,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,MAAM,GACQ;IACd,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAC1E,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,CAAC,CAC5D,CAAC;IACF,MAAM,mBAAmB,GACvB,KAAK,CAAC,MAAM,CAAwD,IAAI,CAAC,CAAC;IAC5E,MAAM,iBAAiB,GACrB,KAAK,CAAC,MAAM,CAAwD,IAAI,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAkD,IAAI,CAAC,CAAC;IACpF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAoC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;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AAI,QAAQ,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACnE,OAAO;QACL,QAAQ;QACR,UAAU,EAAE;YACV,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;YACpF,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;SACtF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n constrainViewport,\n getVisibleGridItems,\n type GridPoint,\n type GridViewport,\n type GridViewportConstraints,\n panViewport,\n revealWorldRect,\n worldToViewport,\n zoomViewportAt,\n} from '@ankhorage/grid-view';\nimport React from 'react';\nimport {\n Pressable as NativePressable,\n ScrollView as NativeScrollView,\n Text as NativeText,\n View as NativeView,\n} from 'react-native';\n\nimport type { GridScrollAxis, GridScrollSync, GridViewProps } from '../../../../types/grid-view';\nimport type { ReactNativeComponentInstance } from '../../../../types/react-native';\nimport { createGridScrollSync } from '../../application/createGridScrollSync';\n\ntype PinchGesture = Readonly<{ distance: number; focalPoint: GridPoint }>;\ntype ScrollAxisMapping = Readonly<{ contentSize: number; origin: number; position: number }>;\ntype ScrollMapping = Readonly<{\n horizontal: ScrollAxisMapping;\n vertical: ScrollAxisMapping;\n}>;\ntype ViewportOrigin = Readonly<{ x: number; y: number }>;\ntype FocusRevealProposal = Readonly<{\n focusedItemId: string;\n sourceViewport: GridViewport;\n viewport: GridViewport;\n}>;\ntype PinchTouch = Readonly<{ pageX: number; pageY: number }>;\n\n/*** Renders a controlled or uncontrolled, virtualized 2D world through the canonical grid viewport engine. */\nexport function GridView({\n items,\n contentWidth,\n contentHeight,\n width,\n height,\n viewport: controlledViewport,\n defaultViewport,\n viewportConstraints,\n zoomLimits,\n zoom = 1,\n overscanPixels = 160,\n focusedItemId,\n revealPaddingPixels = 8,\n interactionPolicy,\n onViewportChange,\n onVisibleItemIdsChange,\n renderItem,\n testID,\n}: GridViewProps) {\n const [uncontrolledViewport, setUncontrolledViewport] = React.useState(() =>\n createInitialViewport(width, height, zoom, defaultViewport),\n );\n const horizontalScrollRef =\n React.useRef<ReactNativeComponentInstance<typeof NativeScrollView>>(null);\n const verticalScrollRef =\n React.useRef<ReactNativeComponentInstance<typeof NativeScrollView>>(null);\n const gridRef = React.useRef<ReactNativeComponentInstance<typeof NativeView>>(null);\n const panRef = React.useRef<(displacement: GridPoint) => void>(() => undefined);\n const scrollSyncRef = React.useRef<GridScrollSync | undefined>(undefined);\n const pinchGestureRef = React.useRef<PinchGesture | undefined>(undefined);\n const pinchMeasurementRef = React.useRef(0);\n const pinchSessionRef = React.useRef(0);\n const viewportOriginRef = React.useRef<ViewportOrigin>({ x: 0, y: 0 });\n const focusRevealProposalRef = React.useRef<FocusRevealProposal | undefined>(undefined);\n const focusRevealViewportRef = React.useRef<GridViewport | undefined>(undefined);\n const [isPinching, setIsPinching] = React.useState(false);\n const constraints = React.useMemo(\n () => viewportConstraints ?? createContentConstraints(contentWidth, contentHeight),\n [contentHeight, contentWidth, viewportConstraints],\n );\n const sourceViewport = controlledViewport ?? uncontrolledViewport;\n const viewport = React.useMemo(\n () => constrainViewport({ ...sourceViewport, height, width }, constraints),\n [constraints, height, sourceViewport, width],\n );\n const viewportRef = React.useRef(viewport);\n const visibleItems = React.useMemo(\n () => getVisibleGridItems(items, viewport, overscanPixels),\n [items, overscanPixels, viewport],\n );\n const viewportVisibleIds = React.useMemo(\n () => getVisibleGridItems(visibleItems, viewport).map((item) => item.id),\n [viewport, visibleItems],\n );\n const focusedItem = items.find((item) => item.id === focusedItemId);\n const focusedItemHeight = focusedItem?.height;\n const focusedItemIdForReveal = focusedItem?.id;\n const focusedItemWidth = focusedItem?.width;\n const focusedItemX = focusedItem?.x;\n const focusedItemY = focusedItem?.y;\n const previousVisibleIdsRef = React.useRef<readonly string[]>([]);\n const uncontrolled = controlledViewport === undefined;\n const interactive = interactionPolicy !== 'passive';\n\n const publish = React.useCallback(\n (nextViewport: GridViewport) => {\n if (areViewportsEqual(viewportRef.current, nextViewport)) return;\n viewportRef.current = nextViewport;\n if (uncontrolled) setUncontrolledViewport(nextViewport);\n onViewportChange?.(nextViewport);\n },\n [onViewportChange, uncontrolled],\n );\n const publishRef = React.useRef(publish);\n const pan = (displacement: GridPoint) =>\n publish(panViewport(viewportRef.current, displacement, constraints));\n const zoomAt = (focalPoint: GridPoint, factor: number) =>\n publish(\n zoomViewportAt(\n viewportRef.current,\n focalPoint,\n {\n pixelsPerUnitX: viewportRef.current.pixelsPerUnitX * factor,\n pixelsPerUnitY: viewportRef.current.pixelsPerUnitY * factor,\n },\n zoomLimits,\n constraints,\n ),\n );\n\n React.useEffect(() => {\n viewportRef.current = viewport;\n }, [viewport]);\n\n React.useEffect(() => {\n publishRef.current = publish;\n }, [publish]);\n\n React.useEffect(() => {\n panRef.current = pan;\n });\n\n // Declared before the viewport-sync effect so the arbiter exists when that effect runs.\n React.useEffect(() => {\n const scrollSync = createGridScrollSync({\n onProgrammaticScroll: (axis, displacement) =>\n panRef.current(axis === 'x' ? { x: -displacement, y: 0 } : { x: 0, y: -displacement }),\n onUserScroll: (axis, displacement) =>\n panRef.current(axis === 'x' ? { x: -displacement, y: 0 } : { x: 0, y: -displacement }),\n scrollTo: (axis, offset, animated) => {\n if (axis === 'x') horizontalScrollRef.current?.scrollTo({ animated, x: offset });\n else verticalScrollRef.current?.scrollTo({ animated, y: offset });\n },\n });\n scrollSyncRef.current = scrollSync;\n return () => {\n scrollSync.dispose();\n scrollSyncRef.current = undefined;\n };\n }, []);\n\n /** Routes native scroll events to the arbiter unless a pinch owns the gesture. */\n const handleNativeScroll = (axis: GridScrollAxis, offset: number) => {\n if (!pinchGestureRef.current) scrollSyncRef.current?.scrolled(axis, offset);\n };\n\n const refreshViewportOrigin = React.useCallback(() => {\n gridRef.current?.measureInWindow((x, y) => {\n viewportOriginRef.current = { x, y };\n });\n }, []);\n\n const measurePinchGesture = React.useCallback(\n (\n touches: readonly PinchTouch[],\n session: number,\n onMeasured: (pinch: PinchGesture | undefined) => void,\n ) => {\n const measurement = pinchMeasurementRef.current + 1;\n pinchMeasurementRef.current = measurement;\n gridRef.current?.measureInWindow((x, y) => {\n if (measurement !== pinchMeasurementRef.current || session !== pinchSessionRef.current) {\n return;\n }\n viewportOriginRef.current = { x, y };\n onMeasured(getPinchGesture(touches, width, height, { x, y }));\n });\n },\n [height, width],\n );\n\n React.useLayoutEffect(() => {\n refreshViewportOrigin();\n }, [height, refreshViewportOrigin, width]);\n\n React.useEffect(\n () => () => {\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n },\n [],\n );\n\n React.useEffect(() => {\n if (!onVisibleItemIdsChange) return;\n const previous = previousVisibleIdsRef.current;\n if (\n previous.length === viewportVisibleIds.length &&\n previous.every((id, index) => id === viewportVisibleIds.at(index))\n ) {\n return;\n }\n previousVisibleIdsRef.current = viewportVisibleIds;\n onVisibleItemIdsChange(viewportVisibleIds);\n }, [onVisibleItemIdsChange, viewportVisibleIds]);\n\n React.useEffect(() => {\n const position = createScrollMapping(viewport, constraints);\n const nextPosition = {\n x: position.horizontal.position,\n y: position.vertical.position,\n };\n if (scrollSyncRef.current?.isCurrent(nextPosition)) return;\n const animated =\n focusRevealViewportRef.current !== undefined &&\n areViewportsEqual(viewport, focusRevealViewportRef.current);\n scrollSyncRef.current?.request(nextPosition, animated);\n if (animated) focusRevealViewportRef.current = undefined;\n }, [constraints, viewport]);\n\n React.useEffect(() => {\n if (\n focusedItemHeight === undefined ||\n focusedItemIdForReveal === undefined ||\n focusedItemWidth === undefined ||\n focusedItemX === undefined ||\n focusedItemY === undefined\n ) {\n focusRevealProposalRef.current = undefined;\n return;\n }\n const sourceViewport = viewportRef.current;\n const revealed = revealWorldRect(\n sourceViewport,\n {\n height: focusedItemHeight,\n width: focusedItemWidth,\n x: focusedItemX,\n y: focusedItemY,\n },\n revealPaddingPixels,\n constraints,\n );\n if (\n isRepeatedControlledFocusRevealProposal({\n controlled: !uncontrolled,\n focusedItemId: focusedItemIdForReveal,\n previous: focusRevealProposalRef.current,\n sourceViewport,\n viewport: revealed,\n })\n ) {\n return;\n }\n focusRevealProposalRef.current = {\n focusedItemId: focusedItemIdForReveal,\n sourceViewport,\n viewport: revealed,\n };\n focusRevealViewportRef.current = areViewportsEqual(sourceViewport, revealed)\n ? undefined\n : revealed;\n publishRef.current(revealed);\n }, [\n constraints,\n focusedItemHeight,\n focusedItemIdForReveal,\n focusedItemWidth,\n focusedItemX,\n focusedItemY,\n revealPaddingPixels,\n uncontrolled,\n ]);\n\n const scrollMapping = createScrollMapping(viewport, constraints);\n\n const syncScrollPosition = () => {\n const nextMapping = createScrollMapping(viewportRef.current, constraints);\n const nextPosition = {\n x: nextMapping.horizontal.position,\n y: nextMapping.vertical.position,\n };\n scrollSyncRef.current?.request(nextPosition, false);\n };\n\n return (\n <NativeView\n ref={gridRef}\n accessibilityLabel=\"Interactive grid viewport\"\n onLayout={refreshViewportOrigin}\n onTouchEnd={() => {\n const wasPinching = pinchGestureRef.current !== undefined;\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n pinchGestureRef.current = undefined;\n setIsPinching(false);\n if (wasPinching) syncScrollPosition();\n }}\n onTouchCancel={() => {\n const wasPinching = pinchGestureRef.current !== undefined;\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n pinchGestureRef.current = undefined;\n setIsPinching(false);\n if (wasPinching) syncScrollPosition();\n }}\n onTouchMove={(event) => {\n if (!interactive) return;\n measurePinchGesture([...event.nativeEvent.touches], pinchSessionRef.current, (pinch) => {\n const previous = pinchGestureRef.current;\n pinchGestureRef.current = pinch;\n setIsPinching(pinch !== undefined);\n if (!pinch || !previous) return;\n zoomAt(pinch.focalPoint, pinch.distance / previous.distance);\n });\n }}\n onTouchStart={(event) => {\n const session = pinchSessionRef.current + 1;\n pinchSessionRef.current = session;\n measurePinchGesture([...event.nativeEvent.touches], session, (pinch) => {\n pinchGestureRef.current = pinch;\n setIsPinching(pinch !== undefined);\n });\n }}\n style={{ height, overflow: 'hidden', width }}\n testID={testID}\n >\n <NativeScrollView\n ref={horizontalScrollRef}\n testID={testID ? `${testID}-horizontal-scroll` : undefined}\n horizontal\n scrollEnabled={interactive && !isPinching}\n scrollEventThrottle={16}\n showsHorizontalScrollIndicator\n style={{ height, width }}\n onMomentumScrollEnd={(event) =>\n scrollSyncRef.current?.scrollEnded('x', event.nativeEvent.contentOffset.x)\n }\n onScroll={(event) => handleNativeScroll('x', event.nativeEvent.contentOffset.x)}\n onScrollBeginDrag={(event) =>\n scrollSyncRef.current?.dragBegan('x', event.nativeEvent.contentOffset.x)\n }\n >\n <NativeScrollView\n ref={verticalScrollRef}\n testID={testID ? `${testID}-vertical-scroll` : undefined}\n scrollEnabled={interactive && !isPinching}\n scrollEventThrottle={16}\n showsVerticalScrollIndicator\n style={{ height, width: scrollMapping.horizontal.contentSize }}\n onMomentumScrollEnd={(event) =>\n scrollSyncRef.current?.scrollEnded('y', event.nativeEvent.contentOffset.y)\n }\n onScroll={(event) => handleNativeScroll('y', event.nativeEvent.contentOffset.y)}\n onScrollBeginDrag={(event) =>\n scrollSyncRef.current?.dragBegan('y', event.nativeEvent.contentOffset.y)\n }\n >\n <NativeView\n style={{\n height: scrollMapping.vertical.contentSize,\n width: scrollMapping.horizontal.contentSize,\n }}\n >\n {visibleItems.map((item) => {\n const position = worldToViewport(\n { x: item.x, y: item.y },\n { ...viewport, offsetX: 0, offsetY: 0 },\n );\n return (\n <NativeView\n key={item.id}\n style={{\n height: item.height * viewport.pixelsPerUnitY,\n left: position.x + scrollMapping.horizontal.origin,\n position: 'absolute',\n top: position.y + scrollMapping.vertical.origin,\n width: item.width * viewport.pixelsPerUnitX,\n }}\n >\n {renderItem(item)}\n </NativeView>\n );\n })}\n </NativeView>\n </NativeScrollView>\n </NativeScrollView>\n {interactive ? (\n <NativeView accessibilityLabel=\"Viewport controls\" style={controlsStyle}>\n <NativePressable\n accessibilityLabel=\"Pan left\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 48, y: 0 })}\n >\n <NativeText>←</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan right\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: -48, y: 0 })}\n >\n <NativeText>→</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan up\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 0, y: 48 })}\n >\n <NativeText>↑</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan down\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 0, y: -48 })}\n >\n <NativeText>↓</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Zoom in\"\n accessibilityRole=\"button\"\n onPress={() => zoomAt({ x: width / 2, y: height / 2 }, 1.2)}\n >\n <NativeText>+</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Zoom out\"\n accessibilityRole=\"button\"\n onPress={() => zoomAt({ x: width / 2, y: height / 2 }, 1 / 1.2)}\n >\n <NativeText>−</NativeText>\n </NativePressable>\n </NativeView>\n ) : null}\n </NativeView>\n );\n}\n\nconst controlsStyle = { bottom: 8, gap: 4, position: 'absolute' as const, right: 8 };\n\n/*** Builds the initial world position and independent scales for uncontrolled rendering. */\nfunction createInitialViewport(\n width: number,\n height: number,\n zoom: number,\n viewport: GridViewProps['defaultViewport'],\n): GridViewport {\n return {\n height,\n offsetX: viewport?.offsetX ?? 0,\n offsetY: viewport?.offsetY ?? 0,\n pixelsPerUnitX: viewport?.pixelsPerUnitX ?? zoom,\n pixelsPerUnitY: viewport?.pixelsPerUnitY ?? zoom,\n width,\n };\n}\n\n/*** Uses the rendered content extent as the default finite world boundary. */\nfunction createContentConstraints(\n contentWidth: number,\n contentHeight: number,\n): GridViewportConstraints {\n return { world: { height: contentHeight, width: contentWidth, x: 0, y: 0 } };\n}\n\n/*** Maps engine-constrained world offsets to nonnegative native scroll coordinates. */\nfunction createScrollMapping(\n viewport: GridViewport,\n constraints: GridViewportConstraints,\n): ScrollMapping {\n const horizontalMinimum = constrainViewport(\n { ...viewport, offsetX: -Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetX;\n const horizontalMaximum = constrainViewport(\n { ...viewport, offsetX: Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetX;\n const verticalMinimum = constrainViewport(\n { ...viewport, offsetY: -Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetY;\n const verticalMaximum = constrainViewport(\n { ...viewport, offsetY: Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetY;\n return {\n horizontal: createScrollAxisMapping({\n maximum: horizontalMaximum,\n minimum: horizontalMinimum,\n offset: viewport.offsetX,\n scale: viewport.pixelsPerUnitX,\n viewportSize: viewport.width,\n }),\n vertical: createScrollAxisMapping({\n maximum: verticalMaximum,\n minimum: verticalMinimum,\n offset: viewport.offsetY,\n scale: viewport.pixelsPerUnitY,\n viewportSize: viewport.height,\n }),\n };\n}\n\ntype ScrollAxisMappingInput = Readonly<{\n maximum: number;\n minimum: number;\n offset: number;\n scale: number;\n viewportSize: number;\n}>;\n\n/*** Derives a physical scroll axis from the published engine constraint result. */\nfunction createScrollAxisMapping({\n maximum,\n minimum,\n offset,\n scale,\n viewportSize,\n}: ScrollAxisMappingInput): ScrollAxisMapping {\n const range = (maximum - minimum) * scale;\n return {\n contentSize: viewportSize + range,\n origin: -minimum * scale,\n position: (offset - minimum) * scale,\n };\n}\n\n/*** Compares canonical viewport fields without treating equal proposals as state changes. */\nfunction areViewportsEqual(left: GridViewport, right: GridViewport): boolean {\n return (\n left.width === right.width &&\n left.height === right.height &&\n left.offsetX === right.offsetX &&\n left.offsetY === right.offsetY &&\n left.pixelsPerUnitX === right.pixelsPerUnitX &&\n left.pixelsPerUnitY === right.pixelsPerUnitY\n );\n}\n\n/*** Skips a rejected controlled focus proposal until its focus or incoming viewport changes. */\nfunction isRepeatedControlledFocusRevealProposal({\n controlled,\n focusedItemId,\n previous,\n sourceViewport,\n viewport,\n}: Readonly<{\n controlled: boolean;\n focusedItemId: string | undefined;\n previous: FocusRevealProposal | undefined;\n sourceViewport: GridViewport;\n viewport: GridViewport;\n}>): boolean {\n return (\n controlled &&\n focusedItemId !== undefined &&\n previous?.focusedItemId === focusedItemId &&\n areViewportsEqual(previous.sourceViewport, sourceViewport) &&\n areViewportsEqual(previous.viewport, viewport)\n );\n}\n\n/*** Extracts a stable two-finger focal point in the measured outer viewport coordinate space. */\nfunction getPinchGesture(\n touches: readonly Readonly<{\n pageX: number;\n pageY: number;\n }>[],\n width: number,\n height: number,\n viewportOrigin: ViewportOrigin,\n): PinchGesture | undefined {\n const [first, second] = touches;\n if (!first || !second) return undefined;\n const deltaX = second.pageX - first.pageX;\n const deltaY = second.pageY - first.pageY;\n const distance = Math.hypot(deltaX, deltaY);\n if (!Number.isFinite(distance) || distance === 0) return undefined;\n return {\n distance,\n focalPoint: {\n x: Math.min(width, Math.max(0, (first.pageX + second.pageX) / 2 - viewportOrigin.x)),\n y: Math.min(height, Math.max(0, (first.pageY + second.pageY) / 2 - viewportOrigin.y)),\n },\n };\n}\n"]}
1
+ {"version":3,"file":"GridView.js","sourceRoot":"","sources":["../../../../../src/features/grid-view/adapters/inbound/GridView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAInB,WAAW,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,UAAU,IAAI,gBAAgB,EAC9B,IAAI,I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C,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;YACpF,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;SACtF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n constrainViewport,\n getVisibleGridItems,\n type GridPoint,\n type GridViewport,\n type GridViewportConstraints,\n panViewport,\n revealWorldRect,\n worldToViewport,\n zoomViewportAt,\n} from '@ankhorage/grid-view';\nimport React from 'react';\nimport {\n Pressable as NativePressable,\n ScrollView as NativeScrollView,\n Text as NativeText,\n View as NativeView,\n} from 'react-native';\n\nimport type { GridScrollAxis, GridScrollSync, GridViewProps } from '../../../../types/grid-view';\nimport type { ReactNativeComponentInstance } from '../../../../types/react-native';\nimport { createGridScrollSync } from '../../application/createGridScrollSync';\n\ntype PinchGesture = Readonly<{ distance: number; focalPoint: GridPoint }>;\ntype ScrollAxisMapping = Readonly<{ contentSize: number; origin: number; position: number }>;\ntype ScrollMapping = Readonly<{\n horizontal: ScrollAxisMapping;\n vertical: ScrollAxisMapping;\n}>;\ntype ViewportOrigin = Readonly<{ x: number; y: number }>;\ntype FocusRevealProposal = Readonly<{\n focusedItemId: string;\n sourceViewport: GridViewport;\n viewport: GridViewport;\n}>;\ntype PinchTouch = Readonly<{ pageX: number; pageY: number }>;\n\n/*** Renders a controlled or uncontrolled, virtualized 2D world through the canonical grid viewport engine. */\nexport function GridView({\n items,\n contentWidth,\n contentHeight,\n width,\n height,\n viewport: controlledViewport,\n defaultViewport,\n viewportConstraints,\n zoomLimits,\n zoom = 1,\n overscanPixels = 160,\n focusedItemId,\n revealPaddingPixels = 8,\n interactionPolicy,\n onViewportChange,\n onVisibleItemIdsChange,\n renderItem,\n testID,\n viewportInteraction = 'enabled',\n}: GridViewProps) {\n const [uncontrolledViewport, setUncontrolledViewport] = React.useState(() =>\n createInitialViewport(width, height, zoom, defaultViewport),\n );\n const horizontalScrollRef =\n React.useRef<ReactNativeComponentInstance<typeof NativeScrollView>>(null);\n const verticalScrollRef =\n React.useRef<ReactNativeComponentInstance<typeof NativeScrollView>>(null);\n const gridRef = React.useRef<ReactNativeComponentInstance<typeof NativeView>>(null);\n const panRef = React.useRef<(displacement: GridPoint) => void>(() => undefined);\n const scrollSyncRef = React.useRef<GridScrollSync | undefined>(undefined);\n const pinchGestureRef = React.useRef<PinchGesture | undefined>(undefined);\n const pinchMeasurementRef = React.useRef(0);\n const pinchSessionRef = React.useRef(0);\n const viewportOriginRef = React.useRef<ViewportOrigin>({ x: 0, y: 0 });\n const focusRevealProposalRef = React.useRef<FocusRevealProposal | undefined>(undefined);\n const focusRevealViewportRef = React.useRef<GridViewport | undefined>(undefined);\n const [isPinching, setIsPinching] = React.useState(false);\n const constraints = React.useMemo(\n () => viewportConstraints ?? createContentConstraints(contentWidth, contentHeight),\n [contentHeight, contentWidth, viewportConstraints],\n );\n const sourceViewport = controlledViewport ?? uncontrolledViewport;\n const viewport = React.useMemo(\n () => constrainViewport({ ...sourceViewport, height, width }, constraints),\n [constraints, height, sourceViewport, width],\n );\n const viewportRef = React.useRef(viewport);\n const visibleItems = React.useMemo(\n () => getVisibleGridItems(items, viewport, overscanPixels),\n [items, overscanPixels, viewport],\n );\n const viewportVisibleIds = React.useMemo(\n () => getVisibleGridItems(visibleItems, viewport).map((item) => item.id),\n [viewport, visibleItems],\n );\n const focusedItem = items.find((item) => item.id === focusedItemId);\n const focusedItemHeight = focusedItem?.height;\n const focusedItemIdForReveal = focusedItem?.id;\n const focusedItemWidth = focusedItem?.width;\n const focusedItemX = focusedItem?.x;\n const focusedItemY = focusedItem?.y;\n const previousVisibleIdsRef = React.useRef<readonly string[]>([]);\n const uncontrolled = controlledViewport === undefined;\n const interactive = interactionPolicy !== 'passive';\n const viewportInteractive = interactive && viewportInteraction === 'enabled';\n\n const publish = React.useCallback(\n (nextViewport: GridViewport) => {\n if (areViewportsEqual(viewportRef.current, nextViewport)) return;\n viewportRef.current = nextViewport;\n if (uncontrolled) setUncontrolledViewport(nextViewport);\n onViewportChange?.(nextViewport);\n },\n [onViewportChange, uncontrolled],\n );\n const publishRef = React.useRef(publish);\n const pan = (displacement: GridPoint) =>\n publish(panViewport(viewportRef.current, displacement, constraints));\n const zoomAt = (focalPoint: GridPoint, factor: number) =>\n publish(\n zoomViewportAt(\n viewportRef.current,\n focalPoint,\n {\n pixelsPerUnitX: viewportRef.current.pixelsPerUnitX * factor,\n pixelsPerUnitY: viewportRef.current.pixelsPerUnitY * factor,\n },\n zoomLimits,\n constraints,\n ),\n );\n\n React.useEffect(() => {\n viewportRef.current = viewport;\n }, [viewport]);\n\n React.useEffect(() => {\n publishRef.current = publish;\n }, [publish]);\n\n React.useEffect(() => {\n panRef.current = pan;\n });\n\n // Declared before the viewport-sync effect so the arbiter exists when that effect runs.\n React.useEffect(() => {\n const scrollSync = createGridScrollSync({\n onProgrammaticScroll: (axis, displacement) =>\n panRef.current(axis === 'x' ? { x: -displacement, y: 0 } : { x: 0, y: -displacement }),\n onUserScroll: (axis, displacement) =>\n panRef.current(axis === 'x' ? { x: -displacement, y: 0 } : { x: 0, y: -displacement }),\n scrollTo: (axis, offset, animated) => {\n if (axis === 'x') horizontalScrollRef.current?.scrollTo({ animated, x: offset });\n else verticalScrollRef.current?.scrollTo({ animated, y: offset });\n },\n });\n scrollSyncRef.current = scrollSync;\n return () => {\n scrollSync.dispose();\n scrollSyncRef.current = undefined;\n };\n }, []);\n\n /** Routes native scroll events to the arbiter unless a pinch owns the gesture. */\n const handleNativeScroll = (axis: GridScrollAxis, offset: number) => {\n if (!pinchGestureRef.current) scrollSyncRef.current?.scrolled(axis, offset);\n };\n\n const refreshViewportOrigin = React.useCallback(() => {\n gridRef.current?.measureInWindow((x, y) => {\n viewportOriginRef.current = { x, y };\n });\n }, []);\n\n const measurePinchGesture = React.useCallback(\n (\n touches: readonly PinchTouch[],\n session: number,\n onMeasured: (pinch: PinchGesture | undefined) => void,\n ) => {\n const measurement = pinchMeasurementRef.current + 1;\n pinchMeasurementRef.current = measurement;\n gridRef.current?.measureInWindow((x, y) => {\n if (measurement !== pinchMeasurementRef.current || session !== pinchSessionRef.current) {\n return;\n }\n viewportOriginRef.current = { x, y };\n onMeasured(getPinchGesture(touches, width, height, { x, y }));\n });\n },\n [height, width],\n );\n\n React.useLayoutEffect(() => {\n refreshViewportOrigin();\n }, [height, refreshViewportOrigin, width]);\n\n React.useEffect(\n () => () => {\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n },\n [],\n );\n\n React.useEffect(() => {\n if (!onVisibleItemIdsChange) return;\n const previous = previousVisibleIdsRef.current;\n if (\n previous.length === viewportVisibleIds.length &&\n previous.every((id, index) => id === viewportVisibleIds.at(index))\n ) {\n return;\n }\n previousVisibleIdsRef.current = viewportVisibleIds;\n onVisibleItemIdsChange(viewportVisibleIds);\n }, [onVisibleItemIdsChange, viewportVisibleIds]);\n\n React.useEffect(() => {\n const position = createScrollMapping(viewport, constraints);\n const nextPosition = {\n x: position.horizontal.position,\n y: position.vertical.position,\n };\n if (scrollSyncRef.current?.isCurrent(nextPosition)) return;\n const animated =\n focusRevealViewportRef.current !== undefined &&\n areViewportsEqual(viewport, focusRevealViewportRef.current);\n scrollSyncRef.current?.request(nextPosition, animated);\n if (animated) focusRevealViewportRef.current = undefined;\n }, [constraints, viewport]);\n\n React.useEffect(() => {\n if (\n focusedItemHeight === undefined ||\n focusedItemIdForReveal === undefined ||\n focusedItemWidth === undefined ||\n focusedItemX === undefined ||\n focusedItemY === undefined\n ) {\n focusRevealProposalRef.current = undefined;\n return;\n }\n const sourceViewport = viewportRef.current;\n const revealed = revealWorldRect(\n sourceViewport,\n {\n height: focusedItemHeight,\n width: focusedItemWidth,\n x: focusedItemX,\n y: focusedItemY,\n },\n revealPaddingPixels,\n constraints,\n );\n if (\n isRepeatedControlledFocusRevealProposal({\n controlled: !uncontrolled,\n focusedItemId: focusedItemIdForReveal,\n previous: focusRevealProposalRef.current,\n sourceViewport,\n viewport: revealed,\n })\n ) {\n return;\n }\n focusRevealProposalRef.current = {\n focusedItemId: focusedItemIdForReveal,\n sourceViewport,\n viewport: revealed,\n };\n focusRevealViewportRef.current = areViewportsEqual(sourceViewport, revealed)\n ? undefined\n : revealed;\n publishRef.current(revealed);\n }, [\n constraints,\n focusedItemHeight,\n focusedItemIdForReveal,\n focusedItemWidth,\n focusedItemX,\n focusedItemY,\n revealPaddingPixels,\n uncontrolled,\n ]);\n\n const scrollMapping = createScrollMapping(viewport, constraints);\n\n const syncScrollPosition = () => {\n const nextMapping = createScrollMapping(viewportRef.current, constraints);\n const nextPosition = {\n x: nextMapping.horizontal.position,\n y: nextMapping.vertical.position,\n };\n scrollSyncRef.current?.request(nextPosition, false);\n };\n\n return (\n <NativeView\n ref={gridRef}\n accessibilityLabel=\"Interactive grid viewport\"\n onLayout={refreshViewportOrigin}\n onTouchEnd={() => {\n const wasPinching = pinchGestureRef.current !== undefined;\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n pinchGestureRef.current = undefined;\n setIsPinching(false);\n if (wasPinching) syncScrollPosition();\n }}\n onTouchCancel={() => {\n const wasPinching = pinchGestureRef.current !== undefined;\n pinchMeasurementRef.current += 1;\n pinchSessionRef.current += 1;\n pinchGestureRef.current = undefined;\n setIsPinching(false);\n if (wasPinching) syncScrollPosition();\n }}\n onTouchMove={(event) => {\n if (!viewportInteractive) return;\n measurePinchGesture([...event.nativeEvent.touches], pinchSessionRef.current, (pinch) => {\n const previous = pinchGestureRef.current;\n pinchGestureRef.current = pinch;\n setIsPinching(pinch !== undefined);\n if (!pinch || !previous) return;\n zoomAt(pinch.focalPoint, pinch.distance / previous.distance);\n });\n }}\n onTouchStart={(event) => {\n const session = pinchSessionRef.current + 1;\n pinchSessionRef.current = session;\n measurePinchGesture([...event.nativeEvent.touches], session, (pinch) => {\n pinchGestureRef.current = pinch;\n setIsPinching(pinch !== undefined);\n });\n }}\n style={{ height, overflow: 'hidden', width }}\n testID={testID}\n >\n <NativeScrollView\n ref={horizontalScrollRef}\n testID={testID ? `${testID}-horizontal-scroll` : undefined}\n horizontal\n scrollEnabled={viewportInteractive && !isPinching}\n scrollEventThrottle={16}\n showsHorizontalScrollIndicator\n style={{ height, width }}\n onMomentumScrollEnd={(event) =>\n scrollSyncRef.current?.scrollEnded('x', event.nativeEvent.contentOffset.x)\n }\n onScroll={(event) => handleNativeScroll('x', event.nativeEvent.contentOffset.x)}\n onScrollBeginDrag={(event) =>\n scrollSyncRef.current?.dragBegan('x', event.nativeEvent.contentOffset.x)\n }\n >\n <NativeScrollView\n ref={verticalScrollRef}\n testID={testID ? `${testID}-vertical-scroll` : undefined}\n scrollEnabled={viewportInteractive && !isPinching}\n scrollEventThrottle={16}\n showsVerticalScrollIndicator\n style={{ height, width: scrollMapping.horizontal.contentSize }}\n onMomentumScrollEnd={(event) =>\n scrollSyncRef.current?.scrollEnded('y', event.nativeEvent.contentOffset.y)\n }\n onScroll={(event) => handleNativeScroll('y', event.nativeEvent.contentOffset.y)}\n onScrollBeginDrag={(event) =>\n scrollSyncRef.current?.dragBegan('y', event.nativeEvent.contentOffset.y)\n }\n >\n <NativeView\n style={{\n height: scrollMapping.vertical.contentSize,\n width: scrollMapping.horizontal.contentSize,\n }}\n >\n {visibleItems.map((item) => {\n const position = worldToViewport(\n { x: item.x, y: item.y },\n { ...viewport, offsetX: 0, offsetY: 0 },\n );\n return (\n <NativeView\n key={item.id}\n style={{\n height: item.height * viewport.pixelsPerUnitY,\n left: position.x + scrollMapping.horizontal.origin,\n position: 'absolute',\n top: position.y + scrollMapping.vertical.origin,\n width: item.width * viewport.pixelsPerUnitX,\n }}\n >\n {renderItem(item)}\n </NativeView>\n );\n })}\n </NativeView>\n </NativeScrollView>\n </NativeScrollView>\n {viewportInteractive ? (\n <NativeView accessibilityLabel=\"Viewport controls\" style={controlsStyle}>\n <NativePressable\n accessibilityLabel=\"Pan left\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 48, y: 0 })}\n >\n <NativeText>←</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan right\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: -48, y: 0 })}\n >\n <NativeText>→</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan up\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 0, y: 48 })}\n >\n <NativeText>↑</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Pan down\"\n accessibilityRole=\"button\"\n onPress={() => pan({ x: 0, y: -48 })}\n >\n <NativeText>↓</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Zoom in\"\n accessibilityRole=\"button\"\n onPress={() => zoomAt({ x: width / 2, y: height / 2 }, 1.2)}\n >\n <NativeText>+</NativeText>\n </NativePressable>\n <NativePressable\n accessibilityLabel=\"Zoom out\"\n accessibilityRole=\"button\"\n onPress={() => zoomAt({ x: width / 2, y: height / 2 }, 1 / 1.2)}\n >\n <NativeText>−</NativeText>\n </NativePressable>\n </NativeView>\n ) : null}\n </NativeView>\n );\n}\n\nconst controlsStyle = { bottom: 8, gap: 4, position: 'absolute' as const, right: 8 };\n\n/*** Builds the initial world position and independent scales for uncontrolled rendering. */\nfunction createInitialViewport(\n width: number,\n height: number,\n zoom: number,\n viewport: GridViewProps['defaultViewport'],\n): GridViewport {\n return {\n height,\n offsetX: viewport?.offsetX ?? 0,\n offsetY: viewport?.offsetY ?? 0,\n pixelsPerUnitX: viewport?.pixelsPerUnitX ?? zoom,\n pixelsPerUnitY: viewport?.pixelsPerUnitY ?? zoom,\n width,\n };\n}\n\n/*** Uses the rendered content extent as the default finite world boundary. */\nfunction createContentConstraints(\n contentWidth: number,\n contentHeight: number,\n): GridViewportConstraints {\n return { world: { height: contentHeight, width: contentWidth, x: 0, y: 0 } };\n}\n\n/*** Maps engine-constrained world offsets to nonnegative native scroll coordinates. */\nfunction createScrollMapping(\n viewport: GridViewport,\n constraints: GridViewportConstraints,\n): ScrollMapping {\n const horizontalMinimum = constrainViewport(\n { ...viewport, offsetX: -Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetX;\n const horizontalMaximum = constrainViewport(\n { ...viewport, offsetX: Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetX;\n const verticalMinimum = constrainViewport(\n { ...viewport, offsetY: -Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetY;\n const verticalMaximum = constrainViewport(\n { ...viewport, offsetY: Number.MAX_SAFE_INTEGER },\n constraints,\n ).offsetY;\n return {\n horizontal: createScrollAxisMapping({\n maximum: horizontalMaximum,\n minimum: horizontalMinimum,\n offset: viewport.offsetX,\n scale: viewport.pixelsPerUnitX,\n viewportSize: viewport.width,\n }),\n vertical: createScrollAxisMapping({\n maximum: verticalMaximum,\n minimum: verticalMinimum,\n offset: viewport.offsetY,\n scale: viewport.pixelsPerUnitY,\n viewportSize: viewport.height,\n }),\n };\n}\n\ntype ScrollAxisMappingInput = Readonly<{\n maximum: number;\n minimum: number;\n offset: number;\n scale: number;\n viewportSize: number;\n}>;\n\n/*** Derives a physical scroll axis from the published engine constraint result. */\nfunction createScrollAxisMapping({\n maximum,\n minimum,\n offset,\n scale,\n viewportSize,\n}: ScrollAxisMappingInput): ScrollAxisMapping {\n const range = (maximum - minimum) * scale;\n return {\n contentSize: viewportSize + range,\n origin: -minimum * scale,\n position: (offset - minimum) * scale,\n };\n}\n\n/*** Compares canonical viewport fields without treating equal proposals as state changes. */\nfunction areViewportsEqual(left: GridViewport, right: GridViewport): boolean {\n return (\n left.width === right.width &&\n left.height === right.height &&\n left.offsetX === right.offsetX &&\n left.offsetY === right.offsetY &&\n left.pixelsPerUnitX === right.pixelsPerUnitX &&\n left.pixelsPerUnitY === right.pixelsPerUnitY\n );\n}\n\n/*** Skips a rejected controlled focus proposal until its focus or incoming viewport changes. */\nfunction isRepeatedControlledFocusRevealProposal({\n controlled,\n focusedItemId,\n previous,\n sourceViewport,\n viewport,\n}: Readonly<{\n controlled: boolean;\n focusedItemId: string | undefined;\n previous: FocusRevealProposal | undefined;\n sourceViewport: GridViewport;\n viewport: GridViewport;\n}>): boolean {\n return (\n controlled &&\n focusedItemId !== undefined &&\n previous?.focusedItemId === focusedItemId &&\n areViewportsEqual(previous.sourceViewport, sourceViewport) &&\n areViewportsEqual(previous.viewport, viewport)\n );\n}\n\n/*** Extracts a stable two-finger focal point in the measured outer viewport coordinate space. */\nfunction getPinchGesture(\n touches: readonly Readonly<{\n pageX: number;\n pageY: number;\n }>[],\n width: number,\n height: number,\n viewportOrigin: ViewportOrigin,\n): PinchGesture | undefined {\n const [first, second] = touches;\n if (!first || !second) return undefined;\n const deltaX = second.pageX - first.pageX;\n const deltaY = second.pageY - first.pageY;\n const distance = Math.hypot(deltaX, deltaY);\n if (!Number.isFinite(distance) || distance === 0) return undefined;\n return {\n distance,\n focalPoint: {\n x: Math.min(width, Math.max(0, (first.pageX + second.pageX) / 2 - viewportOrigin.x)),\n y: Math.min(height, Math.max(0, (first.pageY + second.pageY) / 2 - viewportOrigin.y)),\n },\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ZORA_BASE_COMPONENT_REGISTRY.d.ts","sourceRoot":"","sources":["../../../src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAuOlE,+GAA+G;AAC/G,eAAO,MAAM,4BAA4B,EAAE,qBAAqD,CAAC"}
1
+ {"version":3,"file":"ZORA_BASE_COMPONENT_REGISTRY.d.ts","sourceRoot":"","sources":["../../../src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAyOlE,+GAA+G;AAC/G,eAAO,MAAM,4BAA4B,EAAE,qBAAqD,CAAC"}
@@ -8,6 +8,7 @@ import { Badge } from '../badge/public';
8
8
  import { BottomSheet } from '../bottom-sheet/public';
9
9
  import { Breadcrumbs } from '../breadcrumbs/public';
10
10
  import { Button, ButtonGroup, IconButton } from '../button/public';
11
+ import { Calendar } from '../calendar/public';
11
12
  import { Card, MediaCard, MetricCard, PostCard, ProductCard } from '../card/public';
12
13
  import { ChatListItem, MessageBubble } from '../chat/public';
13
14
  import { ChessBoard, OpeningBook } from '../chess/public';
@@ -74,6 +75,7 @@ const _ZORA_BASE_COMPONENT_REGISTRY = {
74
75
  Button,
75
76
  ButtonGroup,
76
77
  Card,
78
+ Calendar,
77
79
  Checkbox,
78
80
  CheckboxGroup,
79
81
  Chip,