@collabdt/core 0.4.8 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/dist/core/components/AppSidebarContent.d.ts +2 -3
  2. package/dist/core/components/AppSidebarContent.d.ts.map +1 -1
  3. package/dist/core/components/AppSidebarContent.js +12 -3
  4. package/dist/core/components/AppSidebarContent.js.map +1 -1
  5. package/dist/core/components/Toolbar.d.ts +2 -3
  6. package/dist/core/components/Toolbar.d.ts.map +1 -1
  7. package/dist/core/components/Toolbar.js.map +1 -1
  8. package/dist/core/components/ui/AppSidebar.d.ts +2 -2
  9. package/dist/core/components/ui/AppSidebar.d.ts.map +1 -1
  10. package/dist/core/components/ui/AppSidebar.js.map +1 -1
  11. package/dist/core/components/ui/Comments/CommentsSection.d.ts.map +1 -1
  12. package/dist/core/components/ui/Comments/CommentsSection.js +10 -9
  13. package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
  14. package/dist/core/components/ui/Sensors/SensorsSection.d.ts.map +1 -1
  15. package/dist/core/components/ui/Sensors/SensorsSection.js +24 -23
  16. package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
  17. package/dist/core/components/ui/ViewerSidebar/Shell.js +1 -1
  18. package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
  19. package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts +6 -5
  20. package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts.map +1 -1
  21. package/dist/core/components/ui/ViewerSidebar/TabStrip.js +6 -4
  22. package/dist/core/components/ui/ViewerSidebar/TabStrip.js.map +1 -1
  23. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts +16 -9
  24. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts.map +1 -1
  25. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.js.map +1 -1
  26. package/dist/core/components/viewers/Data/DataMenu.js +1 -1
  27. package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
  28. package/dist/core/components/viewers/Data/utils/viewerConfig.js +1 -1
  29. package/dist/core/components/viewers/Data/utils/viewerConfig.js.map +1 -1
  30. package/dist/core/components/viewers/Viewer.d.ts.map +1 -1
  31. package/dist/core/components/viewers/Viewer.js +21 -7
  32. package/dist/core/components/viewers/Viewer.js.map +1 -1
  33. package/dist/core/components/viewers/bim/BimViewer.d.ts.map +1 -1
  34. package/dist/core/components/viewers/bim/BimViewer.js +10 -1
  35. package/dist/core/components/viewers/bim/BimViewer.js.map +1 -1
  36. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.d.ts.map +1 -1
  37. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js +5 -1
  38. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js.map +1 -1
  39. package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts +10 -1
  40. package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts.map +1 -1
  41. package/dist/core/components/viewers/bim/src/ElementAppearance.js +36 -1
  42. package/dist/core/components/viewers/bim/src/ElementAppearance.js.map +1 -1
  43. package/dist/core/components/viewers/bim/src/ModelsSync.d.ts +17 -0
  44. package/dist/core/components/viewers/bim/src/ModelsSync.d.ts.map +1 -0
  45. package/dist/core/components/viewers/bim/src/ModelsSync.js +36 -0
  46. package/dist/core/components/viewers/bim/src/ModelsSync.js.map +1 -0
  47. package/dist/core/components/viewers/bim/src/SelectionSync.d.ts +15 -0
  48. package/dist/core/components/viewers/bim/src/SelectionSync.d.ts.map +1 -0
  49. package/dist/core/components/viewers/bim/src/SelectionSync.js +24 -0
  50. package/dist/core/components/viewers/bim/src/SelectionSync.js.map +1 -0
  51. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts +12 -1
  52. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts.map +1 -1
  53. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js +18 -2
  54. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js.map +1 -1
  55. package/dist/core/components/viewers/bim/src/lib/bimCamera.d.ts +17 -0
  56. package/dist/core/components/viewers/bim/src/lib/bimCamera.d.ts.map +1 -0
  57. package/dist/core/components/viewers/bim/src/lib/bimCamera.js +16 -0
  58. package/dist/core/components/viewers/bim/src/lib/bimCamera.js.map +1 -0
  59. package/dist/core/components/viewers/bim/src/lib/bimItemActions.d.ts +13 -0
  60. package/dist/core/components/viewers/bim/src/lib/bimItemActions.d.ts.map +1 -1
  61. package/dist/core/components/viewers/bim/src/lib/bimItemActions.js +13 -0
  62. package/dist/core/components/viewers/bim/src/lib/bimItemActions.js.map +1 -1
  63. package/dist/core/components/viewers/bim/src/lib/bimQueries.d.ts +26 -0
  64. package/dist/core/components/viewers/bim/src/lib/bimQueries.d.ts.map +1 -0
  65. package/dist/core/components/viewers/bim/src/lib/bimQueries.js +72 -0
  66. package/dist/core/components/viewers/bim/src/lib/bimQueries.js.map +1 -0
  67. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useFilePlacement.d.ts +1 -1
  68. package/dist/core/components/viewers/bim/src/tools/bimToolbar.d.ts.map +1 -1
  69. package/dist/core/components/viewers/bim/src/tools/bimToolbar.js +7 -1
  70. package/dist/core/components/viewers/bim/src/tools/bimToolbar.js.map +1 -1
  71. package/dist/core/components/viewers/map/MapViewer.d.ts.map +1 -1
  72. package/dist/core/components/viewers/map/MapViewer.js +6 -3
  73. package/dist/core/components/viewers/map/MapViewer.js.map +1 -1
  74. package/dist/core/components/viewers/map/datasets/RowActions.d.ts.map +1 -1
  75. package/dist/core/components/viewers/map/datasets/RowActions.js +90 -20
  76. package/dist/core/components/viewers/map/datasets/RowActions.js.map +1 -1
  77. package/dist/core/components/viewers/map/datasets/index.d.ts +1 -2
  78. package/dist/core/components/viewers/map/datasets/index.d.ts.map +1 -1
  79. package/dist/core/components/viewers/map/datasets/index.js +13 -104
  80. package/dist/core/components/viewers/map/datasets/index.js.map +1 -1
  81. package/dist/core/components/viewers/map/datasets/src/minioDatasets.d.ts +1 -1
  82. package/dist/core/components/viewers/map/datasets/src/minioDatasets.d.ts.map +1 -1
  83. package/dist/core/components/viewers/map/datasets/src/minioDatasets.js +5 -8
  84. package/dist/core/components/viewers/map/datasets/src/minioDatasets.js.map +1 -1
  85. package/dist/core/components/viewers/map/datasets/src/orgVisibility.d.ts +16 -0
  86. package/dist/core/components/viewers/map/datasets/src/orgVisibility.d.ts.map +1 -0
  87. package/dist/core/components/viewers/map/datasets/src/orgVisibility.js +21 -0
  88. package/dist/core/components/viewers/map/datasets/src/orgVisibility.js.map +1 -0
  89. package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.d.ts +28 -0
  90. package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.d.ts.map +1 -0
  91. package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.js +80 -0
  92. package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.js.map +1 -0
  93. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.d.ts +27 -0
  94. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.d.ts.map +1 -0
  95. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.js +53 -0
  96. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.js.map +1 -0
  97. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.d.ts.map +1 -1
  98. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js +102 -100
  99. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js.map +1 -1
  100. package/dist/core/components/viewers/map/src/MapSidebar/index.d.ts.map +1 -1
  101. package/dist/core/components/viewers/map/src/MapSidebar/index.js +5 -1
  102. package/dist/core/components/viewers/map/src/MapSidebar/index.js.map +1 -1
  103. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.d.ts.map +1 -1
  104. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js +2 -34
  105. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js.map +1 -1
  106. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts +3 -11
  107. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts.map +1 -1
  108. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js +28 -13
  109. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js.map +1 -1
  110. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.d.ts +1 -2
  111. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.d.ts.map +1 -1
  112. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js +1 -2
  113. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js.map +1 -1
  114. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts +1 -2
  115. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts.map +1 -1
  116. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js +1 -2
  117. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js.map +1 -1
  118. package/dist/core/components/viewers/map/src/tools/mapTools.d.ts.map +1 -1
  119. package/dist/core/components/viewers/map/src/tools/mapTools.js +28 -1
  120. package/dist/core/components/viewers/map/src/tools/mapTools.js.map +1 -1
  121. package/dist/core/components/viewers/map/utils/stringToColour.d.ts +3 -0
  122. package/dist/core/components/viewers/map/utils/stringToColour.d.ts.map +1 -1
  123. package/dist/core/components/viewers/map/utils/stringToColour.js +72 -70
  124. package/dist/core/components/viewers/map/utils/stringToColour.js.map +1 -1
  125. package/dist/core/components/viewers/plugins/PluginsManager.d.ts +20 -0
  126. package/dist/core/components/viewers/plugins/PluginsManager.d.ts.map +1 -0
  127. package/dist/core/components/viewers/plugins/PluginsManager.js +245 -0
  128. package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -0
  129. package/dist/core/components/viewers/plugins/src/PluginCard.d.ts +14 -0
  130. package/dist/core/components/viewers/plugins/src/PluginCard.d.ts.map +1 -0
  131. package/dist/core/components/viewers/plugins/src/PluginCard.js +239 -0
  132. package/dist/core/components/viewers/plugins/src/PluginCard.js.map +1 -0
  133. package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts +9 -0
  134. package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts.map +1 -0
  135. package/dist/core/components/viewers/plugins/src/pluginStatus.js +10 -0
  136. package/dist/core/components/viewers/plugins/src/pluginStatus.js.map +1 -0
  137. package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts +14 -0
  138. package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts.map +1 -0
  139. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js +24 -0
  140. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js.map +1 -0
  141. package/dist/core/components/viewers/plugins/src/usePluginEnablement.d.ts +16 -0
  142. package/dist/core/components/viewers/plugins/src/usePluginEnablement.d.ts.map +1 -0
  143. package/dist/core/components/viewers/plugins/src/usePluginEnablement.js +18 -0
  144. package/dist/core/components/viewers/plugins/src/usePluginEnablement.js.map +1 -0
  145. package/dist/core/components/viewers/plugins/src/usePluginsData.d.ts +22 -0
  146. package/dist/core/components/viewers/plugins/src/usePluginsData.d.ts.map +1 -0
  147. package/dist/core/components/viewers/plugins/src/usePluginsData.js +81 -0
  148. package/dist/core/components/viewers/plugins/src/usePluginsData.js.map +1 -0
  149. package/dist/core/components/viewers/plugins/types.d.ts +66 -0
  150. package/dist/core/components/viewers/plugins/types.d.ts.map +1 -0
  151. package/dist/core/components/viewers/plugins/types.js +1 -0
  152. package/dist/core/components/viewers/plugins/types.js.map +1 -0
  153. package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js +2 -2
  154. package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js.map +1 -1
  155. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.d.ts.map +1 -1
  156. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js +5 -1
  157. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js.map +1 -1
  158. package/dist/core/components/viewers/pointcloud/src/tools/index.d.ts +1 -1
  159. package/dist/core/components/viewers/pointcloud/src/tools/index.d.ts.map +1 -1
  160. package/dist/core/components/viewers/pointcloud/src/tools/index.js +3 -2
  161. package/dist/core/components/viewers/pointcloud/src/tools/index.js.map +1 -1
  162. package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.d.ts +10 -1
  163. package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.d.ts.map +1 -1
  164. package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.js +11 -3
  165. package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.js.map +1 -1
  166. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts +10 -0
  167. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts.map +1 -0
  168. package/dist/core/components/viewers/{map/legends/MapLegendHost.js → shared/legends/ViewerLegendHost.js} +48 -10
  169. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.js.map +1 -0
  170. package/dist/core/components/viewers/viewerAccess.d.ts +7 -0
  171. package/dist/core/components/viewers/viewerAccess.d.ts.map +1 -0
  172. package/dist/core/components/viewers/viewerAccess.js +9 -0
  173. package/dist/core/components/viewers/viewerAccess.js.map +1 -0
  174. package/dist/core/hooks/plugins/createPluginHooks.d.ts +40 -0
  175. package/dist/core/hooks/plugins/createPluginHooks.d.ts.map +1 -0
  176. package/dist/core/hooks/plugins/createPluginHooks.js +71 -0
  177. package/dist/core/hooks/plugins/createPluginHooks.js.map +1 -0
  178. package/dist/core/hooks/plugins/plugins.d.ts +18 -0
  179. package/dist/core/hooks/plugins/plugins.d.ts.map +1 -0
  180. package/dist/core/hooks/plugins/plugins.js +10 -0
  181. package/dist/core/hooks/plugins/plugins.js.map +1 -0
  182. package/dist/core/hooks/ports/apiAdapter.d.ts +9 -0
  183. package/dist/core/hooks/ports/apiAdapter.d.ts.map +1 -1
  184. package/dist/core/hooks/provider.d.ts +2 -0
  185. package/dist/core/hooks/provider.d.ts.map +1 -1
  186. package/dist/core/hooks/provider.js +3 -1
  187. package/dist/core/hooks/provider.js.map +1 -1
  188. package/dist/core/i18n/index.d.ts +6 -0
  189. package/dist/core/i18n/index.d.ts.map +1 -1
  190. package/dist/core/i18n/index.js +29 -1
  191. package/dist/core/i18n/index.js.map +1 -1
  192. package/dist/core/i18n/messages/en.json +86 -4
  193. package/dist/core/i18n/messages/es.json +87 -5
  194. package/dist/core/i18n/messages/fr.json +86 -4
  195. package/dist/core/plugins/enablement.d.ts +50 -0
  196. package/dist/core/plugins/enablement.d.ts.map +1 -0
  197. package/dist/core/plugins/enablement.js +37 -0
  198. package/dist/core/plugins/enablement.js.map +1 -0
  199. package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts +13 -0
  200. package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts.map +1 -0
  201. package/dist/core/plugins/hello-bim/components/SpaceDialog.js +80 -0
  202. package/dist/core/plugins/hello-bim/components/SpaceDialog.js.map +1 -0
  203. package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts +11 -0
  204. package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts.map +1 -0
  205. package/dist/core/plugins/hello-bim/components/SpacesLegend.js +16 -0
  206. package/dist/core/plugins/hello-bim/components/SpacesLegend.js.map +1 -0
  207. package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts +4 -0
  208. package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts.map +1 -0
  209. package/dist/core/plugins/hello-bim/components/SpacesTab.js +211 -0
  210. package/dist/core/plugins/hello-bim/components/SpacesTab.js.map +1 -0
  211. package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts +8 -0
  212. package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts.map +1 -0
  213. package/dist/core/plugins/hello-bim/components/SpacesTool.js +68 -0
  214. package/dist/core/plugins/hello-bim/components/SpacesTool.js.map +1 -0
  215. package/dist/core/plugins/hello-bim/components/icons.d.ts +13 -0
  216. package/dist/core/plugins/hello-bim/components/icons.d.ts.map +1 -0
  217. package/dist/core/plugins/hello-bim/components/icons.js +52 -0
  218. package/dist/core/plugins/hello-bim/components/icons.js.map +1 -0
  219. package/dist/core/plugins/hello-bim/index.d.ts +7 -0
  220. package/dist/core/plugins/hello-bim/index.d.ts.map +1 -0
  221. package/dist/core/plugins/hello-bim/index.js +38 -0
  222. package/dist/core/plugins/hello-bim/index.js.map +1 -0
  223. package/dist/core/plugins/hello-bim/manifest.json +127 -0
  224. package/dist/core/plugins/hello-bim/spaces.d.ts +57 -0
  225. package/dist/core/plugins/hello-bim/spaces.d.ts.map +1 -0
  226. package/dist/core/plugins/hello-bim/spaces.js +207 -0
  227. package/dist/core/plugins/hello-bim/spaces.js.map +1 -0
  228. package/dist/core/plugins/hello-map/components/MapTool.d.ts +9 -0
  229. package/dist/core/plugins/hello-map/components/MapTool.d.ts.map +1 -0
  230. package/dist/core/plugins/hello-map/components/MapTool.js +78 -0
  231. package/dist/core/plugins/hello-map/components/MapTool.js.map +1 -0
  232. package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts +9 -0
  233. package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts.map +1 -0
  234. package/dist/core/plugins/hello-map/components/MarkerDialog.js +47 -0
  235. package/dist/core/plugins/hello-map/components/MarkerDialog.js.map +1 -0
  236. package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts +8 -0
  237. package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts.map +1 -0
  238. package/dist/core/plugins/hello-map/components/MarkersLayer.js +133 -0
  239. package/dist/core/plugins/hello-map/components/MarkersLayer.js.map +1 -0
  240. package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts +11 -0
  241. package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts.map +1 -0
  242. package/dist/core/plugins/hello-map/components/MarkersLegend.js +20 -0
  243. package/dist/core/plugins/hello-map/components/MarkersLegend.js.map +1 -0
  244. package/dist/core/plugins/hello-map/components/MarkersPage.d.ts +6 -0
  245. package/dist/core/plugins/hello-map/components/MarkersPage.d.ts.map +1 -0
  246. package/dist/core/plugins/hello-map/components/MarkersPage.js +40 -0
  247. package/dist/core/plugins/hello-map/components/MarkersPage.js.map +1 -0
  248. package/dist/core/plugins/hello-map/components/MarkersTab.d.ts +4 -0
  249. package/dist/core/plugins/hello-map/components/MarkersTab.d.ts.map +1 -0
  250. package/dist/core/plugins/hello-map/components/MarkersTab.js +275 -0
  251. package/dist/core/plugins/hello-map/components/MarkersTab.js.map +1 -0
  252. package/dist/core/plugins/hello-map/index.d.ts +7 -0
  253. package/dist/core/plugins/hello-map/index.d.ts.map +1 -0
  254. package/dist/core/plugins/hello-map/index.js +54 -0
  255. package/dist/core/plugins/hello-map/index.js.map +1 -0
  256. package/dist/core/plugins/hello-map/manifest.json +129 -0
  257. package/dist/core/plugins/hello-map/markers.d.ts +32 -0
  258. package/dist/core/plugins/hello-map/markers.d.ts.map +1 -0
  259. package/dist/core/plugins/hello-map/markers.js +143 -0
  260. package/dist/core/plugins/hello-map/markers.js.map +1 -0
  261. package/dist/core/plugins/host/PluginDataPageHost.d.ts +10 -0
  262. package/dist/core/plugins/host/PluginDataPageHost.d.ts.map +1 -0
  263. package/dist/core/plugins/host/PluginDataPageHost.js +142 -0
  264. package/dist/core/plugins/host/PluginDataPageHost.js.map +1 -0
  265. package/dist/core/plugins/host/PluginDialogHost.d.ts +7 -0
  266. package/dist/core/plugins/host/PluginDialogHost.d.ts.map +1 -0
  267. package/dist/core/plugins/host/PluginDialogHost.js +80 -0
  268. package/dist/core/plugins/host/PluginDialogHost.js.map +1 -0
  269. package/dist/core/plugins/host/PluginMapLayerHost.d.ts +6 -0
  270. package/dist/core/plugins/host/PluginMapLayerHost.d.ts.map +1 -0
  271. package/dist/core/plugins/host/PluginMapLayerHost.js +26 -0
  272. package/dist/core/plugins/host/PluginMapLayerHost.js.map +1 -0
  273. package/dist/core/plugins/host/context.d.ts.map +1 -1
  274. package/dist/core/plugins/host/context.js.map +1 -1
  275. package/dist/core/plugins/host/dialogs.d.ts +25 -0
  276. package/dist/core/plugins/host/dialogs.d.ts.map +1 -0
  277. package/dist/core/plugins/host/dialogs.js +50 -0
  278. package/dist/core/plugins/host/dialogs.js.map +1 -0
  279. package/dist/core/plugins/host/errors.d.ts +11 -0
  280. package/dist/core/plugins/host/errors.d.ts.map +1 -1
  281. package/dist/core/plugins/host/errors.js +22 -1
  282. package/dist/core/plugins/host/errors.js.map +1 -1
  283. package/dist/core/plugins/host/host.d.ts +7 -0
  284. package/dist/core/plugins/host/host.d.ts.map +1 -1
  285. package/dist/core/plugins/host/host.js +64 -8
  286. package/dist/core/plugins/host/host.js.map +1 -1
  287. package/dist/core/plugins/host/pluginKit.tsconfig.json +45 -0
  288. package/dist/core/plugins/host/pluginState.d.ts +28 -0
  289. package/dist/core/plugins/host/pluginState.d.ts.map +1 -0
  290. package/dist/core/plugins/host/pluginState.js +49 -0
  291. package/dist/core/plugins/host/pluginState.js.map +1 -0
  292. package/dist/core/plugins/host/pluginViewerKey.d.ts +13 -0
  293. package/dist/core/plugins/host/pluginViewerKey.d.ts.map +1 -0
  294. package/dist/core/plugins/host/pluginViewerKey.js +18 -0
  295. package/dist/core/plugins/host/pluginViewerKey.js.map +1 -0
  296. package/dist/core/plugins/host/provider.d.ts +37 -2
  297. package/dist/core/plugins/host/provider.d.ts.map +1 -1
  298. package/dist/core/plugins/host/provider.js +97 -10
  299. package/dist/core/plugins/host/provider.js.map +1 -1
  300. package/dist/core/plugins/host/registry.d.ts +14 -0
  301. package/dist/core/plugins/host/registry.d.ts.map +1 -1
  302. package/dist/core/plugins/host/registry.js +37 -4
  303. package/dist/core/plugins/host/registry.js.map +1 -1
  304. package/dist/core/plugins/host/runtimeShims.d.ts +15 -0
  305. package/dist/core/plugins/host/runtimeShims.d.ts.map +1 -0
  306. package/dist/core/plugins/host/runtimeShims.js +132 -0
  307. package/dist/core/plugins/host/runtimeShims.js.map +1 -0
  308. package/dist/core/plugins/host/scope.d.ts +21 -0
  309. package/dist/core/plugins/host/scope.d.ts.map +1 -0
  310. package/dist/core/plugins/host/scope.js +36 -0
  311. package/dist/core/plugins/host/scope.js.map +1 -0
  312. package/dist/core/plugins/host/usePluginDataPages.d.ts +15 -0
  313. package/dist/core/plugins/host/usePluginDataPages.d.ts.map +1 -0
  314. package/dist/core/plugins/host/usePluginDataPages.js +22 -0
  315. package/dist/core/plugins/host/usePluginDataPages.js.map +1 -0
  316. package/dist/core/plugins/host/usePluginToolbarTools.d.ts +18 -0
  317. package/dist/core/plugins/host/usePluginToolbarTools.d.ts.map +1 -0
  318. package/dist/core/plugins/host/usePluginToolbarTools.js +93 -0
  319. package/dist/core/plugins/host/usePluginToolbarTools.js.map +1 -0
  320. package/dist/core/plugins/host/usePluginViewerTabs.d.ts +11 -0
  321. package/dist/core/plugins/host/usePluginViewerTabs.d.ts.map +1 -0
  322. package/dist/core/plugins/host/usePluginViewerTabs.js +41 -0
  323. package/dist/core/plugins/host/usePluginViewerTabs.js.map +1 -0
  324. package/dist/core/plugins/installed.d.ts +14 -11
  325. package/dist/core/plugins/installed.d.ts.map +1 -1
  326. package/dist/core/plugins/installed.js +10 -1
  327. package/dist/core/plugins/installed.js.map +1 -1
  328. package/dist/core/plugins/manifests.d.ts +11 -0
  329. package/dist/core/plugins/manifests.d.ts.map +1 -0
  330. package/dist/core/plugins/manifests.js +10 -0
  331. package/dist/core/plugins/manifests.js.map +1 -0
  332. package/dist/core/plugins/messages.d.ts +15 -0
  333. package/dist/core/plugins/messages.d.ts.map +1 -0
  334. package/dist/core/plugins/messages.js +20 -0
  335. package/dist/core/plugins/messages.js.map +1 -0
  336. package/dist/core/plugins/sdk/bimViewer.d.ts +64 -0
  337. package/dist/core/plugins/sdk/bimViewer.d.ts.map +1 -0
  338. package/dist/core/plugins/sdk/bimViewer.js +66 -0
  339. package/dist/core/plugins/sdk/bimViewer.js.map +1 -0
  340. package/dist/core/plugins/sdk/config.d.ts +10 -0
  341. package/dist/core/plugins/sdk/config.d.ts.map +1 -0
  342. package/dist/core/plugins/sdk/config.js +7 -0
  343. package/dist/core/plugins/sdk/config.js.map +1 -0
  344. package/dist/core/plugins/sdk/data.d.ts +22 -0
  345. package/dist/core/plugins/sdk/data.d.ts.map +1 -0
  346. package/dist/core/plugins/sdk/data.js +68 -0
  347. package/dist/core/plugins/sdk/data.js.map +1 -0
  348. package/dist/core/plugins/sdk/index.d.ts +4 -0
  349. package/dist/core/plugins/sdk/index.d.ts.map +1 -1
  350. package/dist/core/plugins/sdk/index.js +9 -0
  351. package/dist/core/plugins/sdk/index.js.map +1 -1
  352. package/dist/core/plugins/sdk/mapViewer.d.ts +14 -0
  353. package/dist/core/plugins/sdk/mapViewer.d.ts.map +1 -0
  354. package/dist/core/plugins/sdk/mapViewer.js +13 -0
  355. package/dist/core/plugins/sdk/mapViewer.js.map +1 -0
  356. package/dist/core/plugins/sdk/messages.d.ts +33 -0
  357. package/dist/core/plugins/sdk/messages.d.ts.map +1 -0
  358. package/dist/core/plugins/sdk/messages.js +58 -0
  359. package/dist/core/plugins/sdk/messages.js.map +1 -0
  360. package/dist/core/plugins/sdk/permissions.d.ts +14 -0
  361. package/dist/core/plugins/sdk/permissions.d.ts.map +1 -0
  362. package/dist/core/plugins/sdk/permissions.js +10 -0
  363. package/dist/core/plugins/sdk/permissions.js.map +1 -0
  364. package/dist/core/plugins/sdk/pointCloudViewer.d.ts +14 -0
  365. package/dist/core/plugins/sdk/pointCloudViewer.d.ts.map +1 -0
  366. package/dist/core/plugins/sdk/pointCloudViewer.js +15 -0
  367. package/dist/core/plugins/sdk/pointCloudViewer.js.map +1 -0
  368. package/dist/core/plugins/sdk/state.d.ts +6 -0
  369. package/dist/core/plugins/sdk/state.d.ts.map +1 -0
  370. package/dist/core/plugins/sdk/state.js +30 -0
  371. package/dist/core/plugins/sdk/state.js.map +1 -0
  372. package/dist/core/plugins/sdk/store.d.ts +35 -0
  373. package/dist/core/plugins/sdk/store.d.ts.map +1 -0
  374. package/dist/core/plugins/sdk/store.js +37 -0
  375. package/dist/core/plugins/sdk/store.js.map +1 -0
  376. package/dist/core/plugins/sdk/types.d.ts +91 -51
  377. package/dist/core/plugins/sdk/types.d.ts.map +1 -1
  378. package/dist/core/plugins/sdk/types.js +17 -9
  379. package/dist/core/plugins/sdk/types.js.map +1 -1
  380. package/dist/core/plugins/sdk/ui.d.ts +12 -0
  381. package/dist/core/plugins/sdk/ui.d.ts.map +1 -0
  382. package/dist/core/plugins/sdk/ui.js +16 -0
  383. package/dist/core/plugins/sdk/ui.js.map +1 -0
  384. package/dist/core/plugins/sdk/version.d.ts +10 -0
  385. package/dist/core/plugins/sdk/version.d.ts.map +1 -0
  386. package/dist/core/plugins/sdk/version.js +5 -0
  387. package/dist/core/plugins/sdk/version.js.map +1 -0
  388. package/dist/core/plugins/sdk/viewer.d.ts +16 -0
  389. package/dist/core/plugins/sdk/viewer.d.ts.map +1 -0
  390. package/dist/core/plugins/sdk/viewer.js +5 -0
  391. package/dist/core/plugins/sdk/viewer.js.map +1 -0
  392. package/dist/core/store/BIM/context.d.ts.map +1 -1
  393. package/dist/core/store/BIM/context.js +1 -0
  394. package/dist/core/store/BIM/context.js.map +1 -1
  395. package/dist/core/store/BIM/reducer.d.ts +22 -0
  396. package/dist/core/store/BIM/reducer.d.ts.map +1 -1
  397. package/dist/core/store/BIM/reducer.js +11 -1
  398. package/dist/core/store/BIM/reducer.js.map +1 -1
  399. package/dist/core/store/CombineProviders.d.ts +5 -2
  400. package/dist/core/store/CombineProviders.d.ts.map +1 -1
  401. package/dist/core/store/CombineProviders.js +14 -5
  402. package/dist/core/store/CombineProviders.js.map +1 -1
  403. package/dist/core/store/Menus/reducer.d.ts +5 -3
  404. package/dist/core/store/Menus/reducer.d.ts.map +1 -1
  405. package/dist/core/store/Menus/reducer.js.map +1 -1
  406. package/dist/core/types/dbTypes.d.ts +6 -0
  407. package/dist/core/types/dbTypes.d.ts.map +1 -1
  408. package/dist/core/types/dbTypes.js.map +1 -1
  409. package/dist/core/types/plugins.d.ts +56 -0
  410. package/dist/core/types/plugins.d.ts.map +1 -0
  411. package/dist/core/types/plugins.js +1 -0
  412. package/dist/core/types/plugins.js.map +1 -0
  413. package/dist/core/types/tools.d.ts +9 -1
  414. package/dist/core/types/tools.d.ts.map +1 -1
  415. package/package.json +11 -1
  416. package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts +0 -10
  417. package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts.map +0 -1
  418. package/dist/core/components/viewers/map/legends/MapLegendHost.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAA;AAGvB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAG5B,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAA;AAItG,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,3 +1,12 @@
