@elevasis/ui 2.23.0 → 2.24.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.
Files changed (57) hide show
  1. package/dist/app/index.d.ts +2915 -0
  2. package/dist/app/index.js +5 -4
  3. package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
  4. package/dist/{chunk-D3KQAABP.js → chunk-4NWNS7TX.js} +1 -1
  5. package/dist/{chunk-7PGEGSUM.js → chunk-FUEXGRFR.js} +2 -2
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-YU6MBDVO.js → chunk-KCJ6VATY.js} +4 -68
  8. package/dist/{chunk-FXWETLEB.js → chunk-KLFIJDTD.js} +1 -1
  9. package/dist/{chunk-PXGSJNBH.js → chunk-M2HWJY6O.js} +704 -375
  10. package/dist/{chunk-N6WLOWOD.js → chunk-MTR6AN2C.js} +3 -12
  11. package/dist/chunk-OWHQ65EQ.js +211 -0
  12. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  13. package/dist/{chunk-GUJUK6EH.js → chunk-QULLZ5PE.js} +172 -2
  14. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  15. package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
  16. package/dist/{chunk-EPV7NU2E.js → chunk-VGNAV3TH.js} +385 -188
  17. package/dist/{chunk-PTUOINQ2.js → chunk-YBZT7MJR.js} +3 -3
  18. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  19. package/dist/components/index.d.ts +488 -452
  20. package/dist/components/index.js +58 -22
  21. package/dist/components/navigation/index.js +2 -2
  22. package/dist/features/auth/index.d.ts +463 -377
  23. package/dist/features/crm/index.d.ts +459 -379
  24. package/dist/features/crm/index.js +8 -8
  25. package/dist/features/dashboard/index.js +8 -8
  26. package/dist/features/delivery/index.d.ts +457 -371
  27. package/dist/features/delivery/index.js +8 -8
  28. package/dist/features/lead-gen/index.d.ts +213 -65
  29. package/dist/features/lead-gen/index.js +9 -8
  30. package/dist/features/monitoring/index.js +9 -9
  31. package/dist/features/monitoring/requests/index.js +7 -7
  32. package/dist/features/operations/index.js +11 -10
  33. package/dist/features/settings/index.d.ts +463 -377
  34. package/dist/features/settings/index.js +9 -9
  35. package/dist/hooks/delivery/index.d.ts +457 -371
  36. package/dist/hooks/index.d.ts +936 -718
  37. package/dist/hooks/index.js +7 -7
  38. package/dist/hooks/published.d.ts +936 -718
  39. package/dist/hooks/published.js +7 -7
  40. package/dist/index.d.ts +1313 -1027
  41. package/dist/index.js +8 -8
  42. package/dist/initialization/index.d.ts +463 -377
  43. package/dist/organization/index.d.ts +11 -1
  44. package/dist/organization/index.js +2 -2
  45. package/dist/profile/index.d.ts +463 -377
  46. package/dist/provider/index.d.ts +3132 -169
  47. package/dist/provider/index.js +6 -6
  48. package/dist/provider/published.d.ts +3098 -168
  49. package/dist/provider/published.js +3 -3
  50. package/dist/supabase/index.d.ts +559 -389
  51. package/dist/test-utils/index.d.ts +21 -1
  52. package/dist/test-utils/index.js +13 -4
  53. package/dist/theme/index.js +2 -2
  54. package/dist/types/index.d.ts +463 -377
  55. package/package.json +4 -4
  56. package/src/test-utils/README.md +2 -0
  57. /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
package/dist/app/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { ElevasisUIProvider } from '../chunk-3HEUGBOT.js';
2
- import '../chunk-XOTJNW4Q.js';
1
+ import { ElevasisUIProvider } from '../chunk-2WZ635SS.js';
2
+ import '../chunk-QIW6OCEI.js';
3
3
  import '../chunk-WLOQ4IBG.js';
4
- import '../chunk-LVUCBY7X.js';
4
+ import '../chunk-UDJE54WN.js';
5
5
  import '../chunk-SZHARWKU.js';
