@elevasis/ui 1.17.0 → 1.17.1
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/api/index.d.ts +91 -11
- package/dist/auth/index.d.ts +174 -14
- package/dist/{chunk-IVHJRJFK.js → chunk-F25DUOWI.js} +1 -1
- package/dist/{chunk-UUXXUPOC.js → chunk-RYSPAQGW.js} +2 -2
- package/dist/{chunk-4AKGF454.js → chunk-UEYUPTAD.js} +6 -6
- package/dist/components/index.d.ts +5674 -19
- package/dist/components/index.js +2 -2
- package/dist/execution/index.d.ts +936 -5
- package/dist/features/operations/index.d.ts +90 -3
- package/dist/features/operations/index.js +2 -2
- package/dist/graph/index.d.ts +226 -9
- package/dist/hooks/index.d.ts +6593 -22
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/published.d.ts +6037 -21
- package/dist/hooks/published.js +2 -2
- package/dist/index.d.ts +8494 -15
- package/dist/index.js +3 -3
- package/dist/initialization/index.d.ts +2526 -23
- package/dist/layout/index.d.ts +3 -3
- 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 +2 -2
- package/dist/provider/published.d.ts +309 -11
- package/dist/supabase/index.d.ts +4634 -2
- package/dist/theme/index.d.ts +148 -10
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +7145 -42
- package/dist/utils/index.d.ts +265 -8
- package/package.json +1 -1
- package/dist/api/hooks/__tests__/useApiClient.test.d.ts +0 -11
- package/dist/api/hooks/__tests__/useApiClient.test.d.ts.map +0 -1
- package/dist/api/hooks/useApiClient.d.ts +0 -28
- package/dist/api/hooks/useApiClient.d.ts.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- 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/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/ActionModal.d.ts +0 -19
- package/dist/components/command-queue/ActionModal.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/APIErrorAlert.d.ts +0 -56
- package/dist/components/display/APIErrorAlert.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/ResourceCard.d.ts +0 -22
- package/dist/components/display/ResourceCard.d.ts.map +0 -1
- package/dist/components/display/ResourceCardAdapters.d.ts +0 -24
- package/dist/components/display/ResourceCardAdapters.d.ts.map +0 -1
- package/dist/components/display/TimeRangeSelector.d.ts +0 -9
- package/dist/components/display/TimeRangeSelector.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/AgentExecutionTimeline.d.ts +0 -14
- package/dist/components/execution/AgentExecutionTimeline.d.ts.map +0 -1
- package/dist/components/execution/AgentExecutionVisualizer.d.ts +0 -13
- package/dist/components/execution/AgentExecutionVisualizer.d.ts.map +0 -1
- package/dist/components/execution/AgentIterationEdge.d.ts +0 -8
- package/dist/components/execution/AgentIterationEdge.d.ts.map +0 -1
- package/dist/components/execution/AgentIterationNode.d.ts +0 -8
- package/dist/components/execution/AgentIterationNode.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/ExecutionStatusBadge.d.ts +0 -33
- package/dist/components/execution/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/components/execution/TimelineAxis.d.ts +0 -12
- package/dist/components/execution/TimelineAxis.d.ts.map +0 -1
- package/dist/components/execution/TimelineBar.d.ts +0 -9
- package/dist/components/execution/TimelineBar.d.ts.map +0 -1
- package/dist/components/execution/TimelineContainer.d.ts +0 -9
- package/dist/components/execution/TimelineContainer.d.ts.map +0 -1
- package/dist/components/execution/TimelineRow.d.ts +0 -9
- package/dist/components/execution/TimelineRow.d.ts.map +0 -1
- package/dist/components/execution/UnifiedWorkflowEdge.d.ts +0 -9
- package/dist/components/execution/UnifiedWorkflowEdge.d.ts.map +0 -1
- package/dist/components/execution/UnifiedWorkflowGraph.d.ts +0 -21
- package/dist/components/execution/UnifiedWorkflowGraph.d.ts.map +0 -1
- package/dist/components/execution/UnifiedWorkflowNode.d.ts +0 -9
- package/dist/components/execution/UnifiedWorkflowNode.d.ts.map +0 -1
- package/dist/components/execution/WorkflowExecutionTimeline.d.ts +0 -14
- package/dist/components/execution/WorkflowExecutionTimeline.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/forms/FormFieldRenderer.d.ts +0 -15
- package/dist/components/forms/FormFieldRenderer.d.ts.map +0 -1
- package/dist/components/forms/index.d.ts +0 -2
- package/dist/components/forms/index.d.ts.map +0 -1
- package/dist/components/graph/BaseNode.d.ts +0 -29
- package/dist/components/graph/BaseNode.d.ts.map +0 -1
- package/dist/components/graph/index.d.ts +0 -12
- package/dist/components/graph/index.d.ts.map +0 -1
- package/dist/components/graph/useGraphTheme.d.ts +0 -9
- package/dist/components/graph/useGraphTheme.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/CyberBackground.d.ts +0 -26
- package/dist/components/layout/backgrounds/CyberBackground.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/CyberParticles.d.ts +0 -30
- package/dist/components/layout/backgrounds/CyberParticles.d.ts.map +0 -1
- package/dist/components/layout/backgrounds/CyberParticles.js +0 -182
- package/dist/components/layout/backgrounds/index.d.ts +0 -10
- package/dist/components/layout/backgrounds/index.d.ts.map +0 -1
- package/dist/components/layout/index.d.ts +0 -7
- package/dist/components/layout/index.d.ts.map +0 -1
- package/dist/components/monitoring/ActivityCard.d.ts +0 -7
- package/dist/components/monitoring/ActivityCard.d.ts.map +0 -1
- package/dist/components/monitoring/ActivityFilters.d.ts +0 -8
- package/dist/components/monitoring/ActivityFilters.d.ts.map +0 -1
- package/dist/components/monitoring/ActivityTable.d.ts +0 -8
- package/dist/components/monitoring/ActivityTable.d.ts.map +0 -1
- package/dist/components/monitoring/BusinessImpactCard.d.ts +0 -18
- package/dist/components/monitoring/BusinessImpactCard.d.ts.map +0 -1
- package/dist/components/monitoring/CostBreakdownCard.d.ts +0 -17
- package/dist/components/monitoring/CostBreakdownCard.d.ts.map +0 -1
- package/dist/components/monitoring/CostByModelTable.d.ts +0 -12
- package/dist/components/monitoring/CostByModelTable.d.ts.map +0 -1
- package/dist/components/monitoring/CostMetricsCard.d.ts +0 -17
- package/dist/components/monitoring/CostMetricsCard.d.ts.map +0 -1
- package/dist/components/monitoring/ErrorAnalysisCard.d.ts +0 -12
- package/dist/components/monitoring/ErrorAnalysisCard.d.ts.map +0 -1
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts +0 -12
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +0 -1
- package/dist/components/monitoring/ExecutionBreakdownTable.d.ts +0 -8
- package/dist/components/monitoring/ExecutionBreakdownTable.d.ts.map +0 -1
- package/dist/components/monitoring/ExecutionHealthCard.d.ts +0 -8
- package/dist/components/monitoring/ExecutionHealthCard.d.ts.map +0 -1
- package/dist/components/monitoring/ExecutionLogsFilters.d.ts +0 -8
- package/dist/components/monitoring/ExecutionLogsFilters.d.ts.map +0 -1
- package/dist/components/monitoring/ExecutionLogsTable.d.ts +0 -30
- package/dist/components/monitoring/ExecutionLogsTable.d.ts.map +0 -1
- package/dist/components/monitoring/ResourceHealthChart.d.ts +0 -17
- package/dist/components/monitoring/ResourceHealthChart.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/notify.d.ts +0 -21
- package/dist/components/notify.d.ts.map +0 -1
- package/dist/components/operations/command-queue/CommandQueueTaskRow.d.ts +0 -9
- package/dist/components/operations/command-queue/CommandQueueTaskRow.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/edges/CommandViewEdge.d.ts +0 -23
- package/dist/components/operations/command-view/edges/CommandViewEdge.d.ts.map +0 -1
- package/dist/components/operations/command-view/edges/index.d.ts +0 -2
- package/dist/components/operations/command-view/edges/index.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/command-view/nodes/CommandViewNode.d.ts +0 -12
- package/dist/components/operations/command-view/nodes/CommandViewNode.d.ts.map +0 -1
- package/dist/components/operations/command-view/nodes/index.d.ts +0 -2
- package/dist/components/operations/command-view/nodes/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/executions/logConstants.d.ts +0 -72
- package/dist/components/operations/executions/logConstants.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/sessions/SessionMemory.d.ts +0 -11
- package/dist/components/operations/sessions/SessionMemory.d.ts.map +0 -1
- package/dist/components/operations/sessions/index.d.ts +0 -3
- package/dist/components/operations/sessions/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/BaseExecutionLogsStates.d.ts +0 -9
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsStates.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/LogEntry.d.ts +0 -2
- package/dist/components/operations/shared/BaseExecutionLogs/LogEntry.d.ts.map +0 -1
- package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.d.ts +0 -16
- package/dist/components/operations/shared/BaseExecutionLogs/LogGroup.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/LogEntry.d.ts +0 -8
- package/dist/components/operations/shared/LogEntry.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/AbsoluteScheduleForm.d.ts +0 -9
- package/dist/components/operations/task-scheduler/AbsoluteScheduleForm.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/DeleteScheduleModal.d.ts +0 -11
- package/dist/components/operations/task-scheduler/DeleteScheduleModal.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts +0 -9
- package/dist/components/operations/task-scheduler/RecurringScheduleForm.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts +0 -9
- package/dist/components/operations/task-scheduler/RelativeScheduleForm.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/ScheduleCard.d.ts +0 -15
- package/dist/components/operations/task-scheduler/ScheduleCard.d.ts.map +0 -1
- package/dist/components/operations/task-scheduler/ScheduleDetailModal.d.ts +0 -11
- package/dist/components/operations/task-scheduler/ScheduleDetailModal.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/resource-definition/AgentDefinitionDisplay.d.ts +0 -8
- package/dist/components/resource-definition/AgentDefinitionDisplay.d.ts.map +0 -1
- package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts +0 -6
- package/dist/components/resource-definition/NewKnowledgeMapEdge.d.ts.map +0 -1
- package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts +0 -11
- package/dist/components/resource-definition/NewKnowledgeMapGraph.d.ts.map +0 -1
- package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts +0 -6
- package/dist/components/resource-definition/NewKnowledgeMapNode.d.ts.map +0 -1
- package/dist/components/resource-definition/ResourceDefinitionSection.d.ts +0 -8
- package/dist/components/resource-definition/ResourceDefinitionSection.d.ts.map +0 -1
- package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts +0 -8
- package/dist/components/resource-definition/WorkflowDefinitionDisplay.d.ts.map +0 -1
- package/dist/components/resource-definition/index.d.ts +0 -13
- package/dist/components/resource-definition/index.d.ts.map +0 -1
- package/dist/components/sdk-barrel.d.ts +0 -23
- 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/OAuthConnectModal.d.ts +0 -12
- package/dist/components/settings/credentials/OAuthConnectModal.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/DeploymentDetailModal.d.ts +0 -9
- package/dist/components/settings/deployments/DeploymentDetailModal.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/DeploymentStatusBadge.d.ts +0 -7
- package/dist/components/settings/deployments/DeploymentStatusBadge.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/settings/organization/MembershipFeaturePanel.d.ts +0 -9
- package/dist/components/settings/organization/MembershipFeaturePanel.d.ts.map +0 -1
- package/dist/components/settings/organization/MembershipStatusBadge.d.ts +0 -9
- package/dist/components/settings/organization/MembershipStatusBadge.d.ts.map +0 -1
- package/dist/components/settings/organization/OrganizationMembershipsList.d.ts +0 -11
- package/dist/components/settings/organization/OrganizationMembershipsList.d.ts.map +0 -1
- package/dist/components/settings/organization/index.d.ts +0 -4
- package/dist/components/settings/organization/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/execution/hooks/index.d.ts +0 -8
- package/dist/execution/hooks/index.d.ts.map +0 -1
- package/dist/execution/hooks/useAgentIterationData.d.ts +0 -3
- package/dist/execution/hooks/useAgentIterationData.d.ts.map +0 -1
- package/dist/execution/hooks/useExecutionPath.d.ts +0 -29
- package/dist/execution/hooks/useExecutionPath.d.ts.map +0 -1
- package/dist/execution/hooks/useMergedExecution.d.ts +0 -11
- package/dist/execution/hooks/useMergedExecution.d.ts.map +0 -1
- package/dist/execution/hooks/useReactFlowAgent.d.ts +0 -12
- package/dist/execution/hooks/useReactFlowAgent.d.ts.map +0 -1
- package/dist/execution/hooks/useTimelineData.d.ts +0 -6
- package/dist/execution/hooks/useTimelineData.d.ts.map +0 -1
- package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts +0 -19
- package/dist/execution/hooks/useUnifiedWorkflowLayout.d.ts.map +0 -1
- package/dist/execution/hooks/useWorkflowStepsLayout.d.ts +0 -49
- package/dist/execution/hooks/useWorkflowStepsLayout.d.ts.map +0 -1
- package/dist/execution/index.d.ts.map +0 -1
- package/dist/execution/types.d.ts +0 -129
- package/dist/execution/types.d.ts.map +0 -1
- package/dist/execution/utils/edgeUtils.d.ts +0 -22
- package/dist/execution/utils/edgeUtils.d.ts.map +0 -1
- package/dist/execution/utils/getResourceStatusColor.d.ts +0 -8
- package/dist/execution/utils/getResourceStatusColor.d.ts.map +0 -1
- package/dist/execution/utils/getStatusIcon.d.ts +0 -19
- package/dist/execution/utils/getStatusIcon.d.ts.map +0 -1
- package/dist/execution/utils/index.d.ts +0 -7
- package/dist/execution/utils/index.d.ts.map +0 -1
- package/dist/execution/utils/statusColors.d.ts +0 -20
- package/dist/execution/utils/statusColors.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/index.d.ts.map +0 -1
- package/dist/graph/hooks/index.d.ts +0 -9
- package/dist/graph/hooks/index.d.ts.map +0 -1
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/types.d.ts +0 -28
- package/dist/graph/types.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 -9
- 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/useNotifications.d.ts +0 -11
- package/dist/hooks/monitoring/useNotifications.d.ts.map +0 -1
- package/dist/hooks/notifications/index.d.ts +0 -9
- package/dist/hooks/notifications/index.d.ts.map +0 -1
- package/dist/hooks/notifications/useBatchDelete.d.ts +0 -8
- package/dist/hooks/notifications/useBatchDelete.d.ts.map +0 -1
- package/dist/hooks/notifications/useErrorNotification.d.ts +0 -17
- package/dist/hooks/notifications/useErrorNotification.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/useNotificationCount.d.ts +0 -8
- package/dist/hooks/notifications/useNotificationCount.d.ts.map +0 -1
- package/dist/hooks/notifications/useSuccessNotification.d.ts +0 -6
- package/dist/hooks/notifications/useSuccessNotification.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/notifications/useWarningNotification.d.ts +0 -6
- package/dist/hooks/notifications/useWarningNotification.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/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/types.d.ts +0 -123
- package/dist/hooks/operations/command-view/types.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/useCommandViewLayout.d.ts +0 -44
- package/dist/hooks/operations/command-view/useCommandViewLayout.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/useCommandViewStore.d.ts +0 -39
- package/dist/hooks/operations/command-view/useCommandViewStore.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/command-view/utils/filterCommandViewData.d.ts +0 -30
- package/dist/hooks/operations/command-view/utils/filterCommandViewData.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/utils/index.d.ts +0 -6
- package/dist/hooks/operations/command-view/utils/index.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts +0 -19
- package/dist/hooks/operations/command-view/utils/mergeStatsWithTopology.d.ts.map +0 -1
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -15
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.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/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/resourceDefinitionUtils.d.ts +0 -10
- package/dist/hooks/operations/shared/resourceDefinitionUtils.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/services/OperationsService.d.ts +0 -73
- package/dist/hooks/services/OperationsService.d.ts.map +0 -1
- package/dist/hooks/services/index.d.ts +0 -2
- package/dist/hooks/services/index.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/types.d.ts +0 -33
- package/dist/hooks/sessions/types.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/useSessionWebSocket.d.ts +0 -19
- package/dist/hooks/sessions/useSessionWebSocket.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/apiKeyService.d.ts +0 -37
- package/dist/hooks/settings/api-keys/apiKeyService.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/deploymentService.d.ts +0 -13
- package/dist/hooks/settings/deployments/deploymentService.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/organizationMembershipService.d.ts +0 -44
- package/dist/hooks/settings/organization/organizationMembershipService.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/useActivityFilters.d.ts +0 -18
- package/dist/hooks/useActivityFilters.d.ts.map +0 -1
- package/dist/hooks/useDomainFilters.d.ts +0 -36
- package/dist/hooks/useDomainFilters.d.ts.map +0 -1
- package/dist/hooks/useExecutionLogsFilters.d.ts +0 -28
- package/dist/hooks/useExecutionLogsFilters.d.ts.map +0 -1
- package/dist/hooks/useOrganizationMembers.d.ts +0 -18
- package/dist/hooks/useOrganizationMembers.d.ts.map +0 -1
- package/dist/hooks/useTimeRangeDates.d.ts +0 -10
- package/dist/hooks/useTimeRangeDates.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/components/OrganizationSwitcher.d.ts +0 -11
- package/dist/organization/components/OrganizationSwitcher.d.ts.map +0 -1
- package/dist/organization/context/OrganizationContext.d.ts +0 -41
- package/dist/organization/context/OrganizationContext.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/hooks/useOrganizations.d.ts +0 -31
- package/dist/organization/hooks/useOrganizations.d.ts.map +0 -1
- package/dist/organization/index.d.ts.map +0 -1
- package/dist/organization/store/organizationsSlice.d.ts +0 -40
- package/dist/organization/store/organizationsSlice.d.ts.map +0 -1
- package/dist/organization/store/types.d.ts +0 -20
- package/dist/organization/store/types.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/profile/services/UserProfileService.d.ts +0 -29
- package/dist/profile/services/UserProfileService.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/NotificationContext.d.ts +0 -49
- package/dist/provider/NotificationContext.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/supabase/client.d.ts +0 -2265
- package/dist/supabase/client.d.ts.map +0 -1
- package/dist/supabase/index.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/__tests__/getPreset.test.js +0 -88
- 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 -8
- 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/cyber-punk.d.ts +0 -11
- package/dist/theme/presets/cyber-punk.d.ts.map +0 -1
- package/dist/theme/presets/cyber-punk.js +0 -78
- 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 -8
- package/dist/theme/presets/ember.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/index.js +0 -136
- package/dist/theme/presets/midnight.d.ts +0 -8
- 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 -8
- 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/types.js +0 -3
- 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/theme/useAvailablePresets.js +0 -36
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/error-utils.d.ts +0 -38
- package/dist/utils/error-utils.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/resource-icons.d.ts +0 -18
- package/dist/utils/resource-icons.d.ts.map +0 -1
- package/dist/utils/setup-test-utils.d.ts +0 -2
- package/dist/utils/setup-test-utils.d.ts.map +0 -1
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ResourceDefinition } from '@repo/core';
|
|
2
|
-
type DomainFilterState = 'neutral' | 'include' | 'exclude';
|
|
3
|
-
interface DomainFiltersStore {
|
|
4
|
-
filters: Record<string, DomainFilterState>;
|
|
5
|
-
cycle: (domainId: string) => void;
|
|
6
|
-
reset: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useResourcesDomainFilters: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
9
|
-
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
10
|
-
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
11
|
-
persist: {
|
|
12
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
13
|
-
clearStorage: () => void;
|
|
14
|
-
rehydrate: () => Promise<void> | void;
|
|
15
|
-
hasHydrated: () => boolean;
|
|
16
|
-
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
17
|
-
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
18
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
export declare const useCommandViewDomainFilters: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<DomainFiltersStore>, "setState" | "persist"> & {
|
|
22
|
-
setState(partial: DomainFiltersStore | Partial<DomainFiltersStore> | ((state: DomainFiltersStore) => DomainFiltersStore | Partial<DomainFiltersStore>), replace?: false | undefined): unknown;
|
|
23
|
-
setState(state: DomainFiltersStore | ((state: DomainFiltersStore) => DomainFiltersStore), replace: true): unknown;
|
|
24
|
-
persist: {
|
|
25
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>) => void;
|
|
26
|
-
clearStorage: () => void;
|
|
27
|
-
rehydrate: () => Promise<void> | void;
|
|
28
|
-
hasHydrated: () => boolean;
|
|
29
|
-
onHydrate: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
30
|
-
onFinishHydration: (fn: (state: DomainFiltersStore) => void) => () => void;
|
|
31
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<DomainFiltersStore, DomainFiltersStore, unknown>>;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
export declare function filterByDomainFilters(items: ResourceDefinition[], filters: Record<string, DomainFilterState>): ResourceDefinition[];
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=useDomainFilters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDomainFilters.d.ts","sourceRoot":"","sources":["../../src/hooks/useDomainFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,KAAK,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE1D,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IAC1C,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAsBD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAAuD,CAAA;AAC7F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAA0D,CAAA;AAElG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,kBAAkB,EAAE,EAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GACzC,kBAAkB,EAAE,CAgBtB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TimeRange, ExecutionStatus } from '@repo/core';
|
|
2
|
-
export interface ExecutionLogsFilters {
|
|
3
|
-
resourceId: string | undefined;
|
|
4
|
-
status: 'all' | ExecutionStatus;
|
|
5
|
-
resourceStatus: 'all' | 'dev' | 'prod';
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Pure client-side state hook for execution log filtering.
|
|
9
|
-
* No data fetching -- manages filter state with reset capability.
|
|
10
|
-
*
|
|
11
|
-
* @param _timeRange - Time range context (reserved for future use)
|
|
12
|
-
* @returns filters state, updateFilter setter, and resetFilters utility
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* const { filters, updateFilter, resetFilters } = useExecutionLogsFilters(timeRange)
|
|
17
|
-
*
|
|
18
|
-
* updateFilter('status', 'failed')
|
|
19
|
-
* updateFilter('resourceId', 'wf-123')
|
|
20
|
-
* resetFilters()
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
24
|
-
filters: ExecutionLogsFilters;
|
|
25
|
-
updateFilter: <K extends keyof ExecutionLogsFilters>(key: K, value: ExecutionLogsFilters[K]) => void;
|
|
26
|
-
resetFilters: () => void;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=useExecutionLogsFilters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutionLogsFilters.d.ts","sourceRoot":"","sources":["../../src/hooks/useExecutionLogsFilters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAM5D,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,KAAK,GAAG,eAAe,CAAA;IAC/B,cAAc,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAA;CACvC;AAgBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,SAAS;;mBAGzB,CAAC,SAAS,MAAM,oBAAoB,OAAO,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC;;EAS/G"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ListMembershipsParams, MembershipWithDetails } from '@repo/core';
|
|
2
|
-
/**
|
|
3
|
-
* Fetch organization members with membership details.
|
|
4
|
-
*
|
|
5
|
-
* Note: `organizationId` is passed as a parameter (not read from context)
|
|
6
|
-
* so consumers can query for a specific organization independently.
|
|
7
|
-
*
|
|
8
|
-
* @param organizationId - The organization to fetch members for
|
|
9
|
-
* @param params - Optional additional filters (reserved for future use)
|
|
10
|
-
* @returns TanStack Query result with MembershipWithDetails array
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* const { data: members, isLoading } = useOrganizationMembers(organizationId)
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function useOrganizationMembers(organizationId: string, params?: Omit<ListMembershipsParams, 'organizationId'>): import("@tanstack/react-query").UseQueryResult<MembershipWithDetails[], Error>;
|
|
18
|
-
//# sourceMappingURL=useOrganizationMembers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOrganizationMembers.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrganizationMembers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAA2B,MAAM,YAAY,CAAA;AAQvG;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,kFAsBpH"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TimeRange } from '@repo/core';
|
|
2
|
-
/**
|
|
3
|
-
* Converts the global time range setting into startDate/endDate strings
|
|
4
|
-
* for use in data guide suggested params.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useTimeRangeDates(timeRange: TimeRange): {
|
|
7
|
-
startDate: string;
|
|
8
|
-
endDate: string;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useTimeRangeDates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTimeRangeDates.d.ts","sourceRoot":"","sources":["../../src/hooks/useTimeRangeDates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAS3C;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAS9F"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AAGvB,cAAc,SAAS,CAAA;AAGvB,cAAc,UAAU,CAAA;AAGxB,cAAc,YAAY,CAAA;AAG1B,cAAc,SAAS,CAAA;AAGvB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,OAAO,CAAA;AACrB,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { AppInitializationState } from './hooks/useAppInitialization';
|
|
3
|
-
declare const InitializationContext: import("react").Context<AppInitializationState | null>;
|
|
4
|
-
/**
|
|
5
|
-
* Consumes the nearest InitializationProvider.
|
|
6
|
-
*
|
|
7
|
-
* @throws {Error} If called outside of an InitializationProvider tree.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useInitialization(): AppInitializationState;
|
|
10
|
-
/**
|
|
11
|
-
* Aggregates auth, profile, and organization state into a single initialization context.
|
|
12
|
-
*
|
|
13
|
-
* Must be rendered inside:
|
|
14
|
-
* - An AuthProvider (needs useAuthContext)
|
|
15
|
-
* - A ProfileProvider (needs useProfile)
|
|
16
|
-
* - An OrganizationProvider (needs useOrganization)
|
|
17
|
-
*
|
|
18
|
-
* Initialization Layers (Sequential):
|
|
19
|
-
* 1. WorkOS Auth (useAuthContext)
|
|
20
|
-
* 2. User Profile Sync (useProfile)
|
|
21
|
-
* 3. Organization Context (useOrganization)
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Org-scoped pages with data queries (most common)
|
|
25
|
-
* const { organizationReady } = useInitialization()
|
|
26
|
-
* const { data, isLoading } = useResources()
|
|
27
|
-
* if (!organizationReady || isLoading) return <SubshellLoader />
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // Pages accessible without org (invitations, pending)
|
|
31
|
-
* const { userReady, error } = useInitialization()
|
|
32
|
-
* if (!userReady) return <SubshellLoader />
|
|
33
|
-
* if (error?.layer === 'organization') {
|
|
34
|
-
* return <PendingInvitationPage message={error.message} />
|
|
35
|
-
* }
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* // Pages with error handling
|
|
39
|
-
* const { organizationReady, error, retry } = useInitialization()
|
|
40
|
-
* if (error?.layer === 'organization') return <NoOrgError error={error} />
|
|
41
|
-
* if (error) return <ErrorCard error={error} onRetry={retry} />
|
|
42
|
-
* if (!organizationReady) return <SubshellLoader />
|
|
43
|
-
*/
|
|
44
|
-
export declare function InitializationProvider({ children }: {
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
}): import("react").FunctionComponentElement<import("react").ProviderProps<AppInitializationState | null>>;
|
|
47
|
-
export { InitializationContext };
|
|
48
|
-
//# sourceMappingURL=InitializationProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitializationProvider.d.ts","sourceRoot":"","sources":["../../src/initialization/InitializationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAItG,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,8BAA8B,CAAA;AAE/F,QAAA,MAAM,qBAAqB,wDAAqD,CAAA;AAEhF;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,sBAAsB,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,0GA2E3E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { SupabaseUserProfile } from '@repo/core';
|
|
2
|
-
import type { UseOrgInitializationReturn } from '../../organization/hooks/useOrgInitialization';
|
|
3
|
-
export interface InitializationError {
|
|
4
|
-
layer: 'auth' | 'profile' | 'organization';
|
|
5
|
-
message: string;
|
|
6
|
-
originalError?: Error;
|
|
7
|
-
}
|
|
8
|
-
export interface AppInitializationState {
|
|
9
|
-
userReady: boolean;
|
|
10
|
-
organizationReady: boolean;
|
|
11
|
-
allReady: boolean;
|
|
12
|
-
isInitializing: boolean;
|
|
13
|
-
error: InitializationError | null;
|
|
14
|
-
retry: () => void;
|
|
15
|
-
profile: SupabaseUserProfile | null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Factory function to create a useAppInitialization hook for your app.
|
|
19
|
-
*
|
|
20
|
-
* Usage in app:
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import { createUseAppInitialization } from '@repo/ui/initialization'
|
|
23
|
-
* import { useOrgInitialization } from './organization/hooks/useOrgInitialization'
|
|
24
|
-
*
|
|
25
|
-
* export const useAppInitialization = createUseAppInitialization(useOrgInitialization)
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* This pattern allows the shared package to provide the hook logic
|
|
29
|
-
* while each app provides its own hook instances.
|
|
30
|
-
*/
|
|
31
|
-
export declare function createUseAppInitialization(useOrgInitialization: () => UseOrgInitializationReturn): () => AppInitializationState;
|
|
32
|
-
//# sourceMappingURL=useAppInitialization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppInitialization.d.ts","sourceRoot":"","sources":["../../../src/initialization/hooks/useAppInitialization.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAE/F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc,CAAA;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,KAAK,CAAA;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACjC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;CACpC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,MAAM,0BAA0B,GACrD,MAAM,sBAAsB,CAiG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAE3G;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MembershipWithDetails } from '@repo/core';
|
|
2
|
-
type Organization = NonNullable<MembershipWithDetails['organization']>;
|
|
3
|
-
interface OrganizationSwitcherProps {
|
|
4
|
-
currentOrganization: Organization | undefined;
|
|
5
|
-
memberships: MembershipWithDetails[];
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
onSwitch: (workosOrgId: string) => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export declare function OrganizationSwitcher({ currentOrganization, memberships, isLoading, onSwitch }: OrganizationSwitcherProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=OrganizationSwitcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationSwitcher.d.ts","sourceRoot":"","sources":["../../../src/organization/components/OrganizationSwitcher.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,KAAK,YAAY,GAAG,WAAW,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC,CAAA;AAEtE,UAAU,yBAAyB;IACjC,mBAAmB,EAAE,YAAY,GAAG,SAAS,CAAA;IAC7C,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD;AAED,wBAAgB,oBAAoB,CAAC,EACnC,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,QAAQ,EACT,EAAE,yBAAyB,2CAkI3B"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { MembershipWithDetails } from '@repo/core';
|
|
2
|
-
/**
|
|
3
|
-
* The value exposed by OrganizationProvider to all consumers.
|
|
4
|
-
*/
|
|
5
|
-
export interface OrganizationContextValue {
|
|
6
|
-
/** WorkOS organization ID of the currently selected organization. */
|
|
7
|
-
currentWorkOSOrganizationId: string | null;
|
|
8
|
-
/** Supabase (UUID) organization ID of the currently selected organization. */
|
|
9
|
-
currentSupabaseOrganizationId: string | null;
|
|
10
|
-
/** Full membership record for the currently selected organization. */
|
|
11
|
-
currentMembership: MembershipWithDetails | null;
|
|
12
|
-
/** All memberships for the authenticated user. */
|
|
13
|
-
memberships: MembershipWithDetails[];
|
|
14
|
-
/** True while the initial membership list is being fetched. */
|
|
15
|
-
isInitializing: boolean;
|
|
16
|
-
/** True while a subsequent org switch / refresh is in flight. */
|
|
17
|
-
isOrgRefreshing: boolean;
|
|
18
|
-
/** Error message if the membership fetch or org switch failed. */
|
|
19
|
-
error: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* Switch the active organization.
|
|
22
|
-
*
|
|
23
|
-
* Persists the selection to `last_visited_org` on the user profile and
|
|
24
|
-
* invalidates all org-scoped TanStack Query cache entries.
|
|
25
|
-
*
|
|
26
|
-
* @param workosOrgId - WorkOS organization ID to switch to.
|
|
27
|
-
*/
|
|
28
|
-
switchOrganization: (workosOrgId: string) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Re-fetch memberships and retry org selection after an error.
|
|
31
|
-
*/
|
|
32
|
-
retry: () => Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export declare const OrganizationContext: import("react").Context<OrganizationContextValue | null>;
|
|
35
|
-
/**
|
|
36
|
-
* Consumes the nearest OrganizationProvider.
|
|
37
|
-
*
|
|
38
|
-
* @throws {Error} If called outside of an OrganizationProvider tree.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useOrganization(): OrganizationContextValue;
|
|
41
|
-
//# sourceMappingURL=OrganizationContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationContext.d.ts","sourceRoot":"","sources":["../../../src/organization/context/OrganizationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,qEAAqE;IACrE,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,8EAA8E;IAC9E,6BAA6B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5C,sEAAsE;IACtE,iBAAiB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC/C,kDAAkD;IAClD,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,+DAA+D;IAC/D,cAAc,EAAE,OAAO,CAAA;IACvB,iEAAiE;IACjE,eAAe,EAAE,OAAO,CAAA;IACxB,kEAAkE;IAClE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;;;;;;OAOG;IACH,kBAAkB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD;;OAEG;IACH,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B;AAED,eAAO,MAAM,mBAAmB,0DAAuD,CAAA;AAEvF;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,wBAAwB,CAS1D"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type OrganizationContextValue } from './OrganizationContext';
|
|
3
|
-
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
4
|
-
/**
|
|
5
|
-
* Provides organization state to its subtree via React Context.
|
|
6
|
-
*
|
|
7
|
-
* Must be rendered inside:
|
|
8
|
-
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
9
|
-
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
10
|
-
*
|
|
11
|
-
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
12
|
-
*
|
|
13
|
-
* Behaviors:
|
|
14
|
-
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
15
|
-
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
16
|
-
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
17
|
-
* - Clears all state when the user signs out (user becomes null)
|
|
18
|
-
*/
|
|
19
|
-
export declare function OrganizationProvider({ apiRequest, children }: {
|
|
20
|
-
apiRequest: ApiRequestFn;
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}): import("react").FunctionComponentElement<import("react").ProviderProps<OrganizationContextValue | null>>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=OrganizationProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationProvider.d.ts","sourceRoot":"","sources":["../../../src/organization/context/OrganizationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK/F,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAE1F,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAE9E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,4GAqN/G"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { MembershipWithDetails } from '@repo/core';
|
|
2
|
-
/**
|
|
3
|
-
* Type for the useOrganizations hook return value
|
|
4
|
-
*/
|
|
5
|
-
export interface UseOrganizationsReturn {
|
|
6
|
-
currentWorkOSOrganizationId: string | null;
|
|
7
|
-
currentMembership: MembershipWithDetails | null;
|
|
8
|
-
setCurrentWorkOSOrganizationId: (id: string | null) => void;
|
|
9
|
-
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
10
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
11
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
12
|
-
setOrganizationsError: (error: string | null) => void;
|
|
13
|
-
organizations: {
|
|
14
|
-
isInitializing: boolean;
|
|
15
|
-
isOrgRefreshing: boolean;
|
|
16
|
-
error: string | null;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Type for the useApiClient hook return value
|
|
21
|
-
*/
|
|
22
|
-
export interface UseApiClientReturn {
|
|
23
|
-
apiRequest: <T = unknown>(path: string, options?: RequestInit) => Promise<T>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Return type for useOrgInitialization hook
|
|
27
|
-
*/
|
|
28
|
-
export interface UseOrgInitializationReturn {
|
|
29
|
-
memberships: MembershipWithDetails[];
|
|
30
|
-
isInitializing: boolean;
|
|
31
|
-
isLoading: boolean;
|
|
32
|
-
isInitialized: boolean;
|
|
33
|
-
error: string | null;
|
|
34
|
-
currentOrganization: MembershipWithDetails['organization'] | null;
|
|
35
|
-
retry: () => Promise<void>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Factory function to create a useOrgInitialization hook for your app.
|
|
39
|
-
*
|
|
40
|
-
* Usage in app:
|
|
41
|
-
* ```typescript
|
|
42
|
-
* import { createUseOrgInitialization } from '@repo/ui/organization'
|
|
43
|
-
* import { useOrganizations } from './hooks/useOrganizations'
|
|
44
|
-
* import { useApiClient } from './api/hooks/useApiClient'
|
|
45
|
-
*
|
|
46
|
-
* export const useOrgInitialization = createUseOrgInitialization(
|
|
47
|
-
* useOrganizations,
|
|
48
|
-
* useApiClient
|
|
49
|
-
* )
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* This pattern allows the shared package to provide the hook logic
|
|
53
|
-
* while each app provides its own hook instances.
|
|
54
|
-
*/
|
|
55
|
-
export declare function createUseOrgInitialization(useOrganizations: () => UseOrganizationsReturn, useApiClient: () => UseApiClientReturn): () => UseOrgInitializationReturn;
|
|
56
|
-
//# sourceMappingURL=useOrgInitialization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOrgInitialization.d.ts","sourceRoot":"","sources":["../../../src/organization/hooks/useOrgInitialization.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,iBAAiB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC/C,8BAA8B,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC3D,oBAAoB,EAAE,CAAC,UAAU,EAAE,qBAAqB,GAAG,IAAI,KAAK,IAAI,CAAA;IACxE,4BAA4B,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,uBAAuB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACnD,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACrD,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAA;QACvB,eAAe,EAAE,OAAO,CAAA;QACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7E;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,mBAAmB,EAAE,qBAAqB,CAAC,cAAc,CAAC,GAAG,IAAI,CAAA;IACjE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,MAAM,sBAAsB,EAC9C,YAAY,EAAE,MAAM,kBAAkB,GACrC,MAAM,0BAA0B,CA6NlC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { StoreApi, UseBoundStore } from 'zustand';
|
|
2
|
-
import type { OrganizationsSlice } from '../store/types';
|
|
3
|
-
/**
|
|
4
|
-
* Factory function to create a useOrganizations hook for your app's store.
|
|
5
|
-
*
|
|
6
|
-
* Usage in app:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import { createUseOrganizations } from '@repo/ui/organization'
|
|
9
|
-
* import { useAppStore } from './zustand/store'
|
|
10
|
-
*
|
|
11
|
-
* export const useOrganizations = createUseOrganizations(useAppStore)
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* This pattern allows the shared package to provide the hook logic
|
|
15
|
-
* while each app provides its own store instance.
|
|
16
|
-
*/
|
|
17
|
-
export declare function createUseOrganizations<TStore extends OrganizationsSlice>(useStore: UseBoundStore<StoreApi<TStore>>): () => {
|
|
18
|
-
setCurrentWorkOSOrganizationId: (workOSorgId: string | null) => void;
|
|
19
|
-
setCurrentMembership: (membership: import("@repo/core").MembershipWithDetails | null) => void;
|
|
20
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
21
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
22
|
-
setOrganizationsError: (error: string | null) => void;
|
|
23
|
-
organizations: import("..").OrganizationsState;
|
|
24
|
-
currentWorkOSOrganizationId: string | null;
|
|
25
|
-
currentSupabaseOrganizationId: string | null;
|
|
26
|
-
currentMembership: import("@repo/core").MembershipWithDetails | null;
|
|
27
|
-
isInitializing: boolean;
|
|
28
|
-
isOrgRefreshing: boolean;
|
|
29
|
-
error: string | null;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useOrganizations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOrganizations.d.ts","sourceRoot":"","sources":["../../../src/organization/hooks/useOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,SAAS,kBAAkB,EACtE,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;;;;;;;;;;;;;EAoB1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAG7E,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAGxE,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,8BAA8B,CAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { OrganizationsSlice, OrganizationsState } from './types';
|
|
2
|
-
export type { OrganizationsSlice };
|
|
3
|
-
/**
|
|
4
|
-
* Initial state for the organizations slice
|
|
5
|
-
*/
|
|
6
|
-
export declare const initialOrganizationsState: OrganizationsState;
|
|
7
|
-
/**
|
|
8
|
-
* Type for Zustand's immer set function.
|
|
9
|
-
* This is a simplified version that works with immer middleware.
|
|
10
|
-
* The replace parameter uses false | undefined to match Zustand's type for immer mutation support.
|
|
11
|
-
*/
|
|
12
|
-
type ImmerSet<T> = (partial: T | Partial<T> | ((state: T) => void), replace?: false | undefined, action?: string) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Creates the organizations slice for Zustand store.
|
|
15
|
-
*
|
|
16
|
-
* Usage in app:
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import { createOrganizationsSlice } from '@repo/ui/organization'
|
|
19
|
-
*
|
|
20
|
-
* // Define AppState that extends OrganizationsSlice
|
|
21
|
-
* interface AppState extends OrganizationsSlice {
|
|
22
|
-
* // other slices...
|
|
23
|
-
* }
|
|
24
|
-
*
|
|
25
|
-
* // Pass the slice creator to your store
|
|
26
|
-
* const useAppStore = create<AppState>()(
|
|
27
|
-
* devtools(
|
|
28
|
-
* immer((...a) => ({
|
|
29
|
-
* ...createOrganizationsSlice(...a),
|
|
30
|
-
* // other slices...
|
|
31
|
-
* }))
|
|
32
|
-
* )
|
|
33
|
-
* )
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* Note: The slice creator accepts set/get/store from any Zustand store
|
|
37
|
-
* that extends OrganizationsSlice. It returns the slice state and actions.
|
|
38
|
-
*/
|
|
39
|
-
export declare const createOrganizationsSlice: <TAppState extends OrganizationsSlice>(set: ImmerSet<TAppState>, _get: () => TAppState, _store: unknown) => OrganizationsSlice;
|
|
40
|
-
//# sourceMappingURL=organizationsSlice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsSlice.d.ts","sourceRoot":"","sources":["../../../src/organization/store/organizationsSlice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAErE,YAAY,EAAE,kBAAkB,EAAE,CAAA;AAElC;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAOvC,CAAA;AAED;;;;GAIG;AACH,KAAK,QAAQ,CAAC,CAAC,IAAI,CACjB,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,EAC9C,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,EAC3B,MAAM,CAAC,EAAE,MAAM,KACZ,IAAI,CAAA;AAET;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,SAAS,kBAAkB,EAC3E,KAAK,QAAQ,CAAC,SAAS,CAAC,EACxB,MAAM,MAAM,SAAS,EACrB,QAAQ,OAAO,KACd,kBAoDD,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { MembershipWithDetails } from '@repo/core';
|
|
2
|
-
export interface OrganizationsState {
|
|
3
|
-
currentWorkOSOrganizationId: string | null;
|
|
4
|
-
currentSupabaseOrganizationId: string | null;
|
|
5
|
-
currentMembership: MembershipWithDetails | null;
|
|
6
|
-
isInitializing: boolean;
|
|
7
|
-
isOrgRefreshing: boolean;
|
|
8
|
-
error: string | null;
|
|
9
|
-
}
|
|
10
|
-
export interface OrganizationsActions {
|
|
11
|
-
setCurrentWorkOSOrganizationId: (workOSorgId: string | null) => void;
|
|
12
|
-
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
13
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
14
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
15
|
-
setOrganizationsError: (error: string | null) => void;
|
|
16
|
-
}
|
|
17
|
-
export interface OrganizationsSlice extends OrganizationsActions {
|
|
18
|
-
organizations: OrganizationsState;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organization/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,WAAW,kBAAkB;IACjC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,6BAA6B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5C,iBAAiB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC/C,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,8BAA8B,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACpE,oBAAoB,EAAE,CAAC,UAAU,EAAE,qBAAqB,GAAG,IAAI,KAAK,IAAI,CAAA;IACxE,4BAA4B,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,uBAAuB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACnD,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CACtD;AAED,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D,aAAa,EAAE,kBAAkB,CAAA;CAClC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import type { SupabaseUserProfile } from '@repo/core';
|
|
3
|
-
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
4
|
-
export interface ProfileContextValue {
|
|
5
|
-
profile: SupabaseUserProfile | null;
|
|
6
|
-
loading: boolean;
|
|
7
|
-
error: Error | null;
|
|
8
|
-
refetch: () => Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Consumes the nearest ProfileProvider.
|
|
12
|
-
*
|
|
13
|
-
* @throws {Error} If called outside of a ProfileProvider tree.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useProfile(): ProfileContextValue;
|
|
16
|
-
/**
|
|
17
|
-
* Provides shared profile state to its subtree via React Context.
|
|
18
|
-
*
|
|
19
|
-
* Wraps useUserProfile so that all consumers share one profile fetch
|
|
20
|
-
* instead of each triggering an independent sync call.
|
|
21
|
-
*
|
|
22
|
-
* Must be rendered inside the auth provider layer so that the underlying
|
|
23
|
-
* hook can access useAuthContext. Receives apiRequest as a prop so it
|
|
24
|
-
* can mount before ElevasisServiceProvider.
|
|
25
|
-
*/
|
|
26
|
-
export declare function ProfileProvider({ apiRequest, children }: {
|
|
27
|
-
apiRequest: ApiRequestFn;
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
}): import("react").FunctionComponentElement<import("react").ProviderProps<ProfileContextValue | null>>;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=ProfileProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileProvider.d.ts","sourceRoot":"","sources":["../../../src/profile/context/ProfileProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAA;AAEhF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAE9E,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAID;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,mBAAmB,CAShD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,uGAG1G"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { SupabaseUserProfile } from '@repo/core';
|
|
2
|
-
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
3
|
-
interface UseUserProfileOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Optional error handler for profile sync failures
|
|
6
|
-
* If not provided, errors are logged to console
|
|
7
|
-
*/
|
|
8
|
-
onError?: (context: {
|
|
9
|
-
phase: 'profile-sync';
|
|
10
|
-
userId?: string;
|
|
11
|
-
}, error: Error) => void;
|
|
12
|
-
/**
|
|
13
|
-
* Pre-built apiRequest function. When provided, used directly instead of
|
|
14
|
-
* reading from ElevasisServiceContext. Required when calling from ProfileProvider
|
|
15
|
-
* (which mounts before ElevasisServiceProvider).
|
|
16
|
-
*/
|
|
17
|
-
apiRequest?: ApiRequestFn;
|
|
18
|
-
}
|
|
19
|
-
export interface UseUserProfileReturn {
|
|
20
|
-
profile: SupabaseUserProfile | null;
|
|
21
|
-
loading: boolean;
|
|
22
|
-
error: Error | null;
|
|
23
|
-
refetch: () => Promise<void>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Hook for managing user profile data with automatic WorkOS -> Supabase sync
|
|
27
|
-
*
|
|
28
|
-
* This hook:
|
|
29
|
-
* 1. Automatically syncs WorkOS user data to Supabase on authentication
|
|
30
|
-
* 2. Provides access to the user's Supabase profile data
|
|
31
|
-
* 3. Handles loading states and errors
|
|
32
|
-
* 4. Includes a refetch function for manual updates
|
|
33
|
-
*
|
|
34
|
-
* @param options - Optional configuration including error handler and apiRequest
|
|
35
|
-
*/
|
|
36
|
-
export declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=useUserProfile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUserProfile.d.ts","sourceRoot":"","sources":["../../../src/profile/hooks/useUserProfile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAE9E,UAAU,qBAAqB;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,cAAc,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACrF;;;;OAIG;IACH,UAAU,CAAC,EAAE,YAAY,CAAA;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,qBAAqB,KAAG,oBAsFhE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAGrD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAGpE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAGlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { SupabaseUserProfile } from '@repo/core';
|
|
2
|
-
export declare class UserProfileService {
|
|
3
|
-
private apiRequest;
|
|
4
|
-
constructor(apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>);
|
|
5
|
-
/**
|
|
6
|
-
* Sync WorkOS user data to Supabase users table
|
|
7
|
-
* This creates or updates the user profile with latest WorkOS data
|
|
8
|
-
*/
|
|
9
|
-
syncUserProfile(): Promise<SupabaseUserProfile | null>;
|
|
10
|
-
/**
|
|
11
|
-
* Get user profile from API
|
|
12
|
-
* Server identifies user from JWT (no user ID needed)
|
|
13
|
-
*/
|
|
14
|
-
getUserProfile(): Promise<SupabaseUserProfile | null>;
|
|
15
|
-
/**
|
|
16
|
-
* Update last visited organization for the user
|
|
17
|
-
* @param organizationId - The Supabase organization ID
|
|
18
|
-
*/
|
|
19
|
-
updateLastVisitedOrg(organizationId: string): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Update user profile data
|
|
22
|
-
*/
|
|
23
|
-
updateUserProfile(updates: Partial<{
|
|
24
|
-
firstName: string;
|
|
25
|
-
lastName: string;
|
|
26
|
-
profilePictureUrl: string;
|
|
27
|
-
}>): Promise<SupabaseUserProfile | null>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=UserProfileService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileService.d.ts","sourceRoot":"","sources":["../../../src/profile/services/UserProfileService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,qBAAa,kBAAkB;IACjB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC;IAE1F;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAa5D;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAW3D;;;OAGG;IACG,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYjE;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC,GACnF,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAavC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AuthKitConfig } from './types';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Inner component for authkit mode.
|
|
5
|
-
* Extracted to a separate module so it can be lazy-loaded,
|
|
6
|
-
* avoiding a hard dependency on @workos-inc/authkit-react for OAuth-only consumers.
|
|
7
|
-
*/
|
|
8
|
-
export declare function CoreAuthKitInner({ auth, children }: {
|
|
9
|
-
auth: AuthKitConfig;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=CoreAuthKitInner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoreAuthKitInner.d.ts","sourceRoot":"","sources":["../../src/provider/CoreAuthKitInner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAWhG"}
|