@elevasis/ui 1.12.0 → 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 +7 -7
- package/dist/{chunk-WUQWCUCB.js → chunk-3VTC7OWU.js} +2 -2
- package/dist/{chunk-VUFYYNTF.js → chunk-4HLCZVS6.js} +2 -3
- package/dist/{chunk-C27QFR3V.js → chunk-4TWGUI3L.js} +6 -6
- 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-MHQ42SD2.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-I427OSNH.js → chunk-HLZMP7GN.js} +37 -24
- package/dist/{chunk-JGJSZ3UE.js → chunk-NJJ3NQ7B.js} +1 -1
- package/dist/{chunk-CC6BRHQK.js → chunk-RM6ACTB3.js} +2 -2
- package/dist/{chunk-6TMW6VQ2.js → chunk-V5GGPIDD.js} +2 -2
- package/dist/components/index.js +17 -17
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +12 -12
- package/dist/hooks/published.js +11 -11
- package/dist/index.d.ts +27 -30
- package/dist/index.js +14 -14
- package/dist/initialization/index.js +4 -4
- 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.d.ts +8 -24
- package/dist/provider/index.js +6 -6
- package/dist/provider/published.d.ts +5 -19
- package/dist/provider/published.js +5 -5
- package/dist/supabase/index.js +2 -2
- package/package.json +1 -1
package/dist/auth/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AuthProvider, useAuthContext } from '../chunk-
|
|
1
|
+
export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
|
package/dist/auth/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-
|
|
2
|
-
export { useStableAccessToken } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-V5GGPIDD.js';
|
|
2
|
+
export { useStableAccessToken } from '../chunk-ALA56RGZ.js';
|
|
3
|
+
import '../chunk-3VTC7OWU.js';
|
|
4
|
+
import '../chunk-BK4EIWNU.js';
|
|
5
5
|
import '../chunk-DD3CCMCZ.js';
|
|
6
|
-
export { AuthProvider, useAuthContext } from '../chunk-
|
|
6
|
+
export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { ActivityTrendChart, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
1
|
+
export { ActivityTrendChart, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-RM6ACTB3.js';
|
|
2
2
|
import '../chunk-YHTK43DV.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-EQNXEBGZ.js';
|
|
4
4
|
import '../chunk-LHQTTUL2.js';
|
|
5
5
|
import '../chunk-ELJIFLCB.js';
|
|
6
6
|
import '../chunk-SZHARWKU.js';
|
|
7
7
|
import '../chunk-FCFLBMVI.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-V5GGPIDD.js';
|
|
9
|
+
import '../chunk-ALA56RGZ.js';
|
|
10
|
+
import '../chunk-3VTC7OWU.js';
|
|
11
|
+
import '../chunk-BK4EIWNU.js';
|
|
12
12
|
import '../chunk-DD3CCMCZ.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-BRJ3QZ4E.js';
|
|
14
14
|
import '../chunk-Q7DJKLEN.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useProfile } from './chunk-
|
|
1
|
+
import { useProfile } from './chunk-BK4EIWNU.js';
|
|
2
2
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
3
|
-
import { useAuthContext } from './chunk-
|
|
3
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
4
4
|
import { createContext, useContext, useMemo, useCallback, createElement } from 'react';
|
|
5
5
|
|
|
6
6
|
var InitializationContext = createContext(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-WNRHQAJA.js';
|
|
2
|
-
import { ElevasisCoreProvider } from './chunk-
|
|
2
|
+
import { ElevasisCoreProvider } from './chunk-HLZMP7GN.js';
|
|
3
3
|
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-FCFLBMVI.js';
|
|
4
4
|
import { useMemo, useEffect } from 'react';
|
|
5
5
|
import { mergeThemeOverrides, MantineProvider } from '@mantine/core';
|
|
@@ -84,6 +84,5 @@ function ElevasisUIProvider({ theme, children, ...coreProps }) {
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
var ElevasisProvider = ElevasisUIProvider;
|
|
88
87
|
|
|
89
|
-
export {
|
|
88
|
+
export { ElevasisUIProvider };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getTimeRangeDates, observabilityKeys } from './chunk-
|
|
2
|
-
import { useSupabase } from './chunk-
|
|
1
|
+
import { getTimeRangeDates, observabilityKeys } from './chunk-EQNXEBGZ.js';
|
|
2
|
+
import { useSupabase } from './chunk-NJJ3NQ7B.js';
|
|
3
3
|
import { GRAPH_CONSTANTS } from './chunk-F6RBK7NJ.js';
|
|
4
|
-
import { useNotificationAdapter } from './chunk-
|
|
4
|
+
import { useNotificationAdapter } from './chunk-HLZMP7GN.js';
|
|
5
5
|
import { HTTP_HEADERS } from './chunk-RULQSZYX.js';
|
|
6
6
|
import { STALE_TIME_MONITORING, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, STALE_TIME_DEFAULT, STALE_TIME_ADMIN } from './chunk-FCFLBMVI.js';
|
|
7
|
-
import { useStableAccessToken } from './chunk-
|
|
8
|
-
import { useElevasisServices } from './chunk-
|
|
7
|
+
import { useStableAccessToken } from './chunk-ALA56RGZ.js';
|
|
8
|
+
import { useElevasisServices } from './chunk-BK4EIWNU.js';
|
|
9
9
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
10
|
-
import { useAuthContext } from './chunk-
|
|
10
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
11
11
|
import { useQuery, useQueryClient, useMutation, useQueries } from '@tanstack/react-query';
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { useState, useCallback, useMemo, useRef, useEffect, useId } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAuthContext } from './chunk-
|
|
1
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
2
2
|
import { createContext, useContext, useMemo, useState, useEffect, createElement } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ function useElevasisServices() {
|
|
|
7
7
|
const ctx = useContext(ElevasisServiceContext);
|
|
8
8
|
if (!ctx) {
|
|
9
9
|
throw new Error(
|
|
10
|
-
"useElevasisServices must be used within an ElevasisServiceProvider or an
|
|
10
|
+
"useElevasisServices must be used within an ElevasisServiceProvider or an ElevasisUIProvider with apiUrl configured."
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
return ctx;
|
|
@@ -90,7 +90,13 @@ var UserProfileService = class {
|
|
|
90
90
|
};
|
|
91
91
|
var useUserProfile = (options) => {
|
|
92
92
|
const { user, isLoading: authLoading } = useAuthContext();
|
|
93
|
-
const
|
|
93
|
+
const serviceCtx = useContext(ElevasisServiceContext);
|
|
94
|
+
const apiRequest = options?.apiRequest ?? serviceCtx?.apiRequest;
|
|
95
|
+
if (!apiRequest) {
|
|
96
|
+
throw new Error(
|
|
97
|
+
"useUserProfile: no apiRequest available. Either pass it via options or use within ElevasisServiceProvider."
|
|
98
|
+
);
|
|
99
|
+
}
|
|
94
100
|
const [profile, setProfile] = useState(null);
|
|
95
101
|
const [loading, setLoading] = useState(true);
|
|
96
102
|
const [error, setError] = useState(null);
|
|
@@ -156,8 +162,8 @@ function useProfile() {
|
|
|
156
162
|
}
|
|
157
163
|
return ctx;
|
|
158
164
|
}
|
|
159
|
-
function ProfileProvider({ children }) {
|
|
160
|
-
const value = useUserProfile();
|
|
165
|
+
function ProfileProvider({ apiRequest, children }) {
|
|
166
|
+
const value = useUserProfile({ apiRequest });
|
|
161
167
|
return createElement(ProfileContext.Provider, { value }, children);
|
|
162
168
|
}
|
|
163
169
|
|
|
@@ -6,7 +6,7 @@ function useAuthContext() {
|
|
|
6
6
|
const ctx = useContext(AuthContext);
|
|
7
7
|
if (!ctx) {
|
|
8
8
|
throw new Error(
|
|
9
|
-
"useAuthContext must be used within an AuthProvider. Wrap your app with <
|
|
9
|
+
"useAuthContext must be used within an AuthProvider. Wrap your app with <ElevasisUIProvider> or a custom AuthProvider."
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
12
|
return ctx;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CredentialNameSchema, UuidSchema, useErrorNotification } from './chunk-
|
|
2
|
-
import { getTimeRangeDates } from './chunk-
|
|
3
|
-
import { useNotificationAdapter } from './chunk-
|
|
1
|
+
import { CredentialNameSchema, UuidSchema, useErrorNotification } from './chunk-4TWGUI3L.js';
|
|
2
|
+
import { getTimeRangeDates } from './chunk-EQNXEBGZ.js';
|
|
3
|
+
import { useNotificationAdapter } from './chunk-HLZMP7GN.js';
|
|
4
4
|
import { GC_TIME_SHORT, STALE_TIME_MONITORING, GC_TIME_MEDIUM, STALE_TIME_DEFAULT, getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-FCFLBMVI.js';
|
|
5
|
-
import { useElevasisServices } from './chunk-
|
|
5
|
+
import { useElevasisServices } from './chunk-BK4EIWNU.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { create } from 'zustand';
|
|
8
8
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useUserProfile } from './chunk-
|
|
2
|
-
import { useAuthContext } from './chunk-
|
|
1
|
+
import { useUserProfile } from './chunk-BK4EIWNU.js';
|
|
2
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
3
3
|
import { useMemo, useCallback } from 'react';
|
|
4
4
|
|
|
5
5
|
function createUseAppInitialization(useOrgInitialization) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useUserProfile } from './chunk-
|
|
2
|
-
import { useAuthContext } from './chunk-
|
|
1
|
+
import { useUserProfile } from './chunk-BK4EIWNU.js';
|
|
2
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
3
3
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
|
|
5
5
|
// src/organization/store/organizationsSlice.ts
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useProfile } from './chunk-BK4EIWNU.js';
|
|
2
2
|
import { OrganizationContext } from './chunk-DD3CCMCZ.js';
|
|
3
|
-
import { useAuthContext } from './chunk-
|
|
3
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
4
4
|
import { useState, useRef, useEffect, useCallback, createElement } from 'react';
|
|
5
5
|
import { useQueryClient } from '@tanstack/react-query';
|
|
6
6
|
|
|
7
|
-
function OrganizationProvider({ children }) {
|
|
7
|
+
function OrganizationProvider({ apiRequest, children }) {
|
|
8
8
|
const { user, organizationId: workosOrgId } = useAuthContext();
|
|
9
|
-
const { apiRequest } = useElevasisServices();
|
|
10
9
|
const { profile } = useProfile();
|
|
11
10
|
const queryClient = useQueryClient();
|
|
12
11
|
const [memberships, setMemberships] = useState([]);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AppBackground, AppearanceProvider } from './chunk-HRG3KPL6.js';
|
|
2
2
|
import { ElevasisLoader } from './chunk-SZHARWKU.js';
|
|
3
|
-
import { OrganizationProvider } from './chunk-
|
|
3
|
+
import { OrganizationProvider } from './chunk-HGNP6EVB.js';
|
|
4
4
|
import { ApiClientProvider, useApiClient } from './chunk-RULQSZYX.js';
|
|
5
5
|
import { getErrorInfo, getErrorTitle, formatErrorMessage } from './chunk-FCFLBMVI.js';
|
|
6
|
-
import { InitializationProvider } from './chunk-
|
|
7
|
-
import {
|
|
6
|
+
import { InitializationProvider } from './chunk-3VTC7OWU.js';
|
|
7
|
+
import { ProfileProvider, ElevasisServiceProvider } from './chunk-BK4EIWNU.js';
|
|
8
8
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
9
|
-
import { useAuthContext } from './chunk-
|
|
9
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
10
10
|
import { createContext, lazy, useContext, Suspense, useRef } from 'react';
|
|
11
|
-
import { jsx
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
|
13
13
|
import { Loader } from '@mantine/core';
|
|
14
14
|
|
|
@@ -39,7 +39,7 @@ function NotificationProvider({ adapter, children }) {
|
|
|
39
39
|
function useNotificationAdapter() {
|
|
40
40
|
return useContext(NotificationContext);
|
|
41
41
|
}
|
|
42
|
-
var LazyCoreAuthKitInner = lazy(() => import('./CoreAuthKitInner-
|
|
42
|
+
var LazyCoreAuthKitInner = lazy(() => import('./CoreAuthKitInner-I32JCNE7.js').then((m) => ({ default: m.CoreAuthKitInner })));
|
|
43
43
|
var defaultQueryClient = null;
|
|
44
44
|
function getDefaultQueryClient() {
|
|
45
45
|
if (!defaultQueryClient) {
|
|
@@ -49,6 +49,23 @@ function getDefaultQueryClient() {
|
|
|
49
49
|
}
|
|
50
50
|
return defaultQueryClient;
|
|
51
51
|
}
|
|
52
|
+
var consoleNotificationAdapter = {
|
|
53
|
+
success(title, message) {
|
|
54
|
+
console.log(`[Notification][Success] ${title}: ${message}`);
|
|
55
|
+
},
|
|
56
|
+
error(title, message) {
|
|
57
|
+
console.warn(`[Notification][Error] ${title}: ${message}`);
|
|
58
|
+
},
|
|
59
|
+
info(title, message) {
|
|
60
|
+
console.log(`[Notification][Info] ${title}: ${message}`);
|
|
61
|
+
},
|
|
62
|
+
warning(title, message) {
|
|
63
|
+
console.warn(`[Notification][Warning] ${title}: ${message}`);
|
|
64
|
+
},
|
|
65
|
+
apiError(error) {
|
|
66
|
+
console.warn(`[Notification][API Error]`, error);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
52
69
|
function ElevasisCoreProvider({
|
|
53
70
|
auth,
|
|
54
71
|
queryClient,
|
|
@@ -66,13 +83,13 @@ function ElevasisCoreProvider({
|
|
|
66
83
|
const resolvedQueryClient = queryClient ?? getDefaultQueryClient();
|
|
67
84
|
const resolvedAppearance = {
|
|
68
85
|
background: appearance?.background ?? /* @__PURE__ */ jsx(AppBackground, {}),
|
|
69
|
-
loader: appearance?.loader ?? /* @__PURE__ */ jsx(Loader, { size: "
|
|
86
|
+
loader: appearance?.loader ?? /* @__PURE__ */ jsx(Loader, { size: "xl", loaders: { elevasis: ElevasisLoader }, type: "elevasis" })
|
|
70
87
|
};
|
|
71
|
-
const content = apiUrl ? /* @__PURE__ */ jsx(
|
|
88
|
+
const content = apiUrl ? /* @__PURE__ */ jsx(ServiceStack, { apiUrl, onError, notifications, children }) : children;
|
|
72
89
|
const AuthInner = /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyCoreAuthKitInner, { auth, children: content }) });
|
|
73
90
|
return /* @__PURE__ */ jsx(QueryClientProvider, { client: resolvedQueryClient, children: /* @__PURE__ */ jsx(AppearanceProvider, { value: resolvedAppearance, children: AuthInner }) });
|
|
74
91
|
}
|
|
75
|
-
function
|
|
92
|
+
function ServiceStack({
|
|
76
93
|
apiUrl,
|
|
77
94
|
onError,
|
|
78
95
|
notifications,
|
|
@@ -88,34 +105,30 @@ function CoreServiceBridge({
|
|
|
88
105
|
getOrganizationId,
|
|
89
106
|
isOrganizationReady: false,
|
|
90
107
|
onError,
|
|
91
|
-
children: /* @__PURE__ */ jsx(
|
|
108
|
+
children: /* @__PURE__ */ jsx(ServiceStackInner, { apiUrl, orgIdRef, notifications, children })
|
|
92
109
|
}
|
|
93
110
|
);
|
|
94
111
|
}
|
|
95
|
-
function
|
|
112
|
+
function ServiceStackInner({
|
|
96
113
|
apiUrl,
|
|
97
114
|
orgIdRef,
|
|
98
115
|
notifications,
|
|
99
116
|
children
|
|
100
117
|
}) {
|
|
101
118
|
const { apiRequest } = useApiClient(apiUrl);
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
function OrgIdBridge({ orgIdRef, children }) {
|
|
105
|
-
const { currentWorkOSOrganizationId, isInitializing, isOrgRefreshing } = useOrganization();
|
|
106
|
-
const { apiRequest } = useElevasisServices();
|
|
107
|
-
orgIdRef.current = currentWorkOSOrganizationId;
|
|
108
|
-
const isReady = !!currentWorkOSOrganizationId && !isInitializing && !isOrgRefreshing;
|
|
109
|
-
return /* @__PURE__ */ jsx(ElevasisServiceProvider, { apiRequest, organizationId: currentWorkOSOrganizationId, isReady, children });
|
|
119
|
+
const resolvedNotifications = notifications ?? consoleNotificationAdapter;
|
|
120
|
+
return /* @__PURE__ */ jsx(ProfileProvider, { apiRequest, children: /* @__PURE__ */ jsx(OrganizationProvider, { apiRequest, children: /* @__PURE__ */ jsx(OrgServiceBridge, { orgIdRef, apiRequest, notifications: resolvedNotifications, children }) }) });
|
|
110
121
|
}
|
|
111
|
-
function
|
|
122
|
+
function OrgServiceBridge({
|
|
123
|
+
orgIdRef,
|
|
124
|
+
apiRequest,
|
|
112
125
|
notifications,
|
|
113
126
|
children
|
|
114
127
|
}) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return /* @__PURE__ */ jsx(
|
|
128
|
+
const { currentWorkOSOrganizationId, isInitializing, isOrgRefreshing } = useOrganization();
|
|
129
|
+
orgIdRef.current = currentWorkOSOrganizationId;
|
|
130
|
+
const isReady = !!currentWorkOSOrganizationId && !isInitializing && !isOrgRefreshing;
|
|
131
|
+
return /* @__PURE__ */ jsx(ElevasisServiceProvider, { apiRequest, organizationId: currentWorkOSOrganizationId, isReady, children: /* @__PURE__ */ jsx(NotificationProvider, { adapter: notifications, children: /* @__PURE__ */ jsx(InitializationProvider, { children }) }) });
|
|
119
132
|
}
|
|
120
133
|
|
|
121
134
|
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getTimeRangeLabel, getTimeRangeDates, useErrorTrends, formatBucketTime } from './chunk-
|
|
1
|
+
import { getTimeRangeLabel, getTimeRangeDates, useErrorTrends, formatBucketTime } from './chunk-EQNXEBGZ.js';
|
|
2
2
|
import { ResourceStatusColors } from './chunk-ELJIFLCB.js';
|
|
3
3
|
import { getErrorInfo, getErrorTitle, getResourceIcon } from './chunk-FCFLBMVI.js';
|
|
4
|
-
import { useAuthContext } from './chunk-
|
|
4
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
5
5
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
6
6
|
import { useMemo, useState, useEffect, useCallback } from 'react';
|
|
7
7
|
import { useComputedColorScheme, Group, Text, Box, Stack, Center, Title, Button, Loader, Badge, Collapse, ScrollArea, Card, Skeleton, Select, Alert, Code, ThemeIcon, Paper, Grid, NumberFormatter, Space, Tooltip as Tooltip$1, SimpleGrid, SegmentedControl } from '@mantine/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useInitialization } from './chunk-
|
|
2
|
-
import { useAuthContext } from './chunk-
|
|
1
|
+
import { useInitialization } from './chunk-3VTC7OWU.js';
|
|
2
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import { useQueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { useNavigate, useLocation } from '@tanstack/react-router';
|
package/dist/components/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { useCyberColors, EmptyState, CyberLegendItem, CyberAreaChart, APIErrorAlert, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, ContextViewer, JsonViewer, StyledMarkdown, PageTitleCaption, StatCard, CyberDonut, CollapsibleSection, ListSkeleton } from '../chunk-
|
|
2
|
-
export { APIErrorAlert, CardHeader, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, StyledMarkdown, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-
|
|
1
|
+
import { useCyberColors, EmptyState, CyberLegendItem, CyberAreaChart, APIErrorAlert, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, ContextViewer, JsonViewer, StyledMarkdown, PageTitleCaption, StatCard, CyberDonut, CollapsibleSection, ListSkeleton } from '../chunk-RM6ACTB3.js';
|
|
2
|
+
export { APIErrorAlert, CardHeader, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, StyledMarkdown, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-RM6ACTB3.js';
|
|
3
3
|
import { SubshellLoader, SubshellContainer, SubshellSidebar, SubshellRightSideContainer, SubshellContentContainer, PageContainer, AppShellLoader, SubshellSidebarSection, CollapsibleSidebarGroup, SidebarListItem } from '../chunk-7RAT54LF.js';
|
|
4
4
|
export { NavigationButton } from '../chunk-YHTK43DV.js';
|
|
5
|
-
import { useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, useDeleteCredential, useCreateCredential, useCredentials, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, showApiErrorNotification, showSuccessNotification, CredentialSchemas, showErrorNotification } from '../chunk-
|
|
6
|
-
export { showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification } from '../chunk-
|
|
7
|
-
import { useCommandViewLayout, useResourcesHealth, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications, useSubmitAction, useDeleteTask, useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useDeploymentDocs, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useCommandQueueTotals } from '../chunk-
|
|
8
|
-
import { getTimeRangeDates, formatBucketTime } from '../chunk-
|
|
9
|
-
import '../chunk-
|
|
5
|
+
import { useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, useDeleteCredential, useCreateCredential, useCredentials, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, showApiErrorNotification, showSuccessNotification, CredentialSchemas, showErrorNotification } from '../chunk-C27S6IIV.js';
|
|
6
|
+
export { showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification } from '../chunk-C27S6IIV.js';
|
|
7
|
+
import { useCommandViewLayout, useResourcesHealth, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications, useSubmitAction, useDeleteTask, useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useDeploymentDocs, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useCommandQueueTotals } from '../chunk-4TWGUI3L.js';
|
|
8
|
+
import { getTimeRangeDates, formatBucketTime } from '../chunk-EQNXEBGZ.js';
|
|
9
|
+
import '../chunk-NJJ3NQ7B.js';
|
|
10
10
|
import '../chunk-LHQTTUL2.js';
|
|
11
11
|
import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, GRAPH_CONSTANTS, useFitViewTrigger, useGraphHighlighting, calculateGraphHeight } from '../chunk-F6RBK7NJ.js';
|
|
12
12
|
export { Graph_module_css_default as graphStyles } from '../chunk-F6RBK7NJ.js';
|
|
13
13
|
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent, getResourceStatusColor } from '../chunk-XA34RETF.js';
|
|
14
14
|
export { CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS } from '../chunk-XA34RETF.js';
|
|
15
15
|
import { ResourceStatusColors, toWorkflowLogMessages } from '../chunk-ELJIFLCB.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-GU46QC4Z.js';
|
|
17
|
+
import '../chunk-CKFTPEBC.js';
|
|
18
18
|
import '../chunk-RNP5R5I3.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-4HLCZVS6.js';
|
|
20
20
|
import '../chunk-WNRHQAJA.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-HLZMP7GN.js';
|
|
22
22
|
import { useAppearance } from '../chunk-HRG3KPL6.js';
|
|
23
23
|
import { ElevasisLoader } from '../chunk-SZHARWKU.js';
|
|
24
24
|
export { ElevasisLoader } from '../chunk-SZHARWKU.js';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-HGNP6EVB.js';
|
|
26
26
|
import '../chunk-RULQSZYX.js';
|
|
27
27
|
import { getResourceIcon, getResourceColor, formatChartAxisDate, PAGE_SIZE_DEFAULT, getErrorInfo, formatErrorMessage, formatDateTime } from '../chunk-FCFLBMVI.js';
|
|
28
|
-
import '../chunk-
|
|
29
|
-
import '../chunk-
|
|
30
|
-
import { useInitialization } from '../chunk-
|
|
31
|
-
import { useElevasisServices } from '../chunk-
|
|
28
|
+
import '../chunk-V5GGPIDD.js';
|
|
29
|
+
import '../chunk-ALA56RGZ.js';
|
|
30
|
+
import { useInitialization } from '../chunk-3VTC7OWU.js';
|
|
31
|
+
import { useElevasisServices } from '../chunk-BK4EIWNU.js';
|
|
32
32
|
import { useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
33
|
-
import '../chunk-
|
|
33
|
+
import '../chunk-BRJ3QZ4E.js';
|
|
34
34
|
import { useRouterContext } from '../chunk-Q7DJKLEN.js';
|
|
35
35
|
import { z } from 'zod';
|
|
36
36
|
import { Paper, Stack, Text, Group, Badge, Box, ThemeIcon, useComputedColorScheme, Card, ActionIcon, Modal, Center, Space, Button, Title, TextInput, Table, Textarea, Radio, Checkbox, Select, NumberInput, Tooltip, Loader, SegmentedControl, NumberFormatter, Alert, Switch, Pagination, UnstyledButton, Divider, ScrollArea, Popover, Indicator, Menu, Accordion, Collapse, SimpleGrid, CopyButton, Code, useMantineTheme, Timeline, RangeSlider, Progress, PasswordInput, Anchor } from '@mantine/core';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -6128,7 +6128,7 @@ declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationRe
|
|
|
6128
6128
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
6129
6129
|
*
|
|
6130
6130
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
6131
|
-
* For standard SDK usage,
|
|
6131
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
6132
6132
|
*/
|
|
6133
6133
|
interface ElevasisServiceContextValue {
|
|
6134
6134
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -6140,7 +6140,7 @@ interface ElevasisServiceContextValue {
|
|
|
6140
6140
|
* Hook to access the ElevasisServiceProvider context.
|
|
6141
6141
|
* Provides apiRequest, organizationId, and isReady.
|
|
6142
6142
|
*
|
|
6143
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
6143
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
6144
6144
|
*/
|
|
6145
6145
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
6146
6146
|
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
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-
|
|
2
|
-
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-
|
|
3
|
-
export { observabilityKeys, useErrorTrends } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
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';
|
|
2
|
+
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';
|
|
3
|
+
export { observabilityKeys, useErrorTrends } from '../chunk-EQNXEBGZ.js';
|
|
4
|
+
import '../chunk-NJJ3NQ7B.js';
|
|
5
5
|
import '../chunk-F6RBK7NJ.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-GU46QC4Z.js';
|
|
7
7
|
import '../chunk-RNP5R5I3.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-4HLCZVS6.js';
|
|
9
9
|
import '../chunk-WNRHQAJA.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-HLZMP7GN.js';
|
|
11
11
|
import '../chunk-HRG3KPL6.js';
|
|
12
12
|
import '../chunk-SZHARWKU.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-HGNP6EVB.js';
|
|
14
14
|
import '../chunk-RULQSZYX.js';
|
|
15
15
|
export { REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY } from '../chunk-FCFLBMVI.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-ALA56RGZ.js';
|
|
17
|
+
import '../chunk-3VTC7OWU.js';
|
|
18
|
+
import '../chunk-BK4EIWNU.js';
|
|
19
19
|
import '../chunk-DD3CCMCZ.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/hooks/published.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
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-
|
|
2
|
-
export { observabilityKeys, useErrorTrends } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
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';
|
|
2
|
+
export { observabilityKeys, useErrorTrends } from '../chunk-EQNXEBGZ.js';
|
|
3
|
+
import '../chunk-NJJ3NQ7B.js';
|
|
4
4
|
import '../chunk-F6RBK7NJ.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-GU46QC4Z.js';
|
|
6
6
|
import '../chunk-RNP5R5I3.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-4HLCZVS6.js';
|
|
8
8
|
import '../chunk-WNRHQAJA.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-HLZMP7GN.js';
|
|
10
10
|
import '../chunk-HRG3KPL6.js';
|
|
11
11
|
import '../chunk-SZHARWKU.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-HGNP6EVB.js';
|
|
13
13
|
import '../chunk-RULQSZYX.js';
|
|
14
14
|
export { REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY } from '../chunk-FCFLBMVI.js';
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-ALA56RGZ.js';
|
|
16
|
+
import '../chunk-3VTC7OWU.js';
|
|
17
|
+
import '../chunk-BK4EIWNU.js';
|
|
18
18
|
import '../chunk-DD3CCMCZ.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ interface ElevasisCoreProviderProps {
|
|
|
245
245
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
246
246
|
*
|
|
247
247
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
248
|
-
* For standard SDK usage,
|
|
248
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
249
249
|
*/
|
|
250
250
|
interface ElevasisServiceContextValue {
|
|
251
251
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -5388,16 +5388,13 @@ declare function TanStackRouterBridge({ children }: {
|
|
|
5388
5388
|
*
|
|
5389
5389
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
5390
5390
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
5391
|
-
* Elevasis theming should use `
|
|
5391
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
5392
5392
|
*
|
|
5393
5393
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
5394
5394
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
5395
|
-
*
|
|
5395
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
5396
5396
|
* NotificationProvider -> InitializationProvider
|
|
5397
5397
|
*
|
|
5398
|
-
* The `notifications` prop wires a custom adapter
|
|
5399
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
5400
|
-
*
|
|
5401
5398
|
* @example Headless SDK consumer
|
|
5402
5399
|
* ```tsx
|
|
5403
5400
|
* <ElevasisCoreProvider
|
|
@@ -5407,17 +5404,6 @@ declare function TanStackRouterBridge({ children }: {
|
|
|
5407
5404
|
* <Dashboard />
|
|
5408
5405
|
* </ElevasisCoreProvider>
|
|
5409
5406
|
* ```
|
|
5410
|
-
*
|
|
5411
|
-
* @example With custom notification adapter
|
|
5412
|
-
* ```tsx
|
|
5413
|
-
* <ElevasisCoreProvider
|
|
5414
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
5415
|
-
* apiUrl="https://api.elevasis.com"
|
|
5416
|
-
* notifications={myNotificationAdapter}
|
|
5417
|
-
* >
|
|
5418
|
-
* <Dashboard />
|
|
5419
|
-
* </ElevasisCoreProvider>
|
|
5420
|
-
* ```
|
|
5421
5407
|
*/
|
|
5422
5408
|
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
5423
5409
|
|
|
@@ -5425,14 +5411,14 @@ declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, noti
|
|
|
5425
5411
|
* Hook to access the ElevasisServiceProvider context.
|
|
5426
5412
|
* Provides apiRequest, organizationId, and isReady.
|
|
5427
5413
|
*
|
|
5428
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
5414
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
5429
5415
|
*/
|
|
5430
5416
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
5431
5417
|
/**
|
|
5432
5418
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
5433
5419
|
*
|
|
5434
5420
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
5435
|
-
*
|
|
5421
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
5436
5422
|
*
|
|
5437
5423
|
* @example Testing
|
|
5438
5424
|
* ```tsx
|
|
@@ -5462,12 +5448,10 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
|
|
|
5462
5448
|
* Props for ElevasisUIProvider (Mantine variant).
|
|
5463
5449
|
* Extends ElevasisCoreProviderProps with Mantine-aware theme config.
|
|
5464
5450
|
*/
|
|
5465
|
-
interface
|
|
5451
|
+
interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
|
|
5466
5452
|
theme?: ElevasisThemeConfig;
|
|
5467
5453
|
}
|
|
5468
|
-
declare function ElevasisUIProvider({ theme, children, ...coreProps }:
|
|
5469
|
-
/** @deprecated Use ElevasisUIProvider instead. Alias kept for backwards compatibility. */
|
|
5470
|
-
declare const ElevasisProvider: typeof ElevasisUIProvider;
|
|
5454
|
+
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
5471
5455
|
|
|
5472
5456
|
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
5473
5457
|
status?: TaskStatus;
|
|
@@ -8147,6 +8131,7 @@ interface AdminGuardProps {
|
|
|
8147
8131
|
*/
|
|
8148
8132
|
declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): react_jsx_runtime.JSX.Element | null;
|
|
8149
8133
|
|
|
8134
|
+
type ApiRequestFn$2 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8150
8135
|
interface ProfileContextValue {
|
|
8151
8136
|
profile: SupabaseUserProfile | null;
|
|
8152
8137
|
loading: boolean;
|
|
@@ -8165,13 +8150,16 @@ declare function useProfile(): ProfileContextValue;
|
|
|
8165
8150
|
* Wraps useUserProfile so that all consumers share one profile fetch
|
|
8166
8151
|
* instead of each triggering an independent sync call.
|
|
8167
8152
|
*
|
|
8168
|
-
* Must be rendered inside the auth
|
|
8169
|
-
*
|
|
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.
|
|
8170
8156
|
*/
|
|
8171
|
-
declare function ProfileProvider({ children }: {
|
|
8157
|
+
declare function ProfileProvider({ apiRequest, children }: {
|
|
8158
|
+
apiRequest: ApiRequestFn$2;
|
|
8172
8159
|
children: ReactNode;
|
|
8173
8160
|
}): react.FunctionComponentElement<react.ProviderProps<ProfileContextValue | null>>;
|
|
8174
8161
|
|
|
8162
|
+
type ApiRequestFn$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8175
8163
|
interface UseUserProfileOptions {
|
|
8176
8164
|
/**
|
|
8177
8165
|
* Optional error handler for profile sync failures
|
|
@@ -8181,6 +8169,12 @@ interface UseUserProfileOptions {
|
|
|
8181
8169
|
phase: 'profile-sync';
|
|
8182
8170
|
userId?: string;
|
|
8183
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;
|
|
8184
8178
|
}
|
|
8185
8179
|
interface UseUserProfileReturn {
|
|
8186
8180
|
profile: SupabaseUserProfile | null;
|
|
@@ -8197,7 +8191,7 @@ interface UseUserProfileReturn {
|
|
|
8197
8191
|
* 3. Handles loading states and errors
|
|
8198
8192
|
* 4. Includes a refetch function for manual updates
|
|
8199
8193
|
*
|
|
8200
|
-
* @param options - Optional configuration including error handler
|
|
8194
|
+
* @param options - Optional configuration including error handler and apiRequest
|
|
8201
8195
|
*/
|
|
8202
8196
|
declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
8203
8197
|
|
|
@@ -8229,21 +8223,24 @@ declare class UserProfileService {
|
|
|
8229
8223
|
}>): Promise<SupabaseUserProfile | null>;
|
|
8230
8224
|
}
|
|
8231
8225
|
|
|
8226
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
8232
8227
|
/**
|
|
8233
8228
|
* Provides organization state to its subtree via React Context.
|
|
8234
8229
|
*
|
|
8235
8230
|
* Must be rendered inside:
|
|
8236
|
-
* - ElevasisServiceProvider (needs apiRequest)
|
|
8237
8231
|
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
8238
8232
|
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
8239
8233
|
*
|
|
8234
|
+
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
8235
|
+
*
|
|
8240
8236
|
* Behaviors:
|
|
8241
8237
|
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
8242
8238
|
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
8243
8239
|
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
8244
8240
|
* - Clears all state when the user signs out (user becomes null)
|
|
8245
8241
|
*/
|
|
8246
|
-
declare function OrganizationProvider({ children }: {
|
|
8242
|
+
declare function OrganizationProvider({ apiRequest, children }: {
|
|
8243
|
+
apiRequest: ApiRequestFn;
|
|
8247
8244
|
children: ReactNode;
|
|
8248
8245
|
}): react.FunctionComponentElement<react.ProviderProps<OrganizationContextValue | null>>;
|
|
8249
8246
|
|
|
@@ -8434,5 +8431,5 @@ declare function InitializationProvider({ children }: {
|
|
|
8434
8431
|
children: ReactNode;
|
|
8435
8432
|
}): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
|
|
8436
8433
|
|
|
8437
|
-
export { AGENT_CONSTANTS, APIClientError, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider,
|
|
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 };
|
|
8438
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,28 +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, 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-
|
|
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-
|
|
16
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from './chunk-HLZMP7GN.js';
|
|
17
17
|
export { AppearanceProvider, useAppearance } from './chunk-HRG3KPL6.js';
|
|
18
18
|
import './chunk-SZHARWKU.js';
|
|
19
|
-
export { OrganizationProvider } from './chunk-
|
|
19
|
+
export { OrganizationProvider } from './chunk-HGNP6EVB.js';
|
|
20
20
|
export { ApiClientProvider, useApiClient, useApiClientContext } from './chunk-RULQSZYX.js';
|
|
21
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';
|
|
22
|
-
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from './chunk-
|
|
23
|
-
export { useStableAccessToken } from './chunk-
|
|
24
|
-
export { InitializationContext, InitializationProvider, useInitialization } from './chunk-
|
|
25
|
-
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';
|
|
26
26
|
export { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
27
|
-
export { AuthProvider, useAuthContext } from './chunk-
|
|
27
|
+
export { AuthProvider, useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
28
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';
|
|
@@ -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.d.ts
CHANGED
|
@@ -238,7 +238,7 @@ interface ElevasisCoreProviderProps {
|
|
|
238
238
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
239
239
|
*
|
|
240
240
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
241
|
-
* For standard SDK usage,
|
|
241
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
242
242
|
*/
|
|
243
243
|
interface ElevasisServiceContextValue {
|
|
244
244
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -257,16 +257,13 @@ interface ElevasisServiceProviderProps {
|
|
|
257
257
|
*
|
|
258
258
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
259
259
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
260
|
-
* Elevasis theming should use `
|
|
260
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
261
261
|
*
|
|
262
262
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
263
263
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
264
|
-
*
|
|
264
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
265
265
|
* NotificationProvider -> InitializationProvider
|
|
266
266
|
*
|
|
267
|
-
* The `notifications` prop wires a custom adapter
|
|
268
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
269
|
-
*
|
|
270
267
|
* @example Headless SDK consumer
|
|
271
268
|
* ```tsx
|
|
272
269
|
* <ElevasisCoreProvider
|
|
@@ -276,17 +273,6 @@ interface ElevasisServiceProviderProps {
|
|
|
276
273
|
* <Dashboard />
|
|
277
274
|
* </ElevasisCoreProvider>
|
|
278
275
|
* ```
|
|
279
|
-
*
|
|
280
|
-
* @example With custom notification adapter
|
|
281
|
-
* ```tsx
|
|
282
|
-
* <ElevasisCoreProvider
|
|
283
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
284
|
-
* apiUrl="https://api.elevasis.com"
|
|
285
|
-
* notifications={myNotificationAdapter}
|
|
286
|
-
* >
|
|
287
|
-
* <Dashboard />
|
|
288
|
-
* </ElevasisCoreProvider>
|
|
289
|
-
* ```
|
|
290
276
|
*/
|
|
291
277
|
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
292
278
|
|
|
@@ -294,14 +280,14 @@ declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, noti
|
|
|
294
280
|
* Hook to access the ElevasisServiceProvider context.
|
|
295
281
|
* Provides apiRequest, organizationId, and isReady.
|
|
296
282
|
*
|
|
297
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
283
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
298
284
|
*/
|
|
299
285
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
300
286
|
/**
|
|
301
287
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
302
288
|
*
|
|
303
289
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
304
|
-
*
|
|
290
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
305
291
|
*
|
|
306
292
|
* @example Testing
|
|
307
293
|
* ```tsx
|
|
@@ -331,12 +317,10 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
|
|
|
331
317
|
* Props for ElevasisUIProvider (Mantine variant).
|
|
332
318
|
* Extends ElevasisCoreProviderProps with Mantine-aware theme config.
|
|
333
319
|
*/
|
|
334
|
-
interface
|
|
320
|
+
interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
|
|
335
321
|
theme?: ElevasisThemeConfig;
|
|
336
322
|
}
|
|
337
|
-
declare function ElevasisUIProvider({ theme, children, ...coreProps }:
|
|
338
|
-
/** @deprecated Use ElevasisUIProvider instead. Alias kept for backwards compatibility. */
|
|
339
|
-
declare const ElevasisProvider: typeof ElevasisUIProvider;
|
|
323
|
+
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
340
324
|
|
|
341
|
-
export { AppearanceProvider, ElevasisCoreProvider,
|
|
325
|
+
export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisUIProvider, NotificationProvider, useAppearance, useElevasisServices, useNotificationAdapter };
|
|
342
326
|
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, NotificationAdapter, PresetName, WithSchemes };
|
package/dist/provider/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ElevasisUIProvider } from '../chunk-4HLCZVS6.js';
|
|
2
2
|
import '../chunk-WNRHQAJA.js';
|
|
3
|
-
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-
|
|
3
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-HLZMP7GN.js';
|
|
4
4
|
export { AppearanceProvider, useAppearance } from '../chunk-HRG3KPL6.js';
|
|
5
5
|
import '../chunk-SZHARWKU.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-HGNP6EVB.js';
|
|
7
7
|
import '../chunk-RULQSZYX.js';
|
|
8
8
|
import '../chunk-FCFLBMVI.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-
|
|
9
|
+
import '../chunk-3VTC7OWU.js';
|
|
10
|
+
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BK4EIWNU.js';
|
|
11
11
|
import '../chunk-DD3CCMCZ.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-BRJ3QZ4E.js';
|
|
@@ -237,7 +237,7 @@ interface ElevasisCoreProviderProps {
|
|
|
237
237
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
238
238
|
*
|
|
239
239
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
240
|
-
* For standard SDK usage,
|
|
240
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
241
241
|
*/
|
|
242
242
|
interface ElevasisServiceContextValue {
|
|
243
243
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -256,16 +256,13 @@ interface ElevasisServiceProviderProps {
|
|
|
256
256
|
*
|
|
257
257
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
258
258
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
259
|
-
* Elevasis theming should use `
|
|
259
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
260
260
|
*
|
|
261
261
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
262
262
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
263
|
-
*
|
|
263
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
264
264
|
* NotificationProvider -> InitializationProvider
|
|
265
265
|
*
|
|
266
|
-
* The `notifications` prop wires a custom adapter
|
|
267
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
268
|
-
*
|
|
269
266
|
* @example Headless SDK consumer
|
|
270
267
|
* ```tsx
|
|
271
268
|
* <ElevasisCoreProvider
|
|
@@ -275,17 +272,6 @@ interface ElevasisServiceProviderProps {
|
|
|
275
272
|
* <Dashboard />
|
|
276
273
|
* </ElevasisCoreProvider>
|
|
277
274
|
* ```
|
|
278
|
-
*
|
|
279
|
-
* @example With custom notification adapter
|
|
280
|
-
* ```tsx
|
|
281
|
-
* <ElevasisCoreProvider
|
|
282
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
283
|
-
* apiUrl="https://api.elevasis.com"
|
|
284
|
-
* notifications={myNotificationAdapter}
|
|
285
|
-
* >
|
|
286
|
-
* <Dashboard />
|
|
287
|
-
* </ElevasisCoreProvider>
|
|
288
|
-
* ```
|
|
289
275
|
*/
|
|
290
276
|
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
291
277
|
|
|
@@ -293,14 +279,14 @@ declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, noti
|
|
|
293
279
|
* Hook to access the ElevasisServiceProvider context.
|
|
294
280
|
* Provides apiRequest, organizationId, and isReady.
|
|
295
281
|
*
|
|
296
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
282
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
297
283
|
*/
|
|
298
284
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
299
285
|
/**
|
|
300
286
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
301
287
|
*
|
|
302
288
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
303
|
-
*
|
|
289
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
304
290
|
*
|
|
305
291
|
* @example Testing
|
|
306
292
|
* ```tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-
|
|
1
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-HLZMP7GN.js';
|
|
2
2
|
export { AppearanceProvider, useAppearance } from '../chunk-HRG3KPL6.js';
|
|
3
3
|
import '../chunk-SZHARWKU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-HGNP6EVB.js';
|
|
5
5
|
import '../chunk-RULQSZYX.js';
|
|
6
6
|
import '../chunk-FCFLBMVI.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-
|
|
7
|
+
import '../chunk-3VTC7OWU.js';
|
|
8
|
+
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BK4EIWNU.js';
|
|
9
9
|
import '../chunk-DD3CCMCZ.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-BRJ3QZ4E.js';
|
package/dist/supabase/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getSupabaseClient, useSupabase } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { getSupabaseClient, useSupabase } from '../chunk-NJJ3NQ7B.js';
|
|
2
|
+
import '../chunk-BRJ3QZ4E.js';
|