6
6
  import '../chunk-T6INEVX6.js';
7
- import '../chunk-6IA2OMAE.js';
7
+ import '../chunk-HC2KV6BU.js';
8
8
  import '../chunk-QJ2KCHKX.js';
9
9
  import '../chunk-SGXXJE52.js';
10
10
  import '../chunk-KRWALB24.js';
@@ -58,6 +58,7 @@ function AppWithStore({ config }) {
58
58
  queryClient: config.queryClient,
59
59
  apiUrl: config.apiUrl,
60
60
  onError: config.onApiError ? handleApiError : void 0,
61
+ crmActions: config.crmActions,
61
62
  children: /* @__PURE__ */ jsx(AuthenticatedApp, { config })
62
63
  }
63
64
  );
@@ -1,6 +1,6 @@
1
- import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-XOTJNW4Q.js';
1
+ import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-QIW6OCEI.js';
2
2
  import { AppBackground } from './chunk-WLOQ4IBG.js';
3
- import { ElevasisCoreProvider } from './chunk-LVUCBY7X.js';
3
+ import { ElevasisCoreProvider } from './chunk-UDJE54WN.js';
4
4
  import { ElevasisLoader } from './chunk-SZHARWKU.js';
5
5
  import { AppearanceProvider } from './chunk-QJ2KCHKX.js';
6
6
  import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-SGXXJE52.js';
@@ -1,5 +1,5 @@
1
1
  import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-TSSKOQBX.js';
2
- import { useResourcesHealth } from './chunk-GUJUK6EH.js';
2
+ import { useResourcesHealth } from './chunk-QULLZ5PE.js';
3
3
  import { CardHeader, EmptyState } from './chunk-XUYBOO32.js';
4
4
  import { getTimeRangeDates, formatBucketTime } from './chunk-SGXXJE52.js';
5
5
  import { Paper, Center, Loader, Group } from '@mantine/core';
@@ -2,9 +2,9 @@ import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
2
2
  import { useCyberColors, HeroStatsRow } from './chunk-TSSKOQBX.js';
3
3
  import { AppShellCenteredContainer, AppShellLoader } from './chunk-M25JL54Z.js';
4
4
  import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-E4WQGJNS.js';
5
- import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-GUJUK6EH.js';
5
+ import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-QULLZ5PE.js';
6
6
  import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-22UVE3RA.js';
7
- import { glassBase } from './chunk-XOTJNW4Q.js';
7
+ import { glassBase } from './chunk-QIW6OCEI.js';
8
8
  import { GlowDot, CardHeader, EmptyState, PageTitleCaption, TabCountBadge } from './chunk-XUYBOO32.js';
9
9
  import { formatTimeAgo, getTimeRangeDates, formatRelativeTime } from './chunk-SGXXJE52.js';
10
10
  import { ResourceStatusColors } from './chunk-KRWALB24.js';
@@ -112,6 +112,15 @@ function OrganizationProvider({ apiRequest, children }) {
112
112
  if (!user?.id || !profileLoaded || hasInitializedRef.current) return;
113
113
  fetchAndInitialize();
114
114
  }, [user?.id, profileLoaded, fetchAndInitialize]);
