@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.
- package/dist/core/components/AppSidebarContent.d.ts +2 -3
- package/dist/core/components/AppSidebarContent.d.ts.map +1 -1
- package/dist/core/components/AppSidebarContent.js +12 -3
- package/dist/core/components/AppSidebarContent.js.map +1 -1
- package/dist/core/components/Toolbar.d.ts +2 -3
- package/dist/core/components/Toolbar.d.ts.map +1 -1
- package/dist/core/components/Toolbar.js.map +1 -1
- package/dist/core/components/ui/AppSidebar.d.ts +2 -2
- package/dist/core/components/ui/AppSidebar.d.ts.map +1 -1
- package/dist/core/components/ui/AppSidebar.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.js +10 -9
- package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.js +24 -23
- package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts +6 -5
- package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/TabStrip.js +6 -4
- package/dist/core/components/ui/ViewerSidebar/TabStrip.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts +16 -9
- package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/sidebarTabs.js.map +1 -1
- package/dist/core/components/viewers/Data/DataMenu.js +1 -1
- package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
- package/dist/core/components/viewers/Data/utils/viewerConfig.js +1 -1
- package/dist/core/components/viewers/Data/utils/viewerConfig.js.map +1 -1
- package/dist/core/components/viewers/Viewer.d.ts.map +1 -1
- package/dist/core/components/viewers/Viewer.js +21 -7
- package/dist/core/components/viewers/Viewer.js.map +1 -1
- package/dist/core/components/viewers/bim/BimViewer.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/BimViewer.js +10 -1
- package/dist/core/components/viewers/bim/BimViewer.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/index.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js +5 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts +10 -1
- package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/ElementAppearance.js +36 -1
- package/dist/core/components/viewers/bim/src/ElementAppearance.js.map +1 -1
- package/dist/core/components/viewers/bim/src/ModelsSync.d.ts +17 -0
- package/dist/core/components/viewers/bim/src/ModelsSync.d.ts.map +1 -0
- package/dist/core/components/viewers/bim/src/ModelsSync.js +36 -0
- package/dist/core/components/viewers/bim/src/ModelsSync.js.map +1 -0
- package/dist/core/components/viewers/bim/src/SelectionSync.d.ts +15 -0
- package/dist/core/components/viewers/bim/src/SelectionSync.d.ts.map +1 -0
- package/dist/core/components/viewers/bim/src/SelectionSync.js +24 -0
- package/dist/core/components/viewers/bim/src/SelectionSync.js.map +1 -0
- package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts +12 -1
- package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js +18 -2
- package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/bimCamera.d.ts +17 -0
- package/dist/core/components/viewers/bim/src/lib/bimCamera.d.ts.map +1 -0
- package/dist/core/components/viewers/bim/src/lib/bimCamera.js +16 -0
- package/dist/core/components/viewers/bim/src/lib/bimCamera.js.map +1 -0
- package/dist/core/components/viewers/bim/src/lib/bimItemActions.d.ts +13 -0
- package/dist/core/components/viewers/bim/src/lib/bimItemActions.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/bimItemActions.js +13 -0
- package/dist/core/components/viewers/bim/src/lib/bimItemActions.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/bimQueries.d.ts +26 -0
- package/dist/core/components/viewers/bim/src/lib/bimQueries.d.ts.map +1 -0
- package/dist/core/components/viewers/bim/src/lib/bimQueries.js +72 -0
- package/dist/core/components/viewers/bim/src/lib/bimQueries.js.map +1 -0
- package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useFilePlacement.d.ts +1 -1
- package/dist/core/components/viewers/bim/src/tools/bimToolbar.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/tools/bimToolbar.js +7 -1
- package/dist/core/components/viewers/bim/src/tools/bimToolbar.js.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.d.ts.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.js +6 -3
- package/dist/core/components/viewers/map/MapViewer.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.js +90 -20
- package/dist/core/components/viewers/map/datasets/RowActions.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.d.ts +1 -2
- package/dist/core/components/viewers/map/datasets/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.js +13 -104
- package/dist/core/components/viewers/map/datasets/index.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.d.ts +1 -1
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.js +5 -8
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/orgVisibility.d.ts +16 -0
- package/dist/core/components/viewers/map/datasets/src/orgVisibility.d.ts.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/orgVisibility.js +21 -0
- package/dist/core/components/viewers/map/datasets/src/orgVisibility.js.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.d.ts +28 -0
- package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.d.ts.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.js +80 -0
- package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.js.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.d.ts +27 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.js +53 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.js.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js +102 -100
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/index.js +5 -1
- package/dist/core/components/viewers/map/src/MapSidebar/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js +2 -34
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts +3 -11
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js +28 -13
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.d.ts +1 -2
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js +1 -2
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts +1 -2
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js +1 -2
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/mapTools.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/mapTools.js +28 -1
- package/dist/core/components/viewers/map/src/tools/mapTools.js.map +1 -1
- package/dist/core/components/viewers/map/utils/stringToColour.d.ts +3 -0
- package/dist/core/components/viewers/map/utils/stringToColour.d.ts.map +1 -1
- package/dist/core/components/viewers/map/utils/stringToColour.js +72 -70
- package/dist/core/components/viewers/map/utils/stringToColour.js.map +1 -1
- package/dist/core/components/viewers/plugins/PluginsManager.d.ts +20 -0
- package/dist/core/components/viewers/plugins/PluginsManager.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/PluginsManager.js +245 -0
- package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -0
- package/dist/core/components/viewers/plugins/src/PluginCard.d.ts +14 -0
- package/dist/core/components/viewers/plugins/src/PluginCard.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/src/PluginCard.js +239 -0
- package/dist/core/components/viewers/plugins/src/PluginCard.js.map +1 -0
- package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts +9 -0
- package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/src/pluginStatus.js +10 -0
- package/dist/core/components/viewers/plugins/src/pluginStatus.js.map +1 -0
- package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts +14 -0
- package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/src/useMountedPlugins.js +24 -0
- package/dist/core/components/viewers/plugins/src/useMountedPlugins.js.map +1 -0
- package/dist/core/components/viewers/plugins/src/usePluginEnablement.d.ts +16 -0
- package/dist/core/components/viewers/plugins/src/usePluginEnablement.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/src/usePluginEnablement.js +18 -0
- package/dist/core/components/viewers/plugins/src/usePluginEnablement.js.map +1 -0
- package/dist/core/components/viewers/plugins/src/usePluginsData.d.ts +22 -0
- package/dist/core/components/viewers/plugins/src/usePluginsData.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/src/usePluginsData.js +81 -0
- package/dist/core/components/viewers/plugins/src/usePluginsData.js.map +1 -0
- package/dist/core/components/viewers/plugins/types.d.ts +66 -0
- package/dist/core/components/viewers/plugins/types.d.ts.map +1 -0
- package/dist/core/components/viewers/plugins/types.js +1 -0
- package/dist/core/components/viewers/plugins/types.js.map +1 -0
- package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js +2 -2
- package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.d.ts.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js +5 -1
- package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/tools/index.d.ts +1 -1
- package/dist/core/components/viewers/pointcloud/src/tools/index.d.ts.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/tools/index.js +3 -2
- package/dist/core/components/viewers/pointcloud/src/tools/index.js.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.d.ts +10 -1
- package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.d.ts.map +1 -1
- package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.js +11 -3
- package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.js.map +1 -1
- package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts +10 -0
- package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts.map +1 -0
- package/dist/core/components/viewers/{map/legends/MapLegendHost.js → shared/legends/ViewerLegendHost.js} +48 -10
- package/dist/core/components/viewers/shared/legends/ViewerLegendHost.js.map +1 -0
- package/dist/core/components/viewers/viewerAccess.d.ts +7 -0
- package/dist/core/components/viewers/viewerAccess.d.ts.map +1 -0
- package/dist/core/components/viewers/viewerAccess.js +9 -0
- package/dist/core/components/viewers/viewerAccess.js.map +1 -0
- package/dist/core/hooks/plugins/createPluginHooks.d.ts +40 -0
- package/dist/core/hooks/plugins/createPluginHooks.d.ts.map +1 -0
- package/dist/core/hooks/plugins/createPluginHooks.js +71 -0
- package/dist/core/hooks/plugins/createPluginHooks.js.map +1 -0
- package/dist/core/hooks/plugins/plugins.d.ts +18 -0
- package/dist/core/hooks/plugins/plugins.d.ts.map +1 -0
- package/dist/core/hooks/plugins/plugins.js +10 -0
- package/dist/core/hooks/plugins/plugins.js.map +1 -0
- package/dist/core/hooks/ports/apiAdapter.d.ts +9 -0
- package/dist/core/hooks/ports/apiAdapter.d.ts.map +1 -1
- package/dist/core/hooks/provider.d.ts +2 -0
- package/dist/core/hooks/provider.d.ts.map +1 -1
- package/dist/core/hooks/provider.js +3 -1
- package/dist/core/hooks/provider.js.map +1 -1
- package/dist/core/i18n/index.d.ts +6 -0
- package/dist/core/i18n/index.d.ts.map +1 -1
- package/dist/core/i18n/index.js +29 -1
- package/dist/core/i18n/index.js.map +1 -1
- package/dist/core/i18n/messages/en.json +86 -4
- package/dist/core/i18n/messages/es.json +87 -5
- package/dist/core/i18n/messages/fr.json +86 -4
- package/dist/core/plugins/enablement.d.ts +50 -0
- package/dist/core/plugins/enablement.d.ts.map +1 -0
- package/dist/core/plugins/enablement.js +37 -0
- package/dist/core/plugins/enablement.js.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts +13 -0
- package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpaceDialog.js +80 -0
- package/dist/core/plugins/hello-bim/components/SpaceDialog.js.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts +11 -0
- package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesLegend.js +16 -0
- package/dist/core/plugins/hello-bim/components/SpacesLegend.js.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts +4 -0
- package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesTab.js +211 -0
- package/dist/core/plugins/hello-bim/components/SpacesTab.js.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts +8 -0
- package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/components/SpacesTool.js +68 -0
- package/dist/core/plugins/hello-bim/components/SpacesTool.js.map +1 -0
- package/dist/core/plugins/hello-bim/components/icons.d.ts +13 -0
- package/dist/core/plugins/hello-bim/components/icons.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/components/icons.js +52 -0
- package/dist/core/plugins/hello-bim/components/icons.js.map +1 -0
- package/dist/core/plugins/hello-bim/index.d.ts +7 -0
- package/dist/core/plugins/hello-bim/index.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/index.js +38 -0
- package/dist/core/plugins/hello-bim/index.js.map +1 -0
- package/dist/core/plugins/hello-bim/manifest.json +127 -0
- package/dist/core/plugins/hello-bim/spaces.d.ts +57 -0
- package/dist/core/plugins/hello-bim/spaces.d.ts.map +1 -0
- package/dist/core/plugins/hello-bim/spaces.js +207 -0
- package/dist/core/plugins/hello-bim/spaces.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MapTool.d.ts +9 -0
- package/dist/core/plugins/hello-map/components/MapTool.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MapTool.js +78 -0
- package/dist/core/plugins/hello-map/components/MapTool.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts +9 -0
- package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkerDialog.js +47 -0
- package/dist/core/plugins/hello-map/components/MarkerDialog.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts +8 -0
- package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersLayer.js +133 -0
- package/dist/core/plugins/hello-map/components/MarkersLayer.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts +11 -0
- package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersLegend.js +20 -0
- package/dist/core/plugins/hello-map/components/MarkersLegend.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersPage.d.ts +6 -0
- package/dist/core/plugins/hello-map/components/MarkersPage.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersPage.js +40 -0
- package/dist/core/plugins/hello-map/components/MarkersPage.js.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersTab.d.ts +4 -0
- package/dist/core/plugins/hello-map/components/MarkersTab.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/components/MarkersTab.js +275 -0
- package/dist/core/plugins/hello-map/components/MarkersTab.js.map +1 -0
- package/dist/core/plugins/hello-map/index.d.ts +7 -0
- package/dist/core/plugins/hello-map/index.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/index.js +54 -0
- package/dist/core/plugins/hello-map/index.js.map +1 -0
- package/dist/core/plugins/hello-map/manifest.json +129 -0
- package/dist/core/plugins/hello-map/markers.d.ts +32 -0
- package/dist/core/plugins/hello-map/markers.d.ts.map +1 -0
- package/dist/core/plugins/hello-map/markers.js +143 -0
- package/dist/core/plugins/hello-map/markers.js.map +1 -0
- package/dist/core/plugins/host/PluginDataPageHost.d.ts +10 -0
- package/dist/core/plugins/host/PluginDataPageHost.d.ts.map +1 -0
- package/dist/core/plugins/host/PluginDataPageHost.js +142 -0
- package/dist/core/plugins/host/PluginDataPageHost.js.map +1 -0
- package/dist/core/plugins/host/PluginDialogHost.d.ts +7 -0
- package/dist/core/plugins/host/PluginDialogHost.d.ts.map +1 -0
- package/dist/core/plugins/host/PluginDialogHost.js +80 -0
- package/dist/core/plugins/host/PluginDialogHost.js.map +1 -0
- package/dist/core/plugins/host/PluginMapLayerHost.d.ts +6 -0
- package/dist/core/plugins/host/PluginMapLayerHost.d.ts.map +1 -0
- package/dist/core/plugins/host/PluginMapLayerHost.js +26 -0
- package/dist/core/plugins/host/PluginMapLayerHost.js.map +1 -0
- package/dist/core/plugins/host/context.d.ts.map +1 -1
- package/dist/core/plugins/host/context.js.map +1 -1
- package/dist/core/plugins/host/dialogs.d.ts +25 -0
- package/dist/core/plugins/host/dialogs.d.ts.map +1 -0
- package/dist/core/plugins/host/dialogs.js +50 -0
- package/dist/core/plugins/host/dialogs.js.map +1 -0
- package/dist/core/plugins/host/errors.d.ts +11 -0
- package/dist/core/plugins/host/errors.d.ts.map +1 -1
- package/dist/core/plugins/host/errors.js +22 -1
- package/dist/core/plugins/host/errors.js.map +1 -1
- package/dist/core/plugins/host/host.d.ts +7 -0
- package/dist/core/plugins/host/host.d.ts.map +1 -1
- package/dist/core/plugins/host/host.js +64 -8
- package/dist/core/plugins/host/host.js.map +1 -1
- package/dist/core/plugins/host/pluginKit.tsconfig.json +45 -0
- package/dist/core/plugins/host/pluginState.d.ts +28 -0
- package/dist/core/plugins/host/pluginState.d.ts.map +1 -0
- package/dist/core/plugins/host/pluginState.js +49 -0
- package/dist/core/plugins/host/pluginState.js.map +1 -0
- package/dist/core/plugins/host/pluginViewerKey.d.ts +13 -0
- package/dist/core/plugins/host/pluginViewerKey.d.ts.map +1 -0
- package/dist/core/plugins/host/pluginViewerKey.js +18 -0
- package/dist/core/plugins/host/pluginViewerKey.js.map +1 -0
- package/dist/core/plugins/host/provider.d.ts +37 -2
- package/dist/core/plugins/host/provider.d.ts.map +1 -1
- package/dist/core/plugins/host/provider.js +97 -10
- package/dist/core/plugins/host/provider.js.map +1 -1
- package/dist/core/plugins/host/registry.d.ts +14 -0
- package/dist/core/plugins/host/registry.d.ts.map +1 -1
- package/dist/core/plugins/host/registry.js +37 -4
- package/dist/core/plugins/host/registry.js.map +1 -1
- package/dist/core/plugins/host/runtimeShims.d.ts +15 -0
- package/dist/core/plugins/host/runtimeShims.d.ts.map +1 -0
- package/dist/core/plugins/host/runtimeShims.js +132 -0
- package/dist/core/plugins/host/runtimeShims.js.map +1 -0
- package/dist/core/plugins/host/scope.d.ts +21 -0
- package/dist/core/plugins/host/scope.d.ts.map +1 -0
- package/dist/core/plugins/host/scope.js +36 -0
- package/dist/core/plugins/host/scope.js.map +1 -0
- package/dist/core/plugins/host/usePluginDataPages.d.ts +15 -0
- package/dist/core/plugins/host/usePluginDataPages.d.ts.map +1 -0
- package/dist/core/plugins/host/usePluginDataPages.js +22 -0
- package/dist/core/plugins/host/usePluginDataPages.js.map +1 -0
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts +18 -0
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts.map +1 -0
- package/dist/core/plugins/host/usePluginToolbarTools.js +93 -0
- package/dist/core/plugins/host/usePluginToolbarTools.js.map +1 -0
- package/dist/core/plugins/host/usePluginViewerTabs.d.ts +11 -0
- package/dist/core/plugins/host/usePluginViewerTabs.d.ts.map +1 -0
- package/dist/core/plugins/host/usePluginViewerTabs.js +41 -0
- package/dist/core/plugins/host/usePluginViewerTabs.js.map +1 -0
- package/dist/core/plugins/installed.d.ts +14 -11
- package/dist/core/plugins/installed.d.ts.map +1 -1
- package/dist/core/plugins/installed.js +10 -1
- package/dist/core/plugins/installed.js.map +1 -1
- package/dist/core/plugins/manifests.d.ts +11 -0
- package/dist/core/plugins/manifests.d.ts.map +1 -0
- package/dist/core/plugins/manifests.js +10 -0
- package/dist/core/plugins/manifests.js.map +1 -0
- package/dist/core/plugins/messages.d.ts +15 -0
- package/dist/core/plugins/messages.d.ts.map +1 -0
- package/dist/core/plugins/messages.js +20 -0
- package/dist/core/plugins/messages.js.map +1 -0
- package/dist/core/plugins/sdk/bimViewer.d.ts +64 -0
- package/dist/core/plugins/sdk/bimViewer.d.ts.map +1 -0
- package/dist/core/plugins/sdk/bimViewer.js +66 -0
- package/dist/core/plugins/sdk/bimViewer.js.map +1 -0
- package/dist/core/plugins/sdk/config.d.ts +10 -0
- package/dist/core/plugins/sdk/config.d.ts.map +1 -0
- package/dist/core/plugins/sdk/config.js +7 -0
- package/dist/core/plugins/sdk/config.js.map +1 -0
- package/dist/core/plugins/sdk/data.d.ts +22 -0
- package/dist/core/plugins/sdk/data.d.ts.map +1 -0
- package/dist/core/plugins/sdk/data.js +68 -0
- package/dist/core/plugins/sdk/data.js.map +1 -0
- package/dist/core/plugins/sdk/index.d.ts +4 -0
- package/dist/core/plugins/sdk/index.d.ts.map +1 -1
- package/dist/core/plugins/sdk/index.js +9 -0
- package/dist/core/plugins/sdk/index.js.map +1 -1
- package/dist/core/plugins/sdk/mapViewer.d.ts +14 -0
- package/dist/core/plugins/sdk/mapViewer.d.ts.map +1 -0
- package/dist/core/plugins/sdk/mapViewer.js +13 -0
- package/dist/core/plugins/sdk/mapViewer.js.map +1 -0
- package/dist/core/plugins/sdk/messages.d.ts +33 -0
- package/dist/core/plugins/sdk/messages.d.ts.map +1 -0
- package/dist/core/plugins/sdk/messages.js +58 -0
- package/dist/core/plugins/sdk/messages.js.map +1 -0
- package/dist/core/plugins/sdk/permissions.d.ts +14 -0
- package/dist/core/plugins/sdk/permissions.d.ts.map +1 -0
- package/dist/core/plugins/sdk/permissions.js +10 -0
- package/dist/core/plugins/sdk/permissions.js.map +1 -0
- package/dist/core/plugins/sdk/pointCloudViewer.d.ts +14 -0
- package/dist/core/plugins/sdk/pointCloudViewer.d.ts.map +1 -0
- package/dist/core/plugins/sdk/pointCloudViewer.js +15 -0
- package/dist/core/plugins/sdk/pointCloudViewer.js.map +1 -0
- package/dist/core/plugins/sdk/state.d.ts +6 -0
- package/dist/core/plugins/sdk/state.d.ts.map +1 -0
- package/dist/core/plugins/sdk/state.js +30 -0
- package/dist/core/plugins/sdk/state.js.map +1 -0
- package/dist/core/plugins/sdk/store.d.ts +35 -0
- package/dist/core/plugins/sdk/store.d.ts.map +1 -0
- package/dist/core/plugins/sdk/store.js +37 -0
- package/dist/core/plugins/sdk/store.js.map +1 -0
- package/dist/core/plugins/sdk/types.d.ts +91 -51
- package/dist/core/plugins/sdk/types.d.ts.map +1 -1
- package/dist/core/plugins/sdk/types.js +17 -9
- package/dist/core/plugins/sdk/types.js.map +1 -1
- package/dist/core/plugins/sdk/ui.d.ts +12 -0
- package/dist/core/plugins/sdk/ui.d.ts.map +1 -0
- package/dist/core/plugins/sdk/ui.js +16 -0
- package/dist/core/plugins/sdk/ui.js.map +1 -0
- package/dist/core/plugins/sdk/version.d.ts +10 -0
- package/dist/core/plugins/sdk/version.d.ts.map +1 -0
- package/dist/core/plugins/sdk/version.js +5 -0
- package/dist/core/plugins/sdk/version.js.map +1 -0
- package/dist/core/plugins/sdk/viewer.d.ts +16 -0
- package/dist/core/plugins/sdk/viewer.d.ts.map +1 -0
- package/dist/core/plugins/sdk/viewer.js +5 -0
- package/dist/core/plugins/sdk/viewer.js.map +1 -0
- package/dist/core/store/BIM/context.d.ts.map +1 -1
- package/dist/core/store/BIM/context.js +1 -0
- package/dist/core/store/BIM/context.js.map +1 -1
- package/dist/core/store/BIM/reducer.d.ts +22 -0
- package/dist/core/store/BIM/reducer.d.ts.map +1 -1
- package/dist/core/store/BIM/reducer.js +11 -1
- package/dist/core/store/BIM/reducer.js.map +1 -1
- package/dist/core/store/CombineProviders.d.ts +5 -2
- package/dist/core/store/CombineProviders.d.ts.map +1 -1
- package/dist/core/store/CombineProviders.js +14 -5
- package/dist/core/store/CombineProviders.js.map +1 -1
- package/dist/core/store/Menus/reducer.d.ts +5 -3
- package/dist/core/store/Menus/reducer.d.ts.map +1 -1
- package/dist/core/store/Menus/reducer.js.map +1 -1
- package/dist/core/types/dbTypes.d.ts +6 -0
- package/dist/core/types/dbTypes.d.ts.map +1 -1
- package/dist/core/types/dbTypes.js.map +1 -1
- package/dist/core/types/plugins.d.ts +56 -0
- package/dist/core/types/plugins.d.ts.map +1 -0
- package/dist/core/types/plugins.js +1 -0
- package/dist/core/types/plugins.js.map +1 -0
- package/dist/core/types/tools.d.ts +9 -1
- package/dist/core/types/tools.d.ts.map +1 -1
- package/package.json +11 -1
- package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts +0 -10
- package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts.map +0 -1
- package/dist/core/components/viewers/map/legends/MapLegendHost.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ToolbarBody } from "../../ToolbarBody";
|
|
4
|
-
import {
|
|
4
|
+
import { usePointCloudToolbarTools } from "./src/tools";
|
|
5
5
|
function PointCloudToolbar() {
|
|
6
|
-
return /* @__PURE__ */ jsx(ToolbarBody, { viewer: "pointcloud", tools:
|
|
6
|
+
return /* @__PURE__ */ jsx(ToolbarBody, { viewer: "pointcloud", tools: usePointCloudToolbarTools() });
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
PointCloudToolbar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/core/components/viewers/pointcloud/PointCloudToolbar.tsx"],"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 { ToolbarBody } from '../../ToolbarBody'\r\n\r\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../../src/core/components/viewers/pointcloud/PointCloudToolbar.tsx"],"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 { ToolbarBody } from '../../ToolbarBody'\r\n\r\nimport { usePointCloudToolbarTools } from './src/tools'\r\n\r\nexport function PointCloudToolbar() {\r\n return <ToolbarBody viewer=\"pointcloud\" tools={usePointCloudToolbarTools()} />\r\n}\r\n"],"mappings":";AAYS;AALT,SAAS,mBAAmB;AAE5B,SAAS,iCAAiC;AAEnC,SAAS,oBAAoB;AAClC,SAAO,oBAAC,eAAY,QAAO,cAAa,OAAO,0BAA0B,GAAG;AAC9E;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/PointCloudSidebar/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/PointCloudSidebar/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,wBAAgB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,EAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,YAAY,CAAA;CAAE,qBAU/H"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ViewerSidebarShell } from "../../../../../components/ui/ViewerSidebar/Shell";
|
|
4
|
+
import { usePluginViewerTabs } from "../../../../../plugins/host/usePluginViewerTabs";
|
|
5
|
+
import { ViewerNames } from "../../../../../types/dbTypes";
|
|
4
6
|
import { FileTab } from "./src/FileTab";
|
|
5
7
|
import { SettingsTab } from "./src/SettingsTab";
|
|
6
8
|
function PointCloudSidebar({ pointcloudApiUrl, organization }) {
|
|
9
|
+
const pluginTabs = usePluginViewerTabs(ViewerNames.pointcloud);
|
|
7
10
|
const tabs = [
|
|
8
11
|
{ id: "file", content: /* @__PURE__ */ jsx(FileTab, { pointcloudApiUrl }) },
|
|
9
|
-
{ id: "settings", content: /* @__PURE__ */ jsx(SettingsTab, {}) }
|
|
12
|
+
{ id: "settings", content: /* @__PURE__ */ jsx(SettingsTab, {}) },
|
|
13
|
+
...pluginTabs
|
|
10
14
|
];
|
|
11
15
|
return /* @__PURE__ */ jsx(ViewerSidebarShell, { tabs, organization });
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/PointCloudSidebar/index.tsx"],"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 { ViewerSidebarShell } from '../../../../../components/ui/ViewerSidebar/Shell'\r\n\r\nimport { FileTab } from './src/FileTab'\r\nimport { SettingsTab } from './src/SettingsTab'\r\n\r\nimport type { ViewerSidebarTab } from '../../../../../components/ui/ViewerSidebar/sidebarTabs'\r\nimport type { Organization } from '../../../../../types/dbTypes'\r\n\r\nexport function PointCloudSidebar({ pointcloudApiUrl, organization }: { pointcloudApiUrl?: string; organization?: Organization }) {\r\n const tabs: ViewerSidebarTab[] = [\r\n { id: 'file', content: <FileTab pointcloudApiUrl={pointcloudApiUrl} /> },\r\n { id: 'settings', content: <SettingsTab /> },\r\n ]\r\n\r\n return <ViewerSidebarShell tabs={tabs} organization={organization} />\r\n}\r\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/PointCloudSidebar/index.tsx"],"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 { ViewerSidebarShell } from '../../../../../components/ui/ViewerSidebar/Shell'\r\nimport { usePluginViewerTabs } from '../../../../../plugins/host/usePluginViewerTabs'\r\nimport { ViewerNames } from '../../../../../types/dbTypes'\r\n\r\nimport { FileTab } from './src/FileTab'\r\nimport { SettingsTab } from './src/SettingsTab'\r\n\r\nimport type { ViewerSidebarTab } from '../../../../../components/ui/ViewerSidebar/sidebarTabs'\r\nimport type { Organization } from '../../../../../types/dbTypes'\r\n\r\nexport function PointCloudSidebar({ pointcloudApiUrl, organization }: { pointcloudApiUrl?: string; organization?: Organization }) {\r\n const pluginTabs = usePluginViewerTabs(ViewerNames.pointcloud)\r\n\r\n const tabs: ViewerSidebarTab[] = [\r\n { id: 'file', content: <FileTab pointcloudApiUrl={pointcloudApiUrl} /> },\r\n { id: 'settings', content: <SettingsTab /> },\r\n ...pluginTabs,\r\n ]\r\n\r\n return <ViewerSidebarShell tabs={tabs} organization={organization} />\r\n}\r\n"],"mappings":";AAqB2B;AAd3B,SAAS,0BAA0B;AACnC,SAAS,2BAA2B;AACpC,SAAS,mBAAmB;AAE5B,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAKrB,SAAS,kBAAkB,EAAE,kBAAkB,aAAa,GAA+D;AAChI,QAAM,aAAa,oBAAoB,YAAY,UAAU;AAE7D,QAAM,OAA2B;AAAA,IAC/B,EAAE,IAAI,QAAQ,SAAS,oBAAC,WAAQ,kBAAoC,EAAG;AAAA,IACvE,EAAE,IAAI,YAAY,SAAS,oBAAC,eAAY,EAAG;AAAA,IAC3C,GAAG;AAAA,EACL;AAEA,SAAO,oBAAC,sBAAmB,MAAY,cAA4B;AACrE;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SharePointCloudTool } from './SharePointCloudTool';
|
|
2
2
|
export { MeasurePointCloudTool } from './MeasureTools/MeasurePointCloudTool';
|
|
3
3
|
export { ClippingTool } from './ClippingTools/ClippingTool';
|
|
4
|
-
export { pointcloudToolbarTools } from './pointcloudToolbarTools';
|
|
4
|
+
export { usePointCloudToolbarTools, pointcloudToolbarTools } from './pointcloudToolbarTools';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SharePointCloudTool } from "./SharePointCloudTool";
|
|
2
2
|
import { MeasurePointCloudTool } from "./MeasureTools/MeasurePointCloudTool";
|
|
3
3
|
import { ClippingTool } from "./ClippingTools/ClippingTool";
|
|
4
|
-
import { pointcloudToolbarTools } from "./pointcloudToolbarTools";
|
|
4
|
+
import { usePointCloudToolbarTools, pointcloudToolbarTools } from "./pointcloudToolbarTools";
|
|
5
5
|
export {
|
|
6
6
|
ClippingTool,
|
|
7
7
|
MeasurePointCloudTool,
|
|
8
8
|
SharePointCloudTool,
|
|
9
|
-
pointcloudToolbarTools
|
|
9
|
+
pointcloudToolbarTools,
|
|
10
|
+
usePointCloudToolbarTools
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nexport { SharePointCloudTool } from './SharePointCloudTool'\r\nexport { MeasurePointCloudTool } from './MeasureTools/MeasurePointCloudTool'\r\nexport { ClippingTool } from './ClippingTools/ClippingTool'\r\nexport { pointcloudToolbarTools } from './pointcloudToolbarTools'\r\n"],"mappings":"AAGA,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,8BAA8B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nexport { SharePointCloudTool } from './SharePointCloudTool'\r\nexport { MeasurePointCloudTool } from './MeasureTools/MeasurePointCloudTool'\r\nexport { ClippingTool } from './ClippingTools/ClippingTool'\r\nexport { usePointCloudToolbarTools, pointcloudToolbarTools } from './pointcloudToolbarTools'\r\n"],"mappings":"AAGA,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,2BAA2B,8BAA8B;","names":[]}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { Tool } from '../../../../../types/tools';
|
|
2
2
|
export type PointCloudToolType = 'pc-clip-tool' | 'pc-fit-to-screen-tool' | 'pc-add-tool' | 'pc-dimensions-tool' | 'pc-set-camera-option' | 'pc-share-tool';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Point-cloud toolbar tool definitions.
|
|
5
|
+
*
|
|
6
|
+
* Named as a hook because it calls `useTranslations` and now the plugin hooks, so
|
|
7
|
+
* it has to run during a component render like any other hook. Same rename the
|
|
8
|
+
* map and BIM toolbars already went through.
|
|
9
|
+
*/
|
|
10
|
+
export declare function usePointCloudToolbarTools(): Tool[];
|
|
11
|
+
/** @deprecated Renamed to usePointCloudToolbarTools; it is a hook and must be called during render. */
|
|
12
|
+
export declare const pointcloudToolbarTools: typeof usePointCloudToolbarTools;
|
|
4
13
|
//# sourceMappingURL=pointcloudToolbarTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointcloudToolbarTools.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pointcloudToolbarTools.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,GAAG,oBAAoB,GAAG,sBAAsB,GAAG,eAAe,CAAA;AAE3J;;;;;;GAMG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,EAAE,CAmBlD;AAED,uGAAuG;AACvG,eAAO,MAAM,sBAAsB,kCAA4B,CAAA"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import * as LR from "lucide-react";
|
|
2
2
|
import { useTranslations } from "next-intl";
|
|
3
|
+
import { usePluginToolbarTools } from "../../../../../plugins/host/usePluginToolbarTools";
|
|
4
|
+
import { usePointCloudViewer } from "../../../../../plugins/sdk/pointCloudViewer";
|
|
3
5
|
import { ClippingTool } from "./ClippingTools/ClippingTool";
|
|
4
6
|
import FitToScreen from "./FitToScreen";
|
|
5
7
|
import { MeasurePointCloudTool } from "./MeasureTools/MeasurePointCloudTool";
|
|
6
8
|
import SetCameraOption from "./SetCameraOption";
|
|
7
9
|
import { SharePointCloudTool } from "./SharePointCloudTool";
|
|
8
|
-
function
|
|
10
|
+
function usePointCloudToolbarTools() {
|
|
9
11
|
const t = useTranslations("pointcloudToolbarTools");
|
|
12
|
+
const viewer = usePointCloudViewer();
|
|
13
|
+
const pluginTools = usePluginToolbarTools("pointcloud.tools", viewer);
|
|
10
14
|
return [
|
|
11
15
|
{ id: "pc-clip-tool", title: t("clipTitle"), icon: LR.Crop, component: ClippingTool, disabled: true },
|
|
12
16
|
{ id: "pc-fit-to-screen-tool", title: "Fit to screen", icon: LR.Fullscreen, component: FitToScreen },
|
|
13
17
|
// { id: 'pc-add-tool', title: t('addTitle'), icon: LR.Plus, component: GenericTool, disabled: true },
|
|
14
18
|
{ id: "pc-dimensions-tool", title: t("dimensionsTitle"), icon: LR.Ruler, component: MeasurePointCloudTool },
|
|
15
19
|
{ id: "pc-set-camera-option", title: "Camera Options", icon: LR.Video, component: SetCameraOption },
|
|
16
|
-
{ id: "pc-share-tool", title: t("shareTitle"), icon: LR.Share2, component: SharePointCloudTool, disabled: true }
|
|
20
|
+
{ id: "pc-share-tool", title: t("shareTitle"), icon: LR.Share2, component: SharePointCloudTool, disabled: true },
|
|
21
|
+
// Plugin-contributed tools come last, after everything core ships.
|
|
22
|
+
...pluginTools
|
|
17
23
|
];
|
|
18
24
|
}
|
|
25
|
+
const pointcloudToolbarTools = usePointCloudToolbarTools;
|
|
19
26
|
export {
|
|
20
|
-
pointcloudToolbarTools
|
|
27
|
+
pointcloudToolbarTools,
|
|
28
|
+
usePointCloudToolbarTools
|
|
21
29
|
};
|
|
22
30
|
//# sourceMappingURL=pointcloudToolbarTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as LR from 'lucide-react'\r\nimport { useTranslations } from 'next-intl'\r\n\r\nimport { GenericTool } from '../../../../ui/GenericTool'\r\n\r\nimport { ClippingTool } from './ClippingTools/ClippingTool'\r\nimport FitToScreen from './FitToScreen'\r\nimport { MeasurePointCloudTool } from './MeasureTools/MeasurePointCloudTool'\r\nimport { PerformanceSettingTools } from './PerformanceSettingsTools/PerformanceSettingTools'\r\nimport SetCameraOption from './SetCameraOption'\r\nimport { SharePointCloudTool } from './SharePointCloudTool'\r\n\r\n\r\nimport type { Tool } from '../../../../../types/tools'\r\n\r\nexport type PointCloudToolType = 'pc-clip-tool' | 'pc-fit-to-screen-tool' | 'pc-add-tool' | 'pc-dimensions-tool' | 'pc-set-camera-option' | 'pc-share-tool'\r\n\r\nexport function
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as LR from 'lucide-react'\r\nimport { useTranslations } from 'next-intl'\r\n\r\nimport { usePluginToolbarTools } from '../../../../../plugins/host/usePluginToolbarTools'\r\nimport { usePointCloudViewer } from '../../../../../plugins/sdk/pointCloudViewer'\r\nimport { GenericTool } from '../../../../ui/GenericTool'\r\n\r\nimport { ClippingTool } from './ClippingTools/ClippingTool'\r\nimport FitToScreen from './FitToScreen'\r\nimport { MeasurePointCloudTool } from './MeasureTools/MeasurePointCloudTool'\r\nimport { PerformanceSettingTools } from './PerformanceSettingsTools/PerformanceSettingTools'\r\nimport SetCameraOption from './SetCameraOption'\r\nimport { SharePointCloudTool } from './SharePointCloudTool'\r\n\r\n\r\nimport type { Tool } from '../../../../../types/tools'\r\n\r\nexport type PointCloudToolType = 'pc-clip-tool' | 'pc-fit-to-screen-tool' | 'pc-add-tool' | 'pc-dimensions-tool' | 'pc-set-camera-option' | 'pc-share-tool'\r\n\r\n/**\r\n * Point-cloud toolbar tool definitions.\r\n *\r\n * Named as a hook because it calls `useTranslations` and now the plugin hooks, so\r\n * it has to run during a component render like any other hook. Same rename the\r\n * map and BIM toolbars already went through.\r\n */\r\nexport function usePointCloudToolbarTools(): Tool[] {\r\n // Translation\r\n const t = useTranslations('pointcloudToolbarTools')\r\n\r\n // Spread, so a tool's props are `PointCloudToolProps & { tool }` — the same\r\n // shape convention as the map and BIM toolbars.\r\n const viewer = usePointCloudViewer()\r\n const pluginTools = usePluginToolbarTools('pointcloud.tools', viewer as unknown as Record<string, unknown>)\r\n\r\n return [\r\n { id: 'pc-clip-tool', title: t('clipTitle'), icon: LR.Crop, component: ClippingTool,disabled: true },\r\n { id: 'pc-fit-to-screen-tool', title: \"Fit to screen\", icon: LR.Fullscreen, component: FitToScreen },\r\n // { id: 'pc-add-tool', title: t('addTitle'), icon: LR.Plus, component: GenericTool, disabled: true },\r\n { id: 'pc-dimensions-tool', title: t('dimensionsTitle'), icon: LR.Ruler, component: MeasurePointCloudTool },\r\n { id: 'pc-set-camera-option', title: \"Camera Options\", icon: LR.Video, component: SetCameraOption },\r\n { id: 'pc-share-tool', title: t('shareTitle'), icon: LR.Share2, component: SharePointCloudTool, disabled: true },\r\n // Plugin-contributed tools come last, after everything core ships.\r\n ...pluginTools,\r\n ]\r\n}\r\n\r\n/** @deprecated Renamed to usePointCloudToolbarTools; it is a hook and must be called during render. */\r\nexport const pointcloudToolbarTools = usePointCloudToolbarTools"],"mappings":"AAGA,YAAY,QAAQ;AACpB,SAAS,uBAAuB;AAEhC,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AAGpC,SAAS,oBAAoB;AAC7B,OAAO,iBAAiB;AACxB,SAAS,6BAA6B;AAEtC,OAAO,qBAAqB;AAC5B,SAAS,2BAA2B;AAc7B,SAAS,4BAAoC;AAElD,QAAM,IAAI,gBAAgB,wBAAwB;AAIlD,QAAM,SAAS,oBAAoB;AACnC,QAAM,cAAc,sBAAsB,oBAAoB,MAA4C;AAE1G,SAAO;AAAA,IACL,EAAE,IAAI,gBAAgB,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,WAAW,cAAa,UAAU,KAAK;AAAA,IACnG,EAAE,IAAI,yBAAyB,OAAO,iBAAiB,MAAM,GAAG,YAAY,WAAW,YAAY;AAAA;AAAA,IAEnG,EAAE,IAAI,sBAAsB,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,OAAO,WAAW,sBAAsB;AAAA,IAC1G,EAAE,IAAI,wBAAwB,OAAO,kBAAkB,MAAM,GAAG,OAAO,WAAW,gBAAgB;AAAA,IAClG,EAAE,IAAI,iBAAiB,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,QAAQ,WAAW,qBAAqB,UAAU,KAAK;AAAA;AAAA,IAE/G,GAAG;AAAA,EACL;AACF;AAGO,MAAM,yBAAyB;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ViewerNames } from '../../../../types/dbTypes';
|
|
3
|
+
/**
|
|
4
|
+
* One shared legend card per viewer, with a titled section per active `viewer.legends`
|
|
5
|
+
* registration. Replaces the per-plugin floating legends and their hand-tuned offsets.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ViewerLegendHost({ viewer }: {
|
|
8
|
+
viewer: ViewerNames;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ViewerLegendHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewerLegendHost.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/viewers/shared/legends/ViewerLegendHost.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,qBAqDnE"}
|
|
@@ -18,23 +18,48 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
21
33
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
34
|
import { useTranslations } from "next-intl";
|
|
23
35
|
import * as React from "react";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
36
|
+
import { usePluginConfigs, usePluginContributions } from "../../../../plugins/host/provider";
|
|
37
|
+
import { PluginScopeProvider } from "../../../../plugins/host/scope";
|
|
38
|
+
import { LegendCard } from "../../../ui/LegendCard";
|
|
39
|
+
function ViewerLegendHost({ viewer }) {
|
|
40
|
+
const all = usePluginContributions("viewer.legends");
|
|
41
|
+
const configs = usePluginConfigs();
|
|
42
|
+
const registrations = React.useMemo(
|
|
43
|
+
() => all.filter((entry) => !entry.viewers || entry.viewers.includes(viewer)),
|
|
44
|
+
[all, viewer]
|
|
45
|
+
);
|
|
29
46
|
const t = useTranslations("MapLegend");
|
|
30
47
|
const [activeMap, setActiveMap] = React.useState({});
|
|
31
|
-
const registrations = ready ? registry.getAll("map.legends") : [];
|
|
32
48
|
const reportActive = React.useCallback((id, active) => {
|
|
33
49
|
setActiveMap((prev) => prev[id] === active ? prev : __spreadProps(__spreadValues({}, prev), { [id]: active }));
|
|
34
50
|
}, []);
|
|
35
51
|
const activeCount = registrations.filter((r) => activeMap[r.id]).length;
|
|
36
52
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "hidden", children: registrations.map((r) => /* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "hidden", children: registrations.map((r) => /* @__PURE__ */ jsx(
|
|
54
|
+
ScopedLegendSection,
|
|
55
|
+
{
|
|
56
|
+
registration: r,
|
|
57
|
+
config: configs[r.pluginId],
|
|
58
|
+
onActiveChange: reportActive,
|
|
59
|
+
renderBody: false
|
|
60
|
+
},
|
|
61
|
+
`probe-${r.id}`
|
|
62
|
+
)) }),
|
|
38
63
|
activeCount > 0 && /* @__PURE__ */ jsx(
|
|
39
64
|
LegendCard,
|
|
40
65
|
{
|
|
@@ -42,11 +67,24 @@ function MapLegendHost() {
|
|
|
42
67
|
count: activeCount,
|
|
43
68
|
testId: "map-legend-card",
|
|
44
69
|
countTestId: "map-legend-count",
|
|
45
|
-
children: registrations.map((r) => /* @__PURE__ */ jsx(
|
|
70
|
+
children: registrations.map((r) => /* @__PURE__ */ jsx(
|
|
71
|
+
ScopedLegendSection,
|
|
72
|
+
{
|
|
73
|
+
registration: r,
|
|
74
|
+
config: configs[r.pluginId],
|
|
75
|
+
onActiveChange: reportActive,
|
|
76
|
+
renderBody: true
|
|
77
|
+
},
|
|
78
|
+
r.id
|
|
79
|
+
))
|
|
46
80
|
}
|
|
47
81
|
)
|
|
48
82
|
] });
|
|
49
83
|
}
|
|
84
|
+
function ScopedLegendSection(_a) {
|
|
85
|
+
var _b = _a, { registration, config } = _b, rest = __objRest(_b, ["registration", "config"]);
|
|
86
|
+
return /* @__PURE__ */ jsx(PluginScopeProvider, { pluginId: registration.pluginId, config, children: /* @__PURE__ */ jsx(LegendSection, __spreadValues({ registration }, rest)) });
|
|
87
|
+
}
|
|
50
88
|
function LegendSection({ registration, onActiveChange, renderBody }) {
|
|
51
89
|
const t = useTranslations("MapLegend");
|
|
52
90
|
const { active, title, unavailable, rows } = registration.useLegend();
|
|
@@ -64,6 +102,6 @@ function LegendSection({ registration, onActiveChange, renderBody }) {
|
|
|
64
102
|
] });
|
|
65
103
|
}
|
|
66
104
|
export {
|
|
67
|
-
|
|
105
|
+
ViewerLegendHost
|
|
68
106
|
};
|
|
69
|
-
//# sourceMappingURL=
|
|
107
|
+
//# sourceMappingURL=ViewerLegendHost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/core/components/viewers/shared/legends/ViewerLegendHost.tsx"],"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 { useTranslations } from 'next-intl'\r\nimport * as React from 'react'\r\n\r\nimport { usePluginConfigs, usePluginContributions } from '../../../../plugins/host/provider'\r\nimport { PluginScopeProvider } from '../../../../plugins/host/scope'\r\nimport { LegendCard } from '../../../ui/LegendCard'\r\n\r\nimport type { PluginContribution } from '../../../../plugins/host/provider'\r\nimport type { LegendRegistration } from '../../../../plugins/sdk/types'\r\nimport type { ViewerNames } from '../../../../types/dbTypes'\r\n\r\n/**\r\n * One shared legend card per viewer, with a titled section per active `viewer.legends`\r\n * registration. Replaces the per-plugin floating legends and their hand-tuned offsets.\r\n */\r\nexport function ViewerLegendHost({ viewer }: { viewer: ViewerNames }) {\r\n const all = usePluginContributions('viewer.legends')\r\n const configs = usePluginConfigs()\r\n\r\n // A legend with no `viewers` belongs everywhere; one that names them appears only there.\r\n const registrations = React.useMemo(\r\n () => all.filter(entry => !entry.viewers || entry.viewers.includes(viewer)),\r\n [all, viewer],\r\n )\r\n const t = useTranslations('MapLegend')\r\n const [activeMap, setActiveMap] = React.useState<Record<string, boolean>>({})\r\n\r\n const reportActive = React.useCallback((id: string, active: boolean) => {\r\n setActiveMap(prev => (prev[id] === active ? prev : { ...prev, [id]: active }))\r\n }, [])\r\n\r\n const activeCount = registrations.filter(r => activeMap[r.id]).length\r\n\r\n return (\r\n <>\r\n {/* Hidden probes keep useLegend() hooks alive even while the card is hidden. */}\r\n <div className=\"hidden\">\r\n {registrations.map(r => (\r\n <ScopedLegendSection\r\n key={`probe-${r.id}`}\r\n registration={r}\r\n config={configs[r.pluginId]}\r\n onActiveChange={reportActive}\r\n renderBody={false}\r\n />\r\n ))}\r\n </div>\r\n\r\n {activeCount > 0 && (\r\n <LegendCard\r\n title={activeCount === 1 ? t('title') : t('titlePlural')}\r\n count={activeCount}\r\n testId=\"map-legend-card\"\r\n countTestId=\"map-legend-count\"\r\n >\r\n {registrations.map(r => (\r\n <ScopedLegendSection\r\n key={r.id}\r\n registration={r}\r\n config={configs[r.pluginId]}\r\n onActiveChange={reportActive}\r\n renderBody\r\n />\r\n ))}\r\n </LegendCard>\r\n )}\r\n </>\r\n )\r\n}\r\n\r\n// The scope must be a parent: `useLegend` runs in LegendSection's own body.\r\nfunction ScopedLegendSection({ registration, config, ...rest }: ScopedLegendSectionProps) {\r\n return (\r\n <PluginScopeProvider pluginId={registration.pluginId} config={config}>\r\n <LegendSection registration={registration} {...rest} />\r\n </PluginScopeProvider>\r\n )\r\n}\r\n\r\ninterface ScopedLegendSectionProps extends LegendSectionProps {\r\n registration: PluginContribution<'viewer.legends'>\r\n config?: Record<string, unknown>\r\n}\r\n\r\ninterface LegendSectionProps {\r\n registration: LegendRegistration\r\n onActiveChange: (id: string, active: boolean) => void\r\n renderBody: boolean\r\n}\r\n\r\nfunction LegendSection({ registration, onActiveChange, renderBody }: LegendSectionProps) {\r\n const t = useTranslations('MapLegend')\r\n const { active, title, unavailable, rows } = registration.useLegend()\r\n\r\n React.useEffect(() => {\r\n onActiveChange(registration.id, active)\r\n }, [active, registration.id, onActiveChange])\r\n\r\n if (!renderBody || !active) return null\r\n\r\n return (\r\n <div className=\"px-3 py-2 border-t first:border-t-0\">\r\n <div className=\"font-semibold text-xs mb-1\">{title ?? registration.title}</div>\r\n {unavailable ? (\r\n <div className=\"rounded bg-red-100 text-red-800 px-2 py-1 text-[11px] font-medium\">\r\n {t('feedUnavailable')}\r\n </div>\r\n ) : (\r\n <ul className=\"space-y-1\">\r\n {rows.map(row => (\r\n <li key={row.label} className=\"flex items-center gap-2 text-xs\">\r\n <span aria-hidden=\"true\" className=\"inline-block h-3 w-3 rounded-sm shrink-0\" style={{ backgroundColor: row.color }} />\r\n <span className=\"flex-1\">{row.label}</span>\r\n {row.count !== undefined && <span className=\"tabular-nums opacity-70\">{row.count}</span>}\r\n </li>\r\n ))}\r\n </ul>\r\n )}\r\n </div>\r\n )\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCI,mBAIM,KAJN;AAlCJ,SAAS,uBAAuB;AAChC,YAAY,WAAW;AAEvB,SAAS,kBAAkB,8BAA8B;AACzD,SAAS,2BAA2B;AACpC,SAAS,kBAAkB;AAUpB,SAAS,iBAAiB,EAAE,OAAO,GAA4B;AACpE,QAAM,MAAM,uBAAuB,gBAAgB;AACnD,QAAM,UAAU,iBAAiB;AAGjC,QAAM,gBAAgB,MAAM;AAAA,IAC1B,MAAM,IAAI,OAAO,WAAS,CAAC,MAAM,WAAW,MAAM,QAAQ,SAAS,MAAM,CAAC;AAAA,IAC1E,CAAC,KAAK,MAAM;AAAA,EACd;AACA,QAAM,IAAI,gBAAgB,WAAW;AACrC,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAkC,CAAC,CAAC;AAE5E,QAAM,eAAe,MAAM,YAAY,CAAC,IAAY,WAAoB;AACtE,iB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AAQ,aAAa,IAAI,cAAc,CAAC;AAE5C,MAAI,CAAC,cAAc,CAAC,OAAQ,QAAO;AAEnC,SACE,qBAAC,SAAI,WAAU,uCACb;AAAA,wBAAC,SAAI,WAAU,8BAA8B,kCAAS,aAAa,OAAM;AAAA,IACxE,cACC,oBAAC,SAAI,WAAU,qEACZ,YAAE,iBAAiB,GACtB,IAEA,oBAAC,QAAG,WAAU,aACX,eAAK,IAAI,SACR,qBAAC,QAAmB,WAAU,mCAC5B;AAAA,0BAAC,UAAK,eAAY,QAAO,WAAU,4CAA2C,OAAO,EAAE,iBAAiB,IAAI,MAAM,GAAG;AAAA,MACrH,oBAAC,UAAK,WAAU,UAAU,cAAI,OAAM;AAAA,MACnC,IAAI,UAAU,UAAa,oBAAC,UAAK,WAAU,2BAA2B,cAAI,OAAM;AAAA,SAH1E,IAAI,KAIb,CACD,GACH;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Organization, ViewerKey } from '../../types/dbTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this organization may show the requested viewer. `appContent` is a Prisma enum and
|
|
4
|
+
* can never hold a plugin key, so a plugin page is gated by enablement instead.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isViewerAllowed(viewer: ViewerKey, appContent: Organization['appContent']): boolean;
|
|
7
|
+
//# sourceMappingURL=viewerAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewerAccess.d.ts","sourceRoot":"","sources":["../../../../src/core/components/viewers/viewerAccess.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAe,MAAM,qBAAqB,CAAA;AAE/E;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,OAAO,CAIlG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { parsePluginViewerKey } from "../../plugins/host/pluginViewerKey";
|
|
2
|
+
function isViewerAllowed(viewer, appContent) {
|
|
3
|
+
if (parsePluginViewerKey(viewer) !== null) return true;
|
|
4
|
+
return appContent.length === 0 || appContent.includes(viewer);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
isViewerAllowed
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=viewerAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/components/viewers/viewerAccess.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { parsePluginViewerKey } from '../../plugins/host/pluginViewerKey'\r\n\r\nimport type { Organization, ViewerKey, ViewerNames } from '../../types/dbTypes'\r\n\r\n/**\r\n * Whether this organization may show the requested viewer. `appContent` is a Prisma enum and\r\n * can never hold a plugin key, so a plugin page is gated by enablement instead.\r\n */\r\nexport function isViewerAllowed(viewer: ViewerKey, appContent: Organization['appContent']): boolean {\r\n if (parsePluginViewerKey(viewer) !== null) return true\r\n\r\n return appContent.length === 0 || appContent.includes(viewer as ViewerNames)\r\n}\r\n"],"mappings":"AAGA,SAAS,4BAA4B;AAQ9B,SAAS,gBAAgB,QAAmB,YAAiD;AAClG,MAAI,qBAAqB,MAAM,MAAM,KAAM,QAAO;AAElD,SAAO,WAAW,WAAW,KAAK,WAAW,SAAS,MAAqB;AAC7E;","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PluginInstallation, PluginRecord, PluginUserSetting } from '../../types/plugins';
|
|
2
|
+
import type { ApiAdapter } from '../ports/apiAdapter';
|
|
3
|
+
/**
|
|
4
|
+
* Enablement state for the plugins page.
|
|
5
|
+
*
|
|
6
|
+
* Both lists are small — bounded by the number of plugins a deployment has — so
|
|
7
|
+
* they are fetched whole and mutated by revalidation rather than by patching the
|
|
8
|
+
* cache. The page applies its own optimistic override on top, so the switch does
|
|
9
|
+
* not wait for the round trip.
|
|
10
|
+
*
|
|
11
|
+
* Writes are plain async functions, not `useSWRMutation`: every one of them is a
|
|
12
|
+
* per-plugin upsert triggered from a switch, and the mutation-hook-per-key shape
|
|
13
|
+
* the other domains use would mean one hook per plugin per control.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createPluginHooks(adapter: ApiAdapter): {
|
|
16
|
+
usePluginInstallations: () => {
|
|
17
|
+
installations: PluginInstallation[];
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
isError: any;
|
|
20
|
+
};
|
|
21
|
+
usePluginUserSettings: () => {
|
|
22
|
+
userSettings: PluginUserSetting[];
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
isError: any;
|
|
25
|
+
};
|
|
26
|
+
usePluginRecords: (pluginId: string, collection: string) => {
|
|
27
|
+
records: PluginRecord[];
|
|
28
|
+
isLoading: boolean;
|
|
29
|
+
isError: any;
|
|
30
|
+
/** Create or replace one document. `key` is the plugin's own identifier. */
|
|
31
|
+
put: (recordKey: string, value: unknown) => Promise<PluginRecord>;
|
|
32
|
+
remove: (recordKey: string) => Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
pluginActions: {
|
|
35
|
+
setInstallation(pluginId: string, patch: Partial<PluginInstallation>): Promise<void>;
|
|
36
|
+
removeInstallation(pluginId: string): Promise<void>;
|
|
37
|
+
setUserSetting(pluginId: string, patch: Partial<PluginUserSetting>): Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=createPluginHooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPluginHooks.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/plugins/createPluginHooks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAKrD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU;;;;;;;;;;;iCAwDf,MAAM,cAAc,MAAM;;;;QAgB1D,4EAA4E;yBACrD,MAAM,SAAS,OAAO;4BAKnB,MAAM;;;kCA3CF,MAAM,SAAS,OAAO,CAAC,kBAAkB,CAAC;qCAIvC,MAAM;iCAIV,MAAM,SAAS,OAAO,CAAC,iBAAiB,CAAC;;EA2C3E"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import useSWR, { mutate } from "swr";
|
|
2
|
+
const INSTALLATIONS = ["pluginInstallations"];
|
|
3
|
+
const USER_SETTINGS = ["pluginUserSettings"];
|
|
4
|
+
function createPluginHooks(adapter) {
|
|
5
|
+
const usePluginInstallations = () => {
|
|
6
|
+
const { data, error, isLoading } = useSWR(
|
|
7
|
+
INSTALLATIONS,
|
|
8
|
+
() => adapter.listPluginInstallations()
|
|
9
|
+
);
|
|
10
|
+
return {
|
|
11
|
+
installations: data != null ? data : [],
|
|
12
|
+
isLoading,
|
|
13
|
+
isError: error
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
const usePluginUserSettings = () => {
|
|
17
|
+
const { data, error, isLoading } = useSWR(
|
|
18
|
+
USER_SETTINGS,
|
|
19
|
+
() => adapter.listPluginUserSettings()
|
|
20
|
+
);
|
|
21
|
+
return {
|
|
22
|
+
userSettings: data != null ? data : [],
|
|
23
|
+
isLoading,
|
|
24
|
+
isError: error
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
const pluginActions = {
|
|
28
|
+
async setInstallation(pluginId, patch) {
|
|
29
|
+
await adapter.upsertPluginInstallation(pluginId, patch);
|
|
30
|
+
await mutate(INSTALLATIONS);
|
|
31
|
+
},
|
|
32
|
+
async removeInstallation(pluginId) {
|
|
33
|
+
await adapter.deletePluginInstallation(pluginId);
|
|
34
|
+
await mutate(INSTALLATIONS);
|
|
35
|
+
},
|
|
36
|
+
async setUserSetting(pluginId, patch) {
|
|
37
|
+
await adapter.upsertPluginUserSetting(pluginId, patch);
|
|
38
|
+
await mutate(USER_SETTINGS);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const usePluginRecords = (pluginId, collection) => {
|
|
42
|
+
const key = pluginId && collection ? ["pluginRecords", pluginId, collection] : null;
|
|
43
|
+
const { data, error, isLoading } = useSWR(
|
|
44
|
+
key,
|
|
45
|
+
() => adapter.listPluginRecords(pluginId, collection)
|
|
46
|
+
);
|
|
47
|
+
const revalidate = () => key ? mutate(key) : Promise.resolve();
|
|
48
|
+
return {
|
|
49
|
+
records: data != null ? data : [],
|
|
50
|
+
isLoading,
|
|
51
|
+
isError: error,
|
|
52
|
+
// Arrow properties, not method shorthand: callers destructure these, and
|
|
53
|
+
// method shorthand would imply a `this` they do not have.
|
|
54
|
+
/** Create or replace one document. `key` is the plugin's own identifier. */
|
|
55
|
+
put: async (recordKey, value) => {
|
|
56
|
+
const saved = await adapter.putPluginRecord(pluginId, collection, recordKey, value);
|
|
57
|
+
await revalidate();
|
|
58
|
+
return saved;
|
|
59
|
+
},
|
|
60
|
+
remove: async (recordKey) => {
|
|
61
|
+
await adapter.deletePluginRecord(pluginId, collection, recordKey);
|
|
62
|
+
await revalidate();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
return { usePluginInstallations, usePluginUserSettings, usePluginRecords, pluginActions };
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
createPluginHooks
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=createPluginHooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/hooks/plugins/createPluginHooks.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport useSWR, { mutate } from 'swr'\r\n\r\nimport type { PluginInstallation, PluginRecord, PluginUserSetting } from '../../types/plugins'\r\nimport type { ApiAdapter } from '../ports/apiAdapter'\r\n\r\nconst INSTALLATIONS = ['pluginInstallations'] as const\r\nconst USER_SETTINGS = ['pluginUserSettings'] as const\r\n\r\n/**\r\n * Enablement state for the plugins page.\r\n *\r\n * Both lists are small — bounded by the number of plugins a deployment has — so\r\n * they are fetched whole and mutated by revalidation rather than by patching the\r\n * cache. The page applies its own optimistic override on top, so the switch does\r\n * not wait for the round trip.\r\n *\r\n * Writes are plain async functions, not `useSWRMutation`: every one of them is a\r\n * per-plugin upsert triggered from a switch, and the mutation-hook-per-key shape\r\n * the other domains use would mean one hook per plugin per control.\r\n */\r\nexport function createPluginHooks(adapter: ApiAdapter) {\r\n const usePluginInstallations = () => {\r\n const { data, error, isLoading } = useSWR<PluginInstallation[]>(\r\n INSTALLATIONS,\r\n () => adapter.listPluginInstallations(),\r\n )\r\n\r\n return {\r\n installations: data ?? [],\r\n isLoading,\r\n isError: error,\r\n }\r\n }\r\n\r\n const usePluginUserSettings = () => {\r\n const { data, error, isLoading } = useSWR<PluginUserSetting[]>(\r\n USER_SETTINGS,\r\n () => adapter.listPluginUserSettings(),\r\n )\r\n\r\n return {\r\n userSettings: data ?? [],\r\n isLoading,\r\n isError: error,\r\n }\r\n }\r\n\r\n /**\r\n * The writes, each revalidating the list it changed.\r\n *\r\n * Deliberately not wrapped in a hook: the plugins page hands these straight\r\n * to its `ExtensionsActions` port, and they are called from event handlers\r\n * rather than during render.\r\n */\r\n const pluginActions = {\r\n async setInstallation(pluginId: string, patch: Partial<PluginInstallation>) {\r\n await adapter.upsertPluginInstallation(pluginId, patch)\r\n await mutate(INSTALLATIONS)\r\n },\r\n async removeInstallation(pluginId: string) {\r\n await adapter.deletePluginInstallation(pluginId)\r\n await mutate(INSTALLATIONS)\r\n },\r\n async setUserSetting(pluginId: string, patch: Partial<PluginUserSetting>) {\r\n await adapter.upsertPluginUserSetting(pluginId, patch)\r\n await mutate(USER_SETTINGS)\r\n },\r\n }\r\n\r\n /**\r\n * One plugin's documents in one collection.\r\n *\r\n * Keyed by both, so two collections of the same plugin cache separately and a\r\n * write to one does not revalidate the other. `pluginId` comes from the plugin\r\n * scope at the call site, never from the plugin itself.\r\n */\r\n const usePluginRecords = (pluginId: string, collection: string) => {\r\n const key = pluginId && collection ? ['pluginRecords', pluginId, collection] as const : null\r\n\r\n const { data, error, isLoading } = useSWR<PluginRecord[]>(\r\n key,\r\n () => adapter.listPluginRecords(pluginId, collection),\r\n )\r\n\r\n const revalidate = () => (key ? mutate(key) : Promise.resolve())\r\n\r\n return {\r\n records: data ?? [],\r\n isLoading,\r\n isError: error,\r\n // Arrow properties, not method shorthand: callers destructure these, and\r\n // method shorthand would imply a `this` they do not have.\r\n /** Create or replace one document. `key` is the plugin's own identifier. */\r\n put: async (recordKey: string, value: unknown) => {\r\n const saved = await adapter.putPluginRecord(pluginId, collection, recordKey, value)\r\n await revalidate()\r\n return saved\r\n },\r\n remove: async (recordKey: string) => {\r\n await adapter.deletePluginRecord(pluginId, collection, recordKey)\r\n await revalidate()\r\n },\r\n }\r\n }\r\n\r\n return { usePluginInstallations, usePluginUserSettings, usePluginRecords, pluginActions }\r\n}\r\n"],"mappings":"AAGA,OAAO,UAAU,cAAc;AAK/B,MAAM,gBAAgB,CAAC,qBAAqB;AAC5C,MAAM,gBAAgB,CAAC,oBAAoB;AAcpC,SAAS,kBAAkB,SAAqB;AACrD,QAAM,yBAAyB,MAAM;AACnC,UAAM,EAAE,MAAM,OAAO,UAAU,IAAI;AAAA,MACjC;AAAA,MACA,MAAM,QAAQ,wBAAwB;AAAA,IACxC;AAEA,WAAO;AAAA,MACL,eAAe,sBAAQ,CAAC;AAAA,MACxB;AAAA,MACA,SAAS;AAAA,IACX;AAAA,EACF;AAEA,QAAM,wBAAwB,MAAM;AAClC,UAAM,EAAE,MAAM,OAAO,UAAU,IAAI;AAAA,MACjC;AAAA,MACA,MAAM,QAAQ,uBAAuB;AAAA,IACvC;AAEA,WAAO;AAAA,MACL,cAAc,sBAAQ,CAAC;AAAA,MACvB;AAAA,MACA,SAAS;AAAA,IACX;AAAA,EACF;AASA,QAAM,gBAAgB;AAAA,IACpB,MAAM,gBAAgB,UAAkB,OAAoC;AAC1E,YAAM,QAAQ,yBAAyB,UAAU,KAAK;AACtD,YAAM,OAAO,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM,mBAAmB,UAAkB;AACzC,YAAM,QAAQ,yBAAyB,QAAQ;AAC/C,YAAM,OAAO,aAAa;AAAA,IAC5B;AAAA,IACA,MAAM,eAAe,UAAkB,OAAmC;AACxE,YAAM,QAAQ,wBAAwB,UAAU,KAAK;AACrD,YAAM,OAAO,aAAa;AAAA,IAC5B;AAAA,EACF;AASA,QAAM,mBAAmB,CAAC,UAAkB,eAAuB;AACjE,UAAM,MAAM,YAAY,aAAa,CAAC,iBAAiB,UAAU,UAAU,IAAa;AAExF,UAAM,EAAE,MAAM,OAAO,UAAU,IAAI;AAAA,MACjC;AAAA,MACA,MAAM,QAAQ,kBAAkB,UAAU,UAAU;AAAA,IACtD;AAEA,UAAM,aAAa,MAAO,MAAM,OAAO,GAAG,IAAI,QAAQ,QAAQ;AAE9D,WAAO;AAAA,MACL,SAAS,sBAAQ,CAAC;AAAA,MAClB;AAAA,MACA,SAAS;AAAA;AAAA;AAAA;AAAA,MAIT,KAAK,OAAO,WAAmB,UAAmB;AAChD,cAAM,QAAQ,MAAM,QAAQ,gBAAgB,UAAU,YAAY,WAAW,KAAK;AAClF,cAAM,WAAW;AACjB,eAAO;AAAA,MACT;AAAA,MACA,QAAQ,OAAO,cAAsB;AACnC,cAAM,QAAQ,mBAAmB,UAAU,YAAY,SAAS;AAChE,cAAM,WAAW;AAAA,MACnB;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,wBAAwB,uBAAuB,kBAAkB,cAAc;AAC1F;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Convenience wrappers, matching the per-domain shape of the other hook modules. */
|
|
2
|
+
export declare const usePluginInstallations: () => {
|
|
3
|
+
installations: import("../../types/plugins").PluginInstallation[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const usePluginUserSettings: () => {
|
|
8
|
+
userSettings: import("../../types/plugins").PluginUserSetting[];
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isError: any;
|
|
11
|
+
};
|
|
12
|
+
/** The write functions, for the plugins page's actions port. */
|
|
13
|
+
export declare const usePluginActions: () => {
|
|
14
|
+
setInstallation(pluginId: string, patch: Partial<import("../../types/plugins").PluginInstallation>): Promise<void>;
|
|
15
|
+
removeInstallation(pluginId: string): Promise<void>;
|
|
16
|
+
setUserSetting(pluginId: string, patch: Partial<import("../../types/plugins").PluginUserSetting>): Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/plugins/plugins.ts"],"names":[],"mappings":"AAKA,qFAAqF;AAErF,eAAO,MAAM,sBAAsB;;;;CAAuD,CAAA;AAE1F,eAAO,MAAM,qBAAqB;;;;CAAsD,CAAA;AAExF,gEAAgE;AAChE,eAAO,MAAM,gBAAgB;;;;CAA4C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useCoreHooks } from "../provider";
|
|
2
|
+
const usePluginInstallations = () => useCoreHooks().plugin.usePluginInstallations();
|
|
3
|
+
const usePluginUserSettings = () => useCoreHooks().plugin.usePluginUserSettings();
|
|
4
|
+
const usePluginActions = () => useCoreHooks().plugin.pluginActions;
|
|
5
|
+
export {
|
|
6
|
+
usePluginActions,
|
|
7
|
+
usePluginInstallations,
|
|
8
|
+
usePluginUserSettings
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/hooks/plugins/plugins.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { useCoreHooks } from '../provider'\r\n\r\n/** Convenience wrappers, matching the per-domain shape of the other hook modules. */\r\n\r\nexport const usePluginInstallations = () => useCoreHooks().plugin.usePluginInstallations()\r\n\r\nexport const usePluginUserSettings = () => useCoreHooks().plugin.usePluginUserSettings()\r\n\r\n/** The write functions, for the plugins page's actions port. */\r\nexport const usePluginActions = () => useCoreHooks().plugin.pluginActions\r\n"],"mappings":"AAGA,SAAS,oBAAoB;AAItB,MAAM,yBAAyB,MAAM,aAAa,EAAE,OAAO,uBAAuB;AAElF,MAAM,wBAAwB,MAAM,aAAa,EAAE,OAAO,sBAAsB;AAGhF,MAAM,mBAAmB,MAAM,aAAa,EAAE,OAAO;","names":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluginInstallation, PluginRecord, PluginUserSetting } from '../../../core/types/plugins';
|
|
1
2
|
import type { Building, DbFile, Site, OpenDataPortal, DatasetGroup, User, Role, Organization, Comment, Sensor, Infrastructure, SensorType } from '../../../core/types/dbTypes';
|
|
2
3
|
export interface ApiAdapter {
|
|
3
4
|
getBuildings(): Promise<Building[]>;
|
|
@@ -85,6 +86,14 @@ export interface ApiAdapter {
|
|
|
85
86
|
createSensorType(input: {
|
|
86
87
|
sensorTypeData: Partial<SensorType>;
|
|
87
88
|
}): Promise<SensorType>;
|
|
89
|
+
listPluginInstallations(): Promise<PluginInstallation[]>;
|
|
90
|
+
upsertPluginInstallation(pluginId: string, patch: Partial<PluginInstallation>): Promise<PluginInstallation>;
|
|
91
|
+
deletePluginInstallation(pluginId: string): Promise<void>;
|
|
92
|
+
listPluginUserSettings(): Promise<PluginUserSetting[]>;
|
|
93
|
+
upsertPluginUserSetting(pluginId: string, patch: Partial<PluginUserSetting>): Promise<PluginUserSetting>;
|
|
94
|
+
listPluginRecords(pluginId: string, collection: string): Promise<PluginRecord[]>;
|
|
95
|
+
putPluginRecord(pluginId: string, collection: string, key: string, data: unknown): Promise<PluginRecord>;
|
|
96
|
+
deletePluginRecord(pluginId: string, collection: string, key: string): Promise<void>;
|
|
88
97
|
listInfrastructure(): Promise<Infrastructure[]>;
|
|
89
98
|
getInfrastructure(id: number): Promise<Infrastructure | null>;
|
|
90
99
|
updateInfrastructure(id: number, patch: Partial<Infrastructure>): Promise<Infrastructure>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiAdapter.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/ports/apiAdapter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AA0B9K,MAAM,WAAW,UAAU;IAEvB,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IACnC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;IACjD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IACrD,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC/D,iBAAiB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;IACtC,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IACvE,cAAc,CAAC,KAAK,EAAE;QAAE,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IA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AG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1F,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9E,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAE7D"}
|
|
@@ -6,6 +6,7 @@ import { createInfrastructureHooks } from './infrastructures/createInfrastructur
|
|
|
6
6
|
import { createOpenDataPortalHooks } from "./openDataPortals/createOpenDataPortalHooks";
|
|
7
7
|
import { createOrganizationHooks } from "./organizations/createOrganizationHooks";
|
|
8
8
|
import { createSensorHooks } from "./sensors/createSensorHooks";
|
|
9
|
+
import { createPluginHooks } from "./plugins/createPluginHooks";
|
|
9
10
|
import { createSensorTypeHooks } from "./sensorTypes/createSensorTypeHooks";
|
|
10
11
|
import { createSiteHooks } from "./sites/createSiteHooks";
|
|
11
12
|
import { createUserHooks } from "./users/createUserHooks";
|
|
@@ -21,6 +22,7 @@ export type HooksBag = {
|
|
|
21
22
|
comment: ReturnType<typeof createCommentHooks>;
|
|
22
23
|
sensor: ReturnType<typeof createSensorHooks>;
|
|
23
24
|
sensorType: ReturnType<typeof createSensorTypeHooks>;
|
|
25
|
+
plugin: ReturnType<typeof createPluginHooks>;
|
|
24
26
|
};
|
|
25
27
|
export declare const HooksCtx: React.Context<HooksBag>;
|
|
26
28
|
export declare function CoreHooksProvider({ adapter, children }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/core/hooks/provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAA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,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAC;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAgBzG;AAED,wBAAgB,YAAY,aAI3B"}
|
|
@@ -8,6 +8,7 @@ import { createInfrastructureHooks } from "./infrastructures/createInfrastructur
|
|
|
8
8
|
import { createOpenDataPortalHooks } from "./openDataPortals/createOpenDataPortalHooks";
|
|
9
9
|
import { createOrganizationHooks } from "./organizations/createOrganizationHooks";
|
|
10
10
|
import { createSensorHooks } from "./sensors/createSensorHooks";
|
|
11
|
+
import { createPluginHooks } from "./plugins/createPluginHooks";
|
|
11
12
|
import { createSensorTypeHooks } from "./sensorTypes/createSensorTypeHooks";
|
|
12
13
|
import { createSiteHooks } from "./sites/createSiteHooks";
|
|
13
14
|
import { createUserHooks } from "./users/createUserHooks";
|
|
@@ -23,7 +24,8 @@ function CoreHooksProvider({ adapter, children }) {
|
|
|
23
24
|
organization: createOrganizationHooks(adapter),
|
|
24
25
|
comment: createCommentHooks(adapter),
|
|
25
26
|
sensor: createSensorHooks(adapter),
|
|
26
|
-
sensorType: createSensorTypeHooks(adapter)
|
|
27
|
+
sensorType: createSensorTypeHooks(adapter),
|
|
28
|
+
plugin: createPluginHooks(adapter)
|
|
27
29
|
}), [adapter]);
|
|
28
30
|
return /* @__PURE__ */ jsx(HooksCtx.Provider, { value: hooks, children });
|
|
29
31
|
}
|