@elevasis/ui 2.40.0 → 2.41.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 (50) hide show
  1. package/dist/app/index.d.ts +108 -0
  2. package/dist/app/index.js +8 -9
  3. package/dist/auth/index.js +3 -4
  4. package/dist/charts/index.js +3 -4
  5. package/dist/{chunk-7MTWRSUZ.js → chunk-56O7QQE7.js} +1 -2
  6. package/dist/{chunk-SHZT7ULK.js → chunk-66U7JOWV.js} +1 -1
  7. package/dist/{chunk-NKEXXL4O.js → chunk-A2XN6PR2.js} +3 -4
  8. package/dist/{chunk-K7GKKETO.js → chunk-FIMGOWOT.js} +1073 -586
  9. package/dist/{chunk-EEG6ALQR.js → chunk-JAN2ZXN5.js} +106 -24
  10. package/dist/{chunk-LJDYY3XB.js → chunk-JHVEA5NE.js} +1 -1
  11. package/dist/{chunk-A7IG36LB.js → chunk-L7GXUSCV.js} +1 -1
  12. package/dist/{chunk-DA6I5VEY.js → chunk-QVQMOQXB.js} +9 -3
  13. package/dist/{chunk-IUQAP4IO.js → chunk-S4R2ZQS7.js} +1 -1
  14. package/dist/{chunk-7PHY5ONQ.js → chunk-VAAU2Z3S.js} +1 -1
  15. package/dist/{chunk-LY3YTQC6.js → chunk-YPWN2WQ3.js} +2 -2
  16. package/dist/components/index.js +10 -11
  17. package/dist/components/navigation/index.js +2 -3
  18. package/dist/features/auth/index.js +32 -17
  19. package/dist/features/clients/index.js +10 -11
  20. package/dist/features/crm/index.js +10 -11
  21. package/dist/features/dashboard/index.js +10 -11
  22. package/dist/features/delivery/index.js +10 -11
  23. package/dist/features/knowledge/index.js +2 -3
  24. package/dist/features/lead-gen/index.d.ts +81 -0
  25. package/dist/features/lead-gen/index.js +10 -11
  26. package/dist/features/monitoring/index.js +10 -11
  27. package/dist/features/monitoring/requests/index.d.ts +69 -7
  28. package/dist/features/monitoring/requests/index.js +138 -17
  29. package/dist/features/operations/index.d.ts +79 -0
  30. package/dist/features/operations/index.js +10 -11
  31. package/dist/features/settings/index.js +10 -11
  32. package/dist/hooks/access/index.js +2 -3
  33. package/dist/hooks/delivery/index.js +10 -11
  34. package/dist/hooks/index.d.ts +18 -6
  35. package/dist/hooks/index.js +10 -11
  36. package/dist/hooks/published.d.ts +18 -6
  37. package/dist/hooks/published.js +10 -11
  38. package/dist/index.d.ts +151 -7
  39. package/dist/index.js +10 -11
  40. package/dist/knowledge/index.d.ts +81 -0
  41. package/dist/knowledge/index.js +6 -6
  42. package/dist/layout/index.d.ts +18 -2
  43. package/dist/layout/index.js +4 -2
  44. package/dist/organization/index.js +10 -11
  45. package/dist/provider/index.d.ts +120 -1
  46. package/dist/provider/index.js +6 -7
  47. package/dist/provider/published.d.ts +121 -2
  48. package/dist/provider/published.js +5 -6
  49. package/package.json +3 -3
  50. package/dist/chunk-J3FLIZY4.js +0 -423
@@ -7,6 +7,7 @@ import { MantineThemeOverride } from '@mantine/core';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { useAuth } from '@workos-inc/authkit-react';
9
9
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
10
+ import { IconBrain } from '@tabler/icons-react';
10
11
 
11
12
  type Json = string | number | boolean | null | {
12
13
  [key: string]: Json | undefined;
@@ -3713,6 +3714,84 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3713
3714
  primary: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3714
3715
  bottom: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3715
3716
  }, z$1.core.$strip>>;
