@elevasis/ui 2.74.0 → 2.76.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/index.js +6 -7
- package/dist/charts/index.js +6 -7
- package/dist/{chunk-GO4XJ5D4.js → chunk-2GIHWU5O.js} +4 -3
- package/dist/chunk-2Y6AKWGU.js +42 -0
- package/dist/chunk-3QYRZSHP.js +854 -0
- package/dist/{chunk-CRA7WQZH.js → chunk-3RK2NNJX.js} +1 -1
- package/dist/{chunk-R6NMRXNO.js → chunk-4WLAVUPS.js} +1 -1
- package/dist/{chunk-GPQQGQGT.js → chunk-5R4I2PAN.js} +9 -43
- package/dist/{chunk-R5UGIFYU.js → chunk-5ZK7K7YP.js} +25 -1
- package/dist/chunk-6B4ZPBQJ.js +7 -0
- package/dist/{chunk-ARAFQBNI.js → chunk-73G3I5HJ.js} +160 -160
- package/dist/{chunk-ZWI62BQ6.js → chunk-BFLYDVEN.js} +32 -42
- package/dist/{chunk-W2QRBQQA.js → chunk-BG6PWDJ3.js} +381 -381
- package/dist/{chunk-7ARBBELS.js → chunk-BV2RNLPP.js} +1 -1
- package/dist/{chunk-FA7LMNQO.js → chunk-CTT4RDXE.js} +150 -151
- package/dist/chunk-E2LJ3FRA.js +237 -0
- package/dist/{chunk-E6YGA5WH.js → chunk-EFQLXRYT.js} +1 -2
- package/dist/{chunk-FZSG6M6W.js → chunk-EVNLJHDD.js} +3 -3
- package/dist/{chunk-ZYNVCWDZ.js → chunk-GDQQX5SL.js} +4 -42
- package/dist/{chunk-DCQKTDIG.js → chunk-GFSOQH3N.js} +1 -1
- package/dist/{chunk-3LOKYZJC.js → chunk-H5AEYSVX.js} +164 -3
- package/dist/{chunk-ZFISGKYW.js → chunk-IIEZXXDD.js} +1 -1
- package/dist/{chunk-3QHX4ZKV.js → chunk-INCEZAM3.js} +1 -1
- package/dist/{chunk-O32UQ26A.js → chunk-JZQNUQE4.js} +1 -1
- package/dist/{chunk-6JN2TLV2.js → chunk-K55TU6CC.js} +2023 -1700
- package/dist/chunk-KB5CAN5D.js +33 -0
- package/dist/{chunk-2MRRDF32.js → chunk-KMA4FOSV.js} +5682 -5675
- package/dist/{chunk-HYQOGRWG.js → chunk-KXNRTJAE.js} +1 -1
- package/dist/{chunk-7RJ7P6S6.js → chunk-MGAELVTZ.js} +12 -12
- package/dist/chunk-MKH2KOAO.js +39 -0
- package/dist/{chunk-4MXNHJTA.js → chunk-NAPXMYFW.js} +939 -1570
- package/dist/{chunk-CQPULKKL.js → chunk-OGG3QJYW.js} +14 -5
- package/dist/{chunk-4M2BSHVT.js → chunk-P6HHXMLJ.js} +1 -1
- package/dist/{chunk-WZU3MCKI.js → chunk-QAILYRC2.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-RXZ3XDBM.js} +1 -1
- package/dist/{chunk-BA3AZJUR.js → chunk-SPW6UA6B.js} +1 -1
- package/dist/{chunk-RFNJ2PTO.js → chunk-SVZR4GYA.js} +1 -1
- package/dist/{chunk-5A6KCFS5.js → chunk-UEY4AB3R.js} +789 -66
- package/dist/{chunk-LN4UW6S4.js → chunk-UL6MPMKY.js} +1 -1
- package/dist/{chunk-ZFA56VSR.js → chunk-WELN7DDV.js} +2 -2
- package/dist/{chunk-43LC6XAX.js → chunk-WJN2VVVJ.js} +1 -1
- package/dist/{chunk-BRTGCFBH.js → chunk-XODQUPFW.js} +11 -11
- package/dist/components/index.d.ts +181 -34
- package/dist/components/index.js +2249 -1804
- 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 +34 -31
- package/dist/features/crm/index.css +59 -59
- package/dist/features/crm/index.d.ts +18 -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 +3903 -2
- 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 +3962 -1
- package/dist/features/seo/index.js +31 -2
- package/dist/features/settings/index.css +59 -59
- package/dist/features/settings/index.d.ts +87 -3745
- 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 +13 -4
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/published.d.ts +69 -27
- 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/profile/index.d.ts +64 -3716
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +6 -7
- package/dist/provider/published.d.ts +3 -0
- package/dist/provider/published.js +6 -7
- 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 +312 -251
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +9 -9
- package/src/hooks/README.md +22 -23
- package/dist/chunk-6ZAP3FOA.js +0 -93
- package/dist/chunk-AH52XQB7.js +0 -1
- package/dist/chunk-GDOR57D7.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-
|
|
1
|
+
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-5ZK7K7YP.js';
|
|
2
2
|
import { notifications } from '@mantine/notifications';
|
|
3
3
|
|
|
4
4
|
var showInfoNotification = (message) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useProjectRealtime, useProjectActivities } from './chunk-
|
|
2
|
-
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-
|
|
3
|
-
import { useTableSort, sortData } from './chunk-
|
|
1
|
+
import { useProjectRealtime, useProjectActivities } from './chunk-5R4I2PAN.js';
|
|
2
|
+
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-GFSOQH3N.js';
|
|
3
|
+
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
4
4
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
5
5
|
import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-DLR4SDZW.js';
|
|
6
|
+
import { SubshellPageLayout } from './chunk-6B4ZPBQJ.js';
|
|
6
7
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
7
8
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
8
9
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
9
|
-
import { StatusBadge, EmptyState,
|
|
10
|
-
import { SubshellSidebarSection, SubshellNavItem } from './chunk-MISHPEJX.js';
|
|
10
|
+
import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-K55TU6CC.js';
|
|
11
11
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
12
|
-
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-
|
|
12
|
+
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-5ZK7K7YP.js';
|
|
13
13
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
14
14
|
import { useState, useMemo } from 'react';
|
|
15
15
|
import { Stack, Text, Group, Checkbox, ActionIcon, TextInput, Button, Modal, Title, Textarea, Select, SimpleGrid, Card, ThemeIcon, RingProgress, Paper, Timeline, Badge, Collapse, Center, Loader, Table, Pagination, Alert, CopyButton, Tooltip, Space, Tabs, Divider, Anchor, Chip, List } from '@mantine/core';
|
|
@@ -494,7 +494,7 @@ var ProjectsSidebar = ({ children } = {}) => {
|
|
|
494
494
|
] });
|
|
495
495
|
};
|
|
496
496
|
function AllTasksPage() {
|
|
497
|
-
return /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ jsxs(SubshellPageLayout, { children: [
|
|
498
498
|
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title: "All Tasks", caption: "Project tasks are scoped to an individual project" }) }),
|
|
499
499
|
/* @__PURE__ */ jsxs(Paper, { children: [
|
|
500
500
|
/* @__PURE__ */ jsx(
|
|
@@ -508,10 +508,10 @@ function AllTasksPage() {
|
|
|
508
508
|
),
|
|
509
509
|
/* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", ta: "center", pb: "xl", children: "This page is kept for route parity only." })
|
|
510
510
|
] })
|
|
511
|
-
] })
|
|
511
|
+
] });
|
|
512
512
|
}
|
|
513
513
|
function UpcomingMilestonesPage() {
|
|
514
|
-
return /* @__PURE__ */
|
|
514
|
+
return /* @__PURE__ */ jsxs(SubshellPageLayout, { children: [
|
|
515
515
|
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title: "Upcoming Milestones", caption: "Milestones are scoped to an individual project" }) }),
|
|
516
516
|
/* @__PURE__ */ jsxs(Paper, { children: [
|
|
517
517
|
/* @__PURE__ */ jsx(
|
|
@@ -525,7 +525,7 @@ function UpcomingMilestonesPage() {
|
|
|
525
525
|
),
|
|
526
526
|
/* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", ta: "center", pb: "xl", children: "This page is kept for route parity only." })
|
|
527
527
|
] })
|
|
528
|
-
] })
|
|
528
|
+
] });
|
|
529
529
|
}
|
|
530
530
|
var STATUS_OPTIONS = [
|
|
531
531
|
{ value: "active", label: "Active" },
|
|
@@ -1153,7 +1153,7 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
|
|
|
1153
1153
|
(lastIndex, milestone, index) => milestone.status !== "upcoming" ? index : lastIndex,
|
|
1154
1154
|
-1
|
|
1155
1155
|
);
|
|
1156
|
-
return /* @__PURE__ */ jsx(
|
|
1156
|
+
return /* @__PURE__ */ jsx(SubshellPageLayout, { children: /* @__PURE__ */ jsxs(Stack, { children: [
|
|
1157
1157
|
/* @__PURE__ */ jsx(
|
|
1158
1158
|
PageTitleCaption,
|
|
1159
1159
|
{
|
|
@@ -1592,7 +1592,7 @@ function ProjectDetailPage({ projectId, onBack, backLabel = "Projects" }) {
|
|
|
1592
1592
|
)
|
|
1593
1593
|
] })
|
|
1594
1594
|
] }) })
|
|
1595
|
-
] }) })
|
|
1595
|
+
] }) });
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
export { AllTasksPage, Checklist, CreateDeliveryEntityModal, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
2
|
+
import { createClient } from '@supabase/supabase-js';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
|
|
5
|
+
function getSupabaseConfig() {
|
|
6
|
+
const url = import.meta.env?.VITE_SUPABASE_URL;
|
|
7
|
+
const anonKey = import.meta.env?.VITE_SUPABASE_ANON_KEY;
|
|
8
|
+
if (!url || !anonKey) {
|
|
9
|
+
throw new Error("Missing Supabase environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)");
|
|
10
|
+
}
|
|
11
|
+
return { url, anonKey };
|
|
12
|
+
}
|
|
13
|
+
var useSupabase = () => {
|
|
14
|
+
const { getAccessToken } = useAuthContext();
|
|
15
|
+
const { url, anonKey } = getSupabaseConfig();
|
|
16
|
+
return useMemo(
|
|
17
|
+
() => createClient(url, anonKey, {
|
|
18
|
+
global: {
|
|
19
|
+
headers: {
|
|
20
|
+
// Additional headers if needed
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
accessToken: async () => {
|
|
24
|
+
try {
|
|
25
|
+
const token = await getAccessToken();
|
|
26
|
+
if (!token) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return token;
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}),
|
|
35
|
+
[getAccessToken, url, anonKey]
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { useSupabase };
|