sample-cross-fx 0.14.30 → 0.14.32
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.4c48c8.js} +73 -39
- package/app/{index.146c9e.js.map → index.4c48c8.js.map} +1 -1
- package/app/index.d.ts +4 -0
- 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
|
@@ -54630,6 +54630,16 @@ function project(component, destination, options) {
|
|
|
54630
54630
|
destination.appendChild(component);
|
|
54631
54631
|
}
|
|
54632
54632
|
|
|
54633
|
+
function makeUrl(href) {
|
|
54634
|
+
const origin = document.location.origin;
|
|
54635
|
+
|
|
54636
|
+
if (!href.startsWith(origin)) {
|
|
54637
|
+
return `${origin}${href}`;
|
|
54638
|
+
}
|
|
54639
|
+
|
|
54640
|
+
return href;
|
|
54641
|
+
}
|
|
54642
|
+
|
|
54633
54643
|
function createConverter(lazy) {
|
|
54634
54644
|
const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_0__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
54635
54645
|
let loader = !lazy && boot();
|
|
@@ -54655,7 +54665,8 @@ function createConverter(lazy) {
|
|
|
54655
54665
|
// POP is already handled by .NET
|
|
54656
54666
|
if (action !== 'POP') {
|
|
54657
54667
|
const href = nav.createHref(location);
|
|
54658
|
-
|
|
54668
|
+
const url = makeUrl(href);
|
|
54669
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_0__.callNotifyLocationChanged)(url, action === 'REPLACE');
|
|
54659
54670
|
}
|
|
54660
54671
|
});
|
|
54661
54672
|
}
|
|
@@ -56034,16 +56045,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56034
56045
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56035
56046
|
/* harmony export */ "RoutingService": () => (/* binding */ RoutingService)
|
|
56036
56047
|
/* harmony export */ });
|
|
56037
|
-
/* harmony import */ var
|
|
56048
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
56038
56049
|
/* 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");
|
|
56050
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
|
|
56041
56051
|
var RoutingService_1;
|
|
56042
56052
|
|
|
56043
56053
|
|
|
56044
56054
|
|
|
56045
56055
|
|
|
56046
|
-
|
|
56047
56056
|
const ngc = _angular_core__WEBPACK_IMPORTED_MODULE_0__;
|
|
56048
56057
|
let RoutingService = RoutingService_1 = class RoutingService {
|
|
56049
56058
|
constructor(context, router, zone) {
|
|
@@ -56069,14 +56078,24 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
56069
56078
|
this.zone.run(() => this.router.navigateByUrl(path));
|
|
56070
56079
|
}
|
|
56071
56080
|
});
|
|
56072
|
-
this.subscription = this.router.events.
|
|
56073
|
-
|
|
56081
|
+
this.subscription = this.router.events.subscribe(e => {
|
|
56082
|
+
if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__.NavigationError) {
|
|
56083
|
+
const path = e.url;
|
|
56074
56084
|
|
|
56075
|
-
|
|
56076
|
-
|
|
56077
|
-
|
|
56085
|
+
if (!this.invalidRoutes.includes(path)) {
|
|
56086
|
+
this.invalidRoutes.push(path);
|
|
56087
|
+
}
|
|
56078
56088
|
|
|
56079
|
-
|
|
56089
|
+
this.context.router.history.push(path);
|
|
56090
|
+
} else if (e.type === 15) {
|
|
56091
|
+
// consistency check to avoid #535 and other Angular-specific issues
|
|
56092
|
+
const locationUrl = this.context.router.history.location.pathname;
|
|
56093
|
+
const routerUrl = e.routerEvent.url;
|
|
56094
|
+
|
|
56095
|
+
if (routerUrl !== locationUrl) {
|
|
56096
|
+
this.context.router.history.push(routerUrl);
|
|
56097
|
+
}
|
|
56098
|
+
}
|
|
56080
56099
|
});
|
|
56081
56100
|
}
|
|
56082
56101
|
}
|
|
@@ -56089,12 +56108,12 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
56089
56108
|
}
|
|
56090
56109
|
|
|
56091
56110
|
};
|
|
56092
|
-
RoutingService.ɵfac = 'ɵɵinject' in ngc ? t => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(
|
|
56111
|
+
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
56112
|
RoutingService.ɵprov = 'ɵɵngDeclareInjectable' in ngc ? ngc.ɵɵdefineInjectable({
|
|
56094
56113
|
token: RoutingService_1,
|
|
56095
56114
|
factory: RoutingService_1.ɵfac
|
|
56096
56115
|
}) : undefined;
|
|
56097
|
-
RoutingService = RoutingService_1 = (0,
|
|
56116
|
+
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
56117
|
|
|
56099
56118
|
|
|
56100
56119
|
if ('ɵsetClassMetadata' in ngc) {
|
|
@@ -56110,7 +56129,7 @@ if ('ɵsetClassMetadata' in ngc) {
|
|
|
56110
56129
|
args: ['Context']
|
|
56111
56130
|
}]
|
|
56112
56131
|
}, {
|
|
56113
|
-
type:
|
|
56132
|
+
type: _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router,
|
|
56114
56133
|
decorators: [{
|
|
56115
56134
|
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
|
|
56116
56135
|
}]
|
|
@@ -60105,7 +60124,7 @@ function createInstance(config = {}) {
|
|
|
60105
60124
|
const createApi = apiFactory(context, usedPlugins);
|
|
60106
60125
|
const root = createApi({
|
|
60107
60126
|
name: 'root',
|
|
60108
|
-
version: "0.14.
|
|
60127
|
+
version: "0.14.32" || 0,
|
|
60109
60128
|
spec: ''
|
|
60110
60129
|
});
|
|
60111
60130
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -61896,7 +61915,7 @@ function installPiralDebug(options) {
|
|
|
61896
61915
|
label: 'State container logging',
|
|
61897
61916
|
|
|
61898
61917
|
onChange(value) {
|
|
61899
|
-
setValue(
|
|
61918
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState, value ? 'on' : 'off');
|
|
61900
61919
|
}
|
|
61901
61920
|
|
|
61902
61921
|
},
|
|
@@ -61906,7 +61925,7 @@ function installPiralDebug(options) {
|
|
|
61906
61925
|
label: 'Load available pilets',
|
|
61907
61926
|
|
|
61908
61927
|
onChange(value) {
|
|
61909
|
-
setValue(
|
|
61928
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets, value ? 'on' : 'off');
|
|
61910
61929
|
}
|
|
61911
61930
|
|
|
61912
61931
|
},
|
|
@@ -61916,7 +61935,7 @@ function installPiralDebug(options) {
|
|
|
61916
61935
|
label: 'Full refresh on change',
|
|
61917
61936
|
|
|
61918
61937
|
onChange(value) {
|
|
61919
|
-
setValue(
|
|
61938
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh, value ? 'on' : 'off');
|
|
61920
61939
|
}
|
|
61921
61940
|
|
|
61922
61941
|
},
|
|
@@ -61926,7 +61945,7 @@ function installPiralDebug(options) {
|
|
|
61926
61945
|
label: 'Visualize component origins',
|
|
61927
61946
|
|
|
61928
61947
|
onChange(value, prev) {
|
|
61929
|
-
setValue(
|
|
61948
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins, value ? 'on' : 'off');
|
|
61930
61949
|
|
|
61931
61950
|
if (prev !== value) {
|
|
61932
61951
|
updateVisualize(value);
|
|
@@ -61940,7 +61959,7 @@ function installPiralDebug(options) {
|
|
|
61940
61959
|
label: 'Enable extension catalogue',
|
|
61941
61960
|
|
|
61942
61961
|
onChange(value) {
|
|
61943
|
-
setValue(
|
|
61962
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue, value ? 'on' : 'off');
|
|
61944
61963
|
}
|
|
61945
61964
|
|
|
61946
61965
|
},
|
|
@@ -61950,7 +61969,7 @@ function installPiralDebug(options) {
|
|
|
61950
61969
|
label: 'Clear console during HMR',
|
|
61951
61970
|
|
|
61952
61971
|
onChange(value) {
|
|
61953
|
-
setValue(
|
|
61972
|
+
setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole, value ? 'on' : 'off');
|
|
61954
61973
|
}
|
|
61955
61974
|
|
|
61956
61975
|
},
|
|
@@ -62126,12 +62145,12 @@ function installPiralDebug(options) {
|
|
|
62126
62145
|
debug: debugApiVersion,
|
|
62127
62146
|
instance: {
|
|
62128
62147
|
name: "sample-cross-fx",
|
|
62129
|
-
version: "0.14.
|
|
62148
|
+
version: "0.14.32",
|
|
62130
62149
|
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
62150
|
},
|
|
62132
62151
|
build: {
|
|
62133
|
-
date: "2022-
|
|
62134
|
-
cli: "0.14.
|
|
62152
|
+
date: "2022-09-21T23:10:24.161Z",
|
|
62153
|
+
cli: "0.14.31",
|
|
62135
62154
|
compat: "0.14"
|
|
62136
62155
|
},
|
|
62137
62156
|
pilets: {
|
|
@@ -62243,11 +62262,12 @@ function installPiralDebug(options) {
|
|
|
62243
62262
|
if (!legacyBrowser && event.storageArea === sessionStorage) {
|
|
62244
62263
|
// potentially unknowingly updated settings
|
|
62245
62264
|
updateSettings({
|
|
62246
|
-
viewState: sessionStorage.getItem(
|
|
62247
|
-
loadPilets: sessionStorage.getItem(
|
|
62248
|
-
hardRefresh: sessionStorage.getItem(
|
|
62249
|
-
viewOrigins: sessionStorage.getItem(
|
|
62250
|
-
extensionCatalogue: sessionStorage.getItem(
|
|
62265
|
+
viewState: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState) !== 'off',
|
|
62266
|
+
loadPilets: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets) === 'on',
|
|
62267
|
+
hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
|
|
62268
|
+
viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
|
|
62269
|
+
extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
|
|
62270
|
+
clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
|
|
62251
62271
|
});
|
|
62252
62272
|
}
|
|
62253
62273
|
});
|
|
@@ -62559,6 +62579,7 @@ function withEmulatorPilets(requestPilets, options) {
|
|
|
62559
62579
|
"use strict";
|
|
62560
62580
|
__webpack_require__.r(__webpack_exports__);
|
|
62561
62581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62582
|
+
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
62562
62583
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
62563
62584
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
62564
62585
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
@@ -62570,7 +62591,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62570
62591
|
/* harmony export */ });
|
|
62571
62592
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
62572
62593
|
|
|
62573
|
-
const
|
|
62594
|
+
const settingsKeys = {
|
|
62595
|
+
viewState: 'dbg:view-state',
|
|
62596
|
+
loadPilets: 'dbg:load-pilets',
|
|
62597
|
+
hardRefresh: 'dbg:hard-refresh',
|
|
62598
|
+
viewOrigins: 'dbg:view-origins',
|
|
62599
|
+
extensionCatalogue: 'dbg:extension-catalogue',
|
|
62600
|
+
clearConsole: 'dbg:clear-console',
|
|
62601
|
+
persistSettings: 'dbg:persist-settings-data'
|
|
62602
|
+
};
|
|
62603
|
+
const persistKey = settingsKeys.persistSettings;
|
|
62574
62604
|
const persistSettings = !!localStorage.getItem(persistKey);
|
|
62575
62605
|
|
|
62576
62606
|
const defaultSetter = (name, value) => {
|
|
@@ -62599,11 +62629,15 @@ if (persistSettings) {
|
|
|
62599
62629
|
|
|
62600
62630
|
function enablePersistance() {
|
|
62601
62631
|
const data = {};
|
|
62632
|
+
const validKeys = Object.keys(settingsKeys).map(m => settingsKeys[m]);
|
|
62602
62633
|
|
|
62603
62634
|
for (let i = 0; i < sessionStorage.length; i++) {
|
|
62604
62635
|
const name = sessionStorage.key(i);
|
|
62605
|
-
|
|
62606
|
-
|
|
62636
|
+
|
|
62637
|
+
if (validKeys.includes(name)) {
|
|
62638
|
+
const value = sessionStorage.getItem(name);
|
|
62639
|
+
data[name] = value;
|
|
62640
|
+
}
|
|
62607
62641
|
}
|
|
62608
62642
|
|
|
62609
62643
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
@@ -62615,12 +62649,12 @@ function disablePersistance() {
|
|
|
62615
62649
|
}
|
|
62616
62650
|
const initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
62617
62651
|
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(
|
|
62652
|
+
viewState: sessionStorage.getItem(settingsKeys.viewState) !== 'off',
|
|
62653
|
+
loadPilets: sessionStorage.getItem(settingsKeys.loadPilets) === 'on',
|
|
62654
|
+
hardRefresh: sessionStorage.getItem(settingsKeys.hardRefresh) === 'on',
|
|
62655
|
+
viewOrigins: sessionStorage.getItem(settingsKeys.viewOrigins) === 'on',
|
|
62656
|
+
extensionCatalogue: sessionStorage.getItem(settingsKeys.extensionCatalogue) !== 'off',
|
|
62657
|
+
clearConsole: sessionStorage.getItem(settingsKeys.clearConsole) === 'on',
|
|
62624
62658
|
persistSettings,
|
|
62625
62659
|
cataloguePath: '/$debug-extension-catalogue'
|
|
62626
62660
|
};
|
|
@@ -205975,4 +206009,4 @@ const app = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral_
|
|
|
205975
206009
|
|
|
205976
206010
|
/******/ })()
|
|
205977
206011
|
;
|
|
205978
|
-
//# sourceMappingURL=index.
|
|
206012
|
+
//# sourceMappingURL=index.4c48c8.js.map
|