@elevasis/ui 1.20.0 → 1.21.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/dist/auth/index.d.ts +174 -14
- package/dist/charts/index.js +3 -2
- package/dist/{chunk-Z2BXCFAG.js → chunk-2WLVOFK7.js} +1 -1
- package/dist/{chunk-ACD2QA6E.js → chunk-3DIU726S.js} +2 -2
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/chunk-AWT255UH.js +255 -0
- package/dist/{chunk-AWMZCYKH.js → chunk-BC6TJEON.js} +2 -45
- package/dist/{chunk-I6EVLOP3.js → chunk-CRFV2TVK.js} +2 -2
- package/dist/{chunk-EMN755L5.js → chunk-CTF6FS2M.js} +10 -216
- package/dist/{chunk-4SY4EQSK.js → chunk-CYJILY7M.js} +3 -3
- package/dist/{chunk-AQ5MQDSS.js → chunk-EDAYKRPJ.js} +404 -2
- package/dist/{chunk-XOTN3X3Z.js → chunk-FATKFO7X.js} +3 -54
- package/dist/{chunk-ERVB3QJQ.js → chunk-FVBYSDM4.js} +1 -1
- package/dist/{chunk-BX565EOK.js → chunk-MOBXWBES.js} +495 -860
- package/dist/{chunk-U4CHEPIL.js → chunk-NL6EFQYE.js} +515 -265
- package/dist/{chunk-JHMJKDVU.js → chunk-R3R367QY.js} +1 -1
- package/dist/chunk-ROSMICXG.js +668 -0
- package/dist/{chunk-GH7ZO4VD.js → chunk-ST2RSBQ3.js} +364 -364
- package/dist/{chunk-JZEXFQ6N.js → chunk-UZWZY7TJ.js} +2 -2
- package/dist/{chunk-UMFPUM7Q.js → chunk-V422ET6W.js} +12 -12
- package/dist/components/chat/index.d.ts +202 -0
- package/dist/components/chat/index.js +2 -0
- package/dist/components/index.d.ts +5708 -22
- package/dist/components/index.js +2653 -2901
- package/dist/features/auth/index.d.ts +2557 -9
- package/dist/features/dashboard/index.d.ts +244 -9
- package/dist/features/dashboard/index.js +10 -9
- package/dist/features/monitoring/index.d.ts +121 -15
- package/dist/features/monitoring/index.js +11 -10
- package/dist/features/operations/index.d.ts +2006 -29
- package/dist/features/operations/index.js +1116 -170
- package/dist/features/settings/index.d.ts +2589 -23
- package/dist/features/settings/index.js +10 -9
- package/dist/hooks/index.css +68 -0
- package/dist/hooks/index.d.ts +7772 -22
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/published.css +68 -0
- package/dist/hooks/published.d.ts +7216 -21
- package/dist/hooks/published.js +5 -5
- package/dist/index.css +68 -0
- package/dist/index.d.ts +9684 -15
- package/dist/index.js +7 -7
- package/dist/initialization/index.d.ts +2526 -23
- package/dist/layout/index.d.ts +3 -3
- package/dist/layout/index.js +4 -4
- package/dist/organization/index.d.ts +274 -23
- package/dist/profile/index.d.ts +2477 -15
- package/dist/provider/index.d.ts +334 -11
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +309 -11
- package/dist/theme/index.d.ts +148 -10
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/synapse.d.ts.map +1 -1
- package/dist/theme/presets/synapse.js +75 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +9 -4
- package/dist/auth/guards/AdminGuard.d.ts +0 -32
- package/dist/auth/guards/AdminGuard.d.ts.map +0 -1
- package/dist/auth/guards/ProtectedRoute.d.ts +0 -60
- package/dist/auth/guards/ProtectedRoute.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +0 -12
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +0 -1
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +0 -14
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/chunk-JFRG2JJE.js +0 -47
- package/dist/components/charts/ActivityTrendChart.d.ts +0 -13
- package/dist/components/charts/ActivityTrendChart.d.ts.map +0 -1
- package/dist/components/charts/CombinedTrendChart.d.ts +0 -22
- package/dist/components/charts/CombinedTrendChart.d.ts.map +0 -1
- package/dist/components/charts/CostTrendChart.d.ts +0 -13
- package/dist/components/charts/CostTrendChart.d.ts.map +0 -1
- package/dist/components/charts/HeroStatsRow.d.ts +0 -15
- package/dist/components/charts/HeroStatsRow.d.ts.map +0 -1
- package/dist/components/charts/index.d.ts +0 -9
- package/dist/components/charts/index.d.ts.map +0 -1
- package/dist/components/command-queue/TaskCard.d.ts +0 -18
- package/dist/components/command-queue/TaskCard.d.ts.map +0 -1
- package/dist/components/command-queue/index.d.ts +0 -5
- package/dist/components/command-queue/index.d.ts.map +0 -1
- package/dist/components/display/PageNotFound.d.ts +0 -2
- package/dist/components/display/PageNotFound.d.ts.map +0 -1
- package/dist/components/display/index.d.ts +0 -26
- package/dist/components/display/index.d.ts.map +0 -1
- package/dist/components/execution/ExecutionStats.d.ts +0 -16
- package/dist/components/execution/ExecutionStats.d.ts.map +0 -1
- package/dist/components/execution/index.d.ts +0 -18
- package/dist/components/execution/index.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/AuroraBackground.js +0 -169
- package/dist/components/layout/backgrounds/EmberBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/EmberBackground.js +0 -169
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +0 -16
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/RoseGoldBackground.js +0 -169
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
- package/dist/components/monitoring/ResourceHealthPanel.d.ts +0 -8
- package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +0 -1
- package/dist/components/monitoring/index.d.ts +0 -16
- package/dist/components/monitoring/index.d.ts.map +0 -1
- package/dist/components/notifications/NotificationBell.d.ts +0 -9
- package/dist/components/notifications/NotificationBell.d.ts.map +0 -1
- package/dist/components/notifications/NotificationItem.d.ts +0 -9
- package/dist/components/notifications/NotificationItem.d.ts.map +0 -1
- package/dist/components/notifications/NotificationList.d.ts +0 -10
- package/dist/components/notifications/NotificationList.d.ts.map +0 -1
- package/dist/components/notifications/NotificationPanel.d.ts +0 -10
- package/dist/components/notifications/NotificationPanel.d.ts.map +0 -1
- package/dist/components/notifications/index.d.ts +0 -5
- package/dist/components/notifications/index.d.ts.map +0 -1
- package/dist/components/operations/calibration/CreateProjectModal.d.ts +0 -9
- package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +0 -1
- package/dist/components/operations/calibration/ProjectCard.d.ts +0 -9
- package/dist/components/operations/calibration/ProjectCard.d.ts.map +0 -1
- package/dist/components/operations/command-queue/index.d.ts +0 -3
- package/dist/components/operations/command-queue/index.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +0 -17
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +0 -17
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +0 -1
- package/dist/components/operations/command-queue/sidebar/index.d.ts +0 -5
- package/dist/components/operations/command-queue/sidebar/index.d.ts.map +0 -1
- package/dist/components/operations/command-view/CommandViewGraph.d.ts +0 -22
- package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +0 -1
- package/dist/components/operations/command-view/index.d.ts +0 -4
- package/dist/components/operations/command-view/index.d.ts.map +0 -1
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts +0 -13
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +0 -13
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/executions/index.d.ts +0 -4
- package/dist/components/operations/executions/index.d.ts.map +0 -1
- package/dist/components/operations/index.d.ts +0 -8
- package/dist/components/operations/index.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +0 -14
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +0 -16
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +0 -1
- package/dist/components/operations/knowledge-base/index.d.ts +0 -3
- package/dist/components/operations/knowledge-base/index.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +0 -16
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +0 -12
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +0 -12
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +0 -7
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +0 -1
- package/dist/components/operations/shared/index.d.ts +0 -5
- package/dist/components/operations/shared/index.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +0 -11
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +0 -8
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +0 -1
- package/dist/components/operations/shared/layouts/index.d.ts +0 -4
- package/dist/components/operations/shared/layouts/index.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +0 -7
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +0 -2
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/index.d.ts +0 -11
- package/dist/components/operations/task-scheduler/index.d.ts.map +0 -1
- package/dist/components/sdk-barrel.d.ts +0 -26
- package/dist/components/sdk-barrel.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +0 -9
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeyList.d.ts +0 -8
- package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +0 -1
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts +0 -2
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +0 -1
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +0 -9
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +0 -8
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +0 -1
- package/dist/components/settings/api-keys/index.d.ts +0 -6
- package/dist/components/settings/api-keys/index.d.ts.map +0 -1
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts +0 -9
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +0 -1
- package/dist/components/settings/credentials/CredentialList.d.ts +0 -10
- package/dist/components/settings/credentials/CredentialList.d.ts.map +0 -1
- package/dist/components/settings/credentials/CredentialSettings.d.ts +0 -7
- package/dist/components/settings/credentials/CredentialSettings.d.ts.map +0 -1
- package/dist/components/settings/credentials/index.d.ts +0 -5
- package/dist/components/settings/credentials/index.d.ts.map +0 -1
- package/dist/components/settings/deployments/DeploymentList.d.ts +0 -8
- package/dist/components/settings/deployments/DeploymentList.d.ts.map +0 -1
- package/dist/components/settings/deployments/DeploymentSettings.d.ts +0 -2
- package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +0 -1
- package/dist/components/settings/deployments/index.d.ts +0 -5
- package/dist/components/settings/deployments/index.d.ts.map +0 -1
- package/dist/components/settings/index.d.ts +0 -6
- package/dist/components/settings/index.d.ts.map +0 -1
- package/dist/components/table/SortableHeader.d.ts +0 -12
- package/dist/components/table/SortableHeader.d.ts.map +0 -1
- package/dist/components/table/index.d.ts +0 -4
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/features/auth/AdminGuard.d.ts +0 -38
- package/dist/features/auth/AdminGuard.d.ts.map +0 -1
- package/dist/features/auth/FeatureGuard.d.ts +0 -45
- package/dist/features/auth/FeatureGuard.d.ts.map +0 -1
- package/dist/features/auth/ProtectedRoute.d.ts +0 -43
- package/dist/features/auth/ProtectedRoute.d.ts.map +0 -1
- package/dist/features/auth/index.d.ts.map +0 -1
- package/dist/features/auth/useUserProfile.d.ts +0 -10
- package/dist/features/auth/useUserProfile.d.ts.map +0 -1
- package/dist/features/dashboard/Dashboard.d.ts +0 -57
- package/dist/features/dashboard/Dashboard.d.ts.map +0 -1
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts +0 -11
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +0 -1
- package/dist/features/dashboard/ResourceOverview.d.ts +0 -21
- package/dist/features/dashboard/ResourceOverview.d.ts.map +0 -1
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +0 -7
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +0 -1
- package/dist/features/dashboard/index.d.ts.map +0 -1
- package/dist/features/monitoring/ActivityFeed.d.ts +0 -37
- package/dist/features/monitoring/ActivityFeed.d.ts.map +0 -1
- package/dist/features/monitoring/ActivityLog.d.ts +0 -8
- package/dist/features/monitoring/ActivityLog.d.ts.map +0 -1
- package/dist/features/monitoring/CostAnalytics.d.ts +0 -13
- package/dist/features/monitoring/CostAnalytics.d.ts.map +0 -1
- package/dist/features/monitoring/ErrorDetailsModal.d.ts +0 -13
- package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +0 -1
- package/dist/features/monitoring/ExecutionHealth.d.ts +0 -9
- package/dist/features/monitoring/ExecutionHealth.d.ts.map +0 -1
- package/dist/features/monitoring/ExecutionLogsPage.d.ts +0 -20
- package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +0 -1
- package/dist/features/monitoring/NotificationCenter.d.ts +0 -5
- package/dist/features/monitoring/NotificationCenter.d.ts.map +0 -1
- package/dist/features/monitoring/index.d.ts.map +0 -1
- package/dist/features/operations/CalibrationPage.d.ts +0 -9
- package/dist/features/operations/CalibrationPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts +0 -43
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationProjectsPage.d.ts +0 -10
- package/dist/features/operations/CalibrationProjectsPage.d.ts.map +0 -1
- package/dist/features/operations/CalibrationRunDetailPage.d.ts +0 -35
- package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CommandQueueDetailPage.d.ts +0 -16
- package/dist/features/operations/CommandQueueDetailPage.d.ts.map +0 -1
- package/dist/features/operations/CommandQueuePage.d.ts +0 -13
- package/dist/features/operations/CommandQueuePage.d.ts.map +0 -1
- package/dist/features/operations/CommandViewPage.d.ts +0 -6
- package/dist/features/operations/CommandViewPage.d.ts.map +0 -1
- package/dist/features/operations/CommandViewSidebarContent.d.ts +0 -19
- package/dist/features/operations/CommandViewSidebarContent.d.ts.map +0 -1
- package/dist/features/operations/ResourceDetailPage.d.ts +0 -25
- package/dist/features/operations/ResourceDetailPage.d.ts.map +0 -1
- package/dist/features/operations/ResourcesPage.d.ts +0 -15
- package/dist/features/operations/ResourcesPage.d.ts.map +0 -1
- package/dist/features/operations/ResourcesSidebar.d.ts +0 -9
- package/dist/features/operations/ResourcesSidebar.d.ts.map +0 -1
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts +0 -9
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +0 -1
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts +0 -12
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/ExecutionPanel.d.ts +0 -13
- package/dist/features/operations/executions/ExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +0 -12
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +0 -1
- package/dist/features/operations/executions/index.d.ts +0 -7
- package/dist/features/operations/executions/index.d.ts.map +0 -1
- package/dist/features/operations/index.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts +0 -11
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +0 -8
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +0 -1
- package/dist/features/operations/layouts/components/index.d.ts +0 -4
- package/dist/features/operations/layouts/components/index.d.ts.map +0 -1
- package/dist/features/settings/AccountSettings.d.ts +0 -20
- package/dist/features/settings/AccountSettings.d.ts.map +0 -1
- package/dist/features/settings/AppearanceSettings.d.ts +0 -23
- package/dist/features/settings/AppearanceSettings.d.ts.map +0 -1
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts +0 -8
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +0 -1
- package/dist/features/settings/EditCredentialModal.d.ts +0 -9
- package/dist/features/settings/EditCredentialModal.d.ts.map +0 -1
- package/dist/features/settings/EditWebhookEndpointModal.d.ts +0 -8
- package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +0 -1
- package/dist/features/settings/MemberConfigModal.d.ts +0 -14
- package/dist/features/settings/MemberConfigModal.d.ts.map +0 -1
- package/dist/features/settings/OAuthIntegrationsCard.d.ts +0 -6
- package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +0 -1
- package/dist/features/settings/OrgMembersList.d.ts +0 -5
- package/dist/features/settings/OrgMembersList.d.ts.map +0 -1
- package/dist/features/settings/OrganizationSettings.d.ts +0 -30
- package/dist/features/settings/OrganizationSettings.d.ts.map +0 -1
- package/dist/features/settings/WebhookEndpointList.d.ts +0 -9
- package/dist/features/settings/WebhookEndpointList.d.ts.map +0 -1
- package/dist/features/settings/WebhookEndpointSettings.d.ts +0 -6
- package/dist/features/settings/WebhookEndpointSettings.d.ts.map +0 -1
- package/dist/features/settings/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/index.d.ts +0 -7
- package/dist/hooks/command-queue/index.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueue.d.ts +0 -33
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +0 -1
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +0 -17
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +0 -1
- package/dist/hooks/command-queue/useDeleteTask.d.ts +0 -5
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/usePatchTask.d.ts +0 -6
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +0 -1
- package/dist/hooks/command-queue/useSubmitAction.d.ts +0 -29
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +0 -1
- package/dist/hooks/executions/index.d.ts +0 -17
- package/dist/hooks/executions/index.d.ts.map +0 -1
- package/dist/hooks/executions/useArchivedLogs.d.ts +0 -14
- package/dist/hooks/executions/useArchivedLogs.d.ts.map +0 -1
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +0 -15
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useCancelExecution.d.ts +0 -20
- package/dist/hooks/executions/useCancelExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useDeleteExecution.d.ts +0 -13
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecuteAsync.d.ts +0 -21
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +0 -1
- package/dist/hooks/executions/useExecution.d.ts +0 -10
- package/dist/hooks/executions/useExecution.d.ts.map +0 -1
- package/dist/hooks/executions/useExecutions.d.ts +0 -16
- package/dist/hooks/executions/useExecutions.d.ts.map +0 -1
- package/dist/hooks/executions/useResourceDefinition.d.ts +0 -9
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +0 -1
- package/dist/hooks/executions/useResources.d.ts +0 -15
- package/dist/hooks/executions/useResources.d.ts.map +0 -1
- package/dist/hooks/executions/useRetryExecution.d.ts +0 -16
- package/dist/hooks/executions/useRetryExecution.d.ts.map +0 -1
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +0 -41
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +0 -1
- package/dist/hooks/feature-access/index.d.ts +0 -2
- package/dist/hooks/feature-access/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/index.d.ts +0 -11
- package/dist/hooks/monitoring/index.d.ts.map +0 -1
- package/dist/hooks/monitoring/useActivities.d.ts +0 -52
- package/dist/hooks/monitoring/useActivities.d.ts.map +0 -1
- package/dist/hooks/monitoring/useCostSummary.d.ts +0 -7
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +0 -10
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +0 -1
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +0 -56
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +0 -1
- package/dist/hooks/monitoring/useNotificationCount.d.ts +0 -26
- package/dist/hooks/monitoring/useNotificationCount.d.ts.map +0 -1
- package/dist/hooks/monitoring/useNotifications.d.ts +0 -11
- package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
- package/dist/hooks/notifications/index.d.ts +0 -8
- package/dist/hooks/notifications/index.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useMarkAsRead.d.ts +0 -2
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +0 -1
- package/dist/hooks/notifications/useTestNotification.d.ts +0 -16
- package/dist/hooks/notifications/useTestNotification.d.ts.map +0 -1
- package/dist/hooks/observability/index.d.ts +0 -25
- package/dist/hooks/observability/index.d.ts.map +0 -1
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +0 -15
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +0 -1
- package/dist/hooks/observability/useBusinessImpact.d.ts +0 -9
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +0 -1
- package/dist/hooks/observability/useCostBreakdown.d.ts +0 -10
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +0 -1
- package/dist/hooks/observability/useCostByModel.d.ts +0 -3
- package/dist/hooks/observability/useCostByModel.d.ts.map +0 -1
- package/dist/hooks/observability/useCostTrends.d.ts +0 -3
- package/dist/hooks/observability/useCostTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useDashboardMetrics.d.ts +0 -3
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorAnalysis.d.ts +0 -7
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDetails.d.ts +0 -20
- package/dist/hooks/observability/useErrorDetails.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorDistribution.d.ts +0 -12
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +0 -1
- package/dist/hooks/observability/useErrorTrends.d.ts +0 -12
- package/dist/hooks/observability/useErrorTrends.d.ts.map +0 -1
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +0 -18
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +0 -1
- package/dist/hooks/observability/useResolveError.d.ts +0 -17
- package/dist/hooks/observability/useResolveError.d.ts.map +0 -1
- package/dist/hooks/observability/useResourcesHealth.d.ts +0 -13
- package/dist/hooks/observability/useResourcesHealth.d.ts.map +0 -1
- package/dist/hooks/observability/useTopFailingResources.d.ts +0 -13
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +0 -1
- package/dist/hooks/observability/useUnresolvedErrors.d.ts +0 -15
- package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +0 -24
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +0 -3
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +0 -1
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +0 -35
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/index.d.ts +0 -8
- package/dist/hooks/operations/command-view/index.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +0 -24
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts +0 -11
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +0 -12
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts +0 -22
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +0 -22
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +0 -1
- package/dist/hooks/operations/index.d.ts +0 -4
- package/dist/hooks/operations/index.d.ts.map +0 -1
- package/dist/hooks/operations/knowledge-base/index.d.ts +0 -3
- package/dist/hooks/operations/knowledge-base/index.d.ts.map +0 -1
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +0 -27
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +0 -1
- package/dist/hooks/operations/settings/index.d.ts +0 -4
- package/dist/hooks/operations/settings/index.d.ts.map +0 -1
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts +0 -17
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +0 -1
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +0 -17
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +0 -1
- package/dist/hooks/operations/shared/index.d.ts +0 -6
- package/dist/hooks/operations/shared/index.d.ts.map +0 -1
- package/dist/hooks/operations/shared/queryKeys.d.ts +0 -23
- package/dist/hooks/operations/shared/queryKeys.d.ts.map +0 -1
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +0 -11
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +0 -1
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +0 -46
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +0 -1
- package/dist/hooks/published.d.ts.map +0 -1
- package/dist/hooks/scheduling/index.d.ts +0 -7
- package/dist/hooks/scheduling/index.d.ts.map +0 -1
- package/dist/hooks/scheduling/useScheduledTasks.d.ts +0 -19
- package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +0 -1
- package/dist/hooks/scheduling/useSchedules.d.ts +0 -185
- package/dist/hooks/scheduling/useSchedules.d.ts.map +0 -1
- package/dist/hooks/sessions/index.d.ts +0 -8
- package/dist/hooks/sessions/index.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionExecutions.d.ts +0 -13
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessionMessages.d.ts +0 -7
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +0 -1
- package/dist/hooks/sessions/useSessions.d.ts +0 -26
- package/dist/hooks/sessions/useSessions.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/index.d.ts +0 -7
- package/dist/hooks/settings/api-keys/index.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +0 -3
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +0 -2
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +0 -2
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +0 -1
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +0 -5
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/index.d.ts +0 -7
- package/dist/hooks/settings/credentials/index.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts +0 -3
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useCredentials.d.ts +0 -8
- package/dist/hooks/settings/credentials/useCredentials.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +0 -2
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +0 -1
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +0 -10
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/index.d.ts +0 -5
- package/dist/hooks/settings/deployments/index.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +0 -4
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +0 -1
- package/dist/hooks/settings/deployments/useListDeployments.d.ts +0 -2
- package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +0 -1
- package/dist/hooks/settings/index.d.ts +0 -6
- package/dist/hooks/settings/index.d.ts.map +0 -1
- package/dist/hooks/settings/organization/index.d.ts +0 -6
- package/dist/hooks/settings/organization/index.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +0 -11
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts +0 -11
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +0 -8
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +0 -1
- package/dist/hooks/settings/organization/useUserMemberships.d.ts +0 -3
- package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/index.d.ts +0 -7
- package/dist/hooks/settings/webhooks/index.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +0 -18
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +0 -2
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +0 -14
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +0 -18
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +0 -1
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +0 -27
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +0 -1
- package/dist/hooks/useOrganizationMembers.d.ts +0 -18
- package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initialization/InitializationProvider.d.ts +0 -48
- package/dist/initialization/InitializationProvider.d.ts.map +0 -1
- package/dist/initialization/hooks/useAppInitialization.d.ts +0 -32
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +0 -1
- package/dist/initialization/index.d.ts.map +0 -1
- package/dist/organization/context/OrganizationProvider.d.ts +0 -24
- package/dist/organization/context/OrganizationProvider.d.ts.map +0 -1
- package/dist/organization/hooks/useOrgInitialization.d.ts +0 -56
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +0 -1
- package/dist/organization/index.d.ts.map +0 -1
- package/dist/profile/context/ProfileProvider.d.ts +0 -31
- package/dist/profile/context/ProfileProvider.d.ts.map +0 -1
- package/dist/profile/hooks/useUserProfile.d.ts +0 -38
- package/dist/profile/hooks/useUserProfile.d.ts.map +0 -1
- package/dist/profile/index.d.ts.map +0 -1
- package/dist/provider/CoreAuthKitInner.d.ts +0 -12
- package/dist/provider/CoreAuthKitInner.d.ts.map +0 -1
- package/dist/provider/ElevasisCoreProvider.d.ts +0 -25
- package/dist/provider/ElevasisCoreProvider.d.ts.map +0 -1
- package/dist/provider/ElevasisServiceContext.d.ts +0 -31
- package/dist/provider/ElevasisServiceContext.d.ts.map +0 -1
- package/dist/provider/ElevasisUIProvider.d.ts +0 -28
- package/dist/provider/ElevasisUIProvider.d.ts.map +0 -1
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +0 -2
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +0 -1
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +0 -2
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +0 -1
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/published.d.ts.map +0 -1
- package/dist/provider/types.d.ts +0 -151
- package/dist/provider/types.d.ts.map +0 -1
- package/dist/sdk-barrel.d.ts +0 -20
- package/dist/sdk-barrel.d.ts.map +0 -1
- package/dist/theme/PresetsContext.d.ts +0 -4
- package/dist/theme/PresetsContext.d.ts.map +0 -1
- package/dist/theme/cssVariables.d.ts +0 -12
- package/dist/theme/cssVariables.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
- package/dist/theme/presets/abyss.d.ts +0 -3
- package/dist/theme/presets/abyss.d.ts.map +0 -1
- package/dist/theme/presets/aurora.d.ts +0 -12
- package/dist/theme/presets/aurora.d.ts.map +0 -1
- package/dist/theme/presets/canopy.d.ts +0 -12
- package/dist/theme/presets/canopy.d.ts.map +0 -1
- package/dist/theme/presets/canyon.d.ts +0 -11
- package/dist/theme/presets/canyon.d.ts.map +0 -1
- package/dist/theme/presets/cortex.d.ts +0 -3
- package/dist/theme/presets/cortex.d.ts.map +0 -1
- package/dist/theme/presets/cyber-punk.d.ts +0 -11
- package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
- package/dist/theme/presets/cyber-strike.d.ts +0 -13
- package/dist/theme/presets/cyber-strike.d.ts.map +0 -1
- package/dist/theme/presets/cyber-void.d.ts +0 -12
- package/dist/theme/presets/cyber-void.d.ts.map +0 -1
- package/dist/theme/presets/cyber-volt.d.ts +0 -12
- package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
- package/dist/theme/presets/default.d.ts +0 -4
- package/dist/theme/presets/default.d.ts.map +0 -1
- package/dist/theme/presets/ember.d.ts +0 -12
- package/dist/theme/presets/ember.d.ts.map +0 -1
- package/dist/theme/presets/helios.d.ts +0 -3
- package/dist/theme/presets/helios.d.ts.map +0 -1
- package/dist/theme/presets/honey.d.ts +0 -12
- package/dist/theme/presets/honey.d.ts.map +0 -1
- package/dist/theme/presets/index.d.ts +0 -8
- package/dist/theme/presets/index.d.ts.map +0 -1
- package/dist/theme/presets/midnight.d.ts +0 -12
- package/dist/theme/presets/midnight.d.ts.map +0 -1
- package/dist/theme/presets/nirvana.d.ts +0 -16
- package/dist/theme/presets/nirvana.d.ts.map +0 -1
- package/dist/theme/presets/obsidian.d.ts +0 -3
- package/dist/theme/presets/obsidian.d.ts.map +0 -1
- package/dist/theme/presets/regal.d.ts +0 -8
- package/dist/theme/presets/regal.d.ts.map +0 -1
- package/dist/theme/presets/rose-gold.d.ts +0 -12
- package/dist/theme/presets/rose-gold.d.ts.map +0 -1
- package/dist/theme/presets/slate.d.ts +0 -3
- package/dist/theme/presets/slate.d.ts.map +0 -1
- package/dist/theme/presets/tactical.d.ts +0 -8
- package/dist/theme/presets/tactical.d.ts.map +0 -1
- package/dist/theme/presets/types.d.ts +0 -43
- package/dist/theme/presets/types.d.ts.map +0 -1
- package/dist/theme/presets/verdant.d.ts +0 -3
- package/dist/theme/presets/verdant.d.ts.map +0 -1
- package/dist/theme/presets/wave.d.ts +0 -14
- package/dist/theme/presets/wave.d.ts.map +0 -1
- package/dist/theme/useAvailablePresets.d.ts +0 -16
- package/dist/theme/useAvailablePresets.d.ts.map +0 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,16 +1,176 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
interface AuthContextValue {
|
|
6
|
+
user: {
|
|
7
|
+
id: string;
|
|
8
|
+
} | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
getAccessToken: () => Promise<string>;
|
|
11
|
+
organizationId?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
|
|
14
|
+
* Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
|
|
15
|
+
*/
|
|
16
|
+
signIn: (options?: {
|
|
17
|
+
state?: {
|
|
18
|
+
returnTo?: string;
|
|
19
|
+
};
|
|
20
|
+
}) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Returns true when a previous session can be recovered (refresh token
|
|
23
|
+
* exists in storage). ProtectedRoute calls `signIn()` only when this returns
|
|
24
|
+
* true; otherwise it navigates to the login page.
|
|
25
|
+
*
|
|
26
|
+
* Explicit logout clears the stored token, so canRecover() returns false
|
|
27
|
+
* and the user sees the login page as expected.
|
|
28
|
+
*/
|
|
29
|
+
canRecover: () => boolean;
|
|
30
|
+
}
|
|
31
|
+
declare function useAuthContext(): AuthContextValue;
|
|
32
|
+
declare function AuthProvider({ value, children }: {
|
|
33
|
+
value: AuthContextValue;
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
|
|
36
|
+
|
|
1
37
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
38
|
+
* Returns a stable reference to getAccessToken that won't change between renders
|
|
39
|
+
*
|
|
40
|
+
* This prevents SSE connections from reconnecting unnecessarily when the
|
|
41
|
+
* WorkOS useAuth hook returns a new getAccessToken function reference
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* const getAccessToken = useStableAccessToken()
|
|
46
|
+
*
|
|
47
|
+
* useEffect(() => {
|
|
48
|
+
* fetchEventSourceWithTokenRefresh({
|
|
49
|
+
* getToken: getAccessToken,
|
|
50
|
+
* // ...
|
|
51
|
+
* })
|
|
52
|
+
* }, [getAccessToken]) // Won't re-run on every render
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare function useStableAccessToken(): () => Promise<string>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Checks WorkOS session validity when window/tab regains focus
|
|
59
|
+
*
|
|
60
|
+
* When window or tab becomes visible after inactivity, validates session
|
|
61
|
+
* by attempting to get access token. If session expired (WorkOS inactivity
|
|
62
|
+
* timeout exceeded), signs out user and redirects to login.
|
|
63
|
+
*
|
|
64
|
+
* How it works:
|
|
65
|
+
* 1. Window/tab regains focus after inactivity
|
|
66
|
+
* 2. Cancel all pending queries to prevent 401 error cascade
|
|
67
|
+
* 3. Attempt to get access token from WorkOS
|
|
68
|
+
* 4. If successful: Resume queries with fresh token
|
|
69
|
+
* 5. If failed (session expired): Sign out and redirect to login
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* // In __root.tsx
|
|
73
|
+
* export function RootLayoutComponent() {
|
|
74
|
+
* useSessionCheck()
|
|
75
|
+
* return <YourApp />
|
|
76
|
+
* }
|
|
77
|
+
*/
|
|
78
|
+
declare function useSessionCheck(): void;
|
|
79
|
+
|
|
80
|
+
interface InitializationError {
|
|
81
|
+
layer: 'auth' | 'profile' | 'organization';
|
|
82
|
+
message: string;
|
|
83
|
+
originalError?: Error;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface ProtectedRouteProps {
|
|
87
|
+
children: ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Path to redirect to when user is unauthenticated and the auth adapter
|
|
90
|
+
* does not provide a `signIn` function.
|
|
91
|
+
* @default '/login'
|
|
92
|
+
*/
|
|
93
|
+
redirectTo?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Rendered while initialization is in progress.
|
|
96
|
+
* When not provided, nothing is rendered during initialization.
|
|
97
|
+
*/
|
|
98
|
+
fallback?: ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* Rendered when initialization fails with a non-organization error.
|
|
101
|
+
* Receives the error and a retry callback.
|
|
102
|
+
* When not provided, the error is silently swallowed (children not rendered).
|
|
103
|
+
*/
|
|
104
|
+
errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* When true (default), waits for both user AND organization to be ready
|
|
107
|
+
* before rendering children. When false, only waits for user readiness.
|
|
108
|
+
* @default true
|
|
109
|
+
*/
|
|
110
|
+
waitForOrganization?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Headless route guard for authenticated pages.
|
|
114
|
+
*
|
|
115
|
+
* Reads initialization state from the nearest InitializationProvider.
|
|
116
|
+
*
|
|
117
|
+
* When `canRecover()` returns true (refresh token exists), unauthenticated users
|
|
118
|
+
* are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
|
|
119
|
+
* server-side session and either signs the user in immediately (page-reload case)
|
|
120
|
+
* or shows a login form (logged-out case). Explicit logout destroys the
|
|
121
|
+
* server-side session, so the next auto-signIn correctly presents a login form
|
|
122
|
+
* rather than looping.
|
|
123
|
+
*
|
|
124
|
+
* When `canRecover()` returns false, falls back to navigating to `redirectTo`
|
|
125
|
+
* (default: '/login') with a `returnTo` search param.
|
|
126
|
+
*
|
|
127
|
+
* Organization-layer errors are allowed through -- routes like /invitations
|
|
128
|
+
* must be accessible even when the user has no org membership.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* // With custom fallback (your Mantine loader):
|
|
132
|
+
* <ProtectedRoute fallback={<AppShellLoader />}>
|
|
133
|
+
* <DashboardPage />
|
|
134
|
+
* </ProtectedRoute>
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* // Wait only for user, not org (e.g. /invitations route):
|
|
138
|
+
* <ProtectedRoute waitForOrganization={false}>
|
|
139
|
+
* <InvitationsPage />
|
|
140
|
+
* </ProtectedRoute>
|
|
141
|
+
*/
|
|
142
|
+
declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): react_jsx_runtime.JSX.Element | null;
|
|
143
|
+
|
|
144
|
+
interface AdminGuardProps {
|
|
145
|
+
children: ReactNode;
|
|
146
|
+
/**
|
|
147
|
+
* Path to redirect non-admin users to.
|
|
148
|
+
* @default '/'
|
|
149
|
+
*/
|
|
150
|
+
redirectTo?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Rendered while user readiness is being determined.
|
|
153
|
+
* When not provided, nothing is rendered during initialization.
|
|
154
|
+
*/
|
|
155
|
+
fallback?: ReactNode;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Headless route guard for platform admin pages.
|
|
159
|
+
*
|
|
160
|
+
* Reads `profile.is_platform_admin` from the nearest InitializationProvider.
|
|
161
|
+
* Non-admin users are redirected to `redirectTo` (default: '/').
|
|
162
|
+
*
|
|
163
|
+
* Must be nested inside a ProtectedRoute (or equivalent) so that
|
|
164
|
+
* `userReady` is guaranteed to be true when this guard runs.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* <ProtectedRoute>
|
|
168
|
+
* <AdminGuard fallback={<AppShellLoader />}>
|
|
169
|
+
* <AdminDashboard />
|
|
170
|
+
* </AdminGuard>
|
|
171
|
+
* </ProtectedRoute>
|
|
10
172
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export {
|
|
15
|
-
export { AdminGuard, type AdminGuardProps } from './guards/AdminGuard';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
173
|
+
declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): react_jsx_runtime.JSX.Element | null;
|
|
174
|
+
|
|
175
|
+
export { AdminGuard, AuthProvider, ProtectedRoute, useAuthContext, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken };
|
|
176
|
+
export type { AdminGuardProps, AuthContextValue, ProtectedRouteProps };
|
package/dist/charts/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-FVBYSDM4.js';
|
|
2
|
+
import '../chunk-BC6TJEON.js';
|
|
3
|
+
import '../chunk-3KMDHCAR.js';
|
|
3
4
|
import '../chunk-NNKKBSJN.js';
|
|
4
5
|
import '../chunk-QJ2S46NI.js';
|
|
5
6
|
import '../chunk-LXHZYSMQ.js';
|
|
@@ -3,7 +3,7 @@ import { useComputedColorScheme } from '@mantine/core';
|
|
|
3
3
|
|
|
4
4
|
// src/components/layout/backgrounds/PerspectiveGrid.tsx
|
|
5
5
|
var SUBTLE_DEFAULT_GLOW = "color-mix(in srgb, color-mix(in srgb, var(--color-primary) 20%, var(--color-border)) 30%, transparent)";
|
|
6
|
-
var PROMINENT_DEFAULT_GLOW = "color-mix(in srgb, var(--color-primary)
|
|
6
|
+
var PROMINENT_DEFAULT_GLOW = "color-mix(in srgb, var(--color-primary) 22%, transparent)";
|
|
7
7
|
function PerspectiveGrid({
|
|
8
8
|
glowColor: glowColorProp,
|
|
9
9
|
lineColor: lineColorProp,
|
|
@@ -483,7 +483,7 @@ function CyberParticles({ variant: _variant, className }) {
|
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
485
|
function CyberBackground({ variant }) {
|
|
486
|
-
const glowColor = variant === "volt" ? "color-mix(in srgb, var(--color-primary)
|
|
486
|
+
const glowColor = variant === "volt" ? "color-mix(in srgb, var(--color-primary) 12%, transparent)" : void 0;
|
|
487
487
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
488
488
|
/* @__PURE__ */ jsx(PerspectiveGrid, { lineColor: "var(--color-border)", prominentGlow: true, glowColor }),
|
|
489
489
|
/* @__PURE__ */ jsx(RadiantGlow, {}),
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Text, Box, Code, Title } from '@mantine/core';
|
|
2
|
+
import Markdown from 'react-markdown';
|
|
3
|
+
import { Prism } from 'react-syntax-highlighter';
|
|
4
|
+
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
5
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/components/display/StyledMarkdown.tsx
|
|
8
|
+
var customCodeTheme = Object.fromEntries(
|
|
9
|
+
Object.entries(oneDark).map(([key, value]) => [
|
|
10
|
+
key,
|
|
11
|
+
typeof value === "object" && value !== null ? { ...value, background: "none", backgroundColor: "none" } : value
|
|
12
|
+
])
|
|
13
|
+
);
|
|
14
|
+
var defaultComponents = {
|
|
15
|
+
h1: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 3, c: "var(--color-primary)", mb: "xs", mt: "md", children }),
|
|
16
|
+
h2: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 4, c: "var(--color-primary)", mb: "xs", mt: "sm", children }),
|
|
17
|
+
ul: ({ children }) => /* @__PURE__ */ jsx("ul", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
18
|
+
ol: ({ children }) => /* @__PURE__ */ jsx("ol", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
19
|
+
li: ({ children }) => /* @__PURE__ */ jsx("li", { style: { marginBottom: "0.25rem", fontSize: "var(--mantine-font-size-sm)" }, children }),
|
|
20
|
+
code: ({ className, children, ...props }) => {
|
|
21
|
+
const match = /language-(\w+)/.exec(className || "");
|
|
22
|
+
const codeString = String(children).replace(/\n$/, "");
|
|
23
|
+
if (match) {
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
Prism,
|
|
26
|
+
{
|
|
27
|
+
style: customCodeTheme,
|
|
28
|
+
language: match[1],
|
|
29
|
+
PreTag: "div",
|
|
30
|
+
customStyle: {
|
|
31
|
+
margin: "0.5rem 0",
|
|
32
|
+
borderRadius: "var(--mantine-radius-default)",
|
|
33
|
+
fontSize: "0.8rem"
|
|
34
|
+
},
|
|
35
|
+
children: codeString
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsx(Code, { ...props, children });
|
|
40
|
+
},
|
|
41
|
+
pre: ({ children }) => /* @__PURE__ */ jsx(Fragment, { children }),
|
|
42
|
+
blockquote: ({ children }) => /* @__PURE__ */ jsx(Box, { pl: "sm", my: "xs", style: { borderLeft: "2px solid var(--color-border)" }, children }),
|
|
43
|
+
p: ({ children }) => /* @__PURE__ */ jsx(Text, { size: "sm", m: 0, children }),
|
|
44
|
+
strong: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fw: 700, children }),
|
|
45
|
+
em: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fs: "italic", children })
|
|
46
|
+
};
|
|
47
|
+
function StyledMarkdown({ children, components, className, style }) {
|
|
48
|
+
const mergedComponents = components ? { ...defaultComponents, ...components } : defaultComponents;
|
|
49
|
+
return /* @__PURE__ */ jsx("div", { className, style, children: /* @__PURE__ */ jsx(Markdown, { components: mergedComponents, children }) });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { StyledMarkdown };
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { sidebarGroupChevronSize, sidebarIconInnerSize, sidebarListItemIconSize } from './chunk-QJ2S46NI.js';
|
|
2
|
+
import { useAppearance } from './chunk-QJ2KCHKX.js';
|
|
3
|
+
import { Container, Stack, Box, UnstyledButton, Group, Text, Collapse, Center } from '@mantine/core';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
import { IconChevronDown, IconChevronRight } from '@tabler/icons-react';
|
|
6
|
+
|
|
7
|
+
var PageContainer = ({ children }) => {
|
|
8
|
+
return (
|
|
9
|
+
// Add padding to the top of the container to adjust for the topbar height
|
|
10
|
+
/* @__PURE__ */ jsx(Container, { size: "xl", p: 0, w: "100%", children: /* @__PURE__ */ jsx(Stack, { gap: "lg", children }) })
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
var activeColor = "var(--color-primary)";
|
|
14
|
+
var defaultTextColor = "var(--color-text)";
|
|
15
|
+
var subtleColor = "var(--color-text-subtle)";
|
|
16
|
+
var activeBg = `color-mix(in srgb, ${activeColor} 10%, transparent)`;
|
|
17
|
+
var CollapsibleSidebarGroup = ({
|
|
18
|
+
icon: Icon,
|
|
19
|
+
label,
|
|
20
|
+
isExpanded,
|
|
21
|
+
onToggle,
|
|
22
|
+
isActive = false,
|
|
23
|
+
badge,
|
|
24
|
+
children,
|
|
25
|
+
onLabelClick,
|
|
26
|
+
emptyMessage = "No items",
|
|
27
|
+
isEmpty = false,
|
|
28
|
+
isLoading = false,
|
|
29
|
+
loadingComponent
|
|
30
|
+
}) => {
|
|
31
|
+
const showActiveStyle = !isExpanded && isActive;
|
|
32
|
+
const iconColor = showActiveStyle ? activeColor : subtleColor;
|
|
33
|
+
const textColor = showActiveStyle ? activeColor : defaultTextColor;
|
|
34
|
+
const fontWeight = showActiveStyle ? 600 : 500;
|
|
35
|
+
const handleLabelClick = (e) => {
|
|
36
|
+
if (onLabelClick) {
|
|
37
|
+
e.stopPropagation();
|
|
38
|
+
onLabelClick();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
UnstyledButton,
|
|
44
|
+
{
|
|
45
|
+
onClick: onToggle,
|
|
46
|
+
style: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
width: "100%",
|
|
50
|
+
padding: "var(--mantine-spacing-xs)",
|
|
51
|
+
color: textColor,
|
|
52
|
+
backgroundColor: showActiveStyle ? activeBg : "transparent",
|
|
53
|
+
transition: `all var(--duration-fast) var(--easing)`,
|
|
54
|
+
cursor: "pointer",
|
|
55
|
+
overflow: "hidden"
|
|
56
|
+
},
|
|
57
|
+
onMouseEnter: (e) => {
|
|
58
|
+
if (!showActiveStyle) {
|
|
59
|
+
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
onMouseLeave: (e) => {
|
|
63
|
+
if (!showActiveStyle) {
|
|
64
|
+
e.currentTarget.style.backgroundColor = "transparent";
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", style: { width: "100%" }, children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Box, { style: { flexShrink: 0, color: iconColor }, children: isExpanded ? /* @__PURE__ */ jsx(IconChevronDown, { size: sidebarGroupChevronSize }) : /* @__PURE__ */ jsx(IconChevronRight, { size: sidebarGroupChevronSize }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
Box,
|
|
71
|
+
{
|
|
72
|
+
style: { flexShrink: 0, color: iconColor, cursor: onLabelClick ? "pointer" : "inherit" },
|
|
73
|
+
onClick: onLabelClick ? handleLabelClick : void 0,
|
|
74
|
+
children: /* @__PURE__ */ jsx(Icon, { size: sidebarIconInnerSize, color: activeColor })
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
Text,
|
|
79
|
+
{
|
|
80
|
+
size: "sm",
|
|
81
|
+
fw: fontWeight,
|
|
82
|
+
style: {
|
|
83
|
+
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
84
|
+
color: textColor,
|
|
85
|
+
transition: `color var(--duration-fast) var(--easing)`,
|
|
86
|
+
overflow: "hidden",
|
|
87
|
+
textOverflow: "ellipsis",
|
|
88
|
+
whiteSpace: "nowrap",
|
|
89
|
+
flex: 1,
|
|
90
|
+
cursor: onLabelClick ? "pointer" : "inherit"
|
|
91
|
+
},
|
|
92
|
+
onClick: onLabelClick ? handleLabelClick : void 0,
|
|
93
|
+
children: label
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
badge && /* @__PURE__ */ jsx(Box, { style: { flexShrink: 0 }, children: badge })
|
|
97
|
+
] })
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ jsx(Collapse, { in: isExpanded, children: /* @__PURE__ */ jsx(
|
|
101
|
+
Stack,
|
|
102
|
+
{
|
|
103
|
+
gap: 0,
|
|
104
|
+
mt: "xs",
|
|
105
|
+
ml: "xs",
|
|
106
|
+
style: {
|
|
107
|
+
borderLeft: `1px solid color-mix(in srgb, var(--color-primary) 40%, transparent)`,
|
|
108
|
+
marginLeft: "calc(var(--mantine-spacing-xs) + 6px)",
|
|
109
|
+
paddingLeft: "calc(var(--mantine-spacing-xs) - 2px)"
|
|
110
|
+
},
|
|
111
|
+
children: isLoading ? loadingComponent : isEmpty ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", style: { padding: "6px 8px" }, children: emptyMessage }) : children
|
|
112
|
+
}
|
|
113
|
+
) })
|
|
114
|
+
] });
|
|
115
|
+
};
|
|
116
|
+
var activeColor2 = "var(--color-primary)";
|
|
117
|
+
var defaultColor = "var(--color-text-subtle)";
|
|
118
|
+
var hoverColor = "var(--color-text)";
|
|
119
|
+
var activeBg2 = `color-mix(in srgb, ${activeColor2} 10%, transparent)`;
|
|
120
|
+
var SidebarListItem = ({
|
|
121
|
+
icon: Icon,
|
|
122
|
+
label,
|
|
123
|
+
isActive = false,
|
|
124
|
+
onClick,
|
|
125
|
+
description,
|
|
126
|
+
badge,
|
|
127
|
+
disabled = false
|
|
128
|
+
}) => {
|
|
129
|
+
return /* @__PURE__ */ jsx(
|
|
130
|
+
UnstyledButton,
|
|
131
|
+
{
|
|
132
|
+
onClick: disabled ? void 0 : onClick,
|
|
133
|
+
disabled,
|
|
134
|
+
style: {
|
|
135
|
+
width: "100%",
|
|
136
|
+
padding: "var(--mantine-spacing-xs)",
|
|
137
|
+
backgroundColor: isActive ? activeBg2 : "transparent",
|
|
138
|
+
borderRadius: "var(--mantine-radius-default)",
|
|
139
|
+
transition: `all var(--duration-fast) var(--easing)`,
|
|
140
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
141
|
+
opacity: disabled ? 0.5 : 1
|
|
142
|
+
},
|
|
143
|
+
onMouseEnter: (e) => {
|
|
144
|
+
if (!isActive && !disabled) {
|
|
145
|
+
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
146
|
+
const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
|
|
147
|
+
textElements.forEach((el) => {
|
|
148
|
+
el.style.color = hoverColor;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
onMouseLeave: (e) => {
|
|
153
|
+
if (!isActive && !disabled) {
|
|
154
|
+
e.currentTarget.style.backgroundColor = "transparent";
|
|
155
|
+
const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
|
|
156
|
+
textElements.forEach((el) => {
|
|
157
|
+
el.style.color = defaultColor;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
children: /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
|
|
162
|
+
/* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
Icon,
|
|
165
|
+
{
|
|
166
|
+
size: sidebarListItemIconSize,
|
|
167
|
+
style: {
|
|
168
|
+
flexShrink: 0,
|
|
169
|
+
opacity: isActive ? 1 : 0.6,
|
|
170
|
+
color: isActive ? activeColor2 : defaultColor
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ jsx(
|
|
175
|
+
Text,
|
|
176
|
+
{
|
|
177
|
+
size: "sm",
|
|
178
|
+
fw: isActive ? 600 : 400,
|
|
179
|
+
style: {
|
|
180
|
+
overflow: "hidden",
|
|
181
|
+
textOverflow: "ellipsis",
|
|
182
|
+
whiteSpace: "nowrap",
|
|
183
|
+
flex: 1,
|
|
184
|
+
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
185
|
+
color: isActive ? activeColor2 : defaultColor,
|
|
186
|
+
transition: `color var(--duration-fast) var(--easing)`
|
|
187
|
+
},
|
|
188
|
+
"data-text-element": true,
|
|
189
|
+
children: label
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
badge && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: badge })
|
|
193
|
+
] }),
|
|
194
|
+
description && /* @__PURE__ */ jsx(
|
|
195
|
+
Text,
|
|
196
|
+
{
|
|
197
|
+
size: "xs",
|
|
198
|
+
c: "dimmed",
|
|
199
|
+
style: {
|
|
200
|
+
paddingLeft: "22px",
|
|
201
|
+
lineHeight: 1.2,
|
|
202
|
+
color: isActive ? activeColor2 : defaultColor,
|
|
203
|
+
opacity: isActive ? 0.8 : 0.6,
|
|
204
|
+
transition: `all var(--duration-fast) var(--easing)`,
|
|
205
|
+
display: "-webkit-box",
|
|
206
|
+
WebkitLineClamp: 2,
|
|
207
|
+
WebkitBoxOrient: "vertical",
|
|
208
|
+
overflow: "hidden",
|
|
209
|
+
textOverflow: "ellipsis"
|
|
210
|
+
},
|
|
211
|
+
"data-text-element": true,
|
|
212
|
+
children: description
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
] })
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
var SubshellSidebarSection = ({
|
|
220
|
+
icon: Icon,
|
|
221
|
+
label,
|
|
222
|
+
rightSection,
|
|
223
|
+
withTopBorder = false
|
|
224
|
+
}) => {
|
|
225
|
+
return /* @__PURE__ */ jsx(
|
|
226
|
+
Box,
|
|
227
|
+
{
|
|
228
|
+
p: "sm",
|
|
229
|
+
style: {
|
|
230
|
+
borderTop: withTopBorder ? "1px solid var(--color-border)" : void 0,
|
|
231
|
+
borderBottom: "1px solid var(--color-border)"
|
|
232
|
+
},
|
|
233
|
+
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
|
|
234
|
+
/* @__PURE__ */ jsx(Icon, { size: 16, color: "var(--color-text-subtle)" }),
|
|
235
|
+
/* @__PURE__ */ jsx(
|
|
236
|
+
Text,
|
|
237
|
+
{
|
|
238
|
+
size: "sm",
|
|
239
|
+
fw: 600,
|
|
240
|
+
c: "var(--color-text-subtle)",
|
|
241
|
+
style: { fontFamily: "var(--mantine-font-family-headings)", flex: 1 },
|
|
242
|
+
children: label
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
rightSection
|
|
246
|
+
] })
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
};
|
|
250
|
+
function SubshellLoader() {
|
|
251
|
+
const { loader } = useAppearance();
|
|
252
|
+
return /* @__PURE__ */ jsx(Center, { mih: "calc(100vh - 70px)", children: loader });
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { CollapsibleSidebarGroup, PageContainer, SidebarListItem, SubshellLoader, SubshellSidebarSection };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StyledMarkdown } from './chunk-3KMDHCAR.js';
|
|
1
2
|
import { ResourceStatusColors } from './chunk-ELJIFLCB.js';
|
|
2
3
|
import { getErrorInfo, getErrorTitle, getResourceIcon } from './chunk-IOKL7BKE.js';
|
|
3
4
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
@@ -6,7 +7,6 @@ import { Center, Stack, Title, Text, Button, Box, Loader, Badge, Group, Collapse
|
|
|
6
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
8
|
import { IconMinus, IconTrendingUp, IconTrendingDown, IconChevronUp, IconChevronDown, IconAlertCircle, IconClock, IconInfoCircle, IconChevronRight } from '@tabler/icons-react';
|
|
8
9
|
import { useState } from 'react';
|
|
9
|
-
import Markdown from 'react-markdown';
|
|
10
10
|
import { Prism } from 'react-syntax-highlighter';
|
|
11
11
|
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
12
12
|
|
|
@@ -268,49 +268,6 @@ function HeroStatCard({
|
|
|
268
268
|
function StatCardSkeleton() {
|
|
269
269
|
return /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsx(Skeleton, { height: 60 }) });
|
|
270
270
|
}
|
|
271
|
-
var customCodeTheme = Object.fromEntries(
|
|
272
|
-
Object.entries(oneDark).map(([key, value]) => [
|
|
273
|
-
key,
|
|
274
|
-
typeof value === "object" && value !== null ? { ...value, background: "none", backgroundColor: "none" } : value
|
|
275
|
-
])
|
|
276
|
-
);
|
|
277
|
-
var defaultComponents = {
|
|
278
|
-
h1: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 3, c: "var(--color-primary)", mb: "xs", mt: "md", children }),
|
|
279
|
-
h2: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 4, c: "var(--color-primary)", mb: "xs", mt: "sm", children }),
|
|
280
|
-
ul: ({ children }) => /* @__PURE__ */ jsx("ul", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
281
|
-
ol: ({ children }) => /* @__PURE__ */ jsx("ol", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
282
|
-
li: ({ children }) => /* @__PURE__ */ jsx("li", { style: { marginBottom: "0.25rem", fontSize: "var(--mantine-font-size-sm)" }, children }),
|
|
283
|
-
code: ({ className, children, ...props }) => {
|
|
284
|
-
const match = /language-(\w+)/.exec(className || "");
|
|
285
|
-
const codeString = String(children).replace(/\n$/, "");
|
|
286
|
-
if (match) {
|
|
287
|
-
return /* @__PURE__ */ jsx(
|
|
288
|
-
Prism,
|
|
289
|
-
{
|
|
290
|
-
style: customCodeTheme,
|
|
291
|
-
language: match[1],
|
|
292
|
-
PreTag: "div",
|
|
293
|
-
customStyle: {
|
|
294
|
-
margin: "0.5rem 0",
|
|
295
|
-
borderRadius: "var(--mantine-radius-default)",
|
|
296
|
-
fontSize: "0.8rem"
|
|
297
|
-
},
|
|
298
|
-
children: codeString
|
|
299
|
-
}
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
return /* @__PURE__ */ jsx(Code, { ...props, children });
|
|
303
|
-
},
|
|
304
|
-
pre: ({ children }) => /* @__PURE__ */ jsx(Fragment, { children }),
|
|
305
|
-
blockquote: ({ children }) => /* @__PURE__ */ jsx(Box, { pl: "sm", my: "xs", style: { borderLeft: "2px solid var(--color-border)" }, children }),
|
|
306
|
-
p: ({ children }) => /* @__PURE__ */ jsx(Text, { size: "sm", m: 0, children }),
|
|
307
|
-
strong: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fw: 700, children }),
|
|
308
|
-
em: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fs: "italic", children })
|
|
309
|
-
};
|
|
310
|
-
function StyledMarkdown({ children, components, className, style }) {
|
|
311
|
-
const mergedComponents = components ? { ...defaultComponents, ...components } : defaultComponents;
|
|
312
|
-
return /* @__PURE__ */ jsx("div", { className, style, children: /* @__PURE__ */ jsx(Markdown, { components: mergedComponents, children }) });
|
|
313
|
-
}
|
|
314
271
|
var jsonTheme = Object.fromEntries(
|
|
315
272
|
Object.entries(oneDark).map(([key, value]) => [
|
|
316
273
|
key,
|
|
@@ -636,4 +593,4 @@ function GlowDot({ color, size = "md" }) {
|
|
|
636
593
|
);
|
|
637
594
|
}
|
|
638
595
|
|
|
639
|
-
export { APIErrorAlert, CardHeader, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, GlowDot, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton,
|
|
596
|
+
export { APIErrorAlert, CardHeader, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, GlowDot, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AppBackground } from './chunk-
|
|
1
|
+
import { AppBackground } from './chunk-R3R367QY.js';
|
|
2
2
|
import { ElevasisLoader } from './chunk-SZHARWKU.js';
|
|
3
|
-
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-
|
|
3
|
+
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-MOBXWBES.js';
|
|
4
4
|
import { ElevasisCoreProvider } from './chunk-R7WLWGPO.js';
|
|
5
5
|
import { AppearanceProvider } from './chunk-QJ2KCHKX.js';
|
|
6
6
|
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-IOKL7BKE.js';
|