sample-cross-fx 0.15.0-beta.4630 → 0.15.0-beta.4670
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.469eb3.js → index.972786.js} +139 -52
- package/app/{index.469eb3.js.map → index.972786.js.map} +1 -1
- package/app/index.d.ts +1168 -1166
- 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
|
@@ -54100,7 +54100,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54100
54100
|
|
|
54101
54101
|
function createConverter(config = {}) {
|
|
54102
54102
|
const {
|
|
54103
|
-
rootName = '
|
|
54103
|
+
rootName = 'piral-slot'
|
|
54104
54104
|
} = config;
|
|
54105
54105
|
(0,aurelia_pal_browser__WEBPACK_IMPORTED_MODULE_1__.initialize)();
|
|
54106
54106
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_2__.createExtension)(rootName);
|
|
@@ -54891,7 +54891,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54891
54891
|
|
|
54892
54892
|
function createConverter(config = {}) {
|
|
54893
54893
|
const {
|
|
54894
|
-
rootName = 'slot'
|
|
54894
|
+
rootName = 'piral-slot'
|
|
54895
54895
|
} = config;
|
|
54896
54896
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
54897
54897
|
|
|
@@ -55029,7 +55029,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55029
55029
|
|
|
55030
55030
|
function createConverter(config = {}) {
|
|
55031
55031
|
const {
|
|
55032
|
-
rootName = 'slot'
|
|
55032
|
+
rootName = 'piral-slot'
|
|
55033
55033
|
} = config;
|
|
55034
55034
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
55035
55035
|
|
|
@@ -55391,7 +55391,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55391
55391
|
|
|
55392
55392
|
function createConverter(config = {}) {
|
|
55393
55393
|
const {
|
|
55394
|
-
rootName = 'slot'
|
|
55394
|
+
rootName = 'piral-slot'
|
|
55395
55395
|
} = config;
|
|
55396
55396
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
|
|
55397
55397
|
|
|
@@ -55672,16 +55672,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55672
55672
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55673
55673
|
/* harmony export */ "RoutingService": () => (/* binding */ RoutingService)
|
|
55674
55674
|
/* harmony export */ });
|
|
55675
|
-
/* harmony import */ var
|
|
55675
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55676
55676
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
55677
|
-
/* harmony import */ var
|
|
55678
|
-
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "../../../node_modules/rxjs/dist/esm5/internal/operators/filter.js");
|
|
55677
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
|
|
55679
55678
|
var RoutingService_1;
|
|
55680
55679
|
|
|
55681
55680
|
|
|
55682
55681
|
|
|
55683
55682
|
|
|
55684
|
-
|
|
55685
55683
|
const ngc = _angular_core__WEBPACK_IMPORTED_MODULE_0__;
|
|
55686
55684
|
let RoutingService = RoutingService_1 = class RoutingService {
|
|
55687
55685
|
constructor(context, router, zone) {
|
|
@@ -55710,14 +55708,24 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
55710
55708
|
this.zone.run(() => this.router.navigateByUrl(path));
|
|
55711
55709
|
}
|
|
55712
55710
|
});
|
|
55713
|
-
this.subscription = this.router.events.
|
|
55714
|
-
|
|
55711
|
+
this.subscription = this.router.events.subscribe(e => {
|
|
55712
|
+
if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__.NavigationError) {
|
|
55713
|
+
const path = e.url;
|
|
55715
55714
|
|
|
55716
|
-
|
|
55717
|
-
|
|
55718
|
-
|
|
55715
|
+
if (!this.invalidRoutes.includes(path)) {
|
|
55716
|
+
this.invalidRoutes.push(path);
|
|
55717
|
+
}
|
|
55719
55718
|
|
|
55720
|
-
|
|
55719
|
+
nav.push(path);
|
|
55720
|
+
} else if (e.type === 15) {
|
|
55721
|
+
// consistency check to avoid #535 and other Angular-specific issues
|
|
55722
|
+
const locationUrl = nav.path;
|
|
55723
|
+
const routerUrl = e.routerEvent.url;
|
|
55724
|
+
|
|
55725
|
+
if (routerUrl !== locationUrl) {
|
|
55726
|
+
nav.push(routerUrl);
|
|
55727
|
+
}
|
|
55728
|
+
}
|
|
55721
55729
|
});
|
|
55722
55730
|
}
|
|
55723
55731
|
}
|
|
@@ -55730,12 +55738,12 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
55730
55738
|
}
|
|
55731
55739
|
|
|
55732
55740
|
};
|
|
55733
|
-
RoutingService.ɵfac = 'ɵɵinject' in ngc ? t => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(
|
|
55741
|
+
RoutingService.ɵfac = 'ɵɵinject' in ngc ? t => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(_angular_router__WEBPACK_IMPORTED_MODULE_1__.Router, 8), ngc.ɵɵinject(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, 8)) : undefined;
|
|
55734
55742
|
RoutingService.ɵprov = 'ɵɵngDeclareInjectable' in ngc ? ngc.ɵɵdefineInjectable({
|
|
55735
55743
|
token: RoutingService_1,
|
|
55736
55744
|
factory: RoutingService_1.ɵfac
|
|
55737
55745
|
}) : undefined;
|
|
55738
|
-
RoutingService = RoutingService_1 = (0,
|
|
55746
|
+
RoutingService = RoutingService_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable)(), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(0, (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject)('Context')), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(1, (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(2, (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__metadata)("design:paramtypes", [Object, _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router, _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone])], RoutingService);
|
|
55739
55747
|
|
|
55740
55748
|
|
|
55741
55749
|
if ('ɵsetClassMetadata' in ngc) {
|
|
@@ -55751,7 +55759,7 @@ if ('ɵsetClassMetadata' in ngc) {
|
|
|
55751
55759
|
args: ['Context']
|
|
55752
55760
|
}]
|
|
55753
55761
|
}, {
|
|
55754
|
-
type:
|
|
55762
|
+
type: _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router,
|
|
55755
55763
|
decorators: [{
|
|
55756
55764
|
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
|
|
55757
55765
|
}]
|
|
@@ -56403,7 +56411,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56403
56411
|
|
|
56404
56412
|
function createConverter(config = {}) {
|
|
56405
56413
|
const {
|
|
56406
|
-
rootName = 'slot'
|
|
56414
|
+
rootName = 'piral-slot'
|
|
56407
56415
|
} = config;
|
|
56408
56416
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
|
|
56409
56417
|
|
|
@@ -56531,7 +56539,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56531
56539
|
|
|
56532
56540
|
function createConverter(config = {}) {
|
|
56533
56541
|
const {
|
|
56534
|
-
rootName = 'slot'
|
|
56542
|
+
rootName = 'piral-slot'
|
|
56535
56543
|
} = config;
|
|
56536
56544
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
56537
56545
|
|
|
@@ -56881,7 +56889,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56881
56889
|
|
|
56882
56890
|
function createConverter(config = {}) {
|
|
56883
56891
|
const {
|
|
56884
|
-
rootName = 'slot'
|
|
56892
|
+
rootName = 'piral-slot'
|
|
56885
56893
|
} = config;
|
|
56886
56894
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
56887
56895
|
|
|
@@ -57132,7 +57140,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57132
57140
|
|
|
57133
57141
|
function createConverter(config = {}) {
|
|
57134
57142
|
const {
|
|
57135
|
-
rootName = 'slot',
|
|
57143
|
+
rootName = 'piral-slot',
|
|
57136
57144
|
selector = 'extension-component'
|
|
57137
57145
|
} = config;
|
|
57138
57146
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName, selector);
|
|
@@ -59628,8 +59636,8 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
|
|
|
59628
59636
|
const {
|
|
59629
59637
|
$portalId
|
|
59630
59638
|
} = this.props;
|
|
59631
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("
|
|
59632
|
-
|
|
59639
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-portal", {
|
|
59640
|
+
pid: $portalId,
|
|
59633
59641
|
ref: this.setNode
|
|
59634
59642
|
});
|
|
59635
59643
|
}
|
|
@@ -60867,6 +60875,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60867
60875
|
|
|
60868
60876
|
|
|
60869
60877
|
if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
60878
|
+
/**
|
|
60879
|
+
* This is a nice abstraction allowing anyone to actually use the extension system
|
|
60880
|
+
* brought by Piral. Not all props of the extension system are actually exposed.
|
|
60881
|
+
*
|
|
60882
|
+
* Usage:
|
|
60883
|
+
*
|
|
60884
|
+
* ```
|
|
60885
|
+
* <piral-extension name="my-ext-name"></piral-extension>
|
|
60886
|
+
* ```
|
|
60887
|
+
*/
|
|
60870
60888
|
class PiralExtension extends HTMLElement {
|
|
60871
60889
|
constructor() {
|
|
60872
60890
|
super(...arguments);
|
|
@@ -60908,6 +60926,8 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
60908
60926
|
}
|
|
60909
60927
|
|
|
60910
60928
|
connectedCallback() {
|
|
60929
|
+
this.style.display = 'contents';
|
|
60930
|
+
|
|
60911
60931
|
if (this.isConnected) {
|
|
60912
60932
|
this.dispatchEvent(new CustomEvent('render-html', {
|
|
60913
60933
|
bubbles: true,
|
|
@@ -60943,7 +60963,46 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
60943
60963
|
|
|
60944
60964
|
}
|
|
60945
60965
|
|
|
60946
|
-
customElements.define(
|
|
60966
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.extensionName, PiralExtension);
|
|
60967
|
+
/**
|
|
60968
|
+
* This is a boundary to host elements from other frameworks - effectively vanishing
|
|
60969
|
+
* at runtime.
|
|
60970
|
+
*
|
|
60971
|
+
* Usage:
|
|
60972
|
+
*
|
|
60973
|
+
* ```
|
|
60974
|
+
* <piral-portal pid="host-1234"></piral-portal>
|
|
60975
|
+
* ```
|
|
60976
|
+
*/
|
|
60977
|
+
|
|
60978
|
+
class PiralPortal extends HTMLElement {
|
|
60979
|
+
connectedCallback() {
|
|
60980
|
+
this.style.display = 'contents';
|
|
60981
|
+
}
|
|
60982
|
+
|
|
60983
|
+
}
|
|
60984
|
+
|
|
60985
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.portalName, PiralPortal);
|
|
60986
|
+
/**
|
|
60987
|
+
* This is a virtual element to aggregate rendering from other frameworks, mostly
|
|
60988
|
+
* used like piral-portal, but without context-hosting capabilities. This would
|
|
60989
|
+
* be used exclusively within a foreign framework, not from Piral to initiate.
|
|
60990
|
+
*
|
|
60991
|
+
* Usage:
|
|
60992
|
+
*
|
|
60993
|
+
* ```
|
|
60994
|
+
* <piral-slot></piral-slot>
|
|
60995
|
+
* ```
|
|
60996
|
+
*/
|
|
60997
|
+
|
|
60998
|
+
class PiralSlot extends HTMLElement {
|
|
60999
|
+
connectedCallback() {
|
|
61000
|
+
this.style.display = 'contents';
|
|
61001
|
+
}
|
|
61002
|
+
|
|
61003
|
+
}
|
|
61004
|
+
|
|
61005
|
+
customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.slotName, PiralSlot);
|
|
60947
61006
|
}
|
|
60948
61007
|
|
|
60949
61008
|
function renderElement(context, element, props) {
|
|
@@ -61340,7 +61399,7 @@ const SlotCarrier = ({
|
|
|
61340
61399
|
}, [nodes]);
|
|
61341
61400
|
|
|
61342
61401
|
if (nodes.length) {
|
|
61343
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("slot", {
|
|
61402
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-slot", {
|
|
61344
61403
|
ref: host
|
|
61345
61404
|
});
|
|
61346
61405
|
}
|
|
@@ -61387,13 +61446,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61387
61446
|
/* harmony export */ "attachDomPortal": () => (/* binding */ attachDomPortal),
|
|
61388
61447
|
/* harmony export */ "changeDomPortal": () => (/* binding */ changeDomPortal),
|
|
61389
61448
|
/* harmony export */ "convertComponent": () => (/* binding */ convertComponent),
|
|
61390
|
-
/* harmony export */ "
|
|
61449
|
+
/* harmony export */ "extensionName": () => (/* binding */ extensionName),
|
|
61450
|
+
/* harmony export */ "portalName": () => (/* binding */ portalName),
|
|
61451
|
+
/* harmony export */ "renderInDom": () => (/* binding */ renderInDom),
|
|
61452
|
+
/* harmony export */ "slotName": () => (/* binding */ slotName)
|
|
61391
61453
|
/* harmony export */ });
|
|
61392
61454
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
61393
61455
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
61394
61456
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
|
|
61395
61457
|
|
|
61396
61458
|
|
|
61459
|
+
const extensionName = 'piral-extension';
|
|
61460
|
+
const portalName = 'piral-portal';
|
|
61461
|
+
const slotName = 'piral-slot';
|
|
61397
61462
|
function attachDomPortal(id, context, element, component, props) {
|
|
61398
61463
|
const portal = /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, props), element);
|
|
61399
61464
|
context.showPortal(id, portal);
|
|
@@ -61412,11 +61477,11 @@ function convertComponent(converter, component) {
|
|
|
61412
61477
|
return converter(component);
|
|
61413
61478
|
}
|
|
61414
61479
|
function renderInDom(context, element, component, props) {
|
|
61415
|
-
const portalId = '
|
|
61480
|
+
const portalId = 'pid';
|
|
61416
61481
|
let parent = element;
|
|
61417
61482
|
|
|
61418
61483
|
while (parent) {
|
|
61419
|
-
if (parent instanceof Element && parent.hasAttribute(portalId)) {
|
|
61484
|
+
if (parent instanceof Element && parent.localName === portalName && parent.hasAttribute(portalId)) {
|
|
61420
61485
|
const id = parent.getAttribute(portalId);
|
|
61421
61486
|
return attachDomPortal(id, context, element, component, props);
|
|
61422
61487
|
}
|
|
@@ -62382,7 +62447,7 @@ function installPiralDebug(options) {
|
|
|
62382
62447
|
label: 'State container logging',
|
|
62383
62448
|
|
|
62384
62449
|
onChange(value) {
|
|
62385
|
-
setValue(
|
|
62450
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState, value ? 'on' : 'off');
|
|
62386
62451
|
}
|
|
62387
62452
|
|
|
62388
62453
|
},
|
|
@@ -62392,7 +62457,7 @@ function installPiralDebug(options) {
|
|
|
62392
62457
|
label: 'Load available pilets',
|
|
62393
62458
|
|
|
62394
62459
|
onChange(value) {
|
|
62395
|
-
setValue(
|
|
62460
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets, value ? 'on' : 'off');
|
|
62396
62461
|
}
|
|
62397
62462
|
|
|
62398
62463
|
},
|
|
@@ -62402,7 +62467,7 @@ function installPiralDebug(options) {
|
|
|
62402
62467
|
label: 'Full refresh on change',
|
|
62403
62468
|
|
|
62404
62469
|
onChange(value) {
|
|
62405
|
-
setValue(
|
|
62470
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh, value ? 'on' : 'off');
|
|
62406
62471
|
}
|
|
62407
62472
|
|
|
62408
62473
|
},
|
|
@@ -62412,7 +62477,7 @@ function installPiralDebug(options) {
|
|
|
62412
62477
|
label: 'Visualize component origins',
|
|
62413
62478
|
|
|
62414
62479
|
onChange(value, prev) {
|
|
62415
|
-
setValue(
|
|
62480
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins, value ? 'on' : 'off');
|
|
62416
62481
|
|
|
62417
62482
|
if (prev !== value) {
|
|
62418
62483
|
updateVisualize(value);
|
|
@@ -62426,7 +62491,7 @@ function installPiralDebug(options) {
|
|
|
62426
62491
|
label: 'Enable extension catalogue',
|
|
62427
62492
|
|
|
62428
62493
|
onChange(value) {
|
|
62429
|
-
setValue(
|
|
62494
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue, value ? 'on' : 'off');
|
|
62430
62495
|
}
|
|
62431
62496
|
|
|
62432
62497
|
},
|
|
@@ -62436,7 +62501,7 @@ function installPiralDebug(options) {
|
|
|
62436
62501
|
label: 'Clear console during HMR',
|
|
62437
62502
|
|
|
62438
62503
|
onChange(value) {
|
|
62439
|
-
setValue(
|
|
62504
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole, value ? 'on' : 'off');
|
|
62440
62505
|
}
|
|
62441
62506
|
|
|
62442
62507
|
},
|
|
@@ -62601,12 +62666,12 @@ function installPiralDebug(options) {
|
|
|
62601
62666
|
debug: debugApiVersion,
|
|
62602
62667
|
instance: {
|
|
62603
62668
|
name: "sample-cross-fx",
|
|
62604
|
-
version: "0.15.0-beta.
|
|
62669
|
+
version: "0.15.0-beta.4670",
|
|
62605
62670
|
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/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
62606
62671
|
},
|
|
62607
62672
|
build: {
|
|
62608
|
-
date: "2022-
|
|
62609
|
-
cli: "0.14.
|
|
62673
|
+
date: "2022-09-20T22:37:11.613Z",
|
|
62674
|
+
cli: "0.14.31",
|
|
62610
62675
|
compat: "0.14"
|
|
62611
62676
|
}
|
|
62612
62677
|
};
|
|
@@ -62714,11 +62779,12 @@ function installPiralDebug(options) {
|
|
|
62714
62779
|
if (!legacyBrowser && event.storageArea === sessionStorage) {
|
|
62715
62780
|
// potentially unknowingly updated settings
|
|
62716
62781
|
updateSettings({
|
|
62717
|
-
viewState: sessionStorage.getItem(
|
|
62718
|
-
loadPilets: sessionStorage.getItem(
|
|
62719
|
-
hardRefresh: sessionStorage.getItem(
|
|
62720
|
-
viewOrigins: sessionStorage.getItem(
|
|
62721
|
-
extensionCatalogue: sessionStorage.getItem(
|
|
62782
|
+
viewState: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState) !== 'off',
|
|
62783
|
+
loadPilets: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets) === 'on',
|
|
62784
|
+
hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
|
|
62785
|
+
viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
|
|
62786
|
+
extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
|
|
62787
|
+
clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
|
|
62722
62788
|
});
|
|
62723
62789
|
}
|
|
62724
62790
|
});
|
|
@@ -63018,13 +63084,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
63018
63084
|
/* harmony export */ "navigate": () => (/* binding */ navigate),
|
|
63019
63085
|
/* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
|
|
63020
63086
|
/* harmony export */ "setState": () => (/* binding */ setState),
|
|
63087
|
+
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
63021
63088
|
/* harmony export */ "subscribe": () => (/* binding */ subscribe),
|
|
63022
63089
|
/* harmony export */ "useDebugState": () => (/* binding */ useDebugState)
|
|
63023
63090
|
/* harmony export */ });
|
|
63024
63091
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
63025
63092
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
63026
63093
|
|
|
63027
|
-
const
|
|
63094
|
+
const settingsKeys = {
|
|
63095
|
+
viewState: 'dbg:view-state',
|
|
63096
|
+
loadPilets: 'dbg:load-pilets',
|
|
63097
|
+
hardRefresh: 'dbg:hard-refresh',
|
|
63098
|
+
viewOrigins: 'dbg:view-origins',
|
|
63099
|
+
extensionCatalogue: 'dbg:extension-catalogue',
|
|
63100
|
+
clearConsole: 'dbg:clear-console',
|
|
63101
|
+
persistSettings: 'dbg:persist-settings-data'
|
|
63102
|
+
};
|
|
63103
|
+
const persistKey = settingsKeys.persistSettings;
|
|
63028
63104
|
const persistSettings = !!localStorage.getItem(persistKey);
|
|
63029
63105
|
|
|
63030
63106
|
const defaultSetter = (name, value) => {
|
|
@@ -63053,11 +63129,15 @@ if (persistSettings) {
|
|
|
63053
63129
|
|
|
63054
63130
|
function enablePersistance() {
|
|
63055
63131
|
const data = {};
|
|
63132
|
+
const validKeys = Object.keys(settingsKeys).map(m => settingsKeys[m]);
|
|
63056
63133
|
|
|
63057
63134
|
for (let i = 0; i < sessionStorage.length; i++) {
|
|
63058
63135
|
const name = sessionStorage.key(i);
|
|
63059
|
-
|
|
63060
|
-
|
|
63136
|
+
|
|
63137
|
+
if (validKeys.includes(name)) {
|
|
63138
|
+
const value = sessionStorage.getItem(name);
|
|
63139
|
+
data[name] = value;
|
|
63140
|
+
}
|
|
63061
63141
|
}
|
|
63062
63142
|
|
|
63063
63143
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
@@ -63069,12 +63149,12 @@ function disablePersistance() {
|
|
|
63069
63149
|
}
|
|
63070
63150
|
const initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
63071
63151
|
const initialSettings = {
|
|
63072
|
-
viewState: sessionStorage.getItem(
|
|
63073
|
-
loadPilets: sessionStorage.getItem(
|
|
63074
|
-
hardRefresh: sessionStorage.getItem(
|
|
63075
|
-
viewOrigins: sessionStorage.getItem(
|
|
63076
|
-
extensionCatalogue: sessionStorage.getItem(
|
|
63077
|
-
clearConsole: sessionStorage.getItem(
|
|
63152
|
+
viewState: sessionStorage.getItem(settingsKeys.viewState) !== 'off',
|
|
63153
|
+
loadPilets: sessionStorage.getItem(settingsKeys.loadPilets) === 'on',
|
|
63154
|
+
hardRefresh: sessionStorage.getItem(settingsKeys.hardRefresh) === 'on',
|
|
63155
|
+
viewOrigins: sessionStorage.getItem(settingsKeys.viewOrigins) === 'on',
|
|
63156
|
+
extensionCatalogue: sessionStorage.getItem(settingsKeys.extensionCatalogue) !== 'off',
|
|
63157
|
+
clearConsole: sessionStorage.getItem(settingsKeys.clearConsole) === 'on',
|
|
63078
63158
|
persistSettings,
|
|
63079
63159
|
cataloguePath: '/$debug-extension-catalogue'
|
|
63080
63160
|
};
|
|
@@ -74445,6 +74525,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74445
74525
|
});
|
|
74446
74526
|
|
|
74447
74527
|
return {
|
|
74528
|
+
get path() {
|
|
74529
|
+
if (_nav) {
|
|
74530
|
+
return _nav.location.pathname;
|
|
74531
|
+
}
|
|
74532
|
+
|
|
74533
|
+
return location.pathname;
|
|
74534
|
+
},
|
|
74448
74535
|
push(target, state) {
|
|
74449
74536
|
if (_nav) {
|
|
74450
74537
|
_nav.push(target, state);
|
|
@@ -211153,4 +211240,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
211153
211240
|
|
|
211154
211241
|
/******/ })()
|
|
211155
211242
|
;
|
|
211156
|
-
//# sourceMappingURL=index.
|
|
211243
|
+
//# sourceMappingURL=index.972786.js.map
|