@elevasis/ui 2.38.1 → 2.39.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/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-PSTKG4B3.js} +3 -1
- package/dist/api/index.js +4 -2
- package/dist/app/index.d.ts +12 -0
- package/dist/app/index.js +17 -14
- package/dist/auth/context.d.ts +7 -1
- package/dist/auth/index.d.ts +80 -74
- package/dist/auth/index.js +10 -7
- package/dist/charts/index.js +13 -10
- package/dist/{chunk-C6BDBZRO.js → chunk-23YQ2WH5.js} +2 -1
- package/dist/{chunk-KJ3QUBNU.js → chunk-2FTX4WO2.js} +2 -2
- package/dist/chunk-43ZU647H.js +612 -0
- package/dist/{chunk-4UCAUBOL.js → chunk-5GZVSTVH.js} +2 -2
- package/dist/{chunk-7ZWXTH5J.js → chunk-5JYKCULK.js} +1 -1
- package/dist/{chunk-533DUEQY.js → chunk-6DO4PE3O.js} +1 -1
- package/dist/{chunk-PGWANFNE.js → chunk-CXLDZSAQ.js} +6 -6
- package/dist/{chunk-Y3JQBSKQ.js → chunk-FAO7SWSL.js} +1 -1
- package/dist/{chunk-566XWGPP.js → chunk-GLBPGEDD.js} +53 -611
- package/dist/{chunk-P34FFSOX.js → chunk-HOAMD35V.js} +2 -1
- package/dist/{chunk-JXVNHVK7.js → chunk-K7E352VG.js} +1 -1
- package/dist/{chunk-H2MEFUQD.js → chunk-L2H5CIQF.js} +25 -22
- package/dist/chunk-MQZE7SUI.js +9 -0
- package/dist/{chunk-7GQFIWP4.js → chunk-O53S32QR.js} +3 -3
- package/dist/{chunk-LWDVD3XR.js → chunk-PVXM4O6V.js} +309 -187
- package/dist/{chunk-I53EX4VU.js → chunk-RG2S6NIU.js} +1 -1
- package/dist/{chunk-JBWJ6WHZ.js → chunk-SJHM4WDG.js} +1 -1
- package/dist/{chunk-M7Q4UBRY.js → chunk-SNDRAYMF.js} +1 -1
- package/dist/chunk-TVTSASST.js +28 -0
- package/dist/{chunk-2Q2JQSQO.js → chunk-W2SFTXMT.js} +1 -1
- package/dist/chunk-ZJ3FG7FE.js +801 -0
- package/dist/{chunk-YGUNUIME.js → chunk-ZRZYRDXX.js} +5 -4
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +20 -17
- package/dist/components/navigation/index.js +4 -3
- package/dist/features/auth/index.js +21 -18
- package/dist/features/clients/index.js +20 -17
- package/dist/features/crm/index.js +20 -17
- package/dist/features/dashboard/index.d.ts +12 -0
- package/dist/features/dashboard/index.js +20 -17
- package/dist/features/delivery/index.js +20 -17
- package/dist/features/knowledge/index.js +4 -3
- package/dist/features/lead-gen/index.d.ts +58 -12
- package/dist/features/lead-gen/index.js +20 -17
- package/dist/features/monitoring/index.js +20 -17
- package/dist/features/monitoring/requests/index.js +20 -17
- package/dist/features/notes/index.js +6 -4
- package/dist/features/operations/index.d.ts +12 -0
- package/dist/features/operations/index.js +20 -17
- package/dist/features/settings/index.js +20 -17
- package/dist/hooks/access/index.js +9 -6
- package/dist/hooks/delivery/index.js +20 -17
- package/dist/hooks/index.d.ts +260 -203
- package/dist/hooks/index.js +20 -17
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +12 -0
- package/dist/hooks/published.d.ts +260 -203
- package/dist/hooks/published.js +20 -17
- package/dist/hooks/user-notes/index.js +4 -2
- package/dist/index.d.ts +147 -87
- package/dist/index.js +20 -17
- package/dist/initialization/index.js +6 -4
- package/dist/knowledge/index.d.ts +12 -0
- package/dist/knowledge/index.js +5 -4
- package/dist/organization/index.d.ts +50 -13
- package/dist/organization/index.js +20 -17
- package/dist/profile/index.js +4 -2
- package/dist/provider/ElevasisServiceContext.d.ts +13 -4
- package/dist/provider/ElevasisServiceContext.js +3 -1
- package/dist/provider/index.d.ts +25 -4
- package/dist/provider/index.js +16 -13
- package/dist/provider/published.d.ts +25 -4
- package/dist/provider/published.js +14 -11
- package/dist/test-utils/index.d.ts +13 -4
- package/dist/test-utils/index.js +6 -3
- package/dist/theme/index.js +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +3 -1
- package/package.json +5 -5
- package/dist/chunk-X66MVMZT.js +0 -373
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { buildOrganizationGraph, projectOrganizationSurfaces,
|
|
1
|
+
import { buildOrganizationGraph, projectOrganizationSurfaces, SemanticIcon, getSortedSidebarEntries } from './chunk-GLBPGEDD.js';
|
|
2
|
+
import { compileOrganizationOntology, parseOntologyId, getSystem, resolveSystemConfig } from './chunk-43ZU647H.js';
|
|
2
3
|
import { useMemo, useState, useRef, useEffect } from 'react';
|
|
3
4
|
import { useTree, Text, Tree, UnstyledButton, Group, TextInput } from '@mantine/core';
|
|
4
5
|
import { useClipboard } from '@mantine/hooks';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { FeatureUnavailableState } from './chunk-
|
|
1
|
+
import { FeatureUnavailableState } from './chunk-RG2S6NIU.js';
|
|
2
2
|
import { SubshellContainer, SubshellSidebar, SubshellRightSideContainer } from './chunk-A7IG36LB.js';
|
|
3
|
-
import { ApiClientProvider, useApiClient } from './chunk-
|
|
3
|
+
import { ApiClientProvider, useApiClient } from './chunk-FAO7SWSL.js';
|
|
4
4
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
5
|
-
import { getErrorInfo, getErrorTitle, formatErrorMessage } from './chunk-
|
|
6
|
-
import { useElevasisSystems } from './chunk-
|
|
7
|
-
import { InitializationProvider } from './chunk-
|
|
5
|
+
import { getErrorInfo, getErrorTitle, formatErrorMessage } from './chunk-ZJ3FG7FE.js';
|
|
6
|
+
import { useElevasisSystems } from './chunk-23YQ2WH5.js';
|
|
7
|
+
import { InitializationProvider } from './chunk-6DO4PE3O.js';
|
|
8
8
|
import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
|
|
9
|
-
import { useProfile, ProfileProvider } from './chunk-
|
|
10
|
-
import { ElevasisServiceProvider } from './chunk-
|
|
9
|
+
import { useProfile, ProfileProvider } from './chunk-W2SFTXMT.js';
|
|
10
|
+
import { ElevasisServiceProvider } from './chunk-2FTX4WO2.js';
|
|
11
|
+
import { brandSupabaseOrgId, brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
|
|
11
12
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
12
13
|
import { createContext, lazy, useState, useRef, useEffect, useCallback, createElement, useContext, Suspense } from 'react';
|
|
13
14
|
import { useQueryClient, QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
|
@@ -51,18 +52,18 @@ function OrganizationProvider({ apiRequest, children }) {
|
|
|
51
52
|
}, [user]);
|
|
52
53
|
const applyMembership = useCallback((membership) => {
|
|
53
54
|
setCurrentMembership(membership);
|
|
54
|
-
setCurrentSupabaseOrganizationId(membership?.organization?.id
|
|
55
|
-
setCurrentWorkOSOrganizationId(membership?.organization?.workos_org_id
|
|
55
|
+
setCurrentSupabaseOrganizationId(brandSupabaseOrgId(membership?.organization?.id));
|
|
56
|
+
setCurrentWorkOSOrganizationId(brandWorkOsOrgId(membership?.organization?.workos_org_id));
|
|
56
57
|
}, []);
|
|
57
58
|
const selectOrganization = useCallback(
|
|
58
59
|
(data) => {
|
|
59
60
|
let selected = null;
|
|
60
|
-
if (
|
|
61
|
-
selected = data.find((m) => m.organizationId === profile.last_visited_org) ?? null;
|
|
62
|
-
}
|
|
63
|
-
if (!selected && workosOrgId) {
|
|
61
|
+
if (workosOrgId) {
|
|
64
62
|
selected = data.find((m) => m.organization?.workos_org_id === workosOrgId) ?? null;
|
|
65
63
|
}
|
|
64
|
+
if (!selected && profile?.last_visited_org) {
|
|
65
|
+
selected = data.find((m) => m.organizationId === profile.last_visited_org) ?? null;
|
|
66
|
+
}
|
|
66
67
|
if (!selected && data.length > 0) {
|
|
67
68
|
selected = data[0];
|
|
68
69
|
}
|
|
@@ -130,18 +131,20 @@ function OrganizationProvider({ apiRequest, children }) {
|
|
|
130
131
|
void queryClient.invalidateQueries();
|
|
131
132
|
}, [workosOrgId, currentWorkOSOrganizationId, memberships, applyMembership, queryClient]);
|
|
132
133
|
const switchOrganization = useCallback(
|
|
133
|
-
(workosOrgId2) => {
|
|
134
|
+
(workosOrgId2, options) => {
|
|
134
135
|
const target = memberships.find((m) => m.organization?.workos_org_id === workosOrgId2);
|
|
135
136
|
if (!target) return;
|
|
136
137
|
applyMembership(target);
|
|
137
138
|
void queryClient.invalidateQueries();
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
if (options?.persist !== false) {
|
|
140
|
+
void apiRequest("/users/me", {
|
|
141
|
+
method: "PATCH",
|
|
142
|
+
headers: { "Content-Type": "application/json" },
|
|
143
|
+
body: JSON.stringify({ lastVisitedOrg: target.organizationId })
|
|
144
|
+
}).catch((err) => {
|
|
145
|
+
console.warn("Failed to persist last_visited_org preference:", err);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
145
148
|
},
|
|
146
149
|
[memberships, applyMembership, queryClient, apiRequest]
|
|
147
150
|
);
|
|
@@ -214,7 +217,7 @@ function findListActionByAction(registry, actionKey) {
|
|
|
214
217
|
function getListActionWorkflowId(action) {
|
|
215
218
|
return action.workflowId ?? action.resourceId;
|
|
216
219
|
}
|
|
217
|
-
var LazyCoreAuthKitInner = lazy(() => import('./CoreAuthKitInner-
|
|
220
|
+
var LazyCoreAuthKitInner = lazy(() => import('./CoreAuthKitInner-PSTKG4B3.js').then((m) => ({ default: m.CoreAuthKitInner })));
|
|
218
221
|
var defaultQueryClient = null;
|
|
219
222
|
function getDefaultQueryClient() {
|
|
220
223
|
if (!defaultQueryClient) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CenteredErrorState, TrendIndicator, EmptyState, StatCard } from './chunk-
|
|
1
|
+
import { CenteredErrorState, TrendIndicator, EmptyState, StatCard } from './chunk-RG2S6NIU.js';
|
|
2
2
|
import { CardHeader } from './chunk-S3XR4II4.js';
|
|
3
|
-
import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime } from './chunk-
|
|
4
|
-
import { useElevasisServices } from './chunk-
|
|
3
|
+
import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime } from './chunk-ZJ3FG7FE.js';
|
|
4
|
+
import { useElevasisServices } from './chunk-2FTX4WO2.js';
|
|
5
5
|
import { useRef, useState, useLayoutEffect, useEffect, useMemo, useCallback } from 'react';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import { useComputedColorScheme, Group, Text, Box, Stack, Center, Loader, Paper, Button, NumberFormatter, Badge, Space, Tooltip as Tooltip$1, SimpleGrid, Alert, SegmentedControl } from '@mantine/core';
|