@elevasis/ui 2.40.1 → 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.
- package/dist/api/index.js +4 -6
- package/dist/app/index.css +384 -0
- package/dist/app/index.d.ts +108 -0
- package/dist/app/index.js +17 -27
- package/dist/auth/index.css +659 -0
- package/dist/auth/index.js +19 -6
- package/dist/charts/index.css +533 -0
- package/dist/charts/index.js +18 -15
- package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
- package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
- package/dist/chunk-GMXGDO3I.js +244 -0
- package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
- package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
- package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
- package/dist/{chunk-RX6RSKWC.js → chunk-QDXTIQT4.js} +29255 -18312
- package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
- package/dist/components/chat/index.js +1 -2
- package/dist/components/index.css +149 -149
- package/dist/components/index.js +13 -37
- package/dist/components/navigation/index.css +659 -0
- package/dist/components/navigation/index.js +25 -4
- package/dist/features/auth/index.js +14 -38
- package/dist/features/clients/index.css +149 -149
- package/dist/features/clients/index.js +13 -37
- package/dist/features/crm/index.js +13 -37
- package/dist/features/dashboard/index.js +13 -37
- package/dist/features/delivery/index.js +13 -37
- package/dist/features/knowledge/index.css +659 -0
- package/dist/features/knowledge/index.js +25 -248
- package/dist/features/lead-gen/index.d.ts +81 -0
- package/dist/features/lead-gen/index.js +13 -37
- package/dist/features/monitoring/index.js +13 -37
- package/dist/features/monitoring/requests/index.d.ts +69 -7
- package/dist/features/monitoring/requests/index.js +32 -41
- package/dist/features/operations/index.d.ts +79 -0
- package/dist/features/operations/index.js +13 -37
- package/dist/features/seo/index.js +1 -4
- package/dist/features/settings/index.js +13 -37
- package/dist/hooks/access/index.css +659 -0
- package/dist/hooks/access/index.js +19 -5
- package/dist/hooks/delivery/index.js +13 -37
- package/dist/hooks/index.d.ts +18 -6
- package/dist/hooks/index.js +13 -37
- package/dist/hooks/published.d.ts +18 -6
- package/dist/hooks/published.js +13 -37
- package/dist/index.d.ts +151 -7
- package/dist/index.js +14 -38
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.css +659 -0
- package/dist/knowledge/index.d.ts +81 -0
- package/dist/knowledge/index.js +25 -15
- package/dist/layout/index.css +659 -0
- package/dist/layout/index.d.ts +18 -2
- package/dist/layout/index.js +24 -7
- package/dist/organization/index.js +13 -37
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +120 -1
- package/dist/provider/index.js +18 -22
- package/dist/provider/published.css +533 -0
- package/dist/provider/published.d.ts +121 -2
- package/dist/provider/published.js +18 -17
- package/dist/test-utils/index.js +4 -6
- package/dist/theme/index.js +2 -5
- package/dist/theme/presets/index.js +1 -2
- package/dist/utils/index.js +1 -3
- package/package.json +3 -3
- package/dist/chunk-3KMDHCAR.js +0 -52
- package/dist/chunk-4DRI3G36.js +0 -1016
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-66U7JOWV.js +0 -425
- package/dist/chunk-6D4LCJ52.js +0 -10
- package/dist/chunk-6EV47QQW.js +0 -340
- package/dist/chunk-6ROXVZ3L.js +0 -9
- package/dist/chunk-7MTWRSUZ.js +0 -357
- package/dist/chunk-7PHY5ONQ.js +0 -85
- package/dist/chunk-B2DZLPDL.js +0 -39
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-CTJBPF3Z.js +0 -734
- package/dist/chunk-DT3QYZVU.js +0 -23
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IUQAP4IO.js +0 -2131
- package/dist/chunk-J3FLIZY4.js +0 -423
- package/dist/chunk-K7GKKETO.js +0 -3157
- package/dist/chunk-L7GXUSCV.js +0 -215
- package/dist/chunk-LJDYY3XB.js +0 -133
- package/dist/chunk-NYBEU5TE.js +0 -118
- package/dist/chunk-RH5VWWSC.js +0 -624
- package/dist/chunk-SJNIOGVX.js +0 -112
- package/dist/chunk-TYRUKGGD.js +0 -46
- package/dist/chunk-WLOQ4IBG.js +0 -654
- package/dist/chunk-X4WBGKJQ.js +0 -138
- package/dist/chunk-X7D6SUKR.js +0 -1234
package/dist/chunk-SJNIOGVX.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { mantineThemeOverride, createCssVariablesResolver } from './chunk-5JYKCULK.js';
|
|
2
|
-
import { PresetsProvider } from './chunk-6D4LCJ52.js';
|
|
3
|
-
import { PRESETS, getPreset, generateShades } from './chunk-WF7CONXF.js';
|
|
4
|
-
import { AppBackground } from './chunk-WLOQ4IBG.js';
|
|
5
|
-
import { ElevasisCoreProvider } from './chunk-6EV47QQW.js';
|
|
6
|
-
import { ElevasisLoader } from './chunk-CTJBPF3Z.js';
|
|
7
|
-
import { AppearanceProvider } from './chunk-L7GXUSCV.js';
|
|
8
|
-
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-RXH4D6TY.js';
|
|
9
|
-
import { useElevasisSystems, ElevasisSystemsProvider } from './chunk-J3FLIZY4.js';
|
|
10
|
-
import { resolveOrganizationModel } from './chunk-K7GKKETO.js';
|
|
11
|
-
import { useMemo, useEffect } from 'react';
|
|
12
|
-
import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
|
|
13
|
-
import '@mantine/core/styles.css';
|
|
14
|
-
import '@mantine/notifications/styles.css';
|
|
15
|
-
import { notifications } from '@mantine/notifications';
|
|
16
|
-
import { jsx } from 'react/jsx-runtime';
|
|
17
|
-
|
|
18
|
-
var EMPTY_CANONICAL_MODEL = resolveOrganizationModel(void 0, { mergeDefaults: false });
|
|
19
|
-
function useResolvedOrganizationModel() {
|
|
20
|
-
const { organizationModel } = useElevasisSystems();
|
|
21
|
-
return useMemo(() => organizationModel ?? EMPTY_CANONICAL_MODEL, [organizationModel]);
|
|
22
|
-
}
|
|
23
|
-
var mantineAdapter = {
|
|
24
|
-
success(title, message) {
|
|
25
|
-
notifications.show({ title, message, autoClose: 5e3, color: "green", position: "top-right" });
|
|
26
|
-
},
|
|
27
|
-
error(title, message) {
|
|
28
|
-
notifications.show({ title, message, autoClose: 5e3, color: "red", position: "top-right" });
|
|
29
|
-
},
|
|
30
|
-
info(title, message) {
|
|
31
|
-
notifications.show({ title, message, autoClose: 5e3, color: "blue", position: "top-right" });
|
|
32
|
-
},
|
|
33
|
-
warning(title, message) {
|
|
34
|
-
notifications.show({ title, message, autoClose: 5e3, color: "orange", position: "top-right" });
|
|
35
|
-
},
|
|
36
|
-
apiError(error) {
|
|
37
|
-
const { message, code, requestId, fields, retryAfter } = getErrorInfo(error);
|
|
38
|
-
const hasFields = fields && Object.keys(fields).length > 0;
|
|
39
|
-
notifications.show({
|
|
40
|
-
title: getErrorTitle(code),
|
|
41
|
-
message: formatErrorMessage(message, requestId, fields, retryAfter),
|
|
42
|
-
autoClose: retryAfter ? retryAfter * 1e3 : hasFields ? 8e3 : 5e3,
|
|
43
|
-
color: "red",
|
|
44
|
-
position: "top-right"
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
function ElevasisUIProvider({ theme, children, ...coreProps }) {
|
|
49
|
-
const resolvedColorScheme = theme?.colorScheme ?? "dark";
|
|
50
|
-
const activePresets = theme?.presets ?? PRESETS;
|
|
51
|
-
const preset = useMemo(() => getPreset(theme?.preset ?? "default", theme?.presets), [theme?.preset, theme?.presets]);
|
|
52
|
-
const resolvedAppearance = {
|
|
53
|
-
background: theme?.background ?? preset.background ?? /* @__PURE__ */ jsx(AppBackground, {}),
|
|
54
|
-
loader: theme?.loader ?? preset.loader ?? /* @__PURE__ */ jsx(Loader, { size: "xl", loaders: { elevasis: ElevasisLoader }, type: "elevasis" })
|
|
55
|
-
};
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (!preset.fontImports?.length) return;
|
|
58
|
-
const links = [];
|
|
59
|
-
for (const href of preset.fontImports) {
|
|
60
|
-
if (document.querySelector(`link[href="${href}"]`)) continue;
|
|
61
|
-
const link = document.createElement("link");
|
|
62
|
-
link.rel = "stylesheet";
|
|
63
|
-
link.href = href;
|
|
64
|
-
document.head.appendChild(link);
|
|
65
|
-
links.push(link);
|
|
66
|
-
}
|
|
67
|
-
const subtitleFont = preset.subtitleFontFamily ?? preset.framework?.headings?.fontFamily ?? preset.framework?.fontFamily ?? "";
|
|
68
|
-
document.documentElement.style.setProperty("--elevasis-font-family-subtitle", subtitleFont);
|
|
69
|
-
return () => {
|
|
70
|
-
links.forEach((l) => l.remove());
|
|
71
|
-
document.documentElement.style.removeProperty("--elevasis-font-family-subtitle");
|
|
72
|
-
};
|
|
73
|
-
}, [
|
|
74
|
-
preset.fontImports,
|
|
75
|
-
preset.subtitleFontFamily,
|
|
76
|
-
preset.framework?.headings?.fontFamily,
|
|
77
|
-
preset.framework?.fontFamily
|
|
78
|
-
]);
|
|
79
|
-
const resolvedTheme = useMemo(() => {
|
|
80
|
-
const primaryHex = theme?.tokens?.primary ?? preset.dark.primary;
|
|
81
|
-
const primaryOverride = {
|
|
82
|
-
primaryColor: "primary",
|
|
83
|
-
colors: { primary: generateShades(primaryHex) }
|
|
84
|
-
};
|
|
85
|
-
let base = mergeThemeOverrides(mantineThemeOverride, primaryOverride);
|
|
86
|
-
if (preset.framework) base = mergeThemeOverrides(base, preset.framework);
|
|
87
|
-
return theme?.mantine ? mergeThemeOverrides(base, theme.mantine) : base;
|
|
88
|
-
}, [theme?.mantine, preset, theme?.tokens?.primary]);
|
|
89
|
-
const cssVariablesResolver = useMemo(
|
|
90
|
-
() => createCssVariablesResolver(theme?.tokens, theme?.preset, theme?.presets),
|
|
91
|
-
[theme?.tokens, theme?.preset, theme?.presets]
|
|
92
|
-
);
|
|
93
|
-
return /* @__PURE__ */ jsx(
|
|
94
|
-
MantineProvider,
|
|
95
|
-
{
|
|
96
|
-
theme: resolvedTheme,
|
|
97
|
-
defaultColorScheme: resolvedColorScheme,
|
|
98
|
-
cssVariablesResolver,
|
|
99
|
-
children: /* @__PURE__ */ jsx(PresetsProvider, { value: activePresets, children: /* @__PURE__ */ jsx(AppearanceProvider, { value: resolvedAppearance, children: /* @__PURE__ */ jsx(ElevasisCoreProvider, { notifications: mantineAdapter, ...coreProps, children }) }) })
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
function createTestSystemsProvider({
|
|
104
|
-
organizationModel,
|
|
105
|
-
systems = []
|
|
106
|
-
} = {}) {
|
|
107
|
-
return function TestSystemsProvider({ children }) {
|
|
108
|
-
return /* @__PURE__ */ jsx(ElevasisSystemsProvider, { systems, organizationModel, children });
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export { ElevasisUIProvider, createTestSystemsProvider, useResolvedOrganizationModel };
|
package/dist/chunk-TYRUKGGD.js
DELETED
|
@@ -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 };
|