1
1
  export * from "./types";
2
+ export * from "./version";
2
3
  export * from "./components";
4
+ import { MAP_COLOUR_PALETTE, stringToColour } from "../../components/viewers/map/utils/stringToColour";
5
+ import { PLUGIN_RUNTIME_SHIMS, PLUGIN_EXTERNALS } from "../host/runtimeShims";
6
+ export {
7
+ MAP_COLOUR_PALETTE,
8
+ PLUGIN_EXTERNALS,
9
+ PLUGIN_RUNTIME_SHIMS,
10
+ stringToColour
11
+ };
3
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/core/plugins/sdk/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\n// Types\r\nexport * from './types'\r\n\r\n// Components\r\nexport * from './components'\r\n"],"mappings":"AAIA,cAAc;AAGd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nexport * from './types'\r\nexport * from './version'\r\nexport * from './components'\r\n\r\n// Colours for anything a plugin draws: a pure function and an array, no viewer library.\r\nexport { MAP_COLOUR_PALETTE, stringToColour } from '../../components/viewers/map/utils/stringToColour'\r\n\r\n// The single source the app's shim generator, the import map it publishes and\r\n// @collabdt/plugin-kit's build preset all derive from.\r\nexport { PLUGIN_RUNTIME_SHIMS, PLUGIN_EXTERNALS } from '../host/runtimeShims'\r\nexport type { RuntimeShim } from '../host/runtimeShims'\r\n"],"mappings":"AAGA,cAAc;AACd,cAAc;AACd,cAAc;AAGd,SAAS,oBAAoB,sBAAsB;AAInD,SAAS,sBAAsB,wBAAwB;","names":[]}
@@ -0,0 +1,14 @@
1
+ import type { Map as MapLibreMap } from 'maplibre-gl';
2
+ /**
3
+ * The GIS map, as a plugin sees it.
4
+ *
5
+ * Kept separate from `bimViewer` so core's own map toolbar can consume it without
6
+ * pulling `@thatopen` and three into the eager map-route bundle. Plugins can
7
+ * import either this module or the `viewer` barrel.
8
+ */
9
+ export interface MapToolProps {
10
+ /** Null until the map has finished initialising, and in non-map viewers. */
11
+ map: MapLibreMap | null;
12
+ }
13
+ export declare function useMapViewer(): MapToolProps;
14
+ //# sourceMappingURL=mapViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapViewer.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/mapViewer.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,aAAa,CAAA;AAErD;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC3B,4EAA4E;IAC5E,GAAG,EAAE,WAAW,GAAG,IAAI,CAAA;CACxB;AAED,wBAAgB,YAAY,IAAI,YAAY,CAK3C"}
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import * as React from "react";
3
+ import { MapContext } from "../../store/Map/context";
4
+ function useMapViewer() {
5
+ var _a;
6
+ const { state } = React.useContext(MapContext);
7
+ const map = (_a = state.map.map) != null ? _a : null;
8
+ return React.useMemo(() => ({ map }), [map]);
9
+ }
10
+ export {
11
+ useMapViewer
12
+ };
13
+ //# sourceMappingURL=mapViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/mapViewer.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { MapContext } from '../../store/Map/context'\r\n\r\nimport type { Map as MapLibreMap } from 'maplibre-gl'\r\n\r\n/**\r\n * The GIS map, as a plugin sees it.\r\n *\r\n * Kept separate from `bimViewer` so core's own map toolbar can consume it without\r\n * pulling `@thatopen` and three into the eager map-route bundle. Plugins can\r\n * import either this module or the `viewer` barrel.\r\n */\r\n\r\nexport interface MapToolProps {\r\n /** Null until the map has finished initialising, and in non-map viewers. */\r\n map: MapLibreMap | null\r\n}\r\n\r\nexport function useMapViewer(): MapToolProps {\r\n const { state } = React.useContext(MapContext)\r\n const map = (state.map.map as MapLibreMap | null) ?? null\r\n\r\n return React.useMemo(() => ({ map }), [map])\r\n}\r\n"],"mappings":";AAKA,YAAY,WAAW;AAEvB,SAAS,kBAAkB;AAiBpB,SAAS,eAA6B;AAxB7C;AAyBE,QAAM,EAAE,MAAM,IAAI,MAAM,WAAW,UAAU;AAC7C,QAAM,OAAO,WAAM,IAAI,QAAV,YAAwC;AAErD,SAAO,MAAM,QAAQ,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC;AAC7C;","names":[]}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Translations for plugin-supplied text.
3
+ *
4
+ * A plugin's catalog is merged under `plugins.<pluginId>`, giving the locale
5
+ * fallbacks for free. What this module adds is the last one: a plugin may ship no
6
+ * catalog, or one missing the key, and the manifest's own string is shown rather
7
+ * than `plugins.foo.name`. An untranslated plugin stays usable.
8
+ */
9
+ /** Reads `plugins.<pluginId>.<key>` out of the merged catalog, if it is there. */
10
+ declare function lookupPluginMessage(messages: Record<string, unknown> | undefined, pluginId: string, key: string): string | undefined;
11
+ /**
12
+ * One piece of plugin-supplied text, with the manifest string as the fallback.
13
+ * For anything core renders on a plugin's behalf — its name, description, a
14
+ * contributed tool's label.
15
+ */
16
+ export declare function usePluginMessage(pluginId: string, key: string, fallback: string): string;
17
+ export type PluginTranslator = (key: string, fallback?: string) => string;
18
+ /**
19
+ * A `t()` scoped to the calling plugin's namespace. Only valid inside a plugin
20
+ * subtree, so a plugin cannot read another's strings. Without a `fallback`, a
21
+ * missing key renders as `plugins.<pluginId>.<key>` rather than throwing.
22
+ */
23
+ export declare function usePluginTranslations(): PluginTranslator;
24
+ export type PluginMessageLookup = (pluginId: string, key: string, fallback: string) => string;
25
+ /**
26
+ * Text for several plugins at once, for a host rendering a list of contributions — a hook
27
+ * cannot be called per row. Host-side only; a plugin has `usePluginTranslations`.
28
+ */
29
+ export declare function usePluginMessageLookup(): PluginMessageLookup;
30
+ /** Core's own strings, kept a separate call so plugin and core text differ at the point of use. */
31
+ export declare function useCoreTranslations(namespace: string): import("use-intl")._Translator<Record<string, any>, string>;
32
+ export { lookupPluginMessage as __lookupPluginMessage };
33
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/messages.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AAEH,kFAAkF;AAClF,iBAAS,mBAAmB,CAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7C,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,SAAS,CAepB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOxF;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;AAEzE;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,gBAAgB,CAWxD;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;AAE7F;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAQ5D;AAED,mGAAmG;AACnG,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,+DAEpD;AAED,OAAO,EAAE,mBAAmB,IAAI,qBAAqB,EAAE,CAAA"}
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import { useMessages, useTranslations } from "next-intl";
3
+ import * as React from "react";
4
+ import { usePluginId } from "../host/scope";
5
+ function lookupPluginMessage(messages, pluginId, key) {
6
+ const plugins = messages == null ? void 0 : messages.plugins;
7
+ if (typeof plugins !== "object" || plugins === null) return void 0;
8
+ const own = plugins[pluginId];
9
+ if (typeof own !== "object" || own === null) return void 0;
10
+ let node = own;
11
+ for (const part of key.split(".")) {
12
+ if (typeof node !== "object" || node === null) return void 0;
13
+ node = node[part];
14
+ }
15
+ return typeof node === "string" && node.length > 0 ? node : void 0;
16
+ }
17
+ function usePluginMessage(pluginId, key, fallback) {
18
+ const messages = useMessages();
19
+ return React.useMemo(
20
+ () => {
21
+ var _a;
22
+ return (_a = lookupPluginMessage(messages, pluginId, key)) != null ? _a : fallback;
23
+ },
24
+ [messages, pluginId, key, fallback]
25
+ );
26
+ }
27
+ function usePluginTranslations() {
28
+ const pluginId = usePluginId();
29
+ const messages = useMessages();
30
+ return React.useCallback(
31
+ (key, fallback) => {
32
+ var _a, _b;
33
+ return (_b = (_a = lookupPluginMessage(messages, pluginId, key)) != null ? _a : fallback) != null ? _b : `plugins.${pluginId}.${key}`;
34
+ },
35
+ [messages, pluginId]
36
+ );
37
+ }
38
+ function usePluginMessageLookup() {
39
+ const messages = useMessages();
40
+ return React.useCallback(
41
+ (pluginId, key, fallback) => {
42
+ var _a;
43
+ return (_a = lookupPluginMessage(messages, pluginId, key)) != null ? _a : fallback;
44
+ },
45
+ [messages]
46
+ );
47
+ }
48
+ function useCoreTranslations(namespace) {
49
+ return useTranslations(namespace);
50
+ }
51
+ export {
52
+ lookupPluginMessage as __lookupPluginMessage,
53
+ useCoreTranslations,
54
+ usePluginMessage,
55
+ usePluginMessageLookup,
56
+ usePluginTranslations
57
+ };
58
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/messages.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { useMessages, useTranslations } from 'next-intl'\r\nimport * as React from 'react'\r\n\r\nimport { usePluginId } from '../host/scope'\r\n\r\n/**\r\n * Translations for plugin-supplied text.\r\n *\r\n * A plugin's catalog is merged under `plugins.<pluginId>`, giving the locale\r\n * fallbacks for free. What this module adds is the last one: a plugin may ship no\r\n * catalog, or one missing the key, and the manifest's own string is shown rather\r\n * than `plugins.foo.name`. An untranslated plugin stays usable.\r\n */\r\n\r\n/** Reads `plugins.<pluginId>.<key>` out of the merged catalog, if it is there. */\r\nfunction lookupPluginMessage(\r\n messages: Record<string, unknown> | undefined,\r\n pluginId: string,\r\n key: string,\r\n): string | undefined {\r\n const plugins = messages?.plugins\r\n if (typeof plugins !== 'object' || plugins === null) return undefined\r\n\r\n const own = (plugins as Record<string, unknown>)[pluginId]\r\n if (typeof own !== 'object' || own === null) return undefined\r\n\r\n // Dotted keys address nested groups, e.g. 'spaces.title'.\r\n let node: unknown = own\r\n for (const part of key.split('.')) {\r\n if (typeof node !== 'object' || node === null) return undefined\r\n node = (node as Record<string, unknown>)[part]\r\n }\r\n\r\n return typeof node === 'string' && node.length > 0 ? node : undefined\r\n}\r\n\r\n/**\r\n * One piece of plugin-supplied text, with the manifest string as the fallback.\r\n * For anything core renders on a plugin's behalf — its name, description, a\r\n * contributed tool's label.\r\n */\r\nexport function usePluginMessage(pluginId: string, key: string, fallback: string): string {\r\n const messages = useMessages() as Record<string, unknown> | undefined\r\n\r\n return React.useMemo(\r\n () => lookupPluginMessage(messages, pluginId, key) ?? fallback,\r\n [messages, pluginId, key, fallback],\r\n )\r\n}\r\n\r\nexport type PluginTranslator = (key: string, fallback?: string) => string\r\n\r\n/**\r\n * A `t()` scoped to the calling plugin's namespace. Only valid inside a plugin\r\n * subtree, so a plugin cannot read another's strings. Without a `fallback`, a\r\n * missing key renders as `plugins.<pluginId>.<key>` rather than throwing.\r\n */\r\nexport function usePluginTranslations(): PluginTranslator {\r\n const pluginId = usePluginId()\r\n const messages = useMessages() as Record<string, unknown> | undefined\r\n\r\n return React.useCallback(\r\n (key: string, fallback?: string) =>\r\n lookupPluginMessage(messages, pluginId, key)\r\n ?? fallback\r\n ?? `plugins.${pluginId}.${key}`,\r\n [messages, pluginId],\r\n )\r\n}\r\n\r\nexport type PluginMessageLookup = (pluginId: string, key: string, fallback: string) => string\r\n\r\n/**\r\n * Text for several plugins at once, for a host rendering a list of contributions — a hook\r\n * cannot be called per row. Host-side only; a plugin has `usePluginTranslations`.\r\n */\r\nexport function usePluginMessageLookup(): PluginMessageLookup {\r\n const messages = useMessages() as Record<string, unknown> | undefined\r\n\r\n return React.useCallback(\r\n (pluginId: string, key: string, fallback: string) =>\r\n lookupPluginMessage(messages, pluginId, key) ?? fallback,\r\n [messages],\r\n )\r\n}\r\n\r\n/** Core's own strings, kept a separate call so plugin and core text differ at the point of use. */\r\nexport function useCoreTranslations(namespace: string) {\r\n return useTranslations(namespace)\r\n}\r\n\r\nexport { lookupPluginMessage as __lookupPluginMessage }\r\n"],"mappings":";AAKA,SAAS,aAAa,uBAAuB;AAC7C,YAAY,WAAW;AAEvB,SAAS,mBAAmB;AAY5B,SAAS,oBACP,UACA,UACA,KACoB;AACpB,QAAM,UAAU,qCAAU;AAC1B,MAAI,OAAO,YAAY,YAAY,YAAY,KAAM,QAAO;AAE5D,QAAM,MAAO,QAAoC,QAAQ;AACzD,MAAI,OAAO,QAAQ,YAAY,QAAQ,KAAM,QAAO;AAGpD,MAAI,OAAgB;AACpB,aAAW,QAAQ,IAAI,MAAM,GAAG,GAAG;AACjC,QAAI,OAAO,SAAS,YAAY,SAAS,KAAM,QAAO;AACtD,WAAQ,KAAiC,IAAI;AAAA,EAC/C;AAEA,SAAO,OAAO,SAAS,YAAY,KAAK,SAAS,IAAI,OAAO;AAC9D;AAOO,SAAS,iBAAiB,UAAkB,KAAa,UAA0B;AACxF,QAAM,WAAW,YAAY;AAE7B,SAAO,MAAM;AAAA,IACX,MAAG;AAlDP;AAkDU,uCAAoB,UAAU,UAAU,GAAG,MAA3C,YAAgD;AAAA;AAAA,IACtD,CAAC,UAAU,UAAU,KAAK,QAAQ;AAAA,EACpC;AACF;AASO,SAAS,wBAA0C;AACxD,QAAM,WAAW,YAAY;AAC7B,QAAM,WAAW,YAAY;AAE7B,SAAO,MAAM;AAAA,IACX,CAAC,KAAa,aAAmB;AAnErC;AAoEM,6CAAoB,UAAU,UAAU,GAAG,MAA3C,YACG,aADH,YAEG,WAAW,QAAQ,IAAI,GAAG;AAAA;AAAA,IAC/B,CAAC,UAAU,QAAQ;AAAA,EACrB;AACF;AAQO,SAAS,yBAA8C;AAC5D,QAAM,WAAW,YAAY;AAE7B,SAAO,MAAM;AAAA,IACX,CAAC,UAAkB,KAAa,aAAkB;AArFtD;AAsFM,uCAAoB,UAAU,UAAU,GAAG,MAA3C,YAAgD;AAAA;AAAA,IAClD,CAAC,QAAQ;AAAA,EACX;AACF;AAGO,SAAS,oBAAoB,WAAmB;AACrD,SAAO,gBAAgB,SAAS;AAClC;","names":[]}
@@ -0,0 +1,14 @@
1
+ import type { MongoAbility } from '@casl/ability';
2
+ export interface PluginPermissions {
3
+ /**
4
+ * The signed-in user's CASL ability, e.g. `can('update', 'Sensor')`.
5
+ *
6
+ * Read this to hide UI the user cannot use. It is **not** a security boundary:
7
+ * the API routes re-check every action server-side, which is what actually
8
+ * enforces it. A plugin skipping this check gets a 403, not access.
9
+ */
10
+ ability: MongoAbility;
11
+ isLoading: boolean;
12
+ }
13
+ export declare function usePluginPermissions(): PluginPermissions;
14
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/permissions.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,OAAO,EAAE,YAAY,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,CAGxD"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { usePermissions } from "../../store/Permissions/context";
3
+ function usePluginPermissions() {
4
+ const { ability, isLoading } = usePermissions();
5
+ return { ability, isLoading };
6
+ }
7
+ export {
8
+ usePluginPermissions
9
+ };
10
+ //# sourceMappingURL=permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/permissions.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { usePermissions } from '../../store/Permissions/context'\r\n\r\nimport type { MongoAbility } from '@casl/ability'\r\n\r\nexport interface PluginPermissions {\r\n /**\r\n * The signed-in user's CASL ability, e.g. `can('update', 'Sensor')`.\r\n *\r\n * Read this to hide UI the user cannot use. It is **not** a security boundary:\r\n * the API routes re-check every action server-side, which is what actually\r\n * enforces it. A plugin skipping this check gets a 403, not access.\r\n */\r\n ability: MongoAbility\r\n isLoading: boolean\r\n}\r\n\r\nexport function usePluginPermissions(): PluginPermissions {\r\n const { ability, isLoading } = usePermissions()\r\n return { ability, isLoading }\r\n}\r\n"],"mappings":";AAKA,SAAS,sBAAsB;AAgBxB,SAAS,uBAA0C;AACxD,QAAM,EAAE,SAAS,UAAU,IAAI,eAAe;AAC9C,SAAO,EAAE,SAAS,UAAU;AAC9B;","names":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The point-cloud viewer, as a plugin sees it.
3
+ *
4
+ * Potree ships no type declarations, so `viewer` is deliberately `unknown`: a
5
+ * plugin narrows it itself rather than core inventing a type that could drift from
6
+ * the library.
7
+ */
8
+ export interface PointCloudToolProps {
9
+ viewer: unknown;
10
+ /** False until Potree has finished initialising. */
11
+ ready: boolean;
12
+ }
13
+ export declare function usePointCloudViewer(): PointCloudToolProps;
14
+ //# sourceMappingURL=pointCloudViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pointCloudViewer.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/pointCloudViewer.ts"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAA;IACf,oDAAoD;IACpD,KAAK,EAAE,OAAO,CAAA;CACf;AAED,wBAAgB,mBAAmB,IAAI,mBAAmB,CAQzD"}
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import * as React from "react";
3
+ import { PointCloudContext } from "../../store/PointCloud/context";
4
+ function usePointCloudViewer() {
5
+ const { state } = React.useContext(PointCloudContext);
6
+ const { viewer, ready } = state.pointcloud;
7
+ return React.useMemo(
8
+ () => ({ viewer: viewer != null ? viewer : null, ready: Boolean(ready) }),
9
+ [viewer, ready]
10
+ );
11
+ }
12
+ export {
13
+ usePointCloudViewer
14
+ };
15
+ //# sourceMappingURL=pointCloudViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/pointCloudViewer.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { PointCloudContext } from '../../store/PointCloud/context'\r\n\r\n/**\r\n * The point-cloud viewer, as a plugin sees it.\r\n *\r\n * Potree ships no type declarations, so `viewer` is deliberately `unknown`: a\r\n * plugin narrows it itself rather than core inventing a type that could drift from\r\n * the library.\r\n */\r\n\r\nexport interface PointCloudToolProps {\r\n viewer: unknown\r\n /** False until Potree has finished initialising. */\r\n ready: boolean\r\n}\r\n\r\nexport function usePointCloudViewer(): PointCloudToolProps {\r\n const { state } = React.useContext(PointCloudContext)\r\n const { viewer, ready } = state.pointcloud\r\n\r\n return React.useMemo(\r\n () => ({ viewer: viewer ?? null, ready: Boolean(ready) }),\r\n [viewer, ready],\r\n )\r\n}\r\n"],"mappings":";AAKA,YAAY,WAAW;AAEvB,SAAS,yBAAyB;AAgB3B,SAAS,sBAA2C;AACzD,QAAM,EAAE,MAAM,IAAI,MAAM,WAAW,iBAAiB;AACpD,QAAM,EAAE,QAAQ,MAAM,IAAI,MAAM;AAEhC,SAAO,MAAM;AAAA,IACX,OAAO,EAAE,QAAQ,0BAAU,MAAM,OAAO,QAAQ,KAAK,EAAE;AAAA,IACvD,CAAC,QAAQ,KAAK;AAAA,EAChB;AACF;","names":[]}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Shared state for one plugin's surfaces: in memory, scoped to the plugin, gone when it is
3
+ * disabled. `usePluginStore` is the persisted counterpart.
4
+ */
5
+ export declare function usePluginState<T>(key: string, initial: T): [T, (next: T | ((previous: T) => T)) => void];
6
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/state.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CA+B/C"}
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import * as React from "react";
3
+ import { pluginStateStore } from "../host/pluginState";
4
+ import { usePluginId } from "../host/scope";
5
+ function usePluginState(key, initial) {
6
+ const pluginId = usePluginId();
7
+ const initialRef = React.useRef(initial);
8
+ const subscribe = React.useCallback(
9
+ (listener) => pluginStateStore.subscribe(pluginId, key, listener),
10
+ [pluginId, key]
11
+ );
12
+ const getSnapshot = React.useCallback(
13
+ () => pluginStateStore.get(pluginId, key, initialRef.current),
14
+ [pluginId, key]
15
+ );
16
+ const value = React.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
17
+ const setValue = React.useCallback(
18
+ (next) => {
19
+ const previous = pluginStateStore.get(pluginId, key, initialRef.current);
20
+ const resolved = typeof next === "function" ? next(previous) : next;
21
+ pluginStateStore.set(pluginId, key, resolved);
22
+ },
23
+ [pluginId, key]
24
+ );
25
+ return [value, setValue];
26
+ }
27
+ export {
28
+ usePluginState
29
+ };
30
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/state.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { pluginStateStore } from '../host/pluginState'\r\nimport { usePluginId } from '../host/scope'\r\n\r\n/**\r\n * Shared state for one plugin's surfaces: in memory, scoped to the plugin, gone when it is\r\n * disabled. `usePluginStore` is the persisted counterpart.\r\n */\r\nexport function usePluginState<T>(\r\n key: string,\r\n initial: T,\r\n): [T, (next: T | ((previous: T) => T)) => void] {\r\n const pluginId = usePluginId()\r\n\r\n // In a ref, or a fresh `initial` literal makes getSnapshot loop.\r\n const initialRef = React.useRef(initial)\r\n\r\n const subscribe = React.useCallback(\r\n (listener: () => void) => pluginStateStore.subscribe(pluginId, key, listener),\r\n [pluginId, key],\r\n )\r\n\r\n const getSnapshot = React.useCallback(\r\n () => pluginStateStore.get(pluginId, key, initialRef.current),\r\n [pluginId, key],\r\n )\r\n\r\n const value = React.useSyncExternalStore(subscribe, getSnapshot, getSnapshot)\r\n\r\n const setValue = React.useCallback(\r\n (next: T | ((previous: T) => T)) => {\r\n const previous = pluginStateStore.get(pluginId, key, initialRef.current)\r\n const resolved = typeof next === 'function'\r\n ? (next as (previous: T) => T)(previous)\r\n : next\r\n\r\n pluginStateStore.set(pluginId, key, resolved)\r\n },\r\n [pluginId, key],\r\n )\r\n\r\n return [value, setValue]\r\n}\r\n"],"mappings":";AAKA,YAAY,WAAW;AAEvB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAMrB,SAAS,eACd,KACA,SAC+C;AAC/C,QAAM,WAAW,YAAY;AAG7B,QAAM,aAAa,MAAM,OAAO,OAAO;AAEvC,QAAM,YAAY,MAAM;AAAA,IACtB,CAAC,aAAyB,iBAAiB,UAAU,UAAU,KAAK,QAAQ;AAAA,IAC5E,CAAC,UAAU,GAAG;AAAA,EAChB;AAEA,QAAM,cAAc,MAAM;AAAA,IACxB,MAAM,iBAAiB,IAAI,UAAU,KAAK,WAAW,OAAO;AAAA,IAC5D,CAAC,UAAU,GAAG;AAAA,EAChB;AAEA,QAAM,QAAQ,MAAM,qBAAqB,WAAW,aAAa,WAAW;AAE5E,QAAM,WAAW,MAAM;AAAA,IACrB,CAAC,SAAmC;AAClC,YAAM,WAAW,iBAAiB,IAAI,UAAU,KAAK,WAAW,OAAO;AACvE,YAAM,WAAW,OAAO,SAAS,aAC5B,KAA4B,QAAQ,IACrC;AAEJ,uBAAiB,IAAI,UAAU,KAAK,QAAQ;AAAA,IAC9C;AAAA,IACA,CAAC,UAAU,GAAG;AAAA,EAChB;AAEA,SAAO,CAAC,OAAO,QAAQ;AACzB;","names":[]}
@@ -0,0 +1,35 @@
1
+ /** One stored document, as the owning plugin sees it. */
2
+ export interface PluginDocument<T> {
3
+ /** The plugin's own stable identifier for this document. */
4
+ key: string;
5
+ data: T;
6
+ updatedAt: string | Date;
7
+ }
8
+ export interface PluginStore<T> {
9
+ items: PluginDocument<T>[];
10
+ isLoading: boolean;
11
+ isError: unknown;
12
+ /** One document by key, or undefined. */
13
+ get: (key: string) => PluginDocument<T> | undefined;
14
+ /** Create or replace a document. Keyed writes are upserts, not appends. */
15
+ put: (key: string, data: T) => Promise<void>;
16
+ remove: (key: string) => Promise<void>;
17
+ }
18
+ /**
19
+ * Storage a plugin owns, without a change to CDT's database.
20
+ *
21
+ * Scoped by organization (from the session, server-side), by plugin (from the plugin
22
+ * scope, never a parameter, so no plugin can name another's namespace) and by
23
+ * collection, which the plugin picks. `key` is the plugin's own identifier — use
24
+ * something durable like an IFC GlobalId, since writing the same key replaces.
25
+ *
26
+ * ```tsx
27
+ * const spaces = usePluginStore<{ programme: string; capacity: number }>('spaces')
28
+ * await spaces.put(globalId, { programme: 'Office', capacity: 4 })
29
+ * ```
30
+ *
31
+ * Core never inspects `data`, so `T` is a declaration rather than a guarantee —
32
+ * read defensively if an older version of the plugin wrote a different shape.
33
+ */
34
+ export declare function usePluginStore<T = unknown>(collection: string): PluginStore<T>;
35
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/store.ts"],"names":[],"mappings":"AAUA,yDAAyD;AACzD,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,4DAA4D;IAC5D,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,CAAC,CAAA;IACP,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,yCAAyC;IACzC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IACnD,2EAA2E;IAC3E,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5C,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAgC9E"}
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import * as React from "react";
3
+ import { useCoreHooks } from "../../hooks/provider";
4
+ import { usePluginId } from "../host/scope";
5
+ function usePluginStore(collection) {
6
+ const pluginId = usePluginId();
7
+ const { plugin } = useCoreHooks();
8
+ const { records, isLoading, isError, put, remove } = plugin.usePluginRecords(pluginId, collection);
9
+ const items = React.useMemo(
10
+ () => records.map((record) => ({
11
+ key: record.key,
12
+ data: record.data,
13
+ updatedAt: record.updatedAt
14
+ })),
15
+ [records]
16
+ );
17
+ const byKey = React.useMemo(
18
+ () => new Map(items.map((item) => [item.key, item])),
19
+ [items]
20
+ );
21
+ return React.useMemo(() => ({
22
+ items,
23
+ isLoading,
24
+ isError,
25
+ get: (key) => byKey.get(key),
26
+ put: async (key, data) => {
27
+ await put(key, data);
28
+ },
29
+ remove: async (key) => {
30
+ await remove(key);
31
+ }
32
+ }), [items, byKey, isLoading, isError, put, remove]);
33
+ }
34
+ export {
35
+ usePluginStore
36
+ };
37
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/core/plugins/sdk/store.ts"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { useCoreHooks } from '../../hooks/provider'\r\nimport { usePluginId } from '../host/scope'\r\n\r\n/** One stored document, as the owning plugin sees it. */\r\nexport interface PluginDocument<T> {\r\n /** The plugin's own stable identifier for this document. */\r\n key: string\r\n data: T\r\n updatedAt: string | Date\r\n}\r\n\r\nexport interface PluginStore<T> {\r\n items: PluginDocument<T>[]\r\n isLoading: boolean\r\n isError: unknown\r\n /** One document by key, or undefined. */\r\n get: (key: string) => PluginDocument<T> | undefined\r\n /** Create or replace a document. Keyed writes are upserts, not appends. */\r\n put: (key: string, data: T) => Promise<void>\r\n remove: (key: string) => Promise<void>\r\n}\r\n\r\n/**\r\n * Storage a plugin owns, without a change to CDT's database.\r\n *\r\n * Scoped by organization (from the session, server-side), by plugin (from the plugin\r\n * scope, never a parameter, so no plugin can name another's namespace) and by\r\n * collection, which the plugin picks. `key` is the plugin's own identifier — use\r\n * something durable like an IFC GlobalId, since writing the same key replaces.\r\n *\r\n * ```tsx\r\n * const spaces = usePluginStore<{ programme: string; capacity: number }>('spaces')\r\n * await spaces.put(globalId, { programme: 'Office', capacity: 4 })\r\n * ```\r\n *\r\n * Core never inspects `data`, so `T` is a declaration rather than a guarantee —\r\n * read defensively if an older version of the plugin wrote a different shape.\r\n */\r\nexport function usePluginStore<T = unknown>(collection: string): PluginStore<T> {\r\n const pluginId = usePluginId()\r\n const { plugin } = useCoreHooks()\r\n\r\n const { records, isLoading, isError, put, remove } = plugin.usePluginRecords(pluginId, collection)\r\n\r\n const items = React.useMemo<PluginDocument<T>[]>(\r\n () => records.map(record => ({\r\n key: record.key,\r\n data: record.data as T,\r\n updatedAt: record.updatedAt,\r\n })),\r\n [records],\r\n )\r\n\r\n const byKey = React.useMemo(\r\n () => new Map(items.map(item => [item.key, item])),\r\n [items],\r\n )\r\n\r\n return React.useMemo<PluginStore<T>>(() => ({\r\n items,\r\n isLoading,\r\n isError,\r\n get: key => byKey.get(key),\r\n put: async (key, data) => {\r\n await put(key, data)\r\n },\r\n remove: async key => {\r\n await remove(key)\r\n },\r\n }), [items, byKey, isLoading, isError, put, remove])\r\n}\r\n"],"mappings":";AAKA,YAAY,WAAW;AAEvB,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAqCrB,SAAS,eAA4B,YAAoC;AAC9E,QAAM,WAAW,YAAY;AAC7B,QAAM,EAAE,OAAO,IAAI,aAAa;AAEhC,QAAM,EAAE,SAAS,WAAW,SAAS,KAAK,OAAO,IAAI,OAAO,iBAAiB,UAAU,UAAU;AAEjG,QAAM,QAAQ,MAAM;AAAA,IAClB,MAAM,QAAQ,IAAI,aAAW;AAAA,MAC3B,KAAK,OAAO;AAAA,MACZ,MAAM,OAAO;AAAA,MACb,WAAW,OAAO;AAAA,IACpB,EAAE;AAAA,IACF,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,QAAQ,MAAM;AAAA,IAClB,MAAM,IAAI,IAAI,MAAM,IAAI,UAAQ,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC;AAAA,IACjD,CAAC,KAAK;AAAA,EACR;AAEA,SAAO,MAAM,QAAwB,OAAO;AAAA,IAC1C;AAAA,IACA;AAAA,IACA;AAAA,IACA,KAAK,SAAO,MAAM,IAAI,GAAG;AAAA,IACzB,KAAK,OAAO,KAAK,SAAS;AACxB,YAAM,IAAI,KAAK,IAAI;AAAA,IACrB;AAAA,IACA,QAAQ,OAAM,QAAO;AACnB,YAAM,OAAO,GAAG;AAAA,IAClB;AAAA,EACF,IAAI,CAAC,OAAO,OAAO,WAAW,SAAS,KAAK,MAAM,CAAC;AACrD;","names":[]}
@@ -1,74 +1,103 @@
1
+ import type { BimToolProps } from './bimViewer';
2
+ import type { MapToolProps } from './mapViewer';
3
+ import type { PointCloudToolProps } from './pointCloudViewer';
4
+ export { ViewerNames } from '../../types/dbTypes';
5
+ import type { ViewerNames } from '../../types/dbTypes';
1
6
  import type { LucideProps } from 'lucide-react';
