@elevasis/ui 2.18.0 → 2.20.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-I32JCNE7.js → CoreAuthKitInner-QC62UHTZ.js} +1 -0
- package/dist/api/index.js +3 -2
- package/dist/app/index.js +6 -5
- package/dist/auth/context.js +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/charts/index.js +4 -3
- package/dist/{chunk-LT33DSMO.js → chunk-2CFOFSSG.js} +4 -4
- package/dist/chunk-3JCMO7SD.js +14 -0
- package/dist/chunk-7XKCG5CT.js +125 -0
- package/dist/{chunk-SQPM2QDH.js → chunk-BHR7IV72.js} +3 -2
- package/dist/{chunk-DDZMBNTY.js → chunk-CTTY6FUT.js} +2 -2
- package/dist/chunk-DRQPEMJI.js +42 -0
- package/dist/{chunk-EY322HXF.js → chunk-FMFX4K6E.js} +19 -6
- package/dist/{chunk-UA36WILN.js → chunk-GP3AFJYG.js} +145 -211
- package/dist/{chunk-P6TC4K7I.js → chunk-GTYUP7MB.js} +4 -4
- package/dist/chunk-HJ4CJIWN.js +38 -0
- package/dist/chunk-I2KLQ2HA.js +19 -0
- package/dist/{chunk-B6FIIEFO.js → chunk-JR5WNTLA.js} +128 -117
- package/dist/{chunk-A2AZY5SF.js → chunk-LR5CRY5A.js} +1 -1
- package/dist/{chunk-GRGRBWIO.js → chunk-M7W7CGPL.js} +1 -1
- package/dist/{chunk-SS2UVUSG.js → chunk-MZFJWCPH.js} +73 -121
- package/dist/{chunk-P3TFNFZS.js → chunk-OUYH2SBS.js} +3 -3
- package/dist/{chunk-66VY5EMV.js → chunk-PJVG3ISO.js} +5 -5
- package/dist/{chunk-I3LQGLUC.js → chunk-Q4QJOSVS.js} +1 -1
- package/dist/{chunk-R73EHHPN.js → chunk-Q5HC6ENG.js} +18 -2
- package/dist/{chunk-VDM6DQES.js → chunk-R7OJCNL3.js} +1 -1
- package/dist/{chunk-6RWMRQN5.js → chunk-TIIPYB2Z.js} +1 -1
- package/dist/{chunk-34NQLV2W.js → chunk-TO7QXDBX.js} +3 -3
- package/dist/{chunk-WP3IYOVJ.js → chunk-YP6T426C.js} +107 -56
- package/dist/{chunk-FM6LSZ45.js → chunk-ZE2KQSHL.js} +4 -4
- package/dist/components/chat/index.js +1 -0
- package/dist/components/index.d.ts +218 -2808
- package/dist/components/index.js +26 -25
- package/dist/components/navigation/index.js +1 -0
- package/dist/execution/index.js +1 -0
- package/dist/features/auth/index.js +1 -0
- package/dist/features/crm/index.d.ts +54 -53
- package/dist/features/crm/index.js +12 -11
- package/dist/features/dashboard/index.js +13 -12
- package/dist/features/delivery/index.d.ts +2642 -2605
- package/dist/features/delivery/index.js +12 -11
- package/dist/features/lead-gen/index.js +12 -22
- package/dist/features/monitoring/index.js +14 -13
- package/dist/features/monitoring/requests/index.d.ts +38 -27
- package/dist/features/monitoring/requests/index.js +213 -106
- package/dist/features/operations/index.d.ts +8 -26
- package/dist/features/operations/index.js +16 -15
- package/dist/features/seo/index.js +1 -0
- package/dist/features/settings/index.d.ts +36 -37
- package/dist/features/settings/index.js +13 -12
- package/dist/graph/index.js +1 -0
- package/dist/hooks/delivery/index.d.ts +2712 -2699
- package/dist/hooks/delivery/index.js +3 -2
- package/dist/hooks/index.d.ts +1674 -4617
- package/dist/hooks/index.js +11 -10
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -0
- package/dist/hooks/published.d.ts +1674 -4617
- package/dist/hooks/published.js +11 -10
- package/dist/index.d.ts +773 -3635
- package/dist/index.js +12 -11
- package/dist/initialization/index.js +1 -0
- package/dist/layout/index.d.ts +14 -2
- package/dist/layout/index.js +2 -1
- package/dist/organization/index.js +1 -0
- package/dist/profile/index.js +1 -0
- package/dist/provider/ElevasisServiceContext.js +1 -0
- package/dist/provider/index.d.ts +320 -249
- package/dist/provider/index.js +9 -8
- package/dist/provider/published.d.ts +320 -249
- package/dist/provider/published.js +6 -5
- package/dist/router/context.js +1 -0
- package/dist/router/index.js +1 -0
- package/dist/sse/index.d.ts +1 -6
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.js +1 -0
- package/dist/test-utils/index.d.ts +117 -0
- package/dist/test-utils/index.js +136 -0
- package/dist/test-utils/setup-integration.d.ts +2 -0
- package/dist/test-utils/setup-integration.js +26 -0
- package/dist/test-utils/setup.d.ts +2 -0
- package/dist/test-utils/setup.js +47 -0
- package/dist/theme/index.js +3 -2
- package/dist/typeform/index.js +1 -0
- package/dist/typeform/schemas.js +1 -0
- package/dist/types/index.d.ts +1604 -2489
- package/dist/utils/index.d.ts +32 -1
- package/dist/utils/index.js +2 -1
- package/dist/zustand/index.d.ts +4 -8
- package/dist/zustand/index.js +2 -0
- package/package.json +33 -5
- package/src/test-utils/README.md +5 -0
- package/dist/chunk-ADSSLKKP.js +0 -10
- /package/dist/{chunk-GCBWGGI6.js → chunk-OD7GWIZS.js} +0 -0
package/dist/utils/index.d.ts
CHANGED
|
@@ -139,6 +139,33 @@ interface ResourceDefinition {
|
|
|
139
139
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
140
140
|
archived?: boolean;
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Domain definition for Command View filtering
|
|
144
|
+
*
|
|
145
|
+
* Domains are organizational metadata for UI filtering/grouping.
|
|
146
|
+
* No execution impact - purely for visualization.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* {
|
|
150
|
+
* id: 'support',
|
|
151
|
+
* name: 'Customer Support',
|
|
152
|
+
* description: 'Ticket triage, knowledge base, escalations',
|
|
153
|
+
* color: 'green',
|
|
154
|
+
* icon: 'IconHeadset'
|
|
155
|
+
* }
|
|
156
|
+
*/
|
|
157
|
+
interface DomainDefinition {
|
|
158
|
+
/** Unique identifier (e.g., 'support') */
|
|
159
|
+
id: string;
|
|
160
|
+
/** Display name (e.g., 'Customer Support') */
|
|
161
|
+
name: string;
|
|
162
|
+
/** Purpose description */
|
|
163
|
+
description: string;
|
|
164
|
+
/** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
|
|
165
|
+
color?: string;
|
|
166
|
+
/** Optional Tabler icon name (e.g., 'IconHeadset') */
|
|
167
|
+
icon?: string;
|
|
168
|
+
}
|
|
142
169
|
|
|
143
170
|
/**
|
|
144
171
|
* Standard Domain Definitions
|
|
@@ -166,6 +193,10 @@ declare const DOMAINS: {
|
|
|
166
193
|
* Use this type for all domain references to ensure compile-time validation.
|
|
167
194
|
*/
|
|
168
195
|
type ResourceDomain = (typeof DOMAINS)[keyof typeof DOMAINS];
|
|
196
|
+
/**
|
|
197
|
+
* Domain lookup map for O(1) access during serialization
|
|
198
|
+
*/
|
|
199
|
+
declare const DOMAIN_MAP: Record<ResourceDomain, DomainDefinition>;
|
|
169
200
|
|
|
170
201
|
/**
|
|
171
202
|
* Resource Type Metadata
|
|
@@ -344,5 +375,5 @@ declare function restoreConsole(): void;
|
|
|
344
375
|
|
|
345
376
|
declare function setupBrowserMocks(): void;
|
|
346
377
|
|
|
347
|
-
export { APIClientError, API_URL, 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, ResourceStatusColors, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail };
|
|
378
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DOMAIN_MAP, 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, ResourceStatusColors, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail };
|
|
348
379
|
export type { TablerIcon };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { APIClientError, API_URL, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-
|
|
1
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DOMAIN_MAP, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-OD7GWIZS.js';
|
|
2
2
|
export { ResourceStatusColors } from '../chunk-KRWALB24.js';
|
|
3
|
+
import '../chunk-I2KLQ2HA.js';
|
package/dist/zustand/index.d.ts
CHANGED
|
@@ -50,14 +50,10 @@ declare function resetThemeState(state: Draft<{
|
|
|
50
50
|
}>, options?: ThemeSliceOptions): void;
|
|
51
51
|
declare function createThemeSlice(set: ImmerSet$1, options?: ThemeSliceOptions): ThemeSliceState;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Time range selector for dashboard metrics
|
|
59
|
-
*/
|
|
60
|
-
type TimeRange = '1h' | '24h' | '7d' | '30d'
|
|
53
|
+
/**
|
|
54
|
+
* Time range selector for dashboard metrics
|
|
55
|
+
*/
|
|
56
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
61
57
|
|
|
62
58
|
interface TimeRangeSliceState {
|
|
63
59
|
timeRange: {
|
package/dist/zustand/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -162,6 +162,18 @@
|
|
|
162
162
|
"./hooks/operations/command-view/utils/transformCommandViewData": {
|
|
163
163
|
"types": "./dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts",
|
|
164
164
|
"import": "./dist/hooks/operations/command-view/utils/transformCommandViewData.js"
|
|
165
|
+
},
|
|
166
|
+
"./test-utils": {
|
|
167
|
+
"types": "./dist/test-utils/index.d.ts",
|
|
168
|
+
"import": "./dist/test-utils/index.js"
|
|
169
|
+
},
|
|
170
|
+
"./test-utils/setup": {
|
|
171
|
+
"types": "./dist/test-utils/setup.d.ts",
|
|
172
|
+
"import": "./dist/test-utils/setup.js"
|
|
173
|
+
},
|
|
174
|
+
"./test-utils/setup-integration": {
|
|
175
|
+
"types": "./dist/test-utils/setup-integration.d.ts",
|
|
176
|
+
"import": "./dist/test-utils/setup-integration.js"
|
|
165
177
|
}
|
|
166
178
|
},
|
|
167
179
|
"peerDependencies": {
|
|
@@ -185,7 +197,10 @@
|
|
|
185
197
|
"@tabler/icons-react": "^3.27.0",
|
|
186
198
|
"@xyflow/react": "^12.8.5",
|
|
187
199
|
"recharts": "^3.2.1",
|
|
188
|
-
"date-fns": "^4.1.0"
|
|
200
|
+
"date-fns": "^4.1.0",
|
|
201
|
+
"@testing-library/react": "^16.3.0",
|
|
202
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
203
|
+
"msw": "^2.11.0"
|
|
189
204
|
},
|
|
190
205
|
"devDependencies": {
|
|
191
206
|
"@mantine/charts": "8.2.7",
|
|
@@ -206,9 +221,13 @@
|
|
|
206
221
|
"tsup": "^8.0.0",
|
|
207
222
|
"typescript": "5.9.2",
|
|
208
223
|
"vite": "^7.0.0",
|
|
209
|
-
"@
|
|
210
|
-
"@
|
|
211
|
-
"
|
|
224
|
+
"@testing-library/react": "^16.3.0",
|
|
225
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
226
|
+
"msw": "^2.11.0",
|
|
227
|
+
"vitest": "^3.2.4",
|
|
228
|
+
"@repo/core": "0.10.0",
|
|
229
|
+
"@repo/typescript-config": "0.0.0",
|
|
230
|
+
"@repo/eslint-config": "0.0.0"
|
|
212
231
|
},
|
|
213
232
|
"dependencies": {
|
|
214
233
|
"@dagrejs/dagre": "^1.1.4",
|
|
@@ -260,6 +279,15 @@
|
|
|
260
279
|
},
|
|
261
280
|
"@tiptap/starter-kit": {
|
|
262
281
|
"optional": true
|
|
282
|
+
},
|
|
283
|
+
"@testing-library/react": {
|
|
284
|
+
"optional": true
|
|
285
|
+
},
|
|
286
|
+
"@testing-library/jest-dom": {
|
|
287
|
+
"optional": true
|
|
288
|
+
},
|
|
289
|
+
"msw": {
|
|
290
|
+
"optional": true
|
|
263
291
|
}
|
|
264
292
|
},
|
|
265
293
|
"scripts": {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# UI Test Utilities
|
|
2
|
+
|
|
3
|
+
Published test helpers for consumers that test Elevasis UI composition.
|
|
4
|
+
|
|
5
|
+
Use `@elevasis/ui/test-utils` for provider-aware React rendering, WorkOS auth mocks, MSW handlers, and test query clients. Use `@elevasis/ui/test-utils/setup` or `@elevasis/ui/test-utils/setup-integration` from Vitest `setupFiles` when a consumer wants the shared browser and auth mocks.
|
package/dist/chunk-ADSSLKKP.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useAppearance } from './chunk-QJ2KCHKX.js';
|
|
2
|
-
import { Center } from '@mantine/core';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function SubshellLoader() {
|
|
6
|
-
const { loader } = useAppearance();
|
|
7
|
-
return /* @__PURE__ */ jsx(Center, { mih: "calc(100vh - 70px)", children: loader });
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { SubshellLoader };
|
|
File without changes
|