@elevasis/ui 1.11.2 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CoreAuthKitInner-3J4RVQO6.js → CoreAuthKitInner-I32JCNE7.js} +1 -1
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.js +9 -8
- package/dist/{chunk-WUQWCUCB.js → chunk-3VTC7OWU.js} +2 -2
- package/dist/{chunk-KPRCFAI4.js → chunk-4HLCZVS6.js} +8 -33
- package/dist/{chunk-AQZGGSZZ.js → chunk-4TWGUI3L.js} +30 -8
- package/dist/{chunk-THXI3CDT.js → chunk-7RAT54LF.js} +9 -276
- package/dist/{chunk-FWZJH3TL.js → chunk-ALA56RGZ.js} +1 -1
- package/dist/{chunk-GZVH423C.js → chunk-BK4EIWNU.js} +11 -5
- package/dist/{chunk-7PLEQFHO.js → chunk-BRJ3QZ4E.js} +1 -1
- package/dist/{chunk-7NX3WNBO.js → chunk-C27S6IIV.js} +4 -4
- package/dist/{chunk-3PURTICE.js → chunk-CKFTPEBC.js} +2 -2
- package/dist/{chunk-ARZM3OTI.js → chunk-EQNXEBGZ.js} +1 -1
- package/dist/{chunk-3I2LOKQU.js → chunk-GU46QC4Z.js} +2 -2
- package/dist/{chunk-2YBPRE6H.js → chunk-HGNP6EVB.js} +3 -4
- package/dist/{chunk-564T2YKH.js → chunk-HLZMP7GN.js} +45 -24
- package/dist/chunk-HRG3KPL6.js +295 -0
- package/dist/{chunk-JGJSZ3UE.js → chunk-NJJ3NQ7B.js} +1 -1
- package/dist/{chunk-CC6BRHQK.js → chunk-RM6ACTB3.js} +2 -2
- package/dist/chunk-SZHARWKU.js +15 -0
- package/dist/{chunk-6TMW6VQ2.js → chunk-V5GGPIDD.js} +2 -2
- package/dist/{chunk-YGYF6G7W.js → chunk-YHTK43DV.js} +1 -11
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +69 -27
- package/dist/execution/index.d.ts +2 -0
- package/dist/hooks/index.css +45 -0
- package/dist/hooks/index.d.ts +19 -3
- package/dist/hooks/index.js +14 -12
- package/dist/hooks/published.css +45 -0
- package/dist/hooks/published.d.ts +17 -1
- package/dist/hooks/published.js +13 -11
- package/dist/index.css +45 -0
- package/dist/index.d.ts +69 -63
- package/dist/index.js +16 -14
- package/dist/initialization/index.js +4 -4
- package/dist/layout/index.d.ts +6 -2
- package/dist/layout/index.js +4 -2
- package/dist/organization/index.d.ts +5 -2
- package/dist/organization/index.js +4 -4
- package/dist/profile/index.d.ts +14 -4
- package/dist/profile/index.js +2 -2
- package/dist/provider/index.css +45 -0
- package/dist/provider/index.d.ts +34 -57
- package/dist/provider/index.js +8 -6
- package/dist/provider/published.css +44 -0
- package/dist/provider/published.d.ts +32 -27
- package/dist/provider/published.js +7 -5
- package/dist/supabase/index.js +2 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/provider/index.d.ts
CHANGED
|
@@ -57,17 +57,18 @@ interface NotificationAdapter {
|
|
|
57
57
|
/**
|
|
58
58
|
* Provides a notification adapter to all descendant components.
|
|
59
59
|
*
|
|
60
|
-
* Pass a
|
|
61
|
-
*
|
|
60
|
+
* Pass a custom adapter for your notification library. ElevasisUIProvider
|
|
61
|
+
* wires the Mantine adapter automatically; template/test consumers can
|
|
62
|
+
* pass their own or omit for console output.
|
|
62
63
|
*
|
|
63
64
|
* When omitted, hooks fall back to the console adapter automatically.
|
|
64
65
|
*
|
|
65
66
|
* @example
|
|
66
67
|
* ```tsx
|
|
67
68
|
* import { NotificationProvider } from '@repo/ui/provider'
|
|
68
|
-
* import {
|
|
69
|
+
* import { myAdapter } from './my-adapter'
|
|
69
70
|
*
|
|
70
|
-
* <NotificationProvider adapter={
|
|
71
|
+
* <NotificationProvider adapter={myAdapter}>
|
|
71
72
|
* <App />
|
|
72
73
|
* </NotificationProvider>
|
|
73
74
|
* ```
|
|
@@ -87,6 +88,18 @@ declare function NotificationProvider({ adapter, children }: {
|
|
|
87
88
|
*/
|
|
88
89
|
declare function useNotificationAdapter(): NotificationAdapter;
|
|
89
90
|
|
|
91
|
+
interface AppearanceConfig {
|
|
92
|
+
/** Background layers rendered behind app content. Defaults to Elevasis background. */
|
|
93
|
+
background?: ReactNode;
|
|
94
|
+
/** Loader element rendered during loading states. Defaults to Elevasis chevron loader. */
|
|
95
|
+
loader?: ReactNode;
|
|
96
|
+
}
|
|
97
|
+
declare function AppearanceProvider({ value, children }: {
|
|
98
|
+
value: Required<AppearanceConfig>;
|
|
99
|
+
children: ReactNode;
|
|
100
|
+
}): react_jsx_runtime.JSX.Element;
|
|
101
|
+
declare function useAppearance(): Required<AppearanceConfig>;
|
|
102
|
+
|
|
90
103
|
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
91
104
|
type WithSchemes<T> = T & {
|
|
92
105
|
light?: T;
|
|
@@ -202,10 +215,16 @@ interface ElevasisCoreProviderProps {
|
|
|
202
215
|
* When provided, wraps the subtree in a NotificationProvider with this adapter.
|
|
203
216
|
* When omitted, the console fallback adapter is used automatically.
|
|
204
217
|
*
|
|
205
|
-
* ElevasisUIProvider (Mantine variant) passes
|
|
218
|
+
* ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
|
|
206
219
|
* Headless/SDK consumers can pass a custom adapter or omit for console output.
|
|
207
220
|
*/
|
|
208
221
|
notifications?: NotificationAdapter;
|
|
222
|
+
/**
|
|
223
|
+
* Appearance configuration for background and loader.
|
|
224
|
+
* When omitted, defaults to the Elevasis background (PerspectiveGrid + RadiantGlow +
|
|
225
|
+
* FloatingOrbs + FilmGrain) and the Elevasis chevron loader.
|
|
226
|
+
*/
|
|
227
|
+
appearance?: AppearanceConfig;
|
|
209
228
|
/**
|
|
210
229
|
* Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
|
|
211
230
|
* Set to `false` when the consumer has its own complete design system and only
|
|
@@ -219,7 +238,7 @@ interface ElevasisCoreProviderProps {
|
|
|
219
238
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
220
239
|
*
|
|
221
240
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
222
|
-
* For standard SDK usage,
|
|
241
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
223
242
|
*/
|
|
224
243
|
interface ElevasisServiceContextValue {
|
|
225
244
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -238,16 +257,13 @@ interface ElevasisServiceProviderProps {
|
|
|
238
257
|
*
|
|
239
258
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
240
259
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
241
|
-
* Elevasis theming should use `
|
|
260
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
242
261
|
*
|
|
243
262
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
244
263
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
245
|
-
*
|
|
264
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
246
265
|
* NotificationProvider -> InitializationProvider
|
|
247
266
|
*
|
|
248
|
-
* The `notifications` prop wires a custom adapter (e.g. mantineNotificationAdapter)
|
|
249
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
250
|
-
*
|
|
251
267
|
* @example Headless SDK consumer
|
|
252
268
|
* ```tsx
|
|
253
269
|
* <ElevasisCoreProvider
|
|
@@ -257,32 +273,21 @@ interface ElevasisServiceProviderProps {
|
|
|
257
273
|
* <Dashboard />
|
|
258
274
|
* </ElevasisCoreProvider>
|
|
259
275
|
* ```
|
|
260
|
-
*
|
|
261
|
-
* @example With custom notification adapter
|
|
262
|
-
* ```tsx
|
|
263
|
-
* <ElevasisCoreProvider
|
|
264
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
265
|
-
* apiUrl="https://api.elevasis.com"
|
|
266
|
-
* notifications={myNotificationAdapter}
|
|
267
|
-
* >
|
|
268
|
-
* <Dashboard />
|
|
269
|
-
* </ElevasisCoreProvider>
|
|
270
|
-
* ```
|
|
271
276
|
*/
|
|
272
|
-
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
277
|
+
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
273
278
|
|
|
274
279
|
/**
|
|
275
280
|
* Hook to access the ElevasisServiceProvider context.
|
|
276
281
|
* Provides apiRequest, organizationId, and isReady.
|
|
277
282
|
*
|
|
278
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
283
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
279
284
|
*/
|
|
280
285
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
281
286
|
/**
|
|
282
287
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
283
288
|
*
|
|
284
289
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
285
|
-
*
|
|
290
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
286
291
|
*
|
|
287
292
|
* @example Testing
|
|
288
293
|
* ```tsx
|
|
@@ -312,38 +317,10 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
|
|
|
312
317
|
* Props for ElevasisUIProvider (Mantine variant).
|
|
313
318
|
* Extends ElevasisCoreProviderProps with Mantine-aware theme config.
|
|
314
319
|
*/
|
|
315
|
-
interface
|
|
320
|
+
interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
|
|
316
321
|
theme?: ElevasisThemeConfig;
|
|
317
322
|
}
|
|
318
|
-
|
|
319
|
-
* UI provider for Elevasis-powered applications. Includes Mantine theme integration.
|
|
320
|
-
*
|
|
321
|
-
* A thin Mantine shell around ElevasisCoreProvider. Handles:
|
|
322
|
-
* - MantineProvider with theme resolution (presets, token overrides, color scheme)
|
|
323
|
-
* - Google Font injection for preset fonts
|
|
324
|
-
* - CSS variables resolver
|
|
325
|
-
* - Mantine notification adapter (wired into NotificationProvider automatically)
|
|
326
|
-
*
|
|
327
|
-
* All auth, API, profile, organization, and initialization composition is
|
|
328
|
-
* delegated to ElevasisCoreProvider.
|
|
329
|
-
*/
|
|
330
|
-
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisProviderProps): react_jsx_runtime.JSX.Element;
|
|
331
|
-
/** @deprecated Use ElevasisUIProvider instead. Alias kept for backwards compatibility. */
|
|
332
|
-
declare const ElevasisProvider: typeof ElevasisUIProvider;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Mantine-backed notification adapter.
|
|
336
|
-
*
|
|
337
|
-
* Wraps `@mantine/notifications` with the same defaults as `notify.tsx`
|
|
338
|
-
* (`autoClose: 5000`, `position: 'top-right'`). The `apiError()` method
|
|
339
|
-
* replicates `showApiErrorNotification` behavior including retryAfter-based
|
|
340
|
-
* autoClose.
|
|
341
|
-
*
|
|
342
|
-
* Use this adapter in Command Center (Mantine-powered) consumers.
|
|
343
|
-
* Template consumers should omit the NotificationProvider and rely on the
|
|
344
|
-
* console fallback, or supply their own adapter.
|
|
345
|
-
*/
|
|
346
|
-
declare const mantineNotificationAdapter: NotificationAdapter;
|
|
323
|
+
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
347
324
|
|
|
348
|
-
export {
|
|
349
|
-
export type { ApiKeyConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, NotificationAdapter, PresetName, WithSchemes };
|
|
325
|
+
export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisUIProvider, NotificationProvider, useAppearance, useElevasisServices, useNotificationAdapter };
|
|
326
|
+
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, NotificationAdapter, PresetName, WithSchemes };
|
package/dist/provider/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ElevasisUIProvider } from '../chunk-4HLCZVS6.js';
|
|
2
2
|
import '../chunk-WNRHQAJA.js';
|
|
3
|
-
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-
|
|
4
|
-
|
|
3
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-HLZMP7GN.js';
|
|
4
|
+
export { AppearanceProvider, useAppearance } from '../chunk-HRG3KPL6.js';
|
|
5
|
+
import '../chunk-SZHARWKU.js';
|
|
6
|
+
import '../chunk-HGNP6EVB.js';
|
|
5
7
|
import '../chunk-RULQSZYX.js';
|
|
6
8
|
import '../chunk-FCFLBMVI.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-
|
|
9
|
+
import '../chunk-3VTC7OWU.js';
|
|
10
|
+
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BK4EIWNU.js';
|
|
9
11
|
import '../chunk-DD3CCMCZ.js';
|
|
10
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-BRJ3QZ4E.js';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* src/components/display/ElevasisLoader.module.css */
|
|
2
|
+
.wrapper {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: var(--loader-size);
|
|
7
|
+
height: var(--loader-size);
|
|
8
|
+
overflow: visible;
|
|
9
|
+
}
|
|
10
|
+
.loader {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
display: block;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
}
|
|
16
|
+
.chevron {
|
|
17
|
+
stroke: var(--loader-color);
|
|
18
|
+
stroke-width: 2;
|
|
19
|
+
stroke-linecap: square;
|
|
20
|
+
stroke-linejoin: miter;
|
|
21
|
+
fill: none;
|
|
22
|
+
opacity: 0.15;
|
|
23
|
+
animation: chevronPulse 2s ease-in-out infinite;
|
|
24
|
+
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
25
|
+
}
|
|
26
|
+
.c1 {
|
|
27
|
+
animation-delay: 0s;
|
|
28
|
+
}
|
|
29
|
+
.c2 {
|
|
30
|
+
animation-delay: 0.2s;
|
|
31
|
+
}
|
|
32
|
+
.c3 {
|
|
33
|
+
animation-delay: 0.4s;
|
|
34
|
+
}
|
|
35
|
+
@keyframes chevronPulse {
|
|
36
|
+
0%, 100% {
|
|
37
|
+
opacity: 0.12;
|
|
38
|
+
filter: drop-shadow(0 0 1px var(--loader-color));
|
|
39
|
+
}
|
|
40
|
+
40%, 60% {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -56,17 +56,18 @@ interface NotificationAdapter {
|
|
|
56
56
|
/**
|
|
57
57
|
* Provides a notification adapter to all descendant components.
|
|
58
58
|
*
|
|
59
|
-
* Pass a
|
|
60
|
-
*
|
|
59
|
+
* Pass a custom adapter for your notification library. ElevasisUIProvider
|
|
60
|
+
* wires the Mantine adapter automatically; template/test consumers can
|
|
61
|
+
* pass their own or omit for console output.
|
|
61
62
|
*
|
|
62
63
|
* When omitted, hooks fall back to the console adapter automatically.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```tsx
|
|
66
67
|
* import { NotificationProvider } from '@repo/ui/provider'
|
|
67
|
-
* import {
|
|
68
|
+
* import { myAdapter } from './my-adapter'
|
|
68
69
|
*
|
|
69
|
-
* <NotificationProvider adapter={
|
|
70
|
+
* <NotificationProvider adapter={myAdapter}>
|
|
70
71
|
* <App />
|
|
71
72
|
* </NotificationProvider>
|
|
72
73
|
* ```
|
|
@@ -86,6 +87,18 @@ declare function NotificationProvider({ adapter, children }: {
|
|
|
86
87
|
*/
|
|
87
88
|
declare function useNotificationAdapter(): NotificationAdapter;
|
|
88
89
|
|
|
90
|
+
interface AppearanceConfig {
|
|
91
|
+
/** Background layers rendered behind app content. Defaults to Elevasis background. */
|
|
92
|
+
background?: ReactNode;
|
|
93
|
+
/** Loader element rendered during loading states. Defaults to Elevasis chevron loader. */
|
|
94
|
+
loader?: ReactNode;
|
|
95
|
+
}
|
|
96
|
+
declare function AppearanceProvider({ value, children }: {
|
|
97
|
+
value: Required<AppearanceConfig>;
|
|
98
|
+
children: ReactNode;
|
|
99
|
+
}): react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare function useAppearance(): Required<AppearanceConfig>;
|
|
101
|
+
|
|
89
102
|
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
90
103
|
type WithSchemes<T> = T & {
|
|
91
104
|
light?: T;
|
|
@@ -201,10 +214,16 @@ interface ElevasisCoreProviderProps {
|
|
|
201
214
|
* When provided, wraps the subtree in a NotificationProvider with this adapter.
|
|
202
215
|
* When omitted, the console fallback adapter is used automatically.
|
|
203
216
|
*
|
|
204
|
-
* ElevasisUIProvider (Mantine variant) passes
|
|
217
|
+
* ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
|
|
205
218
|
* Headless/SDK consumers can pass a custom adapter or omit for console output.
|
|
206
219
|
*/
|
|
207
220
|
notifications?: NotificationAdapter;
|
|
221
|
+
/**
|
|
222
|
+
* Appearance configuration for background and loader.
|
|
223
|
+
* When omitted, defaults to the Elevasis background (PerspectiveGrid + RadiantGlow +
|
|
224
|
+
* FloatingOrbs + FilmGrain) and the Elevasis chevron loader.
|
|
225
|
+
*/
|
|
226
|
+
appearance?: AppearanceConfig;
|
|
208
227
|
/**
|
|
209
228
|
* Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
|
|
210
229
|
* Set to `false` when the consumer has its own complete design system and only
|
|
@@ -218,7 +237,7 @@ interface ElevasisCoreProviderProps {
|
|
|
218
237
|
* Provides a ready-to-use apiRequest function and organization state.
|
|
219
238
|
*
|
|
220
239
|
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
221
|
-
* For standard SDK usage,
|
|
240
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
222
241
|
*/
|
|
223
242
|
interface ElevasisServiceContextValue {
|
|
224
243
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
@@ -237,16 +256,13 @@ interface ElevasisServiceProviderProps {
|
|
|
237
256
|
*
|
|
238
257
|
* Pure auth + API provider with no style side-effects. Does not inject CSS
|
|
239
258
|
* variables, set `data-elevasis-scheme`, or load fonts. Consumers that need
|
|
240
|
-
* Elevasis theming should use `
|
|
259
|
+
* Elevasis theming should use `ElevasisUIProvider` (Mantine) instead.
|
|
241
260
|
*
|
|
242
261
|
* When `apiUrl` is provided, composes the full provider stack:
|
|
243
262
|
* QueryClientProvider -> AuthProvider -> ApiClientProvider ->
|
|
244
|
-
*
|
|
263
|
+
* ProfileProvider -> OrganizationProvider -> ElevasisServiceProvider ->
|
|
245
264
|
* NotificationProvider -> InitializationProvider
|
|
246
265
|
*
|
|
247
|
-
* The `notifications` prop wires a custom adapter (e.g. mantineNotificationAdapter)
|
|
248
|
-
* into the NotificationProvider. When omitted, the console fallback is used.
|
|
249
|
-
*
|
|
250
266
|
* @example Headless SDK consumer
|
|
251
267
|
* ```tsx
|
|
252
268
|
* <ElevasisCoreProvider
|
|
@@ -256,32 +272,21 @@ interface ElevasisServiceProviderProps {
|
|
|
256
272
|
* <Dashboard />
|
|
257
273
|
* </ElevasisCoreProvider>
|
|
258
274
|
* ```
|
|
259
|
-
*
|
|
260
|
-
* @example With custom notification adapter
|
|
261
|
-
* ```tsx
|
|
262
|
-
* <ElevasisCoreProvider
|
|
263
|
-
* auth={{ mode: 'authkit', clientId: '...', redirectUri: '/' }}
|
|
264
|
-
* apiUrl="https://api.elevasis.com"
|
|
265
|
-
* notifications={myNotificationAdapter}
|
|
266
|
-
* >
|
|
267
|
-
* <Dashboard />
|
|
268
|
-
* </ElevasisCoreProvider>
|
|
269
|
-
* ```
|
|
270
275
|
*/
|
|
271
|
-
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, appearance, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
272
277
|
|
|
273
278
|
/**
|
|
274
279
|
* Hook to access the ElevasisServiceProvider context.
|
|
275
280
|
* Provides apiRequest, organizationId, and isReady.
|
|
276
281
|
*
|
|
277
|
-
* Throws if used outside of an ElevasisServiceProvider or
|
|
282
|
+
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
278
283
|
*/
|
|
279
284
|
declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
280
285
|
/**
|
|
281
286
|
* Standalone service provider for testing, embedding, or advanced consumers.
|
|
282
287
|
*
|
|
283
288
|
* Accepts apiRequest, organizationId, and isReady directly as props.
|
|
284
|
-
*
|
|
289
|
+
* ElevasisUIProvider composes this internally when apiUrl is provided.
|
|
285
290
|
*
|
|
286
291
|
* @example Testing
|
|
287
292
|
* ```tsx
|
|
@@ -299,5 +304,5 @@ declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
|
299
304
|
*/
|
|
300
305
|
declare function ElevasisServiceProvider({ apiRequest, organizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
|
|
301
306
|
|
|
302
|
-
export { ElevasisCoreProvider, ElevasisServiceProvider, NotificationProvider, useElevasisServices, useNotificationAdapter };
|
|
303
|
-
export type { ApiKeyConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisTokenOverrides, NotificationAdapter, WithSchemes };
|
|
307
|
+
export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, NotificationProvider, useAppearance, useElevasisServices, useNotificationAdapter };
|
|
308
|
+
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisTokenOverrides, NotificationAdapter, WithSchemes };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-
|
|
2
|
-
|
|
1
|
+
export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-HLZMP7GN.js';
|
|
2
|
+
export { AppearanceProvider, useAppearance } from '../chunk-HRG3KPL6.js';
|
|
3
|
+
import '../chunk-SZHARWKU.js';
|
|
4
|
+
import '../chunk-HGNP6EVB.js';
|
|
3
5
|
import '../chunk-RULQSZYX.js';
|
|
4
6
|
import '../chunk-FCFLBMVI.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-
|
|
7
|
+
import '../chunk-3VTC7OWU.js';
|
|
8
|
+
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BK4EIWNU.js';
|
|
7
9
|
import '../chunk-DD3CCMCZ.js';
|
|
8
|
-
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';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3179,6 +3179,8 @@ interface APIExecutionDetail extends APIExecutionSummary$1 {
|
|
|
3179
3179
|
apiVersion?: string | null;
|
|
3180
3180
|
resourceVersion?: string | null;
|
|
3181
3181
|
sdkVersion?: string | null;
|
|
3182
|
+
isArchived?: boolean;
|
|
3183
|
+
archivedLogCount?: number;
|
|
3182
3184
|
}
|
|
3183
3185
|
interface APIExecutionListResponse {
|
|
3184
3186
|
executions: APIExecutionSummary$1[];
|