2
- export declare const VALID_CAPABILITIES: readonly ["sidebar.items", "viewer.panels", "map.tools", "bim.tools", "pointcloud.tools", "map.layers", "data.collections", "data.columns", "jobs", "commands", "widgets", "map.legends"];
7
+ export declare const VALID_CAPABILITIES: readonly ["data.pages", "viewer.tabs", "ui.dialogs", "map.tools", "bim.tools", "pointcloud.tools", "viewer.legends", "map.layers"];
3
8
  export type PluginCapability = typeof VALID_CAPABILITIES[number];
4
9
  export interface PluginManifest {
5
10
  slug: string;
6
11
  name: string;
7
12
  version: string;
13
+ /** The `PLUGIN_HOST_API` this plugin was built against. Omitted is warned about, not rejected. */
14
+ hostApi?: number;
8
15
  description?: string;
9
16
  author?: string;
10
17
  capabilities: PluginCapability[];
11
18
  requiredPermissions?: string[];
12
19
  configSchema?: Record<string, unknown>;
20
+ /**
21
+ * Strings keyed by locale then message key, e.g. `{ en: { title: 'Hello' } }`.
22
+ * Core folds them under `plugins.<slug>`, so `t('title')` resolves and no plugin
23
+ * can collide with another. Values may nest, addressed as `t('spaces.title')`.
24
+ */
25
+ messages?: Record<string, Record<string, unknown>>;
13
26
  }
