@elevasis/ui 2.34.0 → 2.35.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 (106) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +12 -12
  3. package/dist/app/index.js +25 -23
  4. package/dist/charts/index.js +3 -5
  5. package/dist/chunk-26HFM4MH.js +41449 -0
  6. package/dist/{chunk-DTFKWZ7A.js → chunk-4U3XAWCN.js} +502 -484
  7. package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
  8. package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
  9. package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
  10. package/dist/chunk-AUDNF2Q7.js +2050 -0
  11. package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
  12. package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
  13. package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
  14. package/dist/chunk-SIQ3P4OR.js +1764 -0
  15. package/dist/{chunk-RIAXZ6AH.js → chunk-VDOOGGBA.js} +1 -1
  16. package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
  17. package/dist/{chunk-3QXJK5IY.js → chunk-YYX7OPZQ.js} +1 -1
  18. package/dist/components/index.d.ts +69 -69
  19. package/dist/components/index.js +20 -2795
  20. package/dist/components/navigation/index.js +25 -5
  21. package/dist/execution/index.d.ts +9 -9
  22. package/dist/execution/index.js +1 -2
  23. package/dist/features/auth/index.js +23 -2
  24. package/dist/features/clients/index.js +20 -26
  25. package/dist/features/crm/index.js +20 -30
  26. package/dist/features/dashboard/index.d.ts +68 -68
  27. package/dist/features/dashboard/index.js +20 -28
  28. package/dist/features/delivery/index.js +20 -30
  29. package/dist/features/knowledge/index.js +25 -9
  30. package/dist/features/lead-gen/index.d.ts +9 -9
  31. package/dist/features/lead-gen/index.js +20 -31
  32. package/dist/features/monitoring/index.js +20 -30
  33. package/dist/features/monitoring/requests/index.js +20 -25
  34. package/dist/features/operations/index.d.ts +153 -153
  35. package/dist/features/operations/index.js +18 -37
  36. package/dist/features/seo/index.js +3 -4
  37. package/dist/features/settings/index.js +20 -27
  38. package/dist/graph/index.js +1 -1
  39. package/dist/hooks/delivery/index.js +30 -2
  40. package/dist/hooks/index.d.ts +85 -85
  41. package/dist/hooks/index.js +20 -21
  42. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +35 -35
  43. package/dist/hooks/published.d.ts +85 -85
  44. package/dist/hooks/published.js +20 -20
  45. package/dist/index.css +532 -532
  46. package/dist/index.d.ts +9256 -5803
  47. package/dist/index.js +22 -26
  48. package/dist/knowledge/index.d.ts +21 -21
  49. package/dist/knowledge/index.js +8 -15
  50. package/dist/layout/index.js +4 -10
  51. package/dist/organization/index.js +27 -1
  52. package/dist/provider/index.d.ts +47 -21
  53. package/dist/provider/index.js +20 -15
  54. package/dist/provider/published.d.ts +15 -16
  55. package/dist/provider/published.js +20 -11
  56. package/dist/test-utils/index.js +3 -3
  57. package/dist/theme/index.js +2 -3
  58. package/dist/theme/presets/index.d.ts +28 -3
  59. package/dist/theme/presets/index.js +1 -1
  60. package/dist/typeform/index.js +1 -2049
  61. package/dist/types/index.d.ts +68 -68
  62. package/dist/utils/index.d.ts +46 -46
  63. package/dist/utils/index.js +1 -1
  64. package/dist/zustand/index.d.ts +6 -6
  65. package/dist/zustand/index.js +0 -3
  66. package/package.json +5 -5
  67. package/dist/chunk-3AJVNMY5.js +0 -4769
  68. package/dist/chunk-3MEXPLWT.js +0 -265
  69. package/dist/chunk-3ZMAGTWF.js +0 -18
  70. package/dist/chunk-4O4MII5S.js +0 -4716
  71. package/dist/chunk-5EYJ2GIN.js +0 -122
  72. package/dist/chunk-7M2VOCYN.js +0 -1
  73. package/dist/chunk-BPQVTIUP.js +0 -105
  74. package/dist/chunk-BZZCNLT6.js +0 -12
  75. package/dist/chunk-CLDCYJQT.js +0 -1
  76. package/dist/chunk-E565XMTQ.js +0 -17
  77. package/dist/chunk-HRWLKKWM.js +0 -758
  78. package/dist/chunk-IGDYWFNE.js +0 -5198
  79. package/dist/chunk-IIMU5YAJ.js +0 -53
  80. package/dist/chunk-IVGI4GDL.js +0 -1593
  81. package/dist/chunk-JFL3GRD4.js +0 -39
  82. package/dist/chunk-LAWLB6CT.js +0 -951
  83. package/dist/chunk-LGKLC5MG.js +0 -44
  84. package/dist/chunk-LRWTWOGP.js +0 -1778
  85. package/dist/chunk-MP3GPBPX.js +0 -1874
  86. package/dist/chunk-N55DVMAG.js +0 -14
  87. package/dist/chunk-NLBQTDOW.js +0 -12051
  88. package/dist/chunk-O6JXQ6UQ.js +0 -468
  89. package/dist/chunk-OBBQ2JCM.js +0 -68
  90. package/dist/chunk-PDHTXPSF.js +0 -12
  91. package/dist/chunk-PLP3NYPL.js +0 -356
  92. package/dist/chunk-R2XR4FCV.js +0 -48
  93. package/dist/chunk-R66W5UDG.js +0 -26
  94. package/dist/chunk-RYTEQBAO.js +0 -37
  95. package/dist/chunk-SDXSB3HN.js +0 -425
  96. package/dist/chunk-TKAYX2SP.js +0 -204
  97. package/dist/chunk-TUMSNGTX.js +0 -35
  98. package/dist/chunk-VNAZTCHA.js +0 -65
  99. package/dist/chunk-VNFR57DF.js +0 -87
  100. package/dist/chunk-VTXTZXAU.js +0 -539
  101. package/dist/chunk-W73ZABT6.js +0 -85
  102. package/dist/chunk-WU4FNWCW.js +0 -2281
  103. package/dist/chunk-XZGSCABI.js +0 -383
  104. package/dist/chunk-YNWZIWJL.js +0 -1863
  105. /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
  106. /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
