@module-federation/bridge-react 0.0.0-feat-operate-openruntime-20260726083609 → 0.0.0-feat-operate-openruntime-20260726151341
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/base.cjs.js +1 -1
- package/dist/base.es.js +2 -2
- package/dist/{bridge-base-Dicrf12A.mjs → bridge-base-CHnL6Q9P.mjs} +3 -10
- package/dist/{bridge-base-CWH2jrzc.js → bridge-base-DSYKAGGD.js} +3 -10
- package/dist/{createHelpers-BhiAn2Z-.mjs → createHelpers-D3Sg5lKp.mjs} +2 -6
- package/dist/{createHelpers-DyjMKnYB.js → createHelpers-D6thyyLv.js} +2 -6
- package/dist/index.cjs.js +3 -4
- package/dist/index.es.js +4 -5
- package/dist/v18.cjs.js +1 -1
- package/dist/v18.es.js +1 -1
- package/dist/v19.cjs.js +1 -1
- package/dist/v19.es.js +1 -1
- package/package.json +5 -5
package/dist/base.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const createHelpers = require("./createHelpers-
|
|
3
|
+
const createHelpers = require("./createHelpers-D6thyyLv.js");
|
|
4
4
|
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
|
|
5
5
|
const lazyUtils = require("./utils-5dGErM3C.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
package/dist/base.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-
|
|
2
|
-
import { b } from "./createHelpers-
|
|
1
|
+
import { c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory, R as RemoteAppWrapper } from "./createHelpers-D3Sg5lKp.mjs";
|
|
2
|
+
import { b } from "./createHelpers-D3Sg5lKp.mjs";
|
|
3
3
|
import { a, c, b as b2, l } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
|
|
4
4
|
import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-BBP3hEeV.mjs";
|
|
5
5
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
@@ -93,8 +93,6 @@ function createBaseBridgeComponent({
|
|
|
93
93
|
side: "producer",
|
|
94
94
|
framework: "react",
|
|
95
95
|
operation: rootMap.has(dom) ? "update" : "render",
|
|
96
|
-
target: dom,
|
|
97
|
-
moduleName,
|
|
98
96
|
reason: "direct"
|
|
99
97
|
};
|
|
100
98
|
const mergedRootOptions = {
|
|
@@ -118,12 +116,11 @@ function createBaseBridgeComponent({
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
);
|
|
121
|
-
let renderResult;
|
|
122
119
|
if (bridgeInfo.render) {
|
|
123
|
-
|
|
120
|
+
const root = await Promise.resolve(
|
|
124
121
|
bridgeInfo.render(rootComponentWithErrorBoundary, dom)
|
|
125
122
|
);
|
|
126
|
-
rootMap.set(dom,
|
|
123
|
+
rootMap.set(dom, root);
|
|
127
124
|
} else {
|
|
128
125
|
let root = rootMap.get(dom);
|
|
129
126
|
if (!root && createRoot) {
|
|
@@ -133,11 +130,9 @@ function createBaseBridgeComponent({
|
|
|
133
130
|
if (root && "render" in root) {
|
|
134
131
|
root.render(rootComponentWithErrorBoundary);
|
|
135
132
|
}
|
|
136
|
-
renderResult = root;
|
|
137
133
|
}
|
|
138
134
|
((_f = (_e = (_d = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _d.lifecycle) == null ? void 0 : _e.afterBridgeRender) == null ? void 0 : _f.emit(info, {
|
|
139
|
-
context: operationContext
|
|
140
|
-
result: renderResult
|
|
135
|
+
context: operationContext
|
|
141
136
|
})) || {};
|
|
142
137
|
},
|
|
143
138
|
destroy(info) {
|
|
@@ -149,8 +144,6 @@ function createBaseBridgeComponent({
|
|
|
149
144
|
side: "producer",
|
|
150
145
|
framework: "react",
|
|
151
146
|
operation: "destroy",
|
|
152
|
-
target: dom,
|
|
153
|
-
moduleName: info.moduleName,
|
|
154
147
|
reason: "direct"
|
|
155
148
|
};
|
|
156
149
|
(_c = (_b = (_a = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _a.lifecycle) == null ? void 0 : _b.beforeBridgeDestroy) == null ? void 0 : _c.emit(
|
|
@@ -111,8 +111,6 @@ function createBaseBridgeComponent({
|
|
|
111
111
|
side: "producer",
|
|
112
112
|
framework: "react",
|
|
113
113
|
operation: rootMap.has(dom) ? "update" : "render",
|
|
114
|
-
target: dom,
|
|
115
|
-
moduleName,
|
|
116
114
|
reason: "direct"
|
|
117
115
|
};
|
|
118
116
|
const mergedRootOptions = {
|
|
@@ -136,12 +134,11 @@ function createBaseBridgeComponent({
|
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
);
|
|
139
|
-
let renderResult;
|
|
140
137
|
if (bridgeInfo.render) {
|
|
141
|
-
|
|
138
|
+
const root = await Promise.resolve(
|
|
142
139
|
bridgeInfo.render(rootComponentWithErrorBoundary, dom)
|
|
143
140
|
);
|
|
144
|
-
rootMap.set(dom,
|
|
141
|
+
rootMap.set(dom, root);
|
|
145
142
|
} else {
|
|
146
143
|
let root = rootMap.get(dom);
|
|
147
144
|
if (!root && createRoot) {
|
|
@@ -151,11 +148,9 @@ function createBaseBridgeComponent({
|
|
|
151
148
|
if (root && "render" in root) {
|
|
152
149
|
root.render(rootComponentWithErrorBoundary);
|
|
153
150
|
}
|
|
154
|
-
renderResult = root;
|
|
155
151
|
}
|
|
156
152
|
((_f = (_e = (_d = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _d.lifecycle) == null ? void 0 : _e.afterBridgeRender) == null ? void 0 : _f.emit(info, {
|
|
157
|
-
context: operationContext
|
|
158
|
-
result: renderResult
|
|
153
|
+
context: operationContext
|
|
159
154
|
})) || {};
|
|
160
155
|
},
|
|
161
156
|
destroy(info) {
|
|
@@ -167,8 +162,6 @@ function createBaseBridgeComponent({
|
|
|
167
162
|
side: "producer",
|
|
168
163
|
framework: "react",
|
|
169
164
|
operation: "destroy",
|
|
170
|
-
target: dom,
|
|
171
|
-
moduleName: info.moduleName,
|
|
172
165
|
reason: "direct"
|
|
173
166
|
};
|
|
174
167
|
(_c = (_b = (_a = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _a.lifecycle) == null ? void 0 : _b.beforeBridgeDestroy) == null ? void 0 : _c.emit(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-
|
|
1
|
+
import { c as createBaseBridgeComponent, E as ErrorBoundary } from "./bridge-base-CHnL6Q9P.mjs";
|
|
2
2
|
import ReactDOM from "react-dom";
|
|
3
3
|
import { L as LoggerInstance, g as getRootDomDefaultClassName } from "./index-Bs2NxD2z.mjs";
|
|
4
4
|
import React__default, { forwardRef, useRef, useState, useEffect } from "react";
|
|
@@ -75,8 +75,6 @@ const RemoteAppWrapper = forwardRef(function(props, ref) {
|
|
|
75
75
|
side: "consumer",
|
|
76
76
|
framework: "react",
|
|
77
77
|
operation: "destroy",
|
|
78
|
-
target: renderDom.current || void 0,
|
|
79
|
-
moduleName,
|
|
80
78
|
reason: "unmount"
|
|
81
79
|
};
|
|
82
80
|
(_d = (_c = (_b = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _b.lifecycle) == null ? void 0 : _c.beforeBridgeDestroy) == null ? void 0 : _d.emit(
|
|
@@ -108,9 +106,7 @@ const RemoteAppWrapper = forwardRef(function(props, ref) {
|
|
|
108
106
|
const operationContext = {
|
|
109
107
|
side: "consumer",
|
|
110
108
|
framework: "react",
|
|
111
|
-
operation: "render"
|
|
112
|
-
target: renderDom.current || void 0,
|
|
113
|
-
moduleName
|
|
109
|
+
operation: "render"
|
|
114
110
|
};
|
|
115
111
|
const beforeBridgeRenderRes = ((_c = (_b = (_a = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _a.lifecycle) == null ? void 0 : _b.beforeBridgeRender) == null ? void 0 : _c.emit(
|
|
116
112
|
renderProps,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const bridgeBase = require("./bridge-base-
|
|
2
|
+
const bridgeBase = require("./bridge-base-DSYKAGGD.js");
|
|
3
3
|
const ReactDOM = require("react-dom");
|
|
4
4
|
const index = require("./index-DbjGCKOr.js");
|
|
5
5
|
const React = require("react");
|
|
@@ -76,8 +76,6 @@ const RemoteAppWrapper = React.forwardRef(function(props, ref) {
|
|
|
76
76
|
side: "consumer",
|
|
77
77
|
framework: "react",
|
|
78
78
|
operation: "destroy",
|
|
79
|
-
target: renderDom.current || void 0,
|
|
80
|
-
moduleName,
|
|
81
79
|
reason: "unmount"
|
|
82
80
|
};
|
|
83
81
|
(_d = (_c = (_b = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _b.lifecycle) == null ? void 0 : _c.beforeBridgeDestroy) == null ? void 0 : _d.emit(
|
|
@@ -109,9 +107,7 @@ const RemoteAppWrapper = React.forwardRef(function(props, ref) {
|
|
|
109
107
|
const operationContext = {
|
|
110
108
|
side: "consumer",
|
|
111
109
|
framework: "react",
|
|
112
|
-
operation: "render"
|
|
113
|
-
target: renderDom.current || void 0,
|
|
114
|
-
moduleName
|
|
110
|
+
operation: "render"
|
|
115
111
|
};
|
|
116
112
|
const beforeBridgeRenderRes = ((_c = (_b = (_a = instance == null ? void 0 : instance.bridgeHook) == null ? void 0 : _a.lifecycle) == null ? void 0 : _b.beforeBridgeRender) == null ? void 0 : _c.emit(
|
|
117
113
|
renderProps,
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const createHelpers = require("./createHelpers-
|
|
3
|
+
const createHelpers = require("./createHelpers-D6thyyLv.js");
|
|
4
4
|
const lazyLoadComponentPlugin = require("./lazy-load-component-plugin-CxGI0r0V.js");
|
|
5
5
|
const lazyUtils = require("./utils-5dGErM3C.js");
|
|
6
6
|
const dataFetchUtils = require("./data-fetch-utils.cjs.js");
|
|
@@ -105,11 +105,10 @@ function withRouterData(WrappedComponent) {
|
|
|
105
105
|
moduleName: props.moduleName,
|
|
106
106
|
route
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
e();
|
|
109
109
|
(_a2 = plugin.federationRuntime.instance) == null ? void 0 : _a2.bridgeHook.lifecycle.afterBridgeRouteSync.emit(
|
|
110
110
|
{
|
|
111
|
-
context: operationContext
|
|
112
|
-
result
|
|
111
|
+
context: operationContext
|
|
113
112
|
}
|
|
114
113
|
);
|
|
115
114
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-
|
|
2
|
-
import { b } from "./createHelpers-
|
|
1
|
+
import { R as RemoteAppWrapper, c as createRemoteAppComponentFactory, a as createDeprecatedRemoteComponentFactory } from "./createHelpers-D3Sg5lKp.mjs";
|
|
2
|
+
import { b } from "./createHelpers-D3Sg5lKp.mjs";
|
|
3
3
|
import { a, c, b as b2, l } from "./lazy-load-component-plugin-CvVuo5ya.mjs";
|
|
4
4
|
import { C, a as a2, E, c as c2, b as b3, d, g, r, s } from "./utils-BBP3hEeV.mjs";
|
|
5
5
|
import { callDataFetch } from "./data-fetch-utils.es.js";
|
|
@@ -87,11 +87,10 @@ function withRouterData(WrappedComponent) {
|
|
|
87
87
|
moduleName: props.moduleName,
|
|
88
88
|
route
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
e();
|
|
91
91
|
(_a2 = federationRuntime.instance) == null ? void 0 : _a2.bridgeHook.lifecycle.afterBridgeRouteSync.emit(
|
|
92
92
|
{
|
|
93
|
-
context: operationContext
|
|
94
|
-
result
|
|
93
|
+
context: operationContext
|
|
95
94
|
}
|
|
96
95
|
);
|
|
97
96
|
}
|
package/dist/v18.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const client = require("react-dom/client");
|
|
4
|
-
const bridgeBase = require("./bridge-base-
|
|
4
|
+
const bridgeBase = require("./bridge-base-DSYKAGGD.js");
|
|
5
5
|
function createReact18Root(container, options) {
|
|
6
6
|
return client.createRoot(container, options);
|
|
7
7
|
}
|
package/dist/v18.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRoot } from "react-dom/client";
|
|
2
|
-
import { c as createBaseBridgeComponent } from "./bridge-base-
|
|
2
|
+
import { c as createBaseBridgeComponent } from "./bridge-base-CHnL6Q9P.mjs";
|
|
3
3
|
function createReact18Root(container, options) {
|
|
4
4
|
return createRoot(container, options);
|
|
5
5
|
}
|
package/dist/v19.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const client = require("react-dom/client");
|
|
4
|
-
const bridgeBase = require("./bridge-base-
|
|
4
|
+
const bridgeBase = require("./bridge-base-DSYKAGGD.js");
|
|
5
5
|
function createReact19Root(container, options) {
|
|
6
6
|
return client.createRoot(container, options);
|
|
7
7
|
}
|
package/dist/v19.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRoot } from "react-dom/client";
|
|
2
|
-
import { c as createBaseBridgeComponent } from "./bridge-base-
|
|
2
|
+
import { c as createBaseBridgeComponent } from "./bridge-base-CHnL6Q9P.mjs";
|
|
3
3
|
function createReact19Root(container, options) {
|
|
4
4
|
return createRoot(container, options);
|
|
5
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react",
|
|
3
|
-
"version": "0.0.0-feat-operate-openruntime-
|
|
3
|
+
"version": "0.0.0-feat-operate-openruntime-20260726151341",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@module-federation/sdk": "0.0.0-feat-operate-openruntime-
|
|
150
|
+
"@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260726151341"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {
|
|
153
153
|
"react": ">=16.9.0",
|
|
@@ -179,9 +179,9 @@
|
|
|
179
179
|
"typescript": "7.0.2",
|
|
180
180
|
"vite": "^5.4.21",
|
|
181
181
|
"hono": "4.12.26",
|
|
182
|
-
"@module-federation/
|
|
183
|
-
"@module-federation/runtime-core": "0.0.0-feat-operate-openruntime-
|
|
184
|
-
"@module-federation/
|
|
182
|
+
"@module-federation/bridge-shared": "0.0.0-feat-operate-openruntime-20260726151341",
|
|
183
|
+
"@module-federation/runtime-core": "0.0.0-feat-operate-openruntime-20260726151341",
|
|
184
|
+
"@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260726151341"
|
|
185
185
|
},
|
|
186
186
|
"scripts": {
|
|
187
187
|
"dev": "vite",
|