@baseplate-dev/plugin-auth 0.6.10 → 0.6.11
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/CHANGELOG.md +16 -0
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ClIdhDoz.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DEljr3MS.js} +37 -29
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-B6a7L2-k.js +346 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-JKpdJ1L0.js +89 -0
- package/dist/web/assets/{dist-BhvYza4J.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js} +6408 -2424
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.mjs-CCE3BH4R.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js} +206 -1086
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.mjs-BalS-ZNe.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js} +271 -20
- package/dist/web/assets/auth-YjeUffyx.js +1 -0
- package/dist/web/assets/{common-ERn8TuKQ.js → common-B3OG-gju.js} +3 -3
- package/dist/web/assets/{common-C7yhhy8-.js → common-CTWnBc6I.js} +5 -5
- package/dist/web/assets/{common-DsAJIAWm.js → common-CzNLnT_1.js} +3 -3
- package/dist/web/assets/{common-KNIYXbku.js → common-g_Gn0v5J.js} +3 -3
- package/dist/web/assets/{common-DpbhYjND.js → common-kfSP8YQO.js} +5 -5
- package/dist/web/assets/{common-DiDohcsR.js → common-zfktVQvk.js} +3 -3
- package/dist/web/assets/{dist-B0GpYPx6.js → dist-C6kDPCTC.js} +217 -214
- package/dist/web/assets/{get-auth-plugin-definition-Bu_lkrUz.js → get-auth-plugin-definition-2vFJROjB.js} +2 -2
- package/dist/web/assets/hostInit-35H-qR11.js +119 -0
- package/dist/web/assets/{index-D5GoD4M0.js → index-Cr47LBtj.js} +2 -2
- package/dist/web/assets/mf-entry-bootstrap-0-13480d2a.js +32 -0
- package/dist/web/assets/{model-utils-BPfI0c3Y.js → model-utils-ZF_FVZ_o.js} +15 -15
- package/dist/web/assets/{models-BufWBHGv.js → models-CORL4i-6.js} +3 -3
- package/dist/web/assets/{models-BTYxwDyB.js → models-DPPMgQz_.js} +3 -3
- package/dist/web/assets/{plugin-definition-BTHzuXv5.js → plugin-definition-UAfMRa7u.js} +3 -3
- package/dist/web/assets/{plugin-definition-D5s4GTfd.js → plugin-definition-mNNM2hOB.js} +3 -3
- package/dist/web/assets/{rolldown-runtime-_TIqcEvS.js → rolldown-runtime-FZ4Itg2g.js} +8 -1
- package/dist/web/assets/{styles-CAm3HyKx.css → styles-Cc26Bbxc.css} +1 -1
- package/dist/web/assets/{styles-BpmWykfT.js → styles-DNVWarsT.js} +8 -9
- package/dist/web/assets/{virtualExposes-Bru0eAhP.js → virtualExposes-CZsMFYa2.js} +1 -1
- package/dist/web/assets/{dist-CEUHjZe8.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bt9-dftr.js} +1175 -300
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DC8YPV1Z.js +129 -0
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DBiKf3iL.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-CmilMd0E.js} +15 -15
- package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
- package/dist/web/assets/{web-BUa3uD-P.js → web-BbqWFVPH.js} +16 -19
- package/dist/web/assets/{web-BmHd5WWD.js → web-BldKZtQd.js} +10 -11
- package/dist/web/assets/{web-DhTqWxxL.js → web-CNMEeTj-.js} +3 -3
- package/dist/web/assets/{web-ffSErgfF.js → web-CnsQCdFE.js} +3 -3
- package/dist/web/assets/{web-CgosRRUN.js → web-DiGj_0d0.js} +14 -15
- package/dist/web/assets/{web-DlJyNEbj.js → web-OntIhIfe.js} +29 -31
- package/dist/web/assets/{web-nADEuz1b.js → web-y8E7eNgy.js} +11 -12
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +43 -0
- package/package.json +18 -18
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.mjs-DMKuehfC.js +0 -100
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.mjs-D-Ap1aU9.js +0 -38
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.mjs-BwkXxd-B.js +0 -38
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__-D-_Nu6mi.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__-Bed38hA6.js +0 -3
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react_mf_2_dom__loadShare__-Bixm3Wfj.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__-BArWH8PX.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild___mf_0_tanstack_mf_1_react_mf_2_router__prebuild__-C01b4AWM.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react__prebuild__-D4n2cb00.js +0 -3
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BkswA-5f.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_2_dom__prebuild__-CiX5bkAg.js +0 -2
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__zod__prebuild__-BnF6dd62.js +0 -2
- package/dist/web/assets/auth-B91ghZtH.js +0 -1
- package/dist/web/assets/hostInit-BeM6xnlw.js +0 -72
- package/dist/web/assets/index.esm-iUXrvsTx.js +0 -2003
- package/dist/web/assets/md-BLjaL5ZD.js +0 -439
- package/dist/web/assets/react-B4hMnLhV.js +0 -49
- package/dist/web/assets/stringify-pretty-stable-ByfjYf8u.js +0 -155
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-DK03x1PZ.js +0 -270
- package/dist/web/mf-entry-bootstrap-0.js +0 -17
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { w as __vitePreload } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.mjs-DMKuehfC.js";
|
|
2
|
-
import { t as init$1 } from "./dist-CEUHjZe8.js";
|
|
3
|
-
//#region virtual:mf-REMOTE_ENTRY_ID:__mfe_internal__plugin-auth__remoteEntry_js
|
|
4
|
-
if (typeof __VUE_HMR_RUNTIME__ === "undefined") globalThis.__VUE_HMR_RUNTIME__ = {
|
|
5
|
-
createRecord() {},
|
|
6
|
-
rerender() {},
|
|
7
|
-
reload() {}
|
|
8
|
-
};
|
|
9
|
-
var __mfResolveGlobalKey = "__mf_init__virtual:mf:__mfe_internal__plugin_mf_2_auth__mf_v__runtimeInit__mf_v__.js__";
|
|
10
|
-
var __mfResolveState = globalThis[__mfResolveGlobalKey];
|
|
11
|
-
if (!__mfResolveState) {
|
|
12
|
-
let initResolve, initReject;
|
|
13
|
-
const initPromise = new Promise((re, rj) => {
|
|
14
|
-
initResolve = re;
|
|
15
|
-
initReject = rj;
|
|
16
|
-
});
|
|
17
|
-
__mfResolveState = globalThis[__mfResolveGlobalKey] = {
|
|
18
|
-
initPromise,
|
|
19
|
-
initResolve,
|
|
20
|
-
initReject
|
|
21
|
-
};
|
|
22
|
-
if (typeof window === "undefined") initResolve({
|
|
23
|
-
loadRemote: function() {
|
|
24
|
-
return Promise.resolve(void 0);
|
|
25
|
-
},
|
|
26
|
-
loadShare: function() {
|
|
27
|
-
return Promise.resolve(void 0);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
var initResolve = __mfResolveState.initResolve;
|
|
32
|
-
var __mfCacheGlobalKey = "__mf_module_cache__";
|
|
33
|
-
globalThis[__mfCacheGlobalKey] ||= {
|
|
34
|
-
share: {},
|
|
35
|
-
remote: {}
|
|
36
|
-
};
|
|
37
|
-
globalThis[__mfCacheGlobalKey].share ||= {};
|
|
38
|
-
globalThis[__mfCacheGlobalKey].remote ||= {};
|
|
39
|
-
var __mfModuleCache = globalThis[__mfCacheGlobalKey];
|
|
40
|
-
var initTokens = {};
|
|
41
|
-
var shareScopeName = "default";
|
|
42
|
-
var mfName = "__mfe_internal__plugin-auth";
|
|
43
|
-
var localSharedImportMapPromise;
|
|
44
|
-
var exposesMapPromise;
|
|
45
|
-
async function retrySharedInit(fn) {
|
|
46
|
-
for (let attempt = 0;; attempt++) try {
|
|
47
|
-
return await fn();
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw e;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
async function getLocalSharedImportMap() {
|
|
53
|
-
if (!localSharedImportMapPromise) localSharedImportMapPromise = retrySharedInit(() => __vitePreload(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ClIdhDoz.js"), [], import.meta.url)).catch((e) => {
|
|
54
|
-
localSharedImportMapPromise = void 0;
|
|
55
|
-
throw e;
|
|
56
|
-
});
|
|
57
|
-
return localSharedImportMapPromise;
|
|
58
|
-
}
|
|
59
|
-
async function getExposesMap() {
|
|
60
|
-
if (!exposesMapPromise) exposesMapPromise = retrySharedInit(() => __vitePreload(() => import("./virtualExposes-Bru0eAhP.js"), [], import.meta.url)).then((mod) => mod.default ?? mod).catch((e) => {
|
|
61
|
-
exposesMapPromise = void 0;
|
|
62
|
-
throw e;
|
|
63
|
-
});
|
|
64
|
-
return exposesMapPromise;
|
|
65
|
-
}
|
|
66
|
-
async function init(shared = {}, initScope = []) {
|
|
67
|
-
const { usedShared, usedRemotes } = await getLocalSharedImportMap();
|
|
68
|
-
if (__mfModuleCache.share["react"] === void 0) {
|
|
69
|
-
const mod = await __vitePreload(() => import("./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__-Bed38hA6.js"), [], import.meta.url);
|
|
70
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
71
|
-
let current = mod;
|
|
72
|
-
for (let i = 0; i < 5; i++) {
|
|
73
|
-
const defaultExport = current?.default;
|
|
74
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
75
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
76
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
77
|
-
current = defaultExport;
|
|
78
|
-
}
|
|
79
|
-
return current;
|
|
80
|
-
};
|
|
81
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
82
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
83
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
84
|
-
value: true,
|
|
85
|
-
enumerable: false
|
|
86
|
-
});
|
|
87
|
-
__mfModuleCache.share["react"] = exportModule;
|
|
88
|
-
}
|
|
89
|
-
if (__mfModuleCache.share["react-dom"] === void 0) {
|
|
90
|
-
const mod = await __vitePreload(() => import("./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react_mf_2_dom__loadShare__-Bixm3Wfj.js"), [], import.meta.url);
|
|
91
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
92
|
-
let current = mod;
|
|
93
|
-
for (let i = 0; i < 5; i++) {
|
|
94
|
-
const defaultExport = current?.default;
|
|
95
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
96
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
97
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
98
|
-
current = defaultExport;
|
|
99
|
-
}
|
|
100
|
-
return current;
|
|
101
|
-
};
|
|
102
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
103
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
104
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
105
|
-
value: true,
|
|
106
|
-
enumerable: false
|
|
107
|
-
});
|
|
108
|
-
__mfModuleCache.share["react-dom"] = exportModule;
|
|
109
|
-
}
|
|
110
|
-
if (__mfModuleCache.share["@baseplate-dev/project-builder-lib"] === void 0) {
|
|
111
|
-
const mod = await __vitePreload(() => import("./dist-B0GpYPx6.js"), [], import.meta.url);
|
|
112
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
113
|
-
let current = mod;
|
|
114
|
-
for (let i = 0; i < 5; i++) {
|
|
115
|
-
const defaultExport = current?.default;
|
|
116
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
117
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
118
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
119
|
-
current = defaultExport;
|
|
120
|
-
}
|
|
121
|
-
return current;
|
|
122
|
-
};
|
|
123
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
124
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
125
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
126
|
-
value: true,
|
|
127
|
-
enumerable: false
|
|
128
|
-
});
|
|
129
|
-
__mfModuleCache.share["@baseplate-dev/project-builder-lib"] = exportModule;
|
|
130
|
-
}
|
|
131
|
-
if (__mfModuleCache.share["@baseplate-dev/project-builder-lib/web"] === void 0) {
|
|
132
|
-
const mod = await __vitePreload(() => import("./web-BUa3uD-P.js"), [], import.meta.url);
|
|
133
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
134
|
-
let current = mod;
|
|
135
|
-
for (let i = 0; i < 5; i++) {
|
|
136
|
-
const defaultExport = current?.default;
|
|
137
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
138
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
139
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
140
|
-
current = defaultExport;
|
|
141
|
-
}
|
|
142
|
-
return current;
|
|
143
|
-
};
|
|
144
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
145
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
146
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
147
|
-
value: true,
|
|
148
|
-
enumerable: false
|
|
149
|
-
});
|
|
150
|
-
__mfModuleCache.share["@baseplate-dev/project-builder-lib/web"] = exportModule;
|
|
151
|
-
}
|
|
152
|
-
if (__mfModuleCache.share["@baseplate-dev/ui-components"] === void 0) {
|
|
153
|
-
const mod = await __vitePreload(() => import("./dist-BhvYza4J.js"), [], import.meta.url);
|
|
154
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
155
|
-
let current = mod;
|
|
156
|
-
for (let i = 0; i < 5; i++) {
|
|
157
|
-
const defaultExport = current?.default;
|
|
158
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
159
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
160
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
161
|
-
current = defaultExport;
|
|
162
|
-
}
|
|
163
|
-
return current;
|
|
164
|
-
};
|
|
165
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
166
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
167
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
168
|
-
value: true,
|
|
169
|
-
enumerable: false
|
|
170
|
-
});
|
|
171
|
-
__mfModuleCache.share["@baseplate-dev/ui-components"] = exportModule;
|
|
172
|
-
}
|
|
173
|
-
if (__mfModuleCache.share["@tanstack/react-router"] === void 0) {
|
|
174
|
-
const mod = await __vitePreload(() => import("./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__-D-_Nu6mi.js"), [], import.meta.url);
|
|
175
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
176
|
-
let current = mod;
|
|
177
|
-
for (let i = 0; i < 5; i++) {
|
|
178
|
-
const defaultExport = current?.default;
|
|
179
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
180
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
181
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
182
|
-
current = defaultExport;
|
|
183
|
-
}
|
|
184
|
-
return current;
|
|
185
|
-
};
|
|
186
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
187
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
188
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
189
|
-
value: true,
|
|
190
|
-
enumerable: false
|
|
191
|
-
});
|
|
192
|
-
__mfModuleCache.share["@tanstack/react-router"] = exportModule;
|
|
193
|
-
}
|
|
194
|
-
if (__mfModuleCache.share["zod"] === void 0) {
|
|
195
|
-
const mod = await __vitePreload(() => import("./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__-BArWH8PX.js"), [], import.meta.url);
|
|
196
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
197
|
-
let current = mod;
|
|
198
|
-
for (let i = 0; i < 5; i++) {
|
|
199
|
-
const defaultExport = current?.default;
|
|
200
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
201
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
202
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
203
|
-
current = defaultExport;
|
|
204
|
-
}
|
|
205
|
-
return current;
|
|
206
|
-
};
|
|
207
|
-
const normalizedModule = __mfNormalizeRuntimeShare(mod);
|
|
208
|
-
const exportModule = normalizedModule === mod ? { ...mod } : normalizedModule;
|
|
209
|
-
Object.defineProperty(exportModule, "__esModule", {
|
|
210
|
-
value: true,
|
|
211
|
-
enumerable: false
|
|
212
|
-
});
|
|
213
|
-
__mfModuleCache.share["zod"] = exportModule;
|
|
214
|
-
}
|
|
215
|
-
const initRes = init$1({
|
|
216
|
-
name: mfName,
|
|
217
|
-
remotes: usedRemotes,
|
|
218
|
-
shared: usedShared,
|
|
219
|
-
plugins: [],
|
|
220
|
-
shareStrategy: "version-first"
|
|
221
|
-
});
|
|
222
|
-
var initToken = initTokens[shareScopeName];
|
|
223
|
-
if (!initToken) initToken = initTokens[shareScopeName] = { from: mfName };
|
|
224
|
-
if (initScope.indexOf(initToken) >= 0) return;
|
|
225
|
-
initScope.push(initToken);
|
|
226
|
-
initRes.initShareScopeMap("default", shared);
|
|
227
|
-
initResolve(initRes);
|
|
228
|
-
try {
|
|
229
|
-
await retrySharedInit(async () => {
|
|
230
|
-
await Promise.all(await initRes.initializeSharing("default", {
|
|
231
|
-
strategy: "version-first",
|
|
232
|
-
from: "build",
|
|
233
|
-
initScope
|
|
234
|
-
}));
|
|
235
|
-
});
|
|
236
|
-
} catch (e) {
|
|
237
|
-
console.error("[Module Federation]", e);
|
|
238
|
-
}
|
|
239
|
-
for (const [pkg, share] of Object.entries(usedShared)) {
|
|
240
|
-
if (share.shareConfig?.import !== false || __mfModuleCache.share[pkg] !== void 0) continue;
|
|
241
|
-
const __mfNormalizeRuntimeShare = (mod) => {
|
|
242
|
-
let current = mod;
|
|
243
|
-
for (let i = 0; i < 5; i++) {
|
|
244
|
-
const defaultExport = current?.default;
|
|
245
|
-
if (!defaultExport || typeof defaultExport !== "object") break;
|
|
246
|
-
const namedValues = Object.keys(current).filter((key) => key !== "default").map((key) => current[key]);
|
|
247
|
-
if (namedValues.length > 0 && namedValues.some((value) => value !== void 0)) break;
|
|
248
|
-
current = defaultExport;
|
|
249
|
-
}
|
|
250
|
-
return current;
|
|
251
|
-
};
|
|
252
|
-
const versions = shared?.[pkg];
|
|
253
|
-
const provider = versions && versions[Object.keys(versions)[0]];
|
|
254
|
-
if (!provider) continue;
|
|
255
|
-
const factory = provider.lib || (provider.loading ? await provider.loading : await provider.get?.());
|
|
256
|
-
const mod = typeof factory === "function" ? factory() : factory;
|
|
257
|
-
const resolved = await Promise.resolve(mod);
|
|
258
|
-
__mfModuleCache.share[pkg] = __mfNormalizeRuntimeShare(resolved);
|
|
259
|
-
}
|
|
260
|
-
return initRes;
|
|
261
|
-
}
|
|
262
|
-
async function getExposes(moduleName) {
|
|
263
|
-
const exposesMap = await getExposesMap();
|
|
264
|
-
if (!(moduleName in exposesMap)) throw new Error(`[Module Federation] Module ${moduleName} does not exist in container.`);
|
|
265
|
-
return exposesMap[moduleName]().then((res) => () => res);
|
|
266
|
-
}
|
|
267
|
-
//#endregion
|
|
268
|
-
export { init as n, getExposes as t };
|
|
269
|
-
|
|
270
|
-
//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-DK03x1PZ.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const __mfCacheGlobalKey = "__mf_module_cache__";
|
|
3
|
-
globalThis[__mfCacheGlobalKey] ||= { share: {}, remote: {} };
|
|
4
|
-
globalThis[__mfCacheGlobalKey].share ||= {};
|
|
5
|
-
globalThis[__mfCacheGlobalKey].remote ||= {};
|
|
6
|
-
const __mfModuleCache = globalThis[__mfCacheGlobalKey];
|
|
7
|
-
|
|
8
|
-
const __mfImport = (src) =>
|
|
9
|
-
globalThis.System && typeof globalThis.System.import === 'function'
|
|
10
|
-
? globalThis.System.import(src)
|
|
11
|
-
: import(src);
|
|
12
|
-
(async () => {
|
|
13
|
-
const { initHost } = await __mfImport("./assets/hostInit-BeM6xnlw.js");
|
|
14
|
-
const runtime = await initHost();
|
|
15
|
-
const __mfRemotePreloads = [];
|
|
16
|
-
await Promise.all(__mfRemotePreloads);
|
|
17
|
-
})().then(() => __mfImport("./assets/index-D5GoD4M0.js"));
|