@elevasis/ui 2.29.0 → 2.30.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 (73) hide show
  1. package/dist/app/index.d.ts +54 -0
  2. package/dist/app/index.js +8 -8
  3. package/dist/auth/index.js +4 -4
  4. package/dist/charts/index.d.ts +2 -1
  5. package/dist/charts/index.js +6 -6
  6. package/dist/{chunk-SZWXQHKO.js → chunk-2DIYILF7.js} +7 -6
  7. package/dist/{chunk-XTVZFT7U.js → chunk-2Q2JQSQO.js} +1 -1
  8. package/dist/{chunk-65RQE3XF.js → chunk-3GV5NHSS.js} +1051 -208
  9. package/dist/{chunk-3DUOPXOJ.js → chunk-3MDNBHVB.js} +4 -4
  10. package/dist/{chunk-QNL7UI5G.js → chunk-4FZYEEPK.js} +4 -4
  11. package/dist/{chunk-Y3YJKKEB.js → chunk-4SY6BTVZ.js} +1 -1
  12. package/dist/{chunk-HLFFKKT3.js → chunk-4VQ2PXMI.js} +14 -14
  13. package/dist/{chunk-WKJ47GIW.js → chunk-533DUEQY.js} +1 -1
  14. package/dist/{chunk-HNFQCOD2.js → chunk-6EFVZV6X.js} +392 -309
  15. package/dist/{chunk-V3HUIZJX.js → chunk-6IXOKUBC.js} +1 -1
  16. package/dist/{chunk-VKMNWHTL.js → chunk-6YT4IKJ7.js} +3 -3
  17. package/dist/{chunk-AK5E6ILJ.js → chunk-A7B7HLDF.js} +8 -8
  18. package/dist/{chunk-OWESKPTJ.js → chunk-AKOD52HS.js} +26 -8
  19. package/dist/{chunk-ROSMICXG.js → chunk-CXY7FMUM.js} +35 -20
  20. package/dist/{chunk-HOIT677G.js → chunk-HUJCU55S.js} +1 -1
  21. package/dist/{chunk-A7R2URMV.js → chunk-HYLERWRO.js} +41 -7
  22. package/dist/{chunk-XBMCDGHA.js → chunk-IKQ42WHU.js} +1 -1
  23. package/dist/{chunk-GESXCQWY.js → chunk-JA5ECJJB.js} +1 -1
  24. package/dist/{chunk-KU7ZDWQ7.js → chunk-JBWJ6WHZ.js} +1 -1
  25. package/dist/{chunk-FGDUK74A.js → chunk-JKTPRYGV.js} +3 -3
  26. package/dist/{chunk-5WWZXCS5.js → chunk-KJ3QUBNU.js} +9 -2
  27. package/dist/{chunk-OHGNCWJP.js → chunk-LRZFLK2F.js} +1 -1
  28. package/dist/{chunk-FFDAE2QI.js → chunk-NITGGYH2.js} +172 -26
  29. package/dist/{chunk-VMJVQAFZ.js → chunk-OAVTMITG.js} +1 -1
  30. package/dist/{chunk-6NHCE7JM.js → chunk-P5WYW2GI.js} +12 -12
  31. package/dist/{chunk-5CW2HXQA.js → chunk-SBCIB5TZ.js} +4 -25
  32. package/dist/{chunk-OIMPGKDB.js → chunk-SKXXT3E2.js} +3 -3
  33. package/dist/{chunk-CEHUFNAL.js → chunk-T2PAD63Y.js} +11 -11
  34. package/dist/{chunk-LH4GPYDX.js → chunk-T5Z7G2J2.js} +19 -3
  35. package/dist/{chunk-WFTNY755.js → chunk-VKIZUUPM.js} +1 -1
  36. package/dist/{chunk-S66IQSSR.js → chunk-WF227UBV.js} +1 -1
  37. package/dist/components/chat/index.d.ts +2 -1
  38. package/dist/components/chat/index.js +1 -1
  39. package/dist/components/index.js +37 -37
  40. package/dist/components/navigation/index.js +8 -8
  41. package/dist/features/auth/index.js +5 -5
  42. package/dist/features/crm/index.js +18 -18
  43. package/dist/features/dashboard/index.js +19 -19
  44. package/dist/features/delivery/index.js +18 -18
  45. package/dist/features/knowledge/index.js +19 -19
  46. package/dist/features/lead-gen/index.d.ts +99 -1
  47. package/dist/features/lead-gen/index.js +19 -19
  48. package/dist/features/monitoring/index.js +20 -20
  49. package/dist/features/monitoring/requests/index.js +17 -17
  50. package/dist/features/operations/index.js +24 -24
  51. package/dist/features/settings/index.js +19 -19
  52. package/dist/hooks/delivery/index.js +2 -2
  53. package/dist/hooks/index.d.ts +263 -4
  54. package/dist/hooks/index.js +17 -17
  55. package/dist/hooks/published.d.ts +263 -4
  56. package/dist/hooks/published.js +17 -17
  57. package/dist/index.d.ts +378 -8
  58. package/dist/index.js +18 -18
  59. package/dist/initialization/index.js +4 -4
  60. package/dist/knowledge/index.d.ts +54 -0
  61. package/dist/organization/index.js +4 -4
  62. package/dist/profile/index.js +2 -2
  63. package/dist/provider/ElevasisServiceContext.d.ts +11 -5
  64. package/dist/provider/ElevasisServiceContext.js +1 -1
  65. package/dist/provider/index.d.ts +119 -5
  66. package/dist/provider/index.js +14 -14
  67. package/dist/provider/published.d.ts +119 -5
  68. package/dist/provider/published.js +10 -10
  69. package/dist/test-utils/index.d.ts +3 -0
  70. package/dist/test-utils/index.js +28 -4
  71. package/dist/theme/index.js +3 -3
  72. package/dist/theme/presets/index.js +1 -1
  73. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { useInitialization } from './chunk-WKJ47GIW.js';
