@elevasis/ui 2.72.0 → 2.73.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 +114 -20
- package/dist/app/index.js +8 -8
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.js +4 -4
- package/dist/{chunk-A3JHFZDP.js → chunk-3TS5U5BL.js} +1 -1
- package/dist/{chunk-IXBRUIYI.js → chunk-4CW2C5BD.js} +1 -1
- package/dist/{chunk-753MKWFV.js → chunk-5B2ZFO44.js} +1 -1
- package/dist/{chunk-DJWIIPKW.js → chunk-AJOVWB47.js} +3 -3
- package/dist/{chunk-RRS2QR3W.js → chunk-CJ2232PQ.js} +1 -1
- package/dist/{chunk-2454MK7P.js → chunk-ETN3TTRT.js} +7 -7
- package/dist/{chunk-Q3O3WY7Q.js → chunk-IBCEAVB2.js} +33 -13
- package/dist/{chunk-7ESZKTQG.js → chunk-IGBPWD6S.js} +3 -3
- package/dist/{chunk-UZ5JO5TK.js → chunk-JYBJMVNY.js} +1 -1
- package/dist/{chunk-LCHL5SM2.js → chunk-LEPYXLJ2.js} +1 -1
- package/dist/{chunk-LEQGGX2U.js → chunk-LZT2H2MA.js} +4 -4
- package/dist/{chunk-Z2W5VNN3.js → chunk-NHNTX6ZL.js} +1 -1
- package/dist/{chunk-AFBFSXP3.js → chunk-NI37YNRP.js} +4 -4
- package/dist/{chunk-KIDZXZM5.js → chunk-OCVSPAKM.js} +501 -25
- package/dist/{chunk-IMZTRDY2.js → chunk-PQ4B62HH.js} +2 -2
- package/dist/{chunk-SV4M2BUI.js → chunk-SWKAH2YM.js} +52 -20
- package/dist/{chunk-XZIOCB5D.js → chunk-U2H3TIHD.js} +1 -1
- package/dist/{chunk-DKVGO6RJ.js → chunk-Z4ICFQXG.js} +1 -1
- package/dist/{chunk-ZBXCEWKF.js → chunk-ZDKPHFTH.js} +3 -3
- package/dist/components/index.d.ts +305 -22
- package/dist/components/index.js +316 -26
- package/dist/components/navigation/index.js +5 -5
- package/dist/features/auth/index.d.ts +76 -0
- package/dist/features/auth/index.js +6 -6
- package/dist/features/clients/index.js +5 -5
- package/dist/features/content/index.d.ts +494 -31
- package/dist/features/content/index.js +1090 -44
- package/dist/features/crm/index.d.ts +114 -20
- package/dist/features/crm/index.js +6 -6
- package/dist/features/dashboard/index.d.ts +19 -10
- package/dist/features/dashboard/index.js +6 -6
- package/dist/features/delivery/index.d.ts +76 -0
- package/dist/features/delivery/index.js +5 -5
- package/dist/features/knowledge/index.js +4 -4
- package/dist/features/lead-gen/index.d.ts +38 -20
- package/dist/features/lead-gen/index.js +6 -6
- package/dist/features/monitoring/index.js +7 -7
- package/dist/features/monitoring/requests/index.js +5 -5
- package/dist/features/operations/index.d.ts +38 -20
- package/dist/features/operations/index.js +9 -9
- package/dist/features/settings/index.d.ts +76 -0
- package/dist/features/settings/index.js +6 -6
- package/dist/hooks/access/index.js +4 -4
- package/dist/hooks/delivery/index.d.ts +76 -0
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.d.ts +1248 -28
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +19 -10
- package/dist/hooks/published.d.ts +1248 -28
- package/dist/hooks/published.js +4 -4
- package/dist/initialization/index.d.ts +76 -0
- package/dist/knowledge/index.d.ts +38 -20
- package/dist/knowledge/index.js +8 -8
- package/dist/layout/index.js +7 -7
- package/dist/profile/index.d.ts +76 -0
- package/dist/provider/index.d.ts +114 -20
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +114 -20
- package/dist/provider/published.js +4 -4
- package/dist/supabase/index.d.ts +149 -0
- package/dist/test-utils/index.js +3 -3
- package/dist/types/index.d.ts +125 -13
- package/dist/utils/index.d.ts +19 -10
- package/dist/utils/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getLeadGenStageCatalog } from './chunk-
|
|
2
|
-
import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-
|
|
1
|
+
import { getLeadGenStageCatalog } from './chunk-OCVSPAKM.js';
|
|
2
|
+
import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-IBCEAVB2.js';
|
|
3
3
|
|
|
4
4
|
// ../core/src/business/acquisition/ontology-validation.ts
|
|
5
5
|
var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useAvailablePresets } from './chunk-ZFISGKYW.js';
|
|
2
|
-
import { AppShellLoader } from './chunk-
|
|
2
|
+
import { AppShellLoader } from './chunk-3TS5U5BL.js';
|
|
3
3
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
4
|
-
import { useDeleteCredential, ListSkeleton, EmptyState, CustomModal, useCreateCredential, useCredentials, PageTitleCaption, MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, APIErrorAlert, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, StatCard, useOrgRoles, useAssignRole, useRevokeRole, useAccess, AccessKeys, useOrganizationMembers, usePermissionCatalog, AccessGuard, useUpdateCredential, CredentialSchemas } from './chunk-
|
|
5
|
-
import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-
|
|
4
|
+
import { useDeleteCredential, ListSkeleton, EmptyState, CustomModal, useCreateCredential, useCredentials, PageTitleCaption, MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, APIErrorAlert, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, StatCard, useOrgRoles, useAssignRole, useRevokeRole, useAccess, AccessKeys, useOrganizationMembers, usePermissionCatalog, AccessGuard, useUpdateCredential, CredentialSchemas } from './chunk-OCVSPAKM.js';
|
|
5
|
+
import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-U2H3TIHD.js';
|
|
6
6
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
7
7
|
import { useInitialization } from './chunk-P45GQ3ZW.js';
|
|
8
8
|
import { RoleBadge } from './chunk-UD657ICS.js';
|
|
9
9
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
10
|
-
import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-
|
|
10
|
+
import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-IBCEAVB2.js';
|
|
11
11
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
12
12
|
import { brandSupabaseOrgId } from './chunk-MQZE7SUI.js';
|
|
13
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
13
14
|
import { createUseExternalEvents, Text, Table, Group, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Badge, Center, Loader, Box, Code, CopyButton, ThemeIcon, SimpleGrid, UnstyledButton, Card, Switch, Divider, Textarea, MultiSelect } from '@mantine/core';
|
|
14
15
|
import { IconShieldOff, IconKey, IconCalendar, IconPencil, IconTrash, IconAlertTriangle, IconInfoCircle, IconExclamationMark, IconPlus, IconAlertCircle, IconUsers, IconSearch, IconBuilding, IconWebhook, IconCheck, IconCopy, IconUser, IconMail, IconPalette, IconEye, IconSparkles, IconTrendingUp, IconClock, IconPlayerPause, IconPlayerPlay, IconActivity, IconShieldLock, IconStar, IconUserCog, IconUsersGroup, IconSettings, IconRefresh, IconBrandDropbox, IconBrandGoogleDrive, IconPlug, IconEdit, IconUserX, IconUserCheck } from '@tabler/icons-react';
|
|
15
16
|
import { randomId } from '@mantine/hooks';
|
|
@@ -91,7 +92,25 @@ var OAUTH_PROVIDERS = {
|
|
|
91
92
|
// Required for refresh token
|
|
92
93
|
},
|
|
93
94
|
tokenExchange: "form-encoded",
|
|
94
|
-
|
|
95
|
+
// files.metadata.read: files/list_folder, files/list_folder/continue, files/get_metadata
|
|
96
|
+
// sharing.write: sharing/create_shared_link_with_settings
|
|
97
|
+
// sharing.read: sharing/list_shared_links, the recovery path when a 409 conflict
|
|
98
|
+
// omits the existing link's metadata. A token without it degrades to the plain
|
|
99
|
+
// conflict error rather than failing differently, so this is not urgent to adopt.
|
|
100
|
+
// files.content.read already covers files/get_temporary_link, files/download, and both thumbnail calls
|
|
101
|
+
//
|
|
102
|
+
// NOTE: adding a scope here does NOT retroactively grant it to already-issued tokens --
|
|
103
|
+
// an org's existing Dropbox credential must be disconnected and reauthorized (via OAuth)
|
|
104
|
+
// before these new scopes take effect. That is a user action; nothing in this repo can
|
|
105
|
+
// migrate a live credential.
|
|
106
|
+
scopes: [
|
|
107
|
+
"files.content.write",
|
|
108
|
+
"files.content.read",
|
|
109
|
+
"files.metadata.write",
|
|
110
|
+
"files.metadata.read",
|
|
111
|
+
"sharing.write",
|
|
112
|
+
"sharing.read"
|
|
113
|
+
]
|
|
95
114
|
}
|
|
96
115
|
};
|
|
97
116
|
var CredentialFieldSchema = z.object({
|
|
@@ -1800,7 +1819,7 @@ function useOAuthFlow({ apiUrl }) {
|
|
|
1800
1819
|
const [isAuthorizing, setIsAuthorizing] = useState(false);
|
|
1801
1820
|
const [error, setError] = useState(null);
|
|
1802
1821
|
const { isReady } = useElevasisServices();
|
|
1803
|
-
const {
|
|
1822
|
+
const { getAccessToken, organizationId } = useAuthContext();
|
|
1804
1823
|
const authorize = useCallback(
|
|
1805
1824
|
async (provider, credentialName) => {
|
|
1806
1825
|
if (!isReady || !organizationId) {
|
|
@@ -1809,22 +1828,35 @@ function useOAuthFlow({ apiUrl }) {
|
|
|
1809
1828
|
}
|
|
1810
1829
|
setIsAuthorizing(true);
|
|
1811
1830
|
setError(null);
|
|
1831
|
+
const width = 600;
|
|
1832
|
+
const height = 700;
|
|
1833
|
+
const left = Math.round(window.screen.width / 2 - width / 2);
|
|
1834
|
+
const top = Math.round(window.screen.height / 2 - height / 2);
|
|
1835
|
+
const popup = window.open(
|
|
1836
|
+
"about:blank",
|
|
1837
|
+
`oauth-${provider}`,
|
|
1838
|
+
`width=${width},height=${height},left=${left},top=${top}`
|
|
1839
|
+
);
|
|
1840
|
+
if (!popup) {
|
|
1841
|
+
setIsAuthorizing(false);
|
|
1842
|
+
setError("Please enable popups and try again");
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
let token;
|
|
1846
|
+
try {
|
|
1847
|
+
token = await getAccessToken();
|
|
1848
|
+
} catch {
|
|
1849
|
+
popup.close();
|
|
1850
|
+
setIsAuthorizing(false);
|
|
1851
|
+
setError("Authorization failed. Please sign in again.");
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1812
1854
|
try {
|
|
1813
1855
|
const authorizeUrl = new URL(`${apiUrl}/api/oauth/authorize/${provider}`);
|
|
1814
1856
|
authorizeUrl.searchParams.set("credentialName", credentialName);
|
|
1815
|
-
authorizeUrl.searchParams.set("
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
const left = Math.round(window.screen.width / 2 - width / 2);
|
|
1819
|
-
const top = Math.round(window.screen.height / 2 - height / 2);
|
|
1820
|
-
const popup = window.open(
|
|
1821
|
-
authorizeUrl.toString(),
|
|
1822
|
-
`oauth-${provider}`,
|
|
1823
|
-
`width=${width},height=${height},left=${left},top=${top}`
|
|
1824
|
-
);
|
|
1825
|
-
if (!popup) {
|
|
1826
|
-
throw new Error("popup_blocked");
|
|
1827
|
-
}
|
|
1857
|
+
authorizeUrl.searchParams.set("token", token);
|
|
1858
|
+
authorizeUrl.searchParams.set("orgId", organizationId);
|
|
1859
|
+
popup.location.href = authorizeUrl.toString();
|
|
1828
1860
|
await waitForOAuthCallback(popup, Date.now());
|
|
1829
1861
|
} catch (err) {
|
|
1830
1862
|
const rawError = err instanceof Error ? err.message : "unknown";
|
|
@@ -1848,7 +1880,7 @@ function useOAuthFlow({ apiUrl }) {
|
|
|
1848
1880
|
setIsAuthorizing(false);
|
|
1849
1881
|
}
|
|
1850
1882
|
},
|
|
1851
|
-
[isReady, organizationId, apiUrl]
|
|
1883
|
+
[isReady, organizationId, apiUrl, getAccessToken]
|
|
1852
1884
|
);
|
|
1853
1885
|
const waitForOAuthCallback = (popup, startedAt) => {
|
|
1854
1886
|
return new Promise((resolve, reject) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-
|
|
1
|
+
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-IBCEAVB2.js';
|
|
2
2
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
3
3
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
4
4
|
import { notifications } from '@mantine/notifications';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ZodFormRenderer } from './chunk-3MEXPLWT.js';
|
|
2
2
|
import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
|
|
3
3
|
import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-HENXLGVD.js';
|
|
4
|
-
import { AppShellCenteredContainer, AppShellLoader } from './chunk-
|
|
5
|
-
import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, useScheduledTasks, TabCountBadge, useResourcesHealth } from './chunk-
|
|
4
|
+
import { AppShellCenteredContainer, AppShellLoader } from './chunk-3TS5U5BL.js';
|
|
5
|
+
import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, useScheduledTasks, TabCountBadge, useResourcesHealth } from './chunk-OCVSPAKM.js';
|
|
6
6
|
import { glassBase } from './chunk-R6NMRXNO.js';
|
|
7
7
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
8
8
|
import { useInitialization } from './chunk-P45GQ3ZW.js';
|
|
9
9
|
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-BLXJEIQS.js';
|
|
10
|
-
import { formatTimeAgo, formatRelativeTime } from './chunk-
|
|
10
|
+
import { formatTimeAgo, formatRelativeTime } from './chunk-IBCEAVB2.js';
|
|
11
11
|
import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
|
|
12
12
|
import { ResourceStatusColors } from './chunk-6SSQGWK7.js';
|
|
13
13
|
import { memo, useMemo, useEffect, useState, useCallback, Fragment } from 'react';
|