@m4l/components 9.8.0 → 9.8.1-beta-feat-mfloader-observability-prep-20260506.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +11 -0
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +55 -54
- package/components/MFIsolationApp/MFIsolationAppErrorBoundary.d.ts +28 -0
- package/components/MFIsolationApp/MFIsolationAppErrorBoundary.d.ts.map +1 -0
- package/components/MFIsolationApp/MFIsolationAppErrorBoundary.js +34 -0
- package/components/MFIsolationApp/index.d.ts +2 -1
- package/components/MFIsolationApp/index.d.ts.map +1 -1
- package/components/MFIsolationApp/runtimeErrors.d.ts +20 -0
- package/components/MFIsolationApp/runtimeErrors.d.ts.map +1 -0
- package/components/MFIsolationApp/runtimeErrors.js +18 -0
- package/components/MFIsolationApp/types.d.ts +2 -0
- package/components/MFIsolationApp/types.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.d.ts +1 -0
- package/components/MFLoader/MFLoader.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.js +121 -163
- package/components/MFLoader/MFLoader.styles.d.ts +3 -0
- package/components/MFLoader/MFLoader.styles.d.ts.map +1 -0
- package/components/MFLoader/MFLoader.styles.js +50 -0
- package/components/MFLoader/constants.d.ts +2 -0
- package/components/MFLoader/constants.d.ts.map +1 -0
- package/components/MFLoader/constants.js +4 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/createObservableLoaderMF.d.ts +13 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/createObservableLoaderMF.d.ts.map +1 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/createObservableLoaderMF.js +188 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/index.d.ts +3 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/index.d.ts.map +1 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/types.d.ts +156 -0
- package/components/MFLoader/helpers/createObservableLoaderMF/types.d.ts.map +1 -0
- package/components/MFLoader/helpers/emitFrontendTelemetry/emitFrontendTelemetry.d.ts +7 -0
- package/components/MFLoader/helpers/emitFrontendTelemetry/emitFrontendTelemetry.d.ts.map +1 -0
- package/components/MFLoader/helpers/emitFrontendTelemetry/emitFrontendTelemetry.js +18 -0
- package/components/MFLoader/helpers/emitFrontendTelemetry/index.d.ts +2 -0
- package/components/MFLoader/helpers/emitFrontendTelemetry/index.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/index.d.ts +3 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/index.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/mfRuntimeUtils.d.ts +67 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/mfRuntimeUtils.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/mfRuntimeUtils.js +71 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/types.d.ts +17 -0
- package/components/MFLoader/helpers/mfRuntimeUtils/types.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfWindowRegistry/index.d.ts +3 -0
- package/components/MFLoader/helpers/mfWindowRegistry/index.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfWindowRegistry/mfWindowRegistry.d.ts +30 -0
- package/components/MFLoader/helpers/mfWindowRegistry/mfWindowRegistry.d.ts.map +1 -0
- package/components/MFLoader/helpers/mfWindowRegistry/mfWindowRegistry.js +65 -0
- package/components/MFLoader/helpers/mfWindowRegistry/types.d.ts +6 -0
- package/components/MFLoader/helpers/mfWindowRegistry/types.d.ts.map +1 -0
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/index.d.ts +2 -0
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/index.d.ts.map +1 -0
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts +7 -0
- package/components/MFLoader/helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFLifecycle/index.d.ts +3 -0
- package/components/MFLoader/hooks/useMFLifecycle/index.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFLifecycle/types.d.ts +137 -0
- package/components/MFLoader/hooks/useMFLifecycle/types.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFLifecycle/useMFLifecycle.d.ts +7 -0
- package/components/MFLoader/hooks/useMFLifecycle/useMFLifecycle.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFLifecycle/useMFLifecycle.js +101 -0
- package/components/MFLoader/hooks/useMFRender/index.d.ts +3 -0
- package/components/MFLoader/hooks/useMFRender/index.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFRender/types.d.ts +105 -0
- package/components/MFLoader/hooks/useMFRender/types.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFRender/useMFRender.d.ts +7 -0
- package/components/MFLoader/hooks/useMFRender/useMFRender.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFRender/useMFRender.js +125 -0
- package/components/MFLoader/hooks/useMFSwap/index.d.ts +3 -0
- package/components/MFLoader/hooks/useMFSwap/index.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFSwap/types.d.ts +112 -0
- package/components/MFLoader/hooks/useMFSwap/types.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFSwap/useMFSwap.d.ts +7 -0
- package/components/MFLoader/hooks/useMFSwap/useMFSwap.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFSwap/useMFSwap.js +63 -0
- package/components/MFLoader/hooks/useMFTelemetry/index.d.ts +3 -0
- package/components/MFLoader/hooks/useMFTelemetry/index.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFTelemetry/types.d.ts +98 -0
- package/components/MFLoader/hooks/useMFTelemetry/types.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFTelemetry/useMFTelemetry.d.ts +7 -0
- package/components/MFLoader/hooks/useMFTelemetry/useMFTelemetry.d.ts.map +1 -0
- package/components/MFLoader/hooks/useMFTelemetry/useMFTelemetry.js +126 -0
- package/components/MFLoader/index.d.ts +1 -1
- package/components/MFLoader/index.d.ts.map +1 -1
- package/components/MFLoader/slots/MFLoaderEnum.d.ts +7 -0
- package/components/MFLoader/slots/MFLoaderEnum.d.ts.map +1 -0
- package/components/MFLoader/slots/MFLoaderEnum.js +4 -0
- package/components/MFLoader/slots/MFLoaderSlots.d.ts +14 -0
- package/components/MFLoader/slots/MFLoaderSlots.d.ts.map +1 -0
- package/components/MFLoader/slots/MFLoaderSlots.js +23 -0
- package/components/MFLoader/slots/index.d.ts +4 -0
- package/components/MFLoader/slots/index.d.ts.map +1 -0
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts +1 -0
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index.d.ts.map +1 -1
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index.js +5 -5
- package/components/MFLoader/types.d.ts +76 -0
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Component/index.js +3 -3
- package/index.js +261 -257
- package/package.json +5 -5
- package/components/MFLoader/classes/constants.d.ts +0 -2
- package/components/MFLoader/classes/constants.d.ts.map +0 -1
- package/components/MFLoader/classes/constants.js +0 -4
- package/components/MFLoader/classes/index.d.ts +0 -11
- package/components/MFLoader/classes/index.d.ts.map +0 -1
- package/components/MFLoader/classes/index.js +0 -23
- package/components/MFLoader/classes/types.d.ts +0 -8
- package/components/MFLoader/classes/types.d.ts.map +0 -1
- package/components/MFLoader/helper.d.ts +0 -67
- package/components/MFLoader/helper.d.ts.map +0 -1
- package/components/MFLoader/helper.js +0 -203
- package/components/MFLoader/hostRuntime.d.ts +0 -6
- package/components/MFLoader/hostRuntime.d.ts.map +0 -1
- package/components/MFLoader/styles.d.ts +0 -10
- package/components/MFLoader/styles.d.ts.map +0 -1
- package/components/MFLoader/styles.js +0 -37
- /package/components/MFLoader/{hostRuntime.js → helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js} +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -312,6 +312,10 @@ import {
|
|
|
312
312
|
MFIsolationAppOwnerState,
|
|
313
313
|
MFIsolationAppSlotsType,
|
|
314
314
|
} from '../components/MFIsolationApp/types';
|
|
315
|
+
import {
|
|
316
|
+
MFLoaderMountContainerOwnerState,
|
|
317
|
+
MFLoaderSlotsType,
|
|
318
|
+
} from '../components/MFLoader/types';
|
|
315
319
|
import {
|
|
316
320
|
TagsFormatterOwnerState,
|
|
317
321
|
TagsFormatterSlotsType,
|
|
@@ -455,6 +459,7 @@ declare module '@mui/material/styles' {
|
|
|
455
459
|
M4LActionsGroup: ActionsGroupSlotsType;
|
|
456
460
|
M4LTabsNavigator: TabsNavigatorSlotsType;
|
|
457
461
|
M4LEditLabel: EditLabelSlotsType;
|
|
462
|
+
M4LMFLoader: MFLoaderSlotsType;
|
|
458
463
|
M4LMFIsolationApp: MFIsolationAppSlotsType;
|
|
459
464
|
M4LTagsFormatter: TagsFormatterSlotsType;
|
|
460
465
|
M4LIconsFormatter: IconsFormatterSlotsType;
|
|
@@ -563,6 +568,7 @@ declare module '@mui/material/styles' {
|
|
|
563
568
|
M4LActionsGroup: Partial<ActionsGroupOwnerState>;
|
|
564
569
|
M4LTabsNavigator: Partial<TabsNavigatorOwnerState>;
|
|
565
570
|
M4LEditLabel: Partial<EditLabelOwnerState>;
|
|
571
|
+
M4LMFLoader: Partial<MFLoaderMountContainerOwnerState>;
|
|
566
572
|
M4LMFIsolationApp: Partial<MFIsolationAppOwnerState>;
|
|
567
573
|
M4LTagsFormatter: Partial<TagsFormatterOwnerState>;
|
|
568
574
|
M4LIconsFormatter: Partial<IconsFormatterOwnerState>;
|
|
@@ -1035,6 +1041,11 @@ declare module '@mui/material/styles' {
|
|
|
1035
1041
|
styleOverrides?: ComponentsOverrides<Theme>['M4LMFIsolationApp'];
|
|
1036
1042
|
variants?: ComponentsVariants['M4LMFIsolationApp'];
|
|
1037
1043
|
};
|
|
1044
|
+
M4LMFLoader?: {
|
|
1045
|
+
defaultProps?: ComponentsPropsList['M4LMFLoader'];
|
|
1046
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LMFLoader'];
|
|
1047
|
+
variants?: ComponentsVariants['M4LMFLoader'];
|
|
1048
|
+
};
|
|
1038
1049
|
M4LTagsFormatter?: {
|
|
1039
1050
|
defaultProps?: ComponentsPropsList['M4LTagsFormatter'];
|
|
1040
1051
|
styleOverrides?: ComponentsOverrides<Theme>['M4LTagsFormatter'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFIsolationApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/MFIsolationApp.tsx"],"names":[],"mappings":"AAKA,OAAO,wBAAwB,CAAC;AAgBhC,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MFIsolationApp.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/MFIsolationApp.tsx"],"names":[],"mappings":"AAKA,OAAO,wBAAwB,CAAC;AAgBhC,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AA+DjB;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,oDA4KxD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as R } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as c, useCallback as f, useId as V } from "react";
|
|
3
3
|
import { unstable_HistoryRouter as X } from "react-router-dom";
|
|
4
4
|
import { createBrowserHistory as Y } from "history";
|
|
5
5
|
import oo from "eventemitter3";
|
|
@@ -8,23 +8,24 @@ import "rsuite/dist/rsuite.css";
|
|
|
8
8
|
import { DeviceTypeProvider as eo, ThemeSettingsProvider as to, LocalesProvider as ro, getLocaleFromNetwork as so, AppearanceComponentProvider as io } from "@m4l/graphics";
|
|
9
9
|
import { axiosOperation as no, EnvironmentProvider as ao, HostToolsProvider as mo, NetworkProvider as po, AuthProvider as lo, useAuth as co, useEnvironment as ho } from "@m4l/core";
|
|
10
10
|
import { WrapperAppBarContentChildrenStyled as uo, WrapperContentChildrenStyled as vo } from "./slots/MFIsolationAppSlots.js";
|
|
11
|
-
import fo from "
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { MFIsolationAppErrorBoundary as fo } from "./MFIsolationAppErrorBoundary.js";
|
|
12
|
+
import Ao from "../ToastContainer/helpers/toaster.js";
|
|
13
|
+
import { MFAuthApp as _o } from "./subcomponents/MFAuthApp/MFAuthApp.js";
|
|
14
|
+
import { BaseModule as Po } from "../BaseModule/BaseModule.js";
|
|
15
|
+
import { SettingsLayout as Io } from "../SettingsLayout/SettingsLayout.js";
|
|
16
|
+
import { ToastContainer as go } from "../ToastContainer/ToastContainer.js";
|
|
17
|
+
import { PopupsProvider as yo } from "../popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
17
18
|
import { AreasProvider as Ro } from "../areas/contexts/AreasContext/index.js";
|
|
18
19
|
import { AppBarSettings as ko } from "./subcomponents/AppBarSettings/AppBarSettings.js";
|
|
19
20
|
import { HostRuntimeProvider as wo } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
|
|
20
21
|
const k = Y({ window });
|
|
21
|
-
function
|
|
22
|
+
function Lo(h) {
|
|
22
23
|
const { children: u, hostRuntime: s, resolveHostRuntime: i } = h, { user: n } = co(), {
|
|
23
24
|
database: a,
|
|
24
25
|
hostApiIcons: m,
|
|
25
26
|
hostApiLocal: p,
|
|
26
27
|
hostApiRemote: l
|
|
27
|
-
} = ho(), v =
|
|
28
|
+
} = ho(), v = c(() => i ? i({
|
|
28
29
|
database: a,
|
|
29
30
|
hostApiIcons: m,
|
|
30
31
|
hostApiLocal: p,
|
|
@@ -41,7 +42,7 @@ function yo(h) {
|
|
|
41
42
|
]);
|
|
42
43
|
return /* @__PURE__ */ o(wo, { value: v, children: u });
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function Go(h) {
|
|
45
46
|
const {
|
|
46
47
|
children: u,
|
|
47
48
|
user: s,
|
|
@@ -54,27 +55,27 @@ function qo(h) {
|
|
|
54
55
|
host_api_icons: l,
|
|
55
56
|
hostApiRemote: v,
|
|
56
57
|
host_api_remote: w,
|
|
57
|
-
host_static_assets:
|
|
58
|
-
environment_assets:
|
|
59
|
-
moduleId:
|
|
60
|
-
skeletonFlags:
|
|
61
|
-
moduleNameField:
|
|
62
|
-
privileges:
|
|
63
|
-
componentsDictionary:
|
|
58
|
+
host_static_assets: L,
|
|
59
|
+
environment_assets: F,
|
|
60
|
+
moduleId: _,
|
|
61
|
+
skeletonFlags: b,
|
|
62
|
+
moduleNameField: C,
|
|
63
|
+
privileges: E,
|
|
64
|
+
componentsDictionary: S,
|
|
64
65
|
onLoad: T,
|
|
65
66
|
activeAreasNetwork: x = !1,
|
|
66
67
|
activeCookiesFromNetwork: H = !1,
|
|
67
68
|
// observedDivRef,
|
|
68
|
-
moduleDictionaryLoaded:
|
|
69
|
-
forcedDeviceType:
|
|
70
|
-
areasStoreId:
|
|
71
|
-
areasStoreDevtoolsEnabled:
|
|
72
|
-
appBarSettings:
|
|
73
|
-
axiosOperation:
|
|
69
|
+
moduleDictionaryLoaded: M,
|
|
70
|
+
forcedDeviceType: B,
|
|
71
|
+
areasStoreId: P,
|
|
72
|
+
areasStoreDevtoolsEnabled: I,
|
|
73
|
+
appBarSettings: D = !0,
|
|
74
|
+
axiosOperation: N = no,
|
|
74
75
|
googleMapsApiKey: O,
|
|
75
76
|
hostRuntime: j,
|
|
76
77
|
resolveHostRuntime: W
|
|
77
|
-
} = h,
|
|
78
|
+
} = h, g = a ?? m ?? "", d = v ?? w ?? "", $ = p ?? l ?? `${d}/main/icons`, e = c(() => new oo(), []), K = f(
|
|
78
79
|
(t, r) => {
|
|
79
80
|
e.on(t, r);
|
|
80
81
|
},
|
|
@@ -99,26 +100,26 @@ function qo(h) {
|
|
|
99
100
|
}), A.start();
|
|
100
101
|
}, G = () => {
|
|
101
102
|
A.done();
|
|
102
|
-
}, J =
|
|
103
|
+
}, J = c(
|
|
103
104
|
() => ({
|
|
104
105
|
host: "",
|
|
105
106
|
isLocalhost: !0,
|
|
106
107
|
domain_token: "lab1",
|
|
107
108
|
domainToken: "lab1",
|
|
108
109
|
database: n,
|
|
109
|
-
host_api_local:
|
|
110
|
-
hostApiLocal:
|
|
111
|
-
host_api_remote:
|
|
112
|
-
hostApiRemote:
|
|
113
|
-
hostRemote:
|
|
114
|
-
host_static_assets:
|
|
115
|
-
environment_assets:
|
|
110
|
+
host_api_local: g,
|
|
111
|
+
hostApiLocal: g,
|
|
112
|
+
host_api_remote: d,
|
|
113
|
+
hostApiRemote: d,
|
|
114
|
+
hostRemote: d,
|
|
115
|
+
host_static_assets: L,
|
|
116
|
+
environment_assets: F,
|
|
116
117
|
hostApiIcons: $,
|
|
117
118
|
googleMapsApiKey: O
|
|
118
119
|
}),
|
|
119
120
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
120
121
|
[]
|
|
121
|
-
),
|
|
122
|
+
), y = V(), Q = Ao(y), U = c(
|
|
122
123
|
() => ({
|
|
123
124
|
history: k,
|
|
124
125
|
toast: Q,
|
|
@@ -131,45 +132,45 @@ function qo(h) {
|
|
|
131
132
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
133
|
[]
|
|
133
134
|
);
|
|
134
|
-
return /* @__PURE__ */ o(ao, { ...J, children: /* @__PURE__ */ o(mo, { ...U, children: /* @__PURE__ */ o(po, { axiosOperation:
|
|
135
|
+
return /* @__PURE__ */ o(ao, { ...J, children: /* @__PURE__ */ o(mo, { ...U, children: /* @__PURE__ */ o(po, { axiosOperation: N, children: /* @__PURE__ */ o(
|
|
135
136
|
X,
|
|
136
137
|
{
|
|
137
138
|
history: k,
|
|
138
139
|
future: { v7_startTransition: !0, v7_relativeSplatPath: !0 },
|
|
139
|
-
children: /* @__PURE__ */ o(eo, { forcedDeviceType:
|
|
140
|
-
|
|
140
|
+
children: /* @__PURE__ */ o(eo, { forcedDeviceType: B, children: /* @__PURE__ */ o(lo, { children: /* @__PURE__ */ o(_o, { user: s, pwd: i, children: /* @__PURE__ */ o(to, { children: /* @__PURE__ */ o(ro, { isMicroFrontEnd: !1, getLocaleFromNetwork: so, children: /* @__PURE__ */ o(
|
|
141
|
+
Po,
|
|
141
142
|
{
|
|
142
|
-
moduleId:
|
|
143
|
-
privileges:
|
|
144
|
-
skeletonFlags:
|
|
145
|
-
componentsDictionary:
|
|
146
|
-
moduleNameField:
|
|
147
|
-
moduleDictionaryLoaded:
|
|
148
|
-
children: /* @__PURE__ */ R(io, { children: [
|
|
149
|
-
/* @__PURE__ */ o(
|
|
150
|
-
/* @__PURE__ */ o(
|
|
143
|
+
moduleId: _,
|
|
144
|
+
privileges: E,
|
|
145
|
+
skeletonFlags: b,
|
|
146
|
+
componentsDictionary: S,
|
|
147
|
+
moduleNameField: C,
|
|
148
|
+
moduleDictionaryLoaded: M,
|
|
149
|
+
children: /* @__PURE__ */ o(fo, { moduleId: _, children: /* @__PURE__ */ R(io, { children: [
|
|
150
|
+
/* @__PURE__ */ o(Io, {}),
|
|
151
|
+
/* @__PURE__ */ o(go, { containerId: y }),
|
|
151
152
|
" ",
|
|
152
153
|
/* @__PURE__ */ o(
|
|
153
|
-
|
|
154
|
+
Lo,
|
|
154
155
|
{
|
|
155
156
|
hostRuntime: j,
|
|
156
157
|
resolveHostRuntime: W,
|
|
157
158
|
children: /* @__PURE__ */ o(
|
|
158
|
-
|
|
159
|
+
yo,
|
|
159
160
|
{
|
|
160
161
|
baseZindex: 1e3,
|
|
161
|
-
storeId:
|
|
162
|
-
storeDevtoolsEnabled:
|
|
162
|
+
storeId: P,
|
|
163
|
+
storeDevtoolsEnabled: I,
|
|
163
164
|
children: /* @__PURE__ */ o(
|
|
164
165
|
Ro,
|
|
165
166
|
{
|
|
166
|
-
storeId:
|
|
167
|
-
storeDevtoolsEnabled:
|
|
167
|
+
storeId: P,
|
|
168
|
+
storeDevtoolsEnabled: I,
|
|
168
169
|
onLoad: T,
|
|
169
170
|
loadAreasFromNetwork: x,
|
|
170
171
|
loadCookiesFromNetwork: H,
|
|
171
172
|
children: /* @__PURE__ */ R(uo, { children: [
|
|
172
|
-
|
|
173
|
+
D && /* @__PURE__ */ o(ko, {}),
|
|
173
174
|
/* @__PURE__ */ o(vo, { children: u })
|
|
174
175
|
] })
|
|
175
176
|
}
|
|
@@ -178,12 +179,12 @@ function qo(h) {
|
|
|
178
179
|
)
|
|
179
180
|
}
|
|
180
181
|
)
|
|
181
|
-
] })
|
|
182
|
+
] }) })
|
|
182
183
|
}
|
|
183
184
|
) }) }) }) }) })
|
|
184
185
|
}
|
|
185
186
|
) }) }) });
|
|
186
187
|
}
|
|
187
188
|
export {
|
|
188
|
-
|
|
189
|
+
Go as MFIsolationApp
|
|
189
190
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
interface MFIsolationAppErrorBoundaryProps {
|
|
3
|
+
moduleId: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface MFIsolationAppErrorBoundaryState {
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Contain runtime crashes inside one MF isolation tree and show a safe fallback.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MFIsolationAppErrorBoundary extends Component<MFIsolationAppErrorBoundaryProps, MFIsolationAppErrorBoundaryState> {
|
|
13
|
+
state: MFIsolationAppErrorBoundaryState;
|
|
14
|
+
/**
|
|
15
|
+
* Switch the isolation shell into its fallback state after a runtime render failure.
|
|
16
|
+
*/
|
|
17
|
+
static getDerivedStateFromError(): MFIsolationAppErrorBoundaryState;
|
|
18
|
+
/**
|
|
19
|
+
* Forward the caught isolation runtime error to the registered app-owned handler, if any.
|
|
20
|
+
*/
|
|
21
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
22
|
+
/**
|
|
23
|
+
* Render the wrapped isolation tree or a safe fallback after a caught crash.
|
|
24
|
+
*/
|
|
25
|
+
render(): ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=MFIsolationAppErrorBoundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MFIsolationAppErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/MFIsolationAppErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,gCAAgC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,gCAAgC;IACxC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,SAAS,CACxD,gCAAgC,EAChC,gCAAgC,CACjC;IACiB,KAAK,EAAE,gCAAgC,CAErD;IAEF;;OAEG;WACW,wBAAwB,IAAI,gCAAgC;IAI1E;;OAEG;IACa,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAS3E;;OAEG;IACa,MAAM,IAAI,SAAS;CAWpC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Component as e } from "react";
|
|
3
|
+
import { reportMFIsolationRuntimeError as i } from "./runtimeErrors.js";
|
|
4
|
+
class m extends e {
|
|
5
|
+
state = {
|
|
6
|
+
hasError: !1
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Switch the isolation shell into its fallback state after a runtime render failure.
|
|
10
|
+
*/
|
|
11
|
+
static getDerivedStateFromError() {
|
|
12
|
+
return { hasError: !0 };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Forward the caught isolation runtime error to the registered app-owned handler, if any.
|
|
16
|
+
*/
|
|
17
|
+
componentDidCatch(r, o) {
|
|
18
|
+
i({
|
|
19
|
+
moduleId: this.props.moduleId,
|
|
20
|
+
error: r,
|
|
21
|
+
componentStack: o.componentStack ?? void 0,
|
|
22
|
+
runtimeMode: "isolation"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Render the wrapped isolation tree or a safe fallback after a caught crash.
|
|
27
|
+
*/
|
|
28
|
+
render() {
|
|
29
|
+
return this.state.hasError ? /* @__PURE__ */ t("div", { role: "alert", "data-testid": "mf-isolation-runtime-error-fallback", children: "This microfrontend could not be rendered in isolation." }) : this.props.children;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
m as MFIsolationAppErrorBoundary
|
|
34
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { MFIsolationApp } from './MFIsolationApp';
|
|
2
|
-
export
|
|
2
|
+
export { registerMFIsolationRuntimeErrorHandler, unregisterMFIsolationRuntimeErrorHandler, reportMFIsolationRuntimeError, } from './runtimeErrors';
|
|
3
|
+
export type { MFIsolationAppProps, MFIsolationHostRuntimeResolutionContext, MFIsolationRuntimeErrorEvent, MFIsolationRuntimeErrorHandler, ResolveMFIsolationHostRuntime, } from './types';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,uCAAuC,EACvC,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,sCAAsC,EACtC,wCAAwC,EACxC,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,mBAAmB,EACnB,uCAAuC,EACvC,4BAA4B,EAC5B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface MFIsolationRuntimeErrorEvent {
|
|
2
|
+
moduleId: string;
|
|
3
|
+
error: Error;
|
|
4
|
+
componentStack?: string;
|
|
5
|
+
runtimeMode: 'isolation';
|
|
6
|
+
}
|
|
7
|
+
export type MFIsolationRuntimeErrorHandler = (event: MFIsolationRuntimeErrorEvent) => void;
|
|
8
|
+
/**
|
|
9
|
+
* Register one app-owned handler for runtime errors caught inside MFIsolationApp.
|
|
10
|
+
*/
|
|
11
|
+
export declare function registerMFIsolationRuntimeErrorHandler(handler: MFIsolationRuntimeErrorHandler): void;
|
|
12
|
+
/**
|
|
13
|
+
* Remove the currently registered isolation runtime error handler.
|
|
14
|
+
*/
|
|
15
|
+
export declare function unregisterMFIsolationRuntimeErrorHandler(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Report a caught isolation runtime error to the registered handler, if any.
|
|
18
|
+
*/
|
|
19
|
+
export declare function reportMFIsolationRuntimeError(event: MFIsolationRuntimeErrorEvent): void;
|
|
20
|
+
//# sourceMappingURL=runtimeErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeErrors.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/runtimeErrors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,MAAM,8BAA8B,GAAG,CAC3C,KAAK,EAAE,4BAA4B,KAChC,IAAI,CAAC;AAIV;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,8BAA8B,GACtC,IAAI,CAEN;AAED;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,IAAI,CAE/D;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,4BAA4B,GAClC,IAAI,CAMN"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let n;
|
|
2
|
+
function o(r) {
|
|
3
|
+
n = r;
|
|
4
|
+
}
|
|
5
|
+
function t() {
|
|
6
|
+
n = void 0;
|
|
7
|
+
}
|
|
8
|
+
function i(r) {
|
|
9
|
+
try {
|
|
10
|
+
n?.(r);
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
o as registerMFIsolationRuntimeErrorHandler,
|
|
16
|
+
i as reportMFIsolationRuntimeError,
|
|
17
|
+
t as unregisterMFIsolationRuntimeErrorHandler
|
|
18
|
+
};
|
|
@@ -6,6 +6,7 @@ import { MF_ISOLATION_APP_KEY } from './constants';
|
|
|
6
6
|
import { Theme } from '@mui/material/styles';
|
|
7
7
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
8
8
|
import { MFHostRuntime } from '../MFLoader/types';
|
|
9
|
+
import { MFIsolationRuntimeErrorEvent, MFIsolationRuntimeErrorHandler } from './runtimeErrors';
|
|
9
10
|
/**
|
|
10
11
|
* Context available when one isolation shell must resolve its host runtime
|
|
11
12
|
* after auth/environment initialization.
|
|
@@ -22,6 +23,7 @@ export interface MFIsolationHostRuntimeResolutionContext {
|
|
|
22
23
|
* after auth/environment context becomes readable.
|
|
23
24
|
*/
|
|
24
25
|
export type ResolveMFIsolationHostRuntime = (context: MFIsolationHostRuntimeResolutionContext) => MFHostRuntime | undefined;
|
|
26
|
+
export type { MFIsolationRuntimeErrorEvent, MFIsolationRuntimeErrorHandler, };
|
|
25
27
|
export type MFIsolationAppProps = BaseModuleProps & {
|
|
26
28
|
user: string;
|
|
27
29
|
pwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFIsolationApp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EACV,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,OAAO,EAAE,uCAAuC,KAC7C,aAAa,GAAG,SAAS,CAAC;AAE/B,YAAY,EACV,4BAA4B,EAC5B,8BAA8B,GAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAG3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,CAAC;IAC1C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAG9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,6BAA6B,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEvE,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,uBAAuB,EAAE,OAAO,oBAAoB,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MFLoaderProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Load one remote MF bundle into a host-managed container and surface its load state.
|
|
4
|
+
* Carga un bundle MF remoto en un contenedor administrado por el host y expone su estado de carga.
|
|
4
5
|
*/
|
|
5
6
|
export declare function MFLoader(props: MFLoaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default MFLoader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAchD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDA8O5C;AACD,eAAe,QAAQ,CAAC"}
|