minimal-piral 1.8.0-beta.7544 → 1.8.0-beta.7655
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/app/{index.54e774.js → index.ec4d4a.js} +59 -29
- package/app/index.ec4d4a.js.map +1 -0
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +5 -5
- package/app/index.54e774.js.map +0 -1
|
@@ -2123,11 +2123,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2123
2123
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2124
2124
|
/* harmony export */ renderElement: () => (/* binding */ renderElement)
|
|
2125
2125
|
/* harmony export */ });
|
|
2126
|
-
/* harmony import */ var
|
|
2126
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/lib/components/ExtensionSlot.js");
|
|
2127
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
2127
2128
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/helpers.js");
|
|
2128
2129
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/extension.js");
|
|
2129
2130
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/compare.js");
|
|
2130
|
-
/* harmony import */ var
|
|
2131
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/foreign.js");
|
|
2131
2132
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2132
2133
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2133
2134
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -2152,8 +2153,8 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
2152
2153
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2153
2154
|
|
|
2154
2155
|
|
|
2156
|
+
|
|
2155
2157
|
if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
2156
|
-
var contents = 'contents';
|
|
2157
2158
|
/**
|
|
2158
2159
|
* This is a nice abstraction allowing anyone to actually use the extension system
|
|
2159
2160
|
* brought by Piral. Not all props of the extension system are actually exposed.
|
|
@@ -2253,7 +2254,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2253
2254
|
}, {
|
|
2254
2255
|
key: "connectedCallback",
|
|
2255
2256
|
value: function connectedCallback() {
|
|
2256
|
-
this
|
|
2257
|
+
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
2257
2258
|
if (this.isConnected) {
|
|
2258
2259
|
this.dispatchEvent(new CustomEvent('render-html', {
|
|
2259
2260
|
bubbles: true,
|
|
@@ -2295,7 +2296,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2295
2296
|
}]);
|
|
2296
2297
|
return PiralExtension;
|
|
2297
2298
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
2298
|
-
customElements.define(
|
|
2299
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.extensionName, PiralExtension);
|
|
2299
2300
|
/**
|
|
2300
2301
|
* This is a boundary to host elements from other frameworks - effectively vanishing
|
|
2301
2302
|
* at runtime.
|
|
@@ -2316,12 +2317,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2316
2317
|
_createClass(PiralPortal, [{
|
|
2317
2318
|
key: "connectedCallback",
|
|
2318
2319
|
value: function connectedCallback() {
|
|
2319
|
-
this
|
|
2320
|
+
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
2320
2321
|
}
|
|
2321
2322
|
}]);
|
|
2322
2323
|
return PiralPortal;
|
|
2323
2324
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
2324
|
-
customElements.define(
|
|
2325
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.portalName, PiralPortal);
|
|
2325
2326
|
/**
|
|
2326
2327
|
* This is a virtual element to aggregate rendering from other frameworks, mostly
|
|
2327
2328
|
* used like piral-portal, but without context-hosting capabilities. This would
|
|
@@ -2343,12 +2344,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2343
2344
|
_createClass(PiralSlot, [{
|
|
2344
2345
|
key: "connectedCallback",
|
|
2345
2346
|
value: function connectedCallback() {
|
|
2346
|
-
this
|
|
2347
|
+
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
2347
2348
|
}
|
|
2348
2349
|
}]);
|
|
2349
2350
|
return PiralSlot;
|
|
2350
2351
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
2351
|
-
customElements.define(
|
|
2352
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.slotName, PiralSlot);
|
|
2352
2353
|
/**
|
|
2353
2354
|
* This is a virtual element to render children defined in React / by Piral in other
|
|
2354
2355
|
* frameworks.
|
|
@@ -2383,7 +2384,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2383
2384
|
_createClass(PiralContent, [{
|
|
2384
2385
|
key: "connectedCallback",
|
|
2385
2386
|
value: function connectedCallback() {
|
|
2386
|
-
this
|
|
2387
|
+
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
2387
2388
|
var cid = this.getAttribute('cid');
|
|
2388
2389
|
var content = PiralContent.contentAssignments[cid];
|
|
2389
2390
|
var portal = this.closest('piral-portal');
|
|
@@ -2411,7 +2412,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2411
2412
|
window.assignContent = function (cid, content) {
|
|
2412
2413
|
PiralContent.contentAssignments[cid] = content;
|
|
2413
2414
|
};
|
|
2414
|
-
customElements.define(
|
|
2415
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.contentName, PiralContent);
|
|
2415
2416
|
/**
|
|
2416
2417
|
* This is a virtual element to indicate that the contained content is
|
|
2417
2418
|
* rendered from a micro frontend's component. It will be used by the
|
|
@@ -2439,7 +2440,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2439
2440
|
}, {
|
|
2440
2441
|
key: "connectedCallback",
|
|
2441
2442
|
value: function connectedCallback() {
|
|
2442
|
-
this
|
|
2443
|
+
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
2443
2444
|
this.deferEvent('add-component');
|
|
2444
2445
|
}
|
|
2445
2446
|
}, {
|
|
@@ -2456,18 +2457,18 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
2456
2457
|
origin: this.origin
|
|
2457
2458
|
}
|
|
2458
2459
|
});
|
|
2459
|
-
(0,
|
|
2460
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_4__.defer)(function () {
|
|
2460
2461
|
return window.dispatchEvent(ev);
|
|
2461
2462
|
});
|
|
2462
2463
|
}
|
|
2463
2464
|
}]);
|
|
2464
2465
|
return PiralComponent;
|
|
2465
2466
|
}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
|
2466
|
-
customElements.define(
|
|
2467
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.componentName, PiralComponent);
|
|
2467
2468
|
}
|
|
2468
2469
|
function renderElement(context, element, props) {
|
|
2469
2470
|
if (typeof window !== 'undefined') {
|
|
2470
|
-
var _renderInDom = (0,
|
|
2471
|
+
var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_5__.ExtensionSlot, props),
|
|
2471
2472
|
_renderInDom2 = _slicedToArray(_renderInDom, 2),
|
|
2472
2473
|
id = _renderInDom2[0],
|
|
2473
2474
|
portal = _renderInDom2[1];
|
|
@@ -2480,7 +2481,7 @@ function renderElement(context, element, props) {
|
|
|
2480
2481
|
element.removeEventListener(evName, handler);
|
|
2481
2482
|
};
|
|
2482
2483
|
var update = function update(newProps) {
|
|
2483
|
-
var _changeDomPortal = (0,
|
|
2484
|
+
var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_5__.ExtensionSlot, newProps);
|
|
2484
2485
|
var _changeDomPortal2 = _slicedToArray(_changeDomPortal, 2);
|
|
2485
2486
|
id = _changeDomPortal2[0];
|
|
2486
2487
|
portal = _changeDomPortal2[1];
|
|
@@ -3814,12 +3815,12 @@ function installPiralDebug(options) {
|
|
|
3814
3815
|
debug: debugApiVersion,
|
|
3815
3816
|
instance: {
|
|
3816
3817
|
name: "minimal-piral",
|
|
3817
|
-
version: "1.8.0-beta.
|
|
3818
|
+
version: "1.8.0-beta.7655",
|
|
3818
3819
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
3819
3820
|
},
|
|
3820
3821
|
build: {
|
|
3821
|
-
date: "2024-
|
|
3822
|
-
cli: "1.8.0-beta.
|
|
3822
|
+
date: "2024-12-15T15:13:50.270Z",
|
|
3823
|
+
cli: "1.8.0-beta.7655",
|
|
3823
3824
|
compat: "1"
|
|
3824
3825
|
}
|
|
3825
3826
|
};
|
|
@@ -4071,6 +4072,8 @@ function decycle(obj) {
|
|
|
4071
4072
|
return "<error>";
|
|
4072
4073
|
} else if (_value instanceof Node) {
|
|
4073
4074
|
return "<node>";
|
|
4075
|
+
} else if (_value['$$typeof'] === Symbol["for"]('react.element')) {
|
|
4076
|
+
return '<react.element>';
|
|
4074
4077
|
} else if (_typeof(_value) === 'object') {
|
|
4075
4078
|
for (var i = 0; i < objects.length; i++) {
|
|
4076
4079
|
if (objects[i] === _value) {
|
|
@@ -5926,6 +5929,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
5926
5929
|
var _node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
5927
5930
|
__webpack_require__.r(__webpack_exports__);
|
|
5928
5931
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5932
|
+
/* harmony export */ applyStyle: () => (/* binding */ applyStyle),
|
|
5929
5933
|
/* harmony export */ createDefaultState: () => (/* binding */ createDefaultState),
|
|
5930
5934
|
/* harmony export */ createNavigation: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_5__.createNavigation),
|
|
5931
5935
|
/* harmony export */ createRedirect: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_5__.createRedirect),
|
|
@@ -5968,6 +5972,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5968
5972
|
|
|
5969
5973
|
|
|
5970
5974
|
|
|
5975
|
+
function applyStyle(element) {
|
|
5976
|
+
element.style.display = 'contents';
|
|
5977
|
+
}
|
|
5978
|
+
|
|
5979
|
+
|
|
5971
5980
|
function fillDependencies(deps) {
|
|
5972
5981
|
deps['minimal-piral']={};deps["tslib"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_2__;deps["tslib@2.5.2"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_2__;deps["react"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_0__;deps["react@18.2.0"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_0__;deps["react-dom"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-router"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_3__;deps["react-router@5.3.4"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_3__;deps["react-router-dom"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_4__;deps["react-router-dom@5.3.4"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_4__
|
|
5973
5982
|
}
|
|
@@ -43202,7 +43211,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43202
43211
|
var load = loader8[REGISTRY][id];
|
|
43203
43212
|
if (load) return load;
|
|
43204
43213
|
var importerSetters = [];
|
|
43205
|
-
var ns = Object.create(null);
|
|
43214
|
+
var ns = /* @__PURE__ */Object.create(null);
|
|
43206
43215
|
if (toStringTag$1) Object.defineProperty(ns, toStringTag$1, {
|
|
43207
43216
|
value: "Module"
|
|
43208
43217
|
});
|
|
@@ -43270,17 +43279,34 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43270
43279
|
});
|
|
43271
43280
|
return load = loader8[REGISTRY][id] = {
|
|
43272
43281
|
id: id,
|
|
43282
|
+
// importerSetters, the setters functions registered to this dependency
|
|
43283
|
+
// we retain this to add more later
|
|
43273
43284
|
i: importerSetters,
|
|
43285
|
+
// module namespace object
|
|
43274
43286
|
n: ns,
|
|
43287
|
+
// extra module information for import assertion
|
|
43288
|
+
// shape like: { assert: { type: 'xyz' } }
|
|
43275
43289
|
m: meta,
|
|
43290
|
+
// instantiate
|
|
43276
43291
|
I: instantiatePromise,
|
|
43292
|
+
// link
|
|
43277
43293
|
L: linkPromise,
|
|
43294
|
+
// whether it has hoisted exports
|
|
43278
43295
|
h: false,
|
|
43296
|
+
// On instantiate completion we have populated:
|
|
43297
|
+
// dependency load records
|
|
43279
43298
|
d: void 0,
|
|
43299
|
+
// execution function
|
|
43280
43300
|
e: void 0,
|
|
43301
|
+
// On execution we have populated:
|
|
43302
|
+
// the execution error if any
|
|
43281
43303
|
er: void 0,
|
|
43304
|
+
// in the case of TLA, the execution promise
|
|
43282
43305
|
E: void 0,
|
|
43306
|
+
// On execution, L, I, E cleared
|
|
43307
|
+
// Promise for top-level completion
|
|
43283
43308
|
C: void 0,
|
|
43309
|
+
// parent instantiator / executor
|
|
43284
43310
|
p: void 0
|
|
43285
43311
|
};
|
|
43286
43312
|
}
|
|
@@ -43307,7 +43333,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43307
43333
|
return load.n;
|
|
43308
43334
|
});
|
|
43309
43335
|
}
|
|
43310
|
-
var nullContext = Object.freeze(Object.create(null));
|
|
43336
|
+
var nullContext = Object.freeze( /* @__PURE__ */Object.create(null));
|
|
43311
43337
|
function postOrderExec(loader8, load, seen) {
|
|
43312
43338
|
if (seen[load.id]) return;
|
|
43313
43339
|
seen[load.id] = true;
|
|
@@ -43632,7 +43658,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43632
43658
|
}));
|
|
43633
43659
|
});
|
|
43634
43660
|
if (wasmContentType.test(contentType)) return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)).then(function (module) {
|
|
43635
|
-
if (!global2.System.wasmModules) global2.System.wasmModules = Object.create(null);
|
|
43661
|
+
if (!global2.System.wasmModules) global2.System.wasmModules = /* @__PURE__ */Object.create(null);
|
|
43636
43662
|
global2.System.wasmModules[url] = module;
|
|
43637
43663
|
var deps = [];
|
|
43638
43664
|
var setterSources = [];
|
|
@@ -43671,7 +43697,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43671
43697
|
if (toStringTag && module[toStringTag] === "Module") {
|
|
43672
43698
|
ns = module;
|
|
43673
43699
|
} else {
|
|
43674
|
-
ns = Object.assign(Object.create(null), module);
|
|
43700
|
+
ns = Object.assign( /* @__PURE__ */Object.create(null), module);
|
|
43675
43701
|
if (toStringTag) Object.defineProperty(ns, toStringTag, {
|
|
43676
43702
|
value: "Module"
|
|
43677
43703
|
});
|
|
@@ -43757,8 +43783,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
43757
43783
|
System2.constructor = SystemJS;
|
|
43758
43784
|
var firstNamedDefine, firstName;
|
|
43759
43785
|
function setRegisterRegistry(systemInstance) {
|
|
43760
|
-
systemInstance.registerRegistry = Object.create(null);
|
|
43761
|
-
systemInstance.namedRegisterAliases = Object.create(null);
|
|
43786
|
+
systemInstance.registerRegistry = /* @__PURE__ */Object.create(null);
|
|
43787
|
+
systemInstance.namedRegisterAliases = /* @__PURE__ */Object.create(null);
|
|
43762
43788
|
}
|
|
43763
43789
|
var register = systemJSPrototype.register;
|
|
43764
43790
|
systemJSPrototype.register = function (name, deps, declare, metas) {
|
|
@@ -44939,9 +44965,13 @@ function createListener() {
|
|
|
44939
44965
|
return events;
|
|
44940
44966
|
}
|
|
44941
44967
|
|
|
44942
|
-
/*!
|
|
44943
|
-
|
|
44944
|
-
|
|
44968
|
+
/*! Bundled license information:
|
|
44969
|
+
|
|
44970
|
+
systemjs/dist/system.js:
|
|
44971
|
+
(*!
|
|
44972
|
+
* SystemJS 6.14.2
|
|
44973
|
+
*)
|
|
44974
|
+
*/
|
|
44945
44975
|
|
|
44946
44976
|
/***/ }),
|
|
44947
44977
|
|
|
@@ -45127,4 +45157,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45127
45157
|
|
|
45128
45158
|
/******/ })()
|
|
45129
45159
|
;
|
|
45130
|
-
//# sourceMappingURL=index.
|
|
45160
|
+
//# sourceMappingURL=index.ec4d4a.js.map
|