@elevasis/ui 2.31.0 → 2.33.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-KSEGSB67.js → CoreAuthKitInner-QC62UHTZ.js} +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.css +38 -0
- package/dist/app/index.d.ts +69 -9
- package/dist/app/index.js +7 -6
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/charts/index.js +5 -6
- package/dist/{chunk-JKSUN5GN.js → chunk-2GMF5IRF.js} +81 -746
- package/dist/{chunk-XQHZBA65.js → chunk-2RJMVWFJ.js} +1 -6
- package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
- package/dist/{chunk-HQGF4ATG.js → chunk-52NLZN6Z.js} +118 -141
- package/dist/chunk-AHCKOU2M.js +13 -0
- package/dist/chunk-CLDCYJQT.js +1 -0
- package/dist/chunk-DWXDNT7P.js +145 -0
- package/dist/chunk-E4T2N7P7.js +124 -0
- package/dist/{chunk-HYNYEBHM.js → chunk-E7C4XEWH.js} +3 -3
- package/dist/{chunk-L3BVJWML.js → chunk-EPTHX4VZ.js} +1 -1
- package/dist/{chunk-QDEETKYT.js → chunk-FFPHJBJC.js} +9 -9
- package/dist/chunk-GNRMB6DC.js +5126 -0
- package/dist/{chunk-DZTG5IAC.js → chunk-I2KLQ2HA.js} +1 -7
- package/dist/{chunk-Q6OYNEGR.js → chunk-IUKFNASA.js} +5 -6
- package/dist/{chunk-QHEWXU7I.js → chunk-JFL3GRD4.js} +1 -1
- package/dist/{chunk-T3IPHEYJ.js → chunk-JHT5JIJ3.js} +4410 -566
- package/dist/{chunk-L2NVFLXU.js → chunk-MHLZ4F4N.js} +4 -4
- package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
- package/dist/{chunk-TOIXUWR6.js → chunk-ND5TDV2J.js} +1 -1
- package/dist/{chunk-5LJAEZMA.js → chunk-NOIRGGW2.js} +5 -6
- package/dist/{chunk-7KC4P3AU.js → chunk-QNOVUCSV.js} +2 -12
- package/dist/{chunk-3BAPR3KA.js → chunk-RQA2EVN3.js} +5 -15
- package/dist/{chunk-ND42LPY4.js → chunk-TKF5S4XP.js} +6 -6
- package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
- package/dist/{chunk-Y4FWCG7Y.js → chunk-UVFOURXR.js} +8 -7
- package/dist/chunk-UW7IV2Y3.js +447 -0
- package/dist/{chunk-P55BJZZW.js → chunk-V6SZ4ECN.js} +20 -5
- package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
- package/dist/chunk-XG57WXOL.js +85 -0
- package/dist/{chunk-SHQXMW4F.js → chunk-XOFSMJLF.js} +46 -28
- package/dist/{chunk-7HMCB26R.js → chunk-XZGSCABI.js} +1 -1
- package/dist/chunk-YAQ25UNM.js +2126 -0
- package/dist/chunk-ZGTDKH3P.js +467 -0
- package/dist/components/chat/index.js +1 -1
- package/dist/components/index.css +38 -0
- package/dist/components/index.d.ts +262 -51
- package/dist/components/index.js +37 -39
- package/dist/components/navigation/index.css +38 -0
- package/dist/components/navigation/index.js +5 -3
- package/dist/execution/index.d.ts +11 -2
- package/dist/execution/index.js +1 -1
- package/dist/features/auth/index.css +38 -0
- package/dist/features/auth/index.d.ts +91 -14
- package/dist/features/auth/index.js +42 -10
- package/dist/features/clients/index.css +38 -0
- package/dist/features/clients/index.d.ts +1 -1
- package/dist/features/clients/index.js +17 -15
- package/dist/features/crm/index.css +38 -0
- package/dist/features/crm/index.d.ts +80 -18
- package/dist/features/crm/index.js +17 -15
- package/dist/features/dashboard/index.css +38 -0
- package/dist/features/dashboard/index.d.ts +174 -25
- package/dist/features/dashboard/index.js +17 -16
- package/dist/features/delivery/index.css +38 -0
- package/dist/features/delivery/index.d.ts +80 -18
- package/dist/features/delivery/index.js +16 -15
- package/dist/features/knowledge/index.css +38 -0
- package/dist/features/knowledge/index.d.ts +20 -18
- package/dist/features/knowledge/index.js +114 -609
- package/dist/features/lead-gen/index.css +38 -0
- package/dist/features/lead-gen/index.d.ts +45 -43
- package/dist/features/lead-gen/index.js +17 -16
- package/dist/features/monitoring/index.css +38 -0
- package/dist/features/monitoring/index.d.ts +20 -18
- package/dist/features/monitoring/index.js +18 -17
- package/dist/features/monitoring/requests/index.css +38 -0
- package/dist/features/monitoring/requests/index.d.ts +23 -21
- package/dist/features/monitoring/requests/index.js +16 -14
- package/dist/features/operations/index.css +38 -0
- package/dist/features/operations/index.d.ts +1299 -66
- package/dist/features/operations/index.js +22 -24
- package/dist/features/seo/index.d.ts +20 -18
- package/dist/features/seo/index.js +2 -2
- package/dist/features/settings/index.css +38 -0
- package/dist/features/settings/index.d.ts +80 -18
- package/dist/features/settings/index.js +17 -15
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.css +38 -0
- package/dist/hooks/delivery/index.d.ts +60 -0
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/index.css +38 -0
- package/dist/hooks/index.d.ts +492 -89
- package/dist/hooks/index.js +15 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +332 -33
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.css +38 -0
- package/dist/hooks/published.d.ts +492 -89
- package/dist/hooks/published.js +15 -13
- package/dist/index.css +38 -0
- package/dist/index.d.ts +1353 -1349
- package/dist/index.js +16 -14
- package/dist/initialization/index.d.ts +60 -0
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.d.ts +1217 -1292
- package/dist/knowledge/index.js +6538 -2198
- package/dist/knowledge-search-index-P7PR626V.js +1514 -0
- package/dist/layout/index.js +3 -4
- package/dist/organization/index.css +38 -0
- package/dist/organization/index.js +1 -1
- package/dist/profile/index.d.ts +60 -0
- package/dist/profile/index.js +1 -1
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.css +38 -0
- package/dist/provider/index.d.ts +1068 -1246
- package/dist/provider/index.js +12 -10
- package/dist/provider/published.css +38 -0
- package/dist/provider/published.d.ts +1065 -1243
- package/dist/provider/published.js +9 -7
- package/dist/router/context.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.d.ts +117 -0
- package/dist/supabase/index.js +1 -1
- package/dist/test-utils/index.d.ts +16 -9
- package/dist/test-utils/index.js +40 -33
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -1
- package/dist/typeform/schemas.js +1 -1
- package/dist/types/index.d.ts +394 -35
- package/dist/utils/index.d.ts +174 -25
- package/dist/utils/index.js +2 -2
- package/dist/vite/index.js +1 -1
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/dist/zustand/index.js +1 -1
- package/package.json +10 -9
- package/src/README.md +29 -29
- package/src/api/README.md +18 -18
- package/src/app/README.md +24 -24
- package/src/auth/README.md +18 -18
- package/src/components/README.md +24 -24
- package/src/execution/README.md +16 -16
- package/src/features/README.md +28 -28
- package/src/graph/README.md +16 -16
- package/src/hooks/README.md +23 -23
- package/src/initialization/README.md +19 -19
- package/src/knowledge/README.md +31 -31
- package/src/organization/README.md +18 -18
- package/src/profile/README.md +19 -19
- package/src/provider/README.md +32 -32
- package/src/router/README.md +18 -18
- package/src/sse/README.md +13 -13
- package/src/test-utils/README.md +7 -7
- package/src/theme/README.md +23 -23
- package/src/theme/presets/README.md +19 -19
- package/src/types/README.md +16 -16
- package/src/utils/README.md +18 -18
- package/src/zustand/README.md +18 -18
- package/dist/chunk-542WPQU2.js +0 -413
- package/dist/chunk-6IXOKUBC.js +0 -347
- package/dist/chunk-CQZ3DNQY.js +0 -740
- package/dist/chunk-ECNNI3NT.js +0 -6
- package/dist/chunk-GRDLB6LM.js +0 -160
- package/dist/chunk-JDNEWB5F.js +0 -10
- package/dist/chunk-MVFCLZSK.js +0 -4337
- package/dist/chunk-O2QOPJI5.js +0 -2235
- package/dist/chunk-OAVTMITG.js +0 -13
- package/dist/chunk-TVRQ6AQI.js +0 -476
- package/dist/chunk-WF227UBV.js +0 -48
package/src/graph/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Graph
|
|
2
|
-
|
|
3
|
-
The graph surface is headless. It provides hooks, types, constants, and utilities for ReactFlow-based graph behavior.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- Graph constants
|
|
8
|
-
- Graph types
|
|
9
|
-
- Graph hooks
|
|
10
|
-
- Graph utilities
|
|
11
|
-
|
|
12
|
-
## Notes
|
|
13
|
-
|
|
14
|
-
- Visual graph components moved out of this package surface.
|
|
15
|
-
- Use this subpath when you need graph behavior without the visual shell.
|
|
16
|
-
|
|
1
|
+
# Graph
|
|
2
|
+
|
|
3
|
+
The graph surface is headless. It provides hooks, types, constants, and utilities for ReactFlow-based graph behavior.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- Graph constants
|
|
8
|
+
- Graph types
|
|
9
|
+
- Graph hooks
|
|
10
|
+
- Graph utilities
|
|
11
|
+
|
|
12
|
+
## Notes
|
|
13
|
+
|
|
14
|
+
- Visual graph components moved out of this package surface.
|
|
15
|
+
- Use this subpath when you need graph behavior without the visual shell.
|
|
16
|
+
|
package/src/hooks/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Hooks
|
|
2
|
-
|
|
3
|
-
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
-
|
|
5
|
-
## Grouped Areas
|
|
6
|
-
|
|
7
|
-
- Execution and workflow hooks
|
|
8
|
-
- Scheduling hooks
|
|
9
|
-
- Monitoring, observability, and notification hooks
|
|
10
|
-
- Session and SSE hooks
|
|
11
|
-
- Operations hooks, including command-view helpers
|
|
12
|
-
- Feature access, table state, and service helpers
|
|
13
|
-
- Acquisition and delivery hooks
|
|
14
|
-
|
|
15
|
-
## Published Subpaths
|
|
16
|
-
|
|
17
|
-
- `./hooks`
|
|
18
|
-
- `./hooks/delivery`
|
|
19
|
-
- `./hooks/operations/command-view/utils/transformCommandViewData`
|
|
20
|
-
|
|
21
|
-
## Notes
|
|
22
|
-
|
|
23
|
-
- This barrel is intentionally headless. It should not pull in the visual component layer.
|
|
1
|
+
# Hooks
|
|
2
|
+
|
|
3
|
+
The hooks barrel is the published headless hook surface for the UI package.
|
|
4
|
+
|
|
5
|
+
## Grouped Areas
|
|
6
|
+
|
|
7
|
+
- Execution and workflow hooks
|
|
8
|
+
- Scheduling hooks
|
|
9
|
+
- Monitoring, observability, and notification hooks
|
|
10
|
+
- Session and SSE hooks
|
|
11
|
+
- Operations hooks, including command-view helpers
|
|
12
|
+
- Feature access, table state, and service helpers
|
|
13
|
+
- Acquisition and delivery hooks
|
|
14
|
+
|
|
15
|
+
## Published Subpaths
|
|
16
|
+
|
|
17
|
+
- `./hooks`
|
|
18
|
+
- `./hooks/delivery`
|
|
19
|
+
- `./hooks/operations/command-view/utils/transformCommandViewData`
|
|
20
|
+
|
|
21
|
+
## Notes
|
|
22
|
+
|
|
23
|
+
- This barrel is intentionally headless. It should not pull in the visual component layer.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Initialization
|
|
2
|
-
|
|
3
|
-
The initialization surface coordinates org-aware app startup.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `InitializationProvider`
|
|
8
|
-
- `useInitialization`
|
|
9
|
-
- `InitializationContext`
|
|
10
|
-
- `createUseAppInitialization`
|
|
11
|
-
- `InitializationError`
|
|
12
|
-
- `AppInitializationState`
|
|
13
|
-
- `SupabaseUserProfile` type re-export
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need zero-config app bootstrap inside an organization-aware provider tree.
|
|
18
|
-
- You still need the deprecated factory pattern for older consumers.
|
|
19
|
-
|
|
1
|
+
# Initialization
|
|
2
|
+
|
|
3
|
+
The initialization surface coordinates org-aware app startup.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `InitializationProvider`
|
|
8
|
+
- `useInitialization`
|
|
9
|
+
- `InitializationContext`
|
|
10
|
+
- `createUseAppInitialization`
|
|
11
|
+
- `InitializationError`
|
|
12
|
+
- `AppInitializationState`
|
|
13
|
+
- `SupabaseUserProfile` type re-export
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need zero-config app bootstrap inside an organization-aware provider tree.
|
|
18
|
+
- You still need the deprecated factory pattern for older consumers.
|
|
19
|
+
|
package/src/knowledge/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# @elevasis/ui/knowledge
|
|
2
|
-
|
|
3
|
-
Read-only browser primitives for the Organization Model knowledge graph.
|
|
4
|
-
|
|
5
|
-
## Surface
|
|
6
|
-
|
|
7
|
-
| Export | Purpose |
|
|
8
|
-
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
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
|
-
| `KnowledgeSearchBar` | Client-side search over `_generated/knowledge-search-index.json`. |
|
|
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
|
-
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
|
|
17
|
-
| `KNOWLEDGE_BODIES` | Build-time-compiled MDX components keyed by node id. |
|
|
18
|
-
|
|
19
|
-
## Customization tiers
|
|
20
|
-
|
|
21
|
-
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
22
|
-
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
23
|
-
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
24
|
-
|
|
25
|
-
## Codegen
|
|
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: `canonicalOrganizationModel.knowledge.nodes` from `@repo/elevasis-core`.
|
|
28
|
-
|
|
29
|
-
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
30
|
-
|
|
31
|
-
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
|
1
|
+
# @elevasis/ui/knowledge
|
|
2
|
+
|
|
3
|
+
Read-only browser primitives for the Organization Model knowledge graph.
|
|
4
|
+
|
|
5
|
+
## Surface
|
|
6
|
+
|
|
7
|
+
| Export | Purpose |
|
|
8
|
+
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
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
|
+
| `KnowledgeSearchBar` | Client-side search over `_generated/knowledge-search-index.json`. |
|
|
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
|
+
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
|
|
17
|
+
| `KNOWLEDGE_BODIES` | Build-time-compiled MDX components keyed by node id. |
|
|
18
|
+
|
|
19
|
+
## Customization tiers
|
|
20
|
+
|
|
21
|
+
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
22
|
+
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
23
|
+
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
24
|
+
|
|
25
|
+
## Codegen
|
|
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: `canonicalOrganizationModel.knowledge.nodes` from `@repo/elevasis-core`.
|
|
28
|
+
|
|
29
|
+
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
30
|
+
|
|
31
|
+
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Organization
|
|
2
|
-
|
|
3
|
-
The organization surface manages multi-tenancy state and the related UI controls.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `OrganizationProvider`
|
|
8
|
-
- `OrganizationContext`
|
|
9
|
-
- `useOrganization`
|
|
10
|
-
- `OrganizationSwitcher`
|
|
11
|
-
- Store types and the legacy slice creator
|
|
12
|
-
- Deprecated hook factories for older consumers
|
|
13
|
-
|
|
14
|
-
## Notes
|
|
15
|
-
|
|
16
|
-
- Prefer the provider and context exports for new code.
|
|
17
|
-
- Legacy Zustand-based helpers remain exported for migration compatibility.
|
|
18
|
-
|
|
1
|
+
# Organization
|
|
2
|
+
|
|
3
|
+
The organization surface manages multi-tenancy state and the related UI controls.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `OrganizationProvider`
|
|
8
|
+
- `OrganizationContext`
|
|
9
|
+
- `useOrganization`
|
|
10
|
+
- `OrganizationSwitcher`
|
|
11
|
+
- Store types and the legacy slice creator
|
|
12
|
+
- Deprecated hook factories for older consumers
|
|
13
|
+
|
|
14
|
+
## Notes
|
|
15
|
+
|
|
16
|
+
- Prefer the provider and context exports for new code.
|
|
17
|
+
- Legacy Zustand-based helpers remain exported for migration compatibility.
|
|
18
|
+
|
package/src/profile/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Profile
|
|
2
|
-
|
|
3
|
-
The profile surface manages the user profile context and profile-backed helpers.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `ProfileProvider`
|
|
8
|
-
- `useProfile`
|
|
9
|
-
- `ProfileContextValue`
|
|
10
|
-
- `useUserProfile`
|
|
11
|
-
- `UseUserProfileReturn`
|
|
12
|
-
- `UserProfileService`
|
|
13
|
-
- `SupabaseUserProfile` type re-export
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need a shared user profile context.
|
|
18
|
-
- You need a standalone profile service or hook for sync and access.
|
|
19
|
-
|
|
1
|
+
# Profile
|
|
2
|
+
|
|
3
|
+
The profile surface manages the user profile context and profile-backed helpers.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `ProfileProvider`
|
|
8
|
+
- `useProfile`
|
|
9
|
+
- `ProfileContextValue`
|
|
10
|
+
- `useUserProfile`
|
|
11
|
+
- `UseUserProfileReturn`
|
|
12
|
+
- `UserProfileService`
|
|
13
|
+
- `SupabaseUserProfile` type re-export
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need a shared user profile context.
|
|
18
|
+
- You need a standalone profile service or hook for sync and access.
|
|
19
|
+
|
package/src/provider/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# Provider
|
|
2
|
-
|
|
3
|
-
The provider surface composes the shared Elevasis service,
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
The following are exported from `published.ts`, which is the external consumer surface for `@elevasis/ui/provider`:
|
|
8
|
-
|
|
9
|
-
- `ElevasisCoreProvider`
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
- `AppearanceProvider`
|
|
15
|
-
- `useAppearance`
|
|
16
|
-
- `ElevasisServiceProvider`
|
|
17
|
-
- `useElevasisServices`
|
|
18
|
-
- `NotificationProvider`
|
|
19
|
-
- `useNotificationAdapter`
|
|
20
|
-
- Related provider and service types
|
|
21
|
-
|
|
22
|
-
Note: `ElevasisUIProvider` (the Mantine-facing visual layer) is available internally via `@repo/ui` but is NOT exported from the published `@elevasis/ui/provider` subpath. It is only available via the internal `./provider/ui` monorepo subpath.
|
|
23
|
-
|
|
24
|
-
## Related Published Subpaths
|
|
25
|
-
|
|
26
|
-
- `./provider` - headless providers (points to `published.ts`; no Mantine dependency)
|
|
27
|
-
- `./provider/ui` - full provider including Mantine-dependent `ElevasisUIProvider` (internal monorepo use; also published for consumers that opt in)
|
|
28
|
-
|
|
29
|
-
## Notes
|
|
30
|
-
|
|
31
|
-
- `published.ts` is the external consumer surface for `@elevasis/ui/provider`.
|
|
32
|
-
- `ElevasisUIProvider` is Mantine-dependent and available only via `@repo/ui` internally or `@elevasis/ui/provider/ui`; it is not included in the headless `./provider` published export.
|
|
1
|
+
# Provider
|
|
2
|
+
|
|
3
|
+
The provider surface composes the shared Elevasis service, system, appearance, notification, and UI providers.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
The following are exported from `published.ts`, which is the external consumer surface for `@elevasis/ui/provider`:
|
|
8
|
+
|
|
9
|
+
- `ElevasisCoreProvider`
|
|
10
|
+
- `ElevasisSystemsProvider`
|
|
11
|
+
- `useElevasisSystems`
|
|
12
|
+
- `useOptionalElevasisSystems`
|
|
13
|
+
- `SystemShell`
|
|
14
|
+
- `AppearanceProvider`
|
|
15
|
+
- `useAppearance`
|
|
16
|
+
- `ElevasisServiceProvider`
|
|
17
|
+
- `useElevasisServices`
|
|
18
|
+
- `NotificationProvider`
|
|
19
|
+
- `useNotificationAdapter`
|
|
20
|
+
- Related provider and service types
|
|
21
|
+
|
|
22
|
+
Note: `ElevasisUIProvider` (the Mantine-facing visual layer) is available internally via `@repo/ui` but is NOT exported from the published `@elevasis/ui/provider` subpath. It is only available via the internal `./provider/ui` monorepo subpath.
|
|
23
|
+
|
|
24
|
+
## Related Published Subpaths
|
|
25
|
+
|
|
26
|
+
- `./provider` - headless providers (points to `published.ts`; no Mantine dependency)
|
|
27
|
+
- `./provider/ui` - full provider including Mantine-dependent `ElevasisUIProvider` (internal monorepo use; also published for consumers that opt in)
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
- `published.ts` is the external consumer surface for `@elevasis/ui/provider`.
|
|
32
|
+
- `ElevasisUIProvider` is Mantine-dependent and available only via `@repo/ui` internally or `@elevasis/ui/provider/ui`; it is not included in the headless `./provider` published export.
|
package/src/router/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Router
|
|
2
|
-
|
|
3
|
-
The router surface provides the shared TanStack Router bridge and router context helpers.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `RouterProvider`
|
|
8
|
-
- `useRouterContext`
|
|
9
|
-
- `RouterAdapter`
|
|
10
|
-
- `LinkProps`
|
|
11
|
-
- `TanStackRouterBridge`
|
|
12
|
-
- `ScrollToTop`
|
|
13
|
-
|
|
14
|
-
## Use When
|
|
15
|
-
|
|
16
|
-
- You need the shared routing abstraction for Elevasis apps.
|
|
17
|
-
- You need a small adapter layer around TanStack Router in a consuming app.
|
|
18
|
-
|
|
1
|
+
# Router
|
|
2
|
+
|
|
3
|
+
The router surface provides the shared TanStack Router bridge and router context helpers.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `RouterProvider`
|
|
8
|
+
- `useRouterContext`
|
|
9
|
+
- `RouterAdapter`
|
|
10
|
+
- `LinkProps`
|
|
11
|
+
- `TanStackRouterBridge`
|
|
12
|
+
- `ScrollToTop`
|
|
13
|
+
|
|
14
|
+
## Use When
|
|
15
|
+
|
|
16
|
+
- You need the shared routing abstraction for Elevasis apps.
|
|
17
|
+
- You need a small adapter layer around TanStack Router in a consuming app.
|
|
18
|
+
|
package/src/sse/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# SSE
|
|
2
|
-
|
|
3
|
-
The SSE surface provides connection management and token-refresh helpers for server-sent events.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `SSEConnectionManager`
|
|
8
|
-
- `fetchEventSourceWithTokenRefresh`
|
|
9
|
-
|
|
10
|
-
## Use When
|
|
11
|
-
|
|
12
|
-
- You need a shared SSE client with auth-aware reconnect behavior.
|
|
13
|
-
|
|
1
|
+
# SSE
|
|
2
|
+
|
|
3
|
+
The SSE surface provides connection management and token-refresh helpers for server-sent events.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `SSEConnectionManager`
|
|
8
|
+
- `fetchEventSourceWithTokenRefresh`
|
|
9
|
+
|
|
10
|
+
## Use When
|
|
11
|
+
|
|
12
|
+
- You need a shared SSE client with auth-aware reconnect behavior.
|
|
13
|
+
|
package/src/test-utils/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
6
|
-
|
|
7
|
-
`renderWithProviders`, `renderHookWithProviders`, and `createTestWrapper` include `ApiClientProvider`, `ElevasisServiceProvider`, `QueryClientProvider`, and `MantineProvider` by default. Tests can override `queryClient`, `getAccessToken`, `organizationId`, `isOrganizationReady`, `apiRequest`, and `isServiceReady` per render.
|
|
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.
|
|
6
|
+
|
|
7
|
+
`renderWithProviders`, `renderHookWithProviders`, and `createTestWrapper` include `ApiClientProvider`, `ElevasisServiceProvider`, `QueryClientProvider`, and `MantineProvider` by default. Tests can override `queryClient`, `getAccessToken`, `organizationId`, `isOrganizationReady`, `apiRequest`, and `isServiceReady` per render.
|
package/src/theme/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Theme
|
|
2
|
-
|
|
3
|
-
The theme surface provides the preset system, CSS variable bridge, and Mantine theme integration.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `getPreset`
|
|
8
|
-
- `generateShades`
|
|
9
|
-
- `presets`
|
|
10
|
-
- Theme preset types
|
|
11
|
-
- `createCssVariablesResolver`
|
|
12
|
-
- `TOKEN_VAR_MAP`
|
|
13
|
-
- `mantineThemeOverride`
|
|
14
|
-
- `componentThemes`
|
|
15
|
-
- `PresetsProvider`
|
|
16
|
-
- `usePresetsContext`
|
|
17
|
-
- `useAvailablePresets`
|
|
18
|
-
|
|
19
|
-
## Use When
|
|
20
|
-
|
|
21
|
-
- You need to build or customize the Elevasis visual theme.
|
|
22
|
-
- You need access to the shared preset registry or CSS variable mapping.
|
|
23
|
-
|
|
1
|
+
# Theme
|
|
2
|
+
|
|
3
|
+
The theme surface provides the preset system, CSS variable bridge, and Mantine theme integration.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `getPreset`
|
|
8
|
+
- `generateShades`
|
|
9
|
+
- `presets`
|
|
10
|
+
- Theme preset types
|
|
11
|
+
- `createCssVariablesResolver`
|
|
12
|
+
- `TOKEN_VAR_MAP`
|
|
13
|
+
- `mantineThemeOverride`
|
|
14
|
+
- `componentThemes`
|
|
15
|
+
- `PresetsProvider`
|
|
16
|
+
- `usePresetsContext`
|
|
17
|
+
- `useAvailablePresets`
|
|
18
|
+
|
|
19
|
+
## Use When
|
|
20
|
+
|
|
21
|
+
- You need to build or customize the Elevasis visual theme.
|
|
22
|
+
- You need access to the shared preset registry or CSS variable mapping.
|
|
23
|
+
|
|
@@ -1,19 +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.
|
|
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.
|
package/src/types/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Types
|
|
2
|
-
|
|
3
|
-
The types surface re-exports the shared platform types that UI consumers need without a direct `@repo/core` dependency.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- Execution and resource types
|
|
8
|
-
- Command queue and scheduling types
|
|
9
|
-
- Monitoring, observability, and notification types
|
|
10
|
-
- Session, feature-access, and webhook types
|
|
11
|
-
- Multi-tenancy, deployment, and CRM acquisition types
|
|
12
|
-
|
|
13
|
-
## Notes
|
|
14
|
-
|
|
15
|
-
- This is a type-only bridge. It should stay aligned with the current platform contracts.
|
|
16
|
-
|
|
1
|
+
# Types
|
|
2
|
+
|
|
3
|
+
The types surface re-exports the shared platform types that UI consumers need without a direct `@repo/core` dependency.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- Execution and resource types
|
|
8
|
+
- Command queue and scheduling types
|
|
9
|
+
- Monitoring, observability, and notification types
|
|
10
|
+
- Session, feature-access, and webhook types
|
|
11
|
+
- Multi-tenancy, deployment, and CRM acquisition types
|
|
12
|
+
|
|
13
|
+
## Notes
|
|
14
|
+
|
|
15
|
+
- This is a type-only bridge. It should stay aligned with the current platform contracts.
|
|
16
|
+
|
package/src/utils/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Utils
|
|
2
|
-
|
|
3
|
-
The utils surface groups shared date, formatting, validation, error, and resource helper functions.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- Date formatting helpers
|
|
8
|
-
- Relative time helpers
|
|
9
|
-
- Email validation
|
|
10
|
-
- Error helpers
|
|
11
|
-
- Resource icon helpers
|
|
12
|
-
- Shared constants
|
|
13
|
-
- Warning suppression helpers
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need lightweight shared helpers that do not belong in a feature barrel.
|
|
18
|
-
|
|
1
|
+
# Utils
|
|
2
|
+
|
|
3
|
+
The utils surface groups shared date, formatting, validation, error, and resource helper functions.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- Date formatting helpers
|
|
8
|
+
- Relative time helpers
|
|
9
|
+
- Email validation
|
|
10
|
+
- Error helpers
|
|
11
|
+
- Resource icon helpers
|
|
12
|
+
- Shared constants
|
|
13
|
+
- Warning suppression helpers
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need lightweight shared helpers that do not belong in a feature barrel.
|
|
18
|
+
|
package/src/zustand/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Zustand
|
|
2
|
-
|
|
3
|
-
The Zustand surface exposes the shared slice creators used by the UI package.
|
|
4
|
-
|
|
5
|
-
## Exports
|
|
6
|
-
|
|
7
|
-
- `createSSESlice`
|
|
8
|
-
- `resetSSEState`
|
|
9
|
-
- `createThemeSlice`
|
|
10
|
-
- `resetThemeState`
|
|
11
|
-
- `createTimeRangeSlice`
|
|
12
|
-
- `resetTimeRangeState`
|
|
13
|
-
- Slice state and configuration types
|
|
14
|
-
|
|
15
|
-
## Use When
|
|
16
|
-
|
|
17
|
-
- You need the shared state slices used by the UI package internals or a compatible consumer.
|
|
18
|
-
|
|
1
|
+
# Zustand
|
|
2
|
+
|
|
3
|
+
The Zustand surface exposes the shared slice creators used by the UI package.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `createSSESlice`
|
|
8
|
+
- `resetSSEState`
|
|
9
|
+
- `createThemeSlice`
|
|
10
|
+
- `resetThemeState`
|
|
11
|
+
- `createTimeRangeSlice`
|
|
12
|
+
- `resetTimeRangeState`
|
|
13
|
+
- Slice state and configuration types
|
|
14
|
+
|
|
15
|
+
## Use When
|
|
16
|
+
|
|
17
|
+
- You need the shared state slices used by the UI package internals or a compatible consumer.
|
|
18
|
+
|