@elevasis/ui 2.34.0 → 2.35.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/api/index.js +3 -3
- package/dist/app/index.d.ts +12 -12
- package/dist/app/index.js +25 -23
- package/dist/charts/index.js +3 -5
- package/dist/chunk-26HFM4MH.js +41449 -0
- package/dist/{chunk-DTFKWZ7A.js → chunk-4U3XAWCN.js} +502 -484
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-RIAXZ6AH.js → chunk-VDOOGGBA.js} +1 -1
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/{chunk-3QXJK5IY.js → chunk-YYX7OPZQ.js} +1 -1
- package/dist/components/index.d.ts +69 -69
- package/dist/components/index.js +20 -2795
- package/dist/components/navigation/index.js +25 -5
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -26
- package/dist/features/crm/index.js +20 -30
- package/dist/features/dashboard/index.d.ts +68 -68
- package/dist/features/dashboard/index.js +20 -28
- package/dist/features/delivery/index.js +20 -30
- package/dist/features/knowledge/index.js +25 -9
- package/dist/features/lead-gen/index.d.ts +9 -9
- package/dist/features/lead-gen/index.js +20 -31
- package/dist/features/monitoring/index.js +20 -30
- package/dist/features/monitoring/requests/index.js +20 -25
- package/dist/features/operations/index.d.ts +153 -153
- package/dist/features/operations/index.js +18 -37
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.js +20 -27
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +85 -85
- package/dist/hooks/index.js +20 -21
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +35 -35
- package/dist/hooks/published.d.ts +85 -85
- package/dist/hooks/published.js +20 -20
- package/dist/index.css +532 -532
- package/dist/index.d.ts +9256 -5803
- package/dist/index.js +22 -26
- package/dist/knowledge/index.d.ts +21 -21
- package/dist/knowledge/index.js +8 -15
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -1
- package/dist/provider/index.d.ts +47 -21
- package/dist/provider/index.js +20 -15
- package/dist/provider/published.d.ts +15 -16
- package/dist/provider/published.js +20 -11
- package/dist/test-utils/index.js +3 -3
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +68 -68
- package/dist/utils/index.d.ts +46 -46
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +6 -6
- package/dist/zustand/index.js +0 -3
- package/package.json +5 -5
- package/dist/chunk-3AJVNMY5.js +0 -4769
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-4O4MII5S.js +0 -4716
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-BPQVTIUP.js +0 -105
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-HRWLKKWM.js +0 -758
- package/dist/chunk-IGDYWFNE.js +0 -5198
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IVGI4GDL.js +0 -1593
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-LAWLB6CT.js +0 -951
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-LRWTWOGP.js +0 -1778
- package/dist/chunk-MP3GPBPX.js +0 -1874
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-NLBQTDOW.js +0 -12051
- package/dist/chunk-O6JXQ6UQ.js +0 -468
- package/dist/chunk-OBBQ2JCM.js +0 -68
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-PLP3NYPL.js +0 -356
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SDXSB3HN.js +0 -425
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-VTXTZXAU.js +0 -539
- package/dist/chunk-W73ZABT6.js +0 -85
- package/dist/chunk-WU4FNWCW.js +0 -2281
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-YNWZIWJL.js +0 -1863
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -4299,6 +4299,74 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4299
4299
|
}, z.core.$strip>>;
|
|
4300
4300
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
4301
4301
|
|
|
4302
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
4303
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
4304
|
+
[key: string]: JsonValue;
|
|
4305
|
+
};
|
|
4306
|
+
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
4307
|
+
interface SystemEntry {
|
|
4308
|
+
id: string;
|
|
4309
|
+
label?: string;
|
|
4310
|
+
title?: string;
|
|
4311
|
+
description?: string;
|
|
4312
|
+
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
4313
|
+
parentSystemId?: string;
|
|
4314
|
+
ui?: {
|
|
4315
|
+
path: string;
|
|
4316
|
+
surfaces: string[];
|
|
4317
|
+
icon?: string;
|
|
4318
|
+
order?: number;
|
|
4319
|
+
};
|
|
4320
|
+
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
4321
|
+
responsibleRoleId?: string;
|
|
4322
|
+
governedByKnowledge?: string[];
|
|
4323
|
+
actions?: {
|
|
4324
|
+
actionId: string;
|
|
4325
|
+
intent: 'exposes' | 'consumes';
|
|
4326
|
+
invocation?: unknown;
|
|
4327
|
+
}[];
|
|
4328
|
+
policies?: string[];
|
|
4329
|
+
drivesGoals?: string[];
|
|
4330
|
+
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
4331
|
+
status?: 'active' | 'deprecated' | 'archived';
|
|
4332
|
+
path?: string;
|
|
4333
|
+
icon?: string;
|
|
4334
|
+
color?: string;
|
|
4335
|
+
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
4336
|
+
enabled?: boolean;
|
|
4337
|
+
devOnly?: boolean;
|
|
4338
|
+
requiresAdmin?: boolean;
|
|
4339
|
+
order: number;
|
|
4340
|
+
config?: Record<string, JsonValue>;
|
|
4341
|
+
ontology?: OntologyScope;
|
|
4342
|
+
systems?: Record<string, SystemEntry>;
|
|
4343
|
+
subsystems?: Record<string, SystemEntry>;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
declare const LinkSchema: z.ZodObject<{
|
|
4347
|
+
nodeId: z.ZodString;
|
|
4348
|
+
kind: z.ZodEnum<{
|
|
4349
|
+
links: "links";
|
|
4350
|
+
affects: "affects";
|
|
4351
|
+
effects: "effects";
|
|
4352
|
+
actions: "actions";
|
|
4353
|
+
reads: "reads";
|
|
4354
|
+
writes: "writes";
|
|
4355
|
+
emits: "emits";
|
|
4356
|
+
triggers: "triggers";
|
|
4357
|
+
uses: "uses";
|
|
4358
|
+
approval: "approval";
|
|
4359
|
+
contains: "contains";
|
|
4360
|
+
references: "references";
|
|
4361
|
+
maps_to: "maps_to";
|
|
4362
|
+
governs: "governs";
|
|
4363
|
+
originates_from: "originates_from";
|
|
4364
|
+
applies_to: "applies_to";
|
|
4365
|
+
uses_catalog: "uses_catalog";
|
|
4366
|
+
}>;
|
|
4367
|
+
}, z.core.$strip>;
|
|
4368
|
+
type Link = z.infer<typeof LinkSchema>;
|
|
4369
|
+
|
|
4302
4370
|
type MessageType = MessageEvent['type'];
|
|
4303
4371
|
/**
|
|
4304
4372
|
* Session Data Transfer Object (DTO)
|
|
@@ -4889,50 +4957,6 @@ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefini
|
|
|
4889
4957
|
*/
|
|
4890
4958
|
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
4891
4959
|
|
|
4892
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
4893
|
-
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
4894
|
-
[key: string]: JsonValue;
|
|
4895
|
-
};
|
|
4896
|
-
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
4897
|
-
interface SystemEntry {
|
|
4898
|
-
id: string;
|
|
4899
|
-
label?: string;
|
|
4900
|
-
title?: string;
|
|
4901
|
-
description?: string;
|
|
4902
|
-
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
4903
|
-
parentSystemId?: string;
|
|
4904
|
-
ui?: {
|
|
4905
|
-
path: string;
|
|
4906
|
-
surfaces: string[];
|
|
4907
|
-
icon?: string;
|
|
4908
|
-
order?: number;
|
|
4909
|
-
};
|
|
4910
|
-
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
4911
|
-
responsibleRoleId?: string;
|
|
4912
|
-
governedByKnowledge?: string[];
|
|
4913
|
-
actions?: {
|
|
4914
|
-
actionId: string;
|
|
4915
|
-
intent: 'exposes' | 'consumes';
|
|
4916
|
-
invocation?: unknown;
|
|
4917
|
-
}[];
|
|
4918
|
-
policies?: string[];
|
|
4919
|
-
drivesGoals?: string[];
|
|
4920
|
-
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
4921
|
-
status?: 'active' | 'deprecated' | 'archived';
|
|
4922
|
-
path?: string;
|
|
4923
|
-
icon?: string;
|
|
4924
|
-
color?: string;
|
|
4925
|
-
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
4926
|
-
enabled?: boolean;
|
|
4927
|
-
devOnly?: boolean;
|
|
4928
|
-
requiresAdmin?: boolean;
|
|
4929
|
-
order: number;
|
|
4930
|
-
config?: Record<string, JsonValue>;
|
|
4931
|
-
ontology?: OntologyScope;
|
|
4932
|
-
systems?: Record<string, SystemEntry>;
|
|
4933
|
-
subsystems?: Record<string, SystemEntry>;
|
|
4934
|
-
}
|
|
4935
|
-
|
|
4936
4960
|
/**
|
|
4937
4961
|
* Resource Registry type definitions
|
|
4938
4962
|
*/
|
|
@@ -5270,30 +5294,6 @@ interface CommandViewData {
|
|
|
5270
5294
|
edges: CommandViewEdge[];
|
|
5271
5295
|
}
|
|
5272
5296
|
|
|
5273
|
-
declare const LinkSchema: z.ZodObject<{
|
|
5274
|
-
nodeId: z.ZodString;
|
|
5275
|
-
kind: z.ZodEnum<{
|
|
5276
|
-
links: "links";
|
|
5277
|
-
affects: "affects";
|
|
5278
|
-
effects: "effects";
|
|
5279
|
-
actions: "actions";
|
|
5280
|
-
reads: "reads";
|
|
5281
|
-
writes: "writes";
|
|
5282
|
-
emits: "emits";
|
|
5283
|
-
triggers: "triggers";
|
|
5284
|
-
uses: "uses";
|
|
5285
|
-
approval: "approval";
|
|
5286
|
-
contains: "contains";
|
|
5287
|
-
references: "references";
|
|
5288
|
-
maps_to: "maps_to";
|
|
5289
|
-
governs: "governs";
|
|
5290
|
-
originates_from: "originates_from";
|
|
5291
|
-
applies_to: "applies_to";
|
|
5292
|
-
uses_catalog: "uses_catalog";
|
|
5293
|
-
}>;
|
|
5294
|
-
}, z.core.$strip>;
|
|
5295
|
-
type Link = z.infer<typeof LinkSchema>;
|
|
5296
|
-
|
|
5297
5297
|
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
5298
5298
|
diagnostic: "diagnostic";
|
|
5299
5299
|
production: "production";
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -180,28 +180,6 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
180
180
|
}, z.core.$strip>>;
|
|
181
181
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Time range selector for dashboard metrics
|
|
185
|
-
*/
|
|
186
|
-
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
187
|
-
/**
|
|
188
|
-
* ISO 8601 date range for API queries
|
|
189
|
-
*/
|
|
190
|
-
interface TimeRangeDates {
|
|
191
|
-
startDate: string;
|
|
192
|
-
endDate: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Base Execution Engine type definitions
|
|
197
|
-
* Core types shared across all Execution Engine resources
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
declare const ResourceStatusColors: {
|
|
201
|
-
readonly dev: "var(--color-primary)";
|
|
202
|
-
readonly prod: "var(--color-success)";
|
|
203
|
-
};
|
|
204
|
-
|
|
205
183
|
type JsonPrimitive = string | number | boolean | null;
|
|
206
184
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
207
185
|
[key: string]: JsonValue;
|
|
@@ -246,6 +224,52 @@ interface SystemEntry {
|
|
|
246
224
|
subsystems?: Record<string, SystemEntry>;
|
|
247
225
|
}
|
|
248
226
|
|
|
227
|
+
declare const LinkSchema: z.ZodObject<{
|
|
228
|
+
nodeId: z.ZodString;
|
|
229
|
+
kind: z.ZodEnum<{
|
|
230
|
+
links: "links";
|
|
231
|
+
affects: "affects";
|
|
232
|
+
effects: "effects";
|
|
233
|
+
actions: "actions";
|
|
234
|
+
reads: "reads";
|
|
235
|
+
writes: "writes";
|
|
236
|
+
emits: "emits";
|
|
237
|
+
triggers: "triggers";
|
|
238
|
+
uses: "uses";
|
|
239
|
+
approval: "approval";
|
|
240
|
+
contains: "contains";
|
|
241
|
+
references: "references";
|
|
242
|
+
maps_to: "maps_to";
|
|
243
|
+
governs: "governs";
|
|
244
|
+
originates_from: "originates_from";
|
|
245
|
+
applies_to: "applies_to";
|
|
246
|
+
uses_catalog: "uses_catalog";
|
|
247
|
+
}>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
type Link = z.infer<typeof LinkSchema>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Time range selector for dashboard metrics
|
|
253
|
+
*/
|
|
254
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
255
|
+
/**
|
|
256
|
+
* ISO 8601 date range for API queries
|
|
257
|
+
*/
|
|
258
|
+
interface TimeRangeDates {
|
|
259
|
+
startDate: string;
|
|
260
|
+
endDate: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Base Execution Engine type definitions
|
|
265
|
+
* Core types shared across all Execution Engine resources
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
declare const ResourceStatusColors: {
|
|
269
|
+
readonly dev: "var(--color-primary)";
|
|
270
|
+
readonly prod: "var(--color-success)";
|
|
271
|
+
};
|
|
272
|
+
|
|
249
273
|
/**
|
|
250
274
|
* Resource Registry type definitions
|
|
251
275
|
*/
|
|
@@ -295,30 +319,6 @@ interface ResourceDefinition {
|
|
|
295
319
|
archived?: boolean;
|
|
296
320
|
}
|
|
297
321
|
|
|
298
|
-
declare const LinkSchema: z.ZodObject<{
|
|
299
|
-
nodeId: z.ZodString;
|
|
300
|
-
kind: z.ZodEnum<{
|
|
301
|
-
links: "links";
|
|
302
|
-
affects: "affects";
|
|
303
|
-
effects: "effects";
|
|
304
|
-
actions: "actions";
|
|
305
|
-
reads: "reads";
|
|
306
|
-
writes: "writes";
|
|
307
|
-
emits: "emits";
|
|
308
|
-
triggers: "triggers";
|
|
309
|
-
uses: "uses";
|
|
310
|
-
approval: "approval";
|
|
311
|
-
contains: "contains";
|
|
312
|
-
references: "references";
|
|
313
|
-
maps_to: "maps_to";
|
|
314
|
-
governs: "governs";
|
|
315
|
-
originates_from: "originates_from";
|
|
316
|
-
applies_to: "applies_to";
|
|
317
|
-
uses_catalog: "uses_catalog";
|
|
318
|
-
}>;
|
|
319
|
-
}, z.core.$strip>;
|
|
320
|
-
type Link = z.infer<typeof LinkSchema>;
|
|
321
|
-
|
|
322
322
|
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
323
323
|
diagnostic: "diagnostic";
|
|
324
324
|
production: "production";
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +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, 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, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, 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-GEFWMU26.js';
|
|
2
2
|
export { ResourceStatusColors } from '../chunk-KRWALB24.js';
|
|
3
3
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/zustand/index.d.ts
CHANGED
|
@@ -15,12 +15,12 @@ interface SSESliceState {
|
|
|
15
15
|
setCommandQueueConnected: (connected: boolean) => void;
|
|
16
16
|
setCommandQueueError: (error: string | null) => void;
|
|
17
17
|
}
|
|
18
|
-
type ImmerSet$2 = (updater: (state: Draft<
|
|
18
|
+
type ImmerSet$2<TState> = (updater: (state: Draft<TState>) => void, shouldReplace?: false, action?: never) => void;
|
|
19
19
|
/** Resets the SSE slice fields in an Immer draft. Call inside your app's resetStore action. */
|
|
20
20
|
declare function resetSSEState(state: Draft<{
|
|
21
21
|
sse: SSESliceState['sse'];
|
|
22
22
|
}>): void;
|
|
23
|
-
declare function createSSESlice(set: ImmerSet$2): SSESliceState;
|
|
23
|
+
declare function createSSESlice<TState extends SSESliceState>(set: ImmerSet$2<TState>): SSESliceState;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Open string type — preset validation stays in the app layer.
|
|
@@ -44,12 +44,12 @@ interface ThemeSliceOptions {
|
|
|
44
44
|
/** Default color scheme when no localStorage entry exists. Defaults to 'dark'. */
|
|
45
45
|
defaultColorScheme?: ThemeColorScheme;
|
|
46
46
|
}
|
|
47
|
-
type ImmerSet$1 = (updater: (state: Draft<
|
|
47
|
+
type ImmerSet$1<TState> = (updater: (state: Draft<TState>) => void, shouldReplace?: false, action?: never) => void;
|
|
48
48
|
/** Resets the theme slice fields in an Immer draft. Call inside your app's resetStore action. */
|
|
49
49
|
declare function resetThemeState(state: Draft<{
|
|
50
50
|
theme: ThemeSliceState['theme'];
|
|
51
51
|
}>, options?: ThemeSliceOptions): void;
|
|
52
|
-
declare function createThemeSlice(set: ImmerSet$1
|
|
52
|
+
declare function createThemeSlice<TState extends ThemeSliceState>(set: ImmerSet$1<TState>, options?: ThemeSliceOptions): ThemeSliceState;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Time range selector for dashboard metrics
|
|
@@ -62,12 +62,12 @@ interface TimeRangeSliceState {
|
|
|
62
62
|
};
|
|
63
63
|
setTimeRange: (value: TimeRange) => void;
|
|
64
64
|
}
|
|
65
|
-
type ImmerSet = (updater: (state: Draft<
|
|
65
|
+
type ImmerSet<TState> = (updater: (state: Draft<TState>) => void, shouldReplace?: false, action?: never) => void;
|
|
66
66
|
/** Resets the timeRange slice fields in an Immer draft. Call inside your app's resetStore action. */
|
|
67
67
|
declare function resetTimeRangeState(state: Draft<{
|
|
68
68
|
timeRange: TimeRangeSliceState['timeRange'];
|
|
69
69
|
}>): void;
|
|
70
|
-
declare function createTimeRangeSlice(set: ImmerSet): TimeRangeSliceState;
|
|
70
|
+
declare function createTimeRangeSlice<TState extends TimeRangeSliceState>(set: ImmerSet<TState>): TimeRangeSliceState;
|
|
71
71
|
|
|
72
72
|
interface ElevasisAppState extends SSESliceState, ThemeSliceState, TimeRangeSliceState {
|
|
73
73
|
resetStore: () => void;
|
package/dist/zustand/index.js
CHANGED
|
@@ -104,11 +104,8 @@ function createElevasisAppStore(options = {}) {
|
|
|
104
104
|
return create()(
|
|
105
105
|
devtools(
|
|
106
106
|
immer((set) => ({
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
108
107
|
...createSSESlice(set),
|
|
109
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
110
108
|
...createThemeSlice(set, { defaultPreset, defaultColorScheme }),
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
109
|
...createTimeRangeSlice(set),
|
|
113
110
|
resetStore: () => set(
|
|
114
111
|
(state) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.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",
|
|
@@ -253,11 +253,11 @@
|
|
|
253
253
|
"typescript": "5.9.2",
|
|
254
254
|
"vite": "^7.0.0",
|
|
255
255
|
"vitest": "^3.2.4",
|
|
256
|
-
"@elevasis/sdk": "1.
|
|
256
|
+
"@elevasis/sdk": "1.24.0",
|
|
257
|
+
"@repo/typescript-config": "0.0.0",
|
|
258
|
+
"@repo/core": "0.27.0",
|
|
257
259
|
"@repo/elevasis-core": "1.0.0",
|
|
258
|
-
"@repo/eslint-config": "0.0.0"
|
|
259
|
-
"@repo/core": "0.26.0",
|
|
260
|
-
"@repo/typescript-config": "0.0.0"
|
|
260
|
+
"@repo/eslint-config": "0.0.0"
|
|
261
261
|
},
|
|
262
262
|
"dependencies": {
|
|
263
263
|
"@dagrejs/dagre": "^1.1.4",
|