@elevasis/ui 2.4.0 → 2.5.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 (61) hide show
  1. package/dist/{chunk-2DZACNOX.js → chunk-3VTACYBT.js} +4 -1
  2. package/dist/{chunk-IPRMGSCV.js → chunk-5RYRL7DP.js} +1 -1
  3. package/dist/{chunk-WN764MR7.js → chunk-CKBJVNSA.js} +3 -2
  4. package/dist/{chunk-PEZ4WOPF.js → chunk-DRBMVLJE.js} +2 -2
  5. package/dist/{chunk-JT7WDIZI.js → chunk-GEJZ6WLM.js} +1 -1
  6. package/dist/{chunk-WSL5MNAI.js → chunk-RBRSRRG4.js} +5 -2
  7. package/dist/{chunk-KRTZTBVP.js → chunk-S5EXLTGK.js} +8 -5
  8. package/dist/{chunk-ISHNN42L.js → chunk-TNYUWKSJ.js} +225 -33
  9. package/dist/{chunk-ZG7MLOBE.js → chunk-URFYQRJO.js} +1 -1
  10. package/dist/{chunk-G3G2QEB6.js → chunk-UXYE5ZBY.js} +2 -2
  11. package/dist/{chunk-3ONP2CEB.js → chunk-XGUMNEIR.js} +5 -2
  12. package/dist/{chunk-J5KWNRSD.js → chunk-YIWLA2B6.js} +1 -0
  13. package/dist/{chunk-5XGBMKUY.js → chunk-ZGV3X3UQ.js} +3 -2
  14. package/dist/components/index.d.ts +127 -99
  15. package/dist/components/index.js +16 -16
  16. package/dist/features/crm/index.d.ts +24 -0
  17. package/dist/features/crm/index.js +5 -5
  18. package/dist/features/dashboard/index.d.ts +25 -0
  19. package/dist/features/dashboard/index.js +5 -5
  20. package/dist/features/delivery/index.d.ts +25 -0
  21. package/dist/features/delivery/index.js +5 -5
  22. package/dist/features/lead-gen/index.d.ts +25 -1
  23. package/dist/features/lead-gen/index.js +8 -8
  24. package/dist/features/monitoring/index.d.ts +25 -0
  25. package/dist/features/monitoring/index.js +6 -6
  26. package/dist/features/operations/index.d.ts +24 -0
  27. package/dist/features/operations/index.js +7 -7
  28. package/dist/features/seo/index.d.ts +25 -0
  29. package/dist/features/seo/index.js +1 -1
  30. package/dist/features/settings/index.d.ts +24 -0
  31. package/dist/features/settings/index.js +5 -5
  32. package/dist/hooks/index.d.ts +239 -239
  33. package/dist/hooks/index.js +4 -4
  34. package/dist/hooks/published.d.ts +169 -169
  35. package/dist/hooks/published.js +3 -3
  36. package/dist/index.d.ts +303 -241
  37. package/dist/index.js +4 -4
  38. package/dist/provider/index.d.ts +64 -2
  39. package/dist/provider/index.js +2 -2
  40. package/dist/provider/published.d.ts +64 -2
  41. package/dist/provider/published.js +1 -1
  42. package/dist/types/index.d.ts +134 -134
  43. package/package.json +4 -3
  44. package/src/README.md +29 -0
  45. package/src/api/README.md +18 -0
  46. package/src/auth/README.md +18 -0
  47. package/src/components/README.md +24 -0
  48. package/src/execution/README.md +16 -0
  49. package/src/features/README.md +28 -0
  50. package/src/graph/README.md +16 -0
  51. package/src/hooks/README.md +24 -0
  52. package/src/initialization/README.md +19 -0
  53. package/src/organization/README.md +18 -0
  54. package/src/profile/README.md +19 -0
  55. package/src/provider/README.md +31 -0
  56. package/src/router/README.md +18 -0
  57. package/src/sse/README.md +13 -0
  58. package/src/theme/README.md +23 -0
  59. package/src/types/README.md +16 -0
  60. package/src/utils/README.md +18 -0
  61. package/src/zustand/README.md +18 -0
