@elevasis/ui 2.41.0 → 2.42.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 (95) hide show
  1. package/dist/api/index.js +4 -6
  2. package/dist/app/index.css +384 -0
  3. package/dist/app/index.d.ts +5 -1
  4. package/dist/app/index.js +17 -26
  5. package/dist/auth/index.css +659 -0
  6. package/dist/auth/index.js +19 -5
  7. package/dist/charts/index.css +533 -0
  8. package/dist/charts/index.js +18 -14
  9. package/dist/{chunk-JAN2ZXN5.js → chunk-3MTAHV5M.js} +28535 -18021
  10. package/dist/{chunk-73EWE2EW.js → chunk-EDVZ3AHA.js} +1 -1
  11. package/dist/chunk-GMXGDO3I.js +244 -0
  12. package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
  13. package/dist/{chunk-TE4P6OSJ.js → chunk-MA7YCY7C.js} +1 -1
  14. package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
  15. package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
  16. package/dist/chunk-YEGMSADG.js +1781 -0
  17. package/dist/components/chat/index.js +1 -2
  18. package/dist/components/index.css +149 -149
  19. package/dist/components/index.d.ts +5 -1
  20. package/dist/components/index.js +13 -36
  21. package/dist/components/navigation/index.css +659 -0
  22. package/dist/components/navigation/index.js +25 -3
  23. package/dist/features/auth/index.js +14 -37
  24. package/dist/features/clients/index.css +149 -149
  25. package/dist/features/clients/index.js +13 -36
  26. package/dist/features/crm/index.js +13 -36
  27. package/dist/features/dashboard/index.d.ts +5 -1
  28. package/dist/features/dashboard/index.js +13 -36
  29. package/dist/features/delivery/index.js +13 -36
  30. package/dist/features/knowledge/index.css +659 -0
  31. package/dist/features/knowledge/index.js +25 -247
  32. package/dist/features/lead-gen/index.d.ts +5 -1
  33. package/dist/features/lead-gen/index.js +13 -36
  34. package/dist/features/monitoring/index.js +13 -36
  35. package/dist/features/monitoring/requests/index.js +19 -149
  36. package/dist/features/operations/index.d.ts +5 -1
  37. package/dist/features/operations/index.js +13 -36
  38. package/dist/features/seo/index.js +1 -4
  39. package/dist/features/settings/index.js +13 -36
  40. package/dist/hooks/access/index.css +659 -0
  41. package/dist/hooks/access/index.js +19 -4
  42. package/dist/hooks/delivery/index.js +13 -36
  43. package/dist/hooks/index.d.ts +5 -1
  44. package/dist/hooks/index.js +13 -36
  45. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +5 -1
  46. package/dist/hooks/published.d.ts +5 -1
  47. package/dist/hooks/published.js +13 -36
  48. package/dist/index.d.ts +5 -1
  49. package/dist/index.js +14 -37
  50. package/dist/initialization/index.js +1 -1
  51. package/dist/knowledge/index.css +659 -0
  52. package/dist/knowledge/index.d.ts +5 -1
  53. package/dist/knowledge/index.js +25 -15
  54. package/dist/layout/index.css +659 -0
  55. package/dist/layout/index.js +24 -9
  56. package/dist/organization/index.js +13 -36
  57. package/dist/provider/index.css +384 -0
  58. package/dist/provider/index.d.ts +5 -1
  59. package/dist/provider/index.js +18 -21
  60. package/dist/provider/published.css +533 -0
  61. package/dist/provider/published.d.ts +5 -1
  62. package/dist/provider/published.js +18 -16
  63. package/dist/test-utils/index.js +4 -6
  64. package/dist/theme/index.js +2 -5
  65. package/dist/theme/presets/index.js +1 -2
  66. package/dist/types/index.d.ts +5 -1
  67. package/dist/utils/index.d.ts +5 -1
  68. package/dist/utils/index.js +1 -3
  69. package/package.json +3 -3
  70. package/dist/chunk-3KMDHCAR.js +0 -52
  71. package/dist/chunk-4DRI3G36.js +0 -1016
  72. package/dist/chunk-56O7QQE7.js +0 -356
  73. package/dist/chunk-5EYJ2GIN.js +0 -122
  74. package/dist/chunk-66U7JOWV.js +0 -425
  75. package/dist/chunk-6D4LCJ52.js +0 -10
  76. package/dist/chunk-6ROXVZ3L.js +0 -9
  77. package/dist/chunk-A2XN6PR2.js +0 -111
  78. package/dist/chunk-B2DZLPDL.js +0 -39
  79. package/dist/chunk-CLDCYJQT.js +0 -1
  80. package/dist/chunk-CTJBPF3Z.js +0 -734
  81. package/dist/chunk-DT3QYZVU.js +0 -23
  82. package/dist/chunk-FIMGOWOT.js +0 -3644
  83. package/dist/chunk-IIMU5YAJ.js +0 -53
  84. package/dist/chunk-JHVEA5NE.js +0 -133
  85. package/dist/chunk-L7GXUSCV.js +0 -215
  86. package/dist/chunk-NYBEU5TE.js +0 -118
  87. package/dist/chunk-QVQMOQXB.js +0 -1240
  88. package/dist/chunk-RH5VWWSC.js +0 -624
  89. package/dist/chunk-RXH4D6TY.js +0 -801
  90. package/dist/chunk-S4R2ZQS7.js +0 -2131
  91. package/dist/chunk-TYRUKGGD.js +0 -46
  92. package/dist/chunk-VAAU2Z3S.js +0 -85
  93. package/dist/chunk-WLOQ4IBG.js +0 -654
  94. package/dist/chunk-X4WBGKJQ.js +0 -138
  95. package/dist/chunk-YPWN2WQ3.js +0 -340
