@burdenoff/fe-libs 2026.904.2 → 2026.904.3
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/shared/config/authBridgeUrls.d.ts.map +1 -1
- package/dist/shared/config/authBridgeUrls.js +16 -15
- package/dist/shared/config/gatewayUrls.d.ts +29 -0
- package/dist/shared/config/gatewayUrls.d.ts.map +1 -1
- package/dist/shared/config/gatewayUrls.js +44 -20
- package/dist/shared/config/index.d.ts.map +1 -1
- package/dist/shared/native/capacitor.d.ts +49 -0
- package/dist/shared/native/capacitor.d.ts.map +1 -0
- package/dist/shared/native/capacitor.js +31 -0
- package/dist/shared/native/index.d.ts +2 -0
- package/dist/shared/native/index.d.ts.map +1 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.js +101 -100
- package/dist/shared/utils/authCookie.d.ts.map +1 -1
- package/dist/shared/utils/authCookie.js +35 -34
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +1 -1
- package/dist/shared/utils/gatewayFetchRewrite.js +95 -87
- package/dist/shared-config.js +9 -1
- package/dist/shared-native.js +23 -22
- package/dist/shared.js +124 -123
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authBridgeUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/authBridgeUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"authBridgeUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/authBridgeUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;CAChB;AAyCD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,IAAI,uBAAuB,CAcjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,IAAI,uBAAuB,GAAG,SAAS,CAWlF"}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isCapacitorNative as e } from "../native/capacitor.js";
|
|
2
|
+
import { isDesktop as t } from "../native/desktop.js";
|
|
3
|
+
import { ALL_PRODUCT_DOMAINS as n, ALPHA_HOSTS as r, PROD_HOSTS as i, getCurrentHostname as a } from "./gatewayUrls.js";
|
|
3
4
|
//#region src/shared/config/authBridgeUrls.ts
|
|
4
|
-
var
|
|
5
|
+
var o = {
|
|
5
6
|
url: "https://app.burdenoff.com/auth/session-bridge",
|
|
6
|
-
allowedOrigins:
|
|
7
|
+
allowedOrigins: n.map((e) => `https://app.${e}`).join(","),
|
|
7
8
|
debug: !1
|
|
8
|
-
},
|
|
9
|
+
}, s = {
|
|
9
10
|
url: "https://alphaapp.burdenoff.com/auth/session-bridge",
|
|
10
|
-
allowedOrigins:
|
|
11
|
+
allowedOrigins: n.map((e) => `https://alphaapp.${e}`).join(","),
|
|
11
12
|
debug: !1
|
|
12
|
-
},
|
|
13
|
+
}, c = {
|
|
13
14
|
url: "https://app.local.burdenoff.com/auth/session-bridge",
|
|
14
15
|
allowedOrigins: "*",
|
|
15
16
|
debug: !0
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function l(e) {
|
|
18
19
|
return e ? e === "localhost" || e === "127.0.0.1" || e === "0.0.0.0" || e === "[::1]" || e === "::1" || e.endsWith(".localhost") : !1;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function u() {
|
|
21
22
|
return {
|
|
22
23
|
url: `${typeof window > "u" ? "" : window.location.origin}/auth/session-bridge`,
|
|
23
24
|
allowedOrigins: "*",
|
|
24
25
|
debug: !0
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
function u() {
|
|
28
|
-
let e = i();
|
|
29
|
-
return r.has(e) ? a : n.has(e) ? o : c(e) ? l() : s;
|
|
30
|
-
}
|
|
31
28
|
function d() {
|
|
32
|
-
|
|
29
|
+
let e = a();
|
|
30
|
+
return i.has(e) ? o : r.has(e) ? s : l(e) ? u() : c;
|
|
31
|
+
}
|
|
32
|
+
function f() {
|
|
33
|
+
if (!t() && !e()) return d();
|
|
33
34
|
}
|
|
34
35
|
//#endregion
|
|
35
|
-
export {
|
|
36
|
+
export { d as resolveAuthBridgeConfig, f as resolveShellAuthBridgeConfig };
|
|
@@ -22,6 +22,35 @@ export declare const PROD_HOSTS: Set<string>;
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const ALPHA_HOSTS: Set<string>;
|
|
24
24
|
export declare function getCurrentHostname(): string;
|
|
25
|
+
/**
|
|
26
|
+
* Which backend estate a bundle is built to talk to.
|
|
27
|
+
*
|
|
28
|
+
* `'local'` means the developer stack behind the `gw-*.local.burdenoff.com`
|
|
29
|
+
* nginx proxy — reachable only from a machine with the dev `/etc/hosts`
|
|
30
|
+
* entries, never from a phone.
|
|
31
|
+
*/
|
|
32
|
+
export type DeployTarget = 'prod' | 'alpha' | 'local';
|
|
33
|
+
/**
|
|
34
|
+
* Resolve the deploy target for a shell whose origin carries no information —
|
|
35
|
+
* a Capacitor WebView, which is always `https://localhost` (or `capacitor://`)
|
|
36
|
+
* regardless of which product or environment the binary was built for.
|
|
37
|
+
*
|
|
38
|
+
* Precedence:
|
|
39
|
+
* 1. `VITE_GATEWAY_TARGET` — the explicit override, already honoured for
|
|
40
|
+
* localhost dev servers.
|
|
41
|
+
* 2. `VITE_DEPLOY_ENV` — the build-time environment marker the shells
|
|
42
|
+
* already set for analytics.
|
|
43
|
+
* 3. `'prod'`.
|
|
44
|
+
*
|
|
45
|
+
* Defaulting to prod is the safe answer here, and it is the OPPOSITE of the
|
|
46
|
+
* fail-loud default for an unknown *web* hostname (BOFF-2507). A web app
|
|
47
|
+
* served from a domain we do not recognise might be anything, so pointing it
|
|
48
|
+
* at production would be reckless. A Capacitor binary is something we built
|
|
49
|
+
* and signed ourselves; the only reason it is on a device at all is to talk to
|
|
50
|
+
* a real backend, and `LOCAL_DEFAULTS` there is not a safe fallback but a
|
|
51
|
+
* guaranteed `TypeError: Failed to fetch` on the first request.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveNativeDeployTarget(): DeployTarget;
|
|
25
54
|
/**
|
|
26
55
|
* Resolve runtime gateway URLs from the current hostname, with an optional
|
|
27
56
|
* env-driven override for localhost dev servers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gatewayUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/gatewayUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"gatewayUrls.d.ts","sourceRoot":"","sources":["../../../src/shared/config/gatewayUrls.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAoBD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UA+C/B,CAAC;AAEF,eAAO,MAAM,UAAU,aAGrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW,aAOtB,CAAC;AAEH,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAkCD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAWtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,yBAAyB,IAAI,YAAY,CAUxD;AAOD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,IAAI,kBAAkB,CAkDvD"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isCapacitorNative as e } from "../native/capacitor.js";
|
|
2
|
+
import { getDesktopGatewayUrls as t } from "../native/desktop.js";
|
|
2
3
|
//#region src/shared/config/gatewayUrls.ts
|
|
3
|
-
var
|
|
4
|
+
var n = {
|
|
4
5
|
workspaceBaseUrl: "https://alphagraphqlworkspaces.burdenoff.com",
|
|
5
6
|
globalBaseUrl: "https://alphagraphql.burdenoff.com",
|
|
6
7
|
publicStoreBaseUrl: "https://alphagraphql.burdenoff.com"
|
|
7
|
-
},
|
|
8
|
+
}, r = {
|
|
8
9
|
workspaceBaseUrl: "https://graphqlworkspaces.burdenoff.com",
|
|
9
10
|
globalBaseUrl: "https://graphql.burdenoff.com",
|
|
10
11
|
publicStoreBaseUrl: "https://graphql.burdenoff.com"
|
|
11
|
-
},
|
|
12
|
+
}, i = {
|
|
12
13
|
workspaceBaseUrl: "https://gw-wspace.local.burdenoff.com",
|
|
13
14
|
globalBaseUrl: "https://gw-global.local.burdenoff.com",
|
|
14
15
|
publicStoreBaseUrl: "https://gw-global.local.burdenoff.com"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
16
|
+
}, a = /* @__PURE__ */ "burdenoff.com,vibecontrols.com,fluidgrids.com,fluidgrids.ai,botlit.ai,botmanor.com,bigconsole.com,gethealthybowl.com,headshotmarketing.com,timecampus.com,ggnomad.com,movethewheels.com,crewfoundry.com,planmagnet.com,eventfullymanaged.com,kadaikodi.com,assethandler.com,technospam.com,semanticfed.com,manufacturedops.com,theglobalfuel.com,housingvista.com,proserviceworld.com,mybodyshield.com,artistrybase.com,collabkin.com,brainyrich.com,theculturepost.com,comradecircle.com,cosmicintersection.com,govcitizenhub.com,intelwatchtower.com,ecoimpacthub.com,buildmyiq.com,fluidgrids.ai,atheletebridge.com,adaptercloud.com,coolandlovely.com,subscriberbot.com,labsofscience.com,hookmovies.com".split(","), o = new Set([...a.map((e) => `app.${e}`), "admin.burdenoff.com"]), s = new Set([...a.map((e) => `alphaapp.${e}`), "alphaadmin.burdenoff.com"]);
|
|
17
|
+
function c() {
|
|
17
18
|
return typeof window > "u" ? "" : window.location.hostname.toLowerCase();
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function l(e) {
|
|
20
21
|
let t = `https://${e}`;
|
|
21
22
|
return {
|
|
22
23
|
workspaceBaseUrl: t,
|
|
@@ -24,24 +25,47 @@ function c(e) {
|
|
|
24
25
|
publicStoreBaseUrl: t
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function u(e) {
|
|
28
29
|
return e ? e === "localhost" || e === "127.0.0.1" || e === "0.0.0.0" || e === "[::1]" || e === "::1" || e.endsWith(".localhost") || e.endsWith(".local.burdenoff.com") : !1;
|
|
29
30
|
}
|
|
30
|
-
var u = !1;
|
|
31
31
|
function d() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
try {
|
|
33
|
+
return {
|
|
34
|
+
BASE_URL: "/",
|
|
35
|
+
DEV: !1,
|
|
36
|
+
MODE: "production",
|
|
37
|
+
PROD: !0,
|
|
38
|
+
SSR: !1
|
|
39
|
+
}?.VITE_DEPLOY_ENV?.toLowerCase();
|
|
40
|
+
} catch {
|
|
41
|
+
return;
|
|
41
42
|
}
|
|
42
|
-
return r;
|
|
43
43
|
}
|
|
44
44
|
function f() {
|
|
45
|
+
let e = h();
|
|
46
|
+
if (e === "prod" || e === "alpha" || e === "local") return e;
|
|
47
|
+
let t = d();
|
|
48
|
+
return t === "alpha" || t === "staging" ? "alpha" : t === "dev" || t === "development" ? "local" : "prod";
|
|
49
|
+
}
|
|
50
|
+
var p = !1;
|
|
51
|
+
function m() {
|
|
52
|
+
let a = t();
|
|
53
|
+
if (a) return a;
|
|
54
|
+
if (e()) {
|
|
55
|
+
let e = f();
|
|
56
|
+
return e === "local" ? i : e === "alpha" ? n : r;
|
|
57
|
+
}
|
|
58
|
+
let d = c();
|
|
59
|
+
if (o.has(d)) return r;
|
|
60
|
+
if (s.has(d)) return l(d);
|
|
61
|
+
if (u(d)) {
|
|
62
|
+
let e = h();
|
|
63
|
+
if (e === "prod") return p || (p = !0, console.warn("[gatewayUrls] WARNING: localhost dev server is configured to hit PRODUCTION backends (VITE_GATEWAY_TARGET=prod). Any mutation will modify real prod data. Remove the env var or delete .env.local to disable.")), r;
|
|
64
|
+
if (e === "alpha") return n;
|
|
65
|
+
}
|
|
66
|
+
return i;
|
|
67
|
+
}
|
|
68
|
+
function h() {
|
|
45
69
|
try {
|
|
46
70
|
return {
|
|
47
71
|
BASE_URL: "/",
|
|
@@ -55,4 +79,4 @@ function f() {
|
|
|
55
79
|
}
|
|
56
80
|
}
|
|
57
81
|
//#endregion
|
|
58
|
-
export {
|
|
82
|
+
export { a as ALL_PRODUCT_DOMAINS, s as ALPHA_HOSTS, o as PROD_HOSTS, c as getCurrentHostname, m as resolveGatewayUrls, f as resolveNativeDeployTarget };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ;;QAEjB,uCAAuC;;QAEvC,4BAA4B;;QAE5B,6FAA6F;;;;QAI7F,uCAAuC;;QAEvC,4BAA4B;;QAE5B,6FAA6F;;QAE7F,uDAAuD;;;CAGjD,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;AACjD,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,MAAM,CAMlF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO;IApC7C,uCAAuC;;IAEvC,4BAA4B;;IAE5B,6FAA6F;;;IAI7F,uCAAuC;;IAEvC,4BAA4B;;IAE5B,6FAA6F;;IAE7F,uDAAuD;;EAwB1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAanF;AAYD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AACzF,YAAY,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAGhE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACxF,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capacitor (mobile) runtime detection — MFE-safe, boot-order independent.
|
|
3
|
+
*
|
|
4
|
+
* WHY THIS EXISTS SEPARATELY FROM `platform.ts`
|
|
5
|
+
* --------------------------------------------
|
|
6
|
+
* `isNative()` in `./platform` reads `window.__burdenoffNativeBridge`, which is
|
|
7
|
+
* only published by `installNativeBridge()` during `bootNativeShell()`. Gateway
|
|
8
|
+
* URLs are resolved at module scope in every shell's `main.tsx` — BEFORE React
|
|
9
|
+
* renders and long before that boot step runs — so `isNative()` is still
|
|
10
|
+
* `false` at the moment it matters most. Anything that resolves a network
|
|
11
|
+
* target must therefore use the detector here instead.
|
|
12
|
+
*
|
|
13
|
+
* WHY IT DOES NOT IMPORT `@capacitor/core`
|
|
14
|
+
* ----------------------------------------
|
|
15
|
+
* `shared/*` is the MFE-safe half of fe-libs: a microfrontend must never
|
|
16
|
+
* resolve a Capacitor package (that is the whole reason `shell-native` is a
|
|
17
|
+
* separate, shell-only subpath). Capacitor's native runtime injects a
|
|
18
|
+
* `window.Capacitor` global into the WebView before any application script
|
|
19
|
+
* executes, which is exactly what `@capacitor/core` itself reads — so sniffing
|
|
20
|
+
* that global is both dependency-free and available at module-scope time.
|
|
21
|
+
*
|
|
22
|
+
* PRESENTATION PREVIEWS ARE DELIBERATELY NOT DETECTED HERE.
|
|
23
|
+
* `?__nativePreview=ios|android` (see `shell-native/preview`) changes how the
|
|
24
|
+
* app LOOKS in a normal browser. It must never change which backend the app
|
|
25
|
+
* talks to, so it does not set `window.Capacitor` and is invisible to this
|
|
26
|
+
* module.
|
|
27
|
+
*
|
|
28
|
+
* @module @burdenoff/fe-libs/shared/native/capacitor
|
|
29
|
+
*/
|
|
30
|
+
/** The two real Capacitor mobile platforms (`'web'` is not native). */
|
|
31
|
+
export type CapacitorNativePlatform = 'ios' | 'android';
|
|
32
|
+
/**
|
|
33
|
+
* The real Capacitor platform, or `null` when this is not a native mobile
|
|
34
|
+
* shell. Never returns a value for a presentation preview.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getCapacitorPlatform(): CapacitorNativePlatform | null;
|
|
37
|
+
/**
|
|
38
|
+
* True when running inside a real Capacitor mobile WebView (iOS or Android).
|
|
39
|
+
*
|
|
40
|
+
* Three independent signals are accepted because a wrong `false` here sends a
|
|
41
|
+
* shipped mobile app to a developer-only gateway hostname that resolves
|
|
42
|
+
* nowhere:
|
|
43
|
+
* 1. `Capacitor.isNativePlatform()` — the canonical check.
|
|
44
|
+
* 2. A platform name of `ios`/`android` — correct even if (1) is missing.
|
|
45
|
+
* 3. A `capacitor:` document protocol — the origin a shell gets when it
|
|
46
|
+
* overrides `server.iosScheme`, and proof of a native WebView on its own.
|
|
47
|
+
*/
|
|
48
|
+
export declare function isCapacitorNative(): boolean;
|
|
49
|
+
//# sourceMappingURL=capacitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacitor.d.ts","sourceRoot":"","sources":["../../../src/shared/native/capacitor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,uEAAuE;AACvE,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,SAAS,CAAC;AAiCxD;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,uBAAuB,GAAG,IAAI,CAWrE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAgB3C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/shared/native/capacitor.ts
|
|
2
|
+
function e() {
|
|
3
|
+
if (typeof window > "u") return null;
|
|
4
|
+
let e = window.Capacitor;
|
|
5
|
+
return typeof e != "object" || !e ? null : e;
|
|
6
|
+
}
|
|
7
|
+
function t(e) {
|
|
8
|
+
try {
|
|
9
|
+
let t = e.getPlatform?.();
|
|
10
|
+
if (typeof t == "string" && t) return t;
|
|
11
|
+
} catch {}
|
|
12
|
+
return typeof e.platform == "string" && e.platform ? e.platform : null;
|
|
13
|
+
}
|
|
14
|
+
function n() {
|
|
15
|
+
let n = e();
|
|
16
|
+
if (!n) return null;
|
|
17
|
+
let r = t(n);
|
|
18
|
+
return r === "ios" || r === "android" ? r : null;
|
|
19
|
+
}
|
|
20
|
+
function r() {
|
|
21
|
+
let t = e();
|
|
22
|
+
if (t) {
|
|
23
|
+
try {
|
|
24
|
+
if (t.isNativePlatform?.() === !0) return !0;
|
|
25
|
+
} catch {}
|
|
26
|
+
if (n() !== null) return !0;
|
|
27
|
+
}
|
|
28
|
+
return typeof window < "u" && window.location?.protocol === "capacitor:";
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { n as getCapacitorPlatform, r as isCapacitorNative };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type { ActionSheetButton, ActionSheetButtonStyle, ActionSheetOptions, AppState, AppStateEventDetail, BurdenoffDesktopBridge, BurdenoffNativeBridge, BurdenoffNativePlatform, ConfirmOptions, DesktopEnvironment, DesktopNotification, DesktopPlatform, DesktopQuickAction, DesktopRuntimeConfig, DesktopThemeOptions, DesktopTitlebarMode, DesktopUpdateState, DesktopUpdateStatus, DesktopWindowState, DeviceInfo, HapticImpactStyle, HapticNotificationType, KeyboardEventDetail, NativePreviewMode, NetworkStatusEventDetail, PushTokenEventDetail, SafeAreaInsets, ShareOptions, StatusBarTheme, StatusBarThemeEventDetail, ToastDuration, } from './types';
|
|
2
2
|
export { getNativeBridge } from './bridge';
|
|
3
|
+
export { isCapacitorNative, getCapacitorPlatform } from './capacitor';
|
|
4
|
+
export type { CapacitorNativePlatform } from './capacitor';
|
|
3
5
|
export { getPlatform, isAndroid, isIOS, isNative, isWeb, isElectron, isStandalonePWA, isInstalledApp, isWebBrowser, } from './platform';
|
|
4
6
|
export { nativeConfirm, nativeCopyText, nativeImpact, nativeNotify, nativeOpenUrl, nativeShare, nativeToast, } from './consumers';
|
|
5
7
|
export { SafeAreaView, type SafeAreaViewProps } from './SafeAreaView';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/native/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjE,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACT,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/native/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtE,YAAY,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,eAAe,EACf,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjE,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACT,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiGatewayProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/MultiGatewayProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiGatewayProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/MultiGatewayProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAMzE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAA4B,EAC5B,KAAa,EACb,mBAA2B,EAC3B,WAAW,EACX,cAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CAoS3B"}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { isCapacitorNative as e } from "../../native/capacitor.js";
|
|
2
|
+
import { readActiveContextValueWithUrlPrecedence as t } from "./ActiveContextStorage.js";
|
|
3
|
+
import { createGraphQLClient as n } from "../../graphql/client.js";
|
|
4
|
+
import { GatewayProvider as r } from "../../graphql/GatewayContext.js";
|
|
5
|
+
import { useAuthToken as i } from "./AuthTokenProvider.js";
|
|
6
|
+
import { useCallback as a, useEffect as o, useMemo as s, useRef as c } from "react";
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
import { ApolloProvider as u } from "@apollo/client/react";
|
|
8
9
|
//#region src/shared/providers/shell/MultiGatewayProvider.tsx
|
|
9
|
-
function
|
|
10
|
-
let { getAccessToken:
|
|
10
|
+
function d({ children: d, workspaceBaseUrl: f, globalBaseUrl: p, organizationId: m, productSlug: h, defaultGateway: g = "workspace", debug: _ = !1, enableSubscriptions: v = !1, onAuthError: y, onNetworkError: b, onRefreshToken: x }) {
|
|
11
|
+
let { getAccessToken: S, getWorkspaceToken: C, accessToken: w, workspaceToken: T } = i(), E = c({
|
|
11
12
|
workspaceClient: null,
|
|
12
13
|
globalClient: null
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let e =
|
|
14
|
+
}), D = c(null), O = a(() => {
|
|
15
|
+
D.current ||= setTimeout(() => {
|
|
16
|
+
D.current = null;
|
|
17
|
+
let e = E.current, t = [];
|
|
17
18
|
e.workspaceClient && t.push(e.workspaceClient.refetchQueries({ include: "active" })), e.globalClient && t.push(e.globalClient.refetchQueries({ include: "active" })), t.length !== 0 && Promise.allSettled(t).then((e) => {
|
|
18
|
-
if (!
|
|
19
|
+
if (!_) return;
|
|
19
20
|
let t = e.filter((e) => e.status === "rejected");
|
|
20
21
|
t.length > 0 && console.warn("[MultiGatewayProvider] Active query refresh failed after mutation", t);
|
|
21
22
|
});
|
|
22
23
|
}, 0);
|
|
23
|
-
}, [
|
|
24
|
+
}, [_]), k = a(() => {
|
|
24
25
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
25
26
|
if (e) {
|
|
26
27
|
let t = localStorage.getItem(`bf-p-${e}-locale`);
|
|
27
28
|
if (t) return t;
|
|
28
29
|
}
|
|
29
30
|
return localStorage.getItem("burdenoff-locale") || "en";
|
|
30
|
-
}, []),
|
|
31
|
+
}, []), A = a(() => {
|
|
31
32
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
32
33
|
if (e) {
|
|
33
34
|
let t = localStorage.getItem(`bf-p-${e}-geography`);
|
|
@@ -40,143 +41,143 @@ function u({ children: u, workspaceBaseUrl: d, globalBaseUrl: f, organizationId:
|
|
|
40
41
|
return JSON.parse(t);
|
|
41
42
|
} catch {}
|
|
42
43
|
return null;
|
|
43
|
-
}, []),
|
|
44
|
+
}, []), j = a(() => t("workspace"), []), M = a(() => t("project"), []), N = s(() => n({
|
|
44
45
|
gateway: "workspace",
|
|
45
|
-
baseUrl:
|
|
46
|
-
authToken:
|
|
47
|
-
workspaceToken:
|
|
48
|
-
workspaceId:
|
|
49
|
-
projectId:
|
|
50
|
-
organizationId:
|
|
51
|
-
productSlug:
|
|
52
|
-
locale:
|
|
53
|
-
geography:
|
|
54
|
-
enableSubscriptions:
|
|
55
|
-
debug:
|
|
56
|
-
onAuthError:
|
|
57
|
-
onRefreshToken:
|
|
58
|
-
onNetworkError:
|
|
59
|
-
onMutationSuccess:
|
|
46
|
+
baseUrl: f,
|
|
47
|
+
authToken: S,
|
|
48
|
+
workspaceToken: C,
|
|
49
|
+
workspaceId: j,
|
|
50
|
+
projectId: M,
|
|
51
|
+
organizationId: m,
|
|
52
|
+
productSlug: h,
|
|
53
|
+
locale: k,
|
|
54
|
+
geography: A,
|
|
55
|
+
enableSubscriptions: v,
|
|
56
|
+
debug: _,
|
|
57
|
+
onAuthError: y,
|
|
58
|
+
onRefreshToken: x,
|
|
59
|
+
onNetworkError: b,
|
|
60
|
+
onMutationSuccess: O
|
|
60
61
|
}), [
|
|
61
|
-
|
|
62
|
-
x,
|
|
62
|
+
f,
|
|
63
63
|
S,
|
|
64
|
-
|
|
64
|
+
C,
|
|
65
65
|
j,
|
|
66
|
-
|
|
66
|
+
M,
|
|
67
67
|
m,
|
|
68
|
-
|
|
68
|
+
h,
|
|
69
69
|
k,
|
|
70
|
-
|
|
71
|
-
g,
|
|
70
|
+
A,
|
|
72
71
|
v,
|
|
73
|
-
|
|
72
|
+
_,
|
|
74
73
|
y,
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
x,
|
|
75
|
+
b,
|
|
76
|
+
O
|
|
77
|
+
]), P = s(() => n({
|
|
77
78
|
gateway: "global",
|
|
78
|
-
baseUrl:
|
|
79
|
-
authToken:
|
|
80
|
-
organizationId:
|
|
81
|
-
productSlug:
|
|
82
|
-
locale:
|
|
83
|
-
geography:
|
|
84
|
-
enableSubscriptions:
|
|
85
|
-
debug:
|
|
86
|
-
onAuthError:
|
|
87
|
-
onRefreshToken:
|
|
88
|
-
onNetworkError:
|
|
89
|
-
onMutationSuccess:
|
|
79
|
+
baseUrl: p,
|
|
80
|
+
authToken: S,
|
|
81
|
+
organizationId: m,
|
|
82
|
+
productSlug: h,
|
|
83
|
+
locale: k,
|
|
84
|
+
geography: A,
|
|
85
|
+
enableSubscriptions: v,
|
|
86
|
+
debug: _,
|
|
87
|
+
onAuthError: y,
|
|
88
|
+
onRefreshToken: x,
|
|
89
|
+
onNetworkError: b,
|
|
90
|
+
onMutationSuccess: O
|
|
90
91
|
}), [
|
|
91
|
-
f,
|
|
92
|
-
x,
|
|
93
92
|
p,
|
|
93
|
+
S,
|
|
94
94
|
m,
|
|
95
|
-
|
|
95
|
+
h,
|
|
96
96
|
k,
|
|
97
|
-
|
|
98
|
-
g,
|
|
97
|
+
A,
|
|
99
98
|
v,
|
|
100
|
-
|
|
99
|
+
_,
|
|
101
100
|
y,
|
|
102
|
-
|
|
101
|
+
x,
|
|
102
|
+
b,
|
|
103
|
+
O
|
|
103
104
|
]);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
workspaceClient:
|
|
107
|
-
globalClient:
|
|
105
|
+
o(() => {
|
|
106
|
+
E.current = {
|
|
107
|
+
workspaceClient: N,
|
|
108
|
+
globalClient: P
|
|
108
109
|
};
|
|
109
|
-
}, [
|
|
110
|
-
let e =
|
|
110
|
+
}, [N, P]), o(() => {
|
|
111
|
+
let e = D;
|
|
111
112
|
return () => {
|
|
112
113
|
e.current &&= (clearTimeout(e.current), null);
|
|
113
114
|
};
|
|
114
115
|
}, []);
|
|
115
|
-
let
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
hasAccessToken: !!
|
|
119
|
-
hasWorkspaceToken: !!
|
|
116
|
+
let F = a((e) => e === "workspace" ? E.current.workspaceClient ?? N : E.current.globalClient ?? P, [N, P]);
|
|
117
|
+
return o(() => {
|
|
118
|
+
_ && console.log("[MultiGatewayProvider] Tokens updated:", {
|
|
119
|
+
hasAccessToken: !!w,
|
|
120
|
+
hasWorkspaceToken: !!T
|
|
120
121
|
});
|
|
121
122
|
}, [
|
|
122
|
-
C,
|
|
123
123
|
w,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
T,
|
|
125
|
+
_
|
|
126
|
+
]), o(() => {
|
|
126
127
|
if (typeof window > "u") return;
|
|
127
128
|
let e = async (e) => {
|
|
128
|
-
|
|
129
|
-
try {
|
|
130
|
-
M.cache.evict({ id: "ROOT_QUERY" }), M.cache.gc();
|
|
131
|
-
} catch {}
|
|
129
|
+
_ && console.log("[MultiGatewayProvider] Context changed; evicting cache + refetching", e);
|
|
132
130
|
try {
|
|
133
131
|
N.cache.evict({ id: "ROOT_QUERY" }), N.cache.gc();
|
|
134
132
|
} catch {}
|
|
135
133
|
try {
|
|
136
|
-
|
|
134
|
+
P.cache.evict({ id: "ROOT_QUERY" }), P.cache.gc();
|
|
137
135
|
} catch {}
|
|
138
136
|
try {
|
|
139
137
|
await N.refetchQueries({ include: "active" });
|
|
140
138
|
} catch {}
|
|
139
|
+
try {
|
|
140
|
+
await P.refetchQueries({ include: "active" });
|
|
141
|
+
} catch {}
|
|
141
142
|
};
|
|
142
143
|
return window.addEventListener("burdenoff:workspace-changed", e), window.addEventListener("burdenoff:organization-changed", e), window.addEventListener("burdenoff:project-changed", e), () => {
|
|
143
144
|
window.removeEventListener("burdenoff:workspace-changed", e), window.removeEventListener("burdenoff:organization-changed", e), window.removeEventListener("burdenoff:project-changed", e);
|
|
144
145
|
};
|
|
145
146
|
}, [
|
|
146
|
-
M,
|
|
147
147
|
N,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
P,
|
|
149
|
+
_
|
|
150
|
+
]), o(() => {
|
|
151
|
+
let t = N, n = P;
|
|
151
152
|
return () => {
|
|
152
|
-
if (
|
|
153
|
+
if (_ && console.log("[MultiGatewayProvider] Cleaning up Apollo clients"), !(typeof window < "u" && !e() && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.endsWith(".local.burdenoff.com")))) {
|
|
153
154
|
try {
|
|
154
|
-
|
|
155
|
+
t.stop();
|
|
155
156
|
} catch {}
|
|
156
157
|
try {
|
|
157
|
-
|
|
158
|
+
n.stop();
|
|
158
159
|
} catch {}
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
162
|
}, [
|
|
162
|
-
M,
|
|
163
163
|
N,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
P,
|
|
165
|
+
_
|
|
166
|
+
]), /* @__PURE__ */ l(r, {
|
|
167
|
+
value: s(() => ({
|
|
168
|
+
workspaceClient: N,
|
|
169
|
+
globalClient: P,
|
|
170
|
+
getClient: F
|
|
170
171
|
}), [
|
|
171
|
-
M,
|
|
172
172
|
N,
|
|
173
|
-
P
|
|
173
|
+
P,
|
|
174
|
+
F
|
|
174
175
|
]),
|
|
175
|
-
children: /* @__PURE__ */
|
|
176
|
-
client:
|
|
177
|
-
children:
|
|
176
|
+
children: /* @__PURE__ */ l(u, {
|
|
177
|
+
client: g === "workspace" ? N : P,
|
|
178
|
+
children: d
|
|
178
179
|
})
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
182
|
//#endregion
|
|
182
|
-
export {
|
|
183
|
+
export { d as MultiGatewayProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authCookie.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/authCookie.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"authCookie.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/authCookie.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AA4DD,wBAAgB,uBAAuB,IAAI,OAAO,CAejD;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,SAA2B,GAAG,OAAO,CAU9E;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAqC7E;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,SAAyB,GAAG,IAAI,CAU3F;AAED,wBAAgB,kBAAkB,IAAI,kBAAkB,GAAG,IAAI,CAS9D;AAED,wBAAgB,oBAAoB,IAAI,IAAI,CAQ3C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAI5C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|