@elevasis/ui 2.33.2 → 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.
Files changed (116) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1255 -8
  5. package/dist/app/index.js +151 -13
  6. package/dist/charts/index.js +3 -6
  7. package/dist/chunk-26HFM4MH.js +41449 -0
  8. package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
  9. package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
  10. package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
  11. package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
  12. package/dist/chunk-AUDNF2Q7.js +2050 -0
  13. package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
  14. package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
  15. package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
  16. package/dist/chunk-SIQ3P4OR.js +1764 -0
  17. package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
  18. package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
  19. package/dist/chunk-YYX7OPZQ.js +25 -0
  20. package/dist/components/index.d.ts +69 -92
  21. package/dist/components/index.js +20 -3216
  22. package/dist/components/navigation/index.js +25 -7
  23. package/dist/execution/index.d.ts +9 -9
  24. package/dist/execution/index.js +1 -2
  25. package/dist/features/auth/index.js +23 -2
  26. package/dist/features/clients/index.js +20 -31
  27. package/dist/features/crm/index.js +20 -35
  28. package/dist/features/dashboard/index.d.ts +68 -91
  29. package/dist/features/dashboard/index.js +20 -33
  30. package/dist/features/delivery/index.js +20 -35
  31. package/dist/features/knowledge/index.js +25 -11
  32. package/dist/features/lead-gen/index.d.ts +9 -9
  33. package/dist/features/lead-gen/index.js +20 -36
  34. package/dist/features/monitoring/index.js +20 -35
  35. package/dist/features/monitoring/requests/index.js +20 -30
  36. package/dist/features/operations/index.d.ts +197 -188
  37. package/dist/features/operations/index.js +18 -42
  38. package/dist/features/seo/index.js +3 -4
  39. package/dist/features/settings/index.js +20 -32
  40. package/dist/graph/index.js +1 -1
  41. package/dist/hooks/delivery/index.js +30 -2
  42. package/dist/hooks/index.d.ts +105 -112
  43. package/dist/hooks/index.js +20 -26
  44. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
  45. package/dist/hooks/published.d.ts +105 -112
  46. package/dist/hooks/published.js +20 -25
  47. package/dist/index.css +532 -532
  48. package/dist/index.d.ts +10261 -6793
  49. package/dist/index.js +22 -31
  50. package/dist/knowledge/index.d.ts +51 -59
  51. package/dist/knowledge/index.js +40 -211
  52. package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
  53. package/dist/layout/index.js +4 -10
  54. package/dist/organization/index.js +27 -2
  55. package/dist/provider/index.d.ts +71 -52
  56. package/dist/provider/index.js +20 -20
  57. package/dist/provider/published.d.ts +39 -47
  58. package/dist/provider/published.js +20 -15
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +16 -4
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/theme/index.js +2 -3
  63. package/dist/theme/presets/index.d.ts +28 -3
  64. package/dist/theme/presets/index.js +1 -1
  65. package/dist/typeform/index.js +1 -2049
  66. package/dist/types/index.d.ts +88 -95
  67. package/dist/utils/index.d.ts +46 -69
  68. package/dist/utils/index.js +1 -1
  69. package/dist/zustand/index.d.ts +21 -8
  70. package/dist/zustand/index.js +32 -1
  71. package/package.json +5 -5
  72. package/dist/chunk-2ZZ72TAB.js +0 -2281
  73. package/dist/chunk-32I2RCGC.js +0 -85
  74. package/dist/chunk-3MEXPLWT.js +0 -265
  75. package/dist/chunk-3ZMAGTWF.js +0 -18
  76. package/dist/chunk-44I4LOH6.js +0 -1593
  77. package/dist/chunk-4DYOXEH6.js +0 -951
  78. package/dist/chunk-7M2VOCYN.js +0 -1
  79. package/dist/chunk-A4VDJJCV.js +0 -1864
  80. package/dist/chunk-BZZCNLT6.js +0 -12
  81. package/dist/chunk-CLDCYJQT.js +0 -1
  82. package/dist/chunk-E565XMTQ.js +0 -17
  83. package/dist/chunk-EPTHX4VZ.js +0 -749
  84. package/dist/chunk-GWGQI6V4.js +0 -447
  85. package/dist/chunk-HUJCU55S.js +0 -159
  86. package/dist/chunk-IBWMR4TI.js +0 -469
  87. package/dist/chunk-IIMU5YAJ.js +0 -53
  88. package/dist/chunk-IOXOPMYS.js +0 -145
  89. package/dist/chunk-J2UD7BOH.js +0 -347
  90. package/dist/chunk-JA5ECJJB.js +0 -387
  91. package/dist/chunk-JFL3GRD4.js +0 -39
  92. package/dist/chunk-KW7ZNQD7.js +0 -126
  93. package/dist/chunk-LGKLC5MG.js +0 -44
  94. package/dist/chunk-N55DVMAG.js +0 -14
  95. package/dist/chunk-O56ESZCQ.js +0 -1874
  96. package/dist/chunk-OIBHQH5Q.js +0 -96
  97. package/dist/chunk-PDHTXPSF.js +0 -12
  98. package/dist/chunk-QDFJSUG3.js +0 -13
  99. package/dist/chunk-R2XR4FCV.js +0 -48
  100. package/dist/chunk-R66W5UDG.js +0 -26
  101. package/dist/chunk-RYTEQBAO.js +0 -37
  102. package/dist/chunk-SZHARWKU.js +0 -15
  103. package/dist/chunk-T3J6U77J.js +0 -12056
  104. package/dist/chunk-TBVLQRXT.js +0 -68
  105. package/dist/chunk-TGVAIWIL.js +0 -1778
  106. package/dist/chunk-TKAYX2SP.js +0 -204
  107. package/dist/chunk-TUMSNGTX.js +0 -35
  108. package/dist/chunk-VGU4ZFYZ.js +0 -4752
  109. package/dist/chunk-VNAZTCHA.js +0 -65
  110. package/dist/chunk-VNFR57DF.js +0 -87
  111. package/dist/chunk-WKW6B5ID.js +0 -29
  112. package/dist/chunk-XCYKC6OZ.js +0 -1
  113. package/dist/chunk-XZGSCABI.js +0 -383
  114. package/dist/chunk-ZMK5Z6KE.js +0 -5198
  115. /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
  116. /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
