@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.
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +12 -12
- package/dist/app/index.js +25 -23
- package/dist/charts/index.js +3 -5
- package/dist/chunk-26HFM4MH.js +41449 -0
- package/dist/{chunk-DTFKWZ7A.js → chunk-4U3XAWCN.js} +502 -484
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-RIAXZ6AH.js → chunk-VDOOGGBA.js} +1 -1
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/{chunk-3QXJK5IY.js → chunk-YYX7OPZQ.js} +1 -1
- package/dist/components/index.d.ts +69 -69
- package/dist/components/index.js +20 -2795
- package/dist/components/navigation/index.js +25 -5
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -26
- package/dist/features/crm/index.js +20 -30
- package/dist/features/dashboard/index.d.ts +68 -68
- package/dist/features/dashboard/index.js +20 -28
- package/dist/features/delivery/index.js +20 -30
- package/dist/features/knowledge/index.js +25 -9
- package/dist/features/lead-gen/index.d.ts +9 -9
- package/dist/features/lead-gen/index.js +20 -31
- package/dist/features/monitoring/index.js +20 -30
- package/dist/features/monitoring/requests/index.js +20 -25
- package/dist/features/operations/index.d.ts +153 -153
- package/dist/features/operations/index.js +18 -37
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.js +20 -27
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +85 -85
- package/dist/hooks/index.js +20 -21
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +35 -35
- package/dist/hooks/published.d.ts +85 -85
- package/dist/hooks/published.js +20 -20
- package/dist/index.css +532 -532
- package/dist/index.d.ts +9256 -5803
- package/dist/index.js +22 -26
- package/dist/knowledge/index.d.ts +21 -21
- package/dist/knowledge/index.js +8 -15
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -1
- package/dist/provider/index.d.ts +47 -21
- package/dist/provider/index.js +20 -15
- package/dist/provider/published.d.ts +15 -16
- package/dist/provider/published.js +20 -11
- package/dist/test-utils/index.js +3 -3
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +68 -68
- package/dist/utils/index.d.ts +46 -46
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +6 -6
- package/dist/zustand/index.js +0 -3
- package/package.json +5 -5
- package/dist/chunk-3AJVNMY5.js +0 -4769
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-4O4MII5S.js +0 -4716
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-BPQVTIUP.js +0 -105
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-HRWLKKWM.js +0 -758
- package/dist/chunk-IGDYWFNE.js +0 -5198
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IVGI4GDL.js +0 -1593
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-LAWLB6CT.js +0 -951
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-LRWTWOGP.js +0 -1778
- package/dist/chunk-MP3GPBPX.js +0 -1874
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-NLBQTDOW.js +0 -12051
- package/dist/chunk-O6JXQ6UQ.js +0 -468
- package/dist/chunk-OBBQ2JCM.js +0 -68
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-PLP3NYPL.js +0 -356
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SDXSB3HN.js +0 -425
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-VTXTZXAU.js +0 -539
- package/dist/chunk-W73ZABT6.js +0 -85
- package/dist/chunk-WU4FNWCW.js +0 -2281
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-YNWZIWJL.js +0 -1863
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
package/dist/chunk-W73ZABT6.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { useOptionalElevasisSystems } from './chunk-O6JXQ6UQ.js';
|
|
2
|
-
import { useRouterContext } from './chunk-Q7DJKLEN.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 };
|