sample-cross-fx 0.15.9-beta.5384 → 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.e0bf59.js → index.eab82e.js} +54 -31
- package/app/{index.e0bf59.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
|
@@ -61530,7 +61530,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61530
61530
|
/* harmony export */ });
|
|
61531
61531
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
61532
61532
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
61533
|
-
/* 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");
|
|
61534
61534
|
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
61535
61535
|
|
|
61536
61536
|
|
|
@@ -63580,17 +63580,20 @@ function installPiralDebug(options) {
|
|
|
63580
63580
|
updatePilet,
|
|
63581
63581
|
addPilet,
|
|
63582
63582
|
navigate,
|
|
63583
|
-
customSettings = {}
|
|
63583
|
+
customSettings = {},
|
|
63584
|
+
defaultSettings = {}
|
|
63584
63585
|
} = options;
|
|
63585
63586
|
const events = [];
|
|
63586
63587
|
const legacyBrowser = !new Error().stack;
|
|
63587
|
-
const
|
|
63588
|
+
const initialSettings = (0,_state__WEBPACK_IMPORTED_MODULE_0__.getInitialSettings)(defaultSettings);
|
|
63589
|
+
const excludedRoutes = [initialSettings.cataloguePath];
|
|
63588
63590
|
const selfSource = 'piral-debug-api';
|
|
63589
63591
|
const debugApiVersion = 'v1';
|
|
63590
63592
|
let setValue = _state__WEBPACK_IMPORTED_MODULE_0__.initialSetter;
|
|
63593
|
+
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setInitialState)(initialSettings);
|
|
63591
63594
|
const settings = Object.assign(Object.assign({}, customSettings), {
|
|
63592
63595
|
viewState: {
|
|
63593
|
-
value:
|
|
63596
|
+
value: initialSettings.viewState,
|
|
63594
63597
|
type: 'boolean',
|
|
63595
63598
|
label: 'State container logging',
|
|
63596
63599
|
|
|
@@ -63600,7 +63603,7 @@ function installPiralDebug(options) {
|
|
|
63600
63603
|
|
|
63601
63604
|
},
|
|
63602
63605
|
loadPilets: {
|
|
63603
|
-
value:
|
|
63606
|
+
value: initialSettings.loadPilets,
|
|
63604
63607
|
type: 'boolean',
|
|
63605
63608
|
label: 'Load available pilets',
|
|
63606
63609
|
|
|
@@ -63610,7 +63613,7 @@ function installPiralDebug(options) {
|
|
|
63610
63613
|
|
|
63611
63614
|
},
|
|
63612
63615
|
hardRefresh: {
|
|
63613
|
-
value:
|
|
63616
|
+
value: initialSettings.hardRefresh,
|
|
63614
63617
|
type: 'boolean',
|
|
63615
63618
|
label: 'Full refresh on change',
|
|
63616
63619
|
|
|
@@ -63620,7 +63623,7 @@ function installPiralDebug(options) {
|
|
|
63620
63623
|
|
|
63621
63624
|
},
|
|
63622
63625
|
viewOrigins: {
|
|
63623
|
-
value:
|
|
63626
|
+
value: initialSettings.viewOrigins,
|
|
63624
63627
|
type: 'boolean',
|
|
63625
63628
|
label: 'Visualize component origins',
|
|
63626
63629
|
|
|
@@ -63634,7 +63637,7 @@ function installPiralDebug(options) {
|
|
|
63634
63637
|
|
|
63635
63638
|
},
|
|
63636
63639
|
extensionCatalogue: {
|
|
63637
|
-
value:
|
|
63640
|
+
value: initialSettings.extensionCatalogue,
|
|
63638
63641
|
type: 'boolean',
|
|
63639
63642
|
label: 'Enable extension catalogue',
|
|
63640
63643
|
|
|
@@ -63644,7 +63647,7 @@ function installPiralDebug(options) {
|
|
|
63644
63647
|
|
|
63645
63648
|
},
|
|
63646
63649
|
clearConsole: {
|
|
63647
|
-
value:
|
|
63650
|
+
value: initialSettings.clearConsole,
|
|
63648
63651
|
type: 'boolean',
|
|
63649
63652
|
label: 'Clear console during HMR',
|
|
63650
63653
|
|
|
@@ -63654,7 +63657,7 @@ function installPiralDebug(options) {
|
|
|
63654
63657
|
|
|
63655
63658
|
},
|
|
63656
63659
|
persistSettings: {
|
|
63657
|
-
value:
|
|
63660
|
+
value: initialSettings.persistSettings,
|
|
63658
63661
|
type: 'boolean',
|
|
63659
63662
|
label: 'Persist settings',
|
|
63660
63663
|
|
|
@@ -63814,12 +63817,12 @@ function installPiralDebug(options) {
|
|
|
63814
63817
|
debug: debugApiVersion,
|
|
63815
63818
|
instance: {
|
|
63816
63819
|
name: "sample-cross-fx",
|
|
63817
|
-
version: "0.15.9-beta.
|
|
63820
|
+
version: "0.15.9-beta.5387",
|
|
63818
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"
|
|
63819
63822
|
},
|
|
63820
63823
|
build: {
|
|
63821
|
-
date: "2023-03-
|
|
63822
|
-
cli: "0.15.9-beta.
|
|
63824
|
+
date: "2023-03-30T07:20:12.085Z",
|
|
63825
|
+
cli: "0.15.9-beta.5387",
|
|
63823
63826
|
compat: "0.15"
|
|
63824
63827
|
}
|
|
63825
63828
|
};
|
|
@@ -63983,7 +63986,7 @@ function installPiralDebug(options) {
|
|
|
63983
63986
|
Debug: _DebugTracker__WEBPACK_IMPORTED_MODULE_2__.DebugTracker
|
|
63984
63987
|
},
|
|
63985
63988
|
routes: {
|
|
63986
|
-
[
|
|
63989
|
+
[initialSettings.cataloguePath]: _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__.ExtensionCatalogue
|
|
63987
63990
|
},
|
|
63988
63991
|
wrappers: {
|
|
63989
63992
|
'*': _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__.VisualizationWrapper
|
|
@@ -64226,10 +64229,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64226
64229
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
64227
64230
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
64228
64231
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
64232
|
+
/* harmony export */ "getInitialSettings": () => (/* binding */ getInitialSettings),
|
|
64229
64233
|
/* harmony export */ "getState": () => (/* binding */ getState),
|
|
64230
64234
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
64231
|
-
/* harmony export */ "initialSettings": () => (/* binding */ initialSettings),
|
|
64232
64235
|
/* harmony export */ "navigate": () => (/* binding */ navigate),
|
|
64236
|
+
/* harmony export */ "setInitialState": () => (/* binding */ setInitialState),
|
|
64233
64237
|
/* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
|
|
64234
64238
|
/* harmony export */ "setState": () => (/* binding */ setState),
|
|
64235
64239
|
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
@@ -64262,6 +64266,18 @@ const persistentSetter = (name, value) => {
|
|
|
64262
64266
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
64263
64267
|
};
|
|
64264
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
|
+
|
|
64265
64281
|
if (persistSettings) {
|
|
64266
64282
|
try {
|
|
64267
64283
|
const settings = JSON.parse(localStorage.getItem(persistKey));
|
|
@@ -64296,16 +64312,18 @@ function disablePersistance() {
|
|
|
64296
64312
|
return defaultSetter;
|
|
64297
64313
|
}
|
|
64298
64314
|
const initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
64299
|
-
|
|
64300
|
-
|
|
64301
|
-
|
|
64302
|
-
|
|
64303
|
-
|
|
64304
|
-
|
|
64305
|
-
|
|
64306
|
-
|
|
64307
|
-
|
|
64308
|
-
|
|
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
|
+
}
|
|
64309
64327
|
const listeners = [];
|
|
64310
64328
|
let _navigate = undefined;
|
|
64311
64329
|
function setNavigate(navigate) {
|
|
@@ -64316,15 +64334,20 @@ function navigate(path, state) {
|
|
|
64316
64334
|
}
|
|
64317
64335
|
let state = {
|
|
64318
64336
|
visualize: {
|
|
64319
|
-
active:
|
|
64337
|
+
active: false,
|
|
64320
64338
|
force: false
|
|
64321
64339
|
},
|
|
64322
64340
|
catalogue: {
|
|
64323
|
-
active:
|
|
64324
|
-
path:
|
|
64341
|
+
active: false,
|
|
64342
|
+
path: ''
|
|
64325
64343
|
},
|
|
64326
64344
|
route: undefined
|
|
64327
64345
|
};
|
|
64346
|
+
function setInitialState(initialSettings) {
|
|
64347
|
+
state.visualize.active = initialSettings.viewOrigins;
|
|
64348
|
+
state.catalogue.active = initialSettings.extensionCatalogue;
|
|
64349
|
+
state.catalogue.path = initialSettings.cataloguePath;
|
|
64350
|
+
}
|
|
64328
64351
|
function setState(dispatch) {
|
|
64329
64352
|
const newState = dispatch(state);
|
|
64330
64353
|
|
|
@@ -75545,7 +75568,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75545
75568
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createNavigation),
|
|
75546
75569
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createRedirect),
|
|
75547
75570
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
75548
|
-
/* harmony export */ "integrateDebugger": () => (/*
|
|
75571
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger),
|
|
75549
75572
|
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_38__.integrateEmulator),
|
|
75550
75573
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
75551
75574
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
@@ -75676,7 +75699,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75676
75699
|
};
|
|
75677
75700
|
}
|
|
75678
75701
|
|
|
75679
|
-
|
|
75702
|
+
function integrateDebugger(context, options, debug) { return (0,piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_37__.integrateDebugger)(context, options, { defaultSettings: {}, ...debug }); }
|
|
75680
75703
|
|
|
75681
75704
|
|
|
75682
75705
|
function useRouteFilter(paths) {
|
|
@@ -216667,4 +216690,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216667
216690
|
|
|
216668
216691
|
/******/ })()
|
|
216669
216692
|
;
|
|
216670
|
-
//# sourceMappingURL=index.
|
|
216693
|
+
//# sourceMappingURL=index.eab82e.js.map
|