@@ -1,5 +1,4 @@
1
- import { SemanticIcon } from './chunk-IOXOPMYS.js';
2
- import { buildOrganizationGraph, projectOrganizationSurfaces, compileOrganizationOntology, getSortedSidebarEntries, parseOntologyId, getSystem, resolveSystemConfig } from './chunk-52K5RFDH.js';
1
+ import { buildOrganizationGraph, projectOrganizationSurfaces, compileOrganizationOntology, SemanticIcon, getSortedSidebarEntries, parseOntologyId, getSystem, resolveSystemConfig } from './chunk-4U3XAWCN.js';
3
2
  import { useMemo, useState, useRef, useEffect } from 'react';
4
3
  import { useTree, Text, Tree, UnstyledButton, Group, TextInput } from '@mantine/core';
5
4
  import { useClipboard } from '@mantine/hooks';
@@ -255,16 +254,16 @@ function normalizeKnowledgeNodeId(nodeId) {
255
254
  return nodeId.startsWith("knowledge:") ? nodeId.slice("knowledge:".length) : nodeId;
256
255
  }
257
256
  function getKnowledgeNodeReadCommand(nodeId) {
258
- return `/knowledge read ${normalizeKnowledgeNodeId(nodeId)}`;
257
+ return `/om read ${normalizeKnowledgeNodeId(nodeId)}`;
259
258
  }
260
259
  function getKnowledgeNodeReadCommands(nodeIds) {
261
260
  return [...new Set(nodeIds)].map(getKnowledgeNodeReadCommand).join("\n");
262
261
  }
263
262
  function getKnowledgeFolderCommand(kind, id) {
264
- return `/knowledge read-folder ${kind}:${id}`;
263
+ return `/om read-folder ${kind}:${id}`;
265
264
  }
266
265
  function getKnowledgeTreeFolderCommand(treeValue) {
267
- return `/knowledge read-folder ${treeValue}`;
266
+ return `/om read-folder ${treeValue}`;
268
267
  }