115
+ useEffect(() => {
116
+ if (!hasInitializedRef.current) return;
117
+ if (!workosOrgId) return;
118
+ if (workosOrgId === currentWorkOSOrganizationId) return;
119
+ const target = memberships.find((m) => m.organization?.workos_org_id === workosOrgId);
120
+ if (!target) return;
121
+ applyMembership(target);
122
+ void queryClient.invalidateQueries();
123
+ }, [workosOrgId, currentWorkOSOrganizationId, memberships, applyMembership, queryClient]);
115
124
  const switchOrganization = useCallback(
116
125
  (workosOrgId2) => {
117
126
  const target = memberships.find((m) => m.organization?.workos_org_id === workosOrgId2);
@@ -1,14 +1,15 @@
1
1
  import { ChatHeader, ChatSidebar } from './chunk-ROSMICXG.js';
2
2
  import { SubshellSidebarLoader, SubshellLoader } from './chunk-3JCMO7SD.js';
3
- import { BaseNode, useGraphTheme, BaseEdge, FormFieldRenderer, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, GraphBackground, GraphFitViewButton, GraphFitViewHandler } from './chunk-7PGEGSUM.js';
4
- import { ResourceHealthPanel } from './chunk-D3KQAABP.js';
3
+ import { BaseNode, useGraphTheme, BaseEdge, FormFieldRenderer, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, GraphBackground, GraphFitViewButton, GraphFitViewHandler } from './chunk-FUEXGRFR.js';
4
+ import { LabelSchema, ColorTokenSchema, IconNameSchema, PathSchema, DescriptionSchema, DisplayMetadataSchema, ModelIdSchema, ReferenceIdsSchema, OrganizationModelSalesSchema } from './chunk-OWHQ65EQ.js';
5
+ import { ResourceHealthPanel } from './chunk-4NWNS7TX.js';
5
6
  import { useCyberColors, CyberDonut } from './chunk-TSSKOQBX.js';
6
7
  import { AppShellLoader } from './chunk-M25JL54Z.js';
7
8
  import { PageContainer } from './chunk-BZZCNLT6.js';
8
9
  import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
9
10
  import { CustomModal, ConfirmationModal } from './chunk-KVJ3LFH2.js';
10
11
  import { getResourceStatusColor, useTimelineData, useAgentIterationData, getStatusIcon } from './chunk-E4WQGJNS.js';
11
- import { useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useCommandQueueTotals, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, collectResourceFilterFacets, useExecuteAsync, useResourceDefinition, isSessionCapable, useDeleteTask, useCommandQueue, useSubmitAction, useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, COMMAND_VIEW_VISUALIZATION_MODES, useExecutionPanelState, useDeleteSession, useCreateSession, useSessions, useSessionExecutions, useSession, useBulkDeleteExecutions, getCommandViewGraphPositions } from './chunk-GUJUK6EH.js';
12
+ import { useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useCommandQueueTotals, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, collectResourceFilterFacets, useExecuteAsync, useResourceDefinition, isSessionCapable, useDeleteTask, useCommandQueue, useSubmitAction, useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, COMMAND_VIEW_VISUALIZATION_MODES, useExecutionPanelState, useDeleteSession, useCreateSession, useSessions, useSessionExecutions, useSession, useBulkDeleteExecutions, getCommandViewGraphPositions } from './chunk-QULLZ5PE.js';
12
13
  import { showApiErrorNotification, showSuccessNotification } from './chunk-Z6FAH4XV.js';
13
14
  import { useGraphHighlighting, calculateGraphHeight, Graph_module_css_default, GRAPH_CONSTANTS } from './chunk-22UVE3RA.js';
14
15
  import { useMergedExecution } from './chunk-3ZMAGTWF.js';
@@ -40,51 +41,6 @@ import cytoscape from 'cytoscape';
40
41
  import { create } from 'zustand';
41
42
  import { formatDistanceToNow } from 'date-fns';
42
43
 
43
- var ModelIdSchema = z.string().trim().min(1).max(100).regex(/^[a-z0-9]+(?:[-._][a-z0-9]+)*$/, "IDs must be lowercase and use -, _, or . separators");
44
- var LabelSchema = z.string().trim().min(1).max(120);
45
- var DescriptionSchema = z.string().trim().min(1).max(2e3);
46
- var ColorTokenSchema = z.string().trim().min(1).max(50);
47
- var IconNameSchema = z.string().trim().min(1).max(80);
48
- var PathSchema = z.string().trim().startsWith("/").max(300);
49
- var ReferenceIdsSchema = z.array(ModelIdSchema).default([]);
50
- var DisplayMetadataSchema = z.object({
51
- label: LabelSchema,
52
- description: DescriptionSchema.optional(),
53
- color: ColorTokenSchema.optional(),
54
- icon: IconNameSchema.optional()
55
- });
56
- var TechStackEntrySchema = z.object({
57
- /** Name of the external platform (e.g. "HubSpot", "Stripe", "Notion"). */
58
- platform: z.string().trim().min(1).max(200),
59
- /** Free-form description of what this integration is used for. */
60
- purpose: z.string().trim().min(1).max(500),
61
- /**
62
- * Health of the credential backing this integration.
63
- * - configured: credential present and valid
64
- * - pending: not yet set up
65
- * - expired: credential existed but has lapsed
66
- * - missing: expected but not present
67
- */
68
- credentialStatus: z.enum(["configured", "pending", "expired", "missing"]),
69
- /**
70
- * Whether this integration is the primary system of record for its domain
71
- * (e.g. HubSpot is SoR for contacts). Defaults to false.
72
- */
73
- isSystemOfRecord: z.boolean().default(false)
74
- });
75
- DisplayMetadataSchema.extend({
76
- id: ModelIdSchema,
77
- resourceId: z.string().trim().min(1).max(255),
78
- resourceType: z.enum(["workflow", "agent", "trigger", "integration", "external", "human_checkpoint"]),
79
- featureIds: ReferenceIdsSchema,
80
- entityIds: ReferenceIdsSchema,
81
- surfaceIds: ReferenceIdsSchema,
82
- capabilityIds: ReferenceIdsSchema,
83
- /** Optional tech-stack metadata for external-SaaS integrations. */
84
- techStack: TechStackEntrySchema.optional()
85
- });
86
-
87
- // ../core/src/organization-model/domains/features.ts
88
44
  var NodeIdPathSchema = z.string().trim().min(1).max(100).regex(/^([a-z0-9-]+)(\.[a-z0-9-]+)*$/, "Node IDs must be lowercase dotted paths");
89
45
  z.string().trim().min(1).max(200).regex(/^[a-z]+:([a-z0-9-]+)(\.[a-z0-9-]+)*$/, "Node references must use kind:dotted-path");
90
46
  var UiPositionSchema = z.enum(["sidebar-primary", "sidebar-bottom"]);
@@ -110,26 +66,6 @@ var OrganizationModelBrandingSchema = z.object({
110
66
  dark: z.string().trim().min(1).max(2048).optional()
111
67
  }).default({})
112
68
  });