14
27
  export declare function validateManifest(manifest: unknown): {
15
28
  valid: boolean;
16
29
  errors: string[];
17
30
  };
18
- export interface SidebarRegistration {
31
+ export interface DataPageColumn<Row> {
32
+ key: string;
33
+ /** Resolved in the plugin's own namespace, falling back to the literal string. */
34
+ labelKey: string;
35
+ render?: (row: Row) => React.ReactNode;
36
+ }
37
+ /**
38
+ * A full page in the Datasets nav, rendered by core. The plugin declares rows and columns; a
39
+ * row click opens one of its own `ui.dialogs` rather than a detail view of its own.
40
+ */
41
+ export interface DataPageRows<Row> {
42
+ rows: Row[];
43
+ isLoading?: boolean;
44
+ /** From the hook, not the registration, so it can close over `usePluginDialogs`. */
45
+ onRowClick?: (row: Row) => void;
46
+ }
47
+ export interface DataPageRegistration<Row = Record<string, unknown>> {
19
48
  id: string;
20
- label: string;
49
+ titleKey: string;
21
50
  icon: string | React.ComponentType<LucideProps>;
22
- component: React.ComponentType;
51
+ useRows: () => DataPageRows<Row>;
52
+ columns: DataPageColumn<Row>[];
53
+ /** Column keys the search box filters on. Omit to search every column. */
54
+ searchKeys?: string[];
55
+ emptyKey?: string;
56
+ }
57
+ /** Every toolbar component receives the toolbar entry core built for it. */
58
+ export interface ToolbarToolProps {
59
+ tool: unknown;
23
60
  }
24
- export interface ToolbarRegistration {
61
+ /**
62
+ * A toolbar contribution. `P` is the viewer surface the hosting toolbar passes as
63
+ * props, bound per capability by `CapabilityRegistry` — so a BIM component
64
+ * registered under `map.tools` is a compile error.
65
+ */
66
+ export interface ToolbarRegistration<P = Record<string, unknown>> {
25
67
  id: string;
26
68
  label: string;
27
69
  icon: string | React.ComponentType<LucideProps>;
28
- component: React.ComponentType<{
29
- tool: unknown;
30
- }>;
70
+ component: React.ComponentType<ToolbarToolProps & P>;
31
71
  cursor?: string;
32
72
  stayActive?: boolean;
33
73
  }
34
- export interface ViewerRegistration {
74
+ export interface ViewerTabRegistration {
35
75
  id: string;
36
- label: string;
76
+ labelKey: string;
37
77
  icon: string | React.ComponentType<LucideProps>;
38
78
  component: React.ComponentType;
79
+ /** Which viewers this tab appears in. Omit for all of them. */
80
+ viewers?: ViewerNames[];
39
81
  }
40
- export interface LayerRegistration {
82
+ /**
83
+ * A modal core owns. Registered here, opened by id from any of the plugin's surfaces via
84
+ * `usePluginDialogs()`, so it outlives whichever one opened it.
85
+ */
86
+ export interface DialogRegistration<P = Record<string, unknown>> {
41
87
  id: string;
42
- label: string;
43
- [key: string]: unknown;
44
- }
45
- export interface DataCollectionRegistration {
46
- id: string;
47
- label: string;
48
- listComponent: React.ComponentType;
49
- detailComponent?: React.ComponentType;
50
- }
51
- export interface ColumnRegistration {
52
- id: string;
53
- target: string;
54
- [key: string]: unknown;
55
- }
56
- export interface JobRegistration {
57
- id: string;
58
- cron: string;
59
- handler: () => Promise<void> | void;
60
- }
61
- export interface CommandRegistration {
62
- id: string;
63
- label?: string;
64
- handler: (...args: unknown[]) => unknown;
88
+ titleKey: string;
89
+ size?: 'sm' | 'md' | 'lg' | 'xl';
90
+ component: React.ComponentType<P & {
91
+ close: () => void;
92
+ }>;
65
93
  }
66
- export interface WidgetRegistration {
94
+ /**
95
+ * Something drawn on the map, mounted for as long as the map. Separate from `map.tools`,
96
+ * whose panel unmounts when its dropdown closes and would take the layer with it.
97
+ */
98
+ export interface MapLayerRegistration {
67
99
  id: string;
68
- label: string;
69
- component: React.ComponentType;
70
- width?: string;
71
- height?: string;
100
+ component: React.ComponentType<MapToolProps>;
72
101
  }
73
102
  export interface LegendRow {
74
103
  label: string;
@@ -78,6 +107,8 @@ export interface LegendRow {
78
107
  export interface LegendRegistration {
79
108
  id: string;
80
109
  title: string;
110
+ /** Which viewers this legend appears in. Omit for all of them. */
111
+ viewers?: ViewerNames[];
81
112
  useLegend: () => {
82
113
  active: boolean;
83
114
  title?: string;
@@ -86,18 +117,14 @@ export interface LegendRegistration {
86
117
  };
87
118
  }
88
119
  export interface CapabilityRegistry {
89
- 'sidebar.items': SidebarRegistration;
90
- 'viewer.panels': ViewerRegistration;
91
- 'map.tools': ToolbarRegistration;
92
- 'bim.tools': ToolbarRegistration;
93
- 'pointcloud.tools': ToolbarRegistration;
94
- 'map.layers': LayerRegistration;
95
- 'data.collections': DataCollectionRegistration;
96
- 'data.columns': ColumnRegistration;
97
- 'jobs': JobRegistration;
98
- 'commands': CommandRegistration;
99
- 'widgets': WidgetRegistration;
100
- 'map.legends': LegendRegistration;
120
+ 'data.pages': DataPageRegistration;
121
+ 'viewer.tabs': ViewerTabRegistration;
122
+ 'ui.dialogs': DialogRegistration;
123
+ 'map.tools': ToolbarRegistration<MapToolProps>;
124
+ 'bim.tools': ToolbarRegistration<BimToolProps>;
125
+ 'pointcloud.tools': ToolbarRegistration<PointCloudToolProps>;
126
+ 'viewer.legends': LegendRegistration;
127
+ 'map.layers': MapLayerRegistration;
101
128
  }
102
129
  export interface PluginContext {
103
130
  pluginId: string;
@@ -108,4 +135,17 @@ export interface PluginEntry {
108
135
  activate(ctx: PluginContext): void | Promise<void>;
109
136
  deactivate?(ctx: PluginContext): void | Promise<void>;
110
137
  }
138
+ /**
139
+ * One loadable plugin: its manifest plus its module, or a thunk returning it.
140
+ * Prefer the thunk when compiled in — a static import pulls the plugin's
141
+ * components into every route that reaches `installed.ts`.
142
+ */
143
+ export interface PluginSource {
144
+ manifest: PluginManifest;
145
+ entry: PluginEntry | (() => Promise<PluginEntry>);
146
+ }
147
+ /** Resolves either form of `PluginSource.entry` to the module. */
148
+ export declare function resolvePluginEntry(entry: PluginSource['entry']): Promise<PluginEntry>;
149
+ /** An array for compiled-in plugins; a thunk when the list itself must be fetched. */
150
+ export type PluginsInput = PluginSource[] | (() => Promise<PluginSource[]>);
111
151
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/plugins/sdk/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI/C,eAAO,MAAM,kBAAkB,2LAarB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAIhE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,C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