@burdenoff/fe-libs 2026.1021.14 → 2026.1022.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/admin-overview/AdminOverviewActionsContext.d.ts +11 -0
- package/dist/admin-overview/AdminOverviewActionsContext.js +17 -0
- package/dist/admin-overview/AdminOverviewPage.d.ts +4 -0
- package/dist/admin-overview/AdminOverviewPage.js +524 -0
- package/dist/admin-overview/buildHierarchyGraph.d.ts +36 -0
- package/dist/admin-overview/buildHierarchyGraph.js +172 -0
- package/dist/admin-overview/index.d.ts +10 -0
- package/dist/admin-overview/nodes/OrganizationNode.d.ts +9 -0
- package/dist/admin-overview/nodes/OrganizationNode.js +85 -0
- package/dist/admin-overview/nodes/ProjectNode.d.ts +9 -0
- package/dist/admin-overview/nodes/ProjectNode.js +69 -0
- package/dist/admin-overview/nodes/TenantNode.d.ts +9 -0
- package/dist/admin-overview/nodes/TenantNode.js +78 -0
- package/dist/admin-overview/nodes/WorkspaceNode.d.ts +9 -0
- package/dist/admin-overview/nodes/WorkspaceNode.js +136 -0
- package/dist/admin-overview/nodes/nodeStyles.d.ts +7 -0
- package/dist/admin-overview/nodes/nodeStyles.js +10 -0
- package/dist/admin-overview/operations.d.ts +45 -0
- package/dist/admin-overview/operations.js +42 -0
- package/dist/admin-overview.d.ts +2 -0
- package/dist/admin-overview.js +3 -0
- package/dist/chrome/GlobalSearch.js +9 -9
- package/dist/chrome/HeaderThemeSwitcher.js +7 -7
- package/dist/chrome.js +44 -44
- package/dist/platform-pages/AcceptShareRoute.d.ts +33 -0
- package/dist/platform-pages/AcceptShareRoute.js +72 -0
- package/dist/platform-pages/AffiliatesPage.d.ts +16 -0
- package/dist/platform-pages/AffiliatesPage.js +583 -0
- package/dist/platform-pages/AppearanceSettingsPage.d.ts +14 -0
- package/dist/platform-pages/AppearanceSettingsPage.js +14 -0
- package/dist/platform-pages/index.d.ts +20 -0
- package/dist/platform-pages.d.ts +2 -0
- package/dist/platform-pages.js +4 -0
- package/dist/shared/config/shellRoutes.js +7 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +10 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.js +4 -1
- package/dist/shared/feature-flags/index.d.ts +2 -2
- package/dist/shared/feature-flags/useFeatureFlag.d.ts +26 -1
- package/dist/shared/feature-flags/useFeatureFlag.js +25 -12
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +11 -2
- package/dist/shared/hooks/shell/useGlobalSearch.js +54 -23
- package/dist/shared/hooks/usePushDeviceRegistration.js +1 -1
- package/dist/shared/providers/AppShellProvider.js +6 -6
- package/dist/shared-feature-flags.js +4 -4
- package/dist/shared-hooks.js +25 -25
- package/dist/shared-native.js +15 -15
- package/dist/shared-providers-shell.js +12 -12
- package/dist/shared.js +94 -94
- package/dist/shell-native/push-optin.js +4 -4
- package/package.json +16 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlagValue, FlagEvaluation } from './types';
|
|
1
|
+
import { FlagValue, FlagEvaluation, FeatureFlagContextValue } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Check if a single feature flag is enabled.
|
|
4
4
|
*
|
|
@@ -7,6 +7,31 @@ import { FlagValue, FlagEvaluation } from './types';
|
|
|
7
7
|
* @returns Whether the flag is enabled
|
|
8
8
|
*/
|
|
9
9
|
export declare function useFeatureFlag(flagKey: string, defaultValue?: boolean): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Check a single feature flag without requiring a `FeatureFlagProvider`.
|
|
12
|
+
*
|
|
13
|
+
* Same default-allow semantics as `useFeatureFlag`, and it returns
|
|
14
|
+
* `defaultValue` while flags load, when the flag is absent, and when the host
|
|
15
|
+
* mounts no provider at all. Use it in microfrontends and SDK components that
|
|
16
|
+
* several app shells mount (not every shell mounts the provider); shell code
|
|
17
|
+
* keeps `useFeatureFlag`.
|
|
18
|
+
*
|
|
19
|
+
* @param flagKey - The feature flag key to check
|
|
20
|
+
* @param defaultValue - Value when the flag cannot be evaluated (default: true)
|
|
21
|
+
* @returns Whether the flag is enabled
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // A kill switch: on unless an admin turns it off for this workspace.
|
|
26
|
+
* const logStreams = useOptionalFeatureFlag('fluidgrids.log-streams');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function useOptionalFeatureFlag(flagKey: string, defaultValue?: boolean): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Pure resolution behind `useOptionalFeatureFlag` (exported for tests): the
|
|
32
|
+
* default when there is no provider, while loading, or when the flag is absent.
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveFlagEnabled(context: Pick<FeatureFlagContextValue, 'getEvaluation' | 'isLoading'> | null, flagKey: string, defaultValue: boolean): boolean;
|
|
10
35
|
/**
|
|
11
36
|
* Get the resolved value of a single feature flag.
|
|
12
37
|
*
|
|
@@ -1,31 +1,44 @@
|
|
|
1
|
-
import { useFeatureFlags as e } from "./FeatureFlagProvider.js";
|
|
2
|
-
import { useMemo as
|
|
1
|
+
import { useFeatureFlags as e, useOptionalFeatureFlags as t } from "./FeatureFlagProvider.js";
|
|
2
|
+
import { useMemo as n } from "react";
|
|
3
3
|
//#region src/shared/feature-flags/useFeatureFlag.ts
|
|
4
|
-
function
|
|
4
|
+
function r(t, r = !0) {
|
|
5
5
|
let { getEvaluation: i, isLoading: a } = e();
|
|
6
|
-
return
|
|
6
|
+
return n(() => {
|
|
7
7
|
if (a) return r;
|
|
8
|
-
let e = i(
|
|
8
|
+
let e = i(t);
|
|
9
9
|
return e ? !!e.value : r;
|
|
10
10
|
}, [
|
|
11
11
|
i,
|
|
12
12
|
a,
|
|
13
|
-
|
|
13
|
+
t,
|
|
14
14
|
r
|
|
15
15
|
]);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function i(e, r = !0) {
|
|
18
|
+
let i = t();
|
|
19
|
+
return n(() => a(i, e, r), [
|
|
20
|
+
i,
|
|
21
|
+
e,
|
|
22
|
+
r
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
function a(e, t, n) {
|
|
26
|
+
if (!e || e.isLoading) return n;
|
|
27
|
+
let r = e.getEvaluation(t);
|
|
28
|
+
return r ? !!r.value : n;
|
|
29
|
+
}
|
|
30
|
+
function o(t, r) {
|
|
18
31
|
let { getValue: i, isLoading: a } = e();
|
|
19
|
-
return
|
|
32
|
+
return n(() => a ? r : i(t, r), [
|
|
20
33
|
i,
|
|
21
34
|
a,
|
|
22
|
-
|
|
35
|
+
t,
|
|
23
36
|
r
|
|
24
37
|
]);
|
|
25
38
|
}
|
|
26
|
-
function
|
|
39
|
+
function s(t) {
|
|
27
40
|
let { getEvaluation: r } = e();
|
|
28
|
-
return
|
|
41
|
+
return n(() => r(t), [r, t]);
|
|
29
42
|
}
|
|
30
43
|
//#endregion
|
|
31
|
-
export {
|
|
44
|
+
export { r as useFeatureFlag, s as useFeatureFlagDetails, o as useFeatureFlagValue, i as useOptionalFeatureFlag };
|
|
@@ -71,16 +71,25 @@ export interface UseGlobalSearchReturn {
|
|
|
71
71
|
*/
|
|
72
72
|
export declare const CATEGORY_ENTITY_TYPE_MAP: Record<string, string[]>;
|
|
73
73
|
export declare function resolveEntityTypesForCategory(category?: string): string[] | undefined;
|
|
74
|
+
/** Product source of the FluidGrids entities wspace-workflow-svc indexes. */
|
|
75
|
+
export declare const FLUIDGRIDS_SEARCH_PRODUCT_SOURCE = "module-workflow";
|
|
76
|
+
/** Optional result context some product entities need to build their link. */
|
|
77
|
+
export interface SearchHrefContext {
|
|
78
|
+
/** `productSource` of the result: disambiguates entity type names shared across products. */
|
|
79
|
+
productSource?: string | null;
|
|
80
|
+
/** The result's search metadata (whitelisted entity fields). */
|
|
81
|
+
metadata?: Record<string, unknown> | null;
|
|
82
|
+
}
|
|
74
83
|
/**
|
|
75
84
|
* Derive a navigation href from an entity type and ID.
|
|
76
85
|
* Follows the shell's route structure. Exported for unit testing.
|
|
77
86
|
*/
|
|
78
|
-
export declare function buildHref(entityType: string, entityId: string, workspaceId?: string | null): string;
|
|
87
|
+
export declare function buildHref(entityType: string, entityId: string, workspaceId?: string | null, context?: SearchHrefContext): string;
|
|
79
88
|
/**
|
|
80
89
|
* Map backend entity type to a human-readable category label for grouping.
|
|
81
90
|
* Exported for unit testing.
|
|
82
91
|
*/
|
|
83
|
-
export declare function mapEntityTypeToCategory(entityType: string): string;
|
|
92
|
+
export declare function mapEntityTypeToCategory(entityType: string, productSource?: string | null): string;
|
|
84
93
|
/**
|
|
85
94
|
* Global search hook — single entry point for all search operations.
|
|
86
95
|
*
|
|
@@ -52,6 +52,14 @@ var a = "\n query GlobalSearch(\n $query: String!\n $searchMode: GraphSea
|
|
|
52
52
|
actions: ["Action", "action"],
|
|
53
53
|
vibedecks: ["VibeDeck", "vibedeck"],
|
|
54
54
|
security: ["vault", "secret"],
|
|
55
|
+
workflows: [
|
|
56
|
+
"WorkflowDefinition",
|
|
57
|
+
"WorkflowRun",
|
|
58
|
+
"DataTable",
|
|
59
|
+
"ScheduledJob",
|
|
60
|
+
"EventRegistration",
|
|
61
|
+
"Variable"
|
|
62
|
+
],
|
|
55
63
|
providers: [
|
|
56
64
|
"SubProvider",
|
|
57
65
|
"subProvider",
|
|
@@ -146,7 +154,26 @@ var a = "\n query GlobalSearch(\n $query: String!\n $searchMode: GraphSea
|
|
|
146
154
|
function s(e) {
|
|
147
155
|
if (e) return o[e];
|
|
148
156
|
}
|
|
149
|
-
|
|
157
|
+
var c = new Set([
|
|
158
|
+
"datatable",
|
|
159
|
+
"scheduledjob",
|
|
160
|
+
"eventregistration",
|
|
161
|
+
"variable"
|
|
162
|
+
]);
|
|
163
|
+
function l(e, t) {
|
|
164
|
+
if (t?.productSource !== "module-workflow") return;
|
|
165
|
+
let n = t.metadata?.workflowId;
|
|
166
|
+
switch (e) {
|
|
167
|
+
case "datatable": return "/workflows/data-tables";
|
|
168
|
+
case "variable": return "/workflows/variables";
|
|
169
|
+
case "scheduledjob":
|
|
170
|
+
case "eventregistration": return typeof n == "string" && n ? `/workflows/resolve/${encodeURIComponent(n)}` : "/workflows/list";
|
|
171
|
+
default: return;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function u(e, t, n, r) {
|
|
175
|
+
let i = l(e.toLowerCase(), r);
|
|
176
|
+
if (i) return i;
|
|
150
177
|
switch (e.toLowerCase()) {
|
|
151
178
|
case "agent": return `/vibecontrols/agents/${t}`;
|
|
152
179
|
case "vibe": return `/vibecontrols/vibes/${t}`;
|
|
@@ -214,7 +241,8 @@ function c(e, t, n) {
|
|
|
214
241
|
default: return `/entities/${e}/${t}`;
|
|
215
242
|
}
|
|
216
243
|
}
|
|
217
|
-
function
|
|
244
|
+
function d(e, t) {
|
|
245
|
+
if (t === "module-workflow" && c.has(e.toLowerCase())) return "workflows";
|
|
218
246
|
switch (e.toLowerCase()) {
|
|
219
247
|
case "workspace": return "workspaces";
|
|
220
248
|
case "project": return "projects";
|
|
@@ -274,9 +302,9 @@ function l(e) {
|
|
|
274
302
|
default: return e;
|
|
275
303
|
}
|
|
276
304
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
let [o,
|
|
305
|
+
var f = 20;
|
|
306
|
+
function p() {
|
|
307
|
+
let [o, c] = i(!1), l = r(null), { workspaceId: p } = t(), m = n(async (t, n, r) => {
|
|
280
308
|
let i = t.trim();
|
|
281
309
|
if (!i) return {
|
|
282
310
|
results: [],
|
|
@@ -289,11 +317,11 @@ function d() {
|
|
|
289
317
|
hasMore: !1,
|
|
290
318
|
error: "NO_WORKSPACE_CONTEXT"
|
|
291
319
|
};
|
|
292
|
-
|
|
320
|
+
l.current && l.current.abort();
|
|
293
321
|
let o = new AbortController();
|
|
294
|
-
|
|
322
|
+
l.current = o, c(!0);
|
|
295
323
|
try {
|
|
296
|
-
let t = n ? s(n) : r?.entityTypes,
|
|
324
|
+
let t = n ? s(n) : r?.entityTypes, c = await e({
|
|
297
325
|
gateway: "workspace",
|
|
298
326
|
query: a,
|
|
299
327
|
variables: {
|
|
@@ -312,27 +340,30 @@ function d() {
|
|
|
312
340
|
tagFilter: r?.tagFilter ?? void 0,
|
|
313
341
|
excludeIds: r?.excludeIds ?? void 0,
|
|
314
342
|
sortBy: r?.sortBy ?? void 0,
|
|
315
|
-
limit: r?.limit ??
|
|
343
|
+
limit: r?.limit ?? f,
|
|
316
344
|
offset: r?.offset ?? 0
|
|
317
345
|
},
|
|
318
346
|
workspaceToken: !0,
|
|
319
347
|
workspaceId: p,
|
|
320
348
|
signal: o.signal
|
|
321
349
|
});
|
|
322
|
-
if (
|
|
350
|
+
if (c.errors?.length) return console.warn("[useGlobalSearch] GraphQL errors:", JSON.stringify(c.errors)), {
|
|
323
351
|
results: [],
|
|
324
352
|
total: 0,
|
|
325
353
|
hasMore: !1,
|
|
326
|
-
error:
|
|
354
|
+
error: c.errors.map((e) => e.message).join("; ")
|
|
327
355
|
};
|
|
328
|
-
let
|
|
356
|
+
let l = c.data?.globalSearch, m = (l?.results ?? []).map((e) => ({
|
|
329
357
|
id: e.entityId,
|
|
330
358
|
title: e.title,
|
|
331
359
|
description: e.description ?? void 0,
|
|
332
|
-
category:
|
|
360
|
+
category: d(e.entityType, e.productSource),
|
|
333
361
|
entityType: e.entityType,
|
|
334
362
|
productSource: e.productSource,
|
|
335
|
-
href:
|
|
363
|
+
href: u(e.entityType, e.entityId, e.workspaceId, {
|
|
364
|
+
productSource: e.productSource,
|
|
365
|
+
metadata: e.metadata
|
|
366
|
+
}),
|
|
336
367
|
score: e.score,
|
|
337
368
|
workspaceId: e.workspaceId ?? void 0,
|
|
338
369
|
createdBy: e.createdBy ?? void 0,
|
|
@@ -343,17 +374,17 @@ function d() {
|
|
|
343
374
|
author: e.metadata.author ?? void 0,
|
|
344
375
|
tags: e.metadata.tags ?? void 0
|
|
345
376
|
} : void 0
|
|
346
|
-
})), h =
|
|
347
|
-
byType:
|
|
348
|
-
byProduct:
|
|
349
|
-
byWorkspace:
|
|
377
|
+
})), h = l?.facets ? {
|
|
378
|
+
byType: l.facets.byType ?? [],
|
|
379
|
+
byProduct: l.facets.byProduct ?? [],
|
|
380
|
+
byWorkspace: l.facets.byWorkspace ?? []
|
|
350
381
|
} : void 0;
|
|
351
382
|
return {
|
|
352
383
|
results: m,
|
|
353
|
-
total:
|
|
354
|
-
hasMore:
|
|
384
|
+
total: l?.total ?? m.length,
|
|
385
|
+
hasMore: l?.hasMore ?? !1,
|
|
355
386
|
facets: h,
|
|
356
|
-
searchTimeMs:
|
|
387
|
+
searchTimeMs: l?.searchTimeMs ?? void 0
|
|
357
388
|
};
|
|
358
389
|
} catch (e) {
|
|
359
390
|
return e instanceof DOMException && e.name === "AbortError" || console.warn("[useGlobalSearch] Search failed:", e), {
|
|
@@ -362,7 +393,7 @@ function d() {
|
|
|
362
393
|
hasMore: !1
|
|
363
394
|
};
|
|
364
395
|
} finally {
|
|
365
|
-
|
|
396
|
+
l.current === o && c(!1);
|
|
366
397
|
}
|
|
367
398
|
}, [p]);
|
|
368
399
|
return {
|
|
@@ -372,4 +403,4 @@ function d() {
|
|
|
372
403
|
};
|
|
373
404
|
}
|
|
374
405
|
//#endregion
|
|
375
|
-
export {
|
|
406
|
+
export { p as useGlobalSearch };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useAppShell as e } from "../providers/shell/AppShellContext.js";
|
|
2
2
|
import { useAuth as t } from "../providers/shell/AuthProvider.js";
|
|
3
3
|
import { logManager as n } from "../logger/LogManager.js";
|
|
4
|
-
import "../../shared-logger.js";
|
|
5
4
|
import { installPushDeviceRegistration as r, unregisterPushDevice as i } from "../native/push-registration.js";
|
|
5
|
+
import "../../shared-logger.js";
|
|
6
6
|
import { useEffect as a, useRef as o } from "react";
|
|
7
7
|
//#region src/shared/hooks/usePushDeviceRegistration.ts
|
|
8
8
|
var s = n.getLogger("usePushDeviceRegistration");
|
|
@@ -10,15 +10,15 @@ import { ActiveContextProvider as m } from "./shell/ActiveContextProvider.js";
|
|
|
10
10
|
import { LogManager as h } from "../logger/LogManager.js";
|
|
11
11
|
import { ConsoleTransport as ne } from "../logger/ConsoleTransport.js";
|
|
12
12
|
import { ThemeProvider as g } from "./shell/ThemeProvider.js";
|
|
13
|
-
import {
|
|
13
|
+
import { AuthTokenProvider as re } from "./shell/AuthTokenProvider.js";
|
|
14
|
+
import { ErrorFallback as ie } from "../components/ErrorFallback.js";
|
|
14
15
|
import { m as _ } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
15
16
|
import { PWAInstallBanner as v } from "../components/PWAInstallBanner.js";
|
|
16
17
|
import { FeatureFlagsProvider as y } from "./shell/FeatureFlagsProvider.js";
|
|
17
18
|
import { FeatureFlagProvider as b } from "../feature-flags/FeatureFlagProvider.js";
|
|
18
19
|
import { GlobalUiProvider as x } from "./shell/GlobalUiProvider.js";
|
|
19
20
|
import { ShellUiProvider as S } from "./shell/ShellUiProvider.js";
|
|
20
|
-
import { ContextManagerProvider as
|
|
21
|
-
import { AuthTokenProvider as ae } from "./shell/AuthTokenProvider.js";
|
|
21
|
+
import { ContextManagerProvider as ae } from "./shell/ContextManagerProvider.js";
|
|
22
22
|
import { MultiGatewayProvider as oe } from "./shell/MultiGatewayProvider.js";
|
|
23
23
|
import { G as C, Q as se, j as ce, w as le } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
24
24
|
import { ProfileI18nBridge as ue } from "./shell/ProfileI18nBridge.js";
|
|
@@ -777,7 +777,7 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
777
777
|
appEnv: B.appEnv,
|
|
778
778
|
sourceMfe: s,
|
|
779
779
|
children: /* @__PURE__ */ q(_, {
|
|
780
|
-
FallbackComponent:
|
|
780
|
+
FallbackComponent: ie,
|
|
781
781
|
children: /* @__PURE__ */ J(ge, { children: [/* @__PURE__ */ q(ze, {
|
|
782
782
|
config: B,
|
|
783
783
|
productSlug: s,
|
|
@@ -786,7 +786,7 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
786
786
|
rybbitSkipRoutes: F
|
|
787
787
|
}), /* @__PURE__ */ q(be, {
|
|
788
788
|
client: Te,
|
|
789
|
-
children: /* @__PURE__ */ q(
|
|
789
|
+
children: /* @__PURE__ */ q(re, { children: /* @__PURE__ */ q(oe, {
|
|
790
790
|
workspaceBaseUrl: S.workspaceBaseUrl,
|
|
791
791
|
globalBaseUrl: S.globalBaseUrl,
|
|
792
792
|
organizationId: we,
|
|
@@ -812,7 +812,7 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
812
812
|
},
|
|
813
813
|
children: /* @__PURE__ */ q(m, {
|
|
814
814
|
syncToUrl: !0,
|
|
815
|
-
children: /* @__PURE__ */ q(
|
|
815
|
+
children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(Fe, {
|
|
816
816
|
i18nProductId: y,
|
|
817
817
|
platformI18nProductId: b,
|
|
818
818
|
directionMode: z,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeatureFlagProvider as e, useFeatureFlags as t } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
2
|
-
import { useFeatureFlag as
|
|
3
|
-
import { FeatureGate as
|
|
4
|
-
export { e as FeatureFlagProvider,
|
|
1
|
+
import { FeatureFlagProvider as e, useFeatureFlags as t, useOptionalFeatureFlags as n } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
2
|
+
import { useFeatureFlag as r, useFeatureFlagDetails as i, useFeatureFlagValue as a, useOptionalFeatureFlag as o } from "./shared/feature-flags/useFeatureFlag.js";
|
|
3
|
+
import { FeatureGate as s } from "./shared/feature-flags/FeatureGate.js";
|
|
4
|
+
export { e as FeatureFlagProvider, s as FeatureGate, r as useFeatureFlag, i as useFeatureFlagDetails, a as useFeatureFlagValue, t as useFeatureFlags, o as useOptionalFeatureFlag, n as useOptionalFeatureFlags };
|
package/dist/shared-hooks.js
CHANGED
|
@@ -5,32 +5,32 @@ import { Logger as ee } from "./shared/logger/Logger.js";
|
|
|
5
5
|
import { LogManager as r, logManager as i } from "./shared/logger/LogManager.js";
|
|
6
6
|
import { ConsoleTransport as a } from "./shared/logger/ConsoleTransport.js";
|
|
7
7
|
import { useReturnFocus as o } from "./shared/hooks/useReturnFocus.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
8
|
+
import { PUSH_DEVICE_ID_STORAGE_KEY as s, getOrCreatePushDeviceId as c, registerPushDevice as l, unregisterPushDevice as u } from "./shared/native/push-registration.js";
|
|
9
|
+
import { usePWA as d } from "./shared/hooks/usePWA.js";
|
|
10
|
+
import { detectPlatform as f, formatKeyCombo as p, getDisplayKeysForPlatform as m, getShortcutLabel as h, isMac as g, isMobileDevice as _, isTabletDevice as v, matchesKeyCombo as y, normalizeKey as b, normalizePlatformCombo as x, parseKeyCombo as S, shouldEnableKeyboardShortcuts as C, shouldIgnoreShortcut as w } from "./shared/keyboard/utils.js";
|
|
11
|
+
import { useDebounce as T } from "./shared/hooks/useDebounce.js";
|
|
12
|
+
import { useThrottle as E } from "./shared/hooks/useThrottle.js";
|
|
13
|
+
import { BREAKPOINTS as D, useBreakpoint as O, useMobileBreakpoint as k } from "./shared/hooks/useBreakpoint.js";
|
|
14
|
+
import { useOnClickOutside as A, useOnClickOutsideWithRef as j } from "./shared/hooks/useOnClickOutside.js";
|
|
15
|
+
import { useKeyPress as M, useKeyboardShortcut as N } from "./shared/hooks/useKeyPress.js";
|
|
16
|
+
import { useExclusiveMenu as P } from "./shared/hooks/useExclusiveMenu.js";
|
|
17
|
+
import { useLocalStorage as F } from "./shared/hooks/useLocalStorage.js";
|
|
18
|
+
import { useSessionStorage as I } from "./shared/hooks/useSessionStorage.js";
|
|
19
|
+
import { usePrevious as L, usePreviousDistinct as R, usePreviousHistory as z } from "./shared/hooks/usePrevious.js";
|
|
20
|
+
import { useConditionalToggle as B, useToggle as V, useToggleObject as te } from "./shared/hooks/useToggle.js";
|
|
21
|
+
import { usePagination as H } from "./shared/hooks/usePagination.js";
|
|
22
|
+
import { useAsync as U, useAsyncImmediate as W } from "./shared/hooks/useAsync.js";
|
|
23
|
+
import { MODIFIER_KEYS as G, PLATFORM_TYPES as K } from "./shared/keyboard/types.js";
|
|
24
|
+
import { useKeyboardShortcuts as q } from "./shared/keyboard/useKeyboardShortcuts.js";
|
|
25
|
+
import { useHotkeys as J } from "./shared/keyboard/useHotkeys.js";
|
|
26
|
+
import { useShortcutHelp as Y } from "./shared/keyboard/useShortcutHelp.js";
|
|
27
|
+
import { GLOBAL_SHORTCUT_CATEGORIES as X, createGlobalShortcuts as Z, getGlobalShortcutsByCategory as Q, mergeShortcuts as ne } from "./shared/keyboard/globalShortcuts.js";
|
|
27
28
|
import "./shared-keyboard.js";
|
|
28
|
-
import { useLogger as
|
|
29
|
+
import { useLogger as re } from "./shared/logger/useLogger.js";
|
|
29
30
|
import "./shared-logger.js";
|
|
30
|
-
import { useHasAnimated as
|
|
31
|
-
import { useReferralAttribution as
|
|
32
|
-
import { useRecordProductVisit as
|
|
33
|
-
import { PUSH_DEVICE_ID_STORAGE_KEY as re, getOrCreatePushDeviceId as ie, registerPushDevice as ae, unregisterPushDevice as oe } from "./shared/native/push-registration.js";
|
|
31
|
+
import { useHasAnimated as ie } from "./shared/hooks/useHasAnimated.js";
|
|
32
|
+
import { useReferralAttribution as ae } from "./shared/hooks/useReferralAttribution.js";
|
|
33
|
+
import { useRecordProductVisit as oe } from "./shared/hooks/useRecordProductVisit.js";
|
|
34
34
|
import { usePushDeviceRegistration as se } from "./shared/hooks/usePushDeviceRegistration.js";
|
|
35
35
|
import { QUOTA_EXHAUSTED_EVENT as ce, dispatchQuotaExhausted as le, useQuotaErrorToast as ue } from "./shared/hooks/useQuotaErrorToast.js";
|
|
36
36
|
import { PLAN_USAGE_SNAPSHOT_EVENT as de, publishPlanUsageSnapshot as fe, useUpgradePrompt as pe } from "./shared/hooks/useUpgradePrompt.js";
|
|
@@ -45,4 +45,4 @@ function Ce() {
|
|
|
45
45
|
return e;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
export {
|
|
48
|
+
export { D as BREAKPOINTS, a as ConsoleTransport, X as GLOBAL_SHORTCUT_CATEGORIES, n as LogLevel, r as LogManager, ee as Logger, G as MODIFIER_KEYS, $ as MicrofrontendContext, de as PLAN_USAGE_SNAPSHOT_EVENT, K as PLATFORM_TYPES, s as PUSH_DEVICE_ID_STORAGE_KEY, ce as QUOTA_EXHAUSTED_EVENT, ge as UNSAVED_CHANGE_LABEL_MAX, me as appendContextToPath, Z as createGlobalShortcuts, f as detectPlatform, le as dispatchQuotaExhausted, p as formatKeyCombo, m as getDisplayKeysForPlatform, Q as getGlobalShortcutsByCategory, c as getOrCreatePushDeviceId, h as getShortcutLabel, g as isMac, _ as isMobileDevice, v as isTabletDevice, _e as listUnsavedChanges, i as logManager, y as matchesKeyCombo, ne as mergeShortcuts, b as normalizeKey, x as normalizePlatformCombo, S as parseKeyCombo, fe as publishPlanUsageSnapshot, l as registerPushDevice, ve as registerUnsavedChange, C as shouldEnableKeyboardShortcuts, w as shouldIgnoreShortcut, u as unregisterPushDevice, ye as unsavedChangesBlocking, U as useAsync, W as useAsyncImmediate, O as useBreakpoint, B as useConditionalToggle, e as useCopyToClipboard, he as useCurrentContextSearchParams, T as useDebounce, P as useExclusiveMenu, ie as useHasAnimated, J as useHotkeys, M as useKeyPress, N as useKeyboardShortcut, q as useKeyboardShortcuts, F as useLocalStorage, re as useLogger, t as useMediaQuery, Ce as useMicrofrontendContext, k as useMobileBreakpoint, A as useOnClickOutside, j as useOnClickOutsideWithRef, d as usePWA, H as usePagination, L as usePrevious, R as usePreviousDistinct, z as usePreviousHistory, se as usePushDeviceRegistration, ue as useQuotaErrorToast, oe as useRecordProductVisit, ae as useReferralAttribution, o as useReturnFocus, I as useSessionStorage, Y as useShortcutHelp, E as useThrottle, V as useToggle, te as useToggleObject, be as useUnsavedChanges, pe as useUpgradePrompt };
|
package/dist/shared-native.js
CHANGED
|
@@ -6,19 +6,19 @@ import { nativeActionSheet as R, nativeConfirm as z, nativeCopyText as B, native
|
|
|
6
6
|
import { SafeAreaView as q } from "./shared/native/SafeAreaView.js";
|
|
7
7
|
import { readInitialNetworkStatus as J, reduceNetworkStatus as Y, useNetworkStatus as X } from "./shared/native/hooks/useNetworkStatus.js";
|
|
8
8
|
import { PULL_TO_REFRESH_THRESHOLD as Z, computePullOffset as Q, computePullProgress as $, usePullToRefresh as ee } from "./shared/native/hooks/usePullToRefresh.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
9
|
+
import { getPushOptInController as te, recordPushPermissionPromptDismissed as ne, registerPushOptInController as re, shouldPromptForPushPermission as ie } from "./shared/native/push-optin.js";
|
|
10
|
+
import { getNativeEntryRoutes as ae, shouldShowNativeWelcome as oe } from "./shared/native/entry.js";
|
|
11
|
+
import { useNativePlatform as se } from "./shared/native/hooks/useNativePlatform.js";
|
|
12
|
+
import { useSafeArea as ce } from "./shared/native/hooks/useSafeArea.js";
|
|
13
|
+
import { useNativeKeyboard as le } from "./shared/native/hooks/useNativeKeyboard.js";
|
|
14
|
+
import { useAppState as ue } from "./shared/native/hooks/useAppState.js";
|
|
15
|
+
import { useDeviceInfo as de } from "./shared/native/hooks/useDeviceInfo.js";
|
|
16
|
+
import { useHaptics as fe } from "./shared/native/hooks/useHaptics.js";
|
|
17
|
+
import { useStatusBar as pe } from "./shared/native/hooks/useStatusBar.js";
|
|
18
|
+
import { resolveActionSheetOutcome as me, useActionSheet as he } from "./shared/native/hooks/useActionSheet.js";
|
|
19
|
+
import { useDesktop as ge } from "./shared/native/hooks/useDesktop.js";
|
|
20
|
+
import { useDesktopUpdateState as _e } from "./shared/native/hooks/useDesktopUpdateState.js";
|
|
21
|
+
import { useDesktopWindowState as ve } from "./shared/native/hooks/useDesktopWindowState.js";
|
|
21
22
|
import "./shared/native/hooks/index.js";
|
|
22
|
-
import { acknowledgeNativePurchase as
|
|
23
|
-
|
|
24
|
-
export { n as DESKTOP_UPDATE_UNSUPPORTED, r as DESKTOP_WINDOW_STATE_DEFAULT, Z as PULL_TO_REFRESH_THRESHOLD, q as SafeAreaView, he as acknowledgeNativePurchase, i as bootDesktopShell, Q as computePullOffset, $ as computePullProgress, a as desktopCheckForUpdates, o as desktopDeepLinkToPath, s as desktopInstallUpdate, c as desktopNotify, l as desktopOpenExternal, u as desktopSetBadgeCount, d as desktopSetLocale, f as desktopSetTheme, p as desktopSetTrayQuickActions, e as getCapacitorPlatform, m as getDesktopAuthBridgeConfig, h as getDesktopBridge, g as getDesktopGatewayBases, _ as getDesktopGatewayUrls, v as getDesktopRuntimeConfig, y as getDesktopUpdateState, b as getDesktopWindowState, x as getLegacyDesktopRuntime, O as getNativeBridge, te as getNativeEntryRoutes, ge as getNativeProducts, _e as getNativePurchases, k as getPlatform, Se as getPushOptInController, S as installDesktopDeepLinkHandler, C as installDesktopNavigateHandler, ve as installNativeIAP, A as isAndroid, t as isCapacitorNative, w as isDesktop, j as isElectron, M as isIOS, N as isInstalledApp, P as isNative, ye as isNativeIAPAvailable, F as isStandalonePWA, I as isWeb, L as isWebBrowser, R as nativeActionSheet, z as nativeConfirm, B as nativeCopyText, V as nativeImpact, H as nativeNotify, U as nativeOpenUrl, W as nativeSelection, G as nativeShare, K as nativeToast, T as onDesktopUpdateState, E as onDesktopWindowState, be as purchaseNativeProduct, J as readInitialNetworkStatus, Ce as recordPushPermissionPromptDismissed, Y as reduceNetworkStatus, D as registerDesktopNavigator, we as registerPushOptInController, ue as resolveActionSheetOutcome, xe as restoreNativePurchases, Te as shouldPromptForPushPermission, ne as shouldShowNativeWelcome, de as useActionSheet, oe as useAppState, fe as useDesktop, pe as useDesktopUpdateState, me as useDesktopWindowState, se as useDeviceInfo, ce as useHaptics, ae as useNativeKeyboard, re as useNativePlatform, X as useNetworkStatus, ee as usePullToRefresh, ie as useSafeArea, le as useStatusBar };
|
|
23
|
+
import { acknowledgeNativePurchase as ye, getNativeProducts as be, getNativePurchases as xe, installNativeIAP as Se, isNativeIAPAvailable as Ce, purchaseNativeProduct as we, restoreNativePurchases as Te } from "./shared/native/purchases.js";
|
|
24
|
+
export { n as DESKTOP_UPDATE_UNSUPPORTED, r as DESKTOP_WINDOW_STATE_DEFAULT, Z as PULL_TO_REFRESH_THRESHOLD, q as SafeAreaView, ye as acknowledgeNativePurchase, i as bootDesktopShell, Q as computePullOffset, $ as computePullProgress, a as desktopCheckForUpdates, o as desktopDeepLinkToPath, s as desktopInstallUpdate, c as desktopNotify, l as desktopOpenExternal, u as desktopSetBadgeCount, d as desktopSetLocale, f as desktopSetTheme, p as desktopSetTrayQuickActions, e as getCapacitorPlatform, m as getDesktopAuthBridgeConfig, h as getDesktopBridge, g as getDesktopGatewayBases, _ as getDesktopGatewayUrls, v as getDesktopRuntimeConfig, y as getDesktopUpdateState, b as getDesktopWindowState, x as getLegacyDesktopRuntime, O as getNativeBridge, ae as getNativeEntryRoutes, be as getNativeProducts, xe as getNativePurchases, k as getPlatform, te as getPushOptInController, S as installDesktopDeepLinkHandler, C as installDesktopNavigateHandler, Se as installNativeIAP, A as isAndroid, t as isCapacitorNative, w as isDesktop, j as isElectron, M as isIOS, N as isInstalledApp, P as isNative, Ce as isNativeIAPAvailable, F as isStandalonePWA, I as isWeb, L as isWebBrowser, R as nativeActionSheet, z as nativeConfirm, B as nativeCopyText, V as nativeImpact, H as nativeNotify, U as nativeOpenUrl, W as nativeSelection, G as nativeShare, K as nativeToast, T as onDesktopUpdateState, E as onDesktopWindowState, we as purchaseNativeProduct, J as readInitialNetworkStatus, ne as recordPushPermissionPromptDismissed, Y as reduceNetworkStatus, D as registerDesktopNavigator, re as registerPushOptInController, me as resolveActionSheetOutcome, Te as restoreNativePurchases, ie as shouldPromptForPushPermission, oe as shouldShowNativeWelcome, he as useActionSheet, ue as useAppState, ge as useDesktop, _e as useDesktopUpdateState, ve as useDesktopWindowState, de as useDeviceInfo, fe as useHaptics, le as useNativeKeyboard, se as useNativePlatform, X as useNetworkStatus, ee as usePullToRefresh, ce as useSafeArea, pe as useStatusBar };
|
|
@@ -7,22 +7,22 @@ import { useShellLabel as D } from "./shared/providers/shell/useShellLabel.js";
|
|
|
7
7
|
import { AuthProvider as O, useAuth as k } from "./shared/providers/shell/AuthProvider.js";
|
|
8
8
|
import { ActiveContextProvider as A, useActiveContext as j } from "./shared/providers/shell/ActiveContextProvider.js";
|
|
9
9
|
import { ThemeProvider as M, useTheme as N } from "./shared/providers/shell/ThemeProvider.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { AuthTokenProvider as P, useAuthToken as F } from "./shared/providers/shell/AuthTokenProvider.js";
|
|
11
|
+
import { PermissionProvider as I, SUPER_ADMIN_ACTOR_TYPE as L, SUPER_ADMIN_ROLE as R, hasMatchingPermission as z, isSuperAdminBypass as B, matchPermission as V, usePermission as H, usePermissionLoading as U, usePermissions as W, useRole as G, useSafePermissions as K } from "./shared/providers/shell/PermissionProvider.js";
|
|
12
|
+
import { FeatureFlagsProvider as q, useFeatureFlags as J } from "./shared/providers/shell/FeatureFlagsProvider.js";
|
|
13
|
+
import { FeatureFlagProvider as Y } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
14
|
+
import { useFeatureFlag as X, useFeatureFlagDetails as Z, useFeatureFlagValue as Q } from "./shared/feature-flags/useFeatureFlag.js";
|
|
15
|
+
import { FeatureGate as $ } from "./shared/feature-flags/FeatureGate.js";
|
|
15
16
|
import "./shared-feature-flags.js";
|
|
16
|
-
import { GlobalUiProvider as
|
|
17
|
-
import { ShellUiProvider as
|
|
18
|
-
import { ContextManagerProvider as
|
|
19
|
-
import { GeographyProvider as
|
|
20
|
-
import { EVERYTHING_SURFACE_ID as
|
|
21
|
-
import { AuthTokenProvider as fe, useAuthToken as pe } from "./shared/providers/shell/AuthTokenProvider.js";
|
|
17
|
+
import { GlobalUiProvider as ee, useGlobalUi as te } from "./shared/providers/shell/GlobalUiProvider.js";
|
|
18
|
+
import { ShellUiProvider as ne, useShellUi as re } from "./shared/providers/shell/ShellUiProvider.js";
|
|
19
|
+
import { ContextManagerProvider as ie, useContextManager as ae } from "./shared/providers/shell/ContextManagerProvider.js";
|
|
20
|
+
import { GeographyProvider as oe, useGeography as se } from "./shared/geography/GeographyProvider.js";
|
|
21
|
+
import { EVERYTHING_SURFACE_ID as ce, PersonaSurfaceProvider as le, resolveSurfaceForRoles as ue, synthesizeSimulatedPermissionStrings as de, usePersonaSurface as fe, useSafePersonaSurface as pe } from "./shared/providers/shell/PersonaSurfaceProvider.js";
|
|
22
22
|
import { MultiGatewayProvider as me } from "./shared/providers/shell/MultiGatewayProvider.js";
|
|
23
23
|
import { ObservabilityProvider as he } from "./shared/providers/shell/ObservabilityProvider.js";
|
|
24
24
|
import { GatewayRoute as ge, getMicrofrontendGateway as _e, withGateway as ve } from "./shared/providers/shell/GatewayRouter.js";
|
|
25
25
|
import { ProfileI18nBridge as ye } from "./shared/providers/shell/ProfileI18nBridge.js";
|
|
26
26
|
import { ProfileGeographyBridge as be } from "./shared/providers/shell/ProfileGeographyBridge.js";
|
|
27
27
|
import { PageConversationContextProvider as xe, usePageConversationContext as Se, useRegisterPageConversationContext as Ce } from "./shared/providers/shell/PageConversationContextProvider.js";
|
|
28
|
-
export { A as ActiveContextProvider, v as AppShellContextProvider, p as AuthBridgeClient, O as AuthProvider,
|
|
28
|
+
export { A as ActiveContextProvider, v as AppShellContextProvider, p as AuthBridgeClient, O as AuthProvider, P as AuthTokenProvider, ie as ContextManagerProvider, ce as EVERYTHING_SURFACE_ID, Y as FeatureFlagProvider, q as FeatureFlagsProvider, $ as FeatureGate, ge as GatewayRoute, oe as GeographyProvider, ee as GlobalUiProvider, b as I18nProvider, x as LOCALE_DIRECTION, me as MultiGatewayProvider, he as ObservabilityProvider, xe as PageConversationContextProvider, I as PermissionProvider, le as PersonaSurfaceProvider, be as ProfileGeographyBridge, ye as ProfileI18nBridge, e as ProfileStorage, L as SUPER_ADMIN_ACTOR_TYPE, R as SUPER_ADMIN_ROLE, ne as ShellUiProvider, M as ThemeProvider, t as clearActiveProfileId, S as clearTranslationCache, u as clearWorkspaceWideSelection, m as destroyAuthBridge, n as getActiveContext, r as getActiveTokens, i as getActiveUser, h as getAuthBridge, _e as getMicrofrontendGateway, a as getProfileLocale, z as hasMatchingPermission, g as initAuthBridge, _ as isAuthBridgeInitialized, B as isSuperAdminBypass, C as isTranslationAttempted, d as isWorkspaceWideSelection, w as localeDirection, o as logoutActiveProfile, V as matchPermission, s as removeAllProfiles, ue as resolveSurfaceForRoles, f as selectWorkspaceWide, c as setProfileLocale, l as setProfiles, de as synthesizeSimulatedPermissionStrings, j as useActiveContext, y as useAppShell, k as useAuth, F as useAuthToken, ae as useContextManager, X as useFeatureFlag, Z as useFeatureFlagDetails, Q as useFeatureFlagValue, J as useFeatureFlags, se as useGeography, te as useGlobalUi, T as useI18n, E as useOptionalI18n, Se as usePageConversationContext, H as usePermission, U as usePermissionLoading, W as usePermissions, fe as usePersonaSurface, Ce as useRegisterPageConversationContext, G as useRole, K as useSafePermissions, pe as useSafePersonaSurface, D as useShellLabel, re as useShellUi, N as useTheme, ve as withGateway };
|