@elevasis/ui 2.32.0 → 2.33.1
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/app/index.d.ts +3 -0
- package/dist/app/index.js +3 -3
- package/dist/{chunk-LLRXA7D7.js → chunk-2VYMDNJ3.js} +1 -1
- package/dist/{chunk-7KZINJLP.js → chunk-3YZRKADM.js} +4 -4
- package/dist/{chunk-MOY4VOHF.js → chunk-4AAZXKLL.js} +1 -1
- package/dist/{chunk-RQTWIXJ5.js → chunk-53436UTQ.js} +1 -1
- package/dist/{chunk-WQPX44YM.js → chunk-AV2TKVVV.js} +673 -168
- package/dist/chunk-CLDCYJQT.js +1 -0
- package/dist/chunk-DWXDNT7P.js +145 -0
- package/dist/{chunk-T35FWDAB.js → chunk-DYIDXUJS.js} +1089 -158
- package/dist/{chunk-IQHU7O5Y.js → chunk-F3MXFE72.js} +1 -1
- package/dist/{chunk-5FJJ72HU.js → chunk-FOUYP4JX.js} +1 -1
- package/dist/{chunk-QQHOKTJA.js → chunk-H6EFQP2P.js} +39 -2
- package/dist/{chunk-5J4PDX26.js → chunk-KW7ZNQD7.js} +16 -2
- package/dist/{chunk-ZQOKIGZP.js → chunk-NCEQGEW5.js} +4 -4
- package/dist/{chunk-6DWD423K.js → chunk-PIS24NIV.js} +1 -1
- package/dist/{chunk-4MFNGNHF.js → chunk-QVTIOT73.js} +2 -2
- package/dist/{chunk-GCOQ3TBG.js → chunk-SWMQTF2H.js} +2 -2
- package/dist/{chunk-4QK76KIF.js → chunk-UNVRVCXZ.js} +1 -1
- package/dist/{chunk-VRNMNB3O.js → chunk-UYRT7SPM.js} +1 -1
- package/dist/{chunk-IZWTVFJ2.js → chunk-V6SZ4ECN.js} +6 -3
- package/dist/{chunk-YLQEVSOR.js → chunk-WGUEIGPC.js} +202 -54
- package/dist/{chunk-QXCDKE2O.js → chunk-WJOE76FI.js} +9 -28
- package/dist/{chunk-QTI3KC7D.js → chunk-YENKDBUU.js} +106 -43
- package/dist/components/index.d.ts +117 -4
- package/dist/components/index.js +24 -23
- package/dist/components/navigation/index.js +4 -3
- package/dist/execution/index.d.ts +8 -3
- package/dist/features/auth/index.d.ts +3 -0
- package/dist/features/clients/index.js +8 -7
- package/dist/features/crm/index.d.ts +3 -0
- package/dist/features/crm/index.js +10 -9
- package/dist/features/dashboard/index.d.ts +113 -3
- package/dist/features/dashboard/index.js +9 -8
- package/dist/features/delivery/index.d.ts +3 -0
- package/dist/features/delivery/index.js +9 -8
- package/dist/features/knowledge/index.js +8 -18
- package/dist/features/lead-gen/index.js +10 -9
- package/dist/features/monitoring/index.js +10 -9
- package/dist/features/monitoring/requests/index.d.ts +2 -2
- package/dist/features/monitoring/requests/index.js +8 -7
- package/dist/features/operations/index.d.ts +560 -93
- package/dist/features/operations/index.js +13 -12
- package/dist/features/settings/index.d.ts +3 -0
- package/dist/features/settings/index.js +9 -8
- package/dist/hooks/delivery/index.d.ts +3 -0
- package/dist/hooks/index.d.ts +210 -6
- package/dist/hooks/index.js +8 -7
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +205 -4
- package/dist/hooks/published.d.ts +210 -6
- package/dist/hooks/published.js +8 -7
- package/dist/index.d.ts +565 -95
- package/dist/index.js +8 -7
- package/dist/initialization/index.d.ts +3 -0
- package/dist/knowledge/index.d.ts +577 -215
- package/dist/knowledge/index.js +1180 -689
- package/dist/knowledge-search-index-P7PR626V.js +1514 -0
- package/dist/layout/index.js +1 -1
- package/dist/profile/index.d.ts +3 -0
- package/dist/provider/index.d.ts +447 -73
- package/dist/provider/index.js +7 -6
- package/dist/provider/published.d.ts +447 -73
- package/dist/provider/published.js +5 -4
- package/dist/supabase/index.d.ts +6 -0
- package/dist/types/index.d.ts +208 -4
- package/dist/utils/index.d.ts +113 -3
- package/package.json +39 -39
- 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-UROTM5OR.js +0 -172
- package/dist/knowledge-search-index-5KYPO746.js +0 -1479
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
|
+
|
package/dist/chunk-UROTM5OR.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { IconMail, IconSend, IconFileText, IconClock, IconArrowUp, IconMessageCircle, IconRocket, IconEye, IconEdit, IconAlertTriangle, IconRefresh, IconX, IconCheck, IconArchive, IconShieldLock, IconSettings, IconBrain, IconChartBar, IconTool, IconBriefcase, IconLayoutGrid, IconTargetArrow, IconBuildingStore, IconCalendar, IconDashboard, IconInfoCircle, IconDatabase, IconGitBranch, IconTopologyStar3, IconActivity, IconUsers, IconUser, IconPlug, IconBook, IconApps, IconBuilding, IconBolt } from '@tabler/icons-react';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
// src/icons/registry.tsx
|
|
5
|
-
var DEFAULT_SEMANTIC_ICON_REGISTRY = {
|
|
6
|
-
"om.quick-access": IconBolt,
|
|
7
|
-
"om.profile": IconBuilding,
|
|
8
|
-
"om.business-model": IconBriefcase,
|
|
9
|
-
"om.systems": IconApps,
|
|
10
|
-
"om.graph": IconTopologyStar3,
|
|
11
|
-
"om.governance-wiring": IconShieldLock,
|
|
12
|
-
"nav.dashboard": IconDashboard,
|
|
13
|
-
"nav.calendar": IconCalendar,
|
|
14
|
-
"nav.sales": IconChartBar,
|
|
15
|
-
"nav.crm": IconBuildingStore,
|
|
16
|
-
"nav.lead-gen": IconTargetArrow,
|
|
17
|
-
"nav.projects": IconBriefcase,
|
|
18
|
-
"nav.operations": IconTool,
|
|
19
|
-
"nav.monitoring": IconChartBar,
|
|
20
|
-
"nav.knowledge": IconBrain,
|
|
21
|
-
"nav.settings": IconSettings,
|
|
22
|
-
"nav.admin": IconShieldLock,
|
|
23
|
-
"nav.archive": IconArchive,
|
|
24
|
-
"feature.dashboard": IconDashboard,
|
|
25
|
-
"feature.calendar": IconCalendar,
|
|
26
|
-
"feature.business": IconBuildingStore,
|
|
27
|
-
"feature.sales": IconChartBar,
|
|
28
|
-
"feature.crm": IconBuildingStore,
|
|
29
|
-
"feature.finance": IconChartBar,
|
|
30
|
-
"feature.lead-gen": IconTargetArrow,
|
|
31
|
-
"feature.platform": IconLayoutGrid,
|
|
32
|
-
"feature.projects": IconBriefcase,
|
|
33
|
-
"feature.operations": IconTool,
|
|
34
|
-
"feature.monitoring": IconChartBar,
|
|
35
|
-
"feature.knowledge": IconBrain,
|
|
36
|
-
"feature.settings": IconSettings,
|
|
37
|
-
"feature.admin": IconShieldLock,
|
|
38
|
-
"feature.archive": IconArchive,
|
|
39
|
-
"feature.seo": IconChartBar,
|
|
40
|
-
"knowledge.playbook": IconBook,
|
|
41
|
-
"knowledge.strategy": IconTargetArrow,
|
|
42
|
-
"knowledge.reference": IconFileText,
|
|
43
|
-
"resource.agent": IconBrain,
|
|
44
|
-
"resource.workflow": IconGitBranch,
|
|
45
|
-
"resource.integration": IconPlug,
|
|
46
|
-
"resource.database": IconDatabase,
|
|
47
|
-
"resource.user": IconUser,
|
|
48
|
-
"resource.team": IconUsers,
|
|
49
|
-
"entity.record": IconDatabase,
|
|
50
|
-
"event.lifecycle": IconActivity,
|
|
51
|
-
"policy.governance": IconShieldLock,
|
|
52
|
-
"integration.gmail": IconMail,
|
|
53
|
-
"integration.google-sheets": IconDatabase,
|
|
54
|
-
"integration.attio": IconBuildingStore,
|
|
55
|
-
"surface.dashboard": IconDashboard,
|
|
56
|
-
"surface.calendar": IconCalendar,
|
|
57
|
-
"surface.overview": IconDashboard,
|
|
58
|
-
"surface.command-view": IconTopologyStar3,
|
|
59
|
-
"surface.command-queue": IconSend,
|
|
60
|
-
"surface.pipeline": IconGitBranch,
|
|
61
|
-
"surface.lists": IconFileText,
|
|
62
|
-
"surface.resources": IconDatabase,
|
|
63
|
-
"surface.settings": IconSettings,
|
|
64
|
-
"action.approve": IconCheck,
|
|
65
|
-
"action.reject": IconX,
|
|
66
|
-
"action.retry": IconRefresh,
|
|
67
|
-
"action.edit": IconEdit,
|
|
68
|
-
"action.view": IconEye,
|
|
69
|
-
"action.launch": IconRocket,
|
|
70
|
-
"action.message": IconMessageCircle,
|
|
71
|
-
"action.escalate": IconAlertTriangle,
|
|
72
|
-
"action.promote": IconArrowUp,
|
|
73
|
-
"action.submit": IconSend,
|
|
74
|
-
"action.email": IconMail,
|
|
75
|
-
"status.success": IconCheck,
|
|
76
|
-
"status.error": IconX,
|
|
77
|
-
"status.warning": IconAlertTriangle,
|
|
78
|
-
"status.pending": IconClock,
|
|
79
|
-
"status.info": IconInfoCircle,
|
|
80
|
-
// Compatibility aliases for pre-semantic template/navigation payloads.
|
|
81
|
-
dashboard: IconDashboard,
|
|
82
|
-
calendar: IconCalendar,
|
|
83
|
-
sales: IconChartBar,
|
|
84
|
-
crm: IconBuildingStore,
|
|
85
|
-
finance: IconChartBar,
|
|
86
|
-
"lead-gen": IconTargetArrow,
|
|
87
|
-
platform: IconLayoutGrid,
|
|
88
|
-
projects: IconBriefcase,
|
|
89
|
-
operations: IconTool,
|
|
90
|
-
monitoring: IconChartBar,
|
|
91
|
-
knowledge: IconBrain,
|
|
92
|
-
settings: IconSettings,
|
|
93
|
-
admin: IconShieldLock,
|
|
94
|
-
archive: IconArchive,
|
|
95
|
-
// Compatibility aliases for existing command queue payloads.
|
|
96
|
-
IconCheck,
|
|
97
|
-
IconX,
|
|
98
|
-
IconRefresh,
|
|
99
|
-
IconAlertTriangle,
|
|
100
|
-
IconEdit,
|
|
101
|
-
IconEye,
|
|
102
|
-
IconRocket,
|
|
103
|
-
IconMessageCircle,
|
|
104
|
-
IconArrowUp,
|
|
105
|
-
IconClock,
|
|
106
|
-
IconFileText,
|
|
107
|
-
IconSend,
|
|
108
|
-
IconMail
|
|
109
|
-
};
|
|
110
|
-
var FALLBACK_TOKEN_BY_KIND = {
|
|
111
|
-
knowledge: "knowledge.reference",
|
|
112
|
-
playbook: "knowledge.playbook",
|
|
113
|
-
strategy: "knowledge.strategy",
|
|
114
|
-
reference: "knowledge.reference",
|
|
115
|
-
feature: "feature.operations",
|
|
116
|
-
resource: "resource.workflow",
|
|
117
|
-
integration: "resource.integration",
|
|
118
|
-
action: "action.view",
|
|
119
|
-
entity: "entity.record",
|
|
120
|
-
event: "event.lifecycle",
|
|
121
|
-
policy: "policy.governance",
|
|
122
|
-
status: "status.info",
|
|
123
|
-
nav: "nav.dashboard",
|
|
124
|
-
unknown: "status.info"
|
|
125
|
-
};
|
|
126
|
-
var semanticIconRegistry = { ...DEFAULT_SEMANTIC_ICON_REGISTRY };
|
|
127
|
-
function extendSemanticIconRegistry(overrides) {
|
|
128
|
-
semanticIconRegistry = { ...semanticIconRegistry, ...overrides };
|
|
129
|
-
}
|
|
130
|
-
function getSemanticIconComponent(token, fallbackKind = "unknown", fallbackToken) {
|
|
131
|
-
const icon = resolveSemanticIconComponent(token);
|
|
132
|
-
if (icon) return icon;
|
|
133
|
-
if (fallbackToken && semanticIconRegistry[fallbackToken]) return semanticIconRegistry[fallbackToken];
|
|
134
|
-
return semanticIconRegistry[FALLBACK_TOKEN_BY_KIND[fallbackKind]] ?? IconInfoCircle;
|
|
135
|
-
}
|
|
136
|
-
function resolveSemanticIconComponent(token) {
|
|
137
|
-
if (!token) return null;
|
|
138
|
-
return semanticIconRegistry[token] ?? null;
|
|
139
|
-
}
|
|
140
|
-
function SemanticIcon({
|
|
141
|
-
token,
|
|
142
|
-
fallbackKind = "unknown",
|
|
143
|
-
fallbackToken,
|
|
144
|
-
size = 16,
|
|
145
|
-
stroke = 1.8,
|
|
146
|
-
className,
|
|
147
|
-
style,
|
|
148
|
-
"aria-hidden": ariaHidden = true
|
|
149
|
-
}) {
|
|
150
|
-
const Icon = getSemanticIconComponent(token, fallbackKind, fallbackToken);
|
|
151
|
-
return /* @__PURE__ */ jsx(
|
|
152
|
-
"span",
|
|
153
|
-
{
|
|
154
|
-
className,
|
|
155
|
-
"aria-hidden": ariaHidden,
|
|
156
|
-
style: {
|
|
157
|
-
display: "inline-flex",
|
|
158
|
-
alignItems: "center",
|
|
159
|
-
justifyContent: "center",
|
|
160
|
-
width: size,
|
|
161
|
-
height: size,
|
|
162
|
-
minWidth: size,
|
|
163
|
-
color: "currentColor",
|
|
164
|
-
flexShrink: 0,
|
|
165
|
-
...style
|
|
166
|
-
},
|
|
167
|
-
children: /* @__PURE__ */ jsx(Icon, { size, stroke })
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export { SemanticIcon, extendSemanticIconRegistry, getSemanticIconComponent, resolveSemanticIconComponent };
|