sample-cross-fx 1.6.0-beta.7193 → 1.6.0-beta.7199
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.16807a.js → index.ae18bc.js} +345 -15
- package/app/{index.16807a.js.map → index.ae18bc.js.map} +1 -1
- package/app/index.d.ts +23 -0
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
|
@@ -57586,7 +57586,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57586
57586
|
/* harmony export */ });
|
|
57587
57587
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
57588
57588
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
57589
|
-
/* harmony import */ var
|
|
57589
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
|
|
57590
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
57591
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
57592
|
+
|
|
57593
|
+
|
|
57590
57594
|
|
|
57591
57595
|
|
|
57592
57596
|
/**
|
|
@@ -57610,6 +57614,27 @@ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
|
57610
57614
|
error
|
|
57611
57615
|
});
|
|
57612
57616
|
}
|
|
57617
|
+
componentDidUpdate(_, prevState) {
|
|
57618
|
+
const {
|
|
57619
|
+
error
|
|
57620
|
+
} = this.state;
|
|
57621
|
+
if (error && !prevState.error) {
|
|
57622
|
+
const {
|
|
57623
|
+
piral,
|
|
57624
|
+
errorType
|
|
57625
|
+
} = this.props;
|
|
57626
|
+
const pilet = piral.meta.name;
|
|
57627
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.defer)(() => {
|
|
57628
|
+
const container = (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode)(this);
|
|
57629
|
+
piral.emit('unhandled-error', {
|
|
57630
|
+
container,
|
|
57631
|
+
errorType,
|
|
57632
|
+
error,
|
|
57633
|
+
pilet
|
|
57634
|
+
});
|
|
57635
|
+
});
|
|
57636
|
+
}
|
|
57637
|
+
}
|
|
57613
57638
|
render() {
|
|
57614
57639
|
const {
|
|
57615
57640
|
children,
|
|
@@ -57623,7 +57648,7 @@ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
|
57623
57648
|
const rest = renderProps;
|
|
57624
57649
|
if (error) {
|
|
57625
57650
|
const pilet = piral.meta.name;
|
|
57626
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
57651
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.RegisteredErrorInfo, {
|
|
57627
57652
|
type: errorType,
|
|
57628
57653
|
error: error,
|
|
57629
57654
|
pilet: pilet,
|
|
@@ -57631,7 +57656,7 @@ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
|
57631
57656
|
});
|
|
57632
57657
|
}
|
|
57633
57658
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense, {
|
|
57634
|
-
fallback: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
57659
|
+
fallback: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.RegisteredLoadingIndicator, null)
|
|
57635
57660
|
}, children);
|
|
57636
57661
|
}
|
|
57637
57662
|
}
|
|
@@ -59185,7 +59210,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
59185
59210
|
origin: this.origin
|
|
59186
59211
|
}
|
|
59187
59212
|
});
|
|
59188
|
-
|
|
59213
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_3__.defer)(() => window.dispatchEvent(ev));
|
|
59189
59214
|
}
|
|
59190
59215
|
}
|
|
59191
59216
|
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.componentName, PiralComponent);
|
|
@@ -59711,6 +59736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
59711
59736
|
/* harmony export */ componentName: () => (/* binding */ componentName),
|
|
59712
59737
|
/* harmony export */ contentName: () => (/* binding */ contentName),
|
|
59713
59738
|
/* harmony export */ convertComponent: () => (/* binding */ convertComponent),
|
|
59739
|
+
/* harmony export */ defer: () => (/* binding */ defer),
|
|
59714
59740
|
/* harmony export */ extensionName: () => (/* binding */ extensionName),
|
|
59715
59741
|
/* harmony export */ portalName: () => (/* binding */ portalName),
|
|
59716
59742
|
/* harmony export */ renderInDom: () => (/* binding */ renderInDom),
|
|
@@ -59754,6 +59780,9 @@ function renderInDom(context, element, component, props) {
|
|
|
59754
59780
|
}
|
|
59755
59781
|
return attachDomPortal('root', context, element, component, props);
|
|
59756
59782
|
}
|
|
59783
|
+
function defer(cb) {
|
|
59784
|
+
setTimeout(cb, 0);
|
|
59785
|
+
}
|
|
59757
59786
|
|
|
59758
59787
|
/***/ }),
|
|
59759
59788
|
|
|
@@ -60465,14 +60494,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60465
60494
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60466
60495
|
/* harmony export */ installPiralDebug: () => (/* binding */ installPiralDebug)
|
|
60467
60496
|
/* harmony export */ });
|
|
60468
|
-
/* harmony import */ var
|
|
60497
|
+
/* harmony import */ var _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ExtensionCatalogue */ "../../utilities/piral-debug-utils/esm/ExtensionCatalogue.js");
|
|
60469
60498
|
/* harmony import */ var _decycle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./decycle */ "../../utilities/piral-debug-utils/esm/decycle.js");
|
|
60499
|
+
/* harmony import */ var _overlay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./overlay */ "../../utilities/piral-debug-utils/esm/overlay.js");
|
|
60470
60500
|
/* harmony import */ var _visualizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./visualizer */ "../../utilities/piral-debug-utils/esm/visualizer.js");
|
|
60471
60501
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./state */ "../../utilities/piral-debug-utils/esm/state.js");
|
|
60472
60502
|
|
|
60473
60503
|
|
|
60474
60504
|
|
|
60475
60505
|
|
|
60506
|
+
|
|
60476
60507
|
function installPiralDebug(options) {
|
|
60477
60508
|
const {
|
|
60478
60509
|
getGlobalState,
|
|
@@ -60540,6 +60571,15 @@ function installPiralDebug(options) {
|
|
|
60540
60571
|
}
|
|
60541
60572
|
}
|
|
60542
60573
|
},
|
|
60574
|
+
errorOverlay: {
|
|
60575
|
+
value: initialSettings.errorOverlay,
|
|
60576
|
+
type: 'boolean',
|
|
60577
|
+
label: 'Show error overlay',
|
|
60578
|
+
group: 'extensions',
|
|
60579
|
+
onChange(value) {
|
|
60580
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.errorOverlay, value ? 'on' : 'off');
|
|
60581
|
+
}
|
|
60582
|
+
},
|
|
60543
60583
|
extensionCatalogue: {
|
|
60544
60584
|
value: initialSettings.extensionCatalogue,
|
|
60545
60585
|
type: 'boolean',
|
|
@@ -60687,12 +60727,12 @@ function installPiralDebug(options) {
|
|
|
60687
60727
|
debug: debugApiVersion,
|
|
60688
60728
|
instance: {
|
|
60689
60729
|
name: "sample-cross-fx",
|
|
60690
|
-
version: "1.6.0-beta.
|
|
60730
|
+
version: "1.6.0-beta.7199",
|
|
60691
60731
|
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"
|
|
60692
60732
|
},
|
|
60693
60733
|
build: {
|
|
60694
|
-
date: "2024-06-
|
|
60695
|
-
cli: "1.6.0-beta.
|
|
60734
|
+
date: "2024-06-21T09:02:25.308Z",
|
|
60735
|
+
cli: "1.6.0-beta.7199",
|
|
60696
60736
|
compat: "1"
|
|
60697
60737
|
}
|
|
60698
60738
|
};
|
|
@@ -60772,12 +60812,18 @@ function installPiralDebug(options) {
|
|
|
60772
60812
|
};
|
|
60773
60813
|
document.body.dispatchEvent = function (ev) {
|
|
60774
60814
|
if (ev.type.startsWith('piral-')) {
|
|
60815
|
+
const name = ev.type.replace('piral-', '');
|
|
60816
|
+
const args = ev.detail.arg;
|
|
60775
60817
|
events.unshift({
|
|
60776
60818
|
id: events.length.toString(),
|
|
60777
|
-
name
|
|
60778
|
-
args: (0,_decycle__WEBPACK_IMPORTED_MODULE_2__.decycle)(
|
|
60819
|
+
name,
|
|
60820
|
+
args: (0,_decycle__WEBPACK_IMPORTED_MODULE_2__.decycle)(args),
|
|
60779
60821
|
time: Date.now()
|
|
60780
60822
|
});
|
|
60823
|
+
if (name === 'unhandled-error' && args.errorType && typeof customElements !== 'undefined' && sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.errorOverlay) !== 'off') {
|
|
60824
|
+
const ErrorOverlay = customElements.get(_overlay__WEBPACK_IMPORTED_MODULE_3__.overlayId);
|
|
60825
|
+
document.body.appendChild(new ErrorOverlay(args));
|
|
60826
|
+
}
|
|
60781
60827
|
sendMessage({
|
|
60782
60828
|
events,
|
|
60783
60829
|
type: 'events'
|
|
@@ -60794,7 +60840,8 @@ function installPiralDebug(options) {
|
|
|
60794
60840
|
hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
|
|
60795
60841
|
viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
|
|
60796
60842
|
extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
|
|
60797
|
-
clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
|
|
60843
|
+
clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on',
|
|
60844
|
+
errorOverlay: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.errorOverlay) !== 'off'
|
|
60798
60845
|
});
|
|
60799
60846
|
}
|
|
60800
60847
|
});
|
|
@@ -60831,7 +60878,7 @@ function installPiralDebug(options) {
|
|
|
60831
60878
|
});
|
|
60832
60879
|
integrate({
|
|
60833
60880
|
routes: {
|
|
60834
|
-
[initialSettings.cataloguePath]:
|
|
60881
|
+
[initialSettings.cataloguePath]: _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_4__.ExtensionCatalogue
|
|
60835
60882
|
},
|
|
60836
60883
|
onChange(previous, current, changed) {
|
|
60837
60884
|
if (changed.state) {
|
|
@@ -61036,6 +61083,287 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
61036
61083
|
|
|
61037
61084
|
/***/ }),
|
|
61038
61085
|
|
|
61086
|
+
/***/ "../../utilities/piral-debug-utils/esm/overlay.js":
|
|
61087
|
+
/*!********************************************************!*\
|
|
61088
|
+
!*** ../../utilities/piral-debug-utils/esm/overlay.js ***!
|
|
61089
|
+
\********************************************************/
|
|
61090
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
61091
|
+
|
|
61092
|
+
"use strict";
|
|
61093
|
+
__webpack_require__.r(__webpack_exports__);
|
|
61094
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
61095
|
+
/* harmony export */ overlayId: () => (/* binding */ overlayId)
|
|
61096
|
+
/* harmony export */ });
|
|
61097
|
+
// Create an element with provided attributes and optional children
|
|
61098
|
+
function h(e, attrs = {}, ...children) {
|
|
61099
|
+
const elem = document.createElement(e);
|
|
61100
|
+
for (const [k, v] of Object.entries(attrs)) {
|
|
61101
|
+
elem.setAttribute(k, v);
|
|
61102
|
+
}
|
|
61103
|
+
elem.append(...children);
|
|
61104
|
+
return elem;
|
|
61105
|
+
}
|
|
61106
|
+
// set :host styles to make playwright detect the element as visible
|
|
61107
|
+
const templateStyle = /*css*/`
|
|
61108
|
+
:host {
|
|
61109
|
+
position: fixed;
|
|
61110
|
+
top: 0;
|
|
61111
|
+
left: 0;
|
|
61112
|
+
width: 100%;
|
|
61113
|
+
height: 100%;
|
|
61114
|
+
z-index: 99999;
|
|
61115
|
+
--monospace: 'SFMono-Regular', Consolas,
|
|
61116
|
+
'Liberation Mono', Menlo, Courier, monospace;
|
|
61117
|
+
--red: #ff5555;
|
|
61118
|
+
--yellow: #e2aa53;
|
|
61119
|
+
--purple: #cfa4ff;
|
|
61120
|
+
--cyan: #2dd9da;
|
|
61121
|
+
--dim: #c9c9c9;
|
|
61122
|
+
|
|
61123
|
+
--window-background: #181818;
|
|
61124
|
+
--window-color: #d8d8d8;
|
|
61125
|
+
}
|
|
61126
|
+
|
|
61127
|
+
.backdrop {
|
|
61128
|
+
position: fixed;
|
|
61129
|
+
z-index: 99999;
|
|
61130
|
+
top: 0;
|
|
61131
|
+
left: 0;
|
|
61132
|
+
width: 100%;
|
|
61133
|
+
height: 100%;
|
|
61134
|
+
overflow-y: scroll;
|
|
61135
|
+
margin: 0;
|
|
61136
|
+
background: rgba(0, 0, 0, 0.66);
|
|
61137
|
+
}
|
|
61138
|
+
|
|
61139
|
+
.window {
|
|
61140
|
+
font-family: var(--monospace);
|
|
61141
|
+
line-height: 1.5;
|
|
61142
|
+
max-width: 80vw;
|
|
61143
|
+
color: var(--window-color);
|
|
61144
|
+
box-sizing: border-box;
|
|
61145
|
+
margin: 30px auto;
|
|
61146
|
+
padding: 2.5vh 4vw;
|
|
61147
|
+
position: relative;
|
|
61148
|
+
background: var(--window-background);
|
|
61149
|
+
border-radius: 6px 6px 8px 8px;
|
|
61150
|
+
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
|
|
61151
|
+
overflow: hidden;
|
|
61152
|
+
border-top: 8px solid var(--red);
|
|
61153
|
+
direction: ltr;
|
|
61154
|
+
text-align: left;
|
|
61155
|
+
}
|
|
61156
|
+
|
|
61157
|
+
pre {
|
|
61158
|
+
font-family: var(--monospace);
|
|
61159
|
+
font-size: 16px;
|
|
61160
|
+
margin-top: 0;
|
|
61161
|
+
margin-bottom: 1em;
|
|
61162
|
+
overflow-x: scroll;
|
|
61163
|
+
scrollbar-width: none;
|
|
61164
|
+
}
|
|
61165
|
+
|
|
61166
|
+
pre::-webkit-scrollbar {
|
|
61167
|
+
display: none;
|
|
61168
|
+
}
|
|
61169
|
+
|
|
61170
|
+
pre.frame::-webkit-scrollbar {
|
|
61171
|
+
display: block;
|
|
61172
|
+
height: 5px;
|
|
61173
|
+
}
|
|
61174
|
+
|
|
61175
|
+
pre.frame::-webkit-scrollbar-thumb {
|
|
61176
|
+
background: #999;
|
|
61177
|
+
border-radius: 5px;
|
|
61178
|
+
}
|
|
61179
|
+
|
|
61180
|
+
pre.frame {
|
|
61181
|
+
scrollbar-width: thin;
|
|
61182
|
+
}
|
|
61183
|
+
|
|
61184
|
+
.message {
|
|
61185
|
+
line-height: 1.3;
|
|
61186
|
+
font-weight: 600;
|
|
61187
|
+
white-space: pre-wrap;
|
|
61188
|
+
}
|
|
61189
|
+
|
|
61190
|
+
.message-body {
|
|
61191
|
+
color: var(--red);
|
|
61192
|
+
}
|
|
61193
|
+
|
|
61194
|
+
.plugin {
|
|
61195
|
+
color: var(--purple);
|
|
61196
|
+
}
|
|
61197
|
+
|
|
61198
|
+
.file {
|
|
61199
|
+
color: var(--cyan);
|
|
61200
|
+
margin-bottom: 0;
|
|
61201
|
+
white-space: pre-wrap;
|
|
61202
|
+
word-break: break-all;
|
|
61203
|
+
}
|
|
61204
|
+
|
|
61205
|
+
.frame {
|
|
61206
|
+
color: var(--yellow);
|
|
61207
|
+
}
|
|
61208
|
+
|
|
61209
|
+
.stack {
|
|
61210
|
+
font-size: 13px;
|
|
61211
|
+
color: var(--dim);
|
|
61212
|
+
}
|
|
61213
|
+
|
|
61214
|
+
.tip {
|
|
61215
|
+
font-size: 13px;
|
|
61216
|
+
color: #999;
|
|
61217
|
+
border-top: 1px dotted #999;
|
|
61218
|
+
padding-top: 13px;
|
|
61219
|
+
line-height: 1.8;
|
|
61220
|
+
}
|
|
61221
|
+
|
|
61222
|
+
code {
|
|
61223
|
+
font-size: 13px;
|
|
61224
|
+
font-family: var(--monospace);
|
|
61225
|
+
color: var(--yellow);
|
|
61226
|
+
}
|
|
61227
|
+
|
|
61228
|
+
.file-link {
|
|
61229
|
+
text-decoration: underline;
|
|
61230
|
+
cursor: pointer;
|
|
61231
|
+
}
|
|
61232
|
+
|
|
61233
|
+
kbd {
|
|
61234
|
+
line-height: 1.5;
|
|
61235
|
+
font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
61236
|
+
font-size: 0.75rem;
|
|
61237
|
+
font-weight: 700;
|
|
61238
|
+
background-color: rgb(38, 40, 44);
|
|
61239
|
+
color: rgb(166, 167, 171);
|
|
61240
|
+
padding: 0.15rem 0.3rem;
|
|
61241
|
+
border-radius: 0.25rem;
|
|
61242
|
+
border-width: 0.0625rem 0.0625rem 0.1875rem;
|
|
61243
|
+
border-style: solid;
|
|
61244
|
+
border-color: rgb(54, 57, 64);
|
|
61245
|
+
border-image: initial;
|
|
61246
|
+
}
|
|
61247
|
+
`;
|
|
61248
|
+
// Error Template
|
|
61249
|
+
const createTemplate = () => h('div', {
|
|
61250
|
+
class: 'backdrop',
|
|
61251
|
+
part: 'backdrop'
|
|
61252
|
+
}, h('div', {
|
|
61253
|
+
class: 'window',
|
|
61254
|
+
part: 'window'
|
|
61255
|
+
}, h('pre', {
|
|
61256
|
+
class: 'message',
|
|
61257
|
+
part: 'message'
|
|
61258
|
+
}, h('span', {
|
|
61259
|
+
class: 'plugin',
|
|
61260
|
+
part: 'plugin'
|
|
61261
|
+
}), h('span', {
|
|
61262
|
+
class: 'message-body',
|
|
61263
|
+
part: 'message-body'
|
|
61264
|
+
})), h('pre', {
|
|
61265
|
+
class: 'file',
|
|
61266
|
+
part: 'file'
|
|
61267
|
+
}), h('pre', {
|
|
61268
|
+
class: 'frame',
|
|
61269
|
+
part: 'frame'
|
|
61270
|
+
}), h('pre', {
|
|
61271
|
+
class: 'stack',
|
|
61272
|
+
part: 'stack'
|
|
61273
|
+
}), h('div', {
|
|
61274
|
+
class: 'tip',
|
|
61275
|
+
part: 'tip'
|
|
61276
|
+
}, 'Click outside, press ', h('kbd', {}, 'Esc'), ' key, or fix the code to dismiss.', h('br'), 'You can also disable this overlay by setting ', h('code', {
|
|
61277
|
+
part: 'config-option-name'
|
|
61278
|
+
}, 'dbg:error-overlay'), ' to ', h('code', {
|
|
61279
|
+
part: 'config-option-value'
|
|
61280
|
+
}, '"off"'), ' in ', h('code', {
|
|
61281
|
+
part: 'config-file-name'
|
|
61282
|
+
}, 'sessionStorage'), '.')), h('style', {}, templateStyle));
|
|
61283
|
+
const fileRE = /(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g;
|
|
61284
|
+
const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm;
|
|
61285
|
+
const overlayId = 'piral-error-overlay';
|
|
61286
|
+
if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
61287
|
+
class ErrorOverlay extends HTMLElement {
|
|
61288
|
+
constructor(props, links = true) {
|
|
61289
|
+
super();
|
|
61290
|
+
const {
|
|
61291
|
+
error,
|
|
61292
|
+
pilet,
|
|
61293
|
+
errorType
|
|
61294
|
+
} = props;
|
|
61295
|
+
this.root = this.attachShadow({
|
|
61296
|
+
mode: 'open'
|
|
61297
|
+
});
|
|
61298
|
+
this.root.appendChild(createTemplate());
|
|
61299
|
+
codeframeRE.lastIndex = 0;
|
|
61300
|
+
const hasFrame = error.frame && codeframeRE.test(error.frame);
|
|
61301
|
+
const message = hasFrame ? error.message.replace(codeframeRE, '') : error.message;
|
|
61302
|
+
if (pilet) {
|
|
61303
|
+
this.text('.plugin', `[${pilet}] `);
|
|
61304
|
+
}
|
|
61305
|
+
this.text('.message-body', message.trim());
|
|
61306
|
+
const [file] = (error.loc?.file || error.id || 'unknown file').split(`?`);
|
|
61307
|
+
if (error.loc) {
|
|
61308
|
+
this.text('.file', `${file}:${error.loc.line}:${error.loc.column}`, links);
|
|
61309
|
+
} else if (error.id) {
|
|
61310
|
+
this.text('.file', file);
|
|
61311
|
+
}
|
|
61312
|
+
if (hasFrame) {
|
|
61313
|
+
this.text('.frame', error.frame.trim());
|
|
61314
|
+
}
|
|
61315
|
+
this.text('.stack', error.stack, links);
|
|
61316
|
+
this.root.querySelector('.window').addEventListener('click', e => {
|
|
61317
|
+
e.stopPropagation();
|
|
61318
|
+
});
|
|
61319
|
+
this.addEventListener('click', () => {
|
|
61320
|
+
this.close();
|
|
61321
|
+
});
|
|
61322
|
+
this.closeOnEsc = e => {
|
|
61323
|
+
if (e.key === 'Escape' || e.code === 'Escape') {
|
|
61324
|
+
this.close();
|
|
61325
|
+
}
|
|
61326
|
+
};
|
|
61327
|
+
document.addEventListener('keydown', this.closeOnEsc);
|
|
61328
|
+
}
|
|
61329
|
+
text(selector, text, linkFiles = false) {
|
|
61330
|
+
const el = this.root.querySelector(selector);
|
|
61331
|
+
if (linkFiles) {
|
|
61332
|
+
let curIndex = 0;
|
|
61333
|
+
let match;
|
|
61334
|
+
fileRE.lastIndex = 0;
|
|
61335
|
+
while (match = fileRE.exec(text)) {
|
|
61336
|
+
const {
|
|
61337
|
+
0: file,
|
|
61338
|
+
index
|
|
61339
|
+
} = match;
|
|
61340
|
+
if (index != null) {
|
|
61341
|
+
const frag = text.slice(curIndex, index);
|
|
61342
|
+
el.appendChild(document.createTextNode(frag));
|
|
61343
|
+
const link = document.createElement('a');
|
|
61344
|
+
link.textContent = file;
|
|
61345
|
+
link.className = 'file-link';
|
|
61346
|
+
link.onclick = () => {
|
|
61347
|
+
console.log('Clicked');
|
|
61348
|
+
};
|
|
61349
|
+
el.appendChild(link);
|
|
61350
|
+
curIndex += frag.length + file.length;
|
|
61351
|
+
}
|
|
61352
|
+
}
|
|
61353
|
+
} else {
|
|
61354
|
+
el.textContent = text;
|
|
61355
|
+
}
|
|
61356
|
+
}
|
|
61357
|
+
close() {
|
|
61358
|
+
this.parentNode?.removeChild(this);
|
|
61359
|
+
document.removeEventListener('keydown', this.closeOnEsc);
|
|
61360
|
+
}
|
|
61361
|
+
}
|
|
61362
|
+
customElements.define(overlayId, ErrorOverlay);
|
|
61363
|
+
}
|
|
61364
|
+
|
|
61365
|
+
/***/ }),
|
|
61366
|
+
|
|
61039
61367
|
/***/ "../../utilities/piral-debug-utils/esm/routeRefresh.js":
|
|
61040
61368
|
/*!*************************************************************!*\
|
|
61041
61369
|
!*** ../../utilities/piral-debug-utils/esm/routeRefresh.js ***!
|
|
@@ -61087,7 +61415,8 @@ const settingsKeys = {
|
|
|
61087
61415
|
viewOrigins: 'dbg:view-origins',
|
|
61088
61416
|
extensionCatalogue: 'dbg:extension-catalogue',
|
|
61089
61417
|
clearConsole: 'dbg:clear-console',
|
|
61090
|
-
persistSettings: 'dbg:persist-settings-data'
|
|
61418
|
+
persistSettings: 'dbg:persist-settings-data',
|
|
61419
|
+
errorOverlay: 'dbg:error-overlay'
|
|
61091
61420
|
};
|
|
61092
61421
|
const persistKey = settingsKeys.persistSettings;
|
|
61093
61422
|
const persistSettings = !!localStorage.getItem(persistKey);
|
|
@@ -61150,6 +61479,7 @@ function getInitialSettings(defaultValues) {
|
|
|
61150
61479
|
viewOrigins: getValue(settingsKeys.viewOrigins, defaultValues.viewOrigins, false),
|
|
61151
61480
|
extensionCatalogue: getValue(settingsKeys.extensionCatalogue, defaultValues.extensionCatalogue, true),
|
|
61152
61481
|
clearConsole: getValue(settingsKeys.clearConsole, defaultValues.clearConsole, false),
|
|
61482
|
+
errorOverlay: getValue(settingsKeys.errorOverlay, defaultValues.errorOverlay, true),
|
|
61153
61483
|
persistSettings,
|
|
61154
61484
|
cataloguePath: '/$debug-extension-catalogue'
|
|
61155
61485
|
};
|
|
@@ -72376,7 +72706,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72376
72706
|
|
|
72377
72707
|
|
|
72378
72708
|
function fillDependencies(deps) {
|
|
72379
|
-
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.6.0-beta.
|
|
72709
|
+
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.6.0-beta.7199"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng@1.6.0-beta.7199"]=_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__
|
|
72380
72710
|
}
|
|
72381
72711
|
|
|
72382
72712
|
|
|
@@ -227586,4 +227916,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(piral
|
|
|
227586
227916
|
|
|
227587
227917
|
/******/ })()
|
|
227588
227918
|
;
|
|
227589
|
-
//# sourceMappingURL=index.
|
|
227919
|
+
//# sourceMappingURL=index.ae18bc.js.map
|