@elevasis/ui 2.33.2 → 2.35.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.
- package/dist/api/index.d.ts +9 -2
- package/dist/api/index.js +3 -3
- package/dist/app/index.css +452 -0
- package/dist/app/index.d.ts +1255 -8
- package/dist/app/index.js +151 -13
- package/dist/charts/index.js +3 -6
- package/dist/chunk-26HFM4MH.js +41449 -0
- package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/chunk-YYX7OPZQ.js +25 -0
- package/dist/components/index.d.ts +69 -92
- package/dist/components/index.js +20 -3216
- package/dist/components/navigation/index.js +25 -7
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -31
- package/dist/features/crm/index.js +20 -35
- package/dist/features/dashboard/index.d.ts +68 -91
- package/dist/features/dashboard/index.js +20 -33
- package/dist/features/delivery/index.js +20 -35
- package/dist/features/knowledge/index.js +25 -11
- package/dist/features/lead-gen/index.d.ts +9 -9
- package/dist/features/lead-gen/index.js +20 -36
- package/dist/features/monitoring/index.js +20 -35
- package/dist/features/monitoring/requests/index.js +20 -30
- package/dist/features/operations/index.d.ts +197 -188
- package/dist/features/operations/index.js +18 -42
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.js +20 -32
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +105 -112
- package/dist/hooks/index.js +20 -26
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
- package/dist/hooks/published.d.ts +105 -112
- package/dist/hooks/published.js +20 -25
- package/dist/index.css +532 -532
- package/dist/index.d.ts +10261 -6793
- package/dist/index.js +22 -31
- package/dist/knowledge/index.d.ts +51 -59
- package/dist/knowledge/index.js +40 -211
- package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -2
- package/dist/provider/index.d.ts +71 -52
- package/dist/provider/index.js +20 -20
- package/dist/provider/published.d.ts +39 -47
- package/dist/provider/published.js +20 -15
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +16 -4
- package/dist/test-utils/setup.js +38 -0
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +88 -95
- package/dist/utils/index.d.ts +46 -69
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +21 -8
- package/dist/zustand/index.js +32 -1
- package/package.json +5 -5
- package/dist/chunk-2ZZ72TAB.js +0 -2281
- package/dist/chunk-32I2RCGC.js +0 -85
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-44I4LOH6.js +0 -1593
- package/dist/chunk-4DYOXEH6.js +0 -951
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-A4VDJJCV.js +0 -1864
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-EPTHX4VZ.js +0 -749
- package/dist/chunk-GWGQI6V4.js +0 -447
- package/dist/chunk-HUJCU55S.js +0 -159
- package/dist/chunk-IBWMR4TI.js +0 -469
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IOXOPMYS.js +0 -145
- package/dist/chunk-J2UD7BOH.js +0 -347
- package/dist/chunk-JA5ECJJB.js +0 -387
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-KW7ZNQD7.js +0 -126
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-O56ESZCQ.js +0 -1874
- package/dist/chunk-OIBHQH5Q.js +0 -96
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-QDFJSUG3.js +0 -13
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SZHARWKU.js +0 -15
- package/dist/chunk-T3J6U77J.js +0 -12056
- package/dist/chunk-TBVLQRXT.js +0 -68
- package/dist/chunk-TGVAIWIL.js +0 -1778
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VGU4ZFYZ.js +0 -4752
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-WKW6B5ID.js +0 -29
- package/dist/chunk-XCYKC6OZ.js +0 -1
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-ZMK5Z6KE.js +0 -5198
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
package/dist/test-utils/index.js
CHANGED
|
@@ -2,9 +2,9 @@ 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-
|
|
5
|
+
import '../chunk-YYX7OPZQ.js';
|
|
6
|
+
import { ApiClientProvider } from '../chunk-57OZ3AEG.js';
|
|
7
|
+
import '../chunk-GEFWMU26.js';
|
|
8
8
|
import '../chunk-KRWALB24.js';
|
|
9
9
|
import '../chunk-DD3CCMCZ.js';
|
|
10
10
|
import { ElevasisServiceProvider } from '../chunk-KJ3QUBNU.js';
|
|
@@ -188,7 +188,19 @@ function ownsOrgOsSystem(ownerSystemId, systemId) {
|
|
|
188
188
|
}
|
|
189
189
|
function getOrgOsRouteContractSystems(organizationModel) {
|
|
190
190
|
const { systems } = organizationModel;
|
|
191
|
-
|
|
191
|
+
const arraySystems = systems.systems;
|
|
192
|
+
if (Array.isArray(arraySystems)) return arraySystems;
|
|
193
|
+
const result = [];
|
|
194
|
+
const visit = (entries, prefix = "") => {
|
|
195
|
+
for (const [key, system] of Object.entries(entries)) {
|
|
196
|
+
const id = prefix ? `${prefix}.${key}` : system.id || key;
|
|
197
|
+
result.push({ ...system, id });
|
|
198
|
+
if (system.systems) visit(system.systems, id);
|
|
199
|
+
if (system.subsystems) visit(system.subsystems, id);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
visit(systems);
|
|
203
|
+
return result;
|
|
192
204
|
}
|
|
193
205
|
function collectOrgOsUiRouteContractIssues(options) {
|
|
194
206
|
const { target, organizationModel, mode = "production" } = options;
|
package/dist/test-utils/setup.js
CHANGED
|
@@ -22,6 +22,44 @@ vi.mock("@elevasis/ui/router/context", () => ({
|
|
|
22
22
|
}),
|
|
23
23
|
RouterProvider: ({ children }) => children
|
|
24
24
|
}));
|
|
25
|
+
vi.doMock("@elevasis/ui/organization", () => ({
|
|
26
|
+
useOrganization: () => ({
|
|
27
|
+
currentWorkOSOrganizationId: "test-org-id",
|
|
28
|
+
currentSupabaseOrganizationId: "test-supabase-org-id",
|
|
29
|
+
currentMembership: { id: "test-membership-id", organizationId: "test-org-id" },
|
|
30
|
+
memberships: [],
|
|
31
|
+
switchOrganization: vi.fn()
|
|
32
|
+
}),
|
|
33
|
+
OrganizationProvider: ({ children }) => children,
|
|
34
|
+
OrganizationSwitcher: () => null
|
|
35
|
+
}));
|
|
36
|
+
var mockApiUrl = "https://api.elevasis.io";
|
|
37
|
+
async function mockApiRequest(endpoint, options = {}) {
|
|
38
|
+
const response = await fetch(`${mockApiUrl}/api${endpoint}`, {
|
|
39
|
+
headers: {
|
|
40
|
+
...options.body ? { "Content-Type": "application/json" } : {},
|
|
41
|
+
...options.headers
|
|
42
|
+
},
|
|
43
|
+
...options
|
|
44
|
+
});
|
|
45
|
+
if (!response.ok) {
|
|
46
|
+
throw new Error(`HTTP ${response.status}`);
|
|
47
|
+
}
|
|
48
|
+
if (response.status === 204) {
|
|
49
|
+
return void 0;
|
|
50
|
+
}
|
|
51
|
+
return response.json();
|
|
52
|
+
}
|
|
53
|
+
vi.doMock("@elevasis/ui/api", () => ({
|
|
54
|
+
useApiClient: () => ({
|
|
55
|
+
apiRequest: mockApiRequest,
|
|
56
|
+
deferredApiRequest: mockApiRequest,
|
|
57
|
+
isOrganizationReady: true,
|
|
58
|
+
isInitializing: false
|
|
59
|
+
}),
|
|
60
|
+
ApiClientProvider: ({ children }) => children,
|
|
61
|
+
useApiClientContext: vi.fn()
|
|
62
|
+
}));
|
|
25
63
|
var isIntegrationTest = () => {
|
|
26
64
|
try {
|
|
27
65
|
return expect.getState().testPath?.includes("integration.test") ?? false;
|
package/dist/theme/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export {
|
|
3
|
-
export { generateShades, getPreset, PRESETS as presets } from '../chunk-3FV6HBXS.js';
|
|
1
|
+
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, mantineThemeOverride, useAvailablePresets, usePresetsContext } from '../chunk-AKW7KISS.js';
|
|
2
|
+
export { generateShades, getPreset, PRESETS as presets } from '../chunk-WF7CONXF.js';
|
|
4
3
|
import '../chunk-WLOQ4IBG.js';
|
|
5
4
|
import '../chunk-I2KLQ2HA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Theme token overrides. Each key maps 1:1 to a CSS variable.
|
|
@@ -88,10 +88,35 @@ type ColorShadesTuple = [string, string, string, string, string, string, string,
|
|
|
88
88
|
*/
|
|
89
89
|
declare function generateShades(hex: string): ColorShadesTuple;
|
|
90
90
|
|
|
91
|
+
declare const THEME_PRESETS: readonly ["default", "tactical", "slate", "regal", "midnight", "aurora", "titanium", "rose-gold", "wave", "canopy", "quarry", "nirvana", "cortex", "synapse", "graphite", "helios", "cyber-void", "cyber-volt", "cyber-chrome", "cyber-strike"];
|
|
92
|
+
type ThemePresetName = (typeof THEME_PRESETS)[number];
|
|
93
|
+
declare const ThemePresetEnum: z.ZodEnum<{
|
|
94
|
+
default: "default";
|
|
95
|
+
tactical: "tactical";
|
|
96
|
+
regal: "regal";
|
|
97
|
+
"cyber-volt": "cyber-volt";
|
|
98
|
+
aurora: "aurora";
|
|
99
|
+
"rose-gold": "rose-gold";
|
|
100
|
+
midnight: "midnight";
|
|
101
|
+
titanium: "titanium";
|
|
102
|
+
canopy: "canopy";
|
|
103
|
+
slate: "slate";
|
|
104
|
+
"cyber-strike": "cyber-strike";
|
|
105
|
+
"cyber-chrome": "cyber-chrome";
|
|
106
|
+
"cyber-void": "cyber-void";
|
|
107
|
+
nirvana: "nirvana";
|
|
108
|
+
wave: "wave";
|
|
109
|
+
synapse: "synapse";
|
|
110
|
+
cortex: "cortex";
|
|
111
|
+
helios: "helios";
|
|
112
|
+
graphite: "graphite";
|
|
113
|
+
quarry: "quarry";
|
|
114
|
+
}>;
|
|
115
|
+
|
|
91
116
|
declare const PRESETS: Record<PresetName, ThemePreset>;
|
|
92
117
|
|
|
93
118
|
/** Look up a preset by name. Falls back to default preset for unknown names. */
|
|
94
119
|
declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
|
|
95
120
|
|
|
96
|
-
export { generateShades, getPreset, PRESETS as presets };
|
|
97
|
-
export type { FrameworkThemeOverrides, PresetName, ThemePreset };
|
|
121
|
+
export { THEME_PRESETS, ThemePresetEnum, generateShades, getPreset, PRESETS as presets };
|
|
122
|
+
export type { FrameworkThemeOverrides, PresetName, ThemePreset, ThemePresetName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { THEME_PRESETS, ThemePresetEnum, generateShades, getPreset, PRESETS as presets } from '../../chunk-
|
|
1
|
+
export { THEME_PRESETS, ThemePresetEnum, generateShades, getPreset, PRESETS as presets } from '../../chunk-WF7CONXF.js';
|
|
2
2
|
import '../../chunk-WLOQ4IBG.js';
|
|
3
3
|
import '../../chunk-I2KLQ2HA.js';
|