@elevasis/ui 2.41.0 → 2.41.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.
Files changed (80) hide show
  1. package/dist/api/index.js +4 -6
  2. package/dist/app/index.css +384 -0
  3. package/dist/app/index.js +17 -26
  4. package/dist/auth/index.css +659 -0
  5. package/dist/auth/index.js +19 -5
  6. package/dist/charts/index.css +533 -0
  7. package/dist/charts/index.js +18 -14
  8. package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
  9. package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
  10. package/dist/chunk-GMXGDO3I.js +244 -0
  11. package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
  12. package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
  13. package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
  14. package/dist/{chunk-JAN2ZXN5.js → chunk-QDXTIQT4.js} +29307 -18446
  15. package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
  16. package/dist/components/chat/index.js +1 -2
  17. package/dist/components/index.css +149 -149
  18. package/dist/components/index.js +13 -36
  19. package/dist/components/navigation/index.css +659 -0
  20. package/dist/components/navigation/index.js +25 -3
  21. package/dist/features/auth/index.js +14 -37
  22. package/dist/features/clients/index.css +149 -149
  23. package/dist/features/clients/index.js +13 -36
  24. package/dist/features/crm/index.js +13 -36
  25. package/dist/features/dashboard/index.js +13 -36
  26. package/dist/features/delivery/index.js +13 -36
  27. package/dist/features/knowledge/index.css +659 -0
  28. package/dist/features/knowledge/index.js +25 -247
  29. package/dist/features/lead-gen/index.js +13 -36
  30. package/dist/features/monitoring/index.js +13 -36
  31. package/dist/features/monitoring/requests/index.js +19 -149
  32. package/dist/features/operations/index.js +13 -36
  33. package/dist/features/seo/index.js +1 -4
  34. package/dist/features/settings/index.js +13 -36
  35. package/dist/hooks/access/index.css +659 -0
  36. package/dist/hooks/access/index.js +19 -4
  37. package/dist/hooks/delivery/index.js +13 -36
  38. package/dist/hooks/index.js +13 -36
  39. package/dist/hooks/published.js +13 -36
  40. package/dist/index.js +14 -37
  41. package/dist/initialization/index.js +1 -1
  42. package/dist/knowledge/index.css +659 -0
  43. package/dist/knowledge/index.js +25 -15
  44. package/dist/layout/index.css +659 -0
  45. package/dist/layout/index.js +24 -9
  46. package/dist/organization/index.js +13 -36
  47. package/dist/provider/index.css +384 -0
  48. package/dist/provider/index.js +18 -21
  49. package/dist/provider/published.css +533 -0
  50. package/dist/provider/published.js +18 -16
  51. package/dist/test-utils/index.js +4 -6
  52. package/dist/theme/index.js +2 -5
  53. package/dist/theme/presets/index.js +1 -2
  54. package/dist/utils/index.js +1 -3
  55. package/package.json +4 -4
  56. package/dist/chunk-3KMDHCAR.js +0 -52
  57. package/dist/chunk-4DRI3G36.js +0 -1016
  58. package/dist/chunk-56O7QQE7.js +0 -356
  59. package/dist/chunk-5EYJ2GIN.js +0 -122
  60. package/dist/chunk-66U7JOWV.js +0 -425
  61. package/dist/chunk-6D4LCJ52.js +0 -10
  62. package/dist/chunk-6ROXVZ3L.js +0 -9
  63. package/dist/chunk-A2XN6PR2.js +0 -111
  64. package/dist/chunk-B2DZLPDL.js +0 -39
  65. package/dist/chunk-CLDCYJQT.js +0 -1
  66. package/dist/chunk-CTJBPF3Z.js +0 -734
  67. package/dist/chunk-DT3QYZVU.js +0 -23
  68. package/dist/chunk-FIMGOWOT.js +0 -3644
  69. package/dist/chunk-IIMU5YAJ.js +0 -53
  70. package/dist/chunk-JHVEA5NE.js +0 -133
  71. package/dist/chunk-L7GXUSCV.js +0 -215
  72. package/dist/chunk-NYBEU5TE.js +0 -118
  73. package/dist/chunk-QVQMOQXB.js +0 -1240
  74. package/dist/chunk-RH5VWWSC.js +0 -624
  75. package/dist/chunk-S4R2ZQS7.js +0 -2131
  76. package/dist/chunk-TYRUKGGD.js +0 -46
  77. package/dist/chunk-VAAU2Z3S.js +0 -85
  78. package/dist/chunk-WLOQ4IBG.js +0 -654
  79. package/dist/chunk-X4WBGKJQ.js +0 -138
  80. 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 };