@@ -1,46 +0,0 @@
1
- import { SubshellNavItem } from './chunk-X4WBGKJQ.js';
2
- import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
3
- import { useRouterContext } from './chunk-Q7DJKLEN.js';
4
- import { Stack } from '@mantine/core';
5
- import { IconSearch, IconChartBar, IconTrendingUp } from '@tabler/icons-react';
6
- import { jsx, jsxs } from 'react/jsx-runtime';
7
-
8
- var SEOSidebarTop = () => {
9
- return /* @__PURE__ */ jsx(SubshellSidebarSection, { icon: IconSearch, label: "SEO" });
10
- };
11
- var NAV_ITEMS = [
12
- { label: "SEO Pages", to: "/seo", icon: IconChartBar, exact: true },
13
- { label: "Metrics", to: "/seo/metrics", icon: IconTrendingUp, exact: false }
14
- ];
15
- var SEOSidebarMiddle = () => {
16
- const { currentPath, navigate } = useRouterContext();
17
- return /* @__PURE__ */ jsx(Stack, { gap: "xs", p: "sm", style: { flex: 1, overflowY: "auto" }, children: NAV_ITEMS.map((item) => {
18
- const isActive = item.exact ? currentPath === item.to || currentPath === `${item.to}/` : currentPath.startsWith(item.to);
19
- return /* @__PURE__ */ jsx(
20
- SubshellNavItem,
21
- {
22
- icon: item.icon,
23
- label: item.label,
24
- isActive,
25
- href: item.to,
26
- onClick: () => navigate(item.to)
27
- },
28
- item.to
29
- );
30
- }) });
31
- };
32
- var SEOSidebar = () => {
33
- return /* @__PURE__ */ jsxs(Stack, { gap: 0, style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
34
- /* @__PURE__ */ jsx(SEOSidebarTop, {}),
35
- /* @__PURE__ */ jsx(SEOSidebarMiddle, {})
36
- ] });
37
- };
38
-
39
- // src/features/seo/manifest.ts
40
- var seoManifest = {
41
- key: "seo",
42
- systemId: "seo",
43
- sidebar: SEOSidebar
44
- };
45
-
46
- export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest };
@@ -1,85 +0,0 @@
1
- import { useRouterContext } from './chunk-Q7DJKLEN.js';
2
- import { useOptionalElevasisSystems } from './chunk-FIMGOWOT.js';
3
- import { useMemo } from 'react';
4
-
5
- var useBreadcrumbs = (options = {}) => {
6
- const { currentPath } = useRouterContext();
7
- const systemContext = useOptionalElevasisSystems();
8
- const { labelsByPath = {} } = options;
9
- return useMemo(() => {
10
- const shellModel = systemContext?.shellModel;
11
- const overriddenLabel = labelsByPath[currentPath];
12
- if (overriddenLabel) {
13
- return [{ label: overriddenLabel, isActive: true }];
14
- }
15
- if (shellModel) {
16
- const matchedNode = shellModel.findByPath(currentPath);
17
- if (matchedNode) {
18
- return shellModel.ancestorsOf(matchedNode.id).map((node, index, items) => ({
19
- label: labelsByPath[node.path ?? ""] ?? node.label,
20
- path: index === items.length - 1 ? void 0 : node.path,
21
- isActive: index === items.length - 1
22
- }));
23
- }
24
- }
25
- const segments = currentPath.split("/").filter(Boolean);
26
- if (segments.length === 0) {
27
- return [{ label: "Dashboard", isActive: true }];
28
- }
29
- const breadcrumbs = [{ label: "Dashboard", path: "/" }];
30
- let currentSegmentPath = "";
31
- for (let i = 0; i < segments.length; i++) {
32
- currentSegmentPath += `/${segments[i]}`;
33
- const isLast = i === segments.length - 1;
34
- const label = labelsByPath[currentSegmentPath] ?? formatSegmentLabel(segments[i]);
35
- breadcrumbs.push({
36
- label,
37
- path: isLast ? void 0 : currentSegmentPath,
38
- isActive: isLast
39
- });
40
- }
41
- return breadcrumbs;
42
- }, [currentPath, systemContext, labelsByPath]);
43
- };
44
- function formatSegmentLabel(segment) {
45
- const decodedSegment = safeDecodeURIComponent(segment);
46
- const routeLabel = formatRouteIdLabel(decodedSegment);
47
- if (routeLabel) return routeLabel;
48
- return titleCaseSegment(decodedSegment);
49
- }
50
- function safeDecodeURIComponent(value) {
51
- try {
52
- return decodeURIComponent(value);
53
- } catch {
54
- return value;
55
- }
56
- }
57
- function formatRouteIdLabel(segment) {
58
- if (segment.startsWith("group:")) {
59
- const groupKey = segment.slice("group:".length);
60
- return groupKey === "graph" ? "Ontology" : titleCaseSegment(groupKey);
61
- }
62
- if (segment.startsWith("domain:")) {
63
- return titleCaseSegment(segment.slice("domain:".length));
64
- }
65
- if (segment.startsWith("item:")) {
66
- const rest = segment.slice("item:".length);
67
- const separatorIndex = rest.indexOf(":");
68
- const itemId = separatorIndex === -1 ? rest : rest.slice(separatorIndex + 1);
69
- return formatOntologyOrIdLabel(itemId);
70
- }
71
- if (segment.startsWith("ontology:")) {
72
- return formatOntologyOrIdLabel(segment);
73
- }
74
- return void 0;
75
- }
76
- function formatOntologyOrIdLabel(value) {
77
- const localId = value.includes("/") ? value.slice(value.lastIndexOf("/") + 1) : value;
78
- const suffix = localId.includes(":") ? localId.slice(localId.lastIndexOf(":") + 1) : localId;
79
- return titleCaseSegment(suffix);
80
- }
81
- function titleCaseSegment(segment) {
82
- return segment.split("-").flatMap((part) => part.split("_")).flatMap((part) => part.split(".")).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
83
- }
84
-
85
- export { useBreadcrumbs };