@elevasis/ui 2.40.1 → 2.41.1

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 (92) hide show
  1. package/dist/api/index.js +4 -6
  2. package/dist/app/index.css +384 -0
  3. package/dist/app/index.d.ts +108 -0
  4. package/dist/app/index.js +17 -27
  5. package/dist/auth/index.css +659 -0
  6. package/dist/auth/index.js +19 -6
  7. package/dist/charts/index.css +533 -0
  8. package/dist/charts/index.js +18 -15
  9. package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
  10. package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
  11. package/dist/chunk-GMXGDO3I.js +244 -0
  12. package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
  13. package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
  14. package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
  15. package/dist/{chunk-RX6RSKWC.js → chunk-QDXTIQT4.js} +29255 -18312
  16. package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
  17. package/dist/components/chat/index.js +1 -2
  18. package/dist/components/index.css +149 -149
  19. package/dist/components/index.js +13 -37
  20. package/dist/components/navigation/index.css +659 -0
  21. package/dist/components/navigation/index.js +25 -4
  22. package/dist/features/auth/index.js +14 -38
  23. package/dist/features/clients/index.css +149 -149
  24. package/dist/features/clients/index.js +13 -37
  25. package/dist/features/crm/index.js +13 -37
  26. package/dist/features/dashboard/index.js +13 -37
  27. package/dist/features/delivery/index.js +13 -37
  28. package/dist/features/knowledge/index.css +659 -0
  29. package/dist/features/knowledge/index.js +25 -248
  30. package/dist/features/lead-gen/index.d.ts +81 -0
  31. package/dist/features/lead-gen/index.js +13 -37
  32. package/dist/features/monitoring/index.js +13 -37
  33. package/dist/features/monitoring/requests/index.d.ts +69 -7
  34. package/dist/features/monitoring/requests/index.js +32 -41
  35. package/dist/features/operations/index.d.ts +79 -0
  36. package/dist/features/operations/index.js +13 -37
  37. package/dist/features/seo/index.js +1 -4
  38. package/dist/features/settings/index.js +13 -37
  39. package/dist/hooks/access/index.css +659 -0
  40. package/dist/hooks/access/index.js +19 -5
  41. package/dist/hooks/delivery/index.js +13 -37
  42. package/dist/hooks/index.d.ts +18 -6
  43. package/dist/hooks/index.js +13 -37
  44. package/dist/hooks/published.d.ts +18 -6
  45. package/dist/hooks/published.js +13 -37
  46. package/dist/index.d.ts +151 -7
  47. package/dist/index.js +14 -38
  48. package/dist/initialization/index.js +1 -1
  49. package/dist/knowledge/index.css +659 -0
  50. package/dist/knowledge/index.d.ts +81 -0
  51. package/dist/knowledge/index.js +25 -15
  52. package/dist/layout/index.css +659 -0
  53. package/dist/layout/index.d.ts +18 -2
  54. package/dist/layout/index.js +24 -7
  55. package/dist/organization/index.js +13 -37
  56. package/dist/provider/index.css +384 -0
  57. package/dist/provider/index.d.ts +120 -1
  58. package/dist/provider/index.js +18 -22
  59. package/dist/provider/published.css +533 -0
  60. package/dist/provider/published.d.ts +121 -2
  61. package/dist/provider/published.js +18 -17
  62. package/dist/test-utils/index.js +4 -6
  63. package/dist/theme/index.js +2 -5
  64. package/dist/theme/presets/index.js +1 -2
  65. package/dist/utils/index.js +1 -3
  66. package/package.json +3 -3
  67. package/dist/chunk-3KMDHCAR.js +0 -52
  68. package/dist/chunk-4DRI3G36.js +0 -1016
  69. package/dist/chunk-5EYJ2GIN.js +0 -122
  70. package/dist/chunk-66U7JOWV.js +0 -425
  71. package/dist/chunk-6D4LCJ52.js +0 -10
  72. package/dist/chunk-6EV47QQW.js +0 -340
  73. package/dist/chunk-6ROXVZ3L.js +0 -9
  74. package/dist/chunk-7MTWRSUZ.js +0 -357
  75. package/dist/chunk-7PHY5ONQ.js +0 -85
  76. package/dist/chunk-B2DZLPDL.js +0 -39
  77. package/dist/chunk-CLDCYJQT.js +0 -1
  78. package/dist/chunk-CTJBPF3Z.js +0 -734
  79. package/dist/chunk-DT3QYZVU.js +0 -23
  80. package/dist/chunk-IIMU5YAJ.js +0 -53
  81. package/dist/chunk-IUQAP4IO.js +0 -2131
  82. package/dist/chunk-J3FLIZY4.js +0 -423
  83. package/dist/chunk-K7GKKETO.js +0 -3157
  84. package/dist/chunk-L7GXUSCV.js +0 -215
  85. package/dist/chunk-LJDYY3XB.js +0 -133
  86. package/dist/chunk-NYBEU5TE.js +0 -118
  87. package/dist/chunk-RH5VWWSC.js +0 -624
  88. package/dist/chunk-SJNIOGVX.js +0 -112
  89. package/dist/chunk-TYRUKGGD.js +0 -46
  90. package/dist/chunk-WLOQ4IBG.js +0 -654
  91. package/dist/chunk-X4WBGKJQ.js +0 -138
  92. package/dist/chunk-X7D6SUKR.js +0 -1234
