@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.
- package/dist/api/index.js +4 -6
- package/dist/app/index.css +384 -0
- package/dist/app/index.d.ts +108 -0
- package/dist/app/index.js +17 -27
- package/dist/auth/index.css +659 -0
- package/dist/auth/index.js +19 -6
- package/dist/charts/index.css +533 -0
- package/dist/charts/index.js +18 -15
- package/dist/{chunk-RXH4D6TY.js → chunk-5M4HSHQ5.js} +631 -2
- package/dist/{chunk-TE4P6OSJ.js → chunk-7FJI76OH.js} +1 -1
- package/dist/chunk-GMXGDO3I.js +244 -0
- package/dist/{chunk-CXY7FMUM.js → chunk-GUKY77FJ.js} +50 -4
- package/dist/{chunk-5JYKCULK.js → chunk-NZ2F5RQ4.js} +44 -2
- package/dist/{chunk-WF7CONXF.js → chunk-OJJK27GC.js} +658 -6
- package/dist/{chunk-RX6RSKWC.js → chunk-QDXTIQT4.js} +29255 -18312
- package/dist/{chunk-73EWE2EW.js → chunk-V5HWC5EW.js} +1 -1
- package/dist/components/chat/index.js +1 -2
- package/dist/components/index.css +149 -149
- package/dist/components/index.js +13 -37
- package/dist/components/navigation/index.css +659 -0
- package/dist/components/navigation/index.js +25 -4
- package/dist/features/auth/index.js +14 -38
- package/dist/features/clients/index.css +149 -149
- package/dist/features/clients/index.js +13 -37
- package/dist/features/crm/index.js +13 -37
- package/dist/features/dashboard/index.js +13 -37
- package/dist/features/delivery/index.js +13 -37
- package/dist/features/knowledge/index.css +659 -0
- package/dist/features/knowledge/index.js +25 -248
- package/dist/features/lead-gen/index.d.ts +81 -0
- package/dist/features/lead-gen/index.js +13 -37
- package/dist/features/monitoring/index.js +13 -37
- package/dist/features/monitoring/requests/index.d.ts +69 -7
- package/dist/features/monitoring/requests/index.js +32 -41
- package/dist/features/operations/index.d.ts +79 -0
- package/dist/features/operations/index.js +13 -37
- package/dist/features/seo/index.js +1 -4
- package/dist/features/settings/index.js +13 -37
- package/dist/hooks/access/index.css +659 -0
- package/dist/hooks/access/index.js +19 -5
- package/dist/hooks/delivery/index.js +13 -37
- package/dist/hooks/index.d.ts +18 -6
- package/dist/hooks/index.js +13 -37
- package/dist/hooks/published.d.ts +18 -6
- package/dist/hooks/published.js +13 -37
- package/dist/index.d.ts +151 -7
- package/dist/index.js +14 -38
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.css +659 -0
- package/dist/knowledge/index.d.ts +81 -0
- package/dist/knowledge/index.js +25 -15
- package/dist/layout/index.css +659 -0
- package/dist/layout/index.d.ts +18 -2
- package/dist/layout/index.js +24 -7
- package/dist/organization/index.js +13 -37
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +120 -1
- package/dist/provider/index.js +18 -22
- package/dist/provider/published.css +533 -0
- package/dist/provider/published.d.ts +121 -2
- package/dist/provider/published.js +18 -17
- package/dist/test-utils/index.js +4 -6
- package/dist/theme/index.js +2 -5
- package/dist/theme/presets/index.js +1 -2
- package/dist/utils/index.js +1 -3
- package/package.json +3 -3
- package/dist/chunk-3KMDHCAR.js +0 -52
- package/dist/chunk-4DRI3G36.js +0 -1016
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-66U7JOWV.js +0 -425
- package/dist/chunk-6D4LCJ52.js +0 -10
- package/dist/chunk-6EV47QQW.js +0 -340
- package/dist/chunk-6ROXVZ3L.js +0 -9
- package/dist/chunk-7MTWRSUZ.js +0 -357
- package/dist/chunk-7PHY5ONQ.js +0 -85
- package/dist/chunk-B2DZLPDL.js +0 -39
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-CTJBPF3Z.js +0 -734
- package/dist/chunk-DT3QYZVU.js +0 -23
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IUQAP4IO.js +0 -2131
- package/dist/chunk-J3FLIZY4.js +0 -423
- package/dist/chunk-K7GKKETO.js +0 -3157
- package/dist/chunk-L7GXUSCV.js +0 -215
- package/dist/chunk-LJDYY3XB.js +0 -133
- package/dist/chunk-NYBEU5TE.js +0 -118
- package/dist/chunk-RH5VWWSC.js +0 -624
- package/dist/chunk-SJNIOGVX.js +0 -112
- package/dist/chunk-TYRUKGGD.js +0 -46
- package/dist/chunk-WLOQ4IBG.js +0 -654
- package/dist/chunk-X4WBGKJQ.js +0 -138
- 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-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
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-
|
|
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-
|
|
21
|
-
import '../chunk-
|
|
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';
|
package/dist/test-utils/index.js
CHANGED
|
@@ -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-
|
|
6
|
-
import { ApiClientProvider } from '../chunk-
|
|
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-
|
|
11
|
-
import '../chunk-
|
|
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';
|
package/dist/theme/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export {
|
|
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-
|
|
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';
|
package/dist/utils/index.js
CHANGED
|
@@ -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-
|
|
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.
|
|
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/
|
|
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": {
|
package/dist/chunk-3KMDHCAR.js
DELETED
|
@@ -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 };
|