@elevasis/ui 2.25.5 → 2.26.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 (101) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +18 -29
  3. package/dist/app/index.d.ts +118 -64
  4. package/dist/app/index.js +6 -5
  5. package/dist/charts/index.js +6 -5
  6. package/dist/chunk-3MEXPLWT.js +265 -0
  7. package/dist/{chunk-IS53MXE4.js → chunk-4KTLOK7K.js} +1 -1
  8. package/dist/{chunk-KMAXFJPH.js → chunk-CW3UNAF2.js} +5 -409
  9. package/dist/{chunk-HKBEURCV.js → chunk-G26INIF3.js} +1 -1
  10. package/dist/{chunk-NHHCUECV.js → chunk-G66QFZXD.js} +11 -214
  11. package/dist/{chunk-QIW6OCEI.js → chunk-HLFFKKT3.js} +27 -373
  12. package/dist/chunk-JDNEWB5F.js +10 -0
  13. package/dist/{chunk-VMAWXEVG.js → chunk-JKBGDFX2.js} +1136 -828
  14. package/dist/{chunk-MU4VPAMR.js → chunk-JPGX3533.js} +4 -3
  15. package/dist/chunk-KCGGA36K.js +73 -0
  16. package/dist/chunk-KEFWANZY.js +155 -0
  17. package/dist/chunk-LH4GPYDX.js +448 -0
  18. package/dist/{chunk-QNCVK3ZF.js → chunk-LWKZ3BCC.js} +5 -4
  19. package/dist/chunk-OGXKOMUT.js +412 -0
  20. package/dist/chunk-OHXU5WWK.js +3731 -0
  21. package/dist/chunk-ONFKASZI.js +2004 -0
  22. package/dist/{chunk-U36X6NZM.js → chunk-RIFTUOPE.js} +2 -14
  23. package/dist/{chunk-T6INEVX6.js → chunk-SGS4CQ2B.js} +1 -1
  24. package/dist/{chunk-KINQW4JT.js → chunk-UPMX5GJI.js} +5 -5
  25. package/dist/{chunk-N2AP4I5N.js → chunk-UY5I2KOZ.js} +223 -3857
  26. package/dist/{chunk-JMI7L7Y7.js → chunk-W2ZTLH7Y.js} +142 -4
  27. package/dist/{chunk-3KY2GNPE.js → chunk-WUVR4QY6.js} +9 -9
  28. package/dist/{chunk-Q5BEODAT.js → chunk-X2SUMO3P.js} +2 -1
  29. package/dist/{chunk-SNHGSCKH.js → chunk-XBMCDGHA.js} +1 -1
  30. package/dist/{chunk-N55DVMAG.js → chunk-XQQEKWTL.js} +2 -6
  31. package/dist/{chunk-F7JDHS2I.js → chunk-XZSEPJZQ.js} +5 -5
  32. package/dist/{chunk-5BJXMZN4.js → chunk-YHBPR67D.js} +438 -620
  33. package/dist/{chunk-FVKLHLF4.js → chunk-YO2YORW4.js} +4 -4
  34. package/dist/{chunk-TAIX4NO3.js → chunk-ZFLM2YVW.js} +2 -2
  35. package/dist/components/index.css +18 -29
  36. package/dist/components/index.d.ts +211 -383
  37. package/dist/components/index.js +43 -427
  38. package/dist/components/navigation/index.css +28 -39
  39. package/dist/execution/index.d.ts +0 -73
  40. package/dist/features/auth/index.css +28 -39
  41. package/dist/features/crm/index.css +28 -39
  42. package/dist/features/crm/index.d.ts +49 -49
  43. package/dist/features/crm/index.js +14 -14
  44. package/dist/features/dashboard/index.css +28 -39
  45. package/dist/features/dashboard/index.js +18 -15
  46. package/dist/features/delivery/index.css +18 -29
  47. package/dist/features/delivery/index.js +14 -14
  48. package/dist/features/knowledge/index.css +611 -0
  49. package/dist/features/knowledge/index.js +700 -1
  50. package/dist/features/lead-gen/index.css +28 -39
  51. package/dist/features/lead-gen/index.d.ts +212 -166
  52. package/dist/features/lead-gen/index.js +16 -15
  53. package/dist/features/monitoring/index.css +18 -29
  54. package/dist/features/monitoring/index.js +17 -16
  55. package/dist/features/monitoring/requests/index.css +28 -39
  56. package/dist/features/monitoring/requests/index.js +13 -13
  57. package/dist/features/operations/index.css +28 -39
  58. package/dist/features/operations/index.d.ts +16 -98
  59. package/dist/features/operations/index.js +26 -20
  60. package/dist/features/settings/index.css +28 -39
  61. package/dist/features/settings/index.d.ts +1 -0
  62. package/dist/features/settings/index.js +15 -15
  63. package/dist/hooks/delivery/index.css +28 -39
  64. package/dist/hooks/delivery/index.js +2 -2
  65. package/dist/hooks/index.css +18 -29
  66. package/dist/hooks/index.d.ts +180 -377
  67. package/dist/hooks/index.js +13 -13
  68. package/dist/hooks/published.css +18 -29
  69. package/dist/hooks/published.d.ts +180 -377
  70. package/dist/hooks/published.js +13 -13
  71. package/dist/index.css +18 -29
  72. package/dist/index.d.ts +1549 -946
  73. package/dist/index.js +15 -14
  74. package/dist/initialization/index.d.ts +1 -0
  75. package/dist/knowledge/index.d.ts +991 -41
  76. package/dist/knowledge/index.js +5469 -413
  77. package/dist/layout/index.d.ts +2 -0
  78. package/dist/layout/index.js +3 -2
  79. package/dist/organization/index.css +28 -39
  80. package/dist/organization/index.d.ts +1 -0
  81. package/dist/provider/index.css +28 -39
  82. package/dist/provider/index.d.ts +1147 -348
  83. package/dist/provider/index.js +11 -10
  84. package/dist/provider/published.css +28 -39
  85. package/dist/provider/published.d.ts +1146 -347
  86. package/dist/provider/published.js +8 -8
  87. package/dist/test-utils/index.js +2 -2
  88. package/dist/test-utils/setup.js +1 -1
  89. package/dist/theme/index.js +3 -2
  90. package/dist/theme/presets/index.d.ts +97 -0
  91. package/dist/theme/presets/index.js +3 -0
  92. package/dist/types/index.d.ts +71 -126
  93. package/dist/utils/index.js +1 -1
  94. package/dist/vite/index.d.ts +7 -0
  95. package/dist/vite/index.js +10 -0
  96. package/dist/vite-plugin-knowledge/index.d.ts +1 -33
  97. package/dist/vite-plugin-knowledge/index.js +1 -66
  98. package/package.json +46 -33
  99. package/src/knowledge/README.md +8 -8
  100. package/src/theme/presets/README.md +19 -0
  101. /package/dist/{chunk-SGXXJE52.js → chunk-QD4X4H5A.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "2.25.5",
3
+ "version": "2.26.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",
@@ -11,38 +11,6 @@
11
11
  "dist",
12
12
  "src/**/README.md"
13
13
  ],