@@ -4,6 +4,7 @@ import { QueryClient } from '@tanstack/react-query';
4
4
  import * as z from 'zod';
5
5
  import { z as z$1, ZodType } from 'zod';
6
6
  import { EventSourceMessage } from '@microsoft/fetch-event-source';
7
+ import { IconBrain } from '@tabler/icons-react';
7
8
 
8
9
  /** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
9
10
  interface FrameworkThemeOverrides {
@@ -3799,6 +3800,84 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3799
3800
  primary: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3800
3801
  bottom: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3801
3802
  }, z$1.core.$strip>>;
3803
+ topbar: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3804
+ id: z$1.ZodString;
3805
+ label: z$1.ZodString;
3806
+ tooltip: z$1.ZodOptional<z$1.ZodString>;
3807
+ icon: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
3808
+ message: "message";
3809
+ error: "error";
3810
+ agent: "agent";
3811
+ workflow: "workflow";
3812
+ "google-sheets": "google-sheets";
3813
+ dashboard: "dashboard";
3814
+ calendar: "calendar";
3815
+ sales: "sales";
3816
+ crm: "crm";
3817
+ "lead-gen": "lead-gen";
3818
+ projects: "projects";
3819
+ clients: "clients";
3820
+ operations: "operations";
3821
+ monitoring: "monitoring";
3822
+ knowledge: "knowledge";
3823
+ settings: "settings";
3824
+ admin: "admin";
3825
+ archive: "archive";
3826
+ business: "business";
3827
+ finance: "finance";
3828
+ platform: "platform";
3829
+ seo: "seo";
3830
+ playbook: "playbook";
3831
+ strategy: "strategy";
3832
+ reference: "reference";
3833
+ integration: "integration";
3834
+ database: "database";
3835
+ user: "user";
3836
+ team: "team";
3837
+ gmail: "gmail";
3838
+ attio: "attio";
3839
+ overview: "overview";
3840
+ "command-view": "command-view";
3841
+ "command-queue": "command-queue";
3842
+ pipeline: "pipeline";
3843
+ lists: "lists";
3844
+ resources: "resources";
3845
+ approve: "approve";
3846
+ reject: "reject";
3847
+ retry: "retry";
3848
+ edit: "edit";
3849
+ view: "view";
3850
+ launch: "launch";
3851
+ "message-plus": "message-plus";
3852
+ escalate: "escalate";
3853
+ promote: "promote";
3854
+ submit: "submit";
3855
+ email: "email";
3856
+ success: "success";
3857
+ warning: "warning";
3858
+ info: "info";
3859
+ pending: "pending";
3860
+ bolt: "bolt";
3861
+ building: "building";
3862
+ briefcase: "briefcase";
3863
+ apps: "apps";
3864
+ graph: "graph";
3865
+ shield: "shield";
3866
+ users: "users";
3867
+ "chart-bar": "chart-bar";
3868
+ search: "search";
3869
+ }>, z$1.ZodString]>>;
3870
+ order: z$1.ZodOptional<z$1.ZodNumber>;
3871
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
3872
+ devOnly: z$1.ZodOptional<z$1.ZodBoolean>;
3873
+ requiresAdmin: z$1.ZodOptional<z$1.ZodBoolean>;
3874
+ targets: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodObject<{
3875
+ systems: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3876
+ entities: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3877
+ resources: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3878
+ actions: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3879
+ }, z$1.core.$strip>>>;
3880
+ }, z$1.core.$strip>>>;
3802
3881
  }, z$1.core.$strip>>;
3803
3882
  identity: z$1.ZodDefault<z$1.ZodObject<{
3804
3883
  mission: z$1.ZodDefault<z$1.ZodString>;
@@ -4467,6 +4546,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4467
4546
  edit: "edit";
4468
4547
  view: "view";
4469
4548
  launch: "launch";
4549
+ "message-plus": "message-plus";
4470
4550
  escalate: "escalate";
4471
4551
  promote: "promote";
4472
4552
  submit: "submit";
@@ -4832,6 +4912,8 @@ interface SSEConnectionManagerLike {
4832
4912
  }>;
4833
4913
  }
4834
4914
 
4915
+ type TablerIconComponent = typeof IconBrain;
4916
+
4835
4917
  type ElevasisOrganizationModel = Omit<OrganizationModel, 'knowledge'> & {
4836
4918
  knowledge?: OrganizationModel['knowledge'];
4837
4919
  };
@@ -4915,6 +4997,39 @@ interface ResolvedShellRouteMatch {
4915
4997
  interface ShellRuntime {
4916
4998
  resolveRoute: (path: string) => ResolvedShellRouteMatch;
4917
4999
  }
5000
+ /**
5001
+ * A resolved topbar action — the OM node after gating/filtering, with icon resolved
5002
+ * from the semantic icon registry. Passed to `TopbarActionModule.render`.
5003
+ */
5004
+ interface ResolvedTopbarAction {
5005
+ id: string;
5006
+ label: string;
5007
+ tooltip?: string;
5008
+ icon: TablerIconComponent;
5009
+ order: number;
5010
+ }
5011
+ /**
5012
+ * A topbar action module — binds a registry key to UI behavior (a render callback).
5013
+ * The key must match `navigation.topbar[id]`. The OM supplies data + visibility;
5014
+ * the module supplies behavior.
5015
+ */
5016
+ interface TopbarActionModule {
5017
+ /** Stable key that matches the `id` of a `navigation.topbar` node. */
5018
+ key: string;
5019
+ /** Render the topbar action. Receives the resolved OM node (icon pre-resolved). */
5020
+ render: (ctx: {
5021
+ node: ResolvedTopbarAction;
5022
+ }) => ReactNode;
5023
+ }
5024
+ /** A joined entry emitted by `getTopbarActions`: resolved OM node + module behavior. */
5025
+ interface ResolvedTopbarActionEntry {
5026
+ node: ResolvedTopbarAction;
5027
+ render: TopbarActionModule['render'];
5028
+ }
5029
+ interface TopbarActionsProjectionOptions {
5030
+ isPlatformAdmin?: boolean;
5031
+ isDev?: boolean;
5032
+ }
4918
5033
  interface OrganizationGraphSystemBridge {
4919
5034
  systemId?: string;
4920
5035
  }