3717
+ topbar: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3718
+ id: z$1.ZodString;
3719
+ label: z$1.ZodString;
3720
+ tooltip: z$1.ZodOptional<z$1.ZodString>;
3721
+ icon: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
3722
+ message: "message";
3723
+ error: "error";
3724
+ agent: "agent";
3725
+ workflow: "workflow";
3726
+ "google-sheets": "google-sheets";
3727
+ dashboard: "dashboard";
3728
+ calendar: "calendar";
3729
+ sales: "sales";
3730
+ crm: "crm";
3731
+ "lead-gen": "lead-gen";
3732
+ projects: "projects";
3733
+ clients: "clients";
3734
+ operations: "operations";
3735
+ monitoring: "monitoring";
3736
+ knowledge: "knowledge";
3737
+ settings: "settings";
3738
+ admin: "admin";
3739
+ archive: "archive";
3740
+ business: "business";
3741
+ finance: "finance";
3742
+ platform: "platform";
3743
+ seo: "seo";
3744
+ playbook: "playbook";
3745
+ strategy: "strategy";
3746
+ reference: "reference";
3747
+ integration: "integration";
3748
+ database: "database";
3749
+ user: "user";
3750
+ team: "team";
3751
+ gmail: "gmail";
3752
+ attio: "attio";
3753
+ overview: "overview";
3754
+ "command-view": "command-view";
3755
+ "command-queue": "command-queue";
3756
+ pipeline: "pipeline";
3757
+ lists: "lists";
3758
+ resources: "resources";
3759
+ approve: "approve";
3760
+ reject: "reject";
3761
+ retry: "retry";
3762
+ edit: "edit";
3763
+ view: "view";
3764
+ launch: "launch";
3765
+ "message-plus": "message-plus";
3766
+ escalate: "escalate";
3767
+ promote: "promote";
3768
+ submit: "submit";
3769
+ email: "email";
3770
+ success: "success";
3771
+ warning: "warning";
3772
+ info: "info";
3773
+ pending: "pending";
3774
+ bolt: "bolt";
3775
+ building: "building";
3776
+ briefcase: "briefcase";
3777
+ apps: "apps";
3778
+ graph: "graph";
3779
+ shield: "shield";
3780
+ users: "users";
3781
+ "chart-bar": "chart-bar";
3782
+ search: "search";
3783
+ }>, z$1.ZodString]>>;
3784
+ order: z$1.ZodOptional<z$1.ZodNumber>;
3785
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3786
+ devOnly: z$1.ZodOptional<z$1.ZodBoolean>;
3787
+ requiresAdmin: z$1.ZodOptional<z$1.ZodBoolean>;
3788
+ targets: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodObject<{
3789
+ systems: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3790
+ entities: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3791
+ resources: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3792
+ actions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3793
+ }, z$1.core.$strip>>>;
3794
+ }, z$1.core.$strip>>>;
3716
3795
  }, z$1.core.$strip>>;
3717
3796
  identity: z$1.ZodDefault<z$1.ZodObject<{
3718
3797
  mission: z$1.ZodDefault<z$1.ZodString>;
@@ -4381,6 +4460,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4381
4460
  edit: "edit";
4382
4461
  view: "view";
4383
4462
  launch: "launch";
4463
+ "message-plus": "message-plus";
4384
4464
  escalate: "escalate";
4385
4465
  promote: "promote";
4386
4466
  submit: "submit";
@@ -4773,6 +4853,8 @@ interface SSEConnectionManagerLike {
4773
4853
  }>;
4774
4854
  }
4775
4855
 
4856
+ type TablerIconComponent = typeof IconBrain;
4857
+
4776
4858
  type ElevasisOrganizationModel = Omit<OrganizationModel, 'knowledge'> & {
4777
4859
  knowledge?: OrganizationModel['knowledge'];
4778
4860
  };
@@ -4814,11 +4896,37 @@ interface ShellSidebarLinkGroup {
4814
4896
  links?: ShellSidebarLinkItem[];
4815
4897
  link?: string;
4816
4898
  }