269
268
  function getKnowledgeDomainFolderCommand(domainKey) {
270
269
  return getKnowledgeFolderCommand("domain", domainKey);
@@ -2046,7 +2045,7 @@ function TrailingCopySlot({ command, label, showCopy, favorite, hovered }) {
2046
2045
  var indexPromise = null;
2047
2046
  function loadSearchIndex() {
2048
2047
  if (!indexPromise) {
2049
- indexPromise = import('./knowledge-search-index-VMAW7FLR.js').then(
2048
+ indexPromise = import('./knowledge-search-index-ORIJCEZX.js').then(
2050
2049
  (mod) => buildSearchIndex(mod.default ?? mod)
2051
2050
  );
2052
2051
  }
@@ -64,29 +64,6 @@ function generateShades(hex) {
64
64
  ];
65
65
  return targets.map((tl) => hslToHex(h, s, tl));
66
66
  }
67
- var THEME_PRESETS = [
68
- "default",
69
- "tactical",
70
- "regal",
71
- "cyber-volt",
72
- "aurora",
73
- "rose-gold",
74
- "midnight",
75
- "titanium",
76
- "canopy",
77
- "slate",
78
- "cyber-strike",
79
- "cyber-chrome",
80
- "cyber-void",
81
- "nirvana",
82
- "wave",
83
- "synapse",
84
- "cortex",
85
- "helios",
86
- "graphite",
87
- "quarry"
88
- ];
89
- var ThemePresetEnum = z.enum(THEME_PRESETS);
90
67
  var defaultPreset = {
91
68
  subtitleFontFamily: '"Inter", sans-serif',
92
69
  fontImports: ["https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"],
@@ -2305,6 +2282,29 @@ var quarryPreset = {
2305
2282
  };
2306
2283
 
2307
2284
  // src/theme/presets/index.ts
2285
+ var THEME_PRESETS = [
2286
+ "default",
2287
+ "tactical",
2288
+ "slate",
2289
+ "regal",
2290
+ "midnight",
2291
+ "aurora",
2292
+ "titanium",
2293
+ "rose-gold",
2294
+ "wave",
2295
+ "canopy",
2296
+ "quarry",
2297
+ "nirvana",
2298
+ "cortex",
2299
+ "synapse",
2300
+ "graphite",
2301
+ "helios",
2302
+ "cyber-void",
2303
+ "cyber-volt",
2304
+ "cyber-chrome",
2305
+ "cyber-strike"
2306
+ ];
2307
+ var ThemePresetEnum = z.enum(THEME_PRESETS);
2308
2308
  var PRESETS = {
2309
2309
  default: {
2310
2310
  ...defaultPreset,
@@ -0,0 +1,25 @@
1
+ import { GC_TIME_LONG, STALE_TIME_DEFAULT } from './chunk-GEFWMU26.js';
2
+ import { QueryClient } from '@tanstack/react-query';
3
+
4
+ function createElevasisQueryClient(options = {}) {
5
+ const { defaultOptions, onMutationError, ...queryClientOptions } = options;
6
+ return new QueryClient({
7
+ ...queryClientOptions,
8
+ defaultOptions: {
9
+ ...defaultOptions,
10
+ queries: {
11
+ staleTime: STALE_TIME_DEFAULT,
12
+ gcTime: GC_TIME_LONG,
13
+ retry: 1,
14
+ refetchOnWindowFocus: false,
15
+ ...defaultOptions?.queries
16
+ },
17
+ mutations: {
18
+ ...defaultOptions?.mutations,
19
+ onError: onMutationError ?? defaultOptions?.mutations?.onError
20
+ }
21
+ }
22
+ });
23
+ }
24
+
25
+ export { createElevasisQueryClient };
@@ -4052,6 +4052,74 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4052
4052
  }, z.core.$strip>>;
4053
4053
  type OntologyScope = z.infer<typeof OntologyScopeSchema>;
4054
4054
 
4055
+ type JsonPrimitive = string | number | boolean | null;
4056
+ type JsonValue = JsonPrimitive | JsonValue[] | {
4057
+ [key: string]: JsonValue;
4058
+ };
4059
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
4060
+ interface SystemEntry {
4061
+ id: string;
4062
+ label?: string;
4063
+ title?: string;
4064
+ description?: string;
4065
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
4066
+ parentSystemId?: string;
4067
+ ui?: {
4068
+ path: string;
4069
+ surfaces: string[];
4070
+ icon?: string;
4071
+ order?: number;
4072
+ };
4073
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
4074
+ responsibleRoleId?: string;
4075
+ governedByKnowledge?: string[];
4076
+ actions?: {
4077
+ actionId: string;
4078
+ intent: 'exposes' | 'consumes';
4079
+ invocation?: unknown;
4080
+ }[];
4081
+ policies?: string[];
4082
+ drivesGoals?: string[];
4083
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
4084
+ status?: 'active' | 'deprecated' | 'archived';
4085
+ path?: string;
4086
+ icon?: string;
4087
+ color?: string;
4088
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
4089
+ enabled?: boolean;
4090
+ devOnly?: boolean;
4091
+ requiresAdmin?: boolean;
4092
+ order: number;
4093
+ config?: Record<string, JsonValue>;
4094
+ ontology?: OntologyScope;
4095
+ systems?: Record<string, SystemEntry>;
4096
+ subsystems?: Record<string, SystemEntry>;
4097
+ }
4098
+
4099
+ declare const LinkSchema: z.ZodObject<{
4100
+ nodeId: z.ZodString;
4101
+ kind: z.ZodEnum<{
4102
+ links: "links";
4103
+ affects: "affects";
4104
+ effects: "effects";
4105
+ actions: "actions";
4106
+ reads: "reads";
4107
+ writes: "writes";
4108
+ emits: "emits";
4109
+ triggers: "triggers";
4110
+ uses: "uses";
4111
+ approval: "approval";
4112
+ contains: "contains";
4113
+ references: "references";
4114
+ maps_to: "maps_to";
4115
+ governs: "governs";
4116
+ originates_from: "originates_from";
4117
+ applies_to: "applies_to";
4118
+ uses_catalog: "uses_catalog";
4119
+ }>;
4120
+ }, z.core.$strip>;
4121
+ type Link = z.infer<typeof LinkSchema>;
4122
+
4055
4123
  declare const GetRecentActivityResponseSchema: z.ZodObject<{
4056
4124
  entries: z.ZodArray<z.ZodObject<{
4057
4125
  id: z.ZodString;
@@ -4346,73 +4414,6 @@ interface CostByModelResponse {
4346
4414
  */
4347
4415
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
4348
4416
 
4349
- /**
4350
- * Placeholder discriminated union for ContentNode (Wave 1A).
4351
- * Wave 2A wires concrete (kind, type) pairs via the registry.
4352
- *
4353
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
4354
- * Per L14: every node carries BOTH `kind` and `type`.
4355
- */
4356
- declare const ContentNodeSchema: z.ZodObject<{
4357
- label: z.ZodString;
4358
- description: z.ZodOptional<z.ZodString>;
4359
- order: z.ZodOptional<z.ZodNumber>;
4360
- parentContentId: z.ZodOptional<z.ZodString>;
4361
- kind: z.ZodString;
4362
- type: z.ZodString;
4363
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4364
- }, z.core.$strip>;
4365
- type ContentNode = z.infer<typeof ContentNodeSchema>;
4366
-
4367
- type JsonPrimitive = string | number | boolean | null;
4368
- type JsonValue = JsonPrimitive | JsonValue[] | {
4369
- [key: string]: JsonValue;
4370
- };
4371
- /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
4372
- interface SystemEntry {
4373
- id: string;
4374
- label?: string;
4375
- title?: string;
4376
- description?: string;
4377
- kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
4378
- parentSystemId?: string;
4379
- ui?: {
4380
- path: string;
4381
- surfaces: string[];
4382
- icon?: string;
4383
- order?: number;
4384
- };
4385
- lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
4386
- responsibleRoleId?: string;
4387
- governedByKnowledge?: string[];
4388
- actions?: {
4389
- actionId: string;
4390
- intent: 'exposes' | 'consumes';
4391
- invocation?: unknown;
4392
- }[];
4393
- policies?: string[];
4394
- drivesGoals?: string[];
4395
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
4396
- status?: 'active' | 'deprecated' | 'archived';
4397
- path?: string;
4398
- icon?: string;
4399
- color?: string;
4400
- uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
4401
- enabled?: boolean;
4402
- devOnly?: boolean;
4403
- requiresAdmin?: boolean;
4404
- order: number;
4405
- config?: Record<string, JsonValue>;
4406
- ontology?: OntologyScope;
4407
- systems?: Record<string, SystemEntry>;
4408
- /**
4409
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
4410
- * Author new semantic catalogs in `ontology` and local settings in `config`.
4411
- */
4412
- content?: Record<string, ContentNode>;
4413
- subsystems?: Record<string, SystemEntry>;
4414
- }
4415
-
4416
4417
  /**
4417
4418
  * Resource Registry type definitions
4418
4419
  */
@@ -4462,30 +4463,6 @@ interface ResourceDefinition {
4462
4463
  archived?: boolean;
4463
4464
  }
4464
4465
 
4465
- declare const LinkSchema: z.ZodObject<{
4466
- nodeId: z.ZodString;
4467
- kind: z.ZodEnum<{
4468
- links: "links";
4469
- affects: "affects";
4470
- effects: "effects";
4471
- actions: "actions";
4472
- reads: "reads";
4473
- writes: "writes";
4474
- emits: "emits";
4475
- triggers: "triggers";
4476
- uses: "uses";
4477
- approval: "approval";
4478
- contains: "contains";
4479
- references: "references";
4480
- maps_to: "maps_to";
4481
- governs: "governs";
4482
- originates_from: "originates_from";
4483
- applies_to: "applies_to";
4484
- uses_catalog: "uses_catalog";
4485
- }>;
4486
- }, z.core.$strip>;
4487
- type Link = z.infer<typeof LinkSchema>;
4488
-
4489
4466
  declare const ResourceCategorySchema: z.ZodEnum<{
4490
4467
  diagnostic: "diagnostic";
4491
4468
  production: "production";
@@ -7003,7 +6980,7 @@ declare function LeadGenRouteShell({ title, caption, body, links }: {
7003
6980
  links?: LeadGenRouteLink[];
7004
6981
  }): react_jsx_runtime.JSX.Element;
7005
6982
  declare function getStatusColor(status: string | null): "green" | "red" | "gray";
7006
- declare function getEnrichmentColor(status: string): "green" | "yellow" | "red" | "gray";
6983
+ declare function getEnrichmentColor(status: string): "green" | "red" | "gray" | "yellow";
7007
6984
 
7008
6985
  declare function useDeleteLists(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
7009
6986