113
- var SalesStageSemanticClassSchema = z.enum(["open", "active", "nurturing", "closed_won", "closed_lost"]);
114
- var SalesStageSchema = DisplayMetadataSchema.extend({
115
- id: ModelIdSchema,
116
- order: z.number().int().min(0),
117
- semanticClass: SalesStageSemanticClassSchema,
118
- surfaceIds: ReferenceIdsSchema,
119
- resourceIds: ReferenceIdsSchema
120
- });
121
- var SalesPipelineSchema = z.object({
122
- id: ModelIdSchema,
123
- label: z.string().trim().min(1).max(120),
124
- description: DescriptionSchema.optional(),
125
- entityId: ModelIdSchema,
126
- stages: z.array(SalesStageSchema).min(1)
127
- });
128
- var OrganizationModelSalesSchema = z.object({
129
- entityId: ModelIdSchema,
130
- defaultPipelineId: ModelIdSchema,
131
- pipelines: z.array(SalesPipelineSchema).min(1)
132
- });
133
69
  var ProjectsDomainStateSchema = DisplayMetadataSchema.extend({
134
70
  id: ModelIdSchema,
135
71
  order: z.number().int().min(0)
@@ -3,7 +3,7 @@ import { AppShellLoader } from './chunk-M25JL54Z.js';
3
3
  import { FilterBar } from './chunk-PDHTXPSF.js';
4
4
  import { CustomModal } from './chunk-KVJ3LFH2.js';
5
5
  import { formatDuration } from './chunk-E4WQGJNS.js';
6
- import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-GUJUK6EH.js';
6
+ import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-QULLZ5PE.js';
7
7
  import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-XUYBOO32.js';
8
8
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
9
9
  import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-SGXXJE52.js';