@elevasis/ui 2.81.0 → 2.83.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/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +68 -3710
- package/dist/app/index.js +12 -10
- package/dist/auth/index.d.ts +2 -3
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.d.ts +10 -10
- package/dist/charts/index.js +4 -4
- package/dist/{chunk-AI5OYVLR.js → chunk-2WXFPHBV.js} +1 -1
- package/dist/{chunk-7D4FKBB4.js → chunk-34YVWPW6.js} +1 -1
- package/dist/{chunk-BLYK6I4D.js → chunk-4ILZBLQY.js} +1 -1
- package/dist/{chunk-TLMNBOAG.js → chunk-6DWWZXLS.js} +5 -5
- package/dist/{chunk-LTRJZOHA.js → chunk-7D6ZLLOZ.js} +1 -1
- package/dist/chunk-BIKD5UUM.js +386 -0
- package/dist/{chunk-HDLYC63N.js → chunk-CEP5A55J.js} +1 -1
- package/dist/{chunk-JLKZUO2I.js → chunk-CUJBF3X6.js} +1 -1
- package/dist/{chunk-PNCJJE4Z.js → chunk-DRTC7LRG.js} +1 -1
- package/dist/{chunk-ROC2TFPS.js → chunk-EEONAV4R.js} +2 -2
- package/dist/{chunk-HDITVHZT.js → chunk-EHWHG6PW.js} +2 -2
- package/dist/{chunk-AKANHRQ5.js → chunk-GKTQEVSO.js} +3 -4
- package/dist/{chunk-7RS2NUC6.js → chunk-IR7HVER2.js} +1 -1
- package/dist/{chunk-3ZADOARU.js → chunk-IYY27OLF.js} +5 -5
- package/dist/{chunk-LGJASP5H.js → chunk-JCETE623.js} +1 -1
- package/dist/{chunk-42C2WVYU.js → chunk-JJCY23X3.js} +2 -2
- package/dist/{chunk-XUL4UBYJ.js → chunk-JPQNXH4X.js} +3 -3
- package/dist/{chunk-SWC54W3A.js → chunk-JXS2LDGN.js} +2 -2
- package/dist/{chunk-G6VHIXWD.js → chunk-KQ2YSAXL.js} +1 -1
- package/dist/{chunk-SOBKRB4N.js → chunk-LACAXGZK.js} +1 -1
- package/dist/{chunk-QFKOHZM3.js → chunk-LKM32PP6.js} +3 -3
- package/dist/{chunk-PJN6CMWZ.js → chunk-LKZV5TDL.js} +1 -1
- package/dist/{chunk-ILOKKA6L.js → chunk-MZXUISBI.js} +11 -12
- package/dist/{chunk-K635QVGI.js → chunk-N5O5OYLB.js} +8 -8
- package/dist/{chunk-FPRDEKFY.js → chunk-OC7TYJ75.js} +1 -1
- package/dist/{chunk-6YWBMLEM.js → chunk-PQEGQ63N.js} +8 -9
- package/dist/{chunk-52AZTFUR.js → chunk-QQ3JCEN2.js} +5 -5
- package/dist/{chunk-SHJYK2X4.js → chunk-U727JFPK.js} +3 -3
- package/dist/{chunk-DEZW7QDI.js → chunk-VFWOUD3M.js} +31 -2
- package/dist/{chunk-PSGSFPWA.js → chunk-VGHYGEPR.js} +98 -30
- package/dist/{chunk-LTKBVL7D.js → chunk-WYFNXCDJ.js} +4 -4
- package/dist/{chunk-KU7KN5VN.js → chunk-XYRMUHWN.js} +1 -1
- package/dist/{chunk-O4XUKLRY.js → chunk-YZ47UWV5.js} +1 -1
- package/dist/{chunk-5GYJ3IDO.js → chunk-YZ5Q34MK.js} +11 -6
- package/dist/{chunk-QEQXPWOK.js → chunk-ZS3BJLOJ.js} +9 -9
- package/dist/components/chat/index.d.ts +4 -5
- package/dist/components/index.d.ts +210 -198
- package/dist/components/index.js +38 -39
- package/dist/components/navigation/index.js +5 -5
- package/dist/execution/index.d.ts +2 -2
- package/dist/features/auth/index.d.ts +6 -6
- package/dist/features/auth/index.js +6 -6
- package/dist/features/clients/index.d.ts +11 -11
- package/dist/features/clients/index.js +7 -7
- package/dist/features/content/index.d.ts +36 -24
- package/dist/features/content/index.js +7 -7
- package/dist/features/crm/index.d.ts +29 -17
- package/dist/features/crm/index.js +9 -10
- package/dist/features/dashboard/index.d.ts +12 -6
- package/dist/features/dashboard/index.js +6 -6
- package/dist/features/delivery/index.d.ts +13 -13
- package/dist/features/delivery/index.js +17 -17
- package/dist/features/knowledge/index.js +4 -4
- package/dist/features/lead-gen/index.d.ts +40 -26
- package/dist/features/lead-gen/index.js +10 -11
- package/dist/features/monitoring/index.d.ts +8 -8
- package/dist/features/monitoring/index.js +8 -8
- package/dist/features/monitoring/requests/index.d.ts +10 -10
- package/dist/features/monitoring/requests/index.js +6 -6
- package/dist/features/notes/index.d.ts +7 -7
- package/dist/features/operations/index.d.ts +42 -30
- package/dist/features/operations/index.js +11 -11
- package/dist/features/public-agent-chat/index.d.ts +3 -3
- package/dist/features/right-panel-host/index.d.ts +3 -3
- package/dist/features/seo/index.d.ts +7 -7
- package/dist/features/seo/index.js +7 -7
- package/dist/features/settings/index.d.ts +13 -13
- package/dist/features/settings/index.js +7 -7
- package/dist/hooks/access/index.js +4 -4
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/published.d.ts +21 -7
- package/dist/hooks/published.js +15 -15
- package/dist/knowledge/index.d.ts +65 -37
- package/dist/knowledge/index.js +20 -7185
- package/dist/layout/index.d.ts +48 -48
- package/dist/layout/index.js +8 -8
- package/dist/organization/index.d.ts +2 -3
- package/dist/provider/ElevasisServiceContext.d.ts +1 -2
- package/dist/provider/index.d.ts +103 -3736
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +80 -3721
- package/dist/provider/published.js +4 -4
- package/dist/router/index.d.ts +2 -3
- package/dist/test-utils/index.d.ts +4 -4
- package/dist/test-utils/index.js +3 -3
- package/dist/types/index.d.ts +6 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +5 -5
- package/src/knowledge/README.md +32 -32
- package/dist/chunk-6J3SCCZ2.js +0 -200
- package/dist/chunk-75OLN23F.js +0 -231
- package/dist/knowledge-search-index-UPKXCXQP.js +0 -1539
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, selectDeclaredSystems, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-
|
|
1
|
+
export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, selectDeclaredSystems, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-VGHYGEPR.js';
|
|
2
2
|
import '../chunk-4WLAVUPS.js';
|
|
3
3
|
import '../chunk-RXZ3XDBM.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-IR7HVER2.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-DRTC7LRG.js';
|
|
7
7
|
import '../chunk-62GVNH5U.js';
|
|
8
8
|
import '../chunk-P45GQ3ZW.js';
|
|
9
9
|
import '../chunk-IIMC4TRH.js';
|
|
@@ -14,7 +14,7 @@ import '../chunk-YJ437RDY.js';
|
|
|
14
14
|
import '../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../chunk-RNP5R5I3.js';
|
|
16
16
|
import '../chunk-RT4KRGZT.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-VFWOUD3M.js';
|
|
18
18
|
import '../chunk-6XBZPKMI.js';
|
|
19
19
|
import '../chunk-7ZUXA2NW.js';
|
|
20
20
|
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BI5VDO2K.js';
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
|
|
5
4
|
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6
5
|
to: string;
|
|
@@ -26,7 +25,7 @@ declare function RouterProvider({ value, children }: {
|
|
|
26
25
|
*/
|
|
27
26
|
declare function TanStackRouterBridge({ children }: {
|
|
28
27
|
children: ReactNode;
|
|
29
|
-
}):
|
|
28
|
+
}): react.JSX.Element;
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* Resets scroll position to the top of the nearest scrollable ancestor on every
|
|
@@ -37,7 +36,7 @@ declare function TanStackRouterBridge({ children }: {
|
|
|
37
36
|
* Place this component directly inside the app shell's content area, above
|
|
38
37
|
* `<Outlet />`.
|
|
39
38
|
*/
|
|
40
|
-
declare function ScrollToTop():
|
|
39
|
+
declare function ScrollToTop(): react.JSX.Element;
|
|
41
40
|
|
|
42
41
|
export { RouterProvider, ScrollToTop, TanStackRouterBridge, useRouterContext };
|
|
43
42
|
export type { LinkProps, RouterAdapter };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react$1 from 'react';
|
|
2
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
4
|
import { RenderHookOptions, RenderOptions, render, renderHook } from '@testing-library/react';
|
|
4
5
|
export * from '@testing-library/react';
|
|
5
|
-
import { ReactNode, ReactElement } from 'react';
|
|
6
6
|
import * as vitest from 'vitest';
|
|
7
7
|
import * as msw_node from 'msw/node';
|
|
8
8
|
import * as msw from 'msw';
|
|
@@ -49,7 +49,7 @@ interface TestProvidersProps {
|
|
|
49
49
|
apiRequest?: ApiRequest;
|
|
50
50
|
isServiceReady?: boolean;
|
|
51
51
|
}
|
|
52
|
-
declare function TestProviders({ children, queryClient, getAccessToken, organizationId, isOrganizationReady, apiRequest, isServiceReady }: TestProvidersProps):
|
|
52
|
+
declare function TestProviders({ children, queryClient, getAccessToken, organizationId, isOrganizationReady, apiRequest, isServiceReady }: TestProvidersProps): react$1.JSX.Element;
|
|
53
53
|
interface CustomRenderOptions extends Omit<RenderOptions, 'wrapper'> {
|
|
54
54
|
queryClient?: QueryClient;
|
|
55
55
|
getAccessToken?: () => Promise<string | undefined>;
|
|
@@ -70,7 +70,7 @@ interface CustomRenderHookOptions<TProps> extends Omit<RenderHookOptions<TProps>
|
|
|
70
70
|
declare function renderHookWithProviders<TResult, TProps>(hook: (props: TProps) => TResult, options?: CustomRenderHookOptions<TProps>): ReturnType<typeof renderHook<TResult, TProps>>;
|
|
71
71
|
declare function createTestWrapper(options?: Omit<TestProvidersProps, 'children'>): ({ children }: {
|
|
72
72
|
children: ReactNode;
|
|
73
|
-
}) =>
|
|
73
|
+
}) => react$1.JSX.Element;
|
|
74
74
|
|
|
75
75
|
declare const mockWorkOSUser: {
|
|
76
76
|
id: string;
|
package/dist/test-utils/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { server, handlers } from '../chunk-7XKCG5CT.js';
|
|
|
2
2
|
export { handlers, server } from '../chunk-7XKCG5CT.js';
|
|
3
3
|
import { mockWorkOSUser, mockUseAuth, mockUnauthenticatedUser, mockAuthenticatedUser, mockAuthLoading, createMockUseAuth } from '../chunk-N7U24M2J.js';
|
|
4
4
|
export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-N7U24M2J.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import { ApiClientProvider } from '../chunk-
|
|
5
|
+
import '../chunk-KQ2YSAXL.js';
|
|
6
|
+
import { ApiClientProvider } from '../chunk-IR7HVER2.js';
|
|
7
7
|
import '../chunk-DD3CCMCZ.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-VFWOUD3M.js';
|
|
9
9
|
import '../chunk-6XBZPKMI.js';
|
|
10
10
|
import '../chunk-7ZUXA2NW.js';
|
|
11
11
|
import { ElevasisServiceProvider } from '../chunk-BI5VDO2K.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4862,12 +4862,18 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4862
4862
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4863
4863
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4864
4864
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4865
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
4865
4866
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4866
4867
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4867
4868
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
4868
4869
|
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4869
4870
|
lifecycle: z.ZodOptional<z.ZodString>;
|
|
4870
4871
|
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
4872
|
+
availableFrom: z.ZodOptional<z.ZodObject<{
|
|
4873
|
+
stageKeys: z.ZodArray<z.ZodString>;
|
|
4874
|
+
stateKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4875
|
+
nextActionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4876
|
+
}, z.core.$strict>>;
|
|
4871
4877
|
}, z.core.$strict>>>>;
|
|
4872
4878
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4873
4879
|
id: z.ZodString;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -116,12 +116,18 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
116
116
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
117
117
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
118
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
119
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
119
120
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
120
121
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
121
122
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
122
123
|
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
123
124
|
lifecycle: z.ZodOptional<z.ZodString>;
|
|
124
125
|
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
availableFrom: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
stageKeys: z.ZodArray<z.ZodString>;
|
|
128
|
+
stateKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
|
+
nextActionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
125
131
|
}, z.core.$strict>>>>;
|
|
126
132
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
127
133
|
id: z.ZodString;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, buildQueryString, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getSystemReadinessServerErrorDetails, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-
|
|
1
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, buildQueryString, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getSystemReadinessServerErrorDetails, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-VFWOUD3M.js';
|
|
2
2
|
export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from '../chunk-6XBZPKMI.js';
|
|
3
3
|
export { ResourceStatusColors } from '../chunk-7ZUXA2NW.js';
|
|
4
4
|
import '../chunk-34B3ACOZ.js';
|
package/dist/vite/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { knowledgePlugin } from '../chunk-
|
|
2
|
-
export { knowledgePlugin } from '../chunk-
|
|
1
|
+
import { knowledgePlugin } from '../chunk-GKTQEVSO.js';
|
|
2
|
+
export { knowledgePlugin } from '../chunk-GKTQEVSO.js';
|
|
3
3
|
import '../chunk-I2KLQ2HA.js';
|
|
4
4
|
import { existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { resolve } from 'path';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { knowledgePlugin } from '../chunk-
|
|
1
|
+
export { knowledgePlugin } from '../chunk-GKTQEVSO.js';
|
|
2
2
|
import '../chunk-I2KLQ2HA.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.83.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",
|
|
@@ -280,11 +280,11 @@
|
|
|
280
280
|
"typescript": "5.9.2",
|
|
281
281
|
"vite": "^7.0.0",
|
|
282
282
|
"vitest": "^3.2.4",
|
|
283
|
-
"@
|
|
284
|
-
"@
|
|
283
|
+
"@elevasis/sdk": "1.56.0",
|
|
284
|
+
"@repo/core": "0.73.0",
|
|
285
285
|
"@repo/elevasis-core": "1.0.0",
|
|
286
|
-
"@repo/
|
|
287
|
-
"@repo/
|
|
286
|
+
"@repo/typescript-config": "0.0.0",
|
|
287
|
+
"@repo/eslint-config": "0.0.0"
|
|
288
288
|
},
|
|
289
289
|
"dependencies": {
|
|
290
290
|
"@dagrejs/dagre": "^1.1.4",
|
package/src/knowledge/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
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
|
|
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 built in-memory from the live `knowledgeNodes` prop. |
|
|
14
14
|
| `KnowledgeNodeDetailRouteView` | Shared `/knowledge/$nodeId` content route view; apps keep TanStack route adapters and navigation wiring local. |
|
|
15
|
-
| `KnowledgeRouteIds` helpers | Decode route ids, resolve Knowledge route targets, and derive route labels for app-local breadcrumbs.
|
|
16
|
-
| `KnowledgeSidebarMiddle` | Deprecated legacy sidebar middle section; active sidebar lives under `features/knowledge/sidebar`.
|
|
17
|
-
| `KNOWLEDGE_ITEMS` | Deprecated default sidebar nav items retained for compatibility.
|
|
18
|
-
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`).
|
|
19
|
-
| `
|
|
20
|
-
|
|
21
|
-
## Customization tiers
|
|
22
|
-
|
|
23
|
-
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
24
|
-
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
25
|
-
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
26
|
-
|
|
27
|
-
## Codegen
|
|
28
|
-
|
|
29
|
-
`
|
|
30
|
-
|
|
31
|
-
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
32
|
-
|
|
33
|
-
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
|
15
|
+
| `KnowledgeRouteIds` helpers | Decode route ids, resolve Knowledge route targets, and derive route labels for app-local breadcrumbs. |
|
|
16
|
+
| `KnowledgeSidebarMiddle` | Deprecated legacy sidebar middle section; active sidebar lives under `features/knowledge/sidebar`. |
|
|
17
|
+
| `KNOWLEDGE_ITEMS` | Deprecated default sidebar nav items retained for compatibility. |
|
|
18
|
+
| `KnowledgeMDXProvider`, `useKnowledgeAllowlist`, `KNOWLEDGE_ALLOWLIST` | MDX runtime allowlist (`Card`, `Cards`, `Step`, `Steps`, `Callout`, `Tab`, `Tabs`). |
|
|
19
|
+
| `KnowledgeBodiesMap` | Type for the compiled MDX-component-by-node-id map. `@elevasis/ui` ships this type only, not a corpus. |
|
|
20
|
+
|
|
21
|
+
## Customization tiers
|
|
22
|
+
|
|
23
|
+
1. **Default** — mount `knowledgeManifest` from `@elevasis/ui/features/knowledge`.
|
|
24
|
+
2. **Extend** — pass `extraComponents` to `KnowledgeMDXProvider` or compose around the feature sidebar primitives.
|
|
25
|
+
3. **Replace** — call `@elevasis/core/knowledge` queries directly from project-owned routes.
|
|
26
|
+
|
|
27
|
+
## Codegen
|
|
28
|
+
|
|
29
|
+
This package ships the machinery only, not a compiled corpus. Each consumer generates its own `knowledge-bodies.tsx` (matching `KnowledgeBodiesMap`) beside its own Organization Model and hands it to `ElevasisSystemsProvider` as the required `knowledgeBodies` prop. In the monorepo that lives at `packages/elevasis/core/config/knowledge/_generated/`, sourced from `canonicalOrganizationModel.knowledge.nodes`; in an external project it lives at `<project-root>/core/config/knowledge/_generated/`. Regenerate with `pnpm scaffold:sync` (or `pnpm knowledge:generate` for only the knowledge step).
|
|
30
|
+
|
|
31
|
+
The Vite plugin at `@elevasis/ui/vite-plugin-knowledge` re-runs codegen on `buildStart` and watches the OM source dir for HMR.
|
|
32
|
+
|
|
33
|
+
Phase 1 is read-only. Phase 2 will move bodies into Supabase and ship via `mdx-bundler`.
|
package/dist/chunk-6J3SCCZ2.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { getLeadGenStageCatalog } from './chunk-PSGSFPWA.js';
|
|
2
|
-
import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, getSystem, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-DEZW7QDI.js';
|
|
3
|
-
|
|
4
|
-
// ../core/src/business/acquisition/ontology-validation.ts
|
|
5
|
-
var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
|
|
6
|
-
var CRM_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[1];
|
|
7
|
-
var LEAD_GEN_CRM_HANDOFF_INTERFACE = SYSTEM_INTERFACE_PROFILES[2];
|
|
8
|
-
LEAD_GEN_API_INTERFACE.readinessProfile;
|
|
9
|
-
CRM_API_INTERFACE.readinessProfile;
|
|
10
|
-
LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile;
|
|
11
|
-
var LEAD_GEN_LIST_OBJECT_ONTOLOGY_ID = formatOntologyId({
|
|
12
|
-
scope: "sales.lead-gen",
|
|
13
|
-
kind: "object",
|
|
14
|
-
localId: "list"
|
|
15
|
-
});
|
|
16
|
-
var LEAD_GEN_COMPANY_OBJECT_ONTOLOGY_ID = formatOntologyId({
|
|
17
|
-
scope: "sales.lead-gen",
|
|
18
|
-
kind: "object",
|
|
19
|
-
localId: "company"
|
|
20
|
-
});
|
|
21
|
-
var LEAD_GEN_CONTACT_OBJECT_ONTOLOGY_ID = formatOntologyId({
|
|
22
|
-
scope: "sales.lead-gen",
|
|
23
|
-
kind: "object",
|
|
24
|
-
localId: "contact"
|
|
25
|
-
});
|
|
26
|
-
var LEAD_GEN_BUILD_TEMPLATE_CATALOG_ONTOLOGY_ID = formatOntologyId({
|
|
27
|
-
scope: "sales.lead-gen",
|
|
28
|
-
kind: "catalog",
|
|
29
|
-
localId: "build-template"
|
|
30
|
-
});
|
|
31
|
-
var LEAD_GEN_COMPANY_STAGE_CATALOG_ONTOLOGY_ID = formatOntologyId({
|
|
32
|
-
scope: "sales.lead-gen",
|
|
33
|
-
kind: "catalog",
|
|
34
|
-
localId: "company-stage"
|
|
35
|
-
});
|
|
36
|
-
var LEAD_GEN_CONTACT_STAGE_CATALOG_ONTOLOGY_ID = formatOntologyId({
|
|
37
|
-
scope: "sales.lead-gen",
|
|
38
|
-
kind: "catalog",
|
|
39
|
-
localId: "contact-stage"
|
|
40
|
-
});
|
|
41
|
-
var CRM_PIPELINE_CATALOG_ONTOLOGY_ID = formatOntologyId({
|
|
42
|
-
scope: "sales.crm",
|
|
43
|
-
kind: "catalog",
|
|
44
|
-
localId: "crm.pipeline"
|
|
45
|
-
});
|
|
46
|
-
var LEAD_GEN_STAGE_CATALOG_ONTOLOGY_ID = formatOntologyId({
|
|
47
|
-
scope: "sales.lead-gen",
|
|
48
|
-
kind: "catalog",
|
|
49
|
-
localId: "lead-gen.stage-catalog"
|
|
50
|
-
});
|
|
51
|
-
var LEAD_GEN_API_READINESS_CONTRACT = {
|
|
52
|
-
requiredObjects: [
|
|
53
|
-
LEAD_GEN_LIST_OBJECT_ONTOLOGY_ID,
|
|
54
|
-
LEAD_GEN_COMPANY_OBJECT_ONTOLOGY_ID,
|
|
55
|
-
LEAD_GEN_CONTACT_OBJECT_ONTOLOGY_ID
|
|
56
|
-
],
|
|
57
|
-
requiredCatalogs: [
|
|
58
|
-
LEAD_GEN_BUILD_TEMPLATE_CATALOG_ONTOLOGY_ID,
|
|
59
|
-
LEAD_GEN_COMPANY_STAGE_CATALOG_ONTOLOGY_ID,
|
|
60
|
-
LEAD_GEN_CONTACT_STAGE_CATALOG_ONTOLOGY_ID
|
|
61
|
-
]
|
|
62
|
-
};
|
|
63
|
-
var CRM_API_READINESS_CONTRACT = {
|
|
64
|
-
requiredObjects: [],
|
|
65
|
-
requiredCatalogs: [CRM_PIPELINE_CATALOG_ONTOLOGY_ID]
|
|
66
|
-
};
|
|
67
|
-
function isPlainRecord(value) {
|
|
68
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
69
|
-
}
|
|
70
|
-
function createLeadGenStageCatalog(model) {
|
|
71
|
-
return {
|
|
72
|
-
id: LEAD_GEN_STAGE_CATALOG_ONTOLOGY_ID,
|
|
73
|
-
label: "Lead Gen Processing Stages",
|
|
74
|
-
ownerSystemId: "sales.lead-gen",
|
|
75
|
-
kind: "processing-stage-catalog",
|
|
76
|
-
entries: Object.fromEntries(
|
|
77
|
-
Object.entries(getLeadGenStageCatalog(model)).map(([key, entry]) => [
|
|
78
|
-
key,
|
|
79
|
-
{
|
|
80
|
-
...entry
|
|
81
|
-
}
|
|
82
|
-
])
|
|
83
|
-
),
|
|
84
|
-
legacyCatalogKey: "LEAD_GEN_STAGE_CATALOG"
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function requireLeadGenSupplementalReadiness(issues, index, resources, context) {
|
|
88
|
-
const catalogs = resourceBindingIds(resources, "usesCatalogs");
|
|
89
|
-
const templateStepCatalog = findLeadGenTemplateStepCatalog(index);
|
|
90
|
-
if (templateStepCatalog === void 0) {
|
|
91
|
-
addReadinessIssue(
|
|
92
|
-
issues,
|
|
93
|
-
"SYSTEM_INTERFACE_NOT_READY",
|
|
94
|
-
"missing-template-step-catalog",
|
|
95
|
-
`System Interface "${formatInterfaceIdentity(context.systemPath, context.interfaceKey)}" is missing a lead-gen template-step catalog.`
|
|
96
|
-
);
|
|
97
|
-
} else {
|
|
98
|
-
requireCatalogReadiness(issues, index, templateStepCatalog.id, context);
|
|
99
|
-
requireScopedBinding(issues, catalogs, "usesCatalogs", templateStepCatalog.id, context);
|
|
100
|
-
}
|
|
101
|
-
requireCatalogReadiness(issues, index, LEAD_GEN_STAGE_CATALOG_ONTOLOGY_ID, context);
|
|
102
|
-
}
|
|
103
|
-
function requireLeadGenInterfaceReadiness(issues, index, resources, context) {
|
|
104
|
-
requireContractReadiness(issues, index, resources, LEAD_GEN_API_READINESS_CONTRACT, context);
|
|
105
|
-
requireLeadGenSupplementalReadiness(issues, index, resources, context);
|
|
106
|
-
}
|
|
107
|
-
function requireCrmInterfaceReadiness(issues, index, resources, context) {
|
|
108
|
-
requireContractReadiness(issues, index, resources, CRM_API_READINESS_CONTRACT, context);
|
|
109
|
-
}
|
|
110
|
-
function findSystemInterfaceGrant(model, consumer, provider) {
|
|
111
|
-
return Object.values(model.topology?.relationships ?? {}).find((relationship) => {
|
|
112
|
-
const grant = relationship.metadata?.["systemInterfaceGrant"];
|
|
113
|
-
if (!isPlainRecord(grant) || !isPlainRecord(grant.consumer) || !isPlainRecord(grant.provider)) return false;
|
|
114
|
-
return grant.consumer.systemPath === consumer.systemPath && grant.consumer.interfaceKey === consumer.interfaceKey && grant.provider.systemPath === provider.systemPath && grant.provider.interfaceKey === provider.interfaceKey;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function requireHandoffBridgeReadiness(issues, model, context) {
|
|
118
|
-
const crmResult = computeInterfaceReadiness(model, CRM_API_INTERFACE);
|
|
119
|
-
if (!crmResult.ready) {
|
|
120
|
-
for (const issue of crmResult.issues) {
|
|
121
|
-
addReadinessIssue(
|
|
122
|
-
issues,
|
|
123
|
-
"SYSTEM_BRIDGE_NOT_READY",
|
|
124
|
-
issue.code,
|
|
125
|
-
`Provider interface ${formatInterfaceIdentity(CRM_API_INTERFACE.systemPath, CRM_API_INTERFACE.interfaceKey)} is not ready: ${issue.message}`,
|
|
126
|
-
{ path: issue.path, ref: issue.ref }
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
const bridgeGrant = findSystemInterfaceGrant(model, context, CRM_API_INTERFACE);
|
|
131
|
-
if (bridgeGrant === void 0) {
|
|
132
|
-
addReadinessIssue(
|
|
133
|
-
issues,
|
|
134
|
-
"SYSTEM_BRIDGE_NOT_READY",
|
|
135
|
-
"missing-topology-grant",
|
|
136
|
-
`System Interface "${formatInterfaceIdentity(context.systemPath, context.interfaceKey)}" requires a scoped topology grant to "${formatInterfaceIdentity(CRM_API_INTERFACE.systemPath, CRM_API_INTERFACE.interfaceKey)}".`
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
return bridgeGrant;
|
|
140
|
-
}
|
|
141
|
-
function getLeadGenCrmHandoffResourceIds(model) {
|
|
142
|
-
return Object.values(model.resources ?? {}).filter(
|
|
143
|
-
(resource) => resource.systemPath === LEAD_GEN_CRM_HANDOFF_INTERFACE.systemPath && resource.ontology?.usesCatalogs?.includes(CRM_PIPELINE_CATALOG_ONTOLOGY_ID) === true
|
|
144
|
-
).map((resource) => resource.id);
|
|
145
|
-
}
|
|
146
|
-
function isLeadGenCrmHandoffAdopted(model) {
|
|
147
|
-
return getSystem(model, LEAD_GEN_API_INTERFACE.systemPath)?.apiInterface !== void 0 && getSystem(model, CRM_API_INTERFACE.systemPath)?.apiInterface !== void 0;
|
|
148
|
-
}
|
|
149
|
-
function mergeLeadGenDerivedCatalogs(model) {
|
|
150
|
-
const baseCatalogTypes = model.ontology?.catalogTypes ?? {};
|
|
151
|
-
const derivedCatalogTypes = {};
|
|
152
|
-
if (baseCatalogTypes[LEAD_GEN_STAGE_CATALOG_ONTOLOGY_ID] === void 0) {
|
|
153
|
-
derivedCatalogTypes[LEAD_GEN_STAGE_CATALOG_ONTOLOGY_ID] = createLeadGenStageCatalog(model);
|
|
154
|
-
}
|
|
155
|
-
if (Object.keys(derivedCatalogTypes).length === 0) return model;
|
|
156
|
-
return {
|
|
157
|
-
...model,
|
|
158
|
-
ontology: {
|
|
159
|
-
...model.ontology ?? {},
|
|
160
|
-
catalogTypes: {
|
|
161
|
-
...baseCatalogTypes,
|
|
162
|
-
...derivedCatalogTypes
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
registerBuiltInReadinessProfile(LEAD_GEN_API_INTERFACE.readinessProfile, {
|
|
168
|
-
validate: (issues, index, resources, _model, context) => requireLeadGenInterfaceReadiness(issues, index, resources, context),
|
|
169
|
-
prepareModel: mergeLeadGenDerivedCatalogs
|
|
170
|
-
});
|
|
171
|
-
registerBuiltInReadinessProfile(CRM_API_INTERFACE.readinessProfile, {
|
|
172
|
-
validate: (issues, index, resources, _model, context) => requireCrmInterfaceReadiness(issues, index, resources, context)
|
|
173
|
-
});
|
|
174
|
-
registerBuiltInReadinessProfile(LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile, {
|
|
175
|
-
validate: (issues, index, resources, model, context) => {
|
|
176
|
-
requireLeadGenInterfaceReadiness(issues, index, resources, context);
|
|
177
|
-
requireCrmInterfaceReadiness(issues, index, resources, { ...context, allowForeignOwner: true });
|
|
178
|
-
requireHandoffBridgeReadiness(issues, model, context);
|
|
179
|
-
},
|
|
180
|
-
prepareModel: mergeLeadGenDerivedCatalogs
|
|
181
|
-
});
|
|
182
|
-
registerReadinessInterfaceMarker(
|
|
183
|
-
LEAD_GEN_CRM_HANDOFF_INTERFACE.systemPath,
|
|
184
|
-
LEAD_GEN_CRM_HANDOFF_INTERFACE.interfaceKey,
|
|
185
|
-
(model) => {
|
|
186
|
-
if (!isLeadGenCrmHandoffAdopted(model)) return void 0;
|
|
187
|
-
return {
|
|
188
|
-
lifecycle: "active",
|
|
189
|
-
readinessProfile: LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile,
|
|
190
|
-
resourceIds: getLeadGenCrmHandoffResourceIds(model)
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
function findLeadGenTemplateStepCatalog(index) {
|
|
195
|
-
return Object.values(index.ontology.catalogTypes).find(
|
|
196
|
-
(catalog) => catalog.ownerSystemId === "sales.lead-gen" && catalog.kind === "template-step" && catalog.appliesTo === LEAD_GEN_LIST_OBJECT_ONTOLOGY_ID
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export { CRM_API_INTERFACE, LEAD_GEN_API_INTERFACE };
|