14
- "devDependencies": {
15
- "@mantine/charts": "8.2.7",
16
- "@mantine/notifications": "8.2.7",
17
- "@mantine/tiptap": "8.2.7",
18
- "@tiptap/extension-link": "^2.11.7",
19
- "@tiptap/extension-placeholder": "^2.11.7",
20
- "@tiptap/react": "^2.11.7",
21
- "@tiptap/starter-kit": "^2.11.7",
22
- "@mdx-js/mdx": "^3.1.1",
23
- "@types/react": "^19.2.2",
24
- "@types/react-dom": "^19.1.9",
25
- "cytoscape": "^3.33.1",
26
- "globals": "^16.3.0",
27
- "recharts": "^3.2.1",
28
- "rollup": "^4.59.0",
29
- "rollup-plugin-dts": "^6.3.0",
30
- "tsup": "^8.0.0",
31
- "typescript": "5.9.2",
32
- "vite": "^7.0.0",
33
- "@testing-library/react": "^16.3.0",
34
- "@testing-library/jest-dom": "^6.9.1",
35
- "msw": "^2.11.0",
36
- "vitest": "^3.2.4",
37
- "@repo/core": "0.15.1",
38
- "@repo/typescript-config": "0.0.0",
39
- "@repo/eslint-config": "0.0.0"
40
- },
41
- "dependencies": {
42
- "@dagrejs/dagre": "^1.1.4",
43
- "@microsoft/fetch-event-source": "^2.0.1",
44
- "react-json-pretty": "^2.2.0"
45
- },
46
14
  "exports": {
47
15
  "./provider": {
48
16
  "types": "./dist/provider/published.d.ts",
@@ -140,6 +108,10 @@
140
108
  "types": "./dist/theme/index.d.ts",
141
109
  "import": "./dist/theme/index.js"
142
110
  },
111
+ "./theme/presets": {
112
+ "types": "./dist/theme/presets/index.d.ts",
113
+ "import": "./dist/theme/presets/index.js"
114
+ },
143
115
  "./api": {
144
116
  "types": "./dist/api/index.d.ts",
145
117
  "import": "./dist/api/index.js"
@@ -160,6 +132,10 @@
160
132
  "types": "./dist/knowledge/index.d.ts",
161
133
  "import": "./dist/knowledge/index.js"
162
134
  },
135
+ "./vite": {
136
+ "types": "./dist/vite/index.d.ts",
137
+ "import": "./dist/vite/index.js"
138
+ },
163
139
  "./vite-plugin-knowledge": {
164
140
  "types": "./dist/vite-plugin-knowledge/index.d.ts",
165
141
  "import": "./dist/vite-plugin-knowledge/index.js"
@@ -221,6 +197,7 @@
221
197
  }
222
198
  },
