sample-cross-fx 0.14.30 → 0.14.31
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.146c9e.js → index.e5d813.js} +61 -38
- package/app/{index.146c9e.js.map → index.e5d813.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
|
@@ -56034,16 +56034,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56034
56034
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56035
56035
|
/* harmony export */ "RoutingService": () => (/* binding */ RoutingService)
|
|
56036
56036
|
/* harmony export */ });
|
|
56037
|
-
/* harmony import */ var
|
|
56037
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
56038
56038
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56039
|
-
/* harmony import */ var
|
|
56040
|
-
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "../../../node_modules/rxjs/dist/esm5/internal/operators/filter.js");
|
|
56039
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
|
|
56041
56040
|
var RoutingService_1;
|
|
56042
56041
|
|
|
56043
56042
|
|
|
56044
56043
|
|
|
56045
56044
|
|
|
56046
|
-
|
|
56047
56045
|
const ngc = _angular_core__WEBPACK_IMPORTED_MODULE_0__;
|
|
56048
56046
|
let RoutingService = RoutingService_1 = class RoutingService {
|
|
56049
56047
|
constructor(context, router, zone) {
|
|
@@ -56069,14 +56067,24 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
56069
56067
|
this.zone.run(() => this.router.navigateByUrl(path));
|
|
56070
56068
|
}
|
|
56071
56069
|
});
|
|
56072
|
-
this.subscription = this.router.events.
|
|
56073
|
-
|
|
56070
|
+
this.subscription = this.router.events.subscribe(e => {
|
|
56071
|
+
if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__.NavigationError) {
|
|
56072
|
+
const path = e.url;
|
|
56074
56073
|
|
|
56075
|
-
|
|
56076
|
-
|
|
56077
|
-
|
|
56074
|
+
if (!this.invalidRoutes.includes(path)) {
|
|
56075
|
+
this.invalidRoutes.push(path);
|
|
56076
|
+
}
|
|
56078
56077
|
|
|
56079
|
-
|
|
56078
|
+
this.context.router.history.push(path);
|
|
56079
|
+
} else if (e.type === 15) {
|
|
56080
|
+
// consistency check to avoid #535 and other Angular-specific issues
|
|
56081
|
+
const locationUrl = this.context.router.history.location.pathname;
|
|
56082
|
+
const routerUrl = e.routerEvent.url;
|
|
56083
|
+
|
|
56084
|
+
if (routerUrl !== locationUrl) {
|
|
56085
|
+
this.context.router.history.push(routerUrl);
|
|
56086
|
+
}
|
|
56087
|
+
}
|
|
56080
56088
|
});
|
|
56081
56089
|
}
|
|
56082
56090
|
}
|
|
@@ -56089,12 +56097,12 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
56089
56097
|
}
|
|
56090
56098
|
|
|
56091
56099
|
};
|
|
56092
|
-
RoutingService.ɵfac = 'ɵɵinject' in ngc ? t => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(
|
|
56100
|
+
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;
|
|
56093
56101
|
RoutingService.ɵprov = 'ɵɵngDeclareInjectable' in ngc ? ngc.ɵɵdefineInjectable({
|
|
56094
56102
|
token: RoutingService_1,
|
|
56095
56103
|
factory: RoutingService_1.ɵfac
|
|
56096
56104
|
}) : undefined;
|
|
56097
|
-
RoutingService = RoutingService_1 = (0,
|
|
56105
|
+
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);
|
|
56098
56106
|
|
|
56099
56107
|
|
|
56100
56108
|
if ('ɵsetClassMetadata' in ngc) {
|
|
@@ -56110,7 +56118,7 @@ if ('ɵsetClassMetadata' in ngc) {
|
|
|
56110
56118
|
args: ['Context']
|
|
56111
56119
|
}]
|
|
56112
56120
|
}, {
|
|
56113
|
-
type:
|
|
56121
|
+
type: _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router,
|
|
56114
56122
|
decorators: [{
|
|
56115
56123
|
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
|
|
56116
56124
|
}]
|
|
@@ -60105,7 +60113,7 @@ function createInstance(config = {}) {
|
|
|
60105
60113
|
const createApi = apiFactory(context, usedPlugins);
|
|
60106
60114
|
const root = createApi({
|
|
60107
60115
|
name: 'root',
|
|
60108
|
-
version: "0.14.
|
|
60116
|
+
version: "0.14.31" || 0,
|
|
60109
60117
|
spec: ''
|
|
60110
60118
|
});
|
|
60111
60119
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -61896,7 +61904,7 @@ function installPiralDebug(options) {
|
|
|
61896
61904
|
label: 'State container logging',
|
|
61897
61905
|
|
|
61898
61906
|
onChange(value) {
|
|
61899
|
-
setValue(
|
|
61907
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState, value ? 'on' : 'off');
|
|
61900
61908
|
}
|
|
61901
61909
|
|
|
61902
61910
|
},
|
|
@@ -61906,7 +61914,7 @@ function installPiralDebug(options) {
|
|
|
61906
61914
|
label: 'Load available pilets',
|
|
61907
61915
|
|
|
61908
61916
|
onChange(value) {
|
|
61909
|
-
setValue(
|
|
61917
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets, value ? 'on' : 'off');
|
|
61910
61918
|
}
|
|
61911
61919
|
|
|
61912
61920
|
},
|
|
@@ -61916,7 +61924,7 @@ function installPiralDebug(options) {
|
|
|
61916
61924
|
label: 'Full refresh on change',
|
|
61917
61925
|
|
|
61918
61926
|
onChange(value) {
|
|
61919
|
-
setValue(
|
|
61927
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh, value ? 'on' : 'off');
|
|
61920
61928
|
}
|
|
61921
61929
|
|
|
61922
61930
|
},
|
|
@@ -61926,7 +61934,7 @@ function installPiralDebug(options) {
|
|
|
61926
61934
|
label: 'Visualize component origins',
|
|
61927
61935
|
|
|
61928
61936
|
onChange(value, prev) {
|
|
61929
|
-
setValue(
|
|
61937
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins, value ? 'on' : 'off');
|
|
61930
61938
|
|
|
61931
61939
|
if (prev !== value) {
|
|
61932
61940
|
updateVisualize(value);
|
|
@@ -61940,7 +61948,7 @@ function installPiralDebug(options) {
|
|
|
61940
61948
|
label: 'Enable extension catalogue',
|
|
61941
61949
|
|
|
61942
61950
|
onChange(value) {
|
|
61943
|
-
setValue(
|
|
61951
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue, value ? 'on' : 'off');
|
|
61944
61952
|
}
|
|
61945
61953
|
|
|
61946
61954
|
},
|
|
@@ -61950,7 +61958,7 @@ function installPiralDebug(options) {
|
|
|
61950
61958
|
label: 'Clear console during HMR',
|
|
61951
61959
|
|
|
61952
61960
|
onChange(value) {
|
|
61953
|
-
setValue(
|
|
61961
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole, value ? 'on' : 'off');
|
|
61954
61962
|
}
|
|
61955
61963
|
|
|
61956
61964
|
},
|
|
@@ -62126,12 +62134,12 @@ function installPiralDebug(options) {
|
|
|
62126
62134
|
debug: debugApiVersion,
|
|
62127
62135
|
instance: {
|
|
62128
62136
|
name: "sample-cross-fx",
|
|
62129
|
-
version: "0.14.
|
|
62137
|
+
version: "0.14.31",
|
|
62130
62138
|
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,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
62131
62139
|
},
|
|
62132
62140
|
build: {
|
|
62133
|
-
date: "2022-
|
|
62134
|
-
cli: "0.14.
|
|
62141
|
+
date: "2022-09-07T23:56:25.055Z",
|
|
62142
|
+
cli: "0.14.31",
|
|
62135
62143
|
compat: "0.14"
|
|
62136
62144
|
},
|
|
62137
62145
|
pilets: {
|
|
@@ -62243,11 +62251,12 @@ function installPiralDebug(options) {
|
|
|
62243
62251
|
if (!legacyBrowser && event.storageArea === sessionStorage) {
|
|
62244
62252
|
// potentially unknowingly updated settings
|
|
62245
62253
|
updateSettings({
|
|
62246
|
-
viewState: sessionStorage.getItem(
|
|
62247
|
-
loadPilets: sessionStorage.getItem(
|
|
62248
|
-
hardRefresh: sessionStorage.getItem(
|
|
62249
|
-
viewOrigins: sessionStorage.getItem(
|
|
62250
|
-
extensionCatalogue: sessionStorage.getItem(
|
|
62254
|
+
viewState: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState) !== 'off',
|
|
62255
|
+
loadPilets: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets) === 'on',
|
|
62256
|
+
hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
|
|
62257
|
+
viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
|
|
62258
|
+
extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
|
|
62259
|
+
clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
|
|
62251
62260
|
});
|
|
62252
62261
|
}
|
|
62253
62262
|
});
|
|
@@ -62559,6 +62568,7 @@ function withEmulatorPilets(requestPilets, options) {
|
|
|
62559
62568
|
"use strict";
|
|
62560
62569
|
__webpack_require__.r(__webpack_exports__);
|
|
62561
62570
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62571
|
+
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
62562
62572
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
62563
62573
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
62564
62574
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
@@ -62570,7 +62580,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62570
62580
|
/* harmony export */ });
|
|
62571
62581
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
62572
62582
|
|
|
62573
|
-
const
|
|
62583
|
+
const settingsKeys = {
|
|
62584
|
+
viewState: 'dbg:view-state',
|
|
62585
|
+
loadPilets: 'dbg:load-pilets',
|
|
62586
|
+
hardRefresh: 'dbg:hard-refresh',
|
|
62587
|
+
viewOrigins: 'dbg:view-origins',
|
|
62588
|
+
extensionCatalogue: 'dbg:extension-catalogue',
|
|
62589
|
+
clearConsole: 'dbg:clear-console',
|
|
62590
|
+
persistSettings: 'dbg:persist-settings-data'
|
|
62591
|
+
};
|
|
62592
|
+
const persistKey = settingsKeys.persistSettings;
|
|
62574
62593
|
const persistSettings = !!localStorage.getItem(persistKey);
|
|
62575
62594
|
|
|
62576
62595
|
const defaultSetter = (name, value) => {
|
|
@@ -62599,11 +62618,15 @@ if (persistSettings) {
|
|
|
62599
62618
|
|
|
62600
62619
|
function enablePersistance() {
|
|
62601
62620
|
const data = {};
|
|
62621
|
+
const validKeys = Object.keys(settingsKeys).map(m => settingsKeys[m]);
|
|
62602
62622
|
|
|
62603
62623
|
for (let i = 0; i < sessionStorage.length; i++) {
|
|
62604
62624
|
const name = sessionStorage.key(i);
|
|
62605
|
-
|
|
62606
|
-
|
|
62625
|
+
|
|
62626
|
+
if (validKeys.includes(name)) {
|
|
62627
|
+
const value = sessionStorage.getItem(name);
|
|
62628
|
+
data[name] = value;
|
|
62629
|
+
}
|
|
62607
62630
|
}
|
|
62608
62631
|
|
|
62609
62632
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
@@ -62615,12 +62638,12 @@ function disablePersistance() {
|
|
|
62615
62638
|
}
|
|
62616
62639
|
const initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
62617
62640
|
const initialSettings = {
|
|
62618
|
-
viewState: sessionStorage.getItem(
|
|
62619
|
-
loadPilets: sessionStorage.getItem(
|
|
62620
|
-
hardRefresh: sessionStorage.getItem(
|
|
62621
|
-
viewOrigins: sessionStorage.getItem(
|
|
62622
|
-
extensionCatalogue: sessionStorage.getItem(
|
|
62623
|
-
clearConsole: sessionStorage.getItem(
|
|
62641
|
+
viewState: sessionStorage.getItem(settingsKeys.viewState) !== 'off',
|
|
62642
|
+
loadPilets: sessionStorage.getItem(settingsKeys.loadPilets) === 'on',
|
|
62643
|
+
hardRefresh: sessionStorage.getItem(settingsKeys.hardRefresh) === 'on',
|
|
62644
|
+
viewOrigins: sessionStorage.getItem(settingsKeys.viewOrigins) === 'on',
|
|
62645
|
+
extensionCatalogue: sessionStorage.getItem(settingsKeys.extensionCatalogue) !== 'off',
|
|
62646
|
+
clearConsole: sessionStorage.getItem(settingsKeys.clearConsole) === 'on',
|
|
62624
62647
|
persistSettings,
|
|
62625
62648
|
cataloguePath: '/$debug-extension-catalogue'
|
|
62626
62649
|
};
|
|
@@ -205975,4 +205998,4 @@ const app = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral_
|
|
|
205975
205998
|
|
|
205976
205999
|
/******/ })()
|
|
205977
206000
|
;
|
|
205978
|
-
//# sourceMappingURL=index.
|
|
206001
|
+
//# sourceMappingURL=index.e5d813.js.map
|