@elevasis/ui 2.38.2 → 2.39.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/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-PSTKG4B3.js} +3 -1
- package/dist/api/index.js +4 -2
- package/dist/app/index.d.ts +12 -0
- package/dist/app/index.js +16 -13
- package/dist/auth/context.d.ts +7 -1
- package/dist/auth/index.d.ts +80 -74
- package/dist/auth/index.js +10 -7
- package/dist/charts/index.js +13 -10
- package/dist/{chunk-KJ3QUBNU.js → chunk-2FTX4WO2.js} +2 -2
- package/dist/{chunk-C6BDBZRO.js → chunk-2XBCYJS3.js} +2 -1
- package/dist/{chunk-533DUEQY.js → chunk-6DO4PE3O.js} +1 -1
- package/dist/{chunk-I53EX4VU.js → chunk-AIP3GC2N.js} +1 -1
- package/dist/{chunk-P34FFSOX.js → chunk-AVQPF7PE.js} +2 -1
- package/dist/{chunk-YGUNUIME.js → chunk-D3EWFGLF.js} +5 -4
- package/dist/{chunk-566XWGPP.js → chunk-FZIPSE3S.js} +53 -611
- package/dist/{chunk-M7Q4UBRY.js → chunk-GTTMOKIB.js} +1 -1
- package/dist/{chunk-Y3JQBSKQ.js → chunk-IOSJHARH.js} +1 -1
- package/dist/{chunk-JXVNHVK7.js → chunk-K7E352VG.js} +1 -1
- package/dist/{chunk-OPKXEGE4.js → chunk-MEOXQKW6.js} +297 -182
- package/dist/chunk-MQZE7SUI.js +9 -0
- package/dist/{chunk-4UCAUBOL.js → chunk-MWRFFGOH.js} +2 -2
- package/dist/{chunk-7GQFIWP4.js → chunk-N4IO4CQO.js} +3 -3
- package/dist/chunk-PE3FAAW3.js +622 -0
- package/dist/chunk-PFPM654Z.js +801 -0
- package/dist/{chunk-BEVGBPHW.js → chunk-PRMWQA5R.js} +11 -10
- package/dist/{chunk-JBWJ6WHZ.js → chunk-SJHM4WDG.js} +1 -1
- package/dist/chunk-TVTSASST.js +28 -0
- package/dist/{chunk-2Q2JQSQO.js → chunk-W2SFTXMT.js} +1 -1
- package/dist/{chunk-AUB3T7OY.js → chunk-ZPRCGNZT.js} +5 -5
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +19 -16
- package/dist/components/navigation/index.js +4 -3
- package/dist/features/auth/index.js +20 -17
- package/dist/features/clients/index.js +19 -16
- package/dist/features/crm/index.js +19 -16
- package/dist/features/dashboard/index.d.ts +12 -0
- package/dist/features/dashboard/index.js +19 -16
- package/dist/features/delivery/index.js +19 -16
- package/dist/features/knowledge/index.js +4 -3
- package/dist/features/lead-gen/index.d.ts +58 -12
- package/dist/features/lead-gen/index.js +19 -16
- package/dist/features/monitoring/index.js +19 -16
- package/dist/features/monitoring/requests/index.js +19 -16
- package/dist/features/notes/index.js +6 -4
- package/dist/features/operations/index.d.ts +12 -0
- package/dist/features/operations/index.js +19 -16
- package/dist/features/settings/index.js +19 -16
- package/dist/hooks/access/index.js +9 -6
- package/dist/hooks/delivery/index.js +19 -16
- package/dist/hooks/index.d.ts +260 -203
- package/dist/hooks/index.js +19 -16
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +12 -0
- package/dist/hooks/published.d.ts +260 -203
- package/dist/hooks/published.js +19 -16
- package/dist/hooks/user-notes/index.js +4 -2
- package/dist/index.d.ts +141 -84
- package/dist/index.js +19 -16
- package/dist/initialization/index.js +6 -4
- package/dist/knowledge/index.d.ts +12 -0
- package/dist/knowledge/index.js +5 -4
- package/dist/organization/index.d.ts +44 -10
- package/dist/organization/index.js +19 -16
- package/dist/profile/index.js +4 -2
- package/dist/provider/ElevasisServiceContext.d.ts +13 -4
- package/dist/provider/ElevasisServiceContext.js +3 -1
- package/dist/provider/index.d.ts +25 -4
- package/dist/provider/index.js +15 -12
- package/dist/provider/published.d.ts +25 -4
- package/dist/provider/published.js +14 -11
- package/dist/test-utils/index.d.ts +13 -4
- package/dist/test-utils/index.js +6 -3
- package/dist/types/index.d.ts +12 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +3 -1
- package/package.json +5 -5
- package/dist/chunk-X66MVMZT.js +0 -373
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
|
|
2
|
+
import './chunk-TVTSASST.js';
|
|
1
3
|
import { AuthProvider } from './chunk-BRJ3QZ4E.js';
|
|
2
4
|
import './chunk-I2KLQ2HA.js';
|
|
3
5
|
import { AuthKitProvider, useAuth } from '@workos-inc/authkit-react';
|
|
@@ -32,7 +34,7 @@ function WorkOSAuthAdapter({ children }) {
|
|
|
32
34
|
user: adaptedUser,
|
|
33
35
|
isLoading,
|
|
34
36
|
getAccessToken,
|
|
35
|
-
organizationId: organizationId ?? null,
|
|
37
|
+
organizationId: brandWorkOsOrgId(organizationId ?? null),
|
|
36
38
|
signIn,
|
|
37
39
|
canRecover: hasWorkOSRefreshToken
|
|
38
40
|
}),
|
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { createElevasisQueryClient } from '../chunk-73EWE2EW.js';
|
|
2
|
-
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-IOSJHARH.js';
|
|
3
|
+
import '../chunk-PFPM654Z.js';
|
|
4
4
|
import '../chunk-KRWALB24.js';
|
|
5
5
|
import '../chunk-DD3CCMCZ.js';
|
|
6
6
|
import '../chunk-6ROXVZ3L.js';
|
|
7
|
+
import '../chunk-PE3FAAW3.js';
|
|
8
|
+
import '../chunk-TVTSASST.js';
|
|
7
9
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/app/index.d.ts
CHANGED
|
@@ -3411,6 +3411,17 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
|
|
|
3411
3411
|
}, z$1.core.$strip>>;
|
|
3412
3412
|
type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
|
|
3413
3413
|
|
|
3414
|
+
declare const SystemApiInterfaceSchema: z$1.ZodObject<{
|
|
3415
|
+
lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
|
|
3416
|
+
active: "active";
|
|
3417
|
+
deprecated: "deprecated";
|
|
3418
|
+
draft: "draft";
|
|
3419
|
+
archived: "archived";
|
|
3420
|
+
disabled: "disabled";
|
|
3421
|
+
}>>;
|
|
3422
|
+
readinessProfile: z$1.ZodOptional<z$1.ZodString>;
|
|
3423
|
+
resourceIds: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
|
|
3424
|
+
}, z$1.core.$strict>;
|
|
3414
3425
|
type JsonPrimitive = string | number | boolean | null;
|
|
3415
3426
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3416
3427
|
[key: string]: JsonValue;
|
|
@@ -3439,6 +3450,7 @@ interface SystemEntry {
|
|
|
3439
3450
|
}[];
|
|
3440
3451
|
policies?: string[];
|
|
3441
3452
|
drivesGoals?: string[];
|
|
3453
|
+
apiInterface?: z$1.infer<typeof SystemApiInterfaceSchema>;
|
|
3442
3454
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
3443
3455
|
status?: 'active' | 'deprecated' | 'archived';
|
|
3444
3456
|
path?: string;
|
package/dist/app/index.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { AppErrorBoundary } from '../chunk-SHZT7ULK.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-SJHM4WDG.js';
|
|
3
3
|
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-DA6I5VEY.js';
|
|
4
4
|
import '../chunk-X4WBGKJQ.js';
|
|
5
5
|
import '../chunk-IIMU5YAJ.js';
|
|
6
6
|
import '../chunk-RNP5R5I3.js';
|
|
7
|
-
import { ElevasisUIProvider } from '../chunk-
|
|
7
|
+
import { ElevasisUIProvider } from '../chunk-ZPRCGNZT.js';
|
|
8
8
|
import '../chunk-5JYKCULK.js';
|
|
9
9
|
import '../chunk-6D4LCJ52.js';
|
|
10
10
|
import '../chunk-WF7CONXF.js';
|
|
11
11
|
import '../chunk-WLOQ4IBG.js';
|
|
12
|
-
import { SystemShell } from '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import { SystemShell } from '../chunk-PRMWQA5R.js';
|
|
13
|
+
import '../chunk-AIP3GC2N.js';
|
|
14
14
|
import '../chunk-3KMDHCAR.js';
|
|
15
15
|
import '../chunk-S3XR4II4.js';
|
|
16
16
|
import '../chunk-A7IG36LB.js';
|
|
17
17
|
import '../chunk-NYBEU5TE.js';
|
|
18
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-IOSJHARH.js';
|
|
19
19
|
import '../chunk-DT3QYZVU.js';
|
|
20
20
|
import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
|
|
21
21
|
import '../chunk-Q7DJKLEN.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-PFPM654Z.js';
|
|
23
23
|
import '../chunk-KRWALB24.js';
|
|
24
|
-
import { useSessionCheck } from '../chunk-
|
|
25
|
-
import '../chunk-
|
|
26
|
-
import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-
|
|
27
|
-
import { useInitialization } from '../chunk-
|
|
28
|
-
import
|
|
24
|
+
import { useSessionCheck } from '../chunk-MWRFFGOH.js';
|
|
25
|
+
import '../chunk-D3EWFGLF.js';
|
|
26
|
+
import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-2XBCYJS3.js';
|
|
27
|
+
import { useInitialization } from '../chunk-6DO4PE3O.js';
|
|
28
|
+
import '../chunk-FZIPSE3S.js';
|
|
29
29
|
import '../chunk-DD3CCMCZ.js';
|
|
30
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-W2SFTXMT.js';
|
|
31
31
|
import '../chunk-6ROXVZ3L.js';
|
|
32
|
-
import '../chunk-
|
|
32
|
+
import { listAllSystems } from '../chunk-PE3FAAW3.js';
|
|
33
|
+
import '../chunk-2FTX4WO2.js';
|
|
34
|
+
import '../chunk-MQZE7SUI.js';
|
|
35
|
+
import '../chunk-TVTSASST.js';
|
|
33
36
|
import '../chunk-BRJ3QZ4E.js';
|
|
34
37
|
import '../chunk-I2KLQ2HA.js';
|
|
35
38
|
import { useMemo, useCallback, useEffect } from 'react';
|
package/dist/auth/context.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
+
declare const workOsOrgIdBrand: unique symbol;
|
|
5
|
+
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
6
|
+
type WorkOsOrgId = string & {
|
|
7
|
+
readonly [workOsOrgIdBrand]: true;
|
|
8
|
+
};
|
|
9
|
+
|
|
4
10
|
interface AuthContextValue {
|
|
5
11
|
user: {
|
|
6
12
|
id: string;
|
|
7
13
|
} | null;
|
|
8
14
|
isLoading: boolean;
|
|
9
15
|
getAccessToken: () => Promise<string>;
|
|
10
|
-
organizationId?:
|
|
16
|
+
organizationId?: WorkOsOrgId | null;
|
|
11
17
|
/**
|
|
12
18
|
* Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
|
|
13
19
|
* Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -3,80 +3,11 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
getAccessToken: () => Promise<string>;
|
|
12
|
-
organizationId?: string | null;
|
|
13
|
-
/**
|
|
14
|
-
* Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
|
|
15
|
-
* Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
|
|
16
|
-
*/
|
|
17
|
-
signIn: (options?: {
|
|
18
|
-
state?: {
|
|
19
|
-
returnTo?: string;
|
|
20
|
-
};
|
|
21
|
-
}) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Returns true when a previous session can be recovered (refresh token
|
|
24
|
-
* exists in storage). ProtectedRoute calls `signIn()` only when this returns
|
|
25
|
-
* true; otherwise it navigates to the login page.
|
|
26
|
-
*
|
|
27
|
-
* Explicit logout clears the stored token, so canRecover() returns false
|
|
28
|
-
* and the user sees the login page as expected.
|
|
29
|
-
*/
|
|
30
|
-
canRecover: () => boolean;
|
|
31
|
-
}
|
|
32
|
-
declare function useAuthContext(): AuthContextValue;
|
|
33
|
-
declare function AuthProvider({ value, children }: {
|
|
34
|
-
value: AuthContextValue;
|
|
35
|
-
children: ReactNode;
|
|
36
|
-
}): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Returns a stable reference to getAccessToken that won't change between renders
|
|
40
|
-
*
|
|
41
|
-
* This prevents SSE connections from reconnecting unnecessarily when the
|
|
42
|
-
* WorkOS useAuth hook returns a new getAccessToken function reference
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```tsx
|
|
46
|
-
* const getAccessToken = useStableAccessToken()
|
|
47
|
-
*
|
|
48
|
-
* useEffect(() => {
|
|
49
|
-
* fetchEventSourceWithTokenRefresh({
|
|
50
|
-
* getToken: getAccessToken,
|
|
51
|
-
* // ...
|
|
52
|
-
* })
|
|
53
|
-
* }, [getAccessToken]) // Won't re-run on every render
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare function useStableAccessToken(): () => Promise<string>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Checks WorkOS session validity when window/tab regains focus
|
|
60
|
-
*
|
|
61
|
-
* When window or tab becomes visible after inactivity, validates session
|
|
62
|
-
* by attempting to get access token. If session expired (WorkOS inactivity
|
|
63
|
-
* timeout exceeded), signs out user and redirects to login.
|
|
64
|
-
*
|
|
65
|
-
* How it works:
|
|
66
|
-
* 1. Window/tab regains focus after inactivity
|
|
67
|
-
* 2. Cancel all pending queries to prevent 401 error cascade
|
|
68
|
-
* 3. Attempt to get access token from WorkOS
|
|
69
|
-
* 4. If successful: Resume queries with fresh token
|
|
70
|
-
* 5. If failed (session expired): Sign out and redirect to login
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* // In __root.tsx
|
|
74
|
-
* export function RootLayoutComponent() {
|
|
75
|
-
* useSessionCheck()
|
|
76
|
-
* return <YourApp />
|
|
77
|
-
* }
|
|
78
|
-
*/
|
|
79
|
-
declare function useSessionCheck(): void;
|
|
6
|
+
declare const workOsOrgIdBrand: unique symbol;
|
|
7
|
+
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
8
|
+
type WorkOsOrgId = string & {
|
|
9
|
+
readonly [workOsOrgIdBrand]: true;
|
|
10
|
+
};
|
|
80
11
|
|
|
81
12
|
declare const AccessKeyInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
82
13
|
systemPath: z.ZodString;
|
|
@@ -157,6 +88,81 @@ interface AccessAnswer {
|
|
|
157
88
|
reason: AccessReason;
|
|
158
89
|
}
|
|
159
90
|
|
|
91
|
+
interface AuthContextValue {
|
|
92
|
+
user: {
|
|
93
|
+
id: string;
|
|
94
|
+
} | null;
|
|
95
|
+
isLoading: boolean;
|
|
96
|
+
getAccessToken: () => Promise<string>;
|
|
97
|
+
organizationId?: WorkOsOrgId | null;
|
|
98
|
+
/**
|
|
99
|
+
* Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
|
|
100
|
+
* Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
|
|
101
|
+
*/
|
|
102
|
+
signIn: (options?: {
|
|
103
|
+
state?: {
|
|
104
|
+
returnTo?: string;
|
|
105
|
+
};
|
|
106
|
+
}) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Returns true when a previous session can be recovered (refresh token
|
|
109
|
+
* exists in storage). ProtectedRoute calls `signIn()` only when this returns
|
|
110
|
+
* true; otherwise it navigates to the login page.
|
|
111
|
+
*
|
|
112
|
+
* Explicit logout clears the stored token, so canRecover() returns false
|
|
113
|
+
* and the user sees the login page as expected.
|
|
114
|
+
*/
|
|
115
|
+
canRecover: () => boolean;
|
|
116
|
+
}
|
|
117
|
+
declare function useAuthContext(): AuthContextValue;
|
|
118
|
+
declare function AuthProvider({ value, children }: {
|
|
119
|
+
value: AuthContextValue;
|
|
120
|
+
children: ReactNode;
|
|
121
|
+
}): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Returns a stable reference to getAccessToken that won't change between renders
|
|
125
|
+
*
|
|
126
|
+
* This prevents SSE connections from reconnecting unnecessarily when the
|
|
127
|
+
* WorkOS useAuth hook returns a new getAccessToken function reference
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```tsx
|
|
131
|
+
* const getAccessToken = useStableAccessToken()
|
|
132
|
+
*
|
|
133
|
+
* useEffect(() => {
|
|
134
|
+
* fetchEventSourceWithTokenRefresh({
|
|
135
|
+
* getToken: getAccessToken,
|
|
136
|
+
* // ...
|
|
137
|
+
* })
|
|
138
|
+
* }, [getAccessToken]) // Won't re-run on every render
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
declare function useStableAccessToken(): () => Promise<string>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Checks WorkOS session validity when window/tab regains focus
|
|
145
|
+
*
|
|
146
|
+
* When window or tab becomes visible after inactivity, validates session
|
|
147
|
+
* by attempting to get access token. If session expired (WorkOS inactivity
|
|
148
|
+
* timeout exceeded), signs out user and redirects to login.
|
|
149
|
+
*
|
|
150
|
+
* How it works:
|
|
151
|
+
* 1. Window/tab regains focus after inactivity
|
|
152
|
+
* 2. Cancel all pending queries to prevent 401 error cascade
|
|
153
|
+
* 3. Attempt to get access token from WorkOS
|
|
154
|
+
* 4. If successful: Resume queries with fresh token
|
|
155
|
+
* 5. If failed (session expired): Sign out and redirect to login
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* // In __root.tsx
|
|
159
|
+
* export function RootLayoutComponent() {
|
|
160
|
+
* useSessionCheck()
|
|
161
|
+
* return <YourApp />
|
|
162
|
+
* }
|
|
163
|
+
*/
|
|
164
|
+
declare function useSessionCheck(): void;
|
|
165
|
+
|
|
160
166
|
interface InitializationError {
|
|
161
167
|
layer: 'auth' | 'profile' | 'organization';
|
|
162
168
|
message: string;
|
package/dist/auth/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-
|
|
2
|
-
export { AccessKeys } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-MWRFFGOH.js';
|
|
2
|
+
export { AccessKeys } from '../chunk-D3EWFGLF.js';
|
|
3
|
+
import '../chunk-2XBCYJS3.js';
|
|
4
|
+
import '../chunk-6DO4PE3O.js';
|
|
5
|
+
import '../chunk-FZIPSE3S.js';
|
|
6
6
|
import '../chunk-DD3CCMCZ.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-W2SFTXMT.js';
|
|
8
8
|
import '../chunk-6ROXVZ3L.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-PE3FAAW3.js';
|
|
10
|
+
import '../chunk-2FTX4WO2.js';
|
|
11
|
+
import '../chunk-MQZE7SUI.js';
|
|
12
|
+
import '../chunk-TVTSASST.js';
|
|
10
13
|
export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
|
|
11
14
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-N4IO4CQO.js';
|
|
2
|
+
import '../chunk-AIP3GC2N.js';
|
|
3
3
|
import '../chunk-3KMDHCAR.js';
|
|
4
4
|
import '../chunk-S3XR4II4.js';
|
|
5
5
|
import '../chunk-NYBEU5TE.js';
|
|
6
6
|
import '../chunk-DT3QYZVU.js';
|
|
7
7
|
import '../chunk-2IFYDILW.js';
|
|
8
8
|
import '../chunk-Q7DJKLEN.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-PFPM654Z.js';
|
|
10
10
|
import '../chunk-KRWALB24.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-MWRFFGOH.js';
|
|
12
|
+
import '../chunk-D3EWFGLF.js';
|
|
13
|
+
import '../chunk-2XBCYJS3.js';
|
|
14
|
+
import '../chunk-6DO4PE3O.js';
|
|
15
|
+
import '../chunk-FZIPSE3S.js';
|
|
16
16
|
import '../chunk-DD3CCMCZ.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-W2SFTXMT.js';
|
|
18
18
|
import '../chunk-6ROXVZ3L.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-PE3FAAW3.js';
|
|
20
|
+
import '../chunk-2FTX4WO2.js';
|
|
21
|
+
import '../chunk-MQZE7SUI.js';
|
|
22
|
+
import '../chunk-TVTSASST.js';
|
|
20
23
|
import '../chunk-BRJ3QZ4E.js';
|
|
21
24
|
import '../chunk-I2KLQ2HA.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
|
|
1
2
|
import { createContext, useContext, useMemo } from 'react';
|
|
2
3
|
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
|
-
// src/provider/ElevasisServiceContext.tsx
|
|
5
5
|
var ElevasisServiceContext = createContext(null);
|
|
6
6
|
function useElevasisServices() {
|
|
7
7
|
const ctx = useContext(ElevasisServiceContext);
|
|
@@ -19,7 +19,7 @@ function ElevasisServiceProvider({
|
|
|
19
19
|
isReady,
|
|
20
20
|
children
|
|
21
21
|
}) {
|
|
22
|
-
const resolvedOrganizationId = workOSOrganizationId ?? organizationId ?? null;
|
|
22
|
+
const resolvedOrganizationId = brandWorkOsOrgId(workOSOrganizationId ?? organizationId ?? null);
|
|
23
23
|
const value = useMemo(
|
|
24
24
|
() => ({
|
|
25
25
|
apiRequest,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSortedSidebarEntries, getSemanticIconComponent } from './chunk-FZIPSE3S.js';
|
|
2
|
+
import { devOnlyFor, requiresAdminFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, listAllSystems, defaultPathFor } from './chunk-PE3FAAW3.js';
|
|
2
3
|
import { createContext, useContext, useMemo, useCallback } from 'react';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
2
|
-
import { useProfile } from './chunk-
|
|
2
|
+
import { useProfile } from './chunk-W2SFTXMT.js';
|
|
3
3
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
4
4
|
import { createContext, useContext, useMemo, useCallback, createElement } from 'react';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyledMarkdown } from './chunk-3KMDHCAR.js';
|
|
2
2
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
3
|
-
import { getErrorInfo, getErrorTitle, getResourceIcon, formatTimeAgo } from './chunk-
|
|
3
|
+
import { getErrorInfo, getErrorTitle, getResourceIcon, formatTimeAgo } from './chunk-PFPM654Z.js';
|
|
4
4
|
import { ResourceStatusColors } from './chunk-KRWALB24.js';
|
|
5
5
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
6
6
|
import { Center, Stack, Title, Text, Button, Box, Loader, Badge, Group, Collapse, ScrollArea, Card, Select, Alert, Code, ThemeIcon, Paper, Grid, Timeline, Space } from '@mantine/core';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { buildOrganizationGraph, projectOrganizationSurfaces,
|
|
1
|
+
import { buildOrganizationGraph, projectOrganizationSurfaces, SemanticIcon, getSortedSidebarEntries } from './chunk-FZIPSE3S.js';
|
|
2
|
+
import { compileOrganizationOntology, parseOntologyId, getSystem, resolveSystemConfig } from './chunk-PE3FAAW3.js';
|
|
2
3
|
import { useMemo, useState, useRef, useEffect } from 'react';
|
|
3
4
|
import { useTree, Text, Tree, UnstyledButton, Group, TextInput } from '@mantine/core';
|
|
4
5
|
import { useClipboard } from '@mantine/hooks';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useOptionalElevasisSystems } from './chunk-
|
|
2
|
-
import { InitializationContext } from './chunk-
|
|
3
|
-
import { DEFAULT_ORGANIZATION_MODEL
|
|
1
|
+
import { useOptionalElevasisSystems } from './chunk-2XBCYJS3.js';
|
|
2
|
+
import { InitializationContext } from './chunk-6DO4PE3O.js';
|
|
3
|
+
import { DEFAULT_ORGANIZATION_MODEL } from './chunk-FZIPSE3S.js';
|
|
4
4
|
import { OrganizationContext } from './chunk-DD3CCMCZ.js';
|
|
5
5
|
import { STALE_TIME_DEFAULT } from './chunk-6ROXVZ3L.js';
|
|
6
|
-
import {
|
|
6
|
+
import { listAllSystems, getSystem } from './chunk-PE3FAAW3.js';
|
|
7
|
+
import { ElevasisServiceContext } from './chunk-2FTX4WO2.js';
|
|
7
8
|
import { useContext, useMemo } from 'react';
|
|
8
9
|
import { useQuery } from '@tanstack/react-query';
|
|
9
10
|
import { z } from 'zod';
|