sample-cross-fx 0.15.8 → 0.15.9-beta.5387
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.7549ba.js → index.eab82e.js} +63 -36
- package/app/{index.7549ba.js.map → index.eab82e.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
|
@@ -54337,14 +54337,14 @@ function createConverter(lazy, opts, language, logLevel) {
|
|
|
54337
54337
|
// POP is already handled by .NET
|
|
54338
54338
|
if (action !== 'POP') {
|
|
54339
54339
|
const url = makeUrl(location.href);
|
|
54340
|
-
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE');
|
|
54340
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE', location.state);
|
|
54341
54341
|
}
|
|
54342
54342
|
});
|
|
54343
54343
|
}
|
|
54344
54344
|
|
|
54345
54345
|
locals.state = 'fresh';
|
|
54346
54346
|
locals.next = noop;
|
|
54347
|
-
locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_3__.attachEvents)(el, ev => piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.
|
|
54347
|
+
locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_3__.attachEvents)(el, ev => piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.state) : nav.push(ev.detail.to, ev.detail.state));
|
|
54348
54348
|
|
|
54349
54349
|
function mountClassic(config) {
|
|
54350
54350
|
return (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props).then(refId => {
|
|
@@ -54892,7 +54892,7 @@ function createBlazorStarter(publicPath) {
|
|
|
54892
54892
|
return;
|
|
54893
54893
|
}
|
|
54894
54894
|
|
|
54895
|
-
window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry);
|
|
54895
|
+
window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry, opts.historyEntryState);
|
|
54896
54896
|
};
|
|
54897
54897
|
|
|
54898
54898
|
navManager.getBaseURI = () => originalBase;
|
|
@@ -54963,11 +54963,15 @@ function reactivate(moduleName, referenceId, props) {
|
|
|
54963
54963
|
function deactivate(moduleName, referenceId) {
|
|
54964
54964
|
return window.DotNet.invokeMethodAsync(coreLib, 'Deactivate', moduleName, referenceId);
|
|
54965
54965
|
}
|
|
54966
|
-
function callNotifyLocationChanged(url, replace) {
|
|
54966
|
+
function callNotifyLocationChanged(url, replace, state) {
|
|
54967
54967
|
if (isDotNet6OrBelow()) {
|
|
54968
54968
|
return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, replace);
|
|
54969
54969
|
} else {
|
|
54970
|
-
|
|
54970
|
+
if (state !== undefined && typeof state !== 'string') {
|
|
54971
|
+
state = JSON.stringify(state);
|
|
54972
|
+
}
|
|
54973
|
+
|
|
54974
|
+
return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, state, replace);
|
|
54971
54975
|
}
|
|
54972
54976
|
}
|
|
54973
54977
|
function setLanguage(language) {
|
|
@@ -61526,7 +61530,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61526
61530
|
/* harmony export */ });
|
|
61527
61531
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
61528
61532
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
61529
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/
|
|
61533
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
61530
61534
|
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
61531
61535
|
|
|
61532
61536
|
|
|
@@ -63576,17 +63580,20 @@ function installPiralDebug(options) {
|
|
|
63576
63580
|
updatePilet,
|
|
63577
63581
|
addPilet,
|
|
63578
63582
|
navigate,
|
|
63579
|
-
customSettings = {}
|
|
63583
|
+
customSettings = {},
|
|
63584
|
+
defaultSettings = {}
|
|
63580
63585
|
} = options;
|
|
63581
63586
|
const events = [];
|
|
63582
63587
|
const legacyBrowser = !new Error().stack;
|
|
63583
|
-
const
|
|
63588
|
+
const initialSettings = (0,_state__WEBPACK_IMPORTED_MODULE_0__.getInitialSettings)(defaultSettings);
|
|
63589
|
+
const excludedRoutes = [initialSettings.cataloguePath];
|
|
63584
63590
|
const selfSource = 'piral-debug-api';
|
|
63585
63591
|
const debugApiVersion = 'v1';
|
|
63586
63592
|
let setValue = _state__WEBPACK_IMPORTED_MODULE_0__.initialSetter;
|
|
63593
|
+
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setInitialState)(initialSettings);
|
|
63587
63594
|
const settings = Object.assign(Object.assign({}, customSettings), {
|
|
63588
63595
|
viewState: {
|
|
63589
|
-
value:
|
|
63596
|
+
value: initialSettings.viewState,
|
|
63590
63597
|
type: 'boolean',
|
|
63591
63598
|
label: 'State container logging',
|
|
63592
63599
|
|
|
@@ -63596,7 +63603,7 @@ function installPiralDebug(options) {
|
|
|
63596
63603
|
|
|
63597
63604
|
},
|
|
63598
63605
|
loadPilets: {
|
|
63599
|
-
value:
|
|
63606
|
+
value: initialSettings.loadPilets,
|
|
63600
63607
|
type: 'boolean',
|
|
63601
63608
|
label: 'Load available pilets',
|
|
63602
63609
|
|
|
@@ -63606,7 +63613,7 @@ function installPiralDebug(options) {
|
|
|
63606
63613
|
|
|
63607
63614
|
},
|
|
63608
63615
|
hardRefresh: {
|
|
63609
|
-
value:
|
|
63616
|
+
value: initialSettings.hardRefresh,
|
|
63610
63617
|
type: 'boolean',
|
|
63611
63618
|
label: 'Full refresh on change',
|
|
63612
63619
|
|
|
@@ -63616,7 +63623,7 @@ function installPiralDebug(options) {
|
|
|
63616
63623
|
|
|
63617
63624
|
},
|
|
63618
63625
|
viewOrigins: {
|
|
63619
|
-
value:
|
|
63626
|
+
value: initialSettings.viewOrigins,
|
|
63620
63627
|
type: 'boolean',
|
|
63621
63628
|
label: 'Visualize component origins',
|
|
63622
63629
|
|
|
@@ -63630,7 +63637,7 @@ function installPiralDebug(options) {
|
|
|
63630
63637
|
|
|
63631
63638
|
},
|
|
63632
63639
|
extensionCatalogue: {
|
|
63633
|
-
value:
|
|
63640
|
+
value: initialSettings.extensionCatalogue,
|
|
63634
63641
|
type: 'boolean',
|
|
63635
63642
|
label: 'Enable extension catalogue',
|
|
63636
63643
|
|
|
@@ -63640,7 +63647,7 @@ function installPiralDebug(options) {
|
|
|
63640
63647
|
|
|
63641
63648
|
},
|
|
63642
63649
|
clearConsole: {
|
|
63643
|
-
value:
|
|
63650
|
+
value: initialSettings.clearConsole,
|
|
63644
63651
|
type: 'boolean',
|
|
63645
63652
|
label: 'Clear console during HMR',
|
|
63646
63653
|
|
|
@@ -63650,7 +63657,7 @@ function installPiralDebug(options) {
|
|
|
63650
63657
|
|
|
63651
63658
|
},
|
|
63652
63659
|
persistSettings: {
|
|
63653
|
-
value:
|
|
63660
|
+
value: initialSettings.persistSettings,
|
|
63654
63661
|
type: 'boolean',
|
|
63655
63662
|
label: 'Persist settings',
|
|
63656
63663
|
|
|
@@ -63810,12 +63817,12 @@ function installPiralDebug(options) {
|
|
|
63810
63817
|
debug: debugApiVersion,
|
|
63811
63818
|
instance: {
|
|
63812
63819
|
name: "sample-cross-fx",
|
|
63813
|
-
version: "0.15.
|
|
63820
|
+
version: "0.15.9-beta.5387",
|
|
63814
63821
|
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"
|
|
63815
63822
|
},
|
|
63816
63823
|
build: {
|
|
63817
|
-
date: "2023-03-
|
|
63818
|
-
cli: "0.15.
|
|
63824
|
+
date: "2023-03-30T07:20:12.085Z",
|
|
63825
|
+
cli: "0.15.9-beta.5387",
|
|
63819
63826
|
compat: "0.15"
|
|
63820
63827
|
}
|
|
63821
63828
|
};
|
|
@@ -63979,7 +63986,7 @@ function installPiralDebug(options) {
|
|
|
63979
63986
|
Debug: _DebugTracker__WEBPACK_IMPORTED_MODULE_2__.DebugTracker
|
|
63980
63987
|
},
|
|
63981
63988
|
routes: {
|
|
63982
|
-
[
|
|
63989
|
+
[initialSettings.cataloguePath]: _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__.ExtensionCatalogue
|
|
63983
63990
|
},
|
|
63984
63991
|
wrappers: {
|
|
63985
63992
|
'*': _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__.VisualizationWrapper
|
|
@@ -64222,10 +64229,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64222
64229
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
64223
64230
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
64224
64231
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
64232
|
+
/* harmony export */ "getInitialSettings": () => (/* binding */ getInitialSettings),
|
|
64225
64233
|
/* harmony export */ "getState": () => (/* binding */ getState),
|
|
64226
64234
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
64227
|
-
/* harmony export */ "initialSettings": () => (/* binding */ initialSettings),
|
|
64228
64235
|
/* harmony export */ "navigate": () => (/* binding */ navigate),
|
|
64236
|
+
/* harmony export */ "setInitialState": () => (/* binding */ setInitialState),
|
|
64229
64237
|
/* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
|
|
64230
64238
|
/* harmony export */ "setState": () => (/* binding */ setState),
|
|
64231
64239
|
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
@@ -64258,6 +64266,18 @@ const persistentSetter = (name, value) => {
|
|
|
64258
64266
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
64259
64267
|
};
|
|
64260
64268
|
|
|
64269
|
+
function getValue(key, defaultValue, fallbackValue) {
|
|
64270
|
+
const value = sessionStorage.getItem(key);
|
|
64271
|
+
|
|
64272
|
+
if (['on', 'off'].includes(value)) {
|
|
64273
|
+
return value === 'on';
|
|
64274
|
+
} else if (typeof defaultValue === 'boolean') {
|
|
64275
|
+
return defaultValue;
|
|
64276
|
+
} else {
|
|
64277
|
+
return fallbackValue;
|
|
64278
|
+
}
|
|
64279
|
+
}
|
|
64280
|
+
|
|
64261
64281
|
if (persistSettings) {
|
|
64262
64282
|
try {
|
|
64263
64283
|
const settings = JSON.parse(localStorage.getItem(persistKey));
|
|
@@ -64292,16 +64312,18 @@ function disablePersistance() {
|
|
|
64292
64312
|
return defaultSetter;
|
|
64293
64313
|
}
|
|
64294
64314
|
const initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
64295
|
-
|
|
64296
|
-
|
|
64297
|
-
|
|
64298
|
-
|
|
64299
|
-
|
|
64300
|
-
|
|
64301
|
-
|
|
64302
|
-
|
|
64303
|
-
|
|
64304
|
-
|
|
64315
|
+
function getInitialSettings(defaultValues) {
|
|
64316
|
+
return {
|
|
64317
|
+
viewState: getValue(settingsKeys.viewState, defaultValues.viewState, true),
|
|
64318
|
+
loadPilets: getValue(settingsKeys.loadPilets, defaultValues.loadPilets, false),
|
|
64319
|
+
hardRefresh: getValue(settingsKeys.hardRefresh, defaultValues.hardRefresh, false),
|
|
64320
|
+
viewOrigins: getValue(settingsKeys.viewOrigins, defaultValues.viewOrigins, false),
|
|
64321
|
+
extensionCatalogue: getValue(settingsKeys.extensionCatalogue, defaultValues.extensionCatalogue, true),
|
|
64322
|
+
clearConsole: getValue(settingsKeys.clearConsole, defaultValues.clearConsole, false),
|
|
64323
|
+
persistSettings,
|
|
64324
|
+
cataloguePath: '/$debug-extension-catalogue'
|
|
64325
|
+
};
|
|
64326
|
+
}
|
|
64305
64327
|
const listeners = [];
|
|
64306
64328
|
let _navigate = undefined;
|
|
64307
64329
|
function setNavigate(navigate) {
|
|
@@ -64312,15 +64334,20 @@ function navigate(path, state) {
|
|
|
64312
64334
|
}
|
|
64313
64335
|
let state = {
|
|
64314
64336
|
visualize: {
|
|
64315
|
-
active:
|
|
64337
|
+
active: false,
|
|
64316
64338
|
force: false
|
|
64317
64339
|
},
|
|
64318
64340
|
catalogue: {
|
|
64319
|
-
active:
|
|
64320
|
-
path:
|
|
64341
|
+
active: false,
|
|
64342
|
+
path: ''
|
|
64321
64343
|
},
|
|
64322
64344
|
route: undefined
|
|
64323
64345
|
};
|
|
64346
|
+
function setInitialState(initialSettings) {
|
|
64347
|
+
state.visualize.active = initialSettings.viewOrigins;
|
|
64348
|
+
state.catalogue.active = initialSettings.extensionCatalogue;
|
|
64349
|
+
state.catalogue.path = initialSettings.cataloguePath;
|
|
64350
|
+
}
|
|
64324
64351
|
function setState(dispatch) {
|
|
64325
64352
|
const newState = dispatch(state);
|
|
64326
64353
|
|
|
@@ -75541,7 +75568,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75541
75568
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createNavigation),
|
|
75542
75569
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createRedirect),
|
|
75543
75570
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
75544
|
-
/* harmony export */ "integrateDebugger": () => (/*
|
|
75571
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger),
|
|
75545
75572
|
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_38__.integrateEmulator),
|
|
75546
75573
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
75547
75574
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
@@ -75672,7 +75699,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75672
75699
|
};
|
|
75673
75700
|
}
|
|
75674
75701
|
|
|
75675
|
-
|
|
75702
|
+
function integrateDebugger(context, options, debug) { return (0,piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_37__.integrateDebugger)(context, options, { defaultSettings: {}, ...debug }); }
|
|
75676
75703
|
|
|
75677
75704
|
|
|
75678
75705
|
function useRouteFilter(paths) {
|
|
@@ -216663,4 +216690,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216663
216690
|
|
|
216664
216691
|
/******/ })()
|
|
216665
216692
|
;
|
|
216666
|
-
//# sourceMappingURL=index.
|
|
216693
|
+
//# sourceMappingURL=index.eab82e.js.map
|