@elevasis/ui 2.17.2 → 2.19.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 +2 -2
- package/dist/app/index.js +5 -5
- package/dist/charts/index.js +3 -3
- package/dist/chunk-3JCMO7SD.js +14 -0
- package/dist/{chunk-TP5NMF6K.js → chunk-46Z2VHY3.js} +4 -4
- package/dist/{chunk-FNWWVX5N.js → chunk-5SCVXZPM.js} +358 -188
- package/dist/{chunk-TTP62HWW.js → chunk-BHR7IV72.js} +10 -15
- package/dist/{chunk-MJ6YV2B5.js → chunk-CTTY6FUT.js} +2 -2
- package/dist/{chunk-P3TFNFZS.js → chunk-EUWBY43Z.js} +2 -2
- package/dist/{chunk-MDO4UCEJ.js → chunk-IBOX2M24.js} +47 -82
- package/dist/{chunk-HH3RNG2O.js → chunk-JEQM67SO.js} +307 -173
- package/dist/{chunk-2TDZBYXI.js → chunk-LR5CRY5A.js} +1 -1
- package/dist/{chunk-JU6UB4YA.js → chunk-LVCJ2H2T.js} +4 -4
- package/dist/{chunk-GRGRBWIO.js → chunk-M7W7CGPL.js} +1 -1
- package/dist/{chunk-34NQLV2W.js → chunk-MJAKU2WA.js} +3 -3
- package/dist/{chunk-OCCZRPER.js → chunk-Q4QJOSVS.js} +1 -1
- package/dist/{chunk-R73EHHPN.js → chunk-Q5HC6ENG.js} +18 -2
- package/dist/{chunk-VDM6DQES.js → chunk-R7OJCNL3.js} +1 -1
- package/dist/{chunk-6RWMRQN5.js → chunk-TIIPYB2Z.js} +1 -1
- package/dist/{chunk-ABUDMATM.js → chunk-TKEKYPZA.js} +6 -6
- package/dist/{chunk-R7GKX4HW.js → chunk-UU6PJ4EJ.js} +192 -82
- package/dist/{chunk-7L42RRHZ.js → chunk-Y7TDUZEH.js} +221 -514
- package/dist/{chunk-7GCWOUFT.js → chunk-YVAXWM3W.js} +73 -121
- package/dist/components/index.d.ts +219 -2810
- package/dist/components/index.js +41 -27
- package/dist/features/crm/index.d.ts +54 -53
- package/dist/features/crm/index.js +11 -11
- package/dist/features/dashboard/index.js +12 -12
- package/dist/features/delivery/index.d.ts +2642 -2605
- package/dist/features/delivery/index.js +11 -11
- package/dist/features/lead-gen/index.d.ts +152 -16
- package/dist/features/lead-gen/index.js +11 -22
- package/dist/features/monitoring/index.js +13 -13
- package/dist/features/monitoring/requests/index.d.ts +38 -27
- package/dist/features/monitoring/requests/index.js +212 -106
- package/dist/features/operations/index.d.ts +9 -26
- package/dist/features/operations/index.js +15 -15
- package/dist/features/settings/index.d.ts +36 -37
- package/dist/features/settings/index.js +12 -12
- package/dist/hooks/delivery/index.d.ts +2712 -2699
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.d.ts +1997 -4627
- package/dist/hooks/index.js +10 -10
- package/dist/hooks/published.d.ts +1997 -4627
- package/dist/hooks/published.js +10 -10
- package/dist/index.d.ts +1124 -3673
- package/dist/index.js +11 -11
- package/dist/layout/index.d.ts +14 -2
- package/dist/layout/index.js +1 -1
- package/dist/provider/index.d.ts +320 -249
- package/dist/provider/index.js +8 -8
- package/dist/provider/published.d.ts +320 -249
- package/dist/provider/published.js +5 -5
- package/dist/sse/index.d.ts +1 -6
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +1608 -2487
- package/dist/utils/index.d.ts +32 -1
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +4 -8
- package/dist/zustand/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-ADSSLKKP.js +0 -10
- /package/dist/{chunk-GCBWGGI6.js → chunk-OD7GWIZS.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AppShellLoader } from './chunk-M25JL54Z.js';
|
|
2
2
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
3
3
|
import { CustomModal } from './chunk-GBMNCNHX.js';
|
|
4
|
-
import { useAvailablePresets } from './chunk-
|
|
5
|
-
import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-
|
|
6
|
-
import { showErrorNotification } from './chunk-
|
|
7
|
-
import { ListSkeleton, EmptyState, PageTitleCaption, CardHeader, APIErrorAlert, StatCard } from './chunk-
|
|
8
|
-
import { formatDateTime, OAUTH_POPUP_CHECK_INTERVAL, OAUTH_FLOW_TIMEOUT } from './chunk-
|
|
4
|
+
import { useAvailablePresets } from './chunk-TIIPYB2Z.js';
|
|
5
|
+
import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-UU6PJ4EJ.js';
|
|
6
|
+
import { showErrorNotification } from './chunk-M7W7CGPL.js';
|
|
7
|
+
import { ListSkeleton, EmptyState, PageTitleCaption, CardHeader, APIErrorAlert, StatCard } from './chunk-BHR7IV72.js';
|
|
8
|
+
import { formatDateTime, OAUTH_POPUP_CHECK_INTERVAL, OAUTH_FLOW_TIMEOUT } from './chunk-OD7GWIZS.js';
|
|
9
9
|
import { useInitialization } from './chunk-DK2HVHCY.js';
|
|
10
10
|
import { useElevasisServices } from './chunk-IRW7JMQ4.js';
|
|
11
|
-
import { Table, Group, Text, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Card, Switch, Badge, Center, Loader, Box, Code, CopyButton, ThemeIcon,
|
|
12
|
-
import { IconSettings, IconKey, IconCalendar, IconPencil, IconTrash, IconAlertTriangle, IconInfoCircle, IconExclamationMark, IconPlus, IconAlertCircle, IconUsers, IconSearch, IconBuilding, IconWebhook, IconCheck, IconCopy, IconUser, IconMail, IconRefresh, IconPalette,
|
|
11
|
+
import { Table, Group, Text, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Card, Switch, Badge, Center, Loader, Box, Code, CopyButton, ThemeIcon, SimpleGrid, UnstyledButton, Divider, Textarea } from '@mantine/core';
|
|
12
|
+
import { IconSettings, IconKey, IconCalendar, IconPencil, IconTrash, IconAlertTriangle, IconInfoCircle, IconExclamationMark, IconPlus, IconAlertCircle, IconUsers, IconSearch, IconBuilding, IconWebhook, IconCheck, IconCopy, IconUser, IconMail, IconRefresh, IconPalette, IconEye, IconSparkles, IconTrendingUp, IconClock, IconPlayerPause, IconPlayerPlay, IconActivity, IconBrandDropbox, IconBrandGoogleDrive, IconPlug, IconEdit, IconUserX, IconUserCheck } from '@tabler/icons-react';
|
|
13
13
|
import { z } from 'zod';
|
|
14
14
|
import { useState, useEffect, useRef, useMemo, useCallback } from 'react';
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -403,7 +403,7 @@ function CredentialSettings({ oauthSection }) {
|
|
|
403
403
|
console.log("Credential created:", result);
|
|
404
404
|
setShowCreateModal(false);
|
|
405
405
|
};
|
|
406
|
-
return /* @__PURE__ */ jsxs(
|
|
406
|
+
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
407
407
|
/* @__PURE__ */ jsx(
|
|
408
408
|
PageTitleCaption,
|
|
409
409
|
{
|
|
@@ -746,7 +746,7 @@ function AccountSettings({
|
|
|
746
746
|
}
|
|
747
747
|
});
|
|
748
748
|
const { data: memberships = [], isLoading, error } = useUserMemberships(user?.id || "");
|
|
749
|
-
return /* @__PURE__ */ jsxs(
|
|
749
|
+
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
750
750
|
/* @__PURE__ */ jsx(PageTitleCaption, { title: "Account Settings", caption: "Manage your account and organization memberships" }),
|
|
751
751
|
user && /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
|
|
752
752
|
/* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
|
|
@@ -801,14 +801,7 @@ function AccountSettings({
|
|
|
801
801
|
)
|
|
802
802
|
] })
|
|
803
803
|
] }) }),
|
|
804
|
-
/* @__PURE__ */ jsx(
|
|
805
|
-
OrganizationMembershipsList,
|
|
806
|
-
{
|
|
807
|
-
memberships,
|
|
808
|
-
loading: isLoading,
|
|
809
|
-
error
|
|
810
|
-
}
|
|
811
|
-
),
|
|
804
|
+
/* @__PURE__ */ jsx(OrganizationMembershipsList, { memberships, loading: isLoading, error }),
|
|
812
805
|
error && /* @__PURE__ */ jsxs(Alert, { icon: /* @__PURE__ */ jsx(IconAlertCircle, { size: 16 }), title: "Error", color: "red", children: [
|
|
813
806
|
"Failed to load organization memberships: ",
|
|
814
807
|
error.message
|
|
@@ -864,17 +857,11 @@ function useUpdateThemePreference() {
|
|
|
864
857
|
);
|
|
865
858
|
return { updateTheme };
|
|
866
859
|
}
|
|
867
|
-
var COLOR_SCHEMES = [
|
|
868
|
-
{ value: "light", label: "Light", icon: /* @__PURE__ */ jsx(IconSun, { size: 16 }) },
|
|
869
|
-
{ value: "dark", label: "Dark", icon: /* @__PURE__ */ jsx(IconMoon, { size: 16 }) },
|
|
870
|
-
{ value: "auto", label: "System", icon: /* @__PURE__ */ jsx(IconDeviceDesktop, { size: 16 }) }
|
|
871
|
-
];
|
|
872
860
|
function AppearanceSettings({ initialTheme, onThemeChange }) {
|
|
873
861
|
const preset = useInternalThemeStore((s) => s.preset);
|
|
874
862
|
const colorScheme = useInternalThemeStore((s) => s.colorScheme);
|
|
875
863
|
const setInternalTheme = useInternalThemeStore((s) => s.setTheme);
|
|
876
864
|
const { updateTheme } = useUpdateThemePreference();
|
|
877
|
-
const { setColorScheme: setMantineColorScheme } = useMantineColorScheme();
|
|
878
865
|
const availablePresets = useAvailablePresets();
|
|
879
866
|
const [modalOpen, setModalOpen] = useState(false);
|
|
880
867
|
const hydratedRef = useRef(false);
|
|
@@ -887,103 +874,62 @@ function AppearanceSettings({ initialTheme, onThemeChange }) {
|
|
|
887
874
|
onThemeChange?.({ preset, colorScheme });
|
|
888
875
|
}, [preset, colorScheme]);
|
|
889
876
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
890
|
-
/* @__PURE__ */
|
|
891
|
-
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
icon: /* @__PURE__ */ jsx(IconPalette, { size: 18 }),
|
|
896
|
-
title: "Theme",
|
|
897
|
-
subtitle: "Choose a color palette for the command center"
|
|
898
|
-
}
|
|
899
|
-
),
|
|
900
|
-
/* @__PURE__ */ jsx(Stack, { gap: "md", children: /* @__PURE__ */ jsx(SimpleGrid, { cols: { base: 2, sm: 3, md: 4 }, children: availablePresets.map((p) => {
|
|
901
|
-
const isActive = p.value === preset;
|
|
902
|
-
return /* @__PURE__ */ jsx(
|
|
903
|
-
UnstyledButton,
|
|
877
|
+
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
878
|
+
/* @__PURE__ */ jsx(PageTitleCaption, { title: "Appearance", caption: "Customize how the command center looks" }),
|
|
879
|
+
/* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
880
|
+
/* @__PURE__ */ jsx(
|
|
881
|
+
CardHeader,
|
|
904
882
|
{
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
883
|
+
icon: /* @__PURE__ */ jsx(IconPalette, { size: 18 }),
|
|
884
|
+
title: "Theme",
|
|
885
|
+
subtitle: "Choose a color palette for the command center"
|
|
886
|
+
}
|
|
887
|
+
),
|
|
888
|
+
/* @__PURE__ */ jsx(Stack, { gap: "md", children: /* @__PURE__ */ jsx(SimpleGrid, { cols: { base: 2, sm: 3, md: 4 }, children: availablePresets.map((p) => {
|
|
889
|
+
const isActive = p.value === preset;
|
|
890
|
+
return /* @__PURE__ */ jsx(
|
|
891
|
+
UnstyledButton,
|
|
892
|
+
{
|
|
893
|
+
onClick: () => {
|
|
894
|
+
if (!isActive) {
|
|
895
|
+
updateTheme({ preset: p.value, colorScheme });
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
children: /* @__PURE__ */ jsx(
|
|
899
|
+
Card,
|
|
900
|
+
{
|
|
901
|
+
style: {
|
|
902
|
+
cursor: "pointer",
|
|
903
|
+
border: isActive ? "var(--active-border)" : "1px solid var(--color-border)",
|
|
904
|
+
backgroundColor: isActive ? "var(--active-background)" : "var(--color-surface)",
|
|
905
|
+
transition: `all var(--duration-fast) var(--easing)`
|
|
906
|
+
},
|
|
907
|
+
children: /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
908
|
+
/* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "center", children: [
|
|
909
|
+
/* @__PURE__ */ jsx(Text, { fw: 600, size: "sm", children: p.label }),
|
|
910
|
+
/* @__PURE__ */ jsx(
|
|
911
|
+
"div",
|
|
912
|
+
{
|
|
913
|
+
style: {
|
|
914
|
+
width: 14,
|
|
915
|
+
height: 14,
|
|
916
|
+
borderRadius: "50%",
|
|
917
|
+
backgroundColor: p.colors[0],
|
|
918
|
+
border: "1px solid var(--color-border)",
|
|
919
|
+
flexShrink: 0
|
|
920
|
+
}
|
|
932
921
|
}
|
|
933
|
-
|
|
934
|
-
)
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
)
|
|
940
|
-
},
|
|
941
|
-
p.value
|
|
942
|
-
);
|
|
943
|
-
}) }) })
|
|
944
|
-
] }),
|
|
945
|
-
/* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
946
|
-
/* @__PURE__ */ jsx(
|
|
947
|
-
CardHeader,
|
|
948
|
-
{
|
|
949
|
-
icon: /* @__PURE__ */ jsx(IconSun, { size: 18 }),
|
|
950
|
-
title: "Color Scheme",
|
|
951
|
-
subtitle: "Light, dark, or match your system preference"
|
|
952
|
-
}
|
|
953
|
-
),
|
|
954
|
-
/* @__PURE__ */ jsx(Stack, { gap: "md", children: /* @__PURE__ */ jsx(SimpleGrid, { cols: 3, children: COLOR_SCHEMES.map((s) => {
|
|
955
|
-
const isActive = s.value === colorScheme;
|
|
956
|
-
return /* @__PURE__ */ jsx(
|
|
957
|
-
UnstyledButton,
|
|
958
|
-
{
|
|
959
|
-
onClick: () => {
|
|
960
|
-
if (!isActive) {
|
|
961
|
-
setMantineColorScheme(s.value);
|
|
962
|
-
updateTheme({ preset, colorScheme: s.value });
|
|
963
|
-
}
|
|
922
|
+
)
|
|
923
|
+
] }),
|
|
924
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: p.description })
|
|
925
|
+
] })
|
|
926
|
+
}
|
|
927
|
+
)
|
|
964
928
|
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
padding: "md",
|
|
970
|
-
style: {
|
|
971
|
-
cursor: "pointer",
|
|
972
|
-
border: isActive ? "var(--active-border)" : "1px solid var(--color-border)",
|
|
973
|
-
backgroundColor: isActive ? "var(--active-background)" : "var(--color-surface)",
|
|
974
|
-
transition: `all var(--duration-fast) var(--easing)`
|
|
975
|
-
},
|
|
976
|
-
children: /* @__PURE__ */ jsxs(Group, { gap: 6, justify: "center", wrap: "nowrap", children: [
|
|
977
|
-
s.icon,
|
|
978
|
-
/* @__PURE__ */ jsx(Text, { fw: 600, size: "sm", children: s.label }),
|
|
979
|
-
isActive && /* @__PURE__ */ jsx(IconCheck, { size: 14, color: "var(--color-primary)", style: { flexShrink: 0 } })
|
|
980
|
-
] })
|
|
981
|
-
}
|
|
982
|
-
)
|
|
983
|
-
},
|
|
984
|
-
s.value
|
|
985
|
-
);
|
|
986
|
-
}) }) })
|
|
929
|
+
p.value
|
|
930
|
+
);
|
|
931
|
+
}) }) })
|
|
932
|
+
] })
|
|
987
933
|
] }),
|
|
988
934
|
/* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
989
935
|
/* @__PURE__ */ jsx(
|
|
@@ -1651,7 +1597,7 @@ function OrgMembersList({ orgId }) {
|
|
|
1651
1597
|
] });
|
|
1652
1598
|
}
|
|
1653
1599
|
function OrganizationSettings({ user, currentMembership, isOrgAdmin }) {
|
|
1654
|
-
return /* @__PURE__ */ jsxs(
|
|
1600
|
+
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
1655
1601
|
/* @__PURE__ */ jsx(PageTitleCaption, { title: "Organization Settings", caption: "Manage your current organization" }),
|
|
1656
1602
|
currentMembership?.organization && /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
|
|
1657
1603
|
/* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
|
|
@@ -1701,9 +1647,15 @@ function OrganizationSettings({ user, currentMembership, isOrgAdmin }) {
|
|
|
1701
1647
|
] })
|
|
1702
1648
|
] })
|
|
1703
1649
|
] }) }),
|
|
1704
|
-
isOrgAdmin && currentMembership?.organization && /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, {
|
|
1705
|
-
/* @__PURE__ */ jsx(
|
|
1706
|
-
|
|
1650
|
+
isOrgAdmin && currentMembership?.organization && /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { children: [
|
|
1651
|
+
/* @__PURE__ */ jsx(
|
|
1652
|
+
CardHeader,
|
|
1653
|
+
{
|
|
1654
|
+
icon: /* @__PURE__ */ jsx(IconUsers, { size: 18 }),
|
|
1655
|
+
title: "Manage Members",
|
|
1656
|
+
subtitle: "Configure feature access for organization members."
|
|
1657
|
+
}
|
|
1658
|
+
),
|
|
1707
1659
|
/* @__PURE__ */ jsx(OrgMembersList, { orgId: currentMembership.organization.id })
|
|
1708
1660
|
] }) })
|
|
1709
1661
|
] });
|