@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.
- package/dist/api/index.js +2 -2
- package/dist/app/index.css +18 -29
- package/dist/app/index.d.ts +118 -64
- package/dist/app/index.js +6 -5
- package/dist/charts/index.js +6 -5
- package/dist/chunk-3MEXPLWT.js +265 -0
- package/dist/{chunk-IS53MXE4.js → chunk-4KTLOK7K.js} +1 -1
- package/dist/{chunk-KMAXFJPH.js → chunk-CW3UNAF2.js} +5 -409
- package/dist/{chunk-HKBEURCV.js → chunk-G26INIF3.js} +1 -1
- package/dist/{chunk-NHHCUECV.js → chunk-G66QFZXD.js} +11 -214
- package/dist/{chunk-QIW6OCEI.js → chunk-HLFFKKT3.js} +27 -373
- package/dist/chunk-JDNEWB5F.js +10 -0
- package/dist/{chunk-VMAWXEVG.js → chunk-JKBGDFX2.js} +1136 -828
- package/dist/{chunk-MU4VPAMR.js → chunk-JPGX3533.js} +4 -3
- package/dist/chunk-KCGGA36K.js +73 -0
- package/dist/chunk-KEFWANZY.js +155 -0
- package/dist/chunk-LH4GPYDX.js +448 -0
- package/dist/{chunk-QNCVK3ZF.js → chunk-LWKZ3BCC.js} +5 -4
- package/dist/chunk-OGXKOMUT.js +412 -0
- package/dist/chunk-OHXU5WWK.js +3731 -0
- package/dist/chunk-ONFKASZI.js +2004 -0
- package/dist/{chunk-U36X6NZM.js → chunk-RIFTUOPE.js} +2 -14
- package/dist/{chunk-T6INEVX6.js → chunk-SGS4CQ2B.js} +1 -1
- package/dist/{chunk-KINQW4JT.js → chunk-UPMX5GJI.js} +5 -5
- package/dist/{chunk-N2AP4I5N.js → chunk-UY5I2KOZ.js} +223 -3857
- package/dist/{chunk-JMI7L7Y7.js → chunk-W2ZTLH7Y.js} +142 -4
- package/dist/{chunk-3KY2GNPE.js → chunk-WUVR4QY6.js} +9 -9
- package/dist/{chunk-Q5BEODAT.js → chunk-X2SUMO3P.js} +2 -1
- package/dist/{chunk-SNHGSCKH.js → chunk-XBMCDGHA.js} +1 -1
- package/dist/{chunk-N55DVMAG.js → chunk-XQQEKWTL.js} +2 -6
- package/dist/{chunk-F7JDHS2I.js → chunk-XZSEPJZQ.js} +5 -5
- package/dist/{chunk-5BJXMZN4.js → chunk-YHBPR67D.js} +438 -620
- package/dist/{chunk-FVKLHLF4.js → chunk-YO2YORW4.js} +4 -4
- package/dist/{chunk-TAIX4NO3.js → chunk-ZFLM2YVW.js} +2 -2
- package/dist/components/index.css +18 -29
- package/dist/components/index.d.ts +211 -383
- package/dist/components/index.js +43 -427
- package/dist/components/navigation/index.css +28 -39
- package/dist/execution/index.d.ts +0 -73
- package/dist/features/auth/index.css +28 -39
- package/dist/features/crm/index.css +28 -39
- package/dist/features/crm/index.d.ts +49 -49
- package/dist/features/crm/index.js +14 -14
- package/dist/features/dashboard/index.css +28 -39
- package/dist/features/dashboard/index.js +18 -15
- package/dist/features/delivery/index.css +18 -29
- package/dist/features/delivery/index.js +14 -14
- package/dist/features/knowledge/index.css +611 -0
- package/dist/features/knowledge/index.js +700 -1
- package/dist/features/lead-gen/index.css +28 -39
- package/dist/features/lead-gen/index.d.ts +212 -166
- package/dist/features/lead-gen/index.js +16 -15
- package/dist/features/monitoring/index.css +18 -29
- package/dist/features/monitoring/index.js +17 -16
- package/dist/features/monitoring/requests/index.css +28 -39
- package/dist/features/monitoring/requests/index.js +13 -13
- package/dist/features/operations/index.css +28 -39
- package/dist/features/operations/index.d.ts +16 -98
- package/dist/features/operations/index.js +26 -20
- package/dist/features/settings/index.css +28 -39
- package/dist/features/settings/index.d.ts +1 -0
- package/dist/features/settings/index.js +15 -15
- package/dist/hooks/delivery/index.css +28 -39
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +18 -29
- package/dist/hooks/index.d.ts +180 -377
- package/dist/hooks/index.js +13 -13
- package/dist/hooks/published.css +18 -29
- package/dist/hooks/published.d.ts +180 -377
- package/dist/hooks/published.js +13 -13
- package/dist/index.css +18 -29
- package/dist/index.d.ts +1549 -946
- package/dist/index.js +15 -14
- package/dist/initialization/index.d.ts +1 -0
- package/dist/knowledge/index.d.ts +991 -41
- package/dist/knowledge/index.js +5469 -413
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +3 -2
- package/dist/organization/index.css +28 -39
- package/dist/organization/index.d.ts +1 -0
- package/dist/provider/index.css +28 -39
- package/dist/provider/index.d.ts +1147 -348
- package/dist/provider/index.js +11 -10
- package/dist/provider/published.css +28 -39
- package/dist/provider/published.d.ts +1146 -347
- package/dist/provider/published.js +8 -8
- package/dist/test-utils/index.js +2 -2
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -2
- package/dist/theme/presets/index.d.ts +97 -0
- package/dist/theme/presets/index.js +3 -0
- package/dist/types/index.d.ts +71 -126
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.d.ts +7 -0
- package/dist/vite/index.js +10 -0
- package/dist/vite-plugin-knowledge/index.d.ts +1 -33
- package/dist/vite-plugin-knowledge/index.js +1 -66
- package/package.json +46 -33
- package/src/knowledge/README.md +8 -8
- package/src/theme/presets/README.md +19 -0
- /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.
|
|
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
|
package/src/knowledge/README.md
CHANGED
|
@@ -6,25 +6,25 @@ Read-only browser primitives for the Organization Model knowledge graph.
|
|
|
6
6
|
|
|
7
7
|
| Export | Purpose |
|
|
8
8
|
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
9
|
-
| `KnowledgeBrowser` |
|
|
10
|
-
| `KnowledgeTree` | By-feature primary tree.
|
|
11
|
-
| `KnowledgeNodeList` |
|
|
12
|
-
| `KnowledgeNodeView` | Single-node detail view
|
|
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` |
|
|
15
|
-
| `KNOWLEDGE_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
|
|
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: `
|
|
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
|