@elevasis/ui 2.75.0 → 2.77.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 +277 -249
- package/dist/app/index.js +12 -11
- package/dist/auth/context.d.ts +1 -2
- package/dist/auth/index.d.ts +1 -2
- package/dist/auth/index.js +6 -7
- package/dist/charts/index.js +6 -7
- package/dist/{chunk-CRPH5AAB.js → chunk-2GIHWU5O.js} +4 -3
- package/dist/chunk-2Y6AKWGU.js +42 -0
- package/dist/chunk-3QYRZSHP.js +854 -0
- package/dist/{chunk-L3NBMLRN.js → chunk-3RK2NNJX.js} +1 -1
- package/dist/{chunk-R6NMRXNO.js → chunk-4WLAVUPS.js} +1 -1
- package/dist/{chunk-DTEGVSJ6.js → chunk-5R4I2PAN.js} +9 -43
- package/dist/chunk-6B4ZPBQJ.js +7 -0
- package/dist/{chunk-QFS2GZMV.js → chunk-73G3I5HJ.js} +160 -160
- package/dist/{chunk-7OOFMEX6.js → chunk-BFLYDVEN.js} +28 -41
- package/dist/{chunk-VWGCURZF.js → chunk-BG6PWDJ3.js} +381 -381
- package/dist/{chunk-5VF5LPYS.js → chunk-BV2RNLPP.js} +1 -1
- package/dist/{chunk-NMHQAYZU.js → chunk-CTT4RDXE.js} +150 -151
- package/dist/chunk-E2LJ3FRA.js +237 -0
- package/dist/{chunk-5RH6NYZH.js → chunk-EFQLXRYT.js} +1 -2
- package/dist/{chunk-M6VAZAQW.js → chunk-EVNLJHDD.js} +3 -3
- package/dist/{chunk-NYIIRZSA.js → chunk-GDQQX5SL.js} +4 -42
- package/dist/{chunk-IYATYH5I.js → chunk-GFSOQH3N.js} +1 -1
- package/dist/{chunk-G7O4CBMC.js → chunk-H5AEYSVX.js} +164 -3
- package/dist/{chunk-ZFISGKYW.js → chunk-IIEZXXDD.js} +1 -1
- package/dist/{chunk-5SLRGUC4.js → chunk-INCEZAM3.js} +1 -1
- package/dist/{chunk-ZG6YJUT4.js → chunk-JZQNUQE4.js} +1 -1
- package/dist/{chunk-SB3IHM5Y.js → chunk-K55TU6CC.js} +2023 -1700
- package/dist/chunk-KB5CAN5D.js +33 -0
- package/dist/{chunk-OGHTJKBV.js → chunk-KMA4FOSV.js} +5682 -5675
- package/dist/{chunk-ICHDIVQO.js → chunk-KXNRTJAE.js} +1 -1
- package/dist/{chunk-MLHZUN2X.js → chunk-MGAELVTZ.js} +12 -12
- package/dist/chunk-MKH2KOAO.js +39 -0
- package/dist/{chunk-6BJ5HMMC.js → chunk-NAPXMYFW.js} +35 -362
- package/dist/{chunk-GDTK33QT.js → chunk-OGG3QJYW.js} +14 -5
- package/dist/{chunk-SN7X5N2A.js → chunk-P6HHXMLJ.js} +1 -1
- package/dist/{chunk-SEYOVNS5.js → chunk-QAILYRC2.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-RXZ3XDBM.js} +1 -1
- package/dist/{chunk-2ZRY3ARL.js → chunk-SPW6UA6B.js} +1 -1
- package/dist/{chunk-3H5DIJN7.js → chunk-SVZR4GYA.js} +1 -1
- package/dist/{chunk-47YJVIZE.js → chunk-UEY4AB3R.js} +789 -66
- package/dist/{chunk-LFLM723H.js → chunk-UL6MPMKY.js} +1 -1
- package/dist/{chunk-TX3UHDL5.js → chunk-WELN7DDV.js} +2 -2
- package/dist/{chunk-D3XXPCCK.js → chunk-WJN2VVVJ.js} +1 -1
- package/dist/{chunk-DMSTDZCJ.js → chunk-XODQUPFW.js} +11 -11
- package/dist/components/index.d.ts +135 -25
- package/dist/components/index.js +2165 -1996
- package/dist/components/navigation/index.js +7 -8
- package/dist/features/auth/index.d.ts +35 -3716
- package/dist/features/auth/index.js +9 -10
- package/dist/features/clients/index.js +18 -12
- package/dist/features/content/index.js +27 -27
- package/dist/features/crm/index.css +59 -59
- package/dist/features/crm/index.d.ts +17 -1
- package/dist/features/crm/index.js +13 -11
- package/dist/features/dashboard/index.css +59 -59
- package/dist/features/dashboard/index.js +8 -9
- package/dist/features/delivery/index.d.ts +3 -0
- package/dist/features/delivery/index.js +21 -20
- package/dist/features/knowledge/index.js +6 -7
- package/dist/features/lead-gen/index.css +59 -59
- package/dist/features/lead-gen/index.d.ts +3921 -4
- package/dist/features/lead-gen/index.js +15 -13
- package/dist/features/monitoring/index.js +10 -11
- package/dist/features/monitoring/requests/index.css +59 -59
- package/dist/features/monitoring/requests/index.js +8 -9
- package/dist/features/notes/index.js +4 -4
- package/dist/features/operations/index.css +59 -59
- package/dist/features/operations/index.js +13 -15
- package/dist/features/seo/index.css +659 -0
- package/dist/features/seo/index.d.ts +3979 -1
- package/dist/features/seo/index.js +31 -2
- package/dist/features/settings/index.css +59 -59
- package/dist/features/settings/index.d.ts +96 -3742
- package/dist/features/settings/index.js +10 -12
- package/dist/hooks/access/index.js +6 -7
- package/dist/hooks/delivery/index.css +59 -59
- package/dist/hooks/delivery/index.d.ts +12 -4
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/published.d.ts +83 -29
- package/dist/hooks/published.js +19 -19
- package/dist/initialization/index.d.ts +35 -3716
- package/dist/knowledge/index.js +11 -11
- package/dist/layout/index.d.ts +55 -2
- package/dist/layout/index.js +10 -10
- package/dist/organization/index.css +59 -59
- package/dist/organization/index.d.ts +20 -4
- package/dist/profile/index.d.ts +81 -3716
- package/dist/provider/ElevasisServiceContext.d.ts +1 -2
- package/dist/provider/index.d.ts +4 -2
- package/dist/provider/index.js +6 -7
- package/dist/provider/published.d.ts +4 -2
- package/dist/provider/published.js +6 -7
- package/dist/test-utils/index.d.ts +1 -2
- package/dist/test-utils/index.js +3 -3
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/types/index.d.ts +298 -251
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +4 -8
- package/src/hooks/README.md +22 -23
- package/dist/chunk-6ZAP3FOA.js +0 -93
- package/dist/chunk-AH52XQB7.js +0 -1
- package/dist/chunk-DVAOCHIF.js +0 -165
- package/dist/chunk-MISHPEJX.js +0 -244
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -879
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +0 -2
- /package/dist/{chunk-A2SB32YV.js → chunk-5ZK7K7YP.js} +0 -0
package/dist/app/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { AppErrorBoundary } from '../chunk-
|
|
2
|
-
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { AppErrorBoundary } from '../chunk-UL6MPMKY.js';
|
|
2
|
+
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-2GIHWU5O.js';
|
|
3
|
+
import '../chunk-SPW6UA6B.js';
|
|
4
|
+
import '../chunk-EFQLXRYT.js';
|
|
5
|
+
import '../chunk-E2LJ3FRA.js';
|
|
6
|
+
import '../chunk-6B4ZPBQJ.js';
|
|
5
7
|
import '../chunk-BZZCNLT6.js';
|
|
6
|
-
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-K55TU6CC.js';
|
|
9
|
+
import '../chunk-4WLAVUPS.js';
|
|
10
|
+
import '../chunk-RXZ3XDBM.js';
|
|
11
|
+
import '../chunk-JZQNUQE4.js';
|
|
10
12
|
import '../chunk-L7BZZ4SI.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-MISHPEJX.js';
|
|
13
|
+
import '../chunk-KXNRTJAE.js';
|
|
13
14
|
import '../chunk-62GVNH5U.js';
|
|
14
15
|
import { useInitialization } from '../chunk-P45GQ3ZW.js';
|
|
15
16
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -20,7 +21,7 @@ import '../chunk-UD657ICS.js';
|
|
|
20
21
|
import '../chunk-DD3CCMCZ.js';
|
|
21
22
|
import '../chunk-RNP5R5I3.js';
|
|
22
23
|
import '../chunk-RT4KRGZT.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-5ZK7K7YP.js';
|
|
24
25
|
import '../chunk-Y6I3IC45.js';
|
|
25
26
|
import '../chunk-6SSQGWK7.js';
|
|
26
27
|
import '../chunk-BI5VDO2K.js';
|
package/dist/auth/context.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const workOsOrgIdBrand: unique symbol;
|
|
5
4
|
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
6
5
|
type WorkOsOrgId = string & {
|
|
7
|
-
readonly
|
|
6
|
+
readonly __orgIdBrand: 'workos';
|
|
8
7
|
};
|
|
9
8
|
|
|
10
9
|
interface AuthContextValue {
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -3,10 +3,9 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
-
declare const workOsOrgIdBrand: unique symbol;
|
|
7
6
|
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
8
7
|
type WorkOsOrgId = string & {
|
|
9
|
-
readonly
|
|
8
|
+
readonly __orgIdBrand: 'workos';
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
declare const AccessKeyInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
package/dist/auth/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-K55TU6CC.js';
|
|
2
|
+
import '../chunk-4WLAVUPS.js';
|
|
3
|
+
import '../chunk-RXZ3XDBM.js';
|
|
4
|
+
import '../chunk-JZQNUQE4.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-MISHPEJX.js';
|
|
6
|
+
import '../chunk-KXNRTJAE.js';
|
|
8
7
|
import '../chunk-62GVNH5U.js';
|
|
9
8
|
import '../chunk-P45GQ3ZW.js';
|
|
10
9
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -15,7 +14,7 @@ import '../chunk-UD657ICS.js';
|
|
|
15
14
|
import '../chunk-DD3CCMCZ.js';
|
|
16
15
|
import '../chunk-RNP5R5I3.js';
|
|
17
16
|
import '../chunk-RT4KRGZT.js';
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-5ZK7K7YP.js';
|
|
19
18
|
import '../chunk-Y6I3IC45.js';
|
|
20
19
|
import '../chunk-6SSQGWK7.js';
|
|
21
20
|
import '../chunk-BI5VDO2K.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-K55TU6CC.js';
|
|
2
|
+
import '../chunk-4WLAVUPS.js';
|
|
3
|
+
import '../chunk-RXZ3XDBM.js';
|
|
4
|
+
import '../chunk-JZQNUQE4.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-MISHPEJX.js';
|
|
6
|
+
import '../chunk-KXNRTJAE.js';
|
|
8
7
|
import '../chunk-62GVNH5U.js';
|
|
9
8
|
import '../chunk-P45GQ3ZW.js';
|
|
10
9
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -15,7 +14,7 @@ import '../chunk-UD657ICS.js';
|
|
|
15
14
|
import '../chunk-DD3CCMCZ.js';
|
|
16
15
|
import '../chunk-RNP5R5I3.js';
|
|
17
16
|
import '../chunk-RT4KRGZT.js';
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-5ZK7K7YP.js';
|
|
19
18
|
import '../chunk-Y6I3IC45.js';
|
|
20
19
|
import '../chunk-6SSQGWK7.js';
|
|
21
20
|
import '../chunk-BI5VDO2K.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem } from './chunk-
|
|
1
|
+
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
2
|
+
import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, useAppearance, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem, useElevasisSystems } from './chunk-K55TU6CC.js';
|
|
3
3
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { createContext, memo, useEffect, useRef, createElement, useContext, useLayoutEffect, useState, Fragment as Fragment$1 } from 'react';
|
|
@@ -290,6 +290,7 @@ var AppTopbarAdjusterWrapper = ({ children }) => {
|
|
|
290
290
|
const padding = `${topbarHeight}px`;
|
|
291
291
|
return /* @__PURE__ */ jsx("div", { style: { paddingTop: padding }, children });
|
|
292
292
|
};
|
|
293
|
+
var AppPageLayout = ({ children, contained = true }) => /* @__PURE__ */ jsx(AppTopbarAdjusterWrapper, { children: /* @__PURE__ */ jsx(AppShellContentContainer, { children: contained ? /* @__PURE__ */ jsx(PageContainer, { children }) : children }) });
|
|
293
294
|
var SidebarContext = createContext(void 0);
|
|
294
295
|
var SIDEBAR_COLLAPSED_KEY = "sidebar-collapsed";
|
|
295
296
|
var SidebarProvider = ({ children }) => {
|
|
@@ -1191,4 +1192,4 @@ function TopbarActions({ isPlatformAdmin, isDev }) {
|
|
|
1191
1192
|
return /* @__PURE__ */ jsx(Fragment, { children: actions.map(({ node, render }) => /* @__PURE__ */ jsx(Fragment$1, { children: render({ node }) }, node.id)) });
|
|
1192
1193
|
}
|
|
1193
1194
|
|
|
1194
|
-
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
|
|
1195
|
+
export { AppPageLayout, AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useState, useCallback, useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/hooks/table/useTableSort.ts
|
|
4
|
+
function useTableSort(defaultColumn, defaultDirection = "desc") {
|
|
5
|
+
const [sort, setSort] = useState({ column: defaultColumn, direction: defaultDirection });
|
|
6
|
+
const toggleSort = useCallback((column) => {
|
|
7
|
+
setSort((prev) => {
|
|
8
|
+
if (prev.column === column) {
|
|
9
|
+
return { column, direction: prev.direction === "asc" ? "desc" : "asc" };
|
|
10
|
+
}
|
|
11
|
+
return { column, direction: "desc" };
|
|
12
|
+
});
|
|
13
|
+
}, []);
|
|
14
|
+
return { sort, toggleSort };
|
|
15
|
+
}
|
|
16
|
+
function sortData(data, sort, accessors) {
|
|
17
|
+
const accessor = accessors[sort.column];
|
|
18
|
+
if (!accessor) return data;
|
|
19
|
+
return [...data].sort((a, b) => {
|
|
20
|
+
const aVal = accessor(a);
|
|
21
|
+
const bVal = accessor(b);
|
|
22
|
+
if (aVal == null && bVal == null) return 0;
|
|
23
|
+
if (aVal == null) return 1;
|
|
24
|
+
if (bVal == null) return -1;
|
|
25
|
+
let comparison = 0;
|
|
26
|
+
if (typeof aVal === "string" && typeof bVal === "string") {
|
|
27
|
+
comparison = aVal.localeCompare(bVal);
|
|
28
|
+
} else if (typeof aVal === "number" && typeof bVal === "number") {
|
|
29
|
+
comparison = aVal - bVal;
|
|
30
|
+
} else {
|
|
31
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
32
|
+
}
|
|
33
|
+
return sort.direction === "asc" ? comparison : -comparison;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function useSortedData(data, defaultColumn, accessors, defaultDirection = "desc") {
|
|
37
|
+
const { sort, toggleSort } = useTableSort(defaultColumn, defaultDirection);
|
|
38
|
+
const sorted = useMemo(() => sortData(data, sort, accessors), [data, sort, accessors]);
|
|
39
|
+
return { sorted, sort, toggleSort };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { sortData, useSortedData, useTableSort };
|