@burdenoff/fe-libs 2026.1005.2 → 2026.1005.4
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/chrome/ContextSwitcher.d.ts +2 -0
- package/dist/chrome/ContextSwitcher.d.ts.map +1 -1
- package/dist/chrome/ContextSwitcher.js +70 -67
- package/dist/chrome/contextSwitcher/ProjectList.d.ts +1 -0
- package/dist/chrome/contextSwitcher/ProjectList.d.ts.map +1 -1
- package/dist/chrome/contextSwitcher/ProjectList.js +18 -5
- package/dist/node_modules/fflate/esm/browser.js +3 -3
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +51 -51
- package/dist/node_modules/pdfjs-dist/build/pdf.js +2268 -1656
- package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +8719 -7535
- package/dist/shared/assistant/attachments.js +1 -0
- package/dist/shared/assistant/images.js +1 -1
- package/dist/shared/assistant/runtime.js +1 -0
- package/dist/shared/assistant/speech/createSpeechEngine.js +1 -1
- package/dist/shared/assistant/uiActions/deixis.js +1 -1
- package/dist/shared/assistant/voice/handsfree/micCapture.js +1 -0
- package/dist/shared/assistant/voice/voiceTranscript.js +14 -14
- package/dist/shared/components/SSORedirectGuard.d.ts +15 -0
- package/dist/shared/components/SSORedirectGuard.d.ts.map +1 -1
- package/dist/shared/components/SSORedirectGuard.js +39 -42
- package/dist/shared/config/gatewayUrls.js +2 -2
- package/dist/shared/graphql/workspaceToken.d.ts +1 -0
- package/dist/shared/graphql/workspaceToken.d.ts.map +1 -1
- package/dist/shared/graphql/workspaceToken.js +18 -14
- package/dist/shared/native/platform.d.ts +6 -0
- package/dist/shared/native/platform.d.ts.map +1 -1
- package/dist/shared/native/platform.js +22 -15
- package/dist/shared/plugins/iframe-mount/client/message-bus.js +1 -0
- package/dist/shared/plugins/iframe-mount/client/rpc.js +1 -0
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextProvider.js +165 -144
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthTokenProvider.js +51 -46
- package/dist/shared/providers/shell/WorkspaceWideSelection.d.ts +10 -0
- package/dist/shared/providers/shell/WorkspaceWideSelection.d.ts.map +1 -0
- package/dist/shared/providers/shell/WorkspaceWideSelection.js +37 -0
- package/dist/shared/providers/shell/authProvider/ssoRelay.d.ts +3 -3
- package/dist/shared/providers/shell/authProvider/ssoRelay.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/ssoRelay.js +14 -13
- package/dist/shared/providers/shell/authProvider/useBridgeInitialization.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useBridgeInitialization.js +38 -37
- package/dist/shared/providers/shell/authProvider/useSsoDepositBootGuard.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useSsoDepositBootGuard.js +23 -26
- package/dist/shared/providers/shell/index.d.ts +2 -0
- package/dist/shared/providers/shell/index.d.ts.map +1 -1
- package/dist/shared/tours/TourTooltip.js +8 -8
- package/dist/shared/utils/format.js +1 -1
- package/dist/shared/utils/gatewayFetchRewrite.js +1 -1
- package/dist/shared-providers-shell.js +25 -24
- package/dist/shell-native/capacitor-config.d.ts +2 -0
- package/dist/shell-native/capacitor-config.d.ts.map +1 -1
- package/dist/shell-native/capacitor-config.js +38 -32
- package/dist/shell-native/index.d.ts +1 -1
- package/dist/shell-native/index.d.ts.map +1 -1
- package/dist/shell-native.js +4 -4
- package/package.json +18 -9
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { resolveActiveProfileId as e } from "./ProfileStorageManager.js";
|
|
2
|
+
//#region src/shared/providers/shell/WorkspaceWideSelection.ts
|
|
3
|
+
var t = "bf-workspace-wide-selection-";
|
|
4
|
+
function n(n) {
|
|
5
|
+
if (typeof window > "u" || !n.organizationId || !n.workspaceId) return !1;
|
|
6
|
+
try {
|
|
7
|
+
let r = e();
|
|
8
|
+
if (!r) return !1;
|
|
9
|
+
let i = localStorage.getItem(t + r);
|
|
10
|
+
if (!i) return !1;
|
|
11
|
+
let a = JSON.parse(i);
|
|
12
|
+
return typeof a == "object" && !!a && !Array.isArray(a) && "organizationId" in a && a.organizationId === n.organizationId && "workspaceId" in a && a.workspaceId === n.workspaceId && "mode" in a && a.mode === "WORKSPACE_WIDE" && Object.keys(a).sort().join(",") === "mode,organizationId,workspaceId";
|
|
13
|
+
} catch {
|
|
14
|
+
return !1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function r(n) {
|
|
18
|
+
if (typeof window > "u" || !n.organizationId || !n.workspaceId) return !1;
|
|
19
|
+
try {
|
|
20
|
+
let r = e();
|
|
21
|
+
return r ? (localStorage.setItem(t + r, JSON.stringify({
|
|
22
|
+
...n,
|
|
23
|
+
mode: "WORKSPACE_WIDE"
|
|
24
|
+
})), !0) : !1;
|
|
25
|
+
} catch {
|
|
26
|
+
return !1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function i(r) {
|
|
30
|
+
if (!(typeof window > "u" || !n(r))) try {
|
|
31
|
+
let n = e();
|
|
32
|
+
if (!n) return;
|
|
33
|
+
localStorage.removeItem(t + n);
|
|
34
|
+
} catch {}
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { i as clearWorkspaceWideSelection, n as isWorkspaceWideSelection, r as selectWorkspaceWide };
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* getSSORedirectUrl would relay the stale session back on the next visit
|
|
8
8
|
* and the user would silently stay logged in.
|
|
9
9
|
*
|
|
10
|
-
* Returns null when no detour is needed (already on the bridge host,
|
|
11
|
-
* unable to resolve a bridge URL — caller should
|
|
12
|
-
* own origin).
|
|
10
|
+
* Returns null when no detour is needed (already on the bridge host, inside a
|
|
11
|
+
* native or desktop shell, or unable to resolve a bridge URL — caller should
|
|
12
|
+
* just stay/navigate on its own origin).
|
|
13
13
|
*/
|
|
14
14
|
export declare function getCrossOriginLogoutUrl(): string | null;
|
|
15
15
|
export declare function hasLocalProfileSession(profileId: string | null): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssoRelay.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/ssoRelay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ssoRelay.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/ssoRelay.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAYvD;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAWxE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2BrE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { resolveAuthBridgeConfig as e } from "../../../config/authBridgeUrls.js";
|
|
2
2
|
import { isLocalDevSsoHost as t, isTrustedSsoOrigin as n, readShellSsoCookie as r } from "../../../utils/authCookie.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isRealNativeOrDesktopShell as i } from "../../../native/platform.js";
|
|
4
|
+
import { hasRecentSSORedirectAttempt as a, markSSORedirectAttempt as o, shouldSkipSSORedirect as s } from "../../../components/SSORedirectGuard.js";
|
|
4
5
|
//#region src/shared/providers/shell/authProvider/ssoRelay.ts
|
|
5
|
-
function
|
|
6
|
-
if (typeof window > "u") return null;
|
|
6
|
+
function c() {
|
|
7
|
+
if (typeof window > "u" || i()) return null;
|
|
7
8
|
try {
|
|
8
9
|
let t = e(), n = new URL(t.url).origin;
|
|
9
10
|
if (n === window.location.origin) return null;
|
|
@@ -13,7 +14,7 @@ function s() {
|
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function l(e) {
|
|
17
18
|
if (!e) return !1;
|
|
18
19
|
try {
|
|
19
20
|
return !!(localStorage.getItem(`bf-p-${e}-tokens`) && localStorage.getItem(`bf-p-${e}-user`));
|
|
@@ -21,18 +22,18 @@ function c(e) {
|
|
|
21
22
|
return !1;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function u(e) {
|
|
25
26
|
try {
|
|
26
|
-
if (
|
|
27
|
-
let
|
|
28
|
-
if (!
|
|
29
|
-
let
|
|
30
|
-
if (
|
|
31
|
-
let
|
|
32
|
-
return
|
|
27
|
+
if (i() || s() || t()) return null;
|
|
28
|
+
let c = r();
|
|
29
|
+
if (!c?.origin || !n(c.origin)) return null;
|
|
30
|
+
let u = new URL(c.origin).origin, d = new URL(e).origin;
|
|
31
|
+
if (u === window.location.origin || u === d || l(c.id)) return null;
|
|
32
|
+
let f = window.location.href;
|
|
33
|
+
return a(u, f) ? null : (o(u, f), `${u}/auth/sso-relay?returnTo=${encodeURIComponent(f)}`);
|
|
33
34
|
} catch {
|
|
34
35
|
return null;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
//#endregion
|
|
38
|
-
export {
|
|
39
|
+
export { u as getCookieSsoRelayUrl, c as getCrossOriginLogoutUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBridgeInitialization.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/useBridgeInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useBridgeInitialization.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/useBridgeInitialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,0BAA0B,CAAC;AAWlC,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,aAAa,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACxC,oBAAoB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChD,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,SAAS,EACT,sBAAsB,EACtB,aAAa,EACb,eAAe,GAChB,EAAE,wBAAwB,GAAG,IAAI,CA0HjC"}
|
|
@@ -1,86 +1,87 @@
|
|
|
1
1
|
import { getProfileTokens as e, getProfileUser as t, getProfileWorkspaceToken as n, resolveActiveProfileId as r } from "../ProfileStorageManager.js";
|
|
2
2
|
import { initAuthBridge as i, isAuthBridgeInitialized as a } from "../AuthBridgeClient.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { isRealNativeOrDesktopShell as o } from "../../../native/platform.js";
|
|
4
|
+
import { hasRecentSSORedirectAttempt as s, markSSORedirectAttempt as c, shouldSkipSSORedirect as l } from "../../../components/SSORedirectGuard.js";
|
|
5
|
+
import { getCookieSsoRelayUrl as u } from "./ssoRelay.js";
|
|
6
|
+
import { syncBridgeStateToProfileStorage as d } from "./bridgeStateSync.js";
|
|
7
|
+
import { useEffect as f } from "react";
|
|
7
8
|
//#region src/shared/providers/shell/authProvider/useBridgeInitialization.ts
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
if (!
|
|
9
|
+
function p({ bridgeUrl: p, bridgeAllowedOrigins: m, bridgeDebug: h, onBridgeReady: g, bridgeSyncInProgress: _, setIsLoading: v, setActiveId: y, setUser: b, setTokens: x, setWorkspaceTokenLocal: S, clearAccounts: C, refreshAccounts: w }) {
|
|
10
|
+
f(() => {
|
|
11
|
+
if (!p) return;
|
|
11
12
|
try {
|
|
12
|
-
let e = new URL(
|
|
13
|
+
let e = new URL(p).pathname;
|
|
13
14
|
if (window.location.pathname === e) {
|
|
14
|
-
|
|
15
|
+
v(!1), g?.();
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
18
|
} catch {
|
|
18
|
-
|
|
19
|
+
v(!1), g?.();
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
if (a()) {
|
|
22
|
-
|
|
23
|
+
v(!1), g?.();
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
26
|
+
let f = () => {
|
|
27
|
+
v(!1), g?.();
|
|
28
|
+
}, T = (i) => {
|
|
29
|
+
_.current = !0;
|
|
29
30
|
try {
|
|
30
|
-
if (
|
|
31
|
-
let e =
|
|
31
|
+
if (p) {
|
|
32
|
+
let e = u(p);
|
|
32
33
|
if (e) {
|
|
33
34
|
window.location.replace(e);
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
d(i);
|
|
38
39
|
let a = r();
|
|
39
|
-
if (a)
|
|
40
|
+
if (a) y(a), b(t(a)), x(e(a)), S(n(a)), w();
|
|
40
41
|
else {
|
|
41
|
-
if (
|
|
42
|
-
let e = new URL(
|
|
42
|
+
if (p && !i.user && !i.tokens) try {
|
|
43
|
+
let e = new URL(p).origin, t = window.location.origin, n = u(p);
|
|
43
44
|
if (n) {
|
|
44
45
|
window.location.replace(n);
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
|
-
if (e !== t && !
|
|
48
|
+
if (e !== t && !l() && !o()) {
|
|
48
49
|
let t = window.location.href;
|
|
49
|
-
if (
|
|
50
|
-
|
|
50
|
+
if (s(e, t)) return;
|
|
51
|
+
c(e, t), window.location.replace(`${e}/auth/sso-relay?returnTo=${encodeURIComponent(t)}`);
|
|
51
52
|
return;
|
|
52
53
|
}
|
|
53
54
|
} catch {}
|
|
54
|
-
|
|
55
|
+
y(null), b(null), x(null), S(null), C();
|
|
55
56
|
}
|
|
56
57
|
} finally {
|
|
57
|
-
|
|
58
|
+
_.current = !1, f();
|
|
58
59
|
}
|
|
59
|
-
},
|
|
60
|
-
|
|
60
|
+
}, E = setTimeout(() => {
|
|
61
|
+
f();
|
|
61
62
|
}, 5e3);
|
|
62
63
|
return i({
|
|
63
|
-
bridgeUrl:
|
|
64
|
-
allowedOrigins:
|
|
65
|
-
onStateChanged:
|
|
66
|
-
debug:
|
|
64
|
+
bridgeUrl: p,
|
|
65
|
+
allowedOrigins: m,
|
|
66
|
+
onStateChanged: T,
|
|
67
|
+
debug: h ?? !1
|
|
67
68
|
}), () => {
|
|
68
|
-
clearTimeout(
|
|
69
|
+
clearTimeout(E);
|
|
69
70
|
};
|
|
70
71
|
}, [
|
|
71
|
-
f,
|
|
72
72
|
p,
|
|
73
73
|
m,
|
|
74
74
|
h,
|
|
75
|
-
C,
|
|
76
75
|
g,
|
|
76
|
+
w,
|
|
77
77
|
_,
|
|
78
78
|
v,
|
|
79
79
|
y,
|
|
80
80
|
b,
|
|
81
81
|
x,
|
|
82
|
-
S
|
|
82
|
+
S,
|
|
83
|
+
C
|
|
83
84
|
]);
|
|
84
85
|
}
|
|
85
86
|
//#endregion
|
|
86
|
-
export {
|
|
87
|
+
export { p as useBridgeInitialization };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSsoDepositBootGuard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/useSsoDepositBootGuard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSsoDepositBootGuard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/shell/authProvider/useSsoDepositBootGuard.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CA4E7C"}
|
|
@@ -2,47 +2,44 @@ import { resolveGatewayUrls as e } from "../../../config/gatewayUrls.js";
|
|
|
2
2
|
import { resolveAuthBridgeConfig as t } from "../../../config/authBridgeUrls.js";
|
|
3
3
|
import { resolveActiveProfileId as n } from "../ProfileStorageManager.js";
|
|
4
4
|
import { isLocalDevSsoHost as r, isSharedSsoCookieDomain as i } from "../../../utils/authCookie.js";
|
|
5
|
-
import {
|
|
6
|
-
import { beginSsoNavigation as
|
|
7
|
-
import { useEffect as
|
|
5
|
+
import { isRealNativeOrDesktopShell as a } from "../../../native/platform.js";
|
|
6
|
+
import { beginSsoNavigation as o, buildSsoDepositUrl as s, consumeSsoDepositMarker as c, markSsoDepositPending as l, mintSsoSessionTokens as u, shouldAttemptSsoDeposit as d } from "../../../utils/ssoDeposit.js";
|
|
7
|
+
import { useEffect as f } from "react";
|
|
8
8
|
//#region src/shared/providers/shell/authProvider/useSsoDepositBootGuard.ts
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
function g() {
|
|
14
|
-
p(() => {
|
|
9
|
+
var p = 2500;
|
|
10
|
+
function m() {
|
|
11
|
+
f(() => {
|
|
15
12
|
if (typeof window > "u") return;
|
|
16
|
-
let
|
|
17
|
-
if (
|
|
18
|
-
let
|
|
13
|
+
let f = n();
|
|
14
|
+
if (c(f) || !f || a() || r() || i() || window.location.pathname.startsWith("/auth/")) return;
|
|
15
|
+
let m;
|
|
19
16
|
try {
|
|
20
17
|
let e = t();
|
|
21
|
-
|
|
18
|
+
m = new URL(e.url).origin;
|
|
22
19
|
} catch {
|
|
23
20
|
return;
|
|
24
21
|
}
|
|
25
|
-
if (
|
|
26
|
-
let
|
|
22
|
+
if (m === window.location.origin || !d(f)) return;
|
|
23
|
+
let h = setTimeout(async () => {
|
|
27
24
|
try {
|
|
28
|
-
if (n() !==
|
|
29
|
-
let t = localStorage.getItem(`bf-p-${
|
|
25
|
+
if (n() !== f || window.location.pathname.startsWith("/auth/")) return;
|
|
26
|
+
let t = localStorage.getItem(`bf-p-${f}-tokens`), r = localStorage.getItem(`bf-p-${f}-user`);
|
|
30
27
|
if (!t || !r) return;
|
|
31
28
|
let i = JSON.parse(t);
|
|
32
29
|
if (!(i.accessToken && typeof i.expiresAt == "number" && i.expiresAt - Date.now() > 6e4) || !i.refreshToken) return;
|
|
33
|
-
|
|
34
|
-
let { globalBaseUrl:
|
|
35
|
-
if (!
|
|
36
|
-
|
|
37
|
-
profileId:
|
|
38
|
-
tokens: JSON.stringify(
|
|
30
|
+
l(f);
|
|
31
|
+
let { globalBaseUrl: a } = e(), { tokens: c } = await u(`${a}/global/graphql`, i.refreshToken);
|
|
32
|
+
if (!c) return;
|
|
33
|
+
o(), window.location.replace(s(m, window.location.href, {
|
|
34
|
+
profileId: f,
|
|
35
|
+
tokens: JSON.stringify(c),
|
|
39
36
|
user: r,
|
|
40
37
|
profiles: localStorage.getItem("bf-profiles")
|
|
41
38
|
}));
|
|
42
39
|
} catch {}
|
|
43
|
-
},
|
|
44
|
-
return () => clearTimeout(
|
|
40
|
+
}, p);
|
|
41
|
+
return () => clearTimeout(h);
|
|
45
42
|
}, []);
|
|
46
43
|
}
|
|
47
44
|
//#endregion
|
|
48
|
-
export {
|
|
45
|
+
export { m as useSsoDepositBootGuard };
|
|
@@ -44,4 +44,6 @@ export type { AppShellContextValue } from './AppShellContext';
|
|
|
44
44
|
export { PageConversationContextProvider, usePageConversationContext, useRegisterPageConversationContext, } from './PageConversationContextProvider';
|
|
45
45
|
export type { PageConversationContext, PageConversationContextProviderProps, } from './PageConversationContextProvider';
|
|
46
46
|
export type { MicrofrontendRootProps, NavItem, FooterItem, FooterSection } from '../../types';
|
|
47
|
+
export { isWorkspaceWideSelection, selectWorkspaceWide, clearWorkspaceWideSelection, } from './WorkspaceWideSelection';
|
|
48
|
+
export type { WorkspaceWideScope } from './WorkspaceWideSelection';
|
|
47
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EACV,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,YAAY,EACZ,OAAO,EACP,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EACV,IAAI,EACJ,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,eAAe,EACf,aAAa,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,MAAM,iBAAiB,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAG5E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,mCAAmC,CAAC;AAG3C,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EACV,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,YAAY,EACZ,OAAO,EACP,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,MAAM,EACN,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EACV,IAAI,EACJ,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL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AAyB,CAAC;AAG1E,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACrF,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAG5E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,mCAAmC,CAAC;AAG3C,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9F,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -306,33 +306,33 @@ var m = e(function({ step: e, stepIndex: d, totalSteps: m, onNext: h, onPrevious
|
|
|
306
306
|
width: 0,
|
|
307
307
|
height: 0,
|
|
308
308
|
...P.arrowPosition === "top" && {
|
|
309
|
-
top: -
|
|
309
|
+
top: -10,
|
|
310
310
|
left: P.arrowOffset,
|
|
311
|
-
marginLeft: -
|
|
311
|
+
marginLeft: -10,
|
|
312
312
|
borderLeft: `${u}px solid transparent`,
|
|
313
313
|
borderRight: `${u}px solid transparent`,
|
|
314
314
|
borderBottom: `${u}px solid var(--color-bg-surface)`
|
|
315
315
|
},
|
|
316
316
|
...P.arrowPosition === "bottom" && {
|
|
317
|
-
bottom: -
|
|
317
|
+
bottom: -10,
|
|
318
318
|
left: P.arrowOffset,
|
|
319
|
-
marginLeft: -
|
|
319
|
+
marginLeft: -10,
|
|
320
320
|
borderLeft: `${u}px solid transparent`,
|
|
321
321
|
borderRight: `${u}px solid transparent`,
|
|
322
322
|
borderTop: `${u}px solid var(--color-bg-surface)`
|
|
323
323
|
},
|
|
324
324
|
...P.arrowPosition === "left" && {
|
|
325
|
-
left: -
|
|
325
|
+
left: -10,
|
|
326
326
|
top: P.arrowOffset,
|
|
327
|
-
marginTop: -
|
|
327
|
+
marginTop: -10,
|
|
328
328
|
borderTop: `${u}px solid transparent`,
|
|
329
329
|
borderBottom: `${u}px solid transparent`,
|
|
330
330
|
borderRight: `${u}px solid var(--color-bg-surface)`
|
|
331
331
|
},
|
|
332
332
|
...P.arrowPosition === "right" && {
|
|
333
|
-
right: -
|
|
333
|
+
right: -10,
|
|
334
334
|
top: P.arrowOffset,
|
|
335
|
-
marginTop: -
|
|
335
|
+
marginTop: -10,
|
|
336
336
|
borderTop: `${u}px solid transparent`,
|
|
337
337
|
borderBottom: `${u}px solid transparent`,
|
|
338
338
|
borderLeft: `${u}px solid var(--color-bg-surface)`
|
|
@@ -89,7 +89,7 @@ function d(e, t = 2) {
|
|
|
89
89
|
"TB",
|
|
90
90
|
"PB"
|
|
91
91
|
], i = Math.floor(Math.log(e) / Math.log(n));
|
|
92
|
-
return `${parseFloat((e / n **
|
|
92
|
+
return `${parseFloat((e / n ** i).toFixed(t))} ${r[i]}`;
|
|
93
93
|
}
|
|
94
94
|
function f(e, t = "en-US") {
|
|
95
95
|
return new Intl.NumberFormat(t, {
|
|
@@ -252,7 +252,7 @@ function G(e = "VITE_VERBOSE_CONSOLE") {
|
|
|
252
252
|
MODE: "production",
|
|
253
253
|
PROD: !0,
|
|
254
254
|
SSR: !1
|
|
255
|
-
})
|
|
255
|
+
})[e] !== "true" && (console.log = () => {}, console.info = () => {}, console.debug = () => {});
|
|
256
256
|
}
|
|
257
257
|
//#endregion
|
|
258
258
|
export { x as clearGatewayGraphQLResponseCache, W as installGatewayFetchRewrite, U as resolveGatewayBases, G as suppressConsole };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { ProfileStorageManager_exports as e, clearActiveProfileId as t, getActiveContext as n, getActiveTokens as r, getActiveUser as i, getProfileLocale as a, logoutActiveProfile as o, removeAllProfiles as s, setProfileLocale as c, setProfiles as l } from "./shared/providers/shell/ProfileStorageManager.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { clearWorkspaceWideSelection as u, isWorkspaceWideSelection as d, selectWorkspaceWide as f } from "./shared/providers/shell/WorkspaceWideSelection.js";
|
|
3
|
+
import { AuthBridgeClient as p, destroyAuthBridge as m, getAuthBridge as h, initAuthBridge as g, isAuthBridgeInitialized as _ } from "./shared/providers/shell/AuthBridgeClient.js";
|
|
4
|
+
import { AppShellContextProvider as v, useAppShell as y } from "./shared/providers/shell/AppShellContext.js";
|
|
5
|
+
import { AuthProvider as b, useAuth as x } from "./shared/providers/shell/AuthProvider.js";
|
|
6
|
+
import { ActiveContextProvider as S, useActiveContext as C } from "./shared/providers/shell/ActiveContextProvider.js";
|
|
7
|
+
import { ThemeProvider as w, useTheme as T } from "./shared/providers/shell/ThemeProvider.js";
|
|
8
|
+
import { PermissionProvider as E, SUPER_ADMIN_ACTOR_TYPE as D, SUPER_ADMIN_ROLE as O, hasMatchingPermission as k, isSuperAdminBypass as A, matchPermission as j, usePermission as M, usePermissionLoading as N, usePermissions as P, useRole as F, useSafePermissions as I } from "./shared/providers/shell/PermissionProvider.js";
|
|
9
|
+
import { I18nProvider as L, clearTranslationCache as R, isTranslationAttempted as z, useI18n as B } from "./shared/providers/shell/I18nProvider.js";
|
|
10
|
+
import { FeatureFlagsProvider as V, useFeatureFlags as H } from "./shared/providers/shell/FeatureFlagsProvider.js";
|
|
11
|
+
import { FeatureFlagProvider as U } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
12
|
+
import { useFeatureFlag as W, useFeatureFlagDetails as G, useFeatureFlagValue as K } from "./shared/feature-flags/useFeatureFlag.js";
|
|
13
|
+
import { FeatureGate as q } from "./shared/feature-flags/FeatureGate.js";
|
|
13
14
|
import "./shared-feature-flags.js";
|
|
14
|
-
import { GlobalUiProvider as
|
|
15
|
-
import { ShellUiProvider as
|
|
16
|
-
import { ContextManagerProvider as
|
|
17
|
-
import { GeographyProvider as
|
|
18
|
-
import { EVERYTHING_SURFACE_ID as
|
|
19
|
-
import { AuthTokenProvider as
|
|
20
|
-
import { MultiGatewayProvider as
|
|
21
|
-
import { ObservabilityProvider as
|
|
22
|
-
import { GatewayRoute as
|
|
23
|
-
import { ProfileI18nBridge as
|
|
24
|
-
import { ProfileGeographyBridge as
|
|
25
|
-
import { PageConversationContextProvider as
|
|
26
|
-
export {
|
|
15
|
+
import { GlobalUiProvider as J, useGlobalUi as Y } from "./shared/providers/shell/GlobalUiProvider.js";
|
|
16
|
+
import { ShellUiProvider as X, useShellUi as Z } from "./shared/providers/shell/ShellUiProvider.js";
|
|
17
|
+
import { ContextManagerProvider as Q, useContextManager as $ } from "./shared/providers/shell/ContextManagerProvider.js";
|
|
18
|
+
import { GeographyProvider as ee, useGeography as te } from "./shared/geography/GeographyProvider.js";
|
|
19
|
+
import { EVERYTHING_SURFACE_ID as ne, PersonaSurfaceProvider as re, resolveSurfaceForRoles as ie, synthesizeSimulatedPermissionStrings as ae, usePersonaSurface as oe, useSafePersonaSurface as se } from "./shared/providers/shell/PersonaSurfaceProvider.js";
|
|
20
|
+
import { AuthTokenProvider as ce, useAuthToken as le } from "./shared/providers/shell/AuthTokenProvider.js";
|
|
21
|
+
import { MultiGatewayProvider as ue } from "./shared/providers/shell/MultiGatewayProvider.js";
|
|
22
|
+
import { ObservabilityProvider as de } from "./shared/providers/shell/ObservabilityProvider.js";
|
|
23
|
+
import { GatewayRoute as fe, getMicrofrontendGateway as pe, withGateway as me } from "./shared/providers/shell/GatewayRouter.js";
|
|
24
|
+
import { ProfileI18nBridge as he } from "./shared/providers/shell/ProfileI18nBridge.js";
|
|
25
|
+
import { ProfileGeographyBridge as ge } from "./shared/providers/shell/ProfileGeographyBridge.js";
|
|
26
|
+
import { PageConversationContextProvider as _e, usePageConversationContext as ve, useRegisterPageConversationContext as ye } from "./shared/providers/shell/PageConversationContextProvider.js";
|
|
27
|
+
export { S as ActiveContextProvider, v as AppShellContextProvider, p as AuthBridgeClient, b as AuthProvider, ce as AuthTokenProvider, Q as ContextManagerProvider, ne as EVERYTHING_SURFACE_ID, U as FeatureFlagProvider, V as FeatureFlagsProvider, q as FeatureGate, fe as GatewayRoute, ee as GeographyProvider, J as GlobalUiProvider, L as I18nProvider, ue as MultiGatewayProvider, de as ObservabilityProvider, _e as PageConversationContextProvider, E as PermissionProvider, re as PersonaSurfaceProvider, ge as ProfileGeographyBridge, he as ProfileI18nBridge, e as ProfileStorage, D as SUPER_ADMIN_ACTOR_TYPE, O as SUPER_ADMIN_ROLE, X as ShellUiProvider, w as ThemeProvider, t as clearActiveProfileId, R as clearTranslationCache, u as clearWorkspaceWideSelection, m as destroyAuthBridge, n as getActiveContext, r as getActiveTokens, i as getActiveUser, h as getAuthBridge, pe as getMicrofrontendGateway, a as getProfileLocale, k as hasMatchingPermission, g as initAuthBridge, _ as isAuthBridgeInitialized, A as isSuperAdminBypass, z as isTranslationAttempted, d as isWorkspaceWideSelection, o as logoutActiveProfile, j as matchPermission, s as removeAllProfiles, ie as resolveSurfaceForRoles, f as selectWorkspaceWide, c as setProfileLocale, l as setProfiles, ae as synthesizeSimulatedPermissionStrings, C as useActiveContext, y as useAppShell, x as useAuth, le as useAuthToken, $ as useContextManager, W as useFeatureFlag, G as useFeatureFlagDetails, K as useFeatureFlagValue, H as useFeatureFlags, te as useGeography, Y as useGlobalUi, B as useI18n, ve as usePageConversationContext, M as usePermission, N as usePermissionLoading, P as usePermissions, oe as usePersonaSurface, ye as useRegisterPageConversationContext, F as useRole, I as useSafePermissions, se as useSafePersonaSurface, Z as useShellUi, T as useTheme, me as withGateway };
|
|
@@ -17,5 +17,7 @@ export interface CapacitorConfigLike {
|
|
|
17
17
|
experimental?: Record<string, unknown>;
|
|
18
18
|
[key: string]: unknown;
|
|
19
19
|
}
|
|
20
|
+
/** Valid WebView origin grammar: a hostname with at most one leading `*.` label. */
|
|
21
|
+
export declare function isValidAllowNavigationRule(rule: string): boolean;
|
|
20
22
|
export declare function defineCapacitorConfig(cfg: NativeConfig, overrides?: Partial<CapacitorConfigLike>): CapacitorConfigLike;
|
|
21
23
|
//# sourceMappingURL=capacitor-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacitor-config.d.ts","sourceRoot":"","sources":["../../src/shell-native/capacitor-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,oEAAoE;AACpE,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACP,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,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EACjB,SAAS,GAAE,OAAO,CAAC,mBAAmB,CAAM,GAC3C,mBAAmB,CAqHrB"}
|
|
@@ -2,47 +2,53 @@
|
|
|
2
2
|
function e(e) {
|
|
3
3
|
return [...new Set(e.filter((e) => e.length > 0))];
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
var t = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?", n = RegExp(`^(?:\\*\\.)?${t}(?:\\.${t})+$`, "i"), r = 253;
|
|
6
|
+
function i(e) {
|
|
7
|
+
return (e.startsWith("*.") ? e.slice(2) : e).length <= r && n.test(e);
|
|
8
|
+
}
|
|
9
|
+
function a(e) {
|
|
10
|
+
let t = e.filter((e) => !i(e));
|
|
11
|
+
if (t.length !== 0) throw Error(`defineCapacitorConfig: server.allowNavigation entries must be host names with at most one leading "*." label (no scheme, port or path). Invalid: ${t.map((e) => JSON.stringify(e)).join(", ")}`);
|
|
12
|
+
}
|
|
13
|
+
function o(e) {
|
|
6
14
|
return globalThis.process?.env?.[e] === "1";
|
|
7
15
|
}
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
appId:
|
|
11
|
-
appName:
|
|
16
|
+
function s(t, n = {}) {
|
|
17
|
+
let r = {
|
|
18
|
+
appId: t.appId,
|
|
19
|
+
appName: t.displayName,
|
|
12
20
|
webDir: "dist",
|
|
13
21
|
server: {
|
|
14
22
|
androidScheme: "https",
|
|
15
23
|
iosScheme: "https",
|
|
16
24
|
allowNavigation: e([
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
"*.burdenoff.com"
|
|
22
|
-
"*.*.burdenoff.com",
|
|
23
|
-
"*.*.*.burdenoff.com"
|
|
25
|
+
t.domains.prodApp,
|
|
26
|
+
t.domains.alphaApp,
|
|
27
|
+
t.domains.website,
|
|
28
|
+
...t.domains.docs ? [t.domains.docs] : [],
|
|
29
|
+
"*.burdenoff.com"
|
|
24
30
|
])
|
|
25
31
|
},
|
|
26
32
|
ios: {
|
|
27
33
|
contentInset: "automatic",
|
|
28
34
|
allowsLinkPreview: !1,
|
|
29
35
|
preferredContentMode: "mobile",
|
|
30
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: t.brandColor,
|
|
31
37
|
scrollEnabled: !0
|
|
32
38
|
},
|
|
33
39
|
android: {
|
|
34
40
|
allowMixedContent: !1,
|
|
35
41
|
overScrollMode: "never",
|
|
36
|
-
webContentsDebuggingEnabled:
|
|
42
|
+
webContentsDebuggingEnabled: o("CAP_DEBUG"),
|
|
37
43
|
minWebViewVersion: "80.0.0",
|
|
38
|
-
backgroundColor:
|
|
44
|
+
backgroundColor: t.brandColor
|
|
39
45
|
},
|
|
40
46
|
plugins: {
|
|
41
47
|
CapacitorUpdater: {
|
|
42
48
|
autoUpdate: !0,
|
|
43
49
|
appReadyTimeout: 1e4,
|
|
44
50
|
directUpdate: !1,
|
|
45
|
-
...
|
|
51
|
+
...t.ota?.channel ? { defaultChannel: t.ota.channel } : {}
|
|
46
52
|
},
|
|
47
53
|
SystemBars: {
|
|
48
54
|
insetsHandling: "css",
|
|
@@ -50,7 +56,7 @@ function n(n, r = {}) {
|
|
|
50
56
|
},
|
|
51
57
|
SplashScreen: {
|
|
52
58
|
launchAutoHide: !1,
|
|
53
|
-
backgroundColor:
|
|
59
|
+
backgroundColor: t.brandColor,
|
|
54
60
|
androidScaleType: "CENTER_CROP",
|
|
55
61
|
showSpinner: !1,
|
|
56
62
|
splashFullScreen: !0,
|
|
@@ -65,38 +71,38 @@ function n(n, r = {}) {
|
|
|
65
71
|
resize: "body",
|
|
66
72
|
resizeOnFullScreen: !0
|
|
67
73
|
},
|
|
68
|
-
...
|
|
74
|
+
...t.push ? { PushNotifications: { presentationOptions: [
|
|
69
75
|
"badge",
|
|
70
76
|
"sound",
|
|
71
77
|
"alert"
|
|
72
78
|
] } } : {}
|
|
73
79
|
},
|
|
74
80
|
experimental: { ios: { spm: { swiftToolsVersion: "5.9" } } }
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
...i,
|
|
81
|
+
}, i = {
|
|
78
82
|
...r,
|
|
83
|
+
...n,
|
|
79
84
|
server: {
|
|
80
|
-
...
|
|
81
|
-
...
|
|
85
|
+
...r.server,
|
|
86
|
+
...n.server
|
|
82
87
|
},
|
|
83
88
|
ios: {
|
|
84
|
-
...
|
|
85
|
-
...
|
|
89
|
+
...r.ios,
|
|
90
|
+
...n.ios
|
|
86
91
|
},
|
|
87
92
|
android: {
|
|
88
|
-
...
|
|
89
|
-
...
|
|
93
|
+
...r.android,
|
|
94
|
+
...n.android
|
|
90
95
|
},
|
|
91
96
|
plugins: {
|
|
92
|
-
...
|
|
93
|
-
...
|
|
97
|
+
...r.plugins,
|
|
98
|
+
...n.plugins
|
|
94
99
|
},
|
|
95
100
|
experimental: {
|
|
96
|
-
...
|
|
97
|
-
...
|
|
101
|
+
...r.experimental,
|
|
102
|
+
...n.experimental
|
|
98
103
|
}
|
|
99
104
|
};
|
|
105
|
+
return a(i.server?.allowNavigation ?? []), i;
|
|
100
106
|
}
|
|
101
107
|
//#endregion
|
|
102
|
-
export {
|
|
108
|
+
export { s as defineCapacitorConfig, i as isValidAllowNavigationRule };
|