@@ -4925,6 +5040,8 @@ interface OrganizationGraphContextValue {
4925
5040
  }
4926
5041
  interface ElevasisSystemsProviderProps {
4927
5042
  systems?: SystemModule[];
5043
+ /** Registered topbar action modules. OM node presence controls visibility; module supplies behavior. */
5044
+ topbarActions?: TopbarActionModule[];
4928
5045
  organizationModel?: ElevasisOrganizationModel;
4929
5046
  timeRange?: TimeRange;
4930
5047
  operationsApiUrl?: string;
@@ -4938,6 +5055,8 @@ interface ElevasisSystemsContextValue {
4938
5055
  shellModel: ResolvedShellModel;
4939
5056
  shellRuntime: ShellRuntime;
4940
5057
  getSidebarLinks: (options?: ShellSidebarProjectionOptions) => ShellSidebarLinkGroup[];
5058
+ /** Returns the list of topbar actions visible to the current user, in order. */
5059
+ getTopbarActions: (options?: TopbarActionsProjectionOptions) => ResolvedTopbarActionEntry[];
4941
5060
  enabledResolvedSystems: ResolvedSystemModule[];
4942
5061
  resolvedSystems: ResolvedSystemModule[];
4943
5062
  organizationGraph: OrganizationGraphContextValue;
@@ -4954,7 +5073,7 @@ interface ElevasisSystemsContextValue {
4954
5073
 
4955
5074
  declare function useElevasisSystems(): ElevasisSystemsContextValue;
4956
5075
  declare function useOptionalElevasisSystems(): ElevasisSystemsContextValue | null;
4957
- declare function ElevasisSystemsProvider({ systems, organizationModel, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, children }: ElevasisSystemsProviderProps): react_jsx_runtime.JSX.Element;
5076
+ declare function ElevasisSystemsProvider({ systems, topbarActions, organizationModel, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, children }: ElevasisSystemsProviderProps): react_jsx_runtime.JSX.Element;
4958
5077
 
4959
5078
  declare function SystemShell({ children }: {
4960
5079
  children: ReactNode;
@@ -5003,4 +5122,4 @@ declare function useElevasisServices(): ElevasisServiceContextValue;
5003
5122
  declare function ElevasisServiceProvider({ apiRequest, organizationId, workOSOrganizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
5004
5123
 
5005
5124
  export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisServices, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems };
5006
- export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisSystemsContextValue, ElevasisSystemsProviderProps, ElevasisTokenOverrides, NotificationAdapter, OrganizationGraphContextValue, OrganizationGraphSystemBridge, ResolvedShellModel, ResolvedShellRouteMatch, ResolvedShellSystem, ResolvedSystemAccess, ResolvedSystemModule, ResolvedSystemSemantics, ShellRouteMatchStatus, ShellRuntime, ShellSidebarLinkGroup, ShellSidebarLinkItem, ShellSidebarProjectionOptions, SystemIconComponent, SystemModule, SystemSidebarComponent, WithSchemes };
5125
+ export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisSystemsContextValue, ElevasisSystemsProviderProps, ElevasisTokenOverrides, NotificationAdapter, OrganizationGraphContextValue, OrganizationGraphSystemBridge, ResolvedShellModel, ResolvedShellRouteMatch, ResolvedShellSystem, ResolvedSystemAccess, ResolvedSystemModule, ResolvedSystemSemantics, ResolvedTopbarAction, ResolvedTopbarActionEntry, ShellRouteMatchStatus, ShellRuntime, ShellSidebarLinkGroup, ShellSidebarLinkItem, ShellSidebarProjectionOptions, SystemIconComponent, SystemModule, SystemSidebarComponent, TopbarActionModule, TopbarActionsProjectionOptions, WithSchemes };
@@ -1,24 +1,25 @@
1
- export { ElevasisCoreProvider, NotificationProvider, SystemShell, useNotificationAdapter } from '../chunk-6EV47QQW.js';
2
- import '../chunk-CTJBPF3Z.js';
3
- import '../chunk-3KMDHCAR.js';
1
+ export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-QDXTIQT4.js';
2
+ import '../chunk-NZ2F5RQ4.js';
3
+ import '../chunk-OJJK27GC.js';
4
+ import '../chunk-AUDNF2Q7.js';
5
+ import '../chunk-6M6OLGQY.js';
6
+ import '../chunk-BRXELOHC.js';
7
+ import '../chunk-GUKY77FJ.js';
8
+ import '../chunk-SJHM4WDG.js';
9
+ import '../chunk-ZTWA5H77.js';
4
10
  import '../chunk-S3XR4II4.js';
5
- export { AppearanceProvider, useAppearance } from '../chunk-L7GXUSCV.js';
6
- import '../chunk-NYBEU5TE.js';
7
- import '../chunk-TE4P6OSJ.js';
8
- import '../chunk-DT3QYZVU.js';
9
- import '../chunk-2IFYDILW.js';
10
- import '../chunk-Q7DJKLEN.js';
11
- import '../chunk-RXH4D6TY.js';
12
- import '../chunk-KRWALB24.js';
13
- import '../chunk-LJDYY3XB.js';
14
- import '../chunk-7MTWRSUZ.js';
15
- export { ElevasisSystemsProvider, useElevasisSystems, useOptionalElevasisSystems } from '../chunk-J3FLIZY4.js';
16
11
  import '../chunk-6DO4PE3O.js';
17
- import '../chunk-K7GKKETO.js';
12
+ import '../chunk-7FJI76OH.js';
18
13
  import '../chunk-DD3CCMCZ.js';
14
+ import '../chunk-GMXGDO3I.js';
15
+ import '../chunk-2IFYDILW.js';
16
+ import '../chunk-Q7DJKLEN.js';
17
+ import '../chunk-HENXLGVD.js';
18
+ import '../chunk-7FPLLSHN.js';
19
+ import '../chunk-RNP5R5I3.js';
19
20
  import '../chunk-W2SFTXMT.js';
20
- import '../chunk-6ROXVZ3L.js';
21
- import '../chunk-RH5VWWSC.js';
21
+ import '../chunk-5M4HSHQ5.js';
22
+ import '../chunk-KRWALB24.js';
22
23
  export { ElevasisServiceProvider, useElevasisServices } from '../chunk-2FTX4WO2.js';
23
24
  import '../chunk-MQZE7SUI.js';
24
25
  import '../chunk-TVTSASST.js';
@@ -2,13 +2,11 @@ import { server, handlers } from '../chunk-7XKCG5CT.js';
2
2
  export { handlers, server } from '../chunk-7XKCG5CT.js';
3
3
  import { mockWorkOSUser, mockUseAuth, mockUnauthenticatedUser, mockAuthenticatedUser, mockAuthLoading, createMockUseAuth } from '../chunk-DRQPEMJI.js';
4
4
  export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-DRQPEMJI.js';
5
- import '../chunk-73EWE2EW.js';
6
- import { ApiClientProvider } from '../chunk-TE4P6OSJ.js';
7
- import '../chunk-RXH4D6TY.js';
8
- import '../chunk-KRWALB24.js';
5
+ import '../chunk-V5HWC5EW.js';
6
+ import { ApiClientProvider } from '../chunk-7FJI76OH.js';
9
7
  import '../chunk-DD3CCMCZ.js';
10
- import '../chunk-6ROXVZ3L.js';
11
- import '../chunk-RH5VWWSC.js';
8
+ import '../chunk-5M4HSHQ5.js';
9
+ import '../chunk-KRWALB24.js';
12
10
  import { ElevasisServiceProvider } from '../chunk-2FTX4WO2.js';
13
11
  import '../chunk-MQZE7SUI.js';
14
12
  import '../chunk-TVTSASST.js';
@@ -1,6 +1,3 @@
1
- export { useAvailablePresets } from '../chunk-B2DZLPDL.js';
2
- export { TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, mantineThemeOverride } from '../chunk-5JYKCULK.js';
3
- export { PresetsProvider, usePresetsContext } from '../chunk-6D4LCJ52.js';
4
- export { generateShades, getPreset, PRESETS as presets } from '../chunk-WF7CONXF.js';
5
- import '../chunk-WLOQ4IBG.js';
1
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, mantineThemeOverride, useAvailablePresets, usePresetsContext } from '../chunk-NZ2F5RQ4.js';
2
+ export { generateShades, getPreset, PRESETS as presets } from '../chunk-OJJK27GC.js';
6
3
  import '../chunk-I2KLQ2HA.js';
@@ -1,3 +1,2 @@
1
- export { THEME_PRESETS, ThemePresetEnum, generateShades, getPreset, PRESETS as presets } from '../../chunk-WF7CONXF.js';
2
- import '../../chunk-WLOQ4IBG.js';
1
+ export { THEME_PRESETS, ThemePresetEnum, generateShades, getPreset, PRESETS as presets } from '../../chunk-OJJK27GC.js';
3
2
  import '../../chunk-I2KLQ2HA.js';
@@ -1,6 +1,4 @@
1
- export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-RXH4D6TY.js';
1
+ export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-5M4HSHQ5.js';
2
2
  export { ResourceStatusColors } from '../chunk-KRWALB24.js';
3
- export { GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING } from '../chunk-6ROXVZ3L.js';
4
- import '../chunk-RH5VWWSC.js';
5
3
  import '../chunk-TVTSASST.js';
6
4
  import '../chunk-I2KLQ2HA.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "2.40.1",
3
+ "version": "2.41.1",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -270,9 +270,9 @@
270
270
  "vite": "^7.0.0",
271
271
  "vitest": "^3.2.4",
272
272
  "@elevasis/sdk": "1.29.0",
273
- "@repo/elevasis-core": "1.0.0",
274
- "@repo/core": "0.36.0",
273
+ "@repo/core": "0.37.0",
275
274
  "@repo/eslint-config": "0.0.0",
275
+ "@repo/elevasis-core": "1.0.0",
276
276
  "@repo/typescript-config": "0.0.0"
277
277
  },
278
278
  "dependencies": {
@@ -1,52 +0,0 @@
1
- import { Text, Box, Code, Title } from '@mantine/core';
2
- import Markdown from 'react-markdown';
3
- import { Prism } from 'react-syntax-highlighter';
4
- import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
5
- import { jsx, Fragment } from 'react/jsx-runtime';
6
-
7
- // src/components/display/StyledMarkdown.tsx
8
- var customCodeTheme = Object.fromEntries(
9
- Object.entries(oneDark).map(([key, value]) => [
10
- key,
11
- typeof value === "object" && value !== null ? { ...value, background: "none", backgroundColor: "none" } : value
12
- ])
13
- );
14
- var defaultComponents = {
15
- h1: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 3, c: "var(--color-primary)", mb: "xs", mt: "md", children }),
16
- h2: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 4, c: "var(--color-primary)", mb: "xs", mt: "sm", children }),
17
- ul: ({ children }) => /* @__PURE__ */ jsx("ul", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
18
- ol: ({ children }) => /* @__PURE__ */ jsx("ol", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
19
- li: ({ children }) => /* @__PURE__ */ jsx("li", { style: { marginBottom: "0.25rem", fontSize: "var(--mantine-font-size-sm)" }, children }),
20
- code: ({ className, children, ...props }) => {
21
- const match = /language-(\w+)/.exec(className || "");
22
- const codeString = String(children).replace(/\n$/, "");
23
- if (match) {
24
- return /* @__PURE__ */ jsx(
25
- Prism,
26
- {
27
- style: customCodeTheme,
28
- language: match[1],
29
- PreTag: "div",
30
- customStyle: {
31
- margin: "0.5rem 0",
32
- borderRadius: "var(--mantine-radius-default)",
33
- fontSize: "0.8rem"
34
- },
35
- children: codeString
36
- }
37
- );
38
- }
39
- return /* @__PURE__ */ jsx(Code, { ...props, children });
40
- },
41
- pre: ({ children }) => /* @__PURE__ */ jsx(Fragment, { children }),
42
- blockquote: ({ children }) => /* @__PURE__ */ jsx(Box, { pl: "sm", my: "xs", style: { borderLeft: "2px solid var(--color-border)" }, children }),
43
- p: ({ children }) => /* @__PURE__ */ jsx(Text, { size: "sm", m: 0, children }),
44
- strong: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fw: 700, children }),
45
- em: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fs: "italic", children })
46
- };
47
- function StyledMarkdown({ children, components, className, style }) {
48
- const mergedComponents = components ? { ...defaultComponents, ...components } : defaultComponents;
49
- return /* @__PURE__ */ jsx("div", { className, style, children: /* @__PURE__ */ jsx(Markdown, { components: mergedComponents, children }) });
50
- }
51
-
52
- export { StyledMarkdown };