@@ -0,0 +1,18 @@
1
+ # API
2
+
3
+ The API surface provides the HTTP client provider, the context hook, and the API config types.
4
+
5
+ ## Exports
6
+
7
+ - `ApiClientProvider`
8
+ - `useApiClientContext`
9
+ - `useApiClient`
10
+ - `ApiClientContextValue`
11
+ - `ApiClientProviderProps`
12
+ - `ApiErrorDetails`
13
+
14
+ ## Use When
15
+
16
+ - You need a shared API request client at the app root.
17
+ - You want org-aware request access through `useApiClient`.
18
+
@@ -0,0 +1,18 @@
1
+ # Auth
2
+
3
+ The auth surface is the published authentication entry point for UI shells.
4
+
5
+ ## Exports
6
+
7
+ - `AuthProvider`
8
+ - `useAuthContext`
9
+ - `useStableAccessToken`
10
+ - `useSessionCheck`
11
+ - `ProtectedRoute`
12
+ - `AdminGuard`
13
+
14
+ ## Use When
15
+
16
+ - You need auth state, access tokens, or session lifecycle checks.
17
+ - You need route-level guards for protected or admin-only UI.
18
+
@@ -0,0 +1,24 @@
1
+ # Components
2
+
3
+ This barrel groups the shared visual and domain UI surfaces that remain part of the published component layer.
4
+
5
+ ## What It Covers
6
+
7
+ - Acquisition and CRM UI primitives
8
+ - Navigation, breadcrumbs, tables, forms, modals, and display components
9
+ - Charts, monitoring widgets, notifications, and error states
10
+ - Layout shells, backgrounds, and sidebar primitives
11
+ - Typeform, rich text, content, and resource-definition helpers
12
+ - Operations UI surfaces that are still shared at the component layer
13
+
14
+ ## Related Subpaths
15
+
16
+ - `./components/navigation`
17
+ - `./components/chat`
18
+ - `./layout`
19
+ - `./charts`
20
+
21
+ ## Notes
22
+
23
+ - The component layer is broad by design, but feature-oriented application shells should still prefer `./features/*` when a dedicated feature surface exists.
24
+
@@ -0,0 +1,16 @@
1
+ # Execution
2
+
3
+ The execution surface contains headless helpers for execution timelines, workflow layouts, and execution-specific data shaping.
4
+
5
+ ## Exports
6
+
7
+ - Hooks under `./hooks`
8
+ - Utilities under `./utils`
9
+ - Execution types under `./types`
10
+ - Shared execution constants
11
+
12
+ ## Use When
13
+
14
+ - You need execution timeline or workflow graph helpers without pulling in visual shells.
15
+ - You need shared execution math or formatting utilities.
16
+
@@ -0,0 +1,28 @@
1
+ # Features
2
+
3
+ Feature subpaths package complete shell-level UI flows for downstream apps.
4
+
5
+ ## Published Feature Surfaces
6
+
7
+ - `./features/auth`
8
+ - `./features/crm`
9
+ - `./features/dashboard`
10
+ - `./features/delivery`
11
+ - `./features/lead-gen`
12
+ - `./features/operations`
13
+ - `./features/monitoring`
14
+ - `./features/seo`
15
+ - `./features/settings`
16
+
17
+ ## What They Contain
18
+
19
+ - Route shells and page-level components
20
+ - Sidebars and feature-specific navigation
21
+ - Feature manifests for registry consumers
22
+ - Feature-specific hooks and shared constants
23
+
24
+ ## Notes
25
+
26
+ - These surfaces are meant for app composition, not for low-level design-system primitives.
27
+ - Some feature exports are also re-exported through `./components` for convenience in legacy or mixed consumers.
28
+
@@ -0,0 +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
+
@@ -0,0 +1,24 @@
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 and knowledge-base 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.
24
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +1,31 @@
1
+ # Provider
2
+
3
+ The provider surface composes the shared Elevasis service, feature, appearance, notification, and UI providers.
4
+
5
+ ## Exports
6
+
7
+ - `ElevasisCoreProvider`
8
+ - `ElevasisFeaturesProvider`
9
+ - `useElevasisFeatures`
10
+ - `useOptionalElevasisFeatures`
11
+ - `FeatureShell`
12
+ - `AppearanceProvider`
13
+ - `useAppearance`
14
+ - `ElevasisServiceProvider`
15
+ - `useElevasisServices`
16
+ - `NotificationProvider`
17
+ - `useNotificationAdapter`
18
+ - `ElevasisUIProvider`
19
+ - Related provider and service types
20
+
21
+ ## Related Published Subpaths
22
+
23
+ - `./provider`
24
+ - `./provider/ui`
25
+ - `./provider/ElevasisServiceContext`
26
+
27
+ ## Notes
28
+
29
+ - `published.ts` is the external consumer surface.
30
+ - `ElevasisUIProvider` is the Mantine-facing visual layer; `ElevasisCoreProvider` and `ElevasisFeaturesProvider` handle the platform shell.
31
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +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
+
@@ -0,0 +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
+