@manta-eu/react 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/components/AppErrorBoundary.d.ts.map +1 -1
- package/dist/components/AppErrorBoundary.js +14 -11
- package/dist/components/AppErrorBoundary.js.map +1 -1
- package/dist/components/app-gate/AppGate.d.ts +8 -0
- package/dist/components/app-gate/AppGate.d.ts.map +1 -0
- package/dist/components/app-gate/AppGate.js +68 -0
- package/dist/components/app-gate/AppGate.js.map +1 -0
- package/dist/components/app-gate/AwaitingDatastoreStatus.d.ts +7 -0
- package/dist/components/app-gate/AwaitingDatastoreStatus.d.ts.map +1 -0
- package/dist/components/app-gate/AwaitingDatastoreStatus.js +19 -0
- package/dist/components/app-gate/AwaitingDatastoreStatus.js.map +1 -0
- package/dist/components/app-gate/EnterDatastoreRoute.d.ts +2 -0
- package/dist/components/app-gate/EnterDatastoreRoute.d.ts.map +1 -0
- package/dist/components/app-gate/EnterDatastoreRoute.js +25 -0
- package/dist/components/app-gate/EnterDatastoreRoute.js.map +1 -0
- package/dist/components/app-gate/ErrorRoute.d.ts +2 -0
- package/dist/components/app-gate/ErrorRoute.d.ts.map +1 -0
- package/dist/components/app-gate/ErrorRoute.js +27 -0
- package/dist/components/app-gate/ErrorRoute.js.map +1 -0
- package/dist/components/app-gate/FailureAlert.d.ts +5 -0
- package/dist/components/app-gate/FailureAlert.d.ts.map +1 -0
- package/dist/components/app-gate/FailureAlert.js +9 -0
- package/dist/components/app-gate/FailureAlert.js.map +1 -0
- package/dist/components/app-gate/NoDatastoreAccess.d.ts +8 -0
- package/dist/components/app-gate/NoDatastoreAccess.d.ts.map +1 -0
- package/dist/components/app-gate/NoDatastoreAccess.js +9 -0
- package/dist/components/app-gate/NoDatastoreAccess.js.map +1 -0
- package/dist/components/app-gate/NotFoundRoute.d.ts +2 -0
- package/dist/components/app-gate/NotFoundRoute.d.ts.map +1 -0
- package/dist/components/app-gate/NotFoundRoute.js +9 -0
- package/dist/components/app-gate/NotFoundRoute.js.map +1 -0
- package/dist/components/app-gate/PendingInvitations.d.ts +5 -0
- package/dist/components/app-gate/PendingInvitations.d.ts.map +1 -0
- package/dist/components/app-gate/PendingInvitations.js +58 -0
- package/dist/components/app-gate/PendingInvitations.js.map +1 -0
- package/dist/components/app-gate/ServiceError.d.ts +8 -0
- package/dist/components/app-gate/ServiceError.d.ts.map +1 -0
- package/dist/components/app-gate/ServiceError.js +10 -0
- package/dist/components/app-gate/ServiceError.js.map +1 -0
- package/dist/components/app-gate/index.d.ts +3 -0
- package/dist/components/app-gate/index.d.ts.map +1 -0
- package/dist/components/app-gate/index.js +3 -0
- package/dist/components/app-gate/index.js.map +1 -0
- package/dist/components/app-gate/sdk-route-elements.d.ts +23 -0
- package/dist/components/app-gate/sdk-route-elements.d.ts.map +1 -0
- package/dist/components/app-gate/sdk-route-elements.js +35 -0
- package/dist/components/app-gate/sdk-route-elements.js.map +1 -0
- package/dist/components/app-shell/AppShell.d.ts +7 -0
- package/dist/components/app-shell/AppShell.d.ts.map +1 -0
- package/dist/components/app-shell/AppShell.js +10 -0
- package/dist/components/app-shell/AppShell.js.map +1 -0
- package/dist/components/app-shell/AppShellRoutes.d.ts +9 -0
- package/dist/components/app-shell/AppShellRoutes.d.ts.map +1 -0
- package/dist/components/app-shell/AppShellRoutes.js +20 -0
- package/dist/components/app-shell/AppShellRoutes.js.map +1 -0
- package/dist/components/app-shell/GroupDatastores.d.ts +8 -0
- package/dist/components/app-shell/GroupDatastores.d.ts.map +1 -0
- package/dist/components/app-shell/GroupDatastores.js +15 -0
- package/dist/components/app-shell/GroupDatastores.js.map +1 -0
- package/dist/components/app-shell/GroupRoute.d.ts +2 -0
- package/dist/components/app-shell/GroupRoute.d.ts.map +1 -0
- package/dist/components/app-shell/GroupRoute.js +22 -0
- package/dist/components/app-shell/GroupRoute.js.map +1 -0
- package/dist/components/app-shell/index.d.ts +3 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +3 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/authenticated-chat/index.d.ts +1 -2
- package/dist/components/authenticated-chat/index.d.ts.map +1 -1
- package/dist/components/authenticated-chat/index.js +1 -12
- package/dist/components/authenticated-chat/index.js.map +1 -1
- package/dist/components/chat-view/Chat.d.ts +2 -1
- package/dist/components/chat-view/Chat.d.ts.map +1 -1
- package/dist/components/chat-view/Chat.js +3 -2
- package/dist/components/chat-view/Chat.js.map +1 -1
- package/dist/components/chat-view/MessageItem.d.ts.map +1 -1
- package/dist/components/chat-view/MessageItem.js +4 -2
- package/dist/components/chat-view/MessageItem.js.map +1 -1
- package/dist/components/chat-view/tool-part-rendering.d.ts +1 -0
- package/dist/components/chat-view/tool-part-rendering.d.ts.map +1 -1
- package/dist/components/chat-view/tool-part-rendering.js +8 -1
- package/dist/components/chat-view/tool-part-rendering.js.map +1 -1
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/chip/index.js +2 -1
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/embedded-chat/index.d.ts +1 -1
- package/dist/components/embedded-chat/index.d.ts.map +1 -1
- package/dist/components/embedded-chat/index.js +1 -1
- package/dist/components/embedded-chat/index.js.map +1 -1
- package/dist/components/input/input-date-time.d.ts +6 -0
- package/dist/components/input/input-date-time.d.ts.map +1 -1
- package/dist/components/input/input-date-time.js +2 -1
- package/dist/components/input/input-date-time.js.map +1 -1
- package/dist/components/input/input-date.d.ts +22 -0
- package/dist/components/input/input-date.d.ts.map +1 -1
- package/dist/components/input/input-date.js +28 -14
- package/dist/components/input/input-date.js.map +1 -1
- package/dist/components/input/input-time.d.ts +9 -0
- package/dist/components/input/input-time.d.ts.map +1 -1
- package/dist/components/input/input-time.js +29 -18
- package/dist/components/input/input-time.js.map +1 -1
- package/dist/components/layouts/RouteLayout.d.ts +0 -9
- package/dist/components/layouts/RouteLayout.d.ts.map +1 -1
- package/dist/components/layouts/RouteLayout.js +7 -4
- package/dist/components/layouts/RouteLayout.js.map +1 -1
- package/dist/components/layouts/Sidebar.d.ts +1 -8
- package/dist/components/layouts/Sidebar.d.ts.map +1 -1
- package/dist/components/layouts/Sidebar.js +7 -14
- package/dist/components/layouts/Sidebar.js.map +1 -1
- package/dist/components/plan-limits/PlanLimitsDialog.d.ts +20 -0
- package/dist/components/plan-limits/PlanLimitsDialog.d.ts.map +1 -0
- package/dist/components/plan-limits/PlanLimitsDialog.js +109 -0
- package/dist/components/plan-limits/PlanLimitsDialog.js.map +1 -0
- package/dist/components/plan-limits/index.d.ts +4 -0
- package/dist/components/plan-limits/index.d.ts.map +1 -0
- package/dist/components/plan-limits/index.js +2 -0
- package/dist/components/plan-limits/index.js.map +1 -0
- package/dist/components/plan-limits/plan-limits-client.d.ts +15 -0
- package/dist/components/plan-limits/plan-limits-client.d.ts.map +1 -0
- package/dist/components/plan-limits/plan-limits-client.js +44 -0
- package/dist/components/plan-limits/plan-limits-client.js.map +1 -0
- package/dist/components/plan-limits/plan-limits-model.d.ts +66 -0
- package/dist/components/plan-limits/plan-limits-model.d.ts.map +1 -0
- package/dist/components/plan-limits/plan-limits-model.js +123 -0
- package/dist/components/plan-limits/plan-limits-model.js.map +1 -0
- package/dist/components/plan-limits/plan-limits-save.d.ts +31 -0
- package/dist/components/plan-limits/plan-limits-save.d.ts.map +1 -0
- package/dist/components/plan-limits/plan-limits-save.js +43 -0
- package/dist/components/plan-limits/plan-limits-save.js.map +1 -0
- package/dist/components/planning/PlanLimitsAction.d.ts +6 -0
- package/dist/components/planning/PlanLimitsAction.d.ts.map +1 -0
- package/dist/components/planning/PlanLimitsAction.js +19 -0
- package/dist/components/planning/PlanLimitsAction.js.map +1 -0
- package/dist/components/slider/index.d.ts.map +1 -1
- package/dist/components/slider/index.js +2 -1
- package/dist/components/slider/index.js.map +1 -1
- package/dist/datastore-picker/datastore-picker-rows.d.ts +7 -0
- package/dist/datastore-picker/datastore-picker-rows.d.ts.map +1 -1
- package/dist/datastore-picker/datastore-picker-rows.js +26 -22
- package/dist/datastore-picker/datastore-picker-rows.js.map +1 -1
- package/dist/globals.css +85 -2
- package/dist/hooks/use-action-plans-list.d.ts +3 -0
- package/dist/hooks/use-action-plans-list.d.ts.map +1 -1
- package/dist/hooks/use-action-plans-list.js +8 -9
- package/dist/hooks/use-action-plans-list.js.map +1 -1
- package/dist/hooks/use-activity-feed.d.ts +10 -1
- package/dist/hooks/use-activity-feed.d.ts.map +1 -1
- package/dist/hooks/use-activity-feed.js +9 -11
- package/dist/hooks/use-activity-feed.js.map +1 -1
- package/dist/hooks/use-entity.d.ts +4 -3
- package/dist/hooks/use-entity.d.ts.map +1 -1
- package/dist/hooks/use-entity.js +4 -4
- package/dist/hooks/use-entity.js.map +1 -1
- package/dist/hooks/use-manual-actions.d.ts +1 -1
- package/dist/hooks/use-manual-actions.d.ts.map +1 -1
- package/dist/hooks/use-manual-actions.js +5 -5
- package/dist/hooks/use-manual-actions.js.map +1 -1
- package/dist/hooks/use-unsaved-changes-warning.d.ts +2 -0
- package/dist/hooks/use-unsaved-changes-warning.d.ts.map +1 -0
- package/dist/hooks/use-unsaved-changes-warning.js +13 -0
- package/dist/hooks/use-unsaved-changes-warning.js.map +1 -0
- package/dist/hooks/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth.js +4 -3
- package/dist/hooks/useAuth.js.map +1 -1
- package/dist/hooks/useChatPanelSync.d.ts.map +1 -1
- package/dist/hooks/useChatPanelSync.js +2 -3
- package/dist/hooks/useChatPanelSync.js.map +1 -1
- package/dist/hooks/useDatastoreSelection.d.ts.map +1 -1
- package/dist/hooks/useDatastoreSelection.js +11 -4
- package/dist/hooks/useDatastoreSelection.js.map +1 -1
- package/dist/hooks/useExecuteAction.d.ts +1 -0
- package/dist/hooks/useExecuteAction.d.ts.map +1 -1
- package/dist/hooks/useExecuteAction.js.map +1 -1
- package/dist/hooks/useLoginRedirect.d.ts +6 -0
- package/dist/hooks/useLoginRedirect.d.ts.map +1 -0
- package/dist/hooks/useLoginRedirect.js +51 -0
- package/dist/hooks/useLoginRedirect.js.map +1 -0
- package/dist/hooks/usePlanLimits.d.ts +18 -0
- package/dist/hooks/usePlanLimits.d.ts.map +1 -0
- package/dist/hooks/usePlanLimits.js +56 -0
- package/dist/hooks/usePlanLimits.js.map +1 -0
- package/dist/ldo-ui.d.ts +1 -1
- package/dist/ldo-ui.d.ts.map +1 -1
- package/dist/ldo-ui.js.map +1 -1
- package/dist/lib/app-tools.d.ts +18 -0
- package/dist/lib/app-tools.d.ts.map +1 -0
- package/dist/lib/app-tools.js +42 -0
- package/dist/lib/app-tools.js.map +1 -0
- package/dist/lib/chat-types.d.ts +3 -0
- package/dist/lib/chat-types.d.ts.map +1 -1
- package/dist/lib/chat-types.js.map +1 -1
- package/dist/lib/datastore-route-table.d.ts +3 -0
- package/dist/lib/datastore-route-table.d.ts.map +1 -1
- package/dist/lib/datastore-route-table.js +6 -0
- package/dist/lib/datastore-route-table.js.map +1 -1
- package/dist/lib/graphql-error.d.ts +2 -0
- package/dist/lib/graphql-error.d.ts.map +1 -0
- package/dist/lib/graphql-error.js +7 -0
- package/dist/lib/graphql-error.js.map +1 -0
- package/dist/lib/update-notice.d.ts +2 -1
- package/dist/lib/update-notice.d.ts.map +1 -1
- package/dist/lib/update-notice.js +8 -2
- package/dist/lib/update-notice.js.map +1 -1
- package/dist/providers/ActiveChatProvider.d.ts +2 -0
- package/dist/providers/ActiveChatProvider.d.ts.map +1 -1
- package/dist/providers/ActiveChatProvider.js +6 -3
- package/dist/providers/ActiveChatProvider.js.map +1 -1
- package/dist/providers/ActiveDatastoreProvider.d.ts +12 -0
- package/dist/providers/ActiveDatastoreProvider.d.ts.map +1 -1
- package/dist/providers/ActiveDatastoreProvider.js +114 -11
- package/dist/providers/ActiveDatastoreProvider.js.map +1 -1
- package/dist/providers/AuthContext.d.ts +1 -0
- package/dist/providers/AuthContext.d.ts.map +1 -1
- package/dist/providers/AuthContext.js.map +1 -1
- package/dist/providers/KnowledgeGraphStateContext.d.ts +2 -2
- package/dist/providers/KnowledgeGraphStateContext.d.ts.map +1 -1
- package/dist/providers/KnowledgeGraphStateProvider.d.ts.map +1 -1
- package/dist/providers/KnowledgeGraphStateProvider.js +8 -49
- package/dist/providers/KnowledgeGraphStateProvider.js.map +1 -1
- package/dist/providers/MantaClientProvider.d.ts.map +1 -1
- package/dist/providers/MantaClientProvider.js +3 -3
- package/dist/providers/MantaClientProvider.js.map +1 -1
- package/dist/providers/index.d.ts +3 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.js.map +1 -1
- package/dist/routes/activity/detail/ActivityDetailRoute.d.ts.map +1 -1
- package/dist/routes/activity/detail/ActivityDetailRoute.js +1 -3
- package/dist/routes/activity/detail/ActivityDetailRoute.js.map +1 -1
- package/dist/routes/activity/index.d.ts.map +1 -1
- package/dist/routes/activity/index.js +1 -3
- package/dist/routes/activity/index.js.map +1 -1
- package/dist/routes/chat/index.d.ts +2 -21
- package/dist/routes/chat/index.d.ts.map +1 -1
- package/dist/routes/chat/index.js +4 -2
- package/dist/routes/chat/index.js.map +1 -1
- package/dist/routes/data-collection/index.d.ts.map +1 -1
- package/dist/routes/data-collection/index.js +1 -3
- package/dist/routes/data-collection/index.js.map +1 -1
- package/dist/routes/data-explorer/components/DataExplorerLayout.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/DataExplorerLayout.js +1 -3
- package/dist/routes/data-explorer/components/DataExplorerLayout.js.map +1 -1
- package/dist/routes/data-explorer/components/class-detail/UsedByRules.js +2 -2
- package/dist/routes/data-explorer/components/class-detail/UsedByRules.js.map +1 -1
- package/dist/routes/datastores/index.d.ts.map +1 -1
- package/dist/routes/datastores/index.js +2 -2
- package/dist/routes/datastores/index.js.map +1 -1
- package/dist/routes/explain/index.d.ts.map +1 -1
- package/dist/routes/explain/index.js +1 -3
- package/dist/routes/explain/index.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/DashConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/DashConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/DashConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.d.ts +0 -1
- package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.js +3 -2
- package/dist/routes/integrations/components/connect-forms/InferalCredentialConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/KlaviyoConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.d.ts +0 -1
- package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.js +4 -3
- package/dist/routes/integrations/components/connect-forms/OAuthSetupConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/TriplewhaleConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.js +0 -1
- package/dist/routes/integrations/components/connect-forms/WoocommerceConnectForm.js.map +1 -1
- package/dist/routes/integrations/types.d.ts +2 -1
- package/dist/routes/integrations/types.d.ts.map +1 -1
- package/dist/routes/integrations/types.js +16 -0
- package/dist/routes/integrations/types.js.map +1 -1
- package/dist/routes/memories/components/DateValueInput.d.ts +16 -0
- package/dist/routes/memories/components/DateValueInput.d.ts.map +1 -0
- package/dist/routes/memories/components/DateValueInput.js +35 -0
- package/dist/routes/memories/components/DateValueInput.js.map +1 -0
- package/dist/routes/memories/components/EntityValuePicker.d.ts +11 -0
- package/dist/routes/memories/components/EntityValuePicker.d.ts.map +1 -0
- package/dist/routes/memories/components/EntityValuePicker.js +61 -0
- package/dist/routes/memories/components/EntityValuePicker.js.map +1 -0
- package/dist/routes/memories/components/FieldLabel.d.ts +12 -0
- package/dist/routes/memories/components/FieldLabel.d.ts.map +1 -0
- package/dist/routes/memories/components/FieldLabel.js +12 -0
- package/dist/routes/memories/components/FieldLabel.js.map +1 -0
- package/dist/routes/memories/components/ImportanceSlider.d.ts +2 -0
- package/dist/routes/memories/components/ImportanceSlider.d.ts.map +1 -1
- package/dist/routes/memories/components/ImportanceSlider.js +4 -1
- package/dist/routes/memories/components/ImportanceSlider.js.map +1 -1
- package/dist/routes/memories/components/MemoriesFilters.d.ts +2 -2
- package/dist/routes/memories/components/MemoriesFilters.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoriesFilters.js.map +1 -1
- package/dist/routes/memories/components/MemoriesPanel.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoriesPanel.js +4 -0
- package/dist/routes/memories/components/MemoriesPanel.js.map +1 -1
- package/dist/routes/memories/components/MemoriesTabPanel.d.ts +2 -2
- package/dist/routes/memories/components/MemoriesTabPanel.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoryActions.d.ts +2 -0
- package/dist/routes/memories/components/MemoryActions.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoryActions.js +3 -3
- package/dist/routes/memories/components/MemoryActions.js.map +1 -1
- package/dist/routes/memories/components/MemoryFields.d.ts +15 -3
- package/dist/routes/memories/components/MemoryFields.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoryFields.js +34 -5
- package/dist/routes/memories/components/MemoryFields.js.map +1 -1
- package/dist/routes/memories/components/MemoryFormDialog.d.ts +6 -3
- package/dist/routes/memories/components/MemoryFormDialog.d.ts.map +1 -1
- package/dist/routes/memories/components/MemoryFormDialog.js +105 -59
- package/dist/routes/memories/components/MemoryFormDialog.js.map +1 -1
- package/dist/routes/memories/components/MemoryPropertyFields.d.ts +10 -0
- package/dist/routes/memories/components/MemoryPropertyFields.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoryPropertyFields.js +67 -0
- package/dist/routes/memories/components/MemoryPropertyFields.js.map +1 -0
- package/dist/routes/memories/components/RuleDraftDialog.d.ts +7 -0
- package/dist/routes/memories/components/RuleDraftDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/RuleDraftDialog.js +20 -0
- package/dist/routes/memories/components/RuleDraftDialog.js.map +1 -0
- package/dist/routes/memories/components/SchemasTab.d.ts +17 -2
- package/dist/routes/memories/components/SchemasTab.d.ts.map +1 -1
- package/dist/routes/memories/components/SchemasTab.js +146 -28
- package/dist/routes/memories/components/SchemasTab.js.map +1 -1
- package/dist/routes/memories/components/badges.d.ts +7 -0
- package/dist/routes/memories/components/badges.d.ts.map +1 -1
- package/dist/routes/memories/components/badges.js +11 -3
- package/dist/routes/memories/components/badges.js.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts +4 -2
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.js +31 -15
- package/dist/routes/memories/hooks/useMemoryColumns.js.map +1 -1
- package/dist/routes/memories/index.d.ts +2 -1
- package/dist/routes/memories/index.d.ts.map +1 -1
- package/dist/routes/memories/index.js +72 -30
- package/dist/routes/memories/index.js.map +1 -1
- package/dist/routes/memories/memory-mutation-input.d.ts.map +1 -1
- package/dist/routes/memories/memory-mutation-input.js +5 -2
- package/dist/routes/memories/memory-mutation-input.js.map +1 -1
- package/dist/routes/memories/memory-property-values.d.ts +13 -0
- package/dist/routes/memories/memory-property-values.d.ts.map +1 -0
- package/dist/routes/memories/memory-property-values.js +40 -0
- package/dist/routes/memories/memory-property-values.js.map +1 -0
- package/dist/routes/memories/schemas/AllowedValuesField.d.ts +14 -0
- package/dist/routes/memories/schemas/AllowedValuesField.d.ts.map +1 -0
- package/dist/routes/memories/schemas/AllowedValuesField.js +64 -0
- package/dist/routes/memories/schemas/AllowedValuesField.js.map +1 -0
- package/dist/routes/memories/schemas/MemorySchemaPage.d.ts +127 -0
- package/dist/routes/memories/schemas/MemorySchemaPage.d.ts.map +1 -0
- package/dist/routes/memories/schemas/MemorySchemaPage.js +285 -0
- package/dist/routes/memories/schemas/MemorySchemaPage.js.map +1 -0
- package/dist/routes/memories/schemas/SchemaChangeReviewDialog.d.ts +20 -0
- package/dist/routes/memories/schemas/SchemaChangeReviewDialog.d.ts.map +1 -0
- package/dist/routes/memories/schemas/SchemaChangeReviewDialog.js +54 -0
- package/dist/routes/memories/schemas/SchemaChangeReviewDialog.js.map +1 -0
- package/dist/routes/memories/schemas/SchemaConfirmDialog.d.ts +15 -0
- package/dist/routes/memories/schemas/SchemaConfirmDialog.d.ts.map +1 -0
- package/dist/routes/memories/schemas/SchemaConfirmDialog.js +8 -0
- package/dist/routes/memories/schemas/SchemaConfirmDialog.js.map +1 -0
- package/dist/routes/memories/schemas/SchemaDetailPage.d.ts +15 -0
- package/dist/routes/memories/schemas/SchemaDetailPage.d.ts.map +1 -0
- package/dist/routes/memories/schemas/SchemaDetailPage.js +74 -0
- package/dist/routes/memories/schemas/SchemaDetailPage.js.map +1 -0
- package/dist/routes/memories/schemas/SchemaEditorForm.d.ts +10 -0
- package/dist/routes/memories/schemas/SchemaEditorForm.d.ts.map +1 -0
- package/dist/routes/memories/schemas/SchemaEditorForm.js +242 -0
- package/dist/routes/memories/schemas/SchemaEditorForm.js.map +1 -0
- package/dist/routes/memories/schemas/SchemaTemplatesDialog.d.ts +13 -0
- package/dist/routes/memories/schemas/SchemaTemplatesDialog.d.ts.map +1 -0
- package/dist/routes/memories/schemas/SchemaTemplatesDialog.js +13 -0
- package/dist/routes/memories/schemas/SchemaTemplatesDialog.js.map +1 -0
- package/dist/routes/memories/schemas/ValueTypeSelect.d.ts +12 -0
- package/dist/routes/memories/schemas/ValueTypeSelect.d.ts.map +1 -0
- package/dist/routes/memories/schemas/ValueTypeSelect.js +10 -0
- package/dist/routes/memories/schemas/ValueTypeSelect.js.map +1 -0
- package/dist/routes/memories/schemas/schema-form.d.ts +72 -0
- package/dist/routes/memories/schemas/schema-form.d.ts.map +1 -0
- package/dist/routes/memories/schemas/schema-form.js +279 -0
- package/dist/routes/memories/schemas/schema-form.js.map +1 -0
- package/dist/routes/memories/schemas/schema-impact.d.ts +13 -0
- package/dist/routes/memories/schemas/schema-impact.d.ts.map +1 -0
- package/dist/routes/memories/schemas/schema-impact.js +40 -0
- package/dist/routes/memories/schemas/schema-impact.js.map +1 -0
- package/dist/routes/memories/schemas/schema-route.d.ts +18 -0
- package/dist/routes/memories/schemas/schema-route.d.ts.map +1 -0
- package/dist/routes/memories/schemas/schema-route.js +21 -0
- package/dist/routes/memories/schemas/schema-route.js.map +1 -0
- package/dist/routes/memories/schemas/schema-rule-context.d.ts +17 -0
- package/dist/routes/memories/schemas/schema-rule-context.d.ts.map +1 -0
- package/dist/routes/memories/schemas/schema-rule-context.js +83 -0
- package/dist/routes/memories/schemas/schema-rule-context.js.map +1 -0
- package/dist/routes/memories/schemas/schema-table.d.ts +11 -0
- package/dist/routes/memories/schemas/schema-table.d.ts.map +1 -0
- package/dist/routes/memories/schemas/schema-table.js +34 -0
- package/dist/routes/memories/schemas/schema-table.js.map +1 -0
- package/dist/routes/memories/schemas/useMemorySchemaMutations.d.ts +32 -0
- package/dist/routes/memories/schemas/useMemorySchemaMutations.d.ts.map +1 -0
- package/dist/routes/memories/schemas/useMemorySchemaMutations.js +31 -0
- package/dist/routes/memories/schemas/useMemorySchemaMutations.js.map +1 -0
- package/dist/routes/memories/schemas/useSchemaChangeReview.d.ts +51 -0
- package/dist/routes/memories/schemas/useSchemaChangeReview.d.ts.map +1 -0
- package/dist/routes/memories/schemas/useSchemaChangeReview.js +175 -0
- package/dist/routes/memories/schemas/useSchemaChangeReview.js.map +1 -0
- package/dist/routes/memories/schemas/useSchemaLifecycle.d.ts +46 -0
- package/dist/routes/memories/schemas/useSchemaLifecycle.d.ts.map +1 -0
- package/dist/routes/memories/schemas/useSchemaLifecycle.js +93 -0
- package/dist/routes/memories/schemas/useSchemaLifecycle.js.map +1 -0
- package/dist/routes/memories/schemas/useSchemasTab.d.ts +18 -0
- package/dist/routes/memories/schemas/useSchemasTab.d.ts.map +1 -0
- package/dist/routes/memories/schemas/useSchemasTab.js +92 -0
- package/dist/routes/memories/schemas/useSchemasTab.js.map +1 -0
- package/dist/routes/plans/index.d.ts.map +1 -1
- package/dist/routes/plans/index.js +2 -2
- package/dist/routes/plans/index.js.map +1 -1
- package/dist/routes/rules/components/CreateRuleChatModal.d.ts +7 -1
- package/dist/routes/rules/components/CreateRuleChatModal.d.ts.map +1 -1
- package/dist/routes/rules/components/CreateRuleChatModal.js +9 -4
- package/dist/routes/rules/components/CreateRuleChatModal.js.map +1 -1
- package/dist/routes/rules/components/RuleValueControls.d.ts.map +1 -1
- package/dist/routes/rules/components/RuleValueControls.js +3 -24
- package/dist/routes/rules/components/RuleValueControls.js.map +1 -1
- package/dist/routes/rules/components/rule-value-input.d.ts +11 -0
- package/dist/routes/rules/components/rule-value-input.d.ts.map +1 -0
- package/dist/routes/rules/components/rule-value-input.js +24 -0
- package/dist/routes/rules/components/rule-value-input.js.map +1 -0
- package/dist/routes/rules/components/rules.utils.d.ts +5 -0
- package/dist/routes/rules/components/rules.utils.d.ts.map +1 -1
- package/dist/routes/rules/components/rules.utils.js +18 -3
- package/dist/routes/rules/components/rules.utils.js.map +1 -1
- package/dist/routes/rules/pages.d.ts +1 -1
- package/dist/routes/rules/pages.d.ts.map +1 -1
- package/dist/routes/rules/pages.js +1 -1
- package/dist/routes/rules/pages.js.map +1 -1
- package/dist/shared/graph-derived-queries.d.ts.map +1 -1
- package/dist/shared/graph-derived-queries.js +4 -1
- package/dist/shared/graph-derived-queries.js.map +1 -1
- package/dist/worker/index.d.ts +22 -0
- package/dist/worker/index.d.ts.map +1 -0
- package/dist/worker/index.js +110 -0
- package/dist/worker/index.js.map +1 -0
- package/dist/worker/policy.d.ts +21 -0
- package/dist/worker/policy.d.ts.map +1 -0
- package/dist/worker/policy.js +42 -0
- package/dist/worker/policy.js.map +1 -0
- package/dist/worker/proxy.d.ts +14 -0
- package/dist/worker/proxy.d.ts.map +1 -0
- package/dist/worker/proxy.js +58 -0
- package/dist/worker/proxy.js.map +1 -0
- package/dist/worker/session.d.ts +24 -0
- package/dist/worker/session.d.ts.map +1 -0
- package/dist/worker/session.js +72 -0
- package/dist/worker/session.js.map +1 -0
- package/package.json +52 -7
- package/src/app-subpaths.json +9 -1
- package/src/components/AppErrorBoundary.tsx +14 -11
- package/src/components/app-gate/AppGate.tsx +122 -0
- package/src/components/app-gate/AwaitingDatastoreStatus.tsx +35 -0
- package/src/components/app-gate/EnterDatastoreRoute.tsx +30 -0
- package/src/components/app-gate/ErrorRoute.tsx +43 -0
- package/src/components/app-gate/FailureAlert.tsx +15 -0
- package/src/components/app-gate/NoDatastoreAccess.tsx +26 -0
- package/src/components/app-gate/NotFoundRoute.tsx +20 -0
- package/src/components/app-gate/PendingInvitations.tsx +134 -0
- package/src/components/app-gate/ServiceError.tsx +27 -0
- package/src/components/app-gate/index.ts +2 -0
- package/src/components/app-gate/sdk-route-elements.tsx +46 -0
- package/src/components/app-shell/AppShell.tsx +22 -0
- package/src/components/app-shell/AppShellRoutes.tsx +34 -0
- package/src/components/app-shell/GroupDatastores.tsx +28 -0
- package/src/components/app-shell/GroupRoute.tsx +34 -0
- package/src/components/app-shell/index.ts +2 -0
- package/src/components/authenticated-chat/index.tsx +1 -34
- package/src/components/chat-view/Chat.tsx +9 -3
- package/src/components/chat-view/MessageItem.tsx +10 -2
- package/src/components/chat-view/tool-part-rendering.ts +10 -1
- package/src/components/chip/index.tsx +8 -1
- package/src/components/embedded-chat/index.tsx +2 -1
- package/src/components/input/input-date-time.tsx +10 -3
- package/src/components/input/input-date.tsx +93 -21
- package/src/components/input/input-time.tsx +59 -26
- package/src/components/layouts/RouteLayout.tsx +11 -50
- package/src/components/layouts/Sidebar.tsx +21 -23
- package/src/components/plan-limits/PlanLimitsDialog.tsx +331 -0
- package/src/components/plan-limits/index.tsx +3 -0
- package/src/components/plan-limits/plan-limits-client.ts +71 -0
- package/src/components/plan-limits/plan-limits-model.ts +180 -0
- package/src/components/plan-limits/plan-limits-save.ts +68 -0
- package/src/components/planning/PlanLimitsAction.tsx +44 -0
- package/src/components/slider/index.tsx +2 -1
- package/src/datastore-picker/datastore-picker-rows.ts +36 -20
- package/src/hooks/use-action-plans-list.ts +20 -12
- package/src/hooks/use-activity-feed.ts +30 -14
- package/src/hooks/use-entity.ts +11 -6
- package/src/hooks/use-manual-actions.ts +11 -6
- package/src/hooks/use-unsaved-changes-warning.ts +12 -0
- package/src/hooks/useAuth.ts +5 -3
- package/src/hooks/useChatPanelSync.ts +2 -3
- package/src/hooks/useDatastoreSelection.ts +10 -4
- package/src/hooks/useExecuteAction.ts +2 -0
- package/src/hooks/useLoginRedirect.ts +66 -0
- package/src/hooks/usePlanLimits.ts +97 -0
- package/src/ldo-ui.ts +1 -0
- package/src/lib/app-tools.ts +63 -0
- package/src/lib/chat-types.ts +5 -0
- package/src/lib/datastore-route-table.ts +9 -0
- package/src/lib/graphql-error.ts +7 -0
- package/src/lib/update-notice.ts +12 -2
- package/src/providers/ActiveChatProvider.tsx +8 -3
- package/src/providers/ActiveDatastoreProvider.tsx +179 -9
- package/src/providers/AuthContext.ts +1 -0
- package/src/providers/KnowledgeGraphStateContext.ts +2 -2
- package/src/providers/KnowledgeGraphStateProvider.tsx +13 -65
- package/src/providers/MantaClientProvider.tsx +8 -3
- package/src/providers/index.tsx +7 -4
- package/src/routes/activity/detail/ActivityDetailRoute.tsx +1 -10
- package/src/routes/activity/index.tsx +1 -10
- package/src/routes/chat/index.tsx +11 -47
- package/src/routes/data-collection/index.tsx +1 -11
- package/src/routes/data-explorer/components/DataExplorerLayout.tsx +1 -11
- package/src/routes/data-explorer/components/class-detail/UsedByRules.tsx +2 -2
- package/src/routes/datastores/index.tsx +3 -9
- package/src/routes/explain/index.tsx +1 -11
- package/src/routes/integrations/components/connect-forms/DashConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/GoogleAdsConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/GoogleAnalyticsConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/GoogleMerchantCenterConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/InferalCredentialConnectForm.tsx +5 -3
- package/src/routes/integrations/components/connect-forms/KlaviyoConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/OAuthSetupConnectForm.tsx +7 -7
- package/src/routes/integrations/components/connect-forms/TriplewhaleConnectForm.tsx +0 -1
- package/src/routes/integrations/components/connect-forms/WoocommerceConnectForm.tsx +0 -1
- package/src/routes/integrations/types.ts +22 -6
- package/src/routes/memories/components/DateValueInput.tsx +72 -0
- package/src/routes/memories/components/EntityValuePicker.tsx +132 -0
- package/src/routes/memories/components/FieldLabel.tsx +49 -0
- package/src/routes/memories/components/ImportanceSlider.tsx +5 -1
- package/src/routes/memories/components/MemoriesFilters.tsx +2 -2
- package/src/routes/memories/components/MemoriesPanel.tsx +7 -3
- package/src/routes/memories/components/MemoriesTabPanel.tsx +2 -2
- package/src/routes/memories/components/MemoryActions.tsx +26 -2
- package/src/routes/memories/components/MemoryFields.tsx +75 -12
- package/src/routes/memories/components/MemoryFormDialog.tsx +305 -199
- package/src/routes/memories/components/MemoryPropertyFields.tsx +288 -0
- package/src/routes/memories/components/RuleDraftDialog.tsx +35 -0
- package/src/routes/memories/components/SchemasTab.tsx +481 -118
- package/src/routes/memories/components/badges.tsx +16 -4
- package/src/routes/memories/hooks/useMemoryColumns.tsx +69 -35
- package/src/routes/memories/index.tsx +125 -51
- package/src/routes/memories/memory-mutation-input.ts +5 -2
- package/src/routes/memories/memory-property-values.ts +83 -0
- package/src/routes/memories/schemas/AllowedValuesField.tsx +188 -0
- package/src/routes/memories/schemas/MemorySchemaPage.tsx +476 -0
- package/src/routes/memories/schemas/SchemaChangeReviewDialog.tsx +290 -0
- package/src/routes/memories/schemas/SchemaConfirmDialog.tsx +62 -0
- package/src/routes/memories/schemas/SchemaDetailPage.tsx +373 -0
- package/src/routes/memories/schemas/SchemaEditorForm.tsx +990 -0
- package/src/routes/memories/schemas/SchemaTemplatesDialog.tsx +81 -0
- package/src/routes/memories/schemas/ValueTypeSelect.tsx +37 -0
- package/src/routes/memories/schemas/schema-form.ts +360 -0
- package/src/routes/memories/schemas/schema-impact.ts +66 -0
- package/src/routes/memories/schemas/schema-route.ts +30 -0
- package/src/routes/memories/schemas/schema-rule-context.ts +103 -0
- package/src/routes/memories/schemas/schema-table.ts +54 -0
- package/src/routes/memories/schemas/useMemorySchemaMutations.ts +49 -0
- package/src/routes/memories/schemas/useSchemaChangeReview.ts +238 -0
- package/src/routes/memories/schemas/useSchemaLifecycle.tsx +151 -0
- package/src/routes/memories/schemas/useSchemasTab.ts +119 -0
- package/src/routes/plans/index.tsx +3 -14
- package/src/routes/rules/components/CreateRuleChatModal.tsx +46 -22
- package/src/routes/rules/components/RuleValueControls.tsx +3 -35
- package/src/routes/rules/components/rule-value-input.ts +34 -0
- package/src/routes/rules/components/rules.utils.ts +25 -3
- package/src/routes/rules/pages.ts +5 -1
- package/src/shared/graph-derived-queries.ts +6 -0
- package/src/themes/manta-dark.css +4 -0
- package/src/worker/index.ts +175 -0
- package/src/worker/policy.ts +62 -0
- package/src/worker/proxy.ts +101 -0
- package/src/worker/session.ts +111 -0
package/README.md
CHANGED
|
@@ -120,6 +120,65 @@ That is a working copilot. Everything below is optional.
|
|
|
120
120
|
|
|
121
121
|
Removing or renaming one of these is a breaking change, so they change rarely.
|
|
122
122
|
|
|
123
|
+
## Building a whole app
|
|
124
|
+
|
|
125
|
+
A vertical such as a real estate app takes the frame every Manta app shares and brings only its own
|
|
126
|
+
pages.
|
|
127
|
+
|
|
128
|
+
### The worker
|
|
129
|
+
|
|
130
|
+
`@manta-eu/react/worker` is a Cloudflare worker that signs people in through the Manta agents worker
|
|
131
|
+
and proxies the SDK's requests to it. The browser only ever talks to the app's own origin.
|
|
132
|
+
|
|
133
|
+
```ts
|
|
134
|
+
import { createAppWorker } from "@manta-eu/react/worker";
|
|
135
|
+
|
|
136
|
+
const app = createAppWorker({ cookiePrefix: "estate_session" });
|
|
137
|
+
|
|
138
|
+
app.get("/api/estate/health", (c) => c.json({ ok: true }));
|
|
139
|
+
|
|
140
|
+
export default app;
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`wrangler.jsonc` sets `MANTA_AGENTS_URL` to the agents worker and binds the built app as `ASSETS`,
|
|
144
|
+
with `"run_worker_first": ["/*", "!/assets/*"]` so hashed bundles skip the worker.
|
|
145
|
+
`MANTA_SESSION_SECRET` (at least 32 characters) is a Worker secret that seals the session cookie.
|
|
146
|
+
Binding the agents worker as `AGENTS` (a service binding) skips the public network. The app's origin
|
|
147
|
+
must be in the agents worker's `TRUSTED_ORIGINS`.
|
|
148
|
+
|
|
149
|
+
- `/login`, `/auth/callback` and `/logout` go to the agents worker. Its session cookies come back
|
|
150
|
+
sealed (AES-GCM, `@manta-eu/auth/sealed-cookies`) inside the app's own `HttpOnly` cookies, named
|
|
151
|
+
by `cookiePrefix`.
|
|
152
|
+
- `/api/login` answers "signed out" without a round trip when there is no session.
|
|
153
|
+
- The SDK's paths (`/graphql`, `/sparql`, `/d/:datastoreId/sparql`, chat, uploads) are proxied only
|
|
154
|
+
from the app's own origin, only with a session, and only with the methods each path serves.
|
|
155
|
+
- `/graphql` forwards only named operations on an allowlist, each limited to its root fields. The
|
|
156
|
+
allowlist is every operation the SDK ships (`@manta-eu/client/operations`) plus the ones an app
|
|
157
|
+
adds with `graphqlOperations`. It refuses unknown operations, and the agents worker still decides
|
|
158
|
+
what the signed-in user may do. An app adds its own paths with `proxyRoutes`.
|
|
159
|
+
- Anything else falls through to `ASSETS`, so routes an app adds to the returned Hono app run
|
|
160
|
+
first.
|
|
161
|
+
|
|
162
|
+
### The shell
|
|
163
|
+
|
|
164
|
+
`@manta-eu/react/components/app-shell` is the React app around the SDK's screens, with the operator,
|
|
165
|
+
group and datastore levels. The styles are the ones from step 2.
|
|
166
|
+
|
|
167
|
+
```tsx
|
|
168
|
+
import "./styles.css";
|
|
169
|
+
import { AppShell } from "@manta-eu/react/components/app-shell";
|
|
170
|
+
import { createRoot } from "react-dom/client";
|
|
171
|
+
|
|
172
|
+
createRoot(document.getElementById("app")!).render(<AppShell />);
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
- **Operator:** the SDK's global routes, and the datastore list for operators when the build sets
|
|
176
|
+
`VITE_ENABLE_DATASTORE_MANAGEMENT=true`.
|
|
177
|
+
- **Group:** `/g/:group` lists the datastores under a group.
|
|
178
|
+
- **Datastore:** `/d/:datastoreId/...` mounts Plans, Chat, Activity, Explain, Memories, the Data
|
|
179
|
+
Explorer and Data collection. Replace or add screens with `routes`, add routes inside a datastore
|
|
180
|
+
with `datastoreRoutes`, and add sidebar entries with `navItems`.
|
|
181
|
+
|
|
123
182
|
## Using the components on their own
|
|
124
183
|
|
|
125
184
|
The design system is usable without the chat:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/AppErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/AppErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAiB5D"}
|
|
@@ -2,17 +2,20 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ErrorBoundary } from "./ErrorBoundary.js";
|
|
3
3
|
import { StatusScreen } from "./layouts/StatusScreen.js";
|
|
4
4
|
import { Button } from "#components/button/index";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
5
|
+
import { updateNoticeAppName } from "#lib/update-notice";
|
|
6
|
+
function copyFor(appName) {
|
|
7
|
+
return {
|
|
8
|
+
staleChunk: {
|
|
9
|
+
title: `A new version of ${appName} is available`,
|
|
10
|
+
description: "This page is running an older version. Reload when you're ready.",
|
|
11
|
+
},
|
|
12
|
+
unexpected: {
|
|
13
|
+
title: "Something went wrong",
|
|
14
|
+
description: `${appName} hit an unexpected error.`,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
15
18
|
export function AppErrorBoundary(props) {
|
|
16
|
-
return (_jsx(ErrorBoundary, { fullScreen: true, fallback: ({ staleChunk }) => (_jsx("div", { className: "h-screen", "data-testid": staleChunk ? "update-notice-screen" : "app-error-screen", children: _jsx(StatusScreen, { ...(staleChunk ?
|
|
19
|
+
return (_jsx(ErrorBoundary, { fullScreen: true, fallback: ({ staleChunk }) => (_jsx("div", { className: "h-screen", "data-testid": staleChunk ? "update-notice-screen" : "app-error-screen", children: _jsx(StatusScreen, { ...copyFor(updateNoticeAppName())[staleChunk ? "staleChunk" : "unexpected"], role: "alert", children: _jsx(Button, { variant: "secondary", onClick: () => window.location.reload(), children: "Reload" }) }) })), children: props.children }));
|
|
17
20
|
}
|
|
18
21
|
//# sourceMappingURL=AppErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppErrorBoundary.js","sourceRoot":"","sources":["../../src/components/AppErrorBoundary.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"AppErrorBoundary.js","sourceRoot":"","sources":["../../src/components/AppErrorBoundary.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO;QACL,UAAU,EAAE;YACV,KAAK,EAAE,oBAAoB,OAAO,eAAe;YACjD,WAAW,EAAE,kEAAkE;SAChF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,GAAG,OAAO,2BAA2B;SACnD;KACF,CAAC;AACJ,CAAC;AAMD,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,OAAO,CACL,KAAC,aAAa,IACZ,UAAU,QACV,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAC5B,cAAK,SAAS,EAAC,UAAU,iBAAc,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,kBAAkB,YAC7F,KAAC,YAAY,OAAK,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAC,OAAO,YACtG,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,uBAE1D,GACI,GACX,CACP,YAEA,KAAK,CAAC,QAAQ,GACD,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type AuthContextValue } from "#providers/AuthContext";
|
|
3
|
+
export type AppGateProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
context?: Pick<AuthContextValue, "canDisconnectCustomApps" | "hasProfilePage">;
|
|
6
|
+
};
|
|
7
|
+
export declare function AppGate(props: AppGateProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=AppGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppGate.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/AppGate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK5E,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,yBAAyB,GAAG,gBAAgB,CAAC,CAAC;CAChF,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAmG1C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useLocation } from "react-router";
|
|
3
|
+
import { AwaitingDatastoreStatus } from "./AwaitingDatastoreStatus.js";
|
|
4
|
+
import { ErrorRoute } from "./ErrorRoute.js";
|
|
5
|
+
import { NoDatastoreAccess } from "./NoDatastoreAccess.js";
|
|
6
|
+
import { PendingInvitations } from "./PendingInvitations.js";
|
|
7
|
+
import { ServiceError } from "./ServiceError.js";
|
|
8
|
+
import { LoadingView } from "#components/chat-view/LoadingView";
|
|
9
|
+
import { useAuth } from "#hooks/useAuth";
|
|
10
|
+
import { buildLoginUrl, useLoginRedirect } from "#hooks/useLoginRedirect";
|
|
11
|
+
import { enableDatastoreManagement } from "#lib/build-config";
|
|
12
|
+
import { useActiveDatastore } from "#providers/ActiveDatastoreProvider";
|
|
13
|
+
import { AuthContext } from "#providers/AuthContext";
|
|
14
|
+
import { useMantaClient } from "#providers/MantaClientProvider";
|
|
15
|
+
import { errorRoutePath } from "@manta-eu/client/shared/constants";
|
|
16
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
17
|
+
export function AppGate(props) {
|
|
18
|
+
const { children, context } = props;
|
|
19
|
+
const { pathname } = useLocation();
|
|
20
|
+
const auth = useAuth();
|
|
21
|
+
const { authError } = useLoginRedirect(auth);
|
|
22
|
+
const { mantaBaseUrl } = useMantaClient();
|
|
23
|
+
const { datastoreId: routeDatastoreId, enterDatastore } = useActiveDatastore();
|
|
24
|
+
const { isLoading, error, user, datastore, datastores, isOperator, inOrganization, logout, contextFailed, datastoreAccessGranted, canManageTeam, canManageCustomApps, orgRoles, canManageIntegrations, canManageStreams, canManageSharedMemories, canSwitchDatastore, allowedModels, } = auth;
|
|
25
|
+
if (pathname === errorRoutePath)
|
|
26
|
+
return _jsx(ErrorRoute, {});
|
|
27
|
+
if (isLoading)
|
|
28
|
+
return _jsx(LoadingView, {});
|
|
29
|
+
if (isPresent(error))
|
|
30
|
+
return _jsx(ServiceError, { message: error });
|
|
31
|
+
if (isPresent(authError)) {
|
|
32
|
+
return (_jsx(ServiceError, { title: "Sign-in failed", message: authError, onRetry: () => window.location.replace(buildLoginUrl(mantaBaseUrl)), onSignOut: () => void logout() }));
|
|
33
|
+
}
|
|
34
|
+
if (!isPresent(user) || (!isOperator && !isPresent(datastore))) {
|
|
35
|
+
if (contextFailed)
|
|
36
|
+
return _jsx(ServiceError, { message: "Failed to load your account. Please try again." });
|
|
37
|
+
if (isPresent(user) && !isOperator) {
|
|
38
|
+
function onSignOut() {
|
|
39
|
+
void logout();
|
|
40
|
+
}
|
|
41
|
+
return inOrganization ? (_jsx(AwaitingDatastoreStatus, { inOrganization: true, onSignOut: onSignOut })) : (_jsx(PendingInvitations, { onSignOut: onSignOut }));
|
|
42
|
+
}
|
|
43
|
+
return _jsx(LoadingView, {});
|
|
44
|
+
}
|
|
45
|
+
if (isPresent(routeDatastoreId) && !datastoreAccessGranted) {
|
|
46
|
+
return (_jsx(NoDatastoreAccess, { requestedDatastoreId: routeDatastoreId, datastore: datastore, onEnter: () => isPresent(datastore) && enterDatastore(datastore.id, { replace: true }) }));
|
|
47
|
+
}
|
|
48
|
+
const authContextValue = {
|
|
49
|
+
datastore,
|
|
50
|
+
datastores,
|
|
51
|
+
user,
|
|
52
|
+
logout,
|
|
53
|
+
isOperator,
|
|
54
|
+
canManageTeam,
|
|
55
|
+
canManageDatastores: isOperator && enableDatastoreManagement,
|
|
56
|
+
canManageCustomApps,
|
|
57
|
+
inOrganization,
|
|
58
|
+
orgRoles,
|
|
59
|
+
canManageIntegrations,
|
|
60
|
+
canManageStreams,
|
|
61
|
+
canManageSharedMemories,
|
|
62
|
+
canSwitchDatastore,
|
|
63
|
+
allowedModels,
|
|
64
|
+
...context,
|
|
65
|
+
};
|
|
66
|
+
return _jsx(AuthContext.Provider, { value: authContextValue, children: children });
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=AppGate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppGate.js","sourceRoot":"","sources":["../../../src/components/app-gate/AppGate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAyB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAOlD,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MA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AwaitingDatastoreStatusProps = {
|
|
2
|
+
inOrganization: boolean;
|
|
3
|
+
failure?: string;
|
|
4
|
+
onSignOut: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function AwaitingDatastoreStatus(props: AwaitingDatastoreStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=AwaitingDatastoreStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AwaitingDatastoreStatus.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/AwaitingDatastoreStatus.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,4BAA4B,GAAG;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAahH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CAiB1E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FailureAlert } from "./FailureAlert.js";
|
|
3
|
+
import { Button } from "#components/button/index";
|
|
4
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
5
|
+
const settingUpCopy = {
|
|
6
|
+
title: "We're setting up Manta for you",
|
|
7
|
+
description: "Our team is getting your account ready. This can take a little while.",
|
|
8
|
+
hint: "Still here after a while? Ask your administrator to provision a datastore.",
|
|
9
|
+
};
|
|
10
|
+
const noOrganizationCopy = {
|
|
11
|
+
title: "You're not in an organization yet",
|
|
12
|
+
description: "Ask your administrator to add you to one. This page picks it up on its own.",
|
|
13
|
+
};
|
|
14
|
+
export function AwaitingDatastoreStatus(props) {
|
|
15
|
+
const { inOrganization, failure, onSignOut } = props;
|
|
16
|
+
const copy = inOrganization ? settingUpCopy : noOrganizationCopy;
|
|
17
|
+
return (_jsx("div", { className: "h-screen w-full", children: _jsx(StatusScreen, { ...copy, branded: true, children: _jsxs("div", { className: "flex w-88 max-w-full flex-col items-center gap-4", children: [_jsx(FailureAlert, { failure: failure }), _jsx(Button, { variant: "tertiary", rounded: "sm", "data-testid": "awaiting-datastore-sign-out", onClick: onSignOut, children: "Sign out" })] }) }) }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=AwaitingDatastoreStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AwaitingDatastoreStatus.js","sourceRoot":"","sources":["../../../src/components/app-gate/AwaitingDatastoreStatus.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,gCAAgC;IACvC,WAAW,EAAE,uEAAuE;IACpF,IAAI,EAAE,4EAA4E;CACnF,CAAC;AAEF,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EAAE,6EAA6E;CAC3F,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,KAAmC;IACzE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAErD,MAAM,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,CAAC;IAEjE,OAAO,CACL,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAC,YAAY,OAAK,IAAI,EAAE,OAAO,kBAC7B,eAAK,SAAS,EAAC,kDAAkD,aAC/D,KAAC,YAAY,IAAC,OAAO,EAAE,OAAO,GAAI,EAClC,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAC,IAAI,iBAAa,6BAA6B,EAAC,OAAO,EAAE,SAAS,yBAE3F,IACL,GACO,GACX,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnterDatastoreRoute.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/EnterDatastoreRoute.tsx"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,4CAoBlC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { LoadingView } from "#components/chat-view/LoadingView";
|
|
3
|
+
import { datastoreRelativePath } from "@manta-eu/client/shared/datastore-path";
|
|
4
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
5
|
+
import { useEffect } from "react";
|
|
6
|
+
import { useLocation } from "react-router";
|
|
7
|
+
import { AwaitingDatastoreStatus } from "./AwaitingDatastoreStatus.js";
|
|
8
|
+
import { useActiveDatastore } from "#providers/ActiveDatastoreProvider";
|
|
9
|
+
import { useAuthContext } from "#providers/AuthContext";
|
|
10
|
+
export function EnterDatastoreRoute() {
|
|
11
|
+
const { datastore, inOrganization, logout } = useAuthContext();
|
|
12
|
+
const { enterDatastore } = useActiveDatastore();
|
|
13
|
+
const { pathname, search, hash } = useLocation();
|
|
14
|
+
const datastoreId = datastore?.id;
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (!isPresent(datastoreId))
|
|
17
|
+
return;
|
|
18
|
+
enterDatastore(datastoreId, { path: `${datastoreRelativePath(pathname)}${search}${hash}`, replace: true });
|
|
19
|
+
}, [datastoreId, enterDatastore, pathname, search, hash]);
|
|
20
|
+
if (!isPresent(datastoreId)) {
|
|
21
|
+
return _jsx(AwaitingDatastoreStatus, { inOrganization: inOrganization === true, onSignOut: () => void logout() });
|
|
22
|
+
}
|
|
23
|
+
return _jsx(LoadingView, {});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=EnterDatastoreRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnterDatastoreRoute.js","sourceRoot":"","sources":["../../../src/components/app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KAAK,MAAM,EAAE,GAAI,CAAC;IAC9G,CAAC;IAED,OAAO,KAAC,WAAW,KAAG,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorRoute.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/ErrorRoute.tsx"],"names":[],"mappings":"AA4BA,wBAAgB,UAAU,4CAczB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "#components/button/index";
|
|
3
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
4
|
+
import { Link, useSearchParams } from "react-router";
|
|
5
|
+
import { match } from "ts-pattern";
|
|
6
|
+
const genericErrorCopy = {
|
|
7
|
+
title: "Something went wrong",
|
|
8
|
+
description: "We couldn't open this link.",
|
|
9
|
+
};
|
|
10
|
+
function copyForStatus(status) {
|
|
11
|
+
return match(status)
|
|
12
|
+
.with("400", () => ({
|
|
13
|
+
title: "Broken link",
|
|
14
|
+
description: "This link isn't valid.",
|
|
15
|
+
}))
|
|
16
|
+
.with("404", () => ({
|
|
17
|
+
title: "Nothing to open",
|
|
18
|
+
description: "We couldn't find anything at this link.",
|
|
19
|
+
}))
|
|
20
|
+
.otherwise(() => genericErrorCopy);
|
|
21
|
+
}
|
|
22
|
+
export function ErrorRoute() {
|
|
23
|
+
const [searchParams] = useSearchParams();
|
|
24
|
+
const { title, description } = copyForStatus(searchParams.get("status"));
|
|
25
|
+
return (_jsx("div", { className: "h-screen w-full", children: _jsx(StatusScreen, { title: title, description: description, role: "alert", children: _jsx(Button, { asChild: true, variant: "secondary", children: _jsx(Link, { to: "/", children: "Back to Manta" }) }) }) }));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ErrorRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorRoute.js","sourceRoot":"","sources":["../../../src/components/app-gate/ErrorRoute.tsx"],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","sourceRoot":"","sources":["../../../src/components/app-gate/FailureAlert.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,kDAUpD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
export function FailureAlert(props) {
|
|
4
|
+
const { failure } = props;
|
|
5
|
+
if (!isPresent(failure))
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsx("p", { role: "alert", className: "text-center text-balance typography-small text-error-foreground", children: failure }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=FailureAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailureAlert.js","sourceRoot":"","sources":["../../../src/components/app-gate/FailureAlert.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAErC,OAAO,CACL,YAAG,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,iEAAiE,YACxF,OAAO,GACN,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Datastore } from "#lib/chat-types";
|
|
2
|
+
export type NoDatastoreAccessProps = {
|
|
3
|
+
requestedDatastoreId: string;
|
|
4
|
+
datastore?: Datastore;
|
|
5
|
+
onEnter: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function NoDatastoreAccess(props: NoDatastoreAccessProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=NoDatastoreAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoDatastoreAccess.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/NoDatastoreAccess.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,MAAM,sBAAsB,GAAG;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAElH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAkB9D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { Button } from "#components/button/index";
|
|
4
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
5
|
+
export function NoDatastoreAccess(props) {
|
|
6
|
+
const { requestedDatastoreId, datastore, onEnter } = props;
|
|
7
|
+
return (_jsx("div", { className: "h-screen", children: _jsx(StatusScreen, { title: `You don't have access to "${requestedDatastoreId}"`, description: "Ask whoever shared this link to grant you access, or open one of your own datastores.", role: "alert", children: isPresent(datastore) && (_jsxs(Button, { variant: "tertiary", rounded: "sm", "data-testid": "no-datastore-access-enter", onClick: onEnter, children: ["Go to ", datastore.name] })) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=NoDatastoreAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoDatastoreAccess.js","sourceRoot":"","sources":["../../../src/components/app-gate/NoDatastoreAccess.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAKhE,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,oBAAoB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE3D,OAAO,CACL,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,YAAY,IACX,KAAK,EAAE,6BAA6B,oBAAoB,GAAG,EAC3D,WAAW,EAAC,uFAAuF,EACnG,IAAI,EAAC,OAAO,YAEX,SAAS,CAAC,SAAS,CAAC,IAAI,CACvB,MAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAC,IAAI,iBAAa,2BAA2B,EAAC,OAAO,EAAE,OAAO,uBACvF,SAAS,CAAC,IAAI,IACd,CACV,GACY,GACX,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundRoute.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/NotFoundRoute.tsx"],"names":[],"mappings":"AAKA,wBAAgB,aAAa,4CAc5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "#components/button/index";
|
|
3
|
+
import { RouteLayout } from "#components/layouts/RouteLayout";
|
|
4
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
5
|
+
import { Link } from "react-router";
|
|
6
|
+
export function NotFoundRoute() {
|
|
7
|
+
return (_jsx(RouteLayout, { children: _jsx(StatusScreen, { title: "Page not found", description: "This page doesn't exist, or your account doesn't have access to it.", role: "alert", children: _jsx(Button, { asChild: true, variant: "secondary", children: _jsx(Link, { to: "/", children: "Back to Manta" }) }) }) }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=NotFoundRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotFoundRoute.js","sourceRoot":"","sources":["../../../src/components/app-gate/NotFoundRoute.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,KAAC,WAAW,cACV,KAAC,YAAY,IACX,KAAK,EAAC,gBAAgB,EACtB,WAAW,EAAC,qEAAqE,EACjF,IAAI,EAAC,OAAO,YAEZ,KAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAC,WAAW,YACjC,KAAC,IAAI,IAAC,EAAE,EAAC,GAAG,8BAAqB,GAC1B,GACI,GACH,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PendingInvitations.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/PendingInvitations.tsx"],"names":[],"mappings":"AAiBA,MAAM,MAAM,uBAAuB,GAAG;IAAE,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAIhE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAgHhE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
4
|
+
import { match } from "ts-pattern";
|
|
5
|
+
import { AwaitingDatastoreStatus } from "./AwaitingDatastoreStatus.js";
|
|
6
|
+
import { FailureAlert } from "./FailureAlert.js";
|
|
7
|
+
import { Button } from "#components/button/index";
|
|
8
|
+
import { LoadingView } from "#components/chat-view/LoadingView";
|
|
9
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
10
|
+
import { userContextQueryKey } from "#hooks/useAuth";
|
|
11
|
+
import { graphqlErrorMessage } from "#lib/graphql-error";
|
|
12
|
+
import { useMantaClient } from "#providers/MantaClientProvider";
|
|
13
|
+
import { useAcceptInvitationMutation, useDeclineInvitationMutation, usePendingInvitationsQuery, } from "@manta-eu/client";
|
|
14
|
+
const invitationsStaleMs = 30_000;
|
|
15
|
+
export function PendingInvitations(props) {
|
|
16
|
+
const { onSignOut } = props;
|
|
17
|
+
const { mantaClient } = useMantaClient();
|
|
18
|
+
const queryClient = useQueryClient();
|
|
19
|
+
const invitationsQuery = usePendingInvitationsQuery(mantaClient, undefined, {
|
|
20
|
+
staleTime: invitationsStaleMs,
|
|
21
|
+
refetchInterval: invitationsStaleMs,
|
|
22
|
+
refetchIntervalInBackground: false,
|
|
23
|
+
retry: 1,
|
|
24
|
+
});
|
|
25
|
+
function refreshInvitations() {
|
|
26
|
+
return queryClient.invalidateQueries({ queryKey: usePendingInvitationsQuery.getKey() });
|
|
27
|
+
}
|
|
28
|
+
const acceptMutation = useAcceptInvitationMutation(mantaClient, {
|
|
29
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: userContextQueryKey }),
|
|
30
|
+
onError: refreshInvitations,
|
|
31
|
+
});
|
|
32
|
+
const declineMutation = useDeclineInvitationMutation(mantaClient, { onSettled: refreshInvitations });
|
|
33
|
+
const invitations = invitationsQuery.data?.pendingInvitations ?? [];
|
|
34
|
+
const [only] = invitations;
|
|
35
|
+
const busy = acceptMutation.isPending || declineMutation.isPending;
|
|
36
|
+
const failure = match({ acceptMutation, declineMutation, invitationsQuery })
|
|
37
|
+
.with({ acceptMutation: { isError: true } }, (failed) => graphqlErrorMessage(failed.acceptMutation.error, "The invitation could not be accepted. Try again."))
|
|
38
|
+
.with({ declineMutation: { isError: true } }, (failed) => graphqlErrorMessage(failed.declineMutation.error, "The invitation could not be declined. Try again."))
|
|
39
|
+
.with({ invitationsQuery: { isError: true } }, (failed) => graphqlErrorMessage(failed.invitationsQuery.error, "Your invitations could not be loaded. Reload the page to try again."))
|
|
40
|
+
.otherwise(() => undefined);
|
|
41
|
+
if (acceptMutation.isSuccess)
|
|
42
|
+
return _jsx(AwaitingDatastoreStatus, { inOrganization: true, onSignOut: onSignOut });
|
|
43
|
+
if (invitationsQuery.isPending)
|
|
44
|
+
return _jsx(LoadingView, {});
|
|
45
|
+
if (!isPresent(invitations)) {
|
|
46
|
+
return _jsx(AwaitingDatastoreStatus, { inOrganization: false, failure: failure, onSignOut: onSignOut });
|
|
47
|
+
}
|
|
48
|
+
return (_jsx("div", { className: "h-screen w-full", children: _jsx(StatusScreen, { title: "You've been invited", description: invitations.length === 1 && isPresent(only)
|
|
49
|
+
? `${only.organizationName} invited you to join their organization.`
|
|
50
|
+
: "These organizations invited you. Pick the one to join.", branded: true, children: _jsxs("div", { className: "flex w-104 max-w-full flex-col gap-4", children: [_jsx(FailureAlert, { failure: failure }), _jsx("ul", { className: "divide-y divide-muted-border overflow-hidden rounded-lg-v4 border border-muted-border bg-card text-left", children: invitations.map((invitation) => (_jsxs("li", { className: "flex items-center gap-3 px-4 py-3", children: [_jsx("span", { className: "min-w-0 flex-1 truncate typography-body-semibold text-default-foreground", children: invitation.organizationName }), _jsx(Button, { variant: "tertiary", size: "sm", "data-testid": "decline-invitation", "aria-label": `Decline ${invitation.organizationName}'s invitation`, disabled: busy, onClick: () => {
|
|
51
|
+
acceptMutation.reset();
|
|
52
|
+
declineMutation.mutate({ organizationId: invitation.organizationId });
|
|
53
|
+
}, children: "Decline" }), _jsx(Button, { size: "sm", "data-testid": "accept-invitation", "aria-label": `Join ${invitation.organizationName}`, disabled: busy, onClick: () => {
|
|
54
|
+
declineMutation.reset();
|
|
55
|
+
acceptMutation.mutate({ organizationId: invitation.organizationId });
|
|
56
|
+
}, children: "Join" })] }, invitation.organizationId))) }), _jsx(Button, { variant: "tertiary", rounded: "sm", "data-testid": "awaiting-datastore-sign-out", onClick: onSignOut, className: "self-center", children: "Sign out" })] }) }) }));
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=PendingInvitations.js.map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ACT,KAAC,MAAM,IACL,IAAI,EAAC,IAAI,iBACG,mBAAmB,gBACnB,QAAQ,UAAU,CAAC,gBAAgB,EAAE,EACjD,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,GAAG,EAAE;wCACZ,eAAe,CAAC,KAAK,EAAE,CAAC;wCACxB,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC;oCACvE,CAAC,qBAGM,KA5BF,UAAU,CAAC,cAAc,CA6B7B,CACN,CAAC,GACC,EACL,KAAC,MAAM,IACL,OAAO,EAAC,UAAU,EAClB,OAAO,EAAC,IAAI,iBACA,6BAA6B,EACzC,OAAO,EAAE,SAAS,EAClB,SAAS,EAAC,aAAa,yBAGhB,IACL,GACO,GACX,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ServiceErrorProps = {
|
|
2
|
+
title?: string;
|
|
3
|
+
message: string;
|
|
4
|
+
onRetry?: () => void;
|
|
5
|
+
onSignOut?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ServiceError(props: ServiceErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=ServiceError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceError.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/ServiceError.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAElH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAoBpD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { Button } from "#components/button/index";
|
|
4
|
+
import { StatusScreen } from "#components/layouts/StatusScreen";
|
|
5
|
+
export function ServiceError(props) {
|
|
6
|
+
const { title = "Something went wrong", message, onRetry, onSignOut } = props;
|
|
7
|
+
const handleRetry = onRetry ?? (() => window.location.reload());
|
|
8
|
+
return (_jsx("div", { "data-testid": "service-error", className: "h-screen w-full", children: _jsxs(StatusScreen, { title: title, description: message, role: "alert", children: [_jsx(Button, { variant: "tertiary", rounded: "sm", onClick: handleRetry, children: isPresent(onRetry) ? "Try again" : "Retry" }), isPresent(onSignOut) && (_jsx(Button, { variant: "tertiary", rounded: "sm", "data-testid": "service-error-sign-out", onClick: onSignOut, children: "Sign out" }))] }) }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ServiceError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceError.js","sourceRoot":"","sources":["../../../src/components/app-gate/ServiceError.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,GAAG,sBAAsB,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE9E,MAAM,WAAW,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAEhE,OAAO,CACL,6BAAiB,eAAe,EAAC,SAAS,EAAC,iBAAiB,YAC1D,MAAC,YAAY,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,aAC5D,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAE,WAAW,YACzD,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,GACpC,EAER,SAAS,CAAC,SAAS,CAAC,IAAI,CACvB,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAC,IAAI,iBAAa,wBAAwB,EAAC,OAAO,EAAE,SAAS,yBAEtF,CACV,IACY,GACX,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/app-gate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const sdkRouteElements: {
|
|
2
|
+
Chat: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
EnterDatastore: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Group: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
Plans: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Explain: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Memories: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Activity: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
ActivityDetail: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
DataExplorerLayout: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
DataExplorerIndex: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
DataExplorerRecent: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
DataExplorerCoverage: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
DataExplorerFiles: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
DataExplorerIngest: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
DataCollection: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
DataExplorerPrefix: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
DataExplorerType: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
DataEntity: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
DataDetail: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
NotFound: import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=sdk-route-elements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk-route-elements.d.ts","sourceRoot":"","sources":["../../../src/components/app-gate/sdk-route-elements.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAqBJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { GroupRoute } from "#components/app-shell/GroupRoute";
|
|
3
|
+
import { AuthenticatedChat } from "#components/authenticated-chat/index";
|
|
4
|
+
import { EnterDatastoreRoute } from "./EnterDatastoreRoute.js";
|
|
5
|
+
import { NotFoundRoute } from "./NotFoundRoute.js";
|
|
6
|
+
import { ActivityRoute } from "#routes/activity/index";
|
|
7
|
+
import { ActivityDetailRoute } from "#routes/activity/detail/ActivityDetailRoute";
|
|
8
|
+
import { DataCollectionRoute } from "#routes/data-collection/index";
|
|
9
|
+
import { DataDetailRoute, DataExplorerCoverageRoute, DataExplorerEntityRoute, DataExplorerFilesRoute, DataExplorerIndexRoute, DataExplorerIngestRoute, DataExplorerLayout, DataExplorerPrefixRoute, DataExplorerRecentRoute, DataExplorerTypeRoute, } from "#routes/data-explorer/index";
|
|
10
|
+
import { ExplainRoute } from "#routes/explain/index";
|
|
11
|
+
import { MemoriesRoute } from "#routes/memories/index";
|
|
12
|
+
import { PlansRoute } from "#routes/plans/index";
|
|
13
|
+
export const sdkRouteElements = {
|
|
14
|
+
Chat: _jsx(AuthenticatedChat, {}),
|
|
15
|
+
EnterDatastore: _jsx(EnterDatastoreRoute, {}),
|
|
16
|
+
Group: _jsx(GroupRoute, {}),
|
|
17
|
+
Plans: _jsx(PlansRoute, {}),
|
|
18
|
+
Explain: _jsx(ExplainRoute, {}),
|
|
19
|
+
Memories: _jsx(MemoriesRoute, {}),
|
|
20
|
+
Activity: _jsx(ActivityRoute, {}),
|
|
21
|
+
ActivityDetail: _jsx(ActivityDetailRoute, {}),
|
|
22
|
+
DataExplorerLayout: _jsx(DataExplorerLayout, {}),
|
|
23
|
+
DataExplorerIndex: _jsx(DataExplorerIndexRoute, {}),
|
|
24
|
+
DataExplorerRecent: _jsx(DataExplorerRecentRoute, {}),
|
|
25
|
+
DataExplorerCoverage: _jsx(DataExplorerCoverageRoute, {}),
|
|
26
|
+
DataExplorerFiles: _jsx(DataExplorerFilesRoute, {}),
|
|
27
|
+
DataExplorerIngest: _jsx(DataExplorerIngestRoute, {}),
|
|
28
|
+
DataCollection: _jsx(DataCollectionRoute, {}),
|
|
29
|
+
DataExplorerPrefix: _jsx(DataExplorerPrefixRoute, {}),
|
|
30
|
+
DataExplorerType: _jsx(DataExplorerTypeRoute, {}),
|
|
31
|
+
DataEntity: _jsx(DataExplorerEntityRoute, {}),
|
|
32
|
+
DataDetail: _jsx(DataDetailRoute, {}),
|
|
33
|
+
NotFound: _jsx(NotFoundRoute, {}),
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=sdk-route-elements.js.map
|