223
199
  "peerDependencies": {
200
+ "@elevasis/sdk": "^1.16.0",
224
201
  "react": "^19.2.0",
225
202
  "react-dom": "^19.2.0",
226
203
  "@tanstack/react-query": "^5.76.2",
@@ -246,6 +223,42 @@
246
223
  "@testing-library/jest-dom": "^6.9.1",
247
224
  "msw": "^2.11.0"
248
225
  },
226
+ "devDependencies": {
227
+ "@mantine/charts": "8.2.7",
228
+ "@mantine/notifications": "8.2.7",
229
+ "@mantine/tiptap": "8.2.7",
230
+ "@tiptap/extension-link": "^2.11.7",
231
+ "@tiptap/extension-placeholder": "^2.11.7",
232
+ "@tiptap/react": "^2.11.7",
233
+ "@tiptap/starter-kit": "^2.11.7",
234
+ "@mdx-js/mdx": "^3.1.1",
235
+ "@types/react": "^19.2.2",
236
+ "@types/react-dom": "^19.1.9",
237
+ "cytoscape": "^3.33.1",
238
+ "globals": "^16.3.0",
239
+ "recharts": "^3.2.1",
240
+ "remark-gfm": "^4.0.1",
241
+ "rollup": "^4.59.0",
242
+ "rollup-plugin-dts": "^6.3.0",
243
+ "tsup": "^8.0.0",
244
+ "typescript": "5.9.2",
245
+ "vite": "^7.0.0",
246
+ "@testing-library/react": "^16.3.0",
247
+ "@testing-library/jest-dom": "^6.9.1",
248
+ "msw": "^2.11.0",
249
+ "vitest": "^3.2.4",
250
+ "@elevasis/sdk": "1.15.1",
251
+ "@repo/core": "0.16.0",
252
+ "@repo/eslint-config": "0.0.0",
253
+ "@repo/typescript-config": "0.0.0",
254
+ "@repo/elevasis-core": "1.0.0"
255
+ },
256
+ "dependencies": {
257
+ "@dagrejs/dagre": "^1.1.4",
258
+ "@microsoft/fetch-event-source": "^2.0.1",
259
+ "mantine-form-zod-resolver": "^1.3.0",
260
+ "react-json-pretty": "^2.2.0"
261
+ },
249
262
  "peerDependenciesMeta": {
250
263
  "@mantine/core": {
251
264
  "optional": true
@@ -6,25 +6,25 @@ Read-only browser primitives for the Organization Model knowledge graph.
6
6
 
7
7
  | Export | Purpose |
8
8
  | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
9
- | `KnowledgeBrowser` | Composed default surface: tree + list+detail + search. |
10
- | `KnowledgeTree` | By-feature primary tree. |
11
- | `KnowledgeNodeList` | Flat list of node summary cards. |
12
- | `KnowledgeNodeView` | Single-node detail view: title, kind badge, summary, MDX body, edge sidecar. |
9
+ | `KnowledgeBrowser` | Selected-node detail pane. Tree/search now live in the feature sidebar. |
10
+ | `KnowledgeTree` | By-feature primary tree with hierarchical features and multi-governance duplication. |
11
+ | `KnowledgeNodeList` | Legacy flat list of node summary cards; exported for compatibility. |
12
+ | `KnowledgeNodeView` | Single knowledge-node detail view using `NodeDescribeShell` and relationship groups. |
13
13
  | `KnowledgeSearchBar` | Client-side search over `_generated/knowledge-search-index.json`. |
14
- | `KnowledgeSidebarMiddle` | Sidebar middle section. Mirrors `CrmSidebarMiddle`. |
15
- | `KNOWLEDGE_ITEMS` | Default sidebar nav items. |
14
+ | `KnowledgeSidebarMiddle` | Deprecated legacy sidebar middle section; active sidebar lives under `features/knowledge/sidebar`. |
15
+ | `KNOWLEDGE_ITEMS` | Deprecated default sidebar nav items retained for compatibility. |
16
16
  | `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
17
17
  | `KNOWLEDGE_BODIES` | Build-time-compiled MDX components keyed by node id. |
18
18
 
19
19
  ## Customization tiers
20
20
 
21
21
  1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
22
- 2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around `KnowledgeSidebarMiddle` + `KNOWLEDGE_ITEMS`.
22
+ 2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
23
23
  3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
24
24
 
25
25
  ## Codegen
26
26
 
27
- `KNOWLEDGE_BODIES` and the search index are regenerated by `pnpm scaffold:sync` (or `pnpm knowledge:generate` to run only the knowledge step). Source: `DEFAULT_ORGANIZATION_MODEL.knowledge.nodes` from `@repo/core`.
27
+ `KNOWLEDGE_BODIES` and the search index are regenerated by `pnpm scaffold:sync` (or `pnpm knowledge:generate` to run only the knowledge step). Source: `canonicalOrganizationModel.knowledge.nodes` from `@repo/elevasis-core`.
28
28
 
29
29
  The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
30
30
 
@@ -0,0 +1,19 @@
1
+ # Theme Presets
2
+
3
+ Re-exports the canonical theme-preset SSOT from `@repo/core`. This subpath exists so that consumers can import preset metadata without pulling in the full theme runtime surface.
4
+
5
+ ## Exports
6
+
7
+ - `THEME_PRESETS` — `as const` tuple of preset names; the single source of truth.
8
+ - `ThemePresetName` — union type derived from `THEME_PRESETS`.
9
+ - `ThemePresetEnum` — Zod enum derived from `THEME_PRESETS`.
10
+
11
+ ## Use When
12
+
13
+ - You need a Zod-validated preset name (form schemas, API request/response validation).
14
+ - You need the union type for component props or Zustand state.
15
+ - You're adding a new preset and want to ensure it propagates everywhere via the canonical tuple.
16
+
17
+ ## Source Of Truth
18
+
19
+ `packages/core/src/auth/multi-tenancy/theme-presets.ts`. This subpath is a thin re-export. The `ui → core` dependency stays one-directional; the runtime preset catalog (`presets`, `getPreset`) lives at `@repo/ui/theme` and consumes the names declared in core.
File without changes