sample-cross-fx 1.4.0-beta.6280 → 1.4.0-beta.6288
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.006469.js → index.d100bd.js} +323 -338
- package/app/{index.006469.js.map → index.d100bd.js.map} +1 -1
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
|
@@ -57188,10 +57188,10 @@ const RootListener = () => {
|
|
|
57188
57188
|
target.dispose = dispose;
|
|
57189
57189
|
};
|
|
57190
57190
|
document.body.addEventListener('render-html', renderHtml, false);
|
|
57191
|
-
|
|
57191
|
+
window.addEventListener('render-content', renderContent, false);
|
|
57192
57192
|
return () => {
|
|
57193
57193
|
document.body.removeEventListener('render-html', renderHtml, false);
|
|
57194
|
-
|
|
57194
|
+
window.removeEventListener('render-content', renderContent, false);
|
|
57195
57195
|
};
|
|
57196
57196
|
}
|
|
57197
57197
|
}, [context]);
|
|
@@ -58900,6 +58900,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58900
58900
|
|
|
58901
58901
|
|
|
58902
58902
|
if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
58903
|
+
const contents = 'contents';
|
|
58903
58904
|
/**
|
|
58904
58905
|
* This is a nice abstraction allowing anyone to actually use the extension system
|
|
58905
58906
|
* brought by Piral. Not all props of the extension system are actually exposed.
|
|
@@ -58980,7 +58981,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
58980
58981
|
}
|
|
58981
58982
|
}
|
|
58982
58983
|
connectedCallback() {
|
|
58983
|
-
this.style.display =
|
|
58984
|
+
this.style.display = contents;
|
|
58984
58985
|
if (this.isConnected) {
|
|
58985
58986
|
this.dispatchEvent(new CustomEvent('render-html', {
|
|
58986
58987
|
bubbles: true,
|
|
@@ -59027,7 +59028,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
59027
59028
|
*/
|
|
59028
59029
|
class PiralPortal extends HTMLElement {
|
|
59029
59030
|
connectedCallback() {
|
|
59030
|
-
this.style.display =
|
|
59031
|
+
this.style.display = contents;
|
|
59031
59032
|
}
|
|
59032
59033
|
}
|
|
59033
59034
|
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.portalName, PiralPortal);
|
|
@@ -59044,7 +59045,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
59044
59045
|
*/
|
|
59045
59046
|
class PiralSlot extends HTMLElement {
|
|
59046
59047
|
connectedCallback() {
|
|
59047
|
-
this.style.display =
|
|
59048
|
+
this.style.display = contents;
|
|
59048
59049
|
}
|
|
59049
59050
|
}
|
|
59050
59051
|
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.slotName, PiralSlot);
|
|
@@ -59075,13 +59076,13 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
59075
59076
|
this.dispose = _utils__WEBPACK_IMPORTED_MODULE_0__.noop;
|
|
59076
59077
|
}
|
|
59077
59078
|
connectedCallback() {
|
|
59078
|
-
this.style.display =
|
|
59079
|
+
this.style.display = contents;
|
|
59079
59080
|
const cid = this.getAttribute('cid');
|
|
59080
59081
|
const content = PiralContent.contentAssignments[cid];
|
|
59081
59082
|
const portal = this.closest('piral-portal');
|
|
59082
59083
|
if (content && portal) {
|
|
59083
59084
|
const portalId = portal.getAttribute('pid');
|
|
59084
|
-
|
|
59085
|
+
window.dispatchEvent(new CustomEvent('render-content', {
|
|
59085
59086
|
detail: {
|
|
59086
59087
|
target: this,
|
|
59087
59088
|
content,
|
|
@@ -59100,6 +59101,38 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
59100
59101
|
PiralContent.contentAssignments[cid] = content;
|
|
59101
59102
|
};
|
|
59102
59103
|
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.contentName, PiralContent);
|
|
59104
|
+
/**
|
|
59105
|
+
* This is a virtual element to indicate that the contained content is
|
|
59106
|
+
* rendered from a micro frontend's component. It will be used by the
|
|
59107
|
+
* orchestrator, so there is nothing you will need to do with it.
|
|
59108
|
+
*
|
|
59109
|
+
* Right now this is only used when you opt-in in the createInstance.
|
|
59110
|
+
*/
|
|
59111
|
+
class PiralComponent extends HTMLElement {
|
|
59112
|
+
get name() {
|
|
59113
|
+
return this.getAttribute('name');
|
|
59114
|
+
}
|
|
59115
|
+
get origin() {
|
|
59116
|
+
return this.getAttribute('origin');
|
|
59117
|
+
}
|
|
59118
|
+
connectedCallback() {
|
|
59119
|
+
this.style.display = contents;
|
|
59120
|
+
this.deferEvent('add-component');
|
|
59121
|
+
}
|
|
59122
|
+
disconnectedCallback() {
|
|
59123
|
+
this.deferEvent('remove-component');
|
|
59124
|
+
}
|
|
59125
|
+
deferEvent(eventName) {
|
|
59126
|
+
const ev = new CustomEvent(eventName, {
|
|
59127
|
+
detail: {
|
|
59128
|
+
name: this.name,
|
|
59129
|
+
origin: this.origin
|
|
59130
|
+
}
|
|
59131
|
+
});
|
|
59132
|
+
setTimeout(() => window.dispatchEvent(ev), 0);
|
|
59133
|
+
}
|
|
59134
|
+
}
|
|
59135
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.componentName, PiralComponent);
|
|
59103
59136
|
}
|
|
59104
59137
|
function renderElement(context, element, props) {
|
|
59105
59138
|
if (typeof window !== 'undefined') {
|
|
@@ -59316,8 +59349,9 @@ function getWrapper(wrappers, wrapperType) {
|
|
|
59316
59349
|
return WrapType || WrapAll || DefaultWrapper;
|
|
59317
59350
|
}
|
|
59318
59351
|
function makeWrapper(context, outerProps, wrapperType, errorType) {
|
|
59352
|
+
const wrapped = context.readState(m => m.app.wrap);
|
|
59319
59353
|
const OuterWrapper = context.readState(m => getWrapper(m.registry.wrappers, wrapperType));
|
|
59320
|
-
|
|
59354
|
+
const Wrapper = props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(OuterWrapper, {
|
|
59321
59355
|
...outerProps,
|
|
59322
59356
|
...props
|
|
59323
59357
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_2__.ErrorBoundary, {
|
|
@@ -59325,6 +59359,11 @@ function makeWrapper(context, outerProps, wrapperType, errorType) {
|
|
|
59325
59359
|
...props,
|
|
59326
59360
|
errorType: errorType
|
|
59327
59361
|
}, props.children));
|
|
59362
|
+
return wrapped ? props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-component", {
|
|
59363
|
+
origin: outerProps.piral.meta.name
|
|
59364
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper, {
|
|
59365
|
+
...props
|
|
59366
|
+
})) : Wrapper;
|
|
59328
59367
|
}
|
|
59329
59368
|
function withApi(context, component, piral, errorType, wrapperType = errorType, captured = {}) {
|
|
59330
59369
|
const outerProps = {
|
|
@@ -59396,20 +59435,9 @@ function integrateDebugger(context, options, debug = {}) {
|
|
|
59396
59435
|
integrate(dbg) {
|
|
59397
59436
|
context.dispatch(s => ({
|
|
59398
59437
|
...s,
|
|
59399
|
-
components: {
|
|
59400
|
-
...s.components,
|
|
59401
|
-
...dbg.components
|
|
59402
|
-
},
|
|
59403
59438
|
routes: {
|
|
59404
59439
|
...s.routes,
|
|
59405
59440
|
...dbg.routes
|
|
59406
|
-
},
|
|
59407
|
-
registry: {
|
|
59408
|
-
...s.registry,
|
|
59409
|
-
wrappers: {
|
|
59410
|
-
...s.registry.wrappers,
|
|
59411
|
-
...dbg.wrappers
|
|
59412
|
-
}
|
|
59413
59441
|
}
|
|
59414
59442
|
}));
|
|
59415
59443
|
context.state.subscribe((current, previous) => {
|
|
@@ -59630,6 +59658,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
59630
59658
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
59631
59659
|
/* harmony export */ attachDomPortal: () => (/* binding */ attachDomPortal),
|
|
59632
59660
|
/* harmony export */ changeDomPortal: () => (/* binding */ changeDomPortal),
|
|
59661
|
+
/* harmony export */ componentName: () => (/* binding */ componentName),
|
|
59633
59662
|
/* harmony export */ contentName: () => (/* binding */ contentName),
|
|
59634
59663
|
/* harmony export */ convertComponent: () => (/* binding */ convertComponent),
|
|
59635
59664
|
/* harmony export */ extensionName: () => (/* binding */ extensionName),
|
|
@@ -59643,6 +59672,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
59643
59672
|
|
|
59644
59673
|
|
|
59645
59674
|
const extensionName = 'piral-extension';
|
|
59675
|
+
const componentName = 'piral-component';
|
|
59646
59676
|
const contentName = 'piral-content';
|
|
59647
59677
|
const portalName = 'piral-portal';
|
|
59648
59678
|
const slotName = 'piral-slot';
|
|
@@ -60338,35 +60368,6 @@ function createLazyApi() {
|
|
|
60338
60368
|
|
|
60339
60369
|
/***/ }),
|
|
60340
60370
|
|
|
60341
|
-
/***/ "../../utilities/piral-debug-utils/esm/DebugTracker.js":
|
|
60342
|
-
/*!*************************************************************!*\
|
|
60343
|
-
!*** ../../utilities/piral-debug-utils/esm/DebugTracker.js ***!
|
|
60344
|
-
\*************************************************************/
|
|
60345
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60346
|
-
|
|
60347
|
-
"use strict";
|
|
60348
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60349
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60350
|
-
/* harmony export */ DebugTracker: () => (/* binding */ DebugTracker)
|
|
60351
|
-
/* harmony export */ });
|
|
60352
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
60353
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
60354
|
-
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state */ "../../utilities/piral-debug-utils/esm/state.js");
|
|
60355
|
-
|
|
60356
|
-
|
|
60357
|
-
const DebugTracker = () => {
|
|
60358
|
-
const route = (0,_state__WEBPACK_IMPORTED_MODULE_1__.useDebugState)(s => s.route);
|
|
60359
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
|
60360
|
-
if (route) {
|
|
60361
|
-
(0,_state__WEBPACK_IMPORTED_MODULE_1__.navigate)(route.path, route.state);
|
|
60362
|
-
}
|
|
60363
|
-
}, [route]);
|
|
60364
|
-
// tslint:disable-next-line:no-null-keyword
|
|
60365
|
-
return null;
|
|
60366
|
-
};
|
|
60367
|
-
|
|
60368
|
-
/***/ }),
|
|
60369
|
-
|
|
60370
60371
|
/***/ "../../utilities/piral-debug-utils/esm/ExtensionCatalogue.js":
|
|
60371
60372
|
/*!*******************************************************************!*\
|
|
60372
60373
|
!*** ../../utilities/piral-debug-utils/esm/ExtensionCatalogue.js ***!
|
|
@@ -60392,6 +60393,7 @@ const ExtensionCatalogue = () => {
|
|
|
60392
60393
|
name = '',
|
|
60393
60394
|
params = {}
|
|
60394
60395
|
} = state;
|
|
60396
|
+
// @ts-ignore
|
|
60395
60397
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-extension", {
|
|
60396
60398
|
name: name,
|
|
60397
60399
|
params: JSON.stringify(params)
|
|
@@ -60402,139 +60404,6 @@ const ExtensionCatalogue = () => {
|
|
|
60402
60404
|
|
|
60403
60405
|
/***/ }),
|
|
60404
60406
|
|
|
60405
|
-
/***/ "../../utilities/piral-debug-utils/esm/VisualizationWrapper.js":
|
|
60406
|
-
/*!*********************************************************************!*\
|
|
60407
|
-
!*** ../../utilities/piral-debug-utils/esm/VisualizationWrapper.js ***!
|
|
60408
|
-
\*********************************************************************/
|
|
60409
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60410
|
-
|
|
60411
|
-
"use strict";
|
|
60412
|
-
__webpack_require__.r(__webpack_exports__);
|
|
60413
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60414
|
-
/* harmony export */ VisualizationWrapper: () => (/* binding */ VisualizationWrapper)
|
|
60415
|
-
/* harmony export */ });
|
|
60416
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
60417
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
60418
|
-
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state */ "../../utilities/piral-debug-utils/esm/state.js");
|
|
60419
|
-
|
|
60420
|
-
|
|
60421
|
-
const moduleColor = {};
|
|
60422
|
-
const Visualizer = ({
|
|
60423
|
-
pilet,
|
|
60424
|
-
force,
|
|
60425
|
-
active
|
|
60426
|
-
}) => {
|
|
60427
|
-
const colors = ['#001F3F', '#0074D9', '#7FDBFF', '#39CCCC', '#3D9970', '#2ECC40', '#01FF70', '#FFDC00', '#FF851B', '#FF4136', '#85144B', '#F012BE', '#B10DC9'];
|
|
60428
|
-
const container = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
|
|
60429
|
-
const color = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => moduleColor[pilet] || (moduleColor[pilet] = colors[Object.keys(moduleColor).length % colors.length]), [pilet]);
|
|
60430
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
|
60431
|
-
let sibling = container.current && container.current.nextElementSibling;
|
|
60432
|
-
if (sibling && active) {
|
|
60433
|
-
const target = container.current.parentNode;
|
|
60434
|
-
const mouseIn = () => {
|
|
60435
|
-
if (container.current && sibling) {
|
|
60436
|
-
const style = container.current.style;
|
|
60437
|
-
style.display = 'block';
|
|
60438
|
-
style.left = '0px';
|
|
60439
|
-
style.top = '0px';
|
|
60440
|
-
style.bottom = '0px';
|
|
60441
|
-
style.right = '0px';
|
|
60442
|
-
const targetRect = sibling.getBoundingClientRect();
|
|
60443
|
-
const sourceRect = container.current.getBoundingClientRect();
|
|
60444
|
-
style.left = targetRect.left - sourceRect.left + 'px';
|
|
60445
|
-
style.top = targetRect.top - sourceRect.top + 'px';
|
|
60446
|
-
style.bottom = -(targetRect.bottom - sourceRect.bottom) + 'px';
|
|
60447
|
-
style.right = -(targetRect.right - sourceRect.right) + 'px';
|
|
60448
|
-
}
|
|
60449
|
-
};
|
|
60450
|
-
const mouseOut = () => {
|
|
60451
|
-
if (container.current) {
|
|
60452
|
-
const style = container.current.style;
|
|
60453
|
-
style.display = 'none';
|
|
60454
|
-
}
|
|
60455
|
-
};
|
|
60456
|
-
const append = () => {
|
|
60457
|
-
if (force) {
|
|
60458
|
-
mouseIn();
|
|
60459
|
-
} else if (sibling) {
|
|
60460
|
-
sibling.addEventListener('mouseover', mouseIn);
|
|
60461
|
-
sibling.addEventListener('mouseout', mouseOut);
|
|
60462
|
-
}
|
|
60463
|
-
};
|
|
60464
|
-
const remove = () => {
|
|
60465
|
-
if (force) {
|
|
60466
|
-
mouseOut();
|
|
60467
|
-
} else if (sibling) {
|
|
60468
|
-
sibling.removeEventListener('mouseover', mouseIn);
|
|
60469
|
-
sibling.removeEventListener('mouseout', mouseOut);
|
|
60470
|
-
}
|
|
60471
|
-
};
|
|
60472
|
-
const observer = new MutationObserver(() => {
|
|
60473
|
-
const newSibling = container.current?.nextElementSibling;
|
|
60474
|
-
if (newSibling !== sibling) {
|
|
60475
|
-
remove();
|
|
60476
|
-
sibling = newSibling;
|
|
60477
|
-
append();
|
|
60478
|
-
}
|
|
60479
|
-
});
|
|
60480
|
-
append();
|
|
60481
|
-
observer.observe(target, {
|
|
60482
|
-
childList: true
|
|
60483
|
-
});
|
|
60484
|
-
return () => {
|
|
60485
|
-
remove();
|
|
60486
|
-
observer.disconnect();
|
|
60487
|
-
};
|
|
60488
|
-
}
|
|
60489
|
-
}, [active, force]);
|
|
60490
|
-
if (active) {
|
|
60491
|
-
const rect = {
|
|
60492
|
-
border: '1px solid red',
|
|
60493
|
-
display: 'none',
|
|
60494
|
-
position: 'absolute',
|
|
60495
|
-
top: 0,
|
|
60496
|
-
bottom: 0,
|
|
60497
|
-
right: 0,
|
|
60498
|
-
left: 0,
|
|
60499
|
-
zIndex: 99999999999,
|
|
60500
|
-
pointerEvents: 'none',
|
|
60501
|
-
borderColor: color
|
|
60502
|
-
};
|
|
60503
|
-
const info = {
|
|
60504
|
-
color: 'white',
|
|
60505
|
-
position: 'absolute',
|
|
60506
|
-
right: 0,
|
|
60507
|
-
top: 0,
|
|
60508
|
-
fontSize: '8px',
|
|
60509
|
-
background: color
|
|
60510
|
-
};
|
|
60511
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
|
|
60512
|
-
style: rect,
|
|
60513
|
-
ref: container
|
|
60514
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
|
|
60515
|
-
style: info
|
|
60516
|
-
}, pilet));
|
|
60517
|
-
}
|
|
60518
|
-
// tslint:disable-next-line:no-null-keyword
|
|
60519
|
-
return null;
|
|
60520
|
-
};
|
|
60521
|
-
const VisualizationWrapper = ({
|
|
60522
|
-
piral,
|
|
60523
|
-
children
|
|
60524
|
-
}) => {
|
|
60525
|
-
const {
|
|
60526
|
-
active,
|
|
60527
|
-
force
|
|
60528
|
-
} = (0,_state__WEBPACK_IMPORTED_MODULE_1__.useDebugState)(m => m.visualize);
|
|
60529
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Visualizer, {
|
|
60530
|
-
pilet: piral.meta.name,
|
|
60531
|
-
force: force,
|
|
60532
|
-
active: active
|
|
60533
|
-
}), children);
|
|
60534
|
-
};
|
|
60535
|
-
|
|
60536
|
-
/***/ }),
|
|
60537
|
-
|
|
60538
60407
|
/***/ "../../utilities/piral-debug-utils/esm/debug.js":
|
|
60539
60408
|
/*!******************************************************!*\
|
|
60540
60409
|
!*** ../../utilities/piral-debug-utils/esm/debug.js ***!
|
|
@@ -60546,16 +60415,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60546
60415
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60547
60416
|
/* harmony export */ installPiralDebug: () => (/* binding */ installPiralDebug)
|
|
60548
60417
|
/* harmony export */ });
|
|
60549
|
-
/* harmony import */ var _DebugTracker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DebugTracker */ "../../utilities/piral-debug-utils/esm/DebugTracker.js");
|
|
60550
|
-
/* harmony import */ var _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VisualizationWrapper */ "../../utilities/piral-debug-utils/esm/VisualizationWrapper.js");
|
|
60551
60418
|
/* harmony import */ var _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ExtensionCatalogue */ "../../utilities/piral-debug-utils/esm/ExtensionCatalogue.js");
|
|
60552
|
-
/* harmony import */ var
|
|
60419
|
+
/* harmony import */ var _decycle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./decycle */ "../../utilities/piral-debug-utils/esm/decycle.js");
|
|
60420
|
+
/* harmony import */ var _visualizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./visualizer */ "../../utilities/piral-debug-utils/esm/visualizer.js");
|
|
60553
60421
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./state */ "../../utilities/piral-debug-utils/esm/state.js");
|
|
60554
60422
|
|
|
60555
60423
|
|
|
60556
60424
|
|
|
60557
60425
|
|
|
60558
|
-
|
|
60559
60426
|
function installPiralDebug(options) {
|
|
60560
60427
|
const {
|
|
60561
60428
|
getGlobalState,
|
|
@@ -60579,7 +60446,6 @@ function installPiralDebug(options) {
|
|
|
60579
60446
|
const selfSource = 'piral-debug-api';
|
|
60580
60447
|
const debugApiVersion = 'v1';
|
|
60581
60448
|
let setValue = _state__WEBPACK_IMPORTED_MODULE_0__.initialSetter;
|
|
60582
|
-
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setInitialState)(initialSettings);
|
|
60583
60449
|
const settings = {
|
|
60584
60450
|
...customSettings,
|
|
60585
60451
|
viewState: {
|
|
@@ -60642,6 +60508,9 @@ function installPiralDebug(options) {
|
|
|
60642
60508
|
}
|
|
60643
60509
|
}
|
|
60644
60510
|
};
|
|
60511
|
+
if (initialSettings.viewOrigins) {
|
|
60512
|
+
(0,_visualizer__WEBPACK_IMPORTED_MODULE_1__.createVisualizer)();
|
|
60513
|
+
}
|
|
60645
60514
|
const sendMessage = content => {
|
|
60646
60515
|
window.postMessage({
|
|
60647
60516
|
content,
|
|
@@ -60720,32 +60589,12 @@ function installPiralDebug(options) {
|
|
|
60720
60589
|
});
|
|
60721
60590
|
}
|
|
60722
60591
|
};
|
|
60723
|
-
const toggleVisualize = () => {
|
|
60724
|
-
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setState)(s => ({
|
|
60725
|
-
...s,
|
|
60726
|
-
visualize: {
|
|
60727
|
-
...s.visualize,
|
|
60728
|
-
force: !s.visualize.force
|
|
60729
|
-
}
|
|
60730
|
-
}));
|
|
60731
|
-
};
|
|
60732
60592
|
const updateVisualize = active => {
|
|
60733
|
-
(
|
|
60734
|
-
|
|
60735
|
-
|
|
60736
|
-
|
|
60737
|
-
|
|
60738
|
-
}
|
|
60739
|
-
}));
|
|
60740
|
-
};
|
|
60741
|
-
const goToRoute = (path, state) => {
|
|
60742
|
-
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setState)(s => ({
|
|
60743
|
-
...s,
|
|
60744
|
-
route: {
|
|
60745
|
-
path,
|
|
60746
|
-
state
|
|
60747
|
-
}
|
|
60748
|
-
}));
|
|
60593
|
+
if (active) {
|
|
60594
|
+
(0,_visualizer__WEBPACK_IMPORTED_MODULE_1__.createVisualizer)();
|
|
60595
|
+
} else {
|
|
60596
|
+
(0,_visualizer__WEBPACK_IMPORTED_MODULE_1__.destroyVisualizer)();
|
|
60597
|
+
}
|
|
60749
60598
|
};
|
|
60750
60599
|
const eventDispatcher = document.body.dispatchEvent;
|
|
60751
60600
|
const systemResolve = System.constructor.prototype.resolve;
|
|
@@ -60777,12 +60626,12 @@ function installPiralDebug(options) {
|
|
|
60777
60626
|
debug: debugApiVersion,
|
|
60778
60627
|
instance: {
|
|
60779
60628
|
name: "sample-cross-fx",
|
|
60780
|
-
version: "1.4.0-beta.
|
|
60629
|
+
version: "1.4.0-beta.6288",
|
|
60781
60630
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/web,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
60782
60631
|
},
|
|
60783
60632
|
build: {
|
|
60784
|
-
date: "2023-
|
|
60785
|
-
cli: "1.4.0-beta.
|
|
60633
|
+
date: "2023-12-01T20:16:06.443Z",
|
|
60634
|
+
cli: "1.4.0-beta.6288",
|
|
60786
60635
|
compat: "1"
|
|
60787
60636
|
}
|
|
60788
60637
|
};
|
|
@@ -60794,7 +60643,7 @@ function installPiralDebug(options) {
|
|
|
60794
60643
|
capabilities: ['events', 'container', 'routes', 'pilets', 'settings', 'extensions', 'dependencies', 'dependency-map']
|
|
60795
60644
|
};
|
|
60796
60645
|
const start = () => {
|
|
60797
|
-
const container = (0,
|
|
60646
|
+
const container = (0,_decycle__WEBPACK_IMPORTED_MODULE_2__.decycle)(getGlobalState());
|
|
60798
60647
|
const routes = getRoutes().filter(r => !excludedRoutes.includes(r));
|
|
60799
60648
|
const extensions = getExtensions();
|
|
60800
60649
|
const settings = getSettings();
|
|
@@ -60865,7 +60714,7 @@ function installPiralDebug(options) {
|
|
|
60865
60714
|
events.unshift({
|
|
60866
60715
|
id: events.length.toString(),
|
|
60867
60716
|
name: ev.type.replace('piral-', ''),
|
|
60868
|
-
args: (0,
|
|
60717
|
+
args: (0,_decycle__WEBPACK_IMPORTED_MODULE_2__.decycle)(ev.detail.arg),
|
|
60869
60718
|
time: Date.now()
|
|
60870
60719
|
});
|
|
60871
60720
|
sendMessage({
|
|
@@ -60913,23 +60762,16 @@ function installPiralDebug(options) {
|
|
|
60913
60762
|
case 'emit-event':
|
|
60914
60763
|
return fireEvent(content.name, content.args);
|
|
60915
60764
|
case 'goto-route':
|
|
60916
|
-
return
|
|
60765
|
+
return navigate(content.route, content.state);
|
|
60917
60766
|
case 'visualize-all':
|
|
60918
|
-
return
|
|
60767
|
+
return (0,_visualizer__WEBPACK_IMPORTED_MODULE_1__.toggleVisualizer)();
|
|
60919
60768
|
}
|
|
60920
60769
|
}
|
|
60921
60770
|
});
|
|
60922
|
-
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setNavigate)(navigate);
|
|
60923
60771
|
integrate({
|
|
60924
|
-
components: {
|
|
60925
|
-
Debug: _DebugTracker__WEBPACK_IMPORTED_MODULE_2__.DebugTracker
|
|
60926
|
-
},
|
|
60927
60772
|
routes: {
|
|
60928
60773
|
[initialSettings.cataloguePath]: _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__.ExtensionCatalogue
|
|
60929
60774
|
},
|
|
60930
|
-
wrappers: {
|
|
60931
|
-
'*': _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__.VisualizationWrapper
|
|
60932
|
-
},
|
|
60933
60775
|
onChange(previous, current, changed) {
|
|
60934
60776
|
if (changed.state) {
|
|
60935
60777
|
if (settings.viewState.value) {
|
|
@@ -60952,7 +60794,7 @@ function installPiralDebug(options) {
|
|
|
60952
60794
|
}
|
|
60953
60795
|
sendMessage({
|
|
60954
60796
|
type: 'container',
|
|
60955
|
-
container: (0,
|
|
60797
|
+
container: (0,_decycle__WEBPACK_IMPORTED_MODULE_2__.decycle)(getGlobalState())
|
|
60956
60798
|
});
|
|
60957
60799
|
}
|
|
60958
60800
|
if (changed.pilets) {
|
|
@@ -61173,19 +61015,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61173
61015
|
/* harmony export */ disablePersistance: () => (/* binding */ disablePersistance),
|
|
61174
61016
|
/* harmony export */ enablePersistance: () => (/* binding */ enablePersistance),
|
|
61175
61017
|
/* harmony export */ getInitialSettings: () => (/* binding */ getInitialSettings),
|
|
61176
|
-
/* harmony export */ getState: () => (/* binding */ getState),
|
|
61177
61018
|
/* harmony export */ initialSetter: () => (/* binding */ initialSetter),
|
|
61178
|
-
/* harmony export */
|
|
61179
|
-
/* harmony export */ setInitialState: () => (/* binding */ setInitialState),
|
|
61180
|
-
/* harmony export */ setNavigate: () => (/* binding */ setNavigate),
|
|
61181
|
-
/* harmony export */ setState: () => (/* binding */ setState),
|
|
61182
|
-
/* harmony export */ settingsKeys: () => (/* binding */ settingsKeys),
|
|
61183
|
-
/* harmony export */ subscribe: () => (/* binding */ subscribe),
|
|
61184
|
-
/* harmony export */ useDebugState: () => (/* binding */ useDebugState)
|
|
61019
|
+
/* harmony export */ settingsKeys: () => (/* binding */ settingsKeys)
|
|
61185
61020
|
/* harmony export */ });
|
|
61186
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
61187
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
61188
|
-
|
|
61189
61021
|
const settingsKeys = {
|
|
61190
61022
|
viewState: 'dbg:view-state',
|
|
61191
61023
|
loadPilets: 'dbg:load-pilets',
|
|
@@ -61258,63 +61090,6 @@ function getInitialSettings(defaultValues) {
|
|
|
61258
61090
|
cataloguePath: '/$debug-extension-catalogue'
|
|
61259
61091
|
};
|
|
61260
61092
|
}
|
|
61261
|
-
const listeners = [];
|
|
61262
|
-
let _navigate = undefined;
|
|
61263
|
-
function setNavigate(navigate) {
|
|
61264
|
-
_navigate = navigate;
|
|
61265
|
-
}
|
|
61266
|
-
function navigate(path, state) {
|
|
61267
|
-
_navigate?.(path, state);
|
|
61268
|
-
}
|
|
61269
|
-
let state = {
|
|
61270
|
-
visualize: {
|
|
61271
|
-
active: false,
|
|
61272
|
-
force: false
|
|
61273
|
-
},
|
|
61274
|
-
catalogue: {
|
|
61275
|
-
active: false,
|
|
61276
|
-
path: ''
|
|
61277
|
-
},
|
|
61278
|
-
route: undefined
|
|
61279
|
-
};
|
|
61280
|
-
function setInitialState(initialSettings) {
|
|
61281
|
-
state.visualize.active = initialSettings.viewOrigins;
|
|
61282
|
-
state.catalogue.active = initialSettings.extensionCatalogue;
|
|
61283
|
-
state.catalogue.path = initialSettings.cataloguePath;
|
|
61284
|
-
}
|
|
61285
|
-
function setState(dispatch) {
|
|
61286
|
-
const newState = dispatch(state);
|
|
61287
|
-
if (newState !== state) {
|
|
61288
|
-
state = newState;
|
|
61289
|
-
listeners.forEach(listener => listener());
|
|
61290
|
-
}
|
|
61291
|
-
}
|
|
61292
|
-
function getState() {
|
|
61293
|
-
return state;
|
|
61294
|
-
}
|
|
61295
|
-
function subscribe(select, notify) {
|
|
61296
|
-
let prevState = select(state);
|
|
61297
|
-
const cb = () => {
|
|
61298
|
-
const nextState = select(state);
|
|
61299
|
-
if (prevState !== nextState) {
|
|
61300
|
-
prevState = nextState;
|
|
61301
|
-
notify(nextState);
|
|
61302
|
-
}
|
|
61303
|
-
};
|
|
61304
|
-
const unsubscribe = () => {
|
|
61305
|
-
const idx = listeners.indexOf(cb);
|
|
61306
|
-
if (idx !== -1) {
|
|
61307
|
-
listeners.splice(idx, 1);
|
|
61308
|
-
}
|
|
61309
|
-
};
|
|
61310
|
-
listeners.push(cb);
|
|
61311
|
-
return unsubscribe;
|
|
61312
|
-
}
|
|
61313
|
-
function useDebugState(select) {
|
|
61314
|
-
const [state, setState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(() => select(getState()));
|
|
61315
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => subscribe(select, setState), []);
|
|
61316
|
-
return state;
|
|
61317
|
-
}
|
|
61318
61093
|
|
|
61319
61094
|
/***/ }),
|
|
61320
61095
|
|
|
@@ -61350,6 +61125,153 @@ function useDebugRouteFilter(paths) {
|
|
|
61350
61125
|
|
|
61351
61126
|
/***/ }),
|
|
61352
61127
|
|
|
61128
|
+
/***/ "../../utilities/piral-debug-utils/esm/visualizer.js":
|
|
61129
|
+
/*!***********************************************************!*\
|
|
61130
|
+
!*** ../../utilities/piral-debug-utils/esm/visualizer.js ***!
|
|
61131
|
+
\***********************************************************/
|
|
61132
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
61133
|
+
|
|
61134
|
+
"use strict";
|
|
61135
|
+
__webpack_require__.r(__webpack_exports__);
|
|
61136
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61137
|
+
/* harmony export */ createVisualizer: () => (/* binding */ createVisualizer),
|
|
61138
|
+
/* harmony export */ destroyVisualizer: () => (/* binding */ destroyVisualizer),
|
|
61139
|
+
/* harmony export */ toggleVisualizer: () => (/* binding */ toggleVisualizer)
|
|
61140
|
+
/* harmony export */ });
|
|
61141
|
+
const visualizerName = 'piral-inspector-visualizer';
|
|
61142
|
+
const persistAttribute = 'persist';
|
|
61143
|
+
const piletColorMap = {};
|
|
61144
|
+
const colors = ['#001F3F', '#0074D9', '#7FDBFF', '#39CCCC', '#3D9970', '#2ECC40', '#01FF70', '#FFDC00', '#FF851B', '#FF4136', '#85144B', '#F012BE', '#B10DC9'];
|
|
61145
|
+
function getTarget(element) {
|
|
61146
|
+
const row = element.childNodes;
|
|
61147
|
+
const rects = Array.prototype.map.call(row, item => {
|
|
61148
|
+
if (item instanceof Element) {
|
|
61149
|
+
return item.getBoundingClientRect();
|
|
61150
|
+
} else if (item instanceof Text) {
|
|
61151
|
+
const range = document.createRange();
|
|
61152
|
+
range.selectNode(item);
|
|
61153
|
+
return range.getBoundingClientRect();
|
|
61154
|
+
} else {
|
|
61155
|
+
return new DOMRectReadOnly(0, 0, 0, 0);
|
|
61156
|
+
}
|
|
61157
|
+
});
|
|
61158
|
+
const relevant = rects.filter(m => m.height !== 0 && m.width !== 0);
|
|
61159
|
+
if (relevant.length === 0) {
|
|
61160
|
+
return new DOMRectReadOnly(0, 0, 0, 0);
|
|
61161
|
+
}
|
|
61162
|
+
return relevant.reduce((a, b) => {
|
|
61163
|
+
const x = Math.min(a.left, b.left);
|
|
61164
|
+
const y = Math.min(a.top, b.top);
|
|
61165
|
+
const width = Math.max(a.right, b.right) - x;
|
|
61166
|
+
const height = Math.max(a.bottom, b.bottom) - y;
|
|
61167
|
+
return new DOMRectReadOnly(x, y, width, height);
|
|
61168
|
+
});
|
|
61169
|
+
}
|
|
61170
|
+
function hide(vis) {
|
|
61171
|
+
vis.style.opacity = '0';
|
|
61172
|
+
// vis.style.pointerEvents = 'auto';
|
|
61173
|
+
}
|
|
61174
|
+
|
|
61175
|
+
function show(vis) {
|
|
61176
|
+
vis.style.opacity = '1';
|
|
61177
|
+
// vis.style.pointerEvents = 'none';
|
|
61178
|
+
}
|
|
61179
|
+
|
|
61180
|
+
function updatePosition(source, vis) {
|
|
61181
|
+
const targetRect = getTarget(source);
|
|
61182
|
+
vis.style.left = targetRect.left + 'px';
|
|
61183
|
+
vis.style.top = targetRect.top + 'px';
|
|
61184
|
+
vis.style.width = targetRect.width + 'px';
|
|
61185
|
+
vis.style.height = targetRect.height + 'px';
|
|
61186
|
+
}
|
|
61187
|
+
class PiralInspectorVisualizer extends HTMLElement {
|
|
61188
|
+
constructor() {
|
|
61189
|
+
super(...arguments);
|
|
61190
|
+
this.update = () => {
|
|
61191
|
+
const persist = this.getAttribute(persistAttribute) !== null;
|
|
61192
|
+
this.innerText = '';
|
|
61193
|
+
document.querySelectorAll('piral-component').forEach(element => {
|
|
61194
|
+
const pilet = element.getAttribute('origin');
|
|
61195
|
+
const vis = this.appendChild(document.createElement('div'));
|
|
61196
|
+
const info = vis.appendChild(document.createElement('div'));
|
|
61197
|
+
vis.style.position = 'absolute';
|
|
61198
|
+
vis.style.zIndex = '2147483647';
|
|
61199
|
+
vis.style.border = '1px solid #ccc';
|
|
61200
|
+
vis.style.pointerEvents = 'none';
|
|
61201
|
+
info.style.color = 'white';
|
|
61202
|
+
info.textContent = pilet;
|
|
61203
|
+
info.style.position = 'absolute';
|
|
61204
|
+
info.style.right = '0';
|
|
61205
|
+
info.style.top = '0';
|
|
61206
|
+
info.style.fontSize = '8px';
|
|
61207
|
+
info.style.background = piletColorMap[pilet] || (piletColorMap[pilet] = colors[Object.keys(piletColorMap).length % colors.length]);
|
|
61208
|
+
if (!persist) {
|
|
61209
|
+
hide(vis);
|
|
61210
|
+
element.addEventListener('mouseenter', () => {
|
|
61211
|
+
updatePosition(element, vis);
|
|
61212
|
+
show(vis);
|
|
61213
|
+
});
|
|
61214
|
+
element.addEventListener('mouseleave', () => {
|
|
61215
|
+
hide(vis);
|
|
61216
|
+
});
|
|
61217
|
+
} else {
|
|
61218
|
+
updatePosition(element, vis);
|
|
61219
|
+
show(vis);
|
|
61220
|
+
}
|
|
61221
|
+
});
|
|
61222
|
+
};
|
|
61223
|
+
}
|
|
61224
|
+
connectedCallback() {
|
|
61225
|
+
this.style.position = 'absolute';
|
|
61226
|
+
this.style.top = '0';
|
|
61227
|
+
this.style.left = '0';
|
|
61228
|
+
this.style.width = '0';
|
|
61229
|
+
this.style.height = '0';
|
|
61230
|
+
window.addEventListener('resize', this.update);
|
|
61231
|
+
window.addEventListener('add-component', this.update);
|
|
61232
|
+
window.addEventListener('remove-component', this.update);
|
|
61233
|
+
this.update();
|
|
61234
|
+
}
|
|
61235
|
+
disconnectedCallback() {
|
|
61236
|
+
window.removeEventListener('resize', this.update);
|
|
61237
|
+
window.removeEventListener('add-component', this.update);
|
|
61238
|
+
window.removeEventListener('remove-component', this.update);
|
|
61239
|
+
}
|
|
61240
|
+
static get observedAttributes() {
|
|
61241
|
+
return [persistAttribute];
|
|
61242
|
+
}
|
|
61243
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
61244
|
+
if (name === persistAttribute && oldValue !== newValue) {
|
|
61245
|
+
this.update();
|
|
61246
|
+
}
|
|
61247
|
+
}
|
|
61248
|
+
}
|
|
61249
|
+
customElements.define(visualizerName, PiralInspectorVisualizer);
|
|
61250
|
+
function createVisualizer() {
|
|
61251
|
+
const visualizer = document.querySelector(visualizerName);
|
|
61252
|
+
if (!visualizer) {
|
|
61253
|
+
document.body.appendChild(document.createElement(visualizerName));
|
|
61254
|
+
}
|
|
61255
|
+
}
|
|
61256
|
+
function destroyVisualizer() {
|
|
61257
|
+
const visualizer = document.querySelector(visualizerName);
|
|
61258
|
+
if (visualizer) {
|
|
61259
|
+
visualizer.remove();
|
|
61260
|
+
}
|
|
61261
|
+
}
|
|
61262
|
+
function toggleVisualizer() {
|
|
61263
|
+
const visualizer = document.querySelector(visualizerName);
|
|
61264
|
+
if (visualizer) {
|
|
61265
|
+
if (visualizer.getAttribute(persistAttribute) !== null) {
|
|
61266
|
+
visualizer.removeAttribute(persistAttribute);
|
|
61267
|
+
} else {
|
|
61268
|
+
visualizer.setAttribute(persistAttribute, '');
|
|
61269
|
+
}
|
|
61270
|
+
}
|
|
61271
|
+
}
|
|
61272
|
+
|
|
61273
|
+
/***/ }),
|
|
61274
|
+
|
|
61353
61275
|
/***/ "../../../node_modules/core-js/internals/a-callable.js":
|
|
61354
61276
|
/*!*************************************************************!*\
|
|
61355
61277
|
!*** ../../../node_modules/core-js/internals/a-callable.js ***!
|
|
@@ -72390,7 +72312,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72390
72312
|
|
|
72391
72313
|
|
|
72392
72314
|
function fillDependencies(deps) {
|
|
72393
|
-
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.8.2"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/web"]=_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng/common@1.4.0-beta.
|
|
72315
|
+
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.8.2"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/web"]=_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng/common@1.4.0-beta.6288"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng@1.4.0-beta.6288"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["preact@10.18.1"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["riot@4.14.0"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["rxjs@7.5.6"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["vue@2.7.14"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["zone.js@0.13.3"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["tslib@2.5.2"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react@18.2.0"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router@5.3.4"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__;deps["react-router-dom@5.3.4"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__
|
|
72394
72316
|
}
|
|
72395
72317
|
|
|
72396
72318
|
|
|
@@ -72405,6 +72327,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72405
72327
|
app: {
|
|
72406
72328
|
error: undefined,
|
|
72407
72329
|
loading: typeof window !== 'undefined',
|
|
72330
|
+
wrap: true,
|
|
72408
72331
|
},
|
|
72409
72332
|
components: {
|
|
72410
72333
|
ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_32__.DefaultErrorInfo,
|
|
@@ -219522,21 +219445,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219522
219445
|
}
|
|
219523
219446
|
var systemJSPrototype = SystemJS.prototype;
|
|
219524
219447
|
systemJSPrototype.import = function (id, parentUrl, meta) {
|
|
219525
|
-
var
|
|
219448
|
+
var loader8 = this;
|
|
219526
219449
|
parentUrl && typeof parentUrl === "object" && (meta = parentUrl, parentUrl = void 0);
|
|
219527
|
-
return Promise.resolve(
|
|
219528
|
-
return
|
|
219450
|
+
return Promise.resolve(loader8.prepareImport()).then(function () {
|
|
219451
|
+
return loader8.resolve(id, parentUrl, meta);
|
|
219529
219452
|
}).then(function (id2) {
|
|
219530
|
-
var load = getOrCreateLoad(
|
|
219531
|
-
return load.C || topLevelLoad(
|
|
219453
|
+
var load = getOrCreateLoad(loader8, id2, void 0, meta);
|
|
219454
|
+
return load.C || topLevelLoad(loader8, load);
|
|
219532
219455
|
});
|
|
219533
219456
|
};
|
|
219534
219457
|
systemJSPrototype.createContext = function (parentId) {
|
|
219535
|
-
var
|
|
219458
|
+
var loader8 = this;
|
|
219536
219459
|
return {
|
|
219537
219460
|
url: parentId,
|
|
219538
219461
|
resolve: function (id, parentUrl) {
|
|
219539
|
-
return Promise.resolve(
|
|
219462
|
+
return Promise.resolve(loader8.resolve(id, parentUrl || parentId));
|
|
219540
219463
|
}
|
|
219541
219464
|
};
|
|
219542
219465
|
};
|
|
@@ -219544,8 +219467,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219544
219467
|
function loadToId(load) {
|
|
219545
219468
|
return load.id;
|
|
219546
219469
|
}
|
|
219547
|
-
function triggerOnload(
|
|
219548
|
-
|
|
219470
|
+
function triggerOnload(loader8, load, err, isErrSource) {
|
|
219471
|
+
loader8.onload(err, load.id, load.d && load.d.map(loadToId), !!isErrSource);
|
|
219549
219472
|
if (err) throw err;
|
|
219550
219473
|
}
|
|
219551
219474
|
var lastRegister;
|
|
@@ -219557,8 +219480,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219557
219480
|
lastRegister = void 0;
|
|
219558
219481
|
return _lastRegister;
|
|
219559
219482
|
};
|
|
219560
|
-
function getOrCreateLoad(
|
|
219561
|
-
var load =
|
|
219483
|
+
function getOrCreateLoad(loader8, id, firstParentUrl, meta) {
|
|
219484
|
+
var load = loader8[REGISTRY][id];
|
|
219562
219485
|
if (load) return load;
|
|
219563
219486
|
var importerSetters = [];
|
|
219564
219487
|
var ns = Object.create(null);
|
|
@@ -219566,7 +219489,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219566
219489
|
value: "Module"
|
|
219567
219490
|
});
|
|
219568
219491
|
var instantiatePromise = Promise.resolve().then(function () {
|
|
219569
|
-
return
|
|
219492
|
+
return loader8.instantiate(id, firstParentUrl, meta);
|
|
219570
219493
|
}).then(function (registration) {
|
|
219571
219494
|
if (!registration) throw Error(errMsg(2, "Module " + id + " did not instantiate"));
|
|
219572
219495
|
function _export(name, value) {
|
|
@@ -219597,24 +219520,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219597
219520
|
}
|
|
219598
219521
|
var declared = registration[1](_export, registration[1].length === 2 ? {
|
|
219599
219522
|
import: function (importId, meta2) {
|
|
219600
|
-
return
|
|
219523
|
+
return loader8.import(importId, id, meta2);
|
|
219601
219524
|
},
|
|
219602
|
-
meta:
|
|
219525
|
+
meta: loader8.createContext(id)
|
|
219603
219526
|
} : void 0);
|
|
219604
219527
|
load.e = declared.execute || function () {};
|
|
219605
219528
|
return [registration[0], declared.setters || [], registration[2] || []];
|
|
219606
219529
|
}, function (err) {
|
|
219607
219530
|
load.e = null;
|
|
219608
219531
|
load.er = err;
|
|
219609
|
-
triggerOnload(
|
|
219532
|
+
triggerOnload(loader8, load, err, true);
|
|
219610
219533
|
throw err;
|
|
219611
219534
|
});
|
|
219612
219535
|
var linkPromise = instantiatePromise.then(function (instantiation) {
|
|
219613
219536
|
return Promise.all(instantiation[0].map(function (dep, i) {
|
|
219614
219537
|
var setter = instantiation[1][i];
|
|
219615
219538
|
var meta2 = instantiation[2][i];
|
|
219616
|
-
return Promise.resolve(
|
|
219617
|
-
var depLoad = getOrCreateLoad(
|
|
219539
|
+
return Promise.resolve(loader8.resolve(dep, id)).then(function (depId) {
|
|
219540
|
+
var depLoad = getOrCreateLoad(loader8, depId, id, meta2);
|
|
219618
219541
|
return Promise.resolve(depLoad.I).then(function () {
|
|
219619
219542
|
if (setter) {
|
|
219620
219543
|
depLoad.i.push(setter);
|
|
@@ -219627,7 +219550,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219627
219550
|
load.d = depLoads;
|
|
219628
219551
|
});
|
|
219629
219552
|
});
|
|
219630
|
-
return load =
|
|
219553
|
+
return load = loader8[REGISTRY][id] = {
|
|
219631
219554
|
id,
|
|
219632
219555
|
i: importerSetters,
|
|
219633
219556
|
n: ns,
|
|
@@ -219643,31 +219566,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219643
219566
|
p: void 0
|
|
219644
219567
|
};
|
|
219645
219568
|
}
|
|
219646
|
-
function instantiateAll(
|
|
219569
|
+
function instantiateAll(loader8, load, parent, loaded) {
|
|
219647
219570
|
if (!loaded[load.id]) {
|
|
219648
219571
|
loaded[load.id] = true;
|
|
219649
219572
|
return Promise.resolve(load.L).then(function () {
|
|
219650
219573
|
if (!load.p || load.p.e === null) load.p = parent;
|
|
219651
219574
|
return Promise.all(load.d.map(function (dep) {
|
|
219652
|
-
return instantiateAll(
|
|
219575
|
+
return instantiateAll(loader8, dep, parent, loaded);
|
|
219653
219576
|
}));
|
|
219654
219577
|
}).catch(function (err) {
|
|
219655
219578
|
if (load.er) throw err;
|
|
219656
219579
|
load.e = null;
|
|
219657
|
-
triggerOnload(
|
|
219580
|
+
triggerOnload(loader8, load, err, false);
|
|
219658
219581
|
throw err;
|
|
219659
219582
|
});
|
|
219660
219583
|
}
|
|
219661
219584
|
}
|
|
219662
|
-
function topLevelLoad(
|
|
219663
|
-
return load.C = instantiateAll(
|
|
219664
|
-
return postOrderExec(
|
|
219585
|
+
function topLevelLoad(loader8, load) {
|
|
219586
|
+
return load.C = instantiateAll(loader8, load, load, {}).then(function () {
|
|
219587
|
+
return postOrderExec(loader8, load, {});
|
|
219665
219588
|
}).then(function () {
|
|
219666
219589
|
return load.n;
|
|
219667
219590
|
});
|
|
219668
219591
|
}
|
|
219669
219592
|
var nullContext = Object.freeze(Object.create(null));
|
|
219670
|
-
function postOrderExec(
|
|
219593
|
+
function postOrderExec(loader8, load, seen) {
|
|
219671
219594
|
if (seen[load.id]) return;
|
|
219672
219595
|
seen[load.id] = true;
|
|
219673
219596
|
if (!load.e) {
|
|
@@ -219680,11 +219603,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219680
219603
|
var depLoadPromises;
|
|
219681
219604
|
load.d.forEach(function (depLoad) {
|
|
219682
219605
|
try {
|
|
219683
|
-
var depLoadPromise = postOrderExec(
|
|
219606
|
+
var depLoadPromise = postOrderExec(loader8, depLoad, seen);
|
|
219684
219607
|
if (depLoadPromise) (depLoadPromises = depLoadPromises || []).push(depLoadPromise);
|
|
219685
219608
|
} catch (err) {
|
|
219686
219609
|
load.er = err;
|
|
219687
|
-
triggerOnload(
|
|
219610
|
+
triggerOnload(loader8, load, err, false);
|
|
219688
219611
|
throw err;
|
|
219689
219612
|
}
|
|
219690
219613
|
});
|
|
@@ -219697,11 +219620,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219697
219620
|
execPromise = execPromise.then(function () {
|
|
219698
219621
|
load.C = load.n;
|
|
219699
219622
|
load.E = null;
|
|
219700
|
-
if (true) triggerOnload(
|
|
219623
|
+
if (true) triggerOnload(loader8, load, null, true);
|
|
219701
219624
|
}, function (err) {
|
|
219702
219625
|
load.er = err;
|
|
219703
219626
|
load.E = null;
|
|
219704
|
-
if (true) triggerOnload(
|
|
219627
|
+
if (true) triggerOnload(loader8, load, err, true);
|
|
219705
219628
|
throw err;
|
|
219706
219629
|
});
|
|
219707
219630
|
return load.E = execPromise;
|
|
@@ -219712,7 +219635,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219712
219635
|
load.er = err;
|
|
219713
219636
|
throw err;
|
|
219714
219637
|
} finally {
|
|
219715
|
-
triggerOnload(
|
|
219638
|
+
triggerOnload(loader8, load, load.er, true);
|
|
219716
219639
|
}
|
|
219717
219640
|
}
|
|
219718
219641
|
}
|
|
@@ -219812,10 +219735,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219812
219735
|
if (lastScript) {
|
|
219813
219736
|
lastScript.src;
|
|
219814
219737
|
lastAutoImportDeps = deps;
|
|
219815
|
-
var
|
|
219738
|
+
var loader8 = this;
|
|
219816
219739
|
lastAutoImportTimeout = setTimeout(function () {
|
|
219817
219740
|
autoImportCandidates[lastScript.src] = [deps, declare];
|
|
219818
|
-
|
|
219741
|
+
loader8.import(lastScript.src);
|
|
219819
219742
|
});
|
|
219820
219743
|
}
|
|
219821
219744
|
} else {
|
|
@@ -219830,7 +219753,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219830
219753
|
delete autoImportCandidates[url];
|
|
219831
219754
|
return autoImportRegistration;
|
|
219832
219755
|
}
|
|
219833
|
-
var
|
|
219756
|
+
var loader8 = this;
|
|
219834
219757
|
return Promise.resolve(systemJSPrototype.createScript(url)).then(function (script) {
|
|
219835
219758
|
return new Promise(function (resolve, reject) {
|
|
219836
219759
|
script.addEventListener("error", function () {
|
|
@@ -219841,7 +219764,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219841
219764
|
if (lastWindowErrorUrl === url) {
|
|
219842
219765
|
reject(lastWindowError);
|
|
219843
219766
|
} else {
|
|
219844
|
-
var register =
|
|
219767
|
+
var register = loader8.getRegister(url);
|
|
219845
219768
|
if (register && register[0] === lastAutoImportDeps) clearTimeout(lastAutoImportTimeout);
|
|
219846
219769
|
resolve(register);
|
|
219847
219770
|
}
|
|
@@ -219857,7 +219780,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219857
219780
|
var instantiate = systemJSPrototype.instantiate;
|
|
219858
219781
|
var jsContentTypeRegEx = /^(text|application)\/(x-)?javascript(;|$)/;
|
|
219859
219782
|
systemJSPrototype.instantiate = function (url, parent, meta) {
|
|
219860
|
-
var
|
|
219783
|
+
var loader8 = this;
|
|
219861
219784
|
if (!this.shouldFetch(url, parent, meta)) return instantiate.apply(this, arguments);
|
|
219862
219785
|
return this.fetch(url, {
|
|
219863
219786
|
credentials: "same-origin",
|
|
@@ -219870,7 +219793,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219870
219793
|
return res.text().then(function (source) {
|
|
219871
219794
|
if (source.indexOf("//# sourceURL=") < 0) source += "\n//# sourceURL=" + url;
|
|
219872
219795
|
(0, eval)(source);
|
|
219873
|
-
return
|
|
219796
|
+
return loader8.getRegister(url);
|
|
219874
219797
|
});
|
|
219875
219798
|
});
|
|
219876
219799
|
};
|
|
@@ -219890,10 +219813,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
219890
219813
|
return systemInstantiate.call(this, url, firstParentUrl, meta);
|
|
219891
219814
|
};
|
|
219892
219815
|
if (hasSelf && typeof importScripts === "function") systemJSPrototype.instantiate = function (url) {
|
|
219893
|
-
var
|
|
219816
|
+
var loader8 = this;
|
|
219894
219817
|
return Promise.resolve().then(function () {
|
|
219895
219818
|
importScripts(url);
|
|
219896
|
-
return
|
|
219819
|
+
return loader8.getRegister(url);
|
|
219897
219820
|
});
|
|
219898
219821
|
};
|
|
219899
219822
|
(function (global2) {
|
|
@@ -220080,14 +220003,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
220080
220003
|
};
|
|
220081
220004
|
var iterator = typeof Symbol !== "undefined" && Symbol.iterator;
|
|
220082
220005
|
systemJSPrototype.entries = function () {
|
|
220083
|
-
var
|
|
220084
|
-
keys = Object.keys(
|
|
220006
|
+
var loader8 = this,
|
|
220007
|
+
keys = Object.keys(loader8[REGISTRY]);
|
|
220085
220008
|
var index = 0,
|
|
220086
220009
|
ns,
|
|
220087
220010
|
key;
|
|
220088
220011
|
var result = {
|
|
220089
220012
|
next: function () {
|
|
220090
|
-
while ((key = keys[index++]) !== void 0 && (ns =
|
|
220013
|
+
while ((key = keys[index++]) !== void 0 && (ns = loader8.get(key)) === void 0);
|
|
220091
220014
|
return {
|
|
220092
220015
|
done: key === void 0,
|
|
220093
220016
|
value: key !== void 0 && [key, ns]
|
|
@@ -220571,6 +220494,8 @@ function inspectPilet(meta) {
|
|
|
220571
220494
|
const inBrowser = typeof document !== "undefined";
|
|
220572
220495
|
if ("link" in meta && meta.spec === "v3") {
|
|
220573
220496
|
return ["v3", meta, setupSinglePilet];
|
|
220497
|
+
} else if (inBrowser && "link" in meta && meta.spec === "mf") {
|
|
220498
|
+
return ["mf", meta, setupSinglePilet];
|
|
220574
220499
|
} else if (inBrowser && "link" in meta && meta.spec === "v2") {
|
|
220575
220500
|
return ["v2", meta, setupSinglePilet];
|
|
220576
220501
|
} else if (inBrowser && "requireRef" in meta && meta.spec !== "v2") {
|
|
@@ -220672,9 +220597,9 @@ function loader2(entry, _config) {
|
|
|
220672
220597
|
const {
|
|
220673
220598
|
name,
|
|
220674
220599
|
spec = "vx",
|
|
220675
|
-
dependencies = {},
|
|
220676
220600
|
...rest
|
|
220677
220601
|
} = entry;
|
|
220602
|
+
const dependencies = "dependencies" in entry ? entry.dependencies : {};
|
|
220678
220603
|
const meta = {
|
|
220679
220604
|
name,
|
|
220680
220605
|
version: "",
|
|
@@ -220799,6 +220724,64 @@ function loader6(entry, _config) {
|
|
|
220799
220724
|
return loadSystemPilet(link).then(app => createEvaluatedPilet(meta, app));
|
|
220800
220725
|
}
|
|
220801
220726
|
|
|
220727
|
+
// src/loaders/mf/index.ts
|
|
220728
|
+
var appShell = "piral";
|
|
220729
|
+
function populateKnownDependencies(scope) {
|
|
220730
|
+
for (const [entry] of System.entries()) {
|
|
220731
|
+
const index = entry.lastIndexOf("@");
|
|
220732
|
+
if (index > 0 && !entry.match(/^https?:\/\//)) {
|
|
220733
|
+
const entryName = entry.substring(0, index);
|
|
220734
|
+
const entryVersion = entry.substring(index + 1);
|
|
220735
|
+
if (!(entryName in scope)) {
|
|
220736
|
+
scope[entryName] = {};
|
|
220737
|
+
}
|
|
220738
|
+
scope[entryName][entryVersion] = {
|
|
220739
|
+
from: appShell,
|
|
220740
|
+
eager: false,
|
|
220741
|
+
get: () => System.import(entry).then(result => () => result)
|
|
220742
|
+
};
|
|
220743
|
+
}
|
|
220744
|
+
}
|
|
220745
|
+
}
|
|
220746
|
+
function extractSharedDependencies(scope) {
|
|
220747
|
+
for (const entryName of Object.keys(scope)) {
|
|
220748
|
+
const entries = scope[entryName];
|
|
220749
|
+
for (const entryVersion of Object.keys(entries)) {
|
|
220750
|
+
const entry = entries[entryVersion];
|
|
220751
|
+
if (entry.from !== appShell) {
|
|
220752
|
+
registerModule(`${entryName}@${entryVersion}`, () => entry.get().then(factory => factory()));
|
|
220753
|
+
}
|
|
220754
|
+
}
|
|
220755
|
+
}
|
|
220756
|
+
}
|
|
220757
|
+
function loadMfFactory(piletName, exposedName) {
|
|
220758
|
+
const varName = piletName.replace(/^@/, "").replace("/", "-").replace(/\-/g, "_");
|
|
220759
|
+
const container = window[varName];
|
|
220760
|
+
const scope = {};
|
|
220761
|
+
container.init(scope);
|
|
220762
|
+
populateKnownDependencies(scope);
|
|
220763
|
+
extractSharedDependencies(scope);
|
|
220764
|
+
return container.get(exposedName);
|
|
220765
|
+
}
|
|
220766
|
+
function loader7(entry, _config) {
|
|
220767
|
+
const {
|
|
220768
|
+
config = {},
|
|
220769
|
+
name,
|
|
220770
|
+
link,
|
|
220771
|
+
...rest
|
|
220772
|
+
} = entry;
|
|
220773
|
+
const dependencies = {};
|
|
220774
|
+
const exposedName = rest.custom?.exposed || "./pilet";
|
|
220775
|
+
const meta = {
|
|
220776
|
+
name,
|
|
220777
|
+
dependencies,
|
|
220778
|
+
config,
|
|
220779
|
+
link,
|
|
220780
|
+
...rest
|
|
220781
|
+
};
|
|
220782
|
+
return includeScriptDependency(link).then(() => loadMfFactory(name, exposedName)).then(factory => createEvaluatedPilet(meta, factory()));
|
|
220783
|
+
}
|
|
220784
|
+
|
|
220802
220785
|
// src/loader.ts
|
|
220803
220786
|
function extendLoader(fallback, specLoaders) {
|
|
220804
220787
|
if (typeof specLoaders === "object" && specLoaders) {
|
|
@@ -220826,6 +220809,8 @@ function getDefaultLoader(config = {}) {
|
|
|
220826
220809
|
return loader4(r[1], config);
|
|
220827
220810
|
case "v0":
|
|
220828
220811
|
return loader3(r[1], config);
|
|
220812
|
+
case "mf":
|
|
220813
|
+
return loader7(r[1], config);
|
|
220829
220814
|
case "bundle":
|
|
220830
220815
|
return loader(r[1], config);
|
|
220831
220816
|
default:
|
|
@@ -227519,4 +227504,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(piral
|
|
|
227519
227504
|
|
|
227520
227505
|
/******/ })()
|
|
227521
227506
|
;
|
|
227522
|
-
//# sourceMappingURL=index.
|
|
227507
|
+
//# sourceMappingURL=index.d100bd.js.map
|