@@ -1,122 +0,0 @@
1
- // src/features/operations/organization-graph/types.ts
2
- var ORGANIZATION_GRAPH_NODE_KIND_ORDER = [
3
- "organization",
4
- "system",
5
- "role",
6
- "action",
7
- "entity",
8
- "event",
9
- "policy",
10
- "stage",
11
- "resource",
12
- "knowledge",
13
- "customer-segment",
14
- "offering",
15
- "goal",
16
- "surface",
17
- "navigation-group",
18
- "ontology"
19
- ];
20
- var ORGANIZATION_GRAPH_NODE_KIND_LABELS = {
21
- organization: "Organization",
22
- system: "System",
23
- role: "Role",
24
- action: "Action",
25
- entity: "Entity",
26
- event: "Event",
27
- policy: "Policy",
28
- stage: "Stage",
29
- resource: "Resource",
30
- knowledge: "Knowledge",
31
- "customer-segment": "Customer segment",
32
- offering: "Offering",
33
- goal: "Goal",
34
- surface: "Surface",
35
- "navigation-group": "Navigation group",
36
- ontology: "Ontology"
37
- };
38
- var ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS = {
39
- organization: "Organization root",
40
- system: "System",
41
- role: "Role",
42
- action: "Action",
43
- entity: "Entity",
44
- event: "Event",
45
- policy: "Policy",
46
- stage: "Stage",
47
- resource: "Resource",
48
- knowledge: "Knowledge",
49
- "customer-segment": "Customer segment",
50
- offering: "Offering",
51
- goal: "Goal",
52
- surface: "Surface",
53
- "navigation-group": "Navigation group",
54
- ontology: "Ontology record"
55
- };
56
- var ORGANIZATION_GRAPH_NODE_KIND_MEANINGS = {
57
- organization: "The root of the shared organization model and the parent for every derived node.",
58
- system: "A canonical Organization Model system for ownership, routing, and governance.",
59
- role: "An Organization Model role that owns responsibilities and may govern systems.",
60
- action: "A reusable action that can be attached to a system.",
61
- entity: "A modeled business object or stateful data domain owned by the organization model.",
62
- event: "A derived domain or runtime event emitted by entities, resources, or actions.",
63
- policy: "A governance rule that applies to targets and may trigger effects across the graph.",
64
- stage: "A lifecycle stage that records progress for an entity through a build pipeline.",
65
- resource: "A concrete command-view or mapped resource that bridges execution topology into the model.",
66
- knowledge: "An operational knowledge node that documents a process, strategy, or runbook in the org model.",
67
- "customer-segment": "A defined segment of customers or prospects that the organization targets or serves.",
68
- offering: "A product, service, or value proposition the organization delivers to customer segments.",
69
- goal: "A strategic or operational objective that guides priorities and measures progress.",
70
- surface: "A navigation surface (page or view) that is exposed through the platform shell.",
71
- "navigation-group": "A logical grouping of navigation surfaces within the platform shell.",
72
- ontology: "A compiled ontology record such as an object, action, catalog, value type, surface, or resource binding."
73
- };
74
- var ORGANIZATION_GRAPH_EDGE_KIND_LABELS = {
75
- contains: "Containment",
76
- references: "Reference",
77
- maps_to: "Mapping",
78
- uses: "Uses",
79
- governs: "Governs",
80
- links: "Links",
81
- affects: "Affects",
82
- emits: "Emits",
83
- originates_from: "Originates from",
84
- triggers: "Triggers",
85
- approval: "Approval",
86
- applies_to: "Applies to",
87
- effects: "Effects",
88
- actions: "Actions",
89
- reads: "Reads",
90
- writes: "Writes",
91
- uses_catalog: "Uses catalog"
92
- };
93
- var ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS = {
94
- contains: "A hierarchy or ownership link inside the shared graph.",
95
- references: "A semantic association or dependency between two graph nodes.",
96
- maps_to: "An action is aligned to a concrete resource.",
97
- uses: "A graph node depends on another node, resource, entity, or integration.",
98
- governs: "A knowledge node, role, or policy provides authoritative guidance for another node.",
99
- links: "Two modeled nodes are associated without stronger ownership or execution semantics.",
100
- affects: "The source can influence the behavior, state, or outcome of the target.",
101
- emits: "The source produces an event that can be inspected or traversed.",
102
- originates_from: "The source is derived from or owned by the target origin.",
103
- triggers: "The source can start or activate the target.",
104
- approval: "The source requests or participates in an approval path.",
105
- applies_to: "A policy or rule targets the node it applies to.",
106
- effects: "A policy or event produces the target effect.",
107
- actions: "The source is bound to the target ontology action contract.",
108
- reads: "The source reads data described by the target ontology record.",
109
- writes: "The source writes data described by the target ontology record.",
110
- uses_catalog: "The source uses the target ontology catalog."
111
- };
112
- var DEFAULT_ORGANIZATION_GRAPH_FILTERS = {
113
- search: "",
114
- nodeKinds: [],
115
- topologyPresence: "all",
116
- environmentStatus: "all",
117
- resourceTypes: [],
118
- showIntegrations: true,
119
- domainFilters: {}
120
- };
121
-
122
- export { DEFAULT_ORGANIZATION_GRAPH_FILTERS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_ORDER };
@@ -1 +0,0 @@
1
-
@@ -1,105 +0,0 @@
1
- import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-RQA2EVN3.js';
2
- import { PRESETS, getPreset, generateShades } from './chunk-3FV6HBXS.js';
3
- import { AppBackground } from './chunk-WLOQ4IBG.js';
4
- import { ElevasisCoreProvider } from './chunk-PLP3NYPL.js';
5
- import { ElevasisLoader } from './chunk-HRWLKKWM.js';
6
- import { ElevasisSystemsProvider } from './chunk-O6JXQ6UQ.js';
7
- import { AppearanceProvider } from './chunk-E565XMTQ.js';
8
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-2RJMVWFJ.js';
9
- import { useMemo, useEffect } from 'react';
10
- import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
11
- import '@mantine/core/styles.css';
12
- import '@mantine/notifications/styles.css';
13
- import { notifications } from '@mantine/notifications';
14
- import { jsx } from 'react/jsx-runtime';
15
-
16
- var mantineAdapter = {
17
- success(title, message) {
18
- notifications.show({ title, message, autoClose: 5e3, color: "green", position: "top-right" });
19
- },
20
- error(title, message) {
21
- notifications.show({ title, message, autoClose: 5e3, color: "red", position: "top-right" });
22
- },
23
- info(title, message) {
24
- notifications.show({ title, message, autoClose: 5e3, color: "blue", position: "top-right" });
25
- },
26
- warning(title, message) {
27
- notifications.show({ title, message, autoClose: 5e3, color: "orange", position: "top-right" });
28
- },
29
- apiError(error) {
30
- const { message, code, requestId, fields, retryAfter } = getErrorInfo(error);
31
- const hasFields = fields && Object.keys(fields).length > 0;
32
- notifications.show({
33
- title: getErrorTitle(code),
34
- message: formatErrorMessage(message, requestId, fields, retryAfter),
35
- autoClose: retryAfter ? retryAfter * 1e3 : hasFields ? 8e3 : 5e3,
36
- color: "red",
37
- position: "top-right"
38
- });
39
- }
40
- };
41
- function ElevasisUIProvider({ theme, children, ...coreProps }) {
42
- const resolvedColorScheme = theme?.colorScheme ?? "dark";
43
- const activePresets = theme?.presets ?? PRESETS;
44
- const preset = useMemo(() => getPreset(theme?.preset ?? "default", theme?.presets), [theme?.preset, theme?.presets]);
45
- const resolvedAppearance = {
46
- background: theme?.background ?? preset.background ?? /* @__PURE__ */ jsx(AppBackground, {}),
47
- loader: theme?.loader ?? preset.loader ?? /* @__PURE__ */ jsx(Loader, { size: "xl", loaders: { elevasis: ElevasisLoader }, type: "elevasis" })
48
- };
49
- useEffect(() => {
50
- if (!preset.fontImports?.length) return;
51
- const links = [];
52
- for (const href of preset.fontImports) {
53
- if (document.querySelector(`link[href="${href}"]`)) continue;
54
- const link = document.createElement("link");
55
- link.rel = "stylesheet";
56
- link.href = href;
57
- document.head.appendChild(link);
58
- links.push(link);
59
- }
60
- const subtitleFont = preset.subtitleFontFamily ?? preset.framework?.headings?.fontFamily ?? preset.framework?.fontFamily ?? "";
61
- document.documentElement.style.setProperty("--elevasis-font-family-subtitle", subtitleFont);
62
- return () => {
63
- links.forEach((l) => l.remove());
64
- document.documentElement.style.removeProperty("--elevasis-font-family-subtitle");
65
- };
66
- }, [
67
- preset.fontImports,
68
- preset.subtitleFontFamily,
69
- preset.framework?.headings?.fontFamily,
70
- preset.framework?.fontFamily
71
- ]);
72
- const resolvedTheme = useMemo(() => {
73
- const primaryHex = theme?.tokens?.primary ?? preset.dark.primary;
74
- const primaryOverride = {
75
- primaryColor: "primary",
76
- colors: { primary: generateShades(primaryHex) }
77
- };
78
- let base = mergeThemeOverrides(mantineThemeOverride, primaryOverride);
79
- if (preset.framework) base = mergeThemeOverrides(base, preset.framework);
80
- return theme?.mantine ? mergeThemeOverrides(base, theme.mantine) : base;
81
- }, [theme?.mantine, preset, theme?.tokens?.primary]);
82
- const cssVariablesResolver = useMemo(
83
- () => createCssVariablesResolver(theme?.tokens, theme?.preset, theme?.presets),
84
- [theme?.tokens, theme?.preset, theme?.presets]
85
- );
86
- return /* @__PURE__ */ jsx(
87
- MantineProvider,
88
- {
89
- theme: resolvedTheme,
90
- defaultColorScheme: resolvedColorScheme,
91
- cssVariablesResolver,
92
- children: /* @__PURE__ */ jsx(PresetsProvider, { value: activePresets, children: /* @__PURE__ */ jsx(AppearanceProvider, { value: resolvedAppearance, children: /* @__PURE__ */ jsx(ElevasisCoreProvider, { notifications: mantineAdapter, ...coreProps, children }) }) })
93
- }
94
- );
95
- }
96
- function createTestSystemsProvider({
97
- organizationModel,
98
- systems = []
99
- } = {}) {
100
- return function TestSystemsProvider({ children }) {
101
- return /* @__PURE__ */ jsx(ElevasisSystemsProvider, { systems, organizationModel, children });
102
- };
103
- }
104
-
105
- export { ElevasisUIProvider, createTestSystemsProvider };
@@ -1,12 +0,0 @@
1
- import { Container, Stack } from '@mantine/core';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/components/layout/shell/PageContainer.tsx
5
- var PageContainer = ({ children }) => {
6
- return (
7
- // Add padding to the top of the container to adjust for the topbar height
8
- /* @__PURE__ */ jsx(Container, { size: "xl", p: 0, w: "100%", children: /* @__PURE__ */ jsx(Stack, { gap: "lg", children }) })
9
- );
10
- };
11
-
12
- export { PageContainer };
@@ -1 +0,0 @@
1
-
@@ -1,17 +0,0 @@
1
- import { createContext, useContext } from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/provider/AppearanceContext.tsx
5
- var AppearanceContext = createContext(null);
6
- function AppearanceProvider({ value, children }) {
7
- return /* @__PURE__ */ jsx(AppearanceContext.Provider, { value, children });
8
- }
9
- function useAppearance() {
10
- const ctx = useContext(AppearanceContext);
11
- if (!ctx) {
12
- throw new Error("useAppearance must be used within an AppearanceProvider (ElevasisCoreProvider)");
13
- }
14
- return ctx;
15
- }
16
-
17
- export { AppearanceProvider, useAppearance };