@elevasis/ui 1.11.2 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CoreAuthKitInner-3J4RVQO6.js → CoreAuthKitInner-I32JCNE7.js} +1 -1
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.js +9 -8
- package/dist/{chunk-WUQWCUCB.js → chunk-3VTC7OWU.js} +2 -2
- package/dist/{chunk-KPRCFAI4.js → chunk-4HLCZVS6.js} +8 -33
- package/dist/{chunk-AQZGGSZZ.js → chunk-4TWGUI3L.js} +30 -8
- package/dist/{chunk-THXI3CDT.js → chunk-7RAT54LF.js} +9 -276
- package/dist/{chunk-FWZJH3TL.js → chunk-ALA56RGZ.js} +1 -1
- package/dist/{chunk-GZVH423C.js → chunk-BK4EIWNU.js} +11 -5
- package/dist/{chunk-7PLEQFHO.js → chunk-BRJ3QZ4E.js} +1 -1
- package/dist/{chunk-7NX3WNBO.js → chunk-C27S6IIV.js} +4 -4
- package/dist/{chunk-3PURTICE.js → chunk-CKFTPEBC.js} +2 -2
- package/dist/{chunk-ARZM3OTI.js → chunk-EQNXEBGZ.js} +1 -1
- package/dist/{chunk-3I2LOKQU.js → chunk-GU46QC4Z.js} +2 -2
- package/dist/{chunk-2YBPRE6H.js → chunk-HGNP6EVB.js} +3 -4
- package/dist/{chunk-564T2YKH.js → chunk-HLZMP7GN.js} +45 -24
- package/dist/chunk-HRG3KPL6.js +295 -0
- package/dist/{chunk-JGJSZ3UE.js → chunk-NJJ3NQ7B.js} +1 -1
- package/dist/{chunk-CC6BRHQK.js → chunk-RM6ACTB3.js} +2 -2
- package/dist/chunk-SZHARWKU.js +15 -0
- package/dist/{chunk-6TMW6VQ2.js → chunk-V5GGPIDD.js} +2 -2
- package/dist/{chunk-YGYF6G7W.js → chunk-YHTK43DV.js} +1 -11
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +69 -27
- package/dist/execution/index.d.ts +2 -0
- package/dist/hooks/index.css +45 -0
- package/dist/hooks/index.d.ts +19 -3
- package/dist/hooks/index.js +14 -12
- package/dist/hooks/published.css +45 -0
- package/dist/hooks/published.d.ts +17 -1
- package/dist/hooks/published.js +13 -11
- package/dist/index.css +45 -0
- package/dist/index.d.ts +69 -63
- package/dist/index.js +16 -14
- package/dist/initialization/index.js +4 -4
- package/dist/layout/index.d.ts +6 -2
- package/dist/layout/index.js +4 -2
- package/dist/organization/index.d.ts +5 -2
- package/dist/organization/index.js +4 -4
- package/dist/profile/index.d.ts +14 -4
- package/dist/profile/index.js +2 -2
- package/dist/provider/index.css +45 -0
- package/dist/provider/index.d.ts +34 -57
- package/dist/provider/index.js +8 -6
- package/dist/provider/published.css +44 -0
- package/dist/provider/published.d.ts +32 -27
- package/dist/provider/published.js +7 -5
- package/dist/supabase/index.js +2 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -64,17 +64,18 @@ interface NotificationAdapter {
|
|
|
64
64
|
/**
|
|
65
65
|
* Provides a notification adapter to all descendant components.
|
|
66
66
|
*
|
|
67
|
-
* Pass a
|
|
68
|
-
*
|
|
67
|
+
* Pass a custom adapter for your notification library. ElevasisUIProvider
|
|
68
|
+
* wires the Mantine adapter automatically; template/test consumers can
|
|
69
|
+
* pass their own or omit for console output.
|
|
69
70
|
*
|
|
70
71
|
* When omitted, hooks fall back to the console adapter automatically.
|
|
71
72
|
*
|
|
72
73
|
* @example
|
|
73
74
|
* ```tsx
|
|
74
75
|
* import { NotificationProvider } from '@repo/ui/provider'
|
|
75
|
-
* import {
|
|
76
|
+
* import { myAdapter } from './my-adapter'
|
|
76
77
|
*
|
|
77
|
-
* <NotificationProvider adapter={
|
|
78
|
+
* <NotificationProvider adapter={myAdapter}>
|
|
78
79
|
* <App />
|
|
79
80
|
* </NotificationProvider>
|
|
80
81
|
* ```
|
|
@@ -94,6 +95,18 @@ declare function NotificationProvider({ adapter, children }: {
|
|
|
94
95
|
*/
|
|
95
96
|
declare function useNotificationAdapter(): NotificationAdapter;
|
|
96
97
|
|
|
98
|
+
interface AppearanceConfig {
|
|
99
|
+
/** Background layers rendered behind app content. Defaults to Elevasis background. */
|
|
100
|
+
background?: ReactNode;
|
|
101
|
+
/** Loader element rendered during loading states. Defaults to Elevasis chevron loader. */
|
|
102
|
+
loader?: ReactNode;
|
|
103
|
+
}
|
|
104
|
+
declare function AppearanceProvider({ value, children }: {
|
|
105
|
+
value: Required<AppearanceConfig>;
|
|
106
|
+
children: ReactNode;
|
|
107
|
+
}): react_jsx_runtime.JSX.Element;
|
|
108
|
+
declare function useAppearance(): Required<AppearanceConfig>;
|
|
109
|
+
|
|
97
110
|
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
98
111
|
type WithSchemes<T> = T & {
|
|
99
112
|
light?: T;
|
|
@@ -209,10 +222,16 @@ interface ElevasisCoreProviderProps {
|
|
|
209
222
|
* When provided, wraps the subtree in a NotificationProvider with this adapter.
|
|
210
223
|
* When omitted, the console fallback adapter is used automatically.
|
|
211
224
|
*
|
|
212
|
-
* ElevasisUIProvider (Mantine variant) passes
|
|
225
|
+
* ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
|
|
213
226
|
* Headless/SDK consumers can pass a custom adapter or omit for console output.
|
|
214
227
|
*/
|
|
215
228
|
notifications?: NotificationAdapter;
|
|
229
|
+
/**
|
|
230
|
+
* Appearance configuration for background and loader.
|
|
231
|
+
* When omitted, defaults to the Elevasis background (PerspectiveGrid + RadiantGlow +
|
|
232
|
+
* FloatingOrbs + FilmGrain) and the Elevasis chevron loader.
|
|
233
|
+
*/
|
|
234
|
+
appearance?: AppearanceConfig;
|
|
216
235
|
/**
|
|
217
236
|
* Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
|
|
218
237
|
* Set to `false` when the consumer has its own complete design system and only
|
|
@@ -226,7 +245,7 @@ interface ElevasisCoreProviderProps {
|
|
|
226
245
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
227
246
|
*
|
|
228
247
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
229
|
-
* For standard SDK usage,
|
|
248
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
230
249
|
*/
|
|
231
250
|
interface ElevasisServiceContextValue {
|
|
232
251
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -4392,6 +4411,8 @@ interface APIExecutionDetail$1 extends APIExecutionSummary$1 {
|
|
|
4392
4411
|
apiVersion?: string | null;
|
|
4393
4412
|
resourceVersion?: string | null;
|
|
4394
4413
|
sdkVersion?: string | null;
|
|
4414
|
+
isArchived?: boolean;
|
|
4415
|
+
archivedLogCount?: number;
|
|
4395
4416
|
}
|
|
4396
4417
|
|
|
4397
4418
|
/**
|
|
@@ -5367,16 +5388,13 @@ declare function TanStackRouterBridge({ children }: {
|
|
|
5367
5388
|
*
|
|
5368
5389
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
5369
5390
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
5370
|
-
* Elevasis theming should use `
|
|
5391
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
5371
5392
|
*
|
|
5372
5393
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
5373
5394
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
5374
|
-
*
|
|
5395
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
5375
5396
|
* NotificationProvider -> InitializationProvider
|
|
5376
5397
|
*
|
|
5377
|
-
* The `notifications` prop wires a custom adapter (e.g. mantineNotificationAdapter)
|
|
5378
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
5379
|
-
*
|
|
5380
5398
|
* @example Headless SDK consumer
|
|
5381
5399
|
* ```tsx
|
|
5382
5400
|
* <ElevasisCoreProvider
|
|
@@ -5386,32 +5404,21 @@ declare function TanStackRouterBridge({ children }: {
|
|
|
5386
5404
|
* <Dashboard />
|
|
5387
5405
|
* </ElevasisCoreProvider>
|
|
5388
5406
|
* ```
|
|
5389
|
-
*
|
|
5390
|
-
* @example With custom notification adapter
|
|
5391
|
-
* ```tsx
|
|
5392
|
-
* <ElevasisCoreProvider
|
|
5393
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
5394
|
-
* apiUrl="https://api.elevasis.com"
|
|
5395
|
-
* notifications={myNotificationAdapter}
|
|
5396
|
-
* >
|
|
5397
|
-
* <Dashboard />
|
|
5398
|
-
* </ElevasisCoreProvider>
|
|
5399
|
-
* ```
|
|
5400
5407
|
*/
|
|
5401
|
-
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
5408
|
+
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
5402
5409
|
|
|
5403
5410
|
/**
|
|
5404
5411
|
* Hook to access the ElevasisServiceProvider context.
|
|
5405
5412
|
* Provides apiRequest, organizationId, and isReady.
|
|
5406
5413
|
*
|
|
5407
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
5414
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
5408
5415
|
*/
|
|
5409
5416
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
5410
5417
|
/**
|
|
5411
5418
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
5412
5419
|
*
|
|
5413
5420
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
5414
|
-
*
|
|
5421
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
5415
5422
|
*
|
|
5416
5423
|
* @example Testing
|
|
5417
5424
|
* ```tsx
|
|
@@ -5441,38 +5448,10 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
|
|
|
5441
5448
|
* Props for ElevasisUIProvider (Mantine variant).
|
|
5442
5449
|
* Extends ElevasisCoreProviderProps with Mantine-aware theme config.
|
|
5443
5450
|
*/
|
|
5444
|
-
interface
|
|
5451
|
+
interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
|
|
5445
5452
|
theme?: ElevasisThemeConfig;
|
|
5446
5453
|
}
|
|
5447
|
-
|
|
5448
|
-
* UI provider for Elevasis-powered applications. Includes Mantine theme integration.
|
|
5449
|
-
*
|
|
5450
|
-
* A thin Mantine shell around ElevasisCoreProvider. Handles:
|
|
5451
|
-
* - MantineProvider with theme resolution (presets, token overrides, color scheme)
|
|
5452
|
-
* - Google Font injection for preset fonts
|
|
5453
|
-
* - CSS variables resolver
|
|
5454
|
-
* - Mantine notification adapter (wired into NotificationProvider automatically)
|
|
5455
|
-
*
|
|
5456
|
-
* All auth, API, profile, organization, and initialization composition is
|
|
5457
|
-
* delegated to ElevasisCoreProvider.
|
|
5458
|
-
*/
|
|
5459
|
-
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisProviderProps): react_jsx_runtime.JSX.Element;
|
|
5460
|
-
/** @deprecated Use ElevasisUIProvider instead. Alias kept for backwards compatibility. */
|
|
5461
|
-
declare const ElevasisProvider: typeof ElevasisUIProvider;
|
|
5462
|
-
|
|
5463
|
-
/**
|
|
5464
|
-
* Mantine-backed notification adapter.
|
|
5465
|
-
*
|
|
5466
|
-
* Wraps `@mantine/notifications` with the same defaults as `notify.tsx`
|
|
5467
|
-
* (`autoClose: 5000`, `position: 'top-right'`). The `apiError()` method
|
|
5468
|
-
* replicates `showApiErrorNotification` behavior including retryAfter-based
|
|
5469
|
-
* autoClose.
|
|
5470
|
-
*
|
|
5471
|
-
* Use this adapter in Command Center (Mantine-powered) consumers.
|
|
5472
|
-
* Template consumers should omit the NotificationProvider and rely on the
|
|
5473
|
-
* console fallback, or supply their own adapter.
|
|
5474
|
-
*/
|
|
5475
|
-
declare const mantineNotificationAdapter: NotificationAdapter;
|
|
5454
|
+
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
5476
5455
|
|
|
5477
5456
|
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
5478
5457
|
status?: TaskStatus;
|
|
@@ -5874,6 +5853,8 @@ interface APIExecutionDetail extends APIExecutionSummary {
|
|
|
5874
5853
|
apiVersion?: string | null
|
|
5875
5854
|
resourceVersion?: string | null
|
|
5876
5855
|
sdkVersion?: string | null
|
|
5856
|
+
isArchived?: boolean
|
|
5857
|
+
archivedLogCount?: number
|
|
5877
5858
|
}
|
|
5878
5859
|
|
|
5879
5860
|
// API request/response types
|
|
@@ -6010,6 +5991,18 @@ declare function useResources(): _tanstack_react_query.UseQueryResult<{
|
|
|
6010
5991
|
*/
|
|
6011
5992
|
declare function useResourceDefinition(resourceId: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<AIResourceDefinition, Error>;
|
|
6012
5993
|
|
|
5994
|
+
interface ArchivedLogsState {
|
|
5995
|
+
logs: ExecutionLogMessage$1[] | null;
|
|
5996
|
+
isLoading: boolean;
|
|
5997
|
+
error: string | null;
|
|
5998
|
+
fetch: () => void;
|
|
5999
|
+
}
|
|
6000
|
+
/**
|
|
6001
|
+
* Hook to fetch archived execution logs from storage on demand.
|
|
6002
|
+
* Returns logs as null until explicitly fetched via the fetch() callback.
|
|
6003
|
+
*/
|
|
6004
|
+
declare function useArchivedLogs(executionId: string | undefined): ArchivedLogsState;
|
|
6005
|
+
|
|
6013
6006
|
interface UseActivitiesParams {
|
|
6014
6007
|
limit?: number;
|
|
6015
6008
|
offset?: number;
|
|
@@ -8138,6 +8131,7 @@ interface AdminGuardProps {
|
|
|
8138
8131
|
*/
|
|
8139
8132
|
declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): react_jsx_runtime.JSX.Element | null;
|
|
8140
8133
|
|
|
8134
|
+
type ApiRequestFn$2 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8141
8135
|
interface ProfileContextValue {
|
|
8142
8136
|
profile: SupabaseUserProfile | null;
|
|
8143
8137
|
loading: boolean;
|
|
@@ -8156,13 +8150,16 @@ declare function useProfile(): ProfileContextValue;
|
|
|
8156
8150
|
* Wraps useUserProfile so that all consumers share one profile fetch
|
|
8157
8151
|
* instead of each triggering an independent sync call.
|
|
8158
8152
|
*
|
|
8159
|
-
* Must be rendered inside the auth
|
|
8160
|
-
*
|
|
8153
|
+
* Must be rendered inside the auth provider layer so that the underlying
|
|
8154
|
+
* hook can access useAuthContext. Receives apiRequest as a prop so it
|
|
8155
|
+
* can mount before ElevasisServiceProvider.
|
|
8161
8156
|
*/
|
|
8162
|
-
declare function ProfileProvider({ children }: {
|
|
8157
|
+
declare function ProfileProvider({ apiRequest, children }: {
|
|
8158
|
+
apiRequest: ApiRequestFn$2;
|
|
8163
8159
|
children: ReactNode;
|
|
8164
8160
|
}): react.FunctionComponentElement<react.ProviderProps<ProfileContextValue | null>>;
|
|
8165
8161
|
|
|
8162
|
+
type ApiRequestFn$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8166
8163
|
interface UseUserProfileOptions {
|
|
8167
8164
|
/**
|
|
8168
8165
|
* Optional error handler for profile sync failures
|
|
@@ -8172,6 +8169,12 @@ interface UseUserProfileOptions {
|
|
|
8172
8169
|
phase: 'profile-sync';
|
|
8173
8170
|
userId?: string;
|
|
8174
8171
|
}, error: Error) => void;
|
|
8172
|
+
/**
|
|
8173
|
+
* Pre-built apiRequest function. When provided, used directly instead of
|
|
8174
|
+
* reading from ElevasisServiceContext. Required when calling from ProfileProvider
|
|
8175
|
+
* (which mounts before ElevasisServiceProvider).
|
|
8176
|
+
*/
|
|
8177
|
+
apiRequest?: ApiRequestFn$1;
|
|
8175
8178
|
}
|
|
8176
8179
|
interface UseUserProfileReturn {
|
|
8177
8180
|
profile: SupabaseUserProfile | null;
|
|
@@ -8188,7 +8191,7 @@ interface UseUserProfileReturn {
|
|
|
8188
8191
|
* 3. Handles loading states and errors
|
|
8189
8192
|
* 4. Includes a refetch function for manual updates
|
|
8190
8193
|
*
|
|
8191
|
-
* @param options - Optional configuration including error handler
|
|
8194
|
+
* @param options - Optional configuration including error handler and apiRequest
|
|
8192
8195
|
*/
|
|
8193
8196
|
declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
8194
8197
|
|
|
@@ -8220,21 +8223,24 @@ declare class UserProfileService {
|
|
|
8220
8223
|
}>): Promise<SupabaseUserProfile | null>;
|
|
8221
8224
|
}
|
|
8222
8225
|
|
|
8226
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8223
8227
|
/**
|
|
8224
8228
|
* Provides organization state to its subtree via React Context.
|
|
8225
8229
|
*
|
|
8226
8230
|
* Must be rendered inside:
|
|
8227
|
-
* - ElevasisServiceProvider (needs apiRequest)
|
|
8228
8231
|
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
8229
8232
|
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
8230
8233
|
*
|
|
8234
|
+
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
8235
|
+
*
|
|
8231
8236
|
* Behaviors:
|
|
8232
8237
|
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
8233
8238
|
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
8234
8239
|
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
8235
8240
|
* - Clears all state when the user signs out (user becomes null)
|
|
8236
8241
|
*/
|
|
8237
|
-
declare function OrganizationProvider({ children }: {
|
|
8242
|
+
declare function OrganizationProvider({ apiRequest, children }: {
|
|
8243
|
+
apiRequest: ApiRequestFn;
|
|
8238
8244
|
children: ReactNode;
|
|
8239
8245
|
}): react.FunctionComponentElement<react.ProviderProps<OrganizationContextValue | null>>;
|
|
8240
8246
|
|
|
@@ -8425,5 +8431,5 @@ declare function InitializationProvider({ children }: {
|
|
|
8425
8431
|
children: ReactNode;
|
|
8426
8432
|
}): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
|
|
8427
8433
|
|
|
8428
|
-
export { AGENT_CONSTANTS, APIClientError, AdminGuard, ApiClientProvider, ApiKeyService, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider,
|
|
8429
|
-
export type { ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CostBreakdownItem, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
|
8434
|
+
export { AGENT_CONSTANTS, APIClientError, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisUIProvider, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationMembershipService, OrganizationProvider, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, calculateBarPosition, calculateGraphHeight, componentThemes, createCssVariablesResolver, createOrganizationsSlice, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, observabilityKeys, operationsKeys, PRESETS as presets, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useConnectionHighlight, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCredential, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteDeployment, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useInitialization, useListApiKeys, useListDeployments, useListSchedules, useListWebhookEndpoints, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useNodeSelection, useNotificationAdapter, useNotificationCount, useNotifications, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCredential, useUpdateMemberConfig, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
8435
|
+
export type { ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CostBreakdownItem, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
export { useAvailablePresets } from './chunk-ZVVYGKE4.js';
|
|
2
2
|
import './chunk-XCYKC6OZ.js';
|
|
3
|
-
export { ApiKeyService, CredentialService, DeploymentService, OrganizationMembershipService, WebhookEndpointService, filterByDomainFilters, useActivateDeployment, useActivityFilters, useCommandViewDomainFilters, useCreateApiKey, useCreateCredential, useCreateWebhookEndpoint, useCredentials, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteDeployment, useDeleteWebhookEndpoint, useExecutionLogsFilters, useListApiKeys, useListDeployments, useListWebhookEndpoints, useOrganizationMembers, useReactivateMembership, useResourceSearch, useResourcesDomainFilters, useStatusFilter, useTimeRangeDates, useUpdateApiKey, useUpdateCredential, useUpdateMemberConfig, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources } from './chunk-
|
|
4
|
-
export { OperationsService, createUseFeatureAccess, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateSchedule, useWarningNotification } from './chunk-
|
|
5
|
-
export { observabilityKeys, useErrorTrends } from './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { ApiKeyService, CredentialService, DeploymentService, OrganizationMembershipService, WebhookEndpointService, filterByDomainFilters, useActivateDeployment, useActivityFilters, useCommandViewDomainFilters, useCreateApiKey, useCreateCredential, useCreateWebhookEndpoint, useCredentials, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteDeployment, useDeleteWebhookEndpoint, useExecutionLogsFilters, useListApiKeys, useListDeployments, useListWebhookEndpoints, useOrganizationMembers, useReactivateMembership, useResourceSearch, useResourcesDomainFilters, useStatusFilter, useTimeRangeDates, useUpdateApiKey, useUpdateCredential, useUpdateMemberConfig, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources } from './chunk-C27S6IIV.js';
|
|
4
|
+
export { OperationsService, createUseFeatureAccess, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateSchedule, useWarningNotification } from './chunk-4TWGUI3L.js';
|
|
5
|
+
export { observabilityKeys, useErrorTrends } from './chunk-EQNXEBGZ.js';
|
|
6
|
+
import './chunk-NJJ3NQ7B.js';
|
|
7
7
|
export { TanStackRouterBridge } from './chunk-LHQTTUL2.js';
|
|
8
8
|
export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-F6RBK7NJ.js';
|
|
9
9
|
export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-XA34RETF.js';
|
|
10
10
|
import './chunk-ELJIFLCB.js';
|
|
11
|
-
export { createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-
|
|
12
|
-
export { createUseAppInitialization } from './chunk-
|
|
11
|
+
export { createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-GU46QC4Z.js';
|
|
12
|
+
export { createUseAppInitialization } from './chunk-CKFTPEBC.js';
|
|
13
13
|
import './chunk-RNP5R5I3.js';
|
|
14
|
-
export {
|
|
14
|
+
export { ElevasisUIProvider } from './chunk-4HLCZVS6.js';
|
|
15
15
|
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from './chunk-WNRHQAJA.js';
|
|
16
|
-
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from './chunk-
|
|
17
|
-
export {
|
|
16
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from './chunk-HLZMP7GN.js';
|
|
17
|
+
export { AppearanceProvider, useAppearance } from './chunk-HRG3KPL6.js';
|
|
18
|
+
import './chunk-SZHARWKU.js';
|
|
19
|
+
export { OrganizationProvider } from './chunk-HGNP6EVB.js';
|
|
18
20
|
export { ApiClientProvider, useApiClient, useApiClientContext } from './chunk-RULQSZYX.js';
|
|
19
21
|
export { APIClientError, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, suppressKnownWarnings, validateEmail } from './chunk-FCFLBMVI.js';
|
|
20
|
-
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from './chunk-
|
|
21
|
-
export { useStableAccessToken } from './chunk-
|
|
22
|
-
export { InitializationContext, InitializationProvider, useInitialization } from './chunk-
|
|
23
|
-
export { ElevasisServiceProvider, ProfileProvider, UserProfileService, useElevasisServices, useProfile, useUserProfile } from './chunk-
|
|
22
|
+
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from './chunk-V5GGPIDD.js';
|
|
23
|
+
export { useStableAccessToken } from './chunk-ALA56RGZ.js';
|
|
24
|
+
export { InitializationContext, InitializationProvider, useInitialization } from './chunk-3VTC7OWU.js';
|
|
25
|
+
export { ElevasisServiceProvider, ProfileProvider, UserProfileService, useElevasisServices, useProfile, useUserProfile } from './chunk-BK4EIWNU.js';
|
|
24
26
|
export { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
25
|
-
export { AuthProvider, useAuthContext } from './chunk-
|
|
27
|
+
export { AuthProvider, useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
26
28
|
export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createUseAppInitialization } from '../chunk-
|
|
1
|
+
export { createUseAppInitialization } from '../chunk-CKFTPEBC.js';
|
|
2
2
|
import '../chunk-RNP5R5I3.js';
|
|
3
|
-
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-3VTC7OWU.js';
|
|
4
|
+
import '../chunk-BK4EIWNU.js';
|
|
5
5
|
import '../chunk-DD3CCMCZ.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React$1, { ReactNode, ComponentType } from 'react';
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React$1, { ReactNode, ComponentType } from 'react';
|
|
3
3
|
|
|
4
4
|
declare const sidebarWidth = 240;
|
|
5
5
|
declare const sidebarCollapsedWidth = 72;
|
|
@@ -7,6 +7,10 @@ declare const sidebarTransitionDuration = 200;
|
|
|
7
7
|
declare const sidebarHoverDelay = 100;
|
|
8
8
|
declare const topbarHeight = 54;
|
|
9
9
|
|
|
10
|
+
declare function AppBackground({ children }: {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
10
14
|
interface FilmGrainProps {
|
|
11
15
|
/** Opacity in dark mode (0-1). Defaults to 0.04. */
|
|
12
16
|
darkOpacity?: number;
|
|
@@ -326,5 +330,5 @@ declare const TopbarContainer: ({ children }: {
|
|
|
326
330
|
children: React.ReactNode;
|
|
327
331
|
}) => react_jsx_runtime.JSX.Element;
|
|
328
332
|
|
|
329
|
-
export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, FilmGrain, FloatingOrbs, LinksGroup, PageContainer, PerspectiveGrid, RadiantGlow, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, sidebarCollapsedWidth, sidebarHoverDelay, sidebarTransitionDuration, sidebarWidth, subsidebarWidth, topbarHeight, useSidebar, useSidebarCollapse };
|
|
333
|
+
export { AppBackground, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, FilmGrain, FloatingOrbs, LinksGroup, PageContainer, PerspectiveGrid, RadiantGlow, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, sidebarCollapsedWidth, sidebarHoverDelay, sidebarTransitionDuration, sidebarWidth, subsidebarWidth, topbarHeight, useSidebar, useSidebarCollapse };
|
|
330
334
|
export type { CollapsibleSidebarGroupProps, LinkItem, LinksGroupProps, SidebarListItemProps, SidebarNestedProps, SubshellContainerProps, SubshellContentContainerProps, SubshellRightSideContainerProps, SubshellSidebarContainerProps, SubshellSidebarProps, SubshellSidebarSectionProps, TopbarProps };
|
package/dist/layout/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup,
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, PageContainer, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, sidebarCollapsedWidth, sidebarHoverDelay, sidebarTransitionDuration, sidebarWidth, subsidebarWidth, topbarHeight, useSidebar, useSidebarCollapse } from '../chunk-7RAT54LF.js';
|
|
2
|
+
import '../chunk-YHTK43DV.js';
|
|
3
3
|
import '../chunk-LHQTTUL2.js';
|
|
4
|
+
export { AppBackground, FilmGrain, FloatingOrbs, PerspectiveGrid, RadiantGlow } from '../chunk-HRG3KPL6.js';
|
|
5
|
+
import '../chunk-SZHARWKU.js';
|
|
4
6
|
import '../chunk-Q7DJKLEN.js';
|
|
@@ -108,21 +108,24 @@ interface OrganizationContextValue {
|
|
|
108
108
|
*/
|
|
109
109
|
declare function useOrganization(): OrganizationContextValue;
|
|
110
110
|
|
|
111
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
111
112
|
/**
|
|
112
113
|
* Provides organization state to its subtree via React Context.
|
|
113
114
|
*
|
|
114
115
|
* Must be rendered inside:
|
|
115
|
-
* - ElevasisServiceProvider (needs apiRequest)
|
|
116
116
|
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
117
117
|
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
118
118
|
*
|
|
119
|
+
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
120
|
+
*
|
|
119
121
|
* Behaviors:
|
|
120
122
|
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
121
123
|
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
122
124
|
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
123
125
|
* - Clears all state when the user signs out (user becomes null)
|
|
124
126
|
*/
|
|
125
|
-
declare function OrganizationProvider({ children }: {
|
|
127
|
+
declare function OrganizationProvider({ apiRequest, children }: {
|
|
128
|
+
apiRequest: ApiRequestFn;
|
|
126
129
|
children: ReactNode;
|
|
127
130
|
}): react.FunctionComponentElement<react.ProviderProps<OrganizationContextValue | null>>;
|
|
128
131
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-
|
|
1
|
+
export { createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-GU46QC4Z.js';
|
|
2
2
|
import '../chunk-RNP5R5I3.js';
|
|
3
|
-
export { OrganizationProvider } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
export { OrganizationProvider } from '../chunk-HGNP6EVB.js';
|
|
4
|
+
import '../chunk-BK4EIWNU.js';
|
|
5
5
|
export { useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -2345,6 +2345,7 @@ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables
|
|
|
2345
2345
|
|
|
2346
2346
|
type SupabaseUserProfile = Tables<'users'>;
|
|
2347
2347
|
|
|
2348
|
+
type ApiRequestFn$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
2348
2349
|
interface ProfileContextValue {
|
|
2349
2350
|
profile: SupabaseUserProfile | null;
|
|
2350
2351
|
loading: boolean;
|
|
@@ -2363,13 +2364,16 @@ declare function useProfile(): ProfileContextValue;
|
|
|
2363
2364
|
* Wraps useUserProfile so that all consumers share one profile fetch
|
|
2364
2365
|
* instead of each triggering an independent sync call.
|
|
2365
2366
|
*
|
|
2366
|
-
* Must be rendered inside the auth
|
|
2367
|
-
*
|
|
2367
|
+
* Must be rendered inside the auth provider layer so that the underlying
|
|
2368
|
+
* hook can access useAuthContext. Receives apiRequest as a prop so it
|
|
2369
|
+
* can mount before ElevasisServiceProvider.
|
|
2368
2370
|
*/
|
|
2369
|
-
declare function ProfileProvider({ children }: {
|
|
2371
|
+
declare function ProfileProvider({ apiRequest, children }: {
|
|
2372
|
+
apiRequest: ApiRequestFn$1;
|
|
2370
2373
|
children: ReactNode;
|
|
2371
2374
|
}): react.FunctionComponentElement<react.ProviderProps<ProfileContextValue | null>>;
|
|
2372
2375
|
|
|
2376
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
2373
2377
|
interface UseUserProfileOptions {
|
|
2374
2378
|
/**
|
|
2375
2379
|
* Optional error handler for profile sync failures
|
|
@@ -2379,6 +2383,12 @@ interface UseUserProfileOptions {
|
|
|
2379
2383
|
phase: 'profile-sync';
|
|
2380
2384
|
userId?: string;
|
|
2381
2385
|
}, error: Error) => void;
|
|
2386
|
+
/**
|
|
2387
|
+
* Pre-built apiRequest function. When provided, used directly instead of
|
|
2388
|
+
* reading from ElevasisServiceContext. Required when calling from ProfileProvider
|
|
2389
|
+
* (which mounts before ElevasisServiceProvider).
|
|
2390
|
+
*/
|
|
2391
|
+
apiRequest?: ApiRequestFn;
|
|
2382
2392
|
}
|
|
2383
2393
|
interface UseUserProfileReturn {
|
|
2384
2394
|
profile: SupabaseUserProfile | null;
|
|
@@ -2395,7 +2405,7 @@ interface UseUserProfileReturn {
|
|
|
2395
2405
|
* 3. Handles loading states and errors
|
|
2396
2406
|
* 4. Includes a refetch function for manual updates
|
|
2397
2407
|
*
|
|
2398
|
-
* @param options - Optional configuration including error handler
|
|
2408
|
+
* @param options - Optional configuration including error handler and apiRequest
|
|
2399
2409
|
*/
|
|
2400
2410
|
declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
2401
2411
|
|
package/dist/profile/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../chunk-RNP5R5I3.js';
|
|
2
|
-
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-BK4EIWNU.js';
|
|
3
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/provider/index.css
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
/* src/components/display/ElevasisLoader.module.css */
|
|
2
|
+
.wrapper {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: var(--loader-size);
|
|
7
|
+
height: var(--loader-size);
|
|
8
|
+
overflow: visible;
|
|
9
|
+
}
|
|
10
|
+
.loader {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
display: block;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
}
|
|
16
|
+
.chevron {
|
|
17
|
+
stroke: var(--loader-color);
|
|
18
|
+
stroke-width: 2;
|
|
19
|
+
stroke-linecap: square;
|
|
20
|
+
stroke-linejoin: miter;
|
|
21
|
+
fill: none;
|
|
22
|
+
opacity: 0.15;
|
|
23
|
+
animation: chevronPulse 2s ease-in-out infinite;
|
|
24
|
+
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
25
|
+
}
|
|
26
|
+
.c1 {
|
|
27
|
+
animation-delay: 0s;
|
|
28
|
+
}
|
|
29
|
+
.c2 {
|
|
30
|
+
animation-delay: 0.2s;
|
|
31
|
+
}
|
|
32
|
+
.c3 {
|
|
33
|
+
animation-delay: 0.4s;
|
|
34
|
+
}
|
|
35
|
+
@keyframes chevronPulse {
|
|
36
|
+
0%, 100% {
|
|
37
|
+
opacity: 0.12;
|
|
38
|
+
filter: drop-shadow(0 0 1px var(--loader-color));
|
|
39
|
+
}
|
|
40
|
+
40%, 60% {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
1
46
|
/* src/theme/custom.css */
|
|
2
47
|
.mantine-Accordion-control:hover {
|
|
3
48
|
background-color: var(--color-surface-hover);
|