4899
+ /**
4900
+ * A resolved topbar action — the OM node after gating/filtering, with icon resolved
4901
+ * from the semantic icon registry. Passed to `TopbarActionModule.render`.
4902
+ */
4903
+ interface ResolvedTopbarAction {
4904
+ id: string;
4905
+ label: string;
4906
+ tooltip?: string;
4907
+ icon: TablerIconComponent;
4908
+ order: number;
4909
+ }
4910
+ /**
4911
+ * A topbar action module — binds a registry key to UI behavior (a render callback).
4912
+ * The key must match `navigation.topbar[id]`. The OM supplies data + visibility;
4913
+ * the module supplies behavior.
4914
+ */
4915
+ interface TopbarActionModule {
4916
+ /** Stable key that matches the `id` of a `navigation.topbar` node. */
4917
+ key: string;
4918
+ /** Render the topbar action. Receives the resolved OM node (icon pre-resolved). */
4919
+ render: (ctx: {
4920
+ node: ResolvedTopbarAction;
4921
+ }) => ReactNode;
4922
+ }
4817
4923
  interface OrganizationGraphSystemBridge {
4818
4924
  systemId?: string;
4819
4925
  }
4820
4926
  interface ElevasisSystemsProviderProps {
4821
4927
  systems?: SystemModule[];
4928
+ /** Registered topbar action modules. OM node presence controls visibility; module supplies behavior. */
4929
+ topbarActions?: TopbarActionModule[];
4822
4930
  organizationModel?: ElevasisOrganizationModel;
4823
4931
  timeRange?: TimeRange;
4824
4932
  operationsApiUrl?: string;
package/dist/app/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { AppErrorBoundary } from '../chunk-SHZT7ULK.js';
1
+ import { AppErrorBoundary } from '../chunk-66U7JOWV.js';
2
2
  import '../chunk-SJHM4WDG.js';
3
- import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-DA6I5VEY.js';
3
+ import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-QVQMOQXB.js';
4
4
  import '../chunk-X4WBGKJQ.js';
5
5
  import '../chunk-IIMU5YAJ.js';
6
6
  import '../chunk-RNP5R5I3.js';
7
- import { ElevasisUIProvider } from '../chunk-NKEXXL4O.js';
7
+ import { ElevasisUIProvider } from '../chunk-A2XN6PR2.js';
8
8
  import '../chunk-5JYKCULK.js';
9
9
  import '../chunk-6D4LCJ52.js';
10
10
  import '../chunk-WF7CONXF.js';
11
11
  import '../chunk-WLOQ4IBG.js';
12
- import { SystemShell } from '../chunk-LY3YTQC6.js';
12
+ import { SystemShell } from '../chunk-YPWN2WQ3.js';
13
13
  import '../chunk-CTJBPF3Z.js';
14
14
  import '../chunk-3KMDHCAR.js';
15
15
  import '../chunk-S3XR4II4.js';
16
- import '../chunk-A7IG36LB.js';
16
+ import '../chunk-L7GXUSCV.js';
17
17
  import '../chunk-NYBEU5TE.js';
18
18
  import '../chunk-TE4P6OSJ.js';
19
19
  import '../chunk-DT3QYZVU.js';
@@ -21,11 +21,10 @@ import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
21
21
  import '../chunk-Q7DJKLEN.js';
22
22
  import '../chunk-RXH4D6TY.js';
23
23
  import '../chunk-KRWALB24.js';
24
- import { useSessionCheck } from '../chunk-LJDYY3XB.js';
25
- import '../chunk-7MTWRSUZ.js';
26
- import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-J3FLIZY4.js';
24
+ import { useSessionCheck } from '../chunk-JHVEA5NE.js';
25
+ import '../chunk-56O7QQE7.js';
27
26
  import { useInitialization } from '../chunk-6DO4PE3O.js';
28
- import '../chunk-K7GKKETO.js';
27
+ import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-FIMGOWOT.js';
29
28
  import '../chunk-DD3CCMCZ.js';
30
29
  import '../chunk-W2SFTXMT.js';
31
30
  import '../chunk-6ROXVZ3L.js';
@@ -1,8 +1,7 @@
1
- export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-LJDYY3XB.js';
2
- export { AccessKeys } from '../chunk-7MTWRSUZ.js';
3
- import '../chunk-J3FLIZY4.js';
1
+ export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-JHVEA5NE.js';
2
+ export { AccessKeys } from '../chunk-56O7QQE7.js';
4
3
  import '../chunk-6DO4PE3O.js';
5
- import '../chunk-K7GKKETO.js';
4
+ import '../chunk-FIMGOWOT.js';
6
5
  import '../chunk-DD3CCMCZ.js';
7
6
  import '../chunk-W2SFTXMT.js';
8
7
  import '../chunk-6ROXVZ3L.js';
@@ -8,11 +8,10 @@ import '../chunk-2IFYDILW.js';
8
8
  import '../chunk-Q7DJKLEN.js';
9
9
  import '../chunk-RXH4D6TY.js';
10
10
  import '../chunk-KRWALB24.js';
11
- import '../chunk-LJDYY3XB.js';
12
- import '../chunk-7MTWRSUZ.js';
13
- import '../chunk-J3FLIZY4.js';
11
+ import '../chunk-JHVEA5NE.js';
12
+ import '../chunk-56O7QQE7.js';
14
13
  import '../chunk-6DO4PE3O.js';
15
- import '../chunk-K7GKKETO.js';
14
+ import '../chunk-FIMGOWOT.js';
16
15
  import '../chunk-DD3CCMCZ.js';
17
16
  import '../chunk-W2SFTXMT.js';
18
17
  import '../chunk-6ROXVZ3L.js';
@@ -1,6 +1,5 @@
1
- import { useOptionalElevasisSystems } from './chunk-J3FLIZY4.js';
2
1
  import { InitializationContext } from './chunk-6DO4PE3O.js';
3
- import { DEFAULT_ORGANIZATION_MODEL } from './chunk-K7GKKETO.js';
2
+ import { useOptionalElevasisSystems, DEFAULT_ORGANIZATION_MODEL } from './chunk-FIMGOWOT.js';
4
3
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
5
4
  import { STALE_TIME_DEFAULT } from './chunk-6ROXVZ3L.js';
6
5
  import { listAllSystems, getSystem } from './chunk-RH5VWWSC.js';
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-A7IG36LB.js';
1
+ import { useAppearance } from './chunk-L7GXUSCV.js';
2
2
  import { useState, Component } from 'react';
3
3
  import { CopyButton, Tooltip } from '@mantine/core';
4
4
  import { IconCheck, IconCopy } from '@tabler/icons-react';
@@ -2,12 +2,11 @@ import { mantineThemeOverride, createCssVariablesResolver } from './chunk-5JYKCU
2
2
  import { PresetsProvider } from './chunk-6D4LCJ52.js';
3
3
  import { PRESETS, getPreset, generateShades } from './chunk-WF7CONXF.js';
4
4
  import { AppBackground } from './chunk-WLOQ4IBG.js';
5
- import { ElevasisCoreProvider } from './chunk-LY3YTQC6.js';
5
+ import { ElevasisCoreProvider } from './chunk-YPWN2WQ3.js';
6
6
  import { ElevasisLoader } from './chunk-CTJBPF3Z.js';
7
- import { AppearanceProvider } from './chunk-A7IG36LB.js';
7
+ import { AppearanceProvider } from './chunk-L7GXUSCV.js';
8
8
  import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-RXH4D6TY.js';
9
- import { useElevasisSystems, ElevasisSystemsProvider } from './chunk-J3FLIZY4.js';
10
- import { resolveOrganizationModel } from './chunk-K7GKKETO.js';
9
+ import { resolveOrganizationModel, useElevasisSystems, ElevasisSystemsProvider } from './chunk-FIMGOWOT.js';
11
10
  import { useMemo, useEffect } from 'react';
12
11
  import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
13
12
  import '@mantine/core/styles.css';