1
+ import { useInitialization } from './chunk-533DUEQY.js';
2
2
  import { useOrganization } from './chunk-DD3CCMCZ.js';
3
3
  import { createContext, useMemo, useCallback, useContext } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { useElevasisServices } from './chunk-5WWZXCS5.js';
1
+ import { useElevasisServices } from './chunk-KJ3QUBNU.js';
2
2
  import { useQuery } from '@tanstack/react-query';
3
3
 
4
4
  // src/hooks/observability/queryKeys.ts
@@ -34,9 +34,9 @@ var observabilityKeys = {
34
34
  recentExecutionsByResource: (organizationId, timeRange, limit) => [...observabilityKeys.all, "recent-executions-by-resource", organizationId, timeRange, limit]
35
35
  };
36
36
  function useErrorTrends({ startDate, endDate, granularity }) {
37
- const { apiRequest, isReady, organizationId } = useElevasisServices();
37
+ const { apiRequest, isReady, workOSOrganizationId } = useElevasisServices();
38
38
  return useQuery({
39
- queryKey: observabilityKeys.errorTrends(organizationId, startDate, endDate, granularity),
39
+ queryKey: observabilityKeys.errorTrends(workOSOrganizationId, startDate, endDate, granularity),
40
40
  queryFn: async () => {
41
41
  const params = new URLSearchParams({ startDate, endDate, granularity });
42
42
  return apiRequest(`/observability/error-analytics/trends?${params.toString()}`);
@@ -1,11 +1,11 @@
1
- import { ChatHeader, ChatSidebar } from './chunk-ROSMICXG.js';
2
- import { getOrganizationGraphLensConfig, useOrganizationGraphFilters, createOrganizationGraphFilters, buildOrganizationGraph, filterOrganizationGraph, getCommandViewVisibilityProjection, resolveOrganizationGraphPathTrace, getCommandViewOperationalOverview, getCommandViewSelectionOperationalSummary, buildCommandViewDrillDownSections, expandAroundGraph, getConnectedHiddenResourceIds, FilterPanel, OrganizationGraphDetailPanel, ExpandAroundPanel, CommandViewSidebarContent, getOrganizationGraphTraceNodeOptions, formatOrganizationGraphTraceNodeOptionLabel } from './chunk-3DUOPXOJ.js';
1
+ import { ChatHeader, ChatSidebar } from './chunk-CXY7FMUM.js';
2
+ import { getOrganizationGraphLensConfig, useOrganizationGraphFilters, createOrganizationGraphFilters, buildOrganizationGraph, filterOrganizationGraph, getCommandViewVisibilityProjection, resolveOrganizationGraphPathTrace, getCommandViewOperationalOverview, getCommandViewSelectionOperationalSummary, buildCommandViewDrillDownSections, expandAroundGraph, getConnectedHiddenResourceIds, FilterPanel, OrganizationGraphDetailPanel, ExpandAroundPanel, CommandViewSidebarContent, getOrganizationGraphTraceNodeOptions, formatOrganizationGraphTraceNodeOptionLabel } from './chunk-3MDNBHVB.js';
3
3
  import { SubshellLoader } from './chunk-JDNEWB5F.js';
4
4
  import { resolveSemanticIconComponent } from './chunk-JCGD4GM6.js';
5
5
  import { SubshellSidebarLoader } from './chunk-XQQEKWTL.js';
6
- import { BaseNode, useGraphTheme, BaseEdge, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, GraphBackground, GraphFitViewButton, GraphFitViewHandler } from './chunk-QNL7UI5G.js';
6
+ import { BaseNode, useGraphTheme, BaseEdge, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, GraphBackground, GraphFitViewButton, GraphFitViewHandler } from './chunk-4FZYEEPK.js';
7
7
  import { FormFieldRenderer } from './chunk-3MEXPLWT.js';
8
- import { ResourceHealthPanel } from './chunk-OHGNCWJP.js';
8
+ import { ResourceHealthPanel } from './chunk-LRZFLK2F.js';
9
9
  import { useCyberColors, CyberDonut } from './chunk-CW3UNAF2.js';
10
10
  import { AppShellLoader } from './chunk-RYTEQBAO.js';
11
11
  import { PageContainer } from './chunk-BZZCNLT6.js';
@@ -13,12 +13,12 @@ import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
13
13
  import { CustomModal, ConfirmationModal } from './chunk-KVJ3LFH2.js';
14
14
  import { useGraphHighlighting, calculateGraphHeight, Graph_module_css_default, GRAPH_CONSTANTS } from './chunk-22UVE3RA.js';
15
15
  import { getResourceStatusColor, useTimelineData, useAgentIterationData, getStatusIcon } from './chunk-E4WQGJNS.js';
16
- import { useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useCommandQueueTotals, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, collectResourceFilterFacets, useResourceDefinition, isSessionCapable, useDeleteTask, useCommandQueue, useSubmitAction, useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, COMMAND_VIEW_VISUALIZATION_MODES, useExecutionPanelState, useDeleteSession, useCreateSession, useSessions, useSessionExecutions, useSession, useBulkDeleteExecutions, getCommandViewGraphPositions } from './chunk-HNFQCOD2.js';
17
- import { showApiErrorNotification, showSuccessNotification } from './chunk-CEHUFNAL.js';
16
+ import { useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useCommandQueueTotals, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, collectResourceFilterFacets, useResourceDefinition, isSessionCapable, useDeleteTask, useCommandQueue, useSubmitAction, useCommandViewData, useCommandViewStats, useCommandViewStore, useResourceExecutions, useCheckpointTasks, COMMAND_VIEW_VISUALIZATION_MODES, useExecutionPanelState, useDeleteSession, useCreateSession, useSessions, useSessionExecutions, useSession, useBulkDeleteExecutions, getCommandViewGraphPositions } from './chunk-6EFVZV6X.js';
17
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-T2PAD63Y.js';
18
18
  import { useMergedExecution } from './chunk-3ZMAGTWF.js';
19
19
  import { JsonViewer, CardHeader, PageTitleCaption, CollapsibleSection, TabCountBadge, ResourceCard, ContextViewer, EmptyState, APIErrorAlert } from './chunk-6WXDE5LZ.js';
20
20
  import { StyledMarkdown } from './chunk-3KMDHCAR.js';
21
- import { useOptionalElevasisFeatures, useElevasisFeatures } from './chunk-V3HUIZJX.js';
21
+ import { useOptionalElevasisFeatures, useElevasisFeatures } from './chunk-6IXOKUBC.js';
22
22
  import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
23
23
  import { NavigationButton } from './chunk-NYBEU5TE.js';
24
24
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
@@ -26,7 +26,7 @@ import { useAppearance } from './chunk-E565XMTQ.js';
26
26
  import { topbarHeight } from './chunk-DT3QYZVU.js';
27
27
  import { getErrorInfo, formatErrorMessage, getResourceIcon, formatRelativeTime, PAGE_SIZE_DEFAULT, debounce } from './chunk-HXZQWMKE.js';
28
28
  import { ResourceStatusColors, toWorkflowLogMessages } from './chunk-KRWALB24.js';
29
- import { useInitialization } from './chunk-WKJ47GIW.js';
29
+ import { useInitialization } from './chunk-533DUEQY.js';
30
30
  import { useOrganization } from './chunk-DD3CCMCZ.js';
31
31
  import { Stack, Group, Text, Badge, Title, Textarea, Alert, Button, ActionIcon, Collapse, Card, ThemeIcon, SimpleGrid, Divider, Paper, Space, CopyButton, Center, Tooltip, Code, Menu, useMantineTheme, UnstyledButton, Select, RangeSlider, Box, Progress, Tabs, Pagination, TextInput, Loader, SegmentedControl, Modal, LoadingOverlay, ScrollArea } from '@mantine/core';
32
32
  import { IconBrain, IconFileText, IconMail, IconSend, IconClock, IconArrowUp, IconMessageCircle, IconRocket, IconEye, IconEdit, IconAlertTriangle, IconRefresh, IconX, IconCheck, IconCode, IconAlertCircle, IconChevronRight, IconTool, IconSettings, IconCpu, IconClockHour4, IconVersions, IconNetwork, IconSitemap, IconCopy, IconPlayerStop, IconReload, IconTrash, IconTerminal2, IconBug, IconChevronDown, IconPlayerPlay, IconMessage, IconArrowLeft, IconRobot, IconGitBranch, IconDotsVertical, IconFilter, IconCircleCheck, IconCategory, IconDatabase, IconApps, IconRoute, IconAdjustmentsHorizontal, IconSearch, IconCircleX, IconCircleDashed, IconExternalLink, IconFolders, IconBraces, IconBolt, IconTopologyStar3, IconInfoCircle, IconPlus, IconLayoutSidebarRightExpand, IconNote, IconArchive, IconDownload, IconTimeline, IconActivityHeartbeat, IconClockPause, IconArrowsMaximize, IconHistory } from '@tabler/icons-react';
@@ -1,10 +1,10 @@
1
1
  import { ApiClientProvider, useApiClient } from './chunk-7E3FUTND.js';
2
- import { OrganizationProvider } from './chunk-HOIT677G.js';
2
+ import { OrganizationProvider } from './chunk-HUJCU55S.js';
3
3
  import { getErrorInfo, getErrorTitle, formatErrorMessage } from './chunk-HXZQWMKE.js';
4
- import { InitializationProvider } from './chunk-WKJ47GIW.js';
4
+ import { InitializationProvider } from './chunk-533DUEQY.js';
5
5
  import { useOrganization } from './chunk-DD3CCMCZ.js';
6
- import { ProfileProvider } from './chunk-XTVZFT7U.js';
7
- import { ElevasisServiceProvider } from './chunk-5WWZXCS5.js';
6
+ import { ProfileProvider } from './chunk-2Q2JQSQO.js';
7
+ import { ElevasisServiceProvider } from './chunk-KJ3QUBNU.js';
8
8
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
9
9
  import { createContext, lazy, useContext, Suspense, useRef } from 'react';
10
10
  import { jsx } from 'react/jsx-runtime';
@@ -364,7 +364,7 @@ var ACQ_LIST_COMPANIES_LEAD_GEN_PIPELINE = {
364
364
  {
365
365
  stageKey: "outreach",
366
366
  label: "Outreach",
367
- states: [PENDING_STATE]
367
+ states: [PENDING_STATE, { stateKey: "uploaded", label: "Uploaded" }]
368
368
  },
369
369
  {
370
370
  stageKey: "prospecting",
@@ -402,6 +402,13 @@ var LEAD_GEN_STAGE_CATALOG = {
402
402
  order: 2,
403
403
  entity: "company"
404
404
  },
405
+ crawled: {
406
+ key: "crawled",
407
+ label: "Websites crawled",
408
+ description: "Company websites have been crawled (e.g. via Apify) and raw page content stored for downstream LLM analysis.",
409
+ order: 2.5,
410
+ entity: "company"
411
+ },
405
412
  extracted: {
406
413
  key: "extracted",
407
414
  label: "Websites analyzed",
@@ -421,7 +428,9 @@ var LEAD_GEN_STAGE_CATALOG = {
421
428
  label: "Decision-makers found",
422
429
  description: "Decision-maker contacts discovered and attached to a qualified company.",
423
430
  order: 6,
424
- entity: "company"
431
+ entity: "company",
432
+ recordEntity: "contact",
433
+ recordStageKey: "discovered"
425
434
  },
426
435
  // Prospecting — contact discovery
427
436
  discovered: {
@@ -459,7 +468,8 @@ var LEAD_GEN_STAGE_CATALOG = {
459
468
  label: "Reviewed and exported",
460
469
  description: "Approved records have been reviewed and exported for handoff.",
461
470
  order: 10,
462
- entity: "contact"
471
+ entity: "company",
472
+ additionalEntities: ["contact"]
463
473
  },
464
474
  interested: {
465
475
  key: "interested",
@@ -715,7 +725,15 @@ function OrgServiceBridge({
715
725
  const { currentWorkOSOrganizationId, isInitializing, isOrgRefreshing } = useOrganization();
716
726
  orgIdRef.current = currentWorkOSOrganizationId;
717
727
  const isReady = !!currentWorkOSOrganizationId && !isInitializing && !isOrgRefreshing;
718
- return /* @__PURE__ */ jsx(ElevasisServiceProvider, { apiRequest, organizationId: currentWorkOSOrganizationId, isReady, children: /* @__PURE__ */ jsx(NotificationProvider, { adapter: notifications, children: /* @__PURE__ */ jsx(InitializationProvider, { children }) }) });
728
+ return /* @__PURE__ */ jsx(
729
+ ElevasisServiceProvider,
730
+ {
731
+ apiRequest,
732
+ workOSOrganizationId: currentWorkOSOrganizationId,
733
+ isReady,
734
+ children: /* @__PURE__ */ jsx(NotificationProvider, { adapter: notifications, children: /* @__PURE__ */ jsx(InitializationProvider, { children }) })
735
+ }
736
+ );
719
737
  }
720
738
 
721
739
  export { CRM_PIPELINE_DEFINITION, CRM_PRIORITY_BUCKETS, ColorTokenSchema, CrmActionsProvider, DEFAULT_CRM_PRIORITY_RULE_CONFIG, DEFAULT_ORGANIZATION_MODEL_SALES, DescriptionSchema, DisplayMetadataSchema, EMPTY_LIST_ACTIONS, ElevasisCoreProvider, IconNameSchema, LEAD_GEN_PIPELINE_DEFINITIONS, LEAD_GEN_STAGE_CATALOG, LabelSchema, ListActionsProvider, ModelIdSchema, NotificationProvider, OrganizationModelSalesSchema, PathSchema, ReferenceIdsSchema, deriveActions, findListActionByCapability, findPipeline, getListActionWorkflowId, useCrmActions, useListActions, useNotificationAdapter };
@@ -1,5 +1,5 @@
1
1
  import { StyledMarkdown } from './chunk-3KMDHCAR.js';
2
- import { Stack, Textarea, Group, Text, Tooltip, ActionIcon, Paper, Box, Collapse, Title, Badge, Progress, Alert, Center, Loader } from '@mantine/core';
2
+ import { Stack, Textarea, Group, Text, Tooltip, ActionIcon, Paper, Card, Box, Collapse, Title, Badge, Progress, Alert, Center, Loader } from '@mantine/core';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { memo, useState, useCallback, useMemo, useRef, useEffect } from 'react';
5
5
  import { IconSend, IconCheck, IconCopy, IconChevronDown, IconAlertCircle, IconAlertTriangle } from '@tabler/icons-react';
@@ -231,14 +231,14 @@ function AgentActivityBubble({
231
231
  children
232
232
  }) {
233
233
  return /* @__PURE__ */ jsx(Box, { style: { alignSelf: "flex-start", width: "100%", maxWidth: "75%", ...slideFromLeft }, children: /* @__PURE__ */ jsxs(
234
- Paper,
234
+ Card,
235
235
  {
236
236
  p: "xs",
237
- withBorder: false,
237
+ withBorder: true,
238
238
  style: {
239
- backgroundColor: "var(--color-surface)",
240
- border: "none",
241
- boxShadow: "var(--standard-box-shadow)"
239
+ backgroundColor: "var(--color-elevated)",
240
+ borderColor: "var(--color-border)",
241
+ boxShadow: "var(--card-shadow)"
242
242
  },
243
243
  children: [
244
244
  /* @__PURE__ */ jsxs(
@@ -370,18 +370,30 @@ function TextMessage({ message }) {
370
370
  }
371
371
  ) })
372
372
  ] }),
373
- /* @__PURE__ */ jsx(
373
+ isUser ? /* @__PURE__ */ jsx(
374
374
  Paper,
375
375
  {
376
376
  p: "xs",
377
- c: isUser ? "var(--color-primary-contrast)" : "var(--color-text)",
377
+ c: "var(--color-primary-contrast)",
378
+ style: {
379
+ backgroundColor: "var(--color-primary)",
380
+ border: "none",
381
+ boxShadow: "0 2px 8px color-mix(in srgb, var(--color-primary) 30%, transparent)"
382
+ },
383
+ children: /* @__PURE__ */ jsx(Text, { size: "sm", style: { lineHeight: 1.55 }, children: message.text })
384
+ }
385
+ ) : /* @__PURE__ */ jsx(
386
+ Card,
387
+ {
388
+ p: "sm",
389
+ withBorder: true,
390
+ c: "var(--color-text)",
378
391
  style: {
379
- backgroundColor: isUser ? "var(--color-primary)" : "var(--color-surface)",
380
- borderLeft: isUser ? "none" : "2px solid color-mix(in srgb, var(--color-primary) 30%, transparent)",
381
- border: isUser ? "none" : void 0,
382
- boxShadow: isUser ? "0 2px 8px color-mix(in srgb, var(--color-primary) 30%, transparent)" : "var(--standard-box-shadow)"
392
+ backgroundColor: "var(--color-elevated)",
393
+ borderColor: "var(--color-border)",
394
+ boxShadow: "var(--card-shadow)"
383
395
  },
384
- children: isUser ? /* @__PURE__ */ jsx(Text, { size: "sm", style: { lineHeight: 1.55 }, children: message.text }) : /* @__PURE__ */ jsx(
396
+ children: /* @__PURE__ */ jsx(
385
397
  StyledMarkdown,
386
398
  {
387
399
  components: {
@@ -584,7 +596,8 @@ function ChatInterface({
584
596
  onClearError,
585
597
  emptyStateText = "No messages yet",
586
598
  emptyStateSubtext = "Send a message to start the conversation",
587
- placeholder = "Message the agent..."
599
+ placeholder = "Message the agent...",
600
+ messageAreaVariant = "grid"
588
601
  }) {
589
602
  const scrollRef = useRef(null);
590
603
  const scrollContainerRef = useRef(null);
@@ -594,7 +607,7 @@ function ChatInterface({
594
607
  }
595
608
  }, [messages.length, isConnected, isProcessing]);
596
609
  return /* @__PURE__ */ jsxs(Stack, { gap: 0, style: { height: "100%", overflow: "hidden" }, children: [
597
- /* @__PURE__ */ jsx(ScrollableContainer, { containerRef: scrollContainerRef, children: /* @__PURE__ */ jsx(
610
+ /* @__PURE__ */ jsx(ScrollableContainer, { containerRef: scrollContainerRef, variant: messageAreaVariant, children: /* @__PURE__ */ jsx(
598
611
  MessageAreaContent,
599
612
  {
600
613
  isConnected,
@@ -634,8 +647,10 @@ function ChatInterface({
634
647
  }
635
648
  function ScrollableContainer({
636
649
  children,
637
- containerRef
650
+ containerRef,
651
+ variant
638
652
  }) {
653
+ const isGrid = variant === "grid";
639
654
  return /* @__PURE__ */ jsx(
640
655
  "div",
641
656
  {
@@ -647,13 +662,13 @@ function ScrollableContainer({
647
662
  overflowY: "auto",
648
663
  overflowX: "hidden",
649
664
  scrollBehavior: "smooth",
650
- backgroundColor: "var(--color-background)",
651
- backgroundImage: [
665
+ backgroundColor: isGrid ? "var(--color-background)" : "transparent",
666
+ backgroundImage: isGrid ? [
652
667
  "linear-gradient(color-mix(in srgb, var(--color-primary) 5%, transparent) 1px, transparent 1px)",
653
668
  "linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 5%, transparent) 1px, transparent 1px)",
654
669
  "radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--color-primary) 5%, transparent) 0%, transparent 70%)"
655
- ].join(", "),
656
- backgroundSize: "40px 40px, 40px 40px, 100% 100%",
670
+ ].join(", ") : void 0,
671
+ backgroundSize: isGrid ? "40px 40px, 40px 40px, 100% 100%" : void 0,
657
672
  borderRadius: "var(--mantine-radius-sm)",
658
673
  padding: "8px",
659
674
  // Custom scrollbar styling
@@ -1,5 +1,5 @@
1
1
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
2
- import { useProfile } from './chunk-XTVZFT7U.js';
2
+ import { useProfile } from './chunk-2Q2JQSQO.js';
3
3
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
4
4
  import { useState, useRef, useEffect, useCallback, createElement } from 'react';
5
5
  import { useQueryClient } from '@tanstack/react-query';
@@ -1,15 +1,15 @@
1
1
  import { AppShellLoader } from './chunk-RYTEQBAO.js';
2
2
  import { FilterBar } from './chunk-PDHTXPSF.js';
3
3
  import { CustomModal } from './chunk-KVJ3LFH2.js';
4
- import { useAvailablePresets } from './chunk-XBMCDGHA.js';
5
- import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useHasPermission, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-HNFQCOD2.js';
6
- import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-CEHUFNAL.js';
4
+ import { useAvailablePresets } from './chunk-IKQ42WHU.js';
5
+ import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useHasPermission, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-6EFVZV6X.js';
6
+ import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-T2PAD63Y.js';
7
7
  import { ListSkeleton, EmptyState, PageTitleCaption, CardHeader, APIErrorAlert, StatCard } from './chunk-6WXDE5LZ.js';
8
- import { RoleBadge } from './chunk-GESXCQWY.js';
8
+ import { RoleBadge } from './chunk-JA5ECJJB.js';
9
9
  import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-HXZQWMKE.js';
10
- import { useInitialization } from './chunk-WKJ47GIW.js';
10
+ import { useInitialization } from './chunk-533DUEQY.js';
11
11
  import { useOrganization } from './chunk-DD3CCMCZ.js';
12
- import { useElevasisServices } from './chunk-5WWZXCS5.js';
12
+ import { useElevasisServices } from './chunk-KJ3QUBNU.js';
13
13
  import { createUseExternalEvents, Text, Table, Group, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Card, Switch, Badge, Center, Loader, Box, Code, CopyButton, ThemeIcon, SimpleGrid, UnstyledButton, Divider, Textarea, Tabs, MultiSelect } from '@mantine/core';
14
14
  import { IconSettings, IconShieldOff, 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, IconShieldLock, IconAdjustments, IconBrandDropbox, IconBrandGoogleDrive, IconPlug, IconEdit, IconUserX, IconUserCheck } from '@tabler/icons-react';
15
15
  import { z } from 'zod';
@@ -153,6 +153,40 @@ var CREDENTIAL_SCHEMAS = {
153
153
  }
154
154
  ],
155
155
  nameSuggestions: []
156
+ },
157
+ apify: {
158
+ type: "single_field",
159
+ label: "Apify",
160
+ description: "Apify API token for running web-scraping actors (e.g. website crawl, Google Places scrape).",
161
+ fields: [
162
+ {
163
+ key: "apiKey",
164
+ label: "API Token",
165
+ type: "password",
166
+ required: true,
167
+ placeholder: "apify_api_...",
168
+ description: "Personal API token from https://console.apify.com/account/integrations"
169
+ }
170
+ ],
171
+ docsUrl: "https://docs.apify.com/platform/integrations/api",
172
+ nameSuggestions: ["elevasis-apify", "apify-prod", "apify-dev"]
173
+ },
174
+ clickup: {
175
+ type: "single_field",
176
+ label: "ClickUp",
177
+ description: "ClickUp personal API token for creating tasks in tenant-managed ClickUp workspaces.",
178
+ fields: [
179
+ {
180
+ key: "apiToken",
181
+ label: "API Token",
182
+ type: "password",
183
+ required: true,
184
+ placeholder: "pk_...",
185
+ description: "Personal API token from ClickUp settings. Personal tokens start with pk_."
186
+ }
187
+ ],
188
+ docsUrl: "https://developer.clickup.com/docs/authentication",
189
+ nameSuggestions: ["clickup-demo", "clickup-prod", "clickup-dev"]
156
190
  }
157
191
  };
158
192
  function getCredentialSchema(type) {
@@ -975,7 +1009,7 @@ function AppearanceSettings({ initialTheme, onThemeChange }) {
975
1009
  style: {
976
1010
  cursor: "pointer",
977
1011
  border: isActive ? "var(--active-border)" : "1px solid var(--color-border)",
978
- backgroundColor: isActive ? "var(--active-background)" : "var(--color-surface)",
1012
+ backgroundColor: isActive ? "color-mix(in srgb, var(--color-primary) 10%, transparent)" : "var(--color-surface)",
979
1013
  transition: `all var(--duration-fast) var(--easing)`
980
1014
  },
981
1015
  children: /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
@@ -1,4 +1,4 @@
1
- import { usePresetsContext } from './chunk-LH4GPYDX.js';
1
+ import { usePresetsContext } from './chunk-T5Z7G2J2.js';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  var BUILT_IN_NAMES = /* @__PURE__ */ new Set([
@@ -1,5 +1,5 @@
1
1
  import { useOrganization } from './chunk-DD3CCMCZ.js';
2
- import { useUserProfile } from './chunk-XTVZFT7U.js';
2
+ import { useUserProfile } from './chunk-2Q2JQSQO.js';
3
3
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
4
4
  import { useState, useRef, useEffect, useCallback } from 'react';
5
5
  import { Badge, Group, Button, Loader, Menu, Text } from '@mantine/core';
@@ -1,4 +1,4 @@
1
- import { useUserProfile } from './chunk-XTVZFT7U.js';
1
+ import { useUserProfile } from './chunk-2Q2JQSQO.js';
2
2
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
3
3
  import { useMemo, useCallback } from 'react';
4
4
 
@@ -5,13 +5,13 @@ import { SubshellNavItem } from './chunk-X4WBGKJQ.js';
5
5
  import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
6
6
  import { FilterBar } from './chunk-PDHTXPSF.js';
7
7
  import { CustomModal } from './chunk-KVJ3LFH2.js';
8
- import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-HNFQCOD2.js';
9
- import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote, showApiErrorNotification, projectKeys } from './chunk-CEHUFNAL.js';
8
+ import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-6EFVZV6X.js';
9
+ import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote, showApiErrorNotification, projectKeys } from './chunk-T2PAD63Y.js';
10
10
  import { StatusBadge, EmptyState, PageTitleCaption, CenteredErrorState, StatCard, CardHeader } from './chunk-6WXDE5LZ.js';
11
11
  import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
12
12
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
13
13
  import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-HXZQWMKE.js';
14
- import { useElevasisServices } from './chunk-5WWZXCS5.js';
14
+ import { useElevasisServices } from './chunk-KJ3QUBNU.js';
15
15
  import { useState, useMemo, useCallback } from 'react';
16
16
  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 } from '@mantine/core';
17
17
  import { IconNotes, IconBriefcase, IconChecklist, IconFlag, IconX, IconPlus, IconHeartbeat, IconFileText, IconCalendar, IconInbox, IconLock, IconAlertTriangle, IconCircleCheck, IconClock, IconChevronDown, IconChevronRight, IconDownload, IconListCheck, IconMessageCircle, IconSearch, IconCheck, IconCopy, IconFileDescription, IconArrowLeft, IconCurrencyDollar, IconBuilding } from '@tabler/icons-react';
@@ -15,12 +15,19 @@ function useElevasisServices() {
15
15
  function ElevasisServiceProvider({
16
16
  apiRequest,
17
17
  organizationId,
18
+ workOSOrganizationId,
18
19
  isReady,
19
20
  children
20
21
  }) {
22
+ const resolvedOrganizationId = workOSOrganizationId ?? organizationId ?? null;
21
23
  const value = useMemo(
22
- () => ({ apiRequest, organizationId, isReady }),
23
- [apiRequest, organizationId, isReady]
24
+ () => ({
25
+ apiRequest,
26
+ organizationId: resolvedOrganizationId,
27
+ workOSOrganizationId: resolvedOrganizationId,
28
+ isReady
29
+ }),
30
+ [apiRequest, resolvedOrganizationId, isReady]
24
31
  );
25
32
  return /* @__PURE__ */ jsx(ElevasisServiceContext.Provider, { value, children });
26
33
  }
@@ -1,5 +1,5 @@
1
1
  import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-CW3UNAF2.js';
2
- import { useResourcesHealth } from './chunk-HNFQCOD2.js';
2
+ import { useResourcesHealth } from './chunk-6EFVZV6X.js';
3
3
  import { CardHeader, EmptyState } from './chunk-6WXDE5LZ.js';
4
4
  import { getTimeRangeDates, formatBucketTime } from './chunk-HXZQWMKE.js';
5
5
  import { Paper, Center, Loader, Group } from '@mantine/core';