@decido/plugin-frubeala-ui 3.0.0 → 4.0.1

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.
@@ -1,272 +0,0 @@
1
- function getDefaultExportFromCjs(x2) {
2
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
3
- }
4
- var react = { exports: {} };
5
- var react_production_min = {};
6
- /**
7
- * @license React
8
- * react.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var l = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), q = /* @__PURE__ */ Symbol.for("react.strict_mode"), r = /* @__PURE__ */ Symbol.for("react.profiler"), t = /* @__PURE__ */ Symbol.for("react.provider"), u = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), z = Symbol.iterator;
16
- function A(a) {
17
- if (null === a || "object" !== typeof a) return null;
18
- a = z && a[z] || a["@@iterator"];
19
- return "function" === typeof a ? a : null;
20
- }
21
- var B = { isMounted: function() {
22
- return false;
23
- }, enqueueForceUpdate: function() {
24
- }, enqueueReplaceState: function() {
25
- }, enqueueSetState: function() {
26
- } }, C = Object.assign, D = {};
27
- function E(a, b, e) {
28
- this.props = a;
29
- this.context = b;
30
- this.refs = D;
31
- this.updater = e || B;
32
- }
33
- E.prototype.isReactComponent = {};
34
- E.prototype.setState = function(a, b) {
35
- if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
36
- this.updater.enqueueSetState(this, a, b, "setState");
37
- };
38
- E.prototype.forceUpdate = function(a) {
39
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
40
- };
41
- function F() {
42
- }
43
- F.prototype = E.prototype;
44
- function G(a, b, e) {
45
- this.props = a;
46
- this.context = b;
47
- this.refs = D;
48
- this.updater = e || B;
49
- }
50
- var H = G.prototype = new F();
51
- H.constructor = G;
52
- C(H, E.prototype);
53
- H.isPureReactComponent = true;
54
- var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
55
- function M(a, b, e) {
56
- var d, c = {}, k = null, h = null;
57
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
58
- var g = arguments.length - 2;
59
- if (1 === g) c.children = e;
60
- else if (1 < g) {
61
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
62
- c.children = f;
63
- }
64
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
65
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
66
- }
67
- function N(a, b) {
68
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
69
- }
70
- function O(a) {
71
- return "object" === typeof a && null !== a && a.$$typeof === l;
72
- }
73
- function escape(a) {
74
- var b = { "=": "=0", ":": "=2" };
75
- return "$" + a.replace(/[=:]/g, function(a2) {
76
- return b[a2];
77
- });
78
- }
79
- var P = /\/+/g;
80
- function Q(a, b) {
81
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
82
- }
83
- function R(a, b, e, d, c) {
84
- var k = typeof a;
85
- if ("undefined" === k || "boolean" === k) a = null;
86
- var h = false;
87
- if (null === a) h = true;
88
- else switch (k) {
89
- case "string":
90
- case "number":
91
- h = true;
92
- break;
93
- case "object":
94
- switch (a.$$typeof) {
95
- case l:
96
- case n:
97
- h = true;
98
- }
99
- }
100
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
101
- return a2;
102
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
103
- h = 0;
104
- d = "" === d ? "." : d + ":";
105
- if (I(a)) for (var g = 0; g < a.length; g++) {
106
- k = a[g];
107
- var f = d + Q(k, g);
108
- h += R(k, b, e, f, c);
109
- }
110
- else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
111
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
112
- return h;
113
- }
114
- function S(a, b, e) {
115
- if (null == a) return a;
116
- var d = [], c = 0;
117
- R(a, d, "", "", function(a2) {
118
- return b.call(e, a2, c++);
119
- });
120
- return d;
121
- }
122
- function T(a) {
123
- if (-1 === a._status) {
124
- var b = a._result;
125
- b = b();
126
- b.then(function(b2) {
127
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
128
- }, function(b2) {
129
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
130
- });
131
- -1 === a._status && (a._status = 0, a._result = b);
132
- }
133
- if (1 === a._status) return a._result.default;
134
- throw a._result;
135
- }
136
- var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
137
- function X() {
138
- throw Error("act(...) is not supported in production builds of React.");
139
- }
140
- react_production_min.Children = { map: S, forEach: function(a, b, e) {
141
- S(a, function() {
142
- b.apply(this, arguments);
143
- }, e);
144
- }, count: function(a) {
145
- var b = 0;
146
- S(a, function() {
147
- b++;
148
- });
149
- return b;
150
- }, toArray: function(a) {
151
- return S(a, function(a2) {
152
- return a2;
153
- }) || [];
154
- }, only: function(a) {
155
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
156
- return a;
157
- } };
158
- react_production_min.Component = E;
159
- react_production_min.Fragment = p;
160
- react_production_min.Profiler = r;
161
- react_production_min.PureComponent = G;
162
- react_production_min.StrictMode = q;
163
- react_production_min.Suspense = w;
164
- react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
165
- react_production_min.act = X;
166
- react_production_min.cloneElement = function(a, b, e) {
167
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
168
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
169
- if (null != b) {
170
- void 0 !== b.ref && (k = b.ref, h = K.current);
171
- void 0 !== b.key && (c = "" + b.key);
172
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
173
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
174
- }
175
- var f = arguments.length - 2;
176
- if (1 === f) d.children = e;
177
- else if (1 < f) {
178
- g = Array(f);
179
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
180
- d.children = g;
181
- }
182
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
183
- };
184
- react_production_min.createContext = function(a) {
185
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
186
- a.Provider = { $$typeof: t, _context: a };
187
- return a.Consumer = a;
188
- };
189
- react_production_min.createElement = M;
190
- react_production_min.createFactory = function(a) {
191
- var b = M.bind(null, a);
192
- b.type = a;
193
- return b;
194
- };
195
- react_production_min.createRef = function() {
196
- return { current: null };
197
- };
198
- react_production_min.forwardRef = function(a) {
199
- return { $$typeof: v, render: a };
200
- };
201
- react_production_min.isValidElement = O;
202
- react_production_min.lazy = function(a) {
203
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
204
- };
205
- react_production_min.memo = function(a, b) {
206
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
207
- };
208
- react_production_min.startTransition = function(a) {
209
- var b = V.transition;
210
- V.transition = {};
211
- try {
212
- a();
213
- } finally {
214
- V.transition = b;
215
- }
216
- };
217
- react_production_min.unstable_act = X;
218
- react_production_min.useCallback = function(a, b) {
219
- return U.current.useCallback(a, b);
220
- };
221
- react_production_min.useContext = function(a) {
222
- return U.current.useContext(a);
223
- };
224
- react_production_min.useDebugValue = function() {
225
- };
226
- react_production_min.useDeferredValue = function(a) {
227
- return U.current.useDeferredValue(a);
228
- };
229
- react_production_min.useEffect = function(a, b) {
230
- return U.current.useEffect(a, b);
231
- };
232
- react_production_min.useId = function() {
233
- return U.current.useId();
234
- };
235
- react_production_min.useImperativeHandle = function(a, b, e) {
236
- return U.current.useImperativeHandle(a, b, e);
237
- };
238
- react_production_min.useInsertionEffect = function(a, b) {
239
- return U.current.useInsertionEffect(a, b);
240
- };
241
- react_production_min.useLayoutEffect = function(a, b) {
242
- return U.current.useLayoutEffect(a, b);
243
- };
244
- react_production_min.useMemo = function(a, b) {
245
- return U.current.useMemo(a, b);
246
- };
247
- react_production_min.useReducer = function(a, b, e) {
248
- return U.current.useReducer(a, b, e);
249
- };
250
- react_production_min.useRef = function(a) {
251
- return U.current.useRef(a);
252
- };
253
- react_production_min.useState = function(a) {
254
- return U.current.useState(a);
255
- };
256
- react_production_min.useSyncExternalStore = function(a, b, e) {
257
- return U.current.useSyncExternalStore(a, b, e);
258
- };
259
- react_production_min.useTransition = function() {
260
- return U.current.useTransition();
261
- };
262
- react_production_min.version = "18.3.1";
263
- {
264
- react.exports = react_production_min;
265
- }
266
- var reactExports = react.exports;
267
- const index = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
268
- export {
269
- getDefaultExportFromCjs as g,
270
- index as i,
271
- reactExports as r
272
- };
@@ -1,80 +0,0 @@
1
- const currentImports = {};
2
- const exportSet = /* @__PURE__ */ new Set(["Module", "__esModule", "default", "_export_sfc"]);
3
- let moduleMap = {
4
- "./Plugin": () => {
5
- dynamicLoadingCss([], false, "./Plugin");
6
- return __federation_import("http://127.0.0.1:5010/assets/__federation_expose_Plugin-WvTCD-o4.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
7
- }
8
- };
9
- const seen = {};
10
- const dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
11
- const metaUrl = import.meta.url;
12
- if (typeof metaUrl === "undefined") {
13
- console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');
14
- return;
15
- }
16
- const curUrl = metaUrl.substring(0, metaUrl.lastIndexOf("remoteEntry.js"));
17
- const base = 'http://127.0.0.1:5010/';
18
- 'assets';
19
- cssFilePaths.forEach((cssPath) => {
20
- let href = "";
21
- const baseUrl = base || curUrl;
22
- if (baseUrl) {
23
- const trimmer = {
24
- trailing: (path) => path.endsWith("/") ? path.slice(0, -1) : path,
25
- leading: (path) => path.startsWith("/") ? path.slice(1) : path
26
- };
27
- const isAbsoluteUrl = (url) => url.startsWith("http") || url.startsWith("//");
28
- const cleanBaseUrl = trimmer.trailing(baseUrl);
29
- const cleanCssPath = trimmer.leading(cssPath);
30
- const cleanCurUrl = trimmer.trailing(curUrl);
31
- if (isAbsoluteUrl(baseUrl)) {
32
- href = [cleanBaseUrl, cleanCssPath].filter(Boolean).join("/");
33
- } else {
34
- if (cleanCurUrl.includes(cleanBaseUrl)) {
35
- href = [cleanCurUrl, cleanCssPath].filter(Boolean).join("/");
36
- } else {
37
- href = [cleanCurUrl + cleanBaseUrl, cleanCssPath].filter(Boolean).join("/");
38
- }
39
- }
40
- } else {
41
- href = cssPath;
42
- }
43
- if (dontAppendStylesToHead) {
44
- const key = "css__frubeala_ui__" + exposeItemName;
45
- window[key] = window[key] || [];
46
- window[key].push(href);
47
- return;
48
- }
49
- if (href in seen) return;
50
- seen[href] = true;
51
- const element = document.createElement("link");
52
- element.rel = "stylesheet";
53
- element.href = href;
54
- document.head.appendChild(element);
55
- });
56
- };
57
- async function __federation_import(name) {
58
- currentImports[name] ??= import(name);
59
- return currentImports[name];
60
- }
61
- const get = (module) => {
62
- if (!moduleMap[module]) throw new Error("Can not find remote module " + module);
63
- return moduleMap[module]();
64
- };
65
- const init = (shareScope) => {
66
- globalThis.__federation_shared__ = globalThis.__federation_shared__ || {};
67
- Object.entries(shareScope).forEach(([key, value]) => {
68
- for (const [versionKey, versionValue] of Object.entries(value)) {
69
- const scope = versionValue.scope || "default";
70
- globalThis.__federation_shared__[scope] = globalThis.__federation_shared__[scope] || {};
71
- const shared = globalThis.__federation_shared__[scope];
72
- (shared[key] = shared[key] || {})[versionKey] = versionValue;
73
- }
74
- });
75
- };
76
- export {
77
- dynamicLoadingCss,
78
- get,
79
- init
80
- };
package/dist/index.html DELETED
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Frubeala UI Plugin</title>
8
- </head>
9
-
10
- <body>
11
- <div id="root"></div>
12
- </body>
13
-
14
- </html>