minimal-piral 1.7.3 → 1.8.0-beta.7653
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.f71ea7.js → index.1a51f9.js} +27 -20
- package/app/index.1a51f9.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.f71ea7.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.
|
|
3818
|
+
version: "1.8.0-beta.7653",
|
|
3818
3819
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
3819
3820
|
},
|
|
3820
3821
|
build: {
|
|
3821
|
-
date: "2024-12-
|
|
3822
|
-
cli: "1.
|
|
3822
|
+
date: "2024-12-12T17:01:06.828Z",
|
|
3823
|
+
cli: "1.8.0-beta.7653",
|
|
3823
3824
|
compat: "1"
|
|
3824
3825
|
}
|
|
3825
3826
|
};
|
|
@@ -5928,6 +5929,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
5928
5929
|
var _node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
5929
5930
|
__webpack_require__.r(__webpack_exports__);
|
|
5930
5931
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5932
|
+
/* harmony export */ applyStyle: () => (/* binding */ applyStyle),
|
|
5931
5933
|
/* harmony export */ createDefaultState: () => (/* binding */ createDefaultState),
|
|
5932
5934
|
/* harmony export */ createNavigation: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_5__.createNavigation),
|
|
5933
5935
|
/* harmony export */ createRedirect: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_5__.createRedirect),
|
|
@@ -5970,6 +5972,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5970
5972
|
|
|
5971
5973
|
|
|
5972
5974
|
|
|
5975
|
+
function applyStyle(element) {
|
|
5976
|
+
element.style.display = 'contents';
|
|
5977
|
+
}
|
|
5978
|
+
|
|
5979
|
+
|
|
5973
5980
|
function fillDependencies(deps) {
|
|
5974
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__
|
|
5975
5982
|
}
|
|
@@ -45129,4 +45136,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45129
45136
|
|
|
45130
45137
|
/******/ })()
|
|
45131
45138
|
;
|
|
45132
|
-
//# sourceMappingURL=index.
|
|
45139
|
+
//# sourceMappingURL=index.1a51f9.js.map
|