minimal-piral 0.15.9-beta.5384 → 0.15.9-beta.5403
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.4a1824.js → index.2f227a.js} +90 -32
- package/app/index.2f227a.js.map +1 -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 +5 -5
- package/app/index.4a1824.js.map +0 -1
|
@@ -4478,7 +4478,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4478
4478
|
/* harmony export */ });
|
|
4479
4479
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
4480
4480
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
4481
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/
|
|
4481
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
4482
4482
|
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
4483
4483
|
|
|
4484
4484
|
|
|
@@ -4937,8 +4937,11 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
4937
4937
|
_this.update = _utils__WEBPACK_IMPORTED_MODULE_0__.noop;
|
|
4938
4938
|
_this.props = {
|
|
4939
4939
|
name: _this.getAttribute('name'),
|
|
4940
|
+
emptySkipsRender: typeof _this.getAttribute('empty-skips-render') === 'string',
|
|
4940
4941
|
params: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(_this.getAttribute('params')),
|
|
4941
4942
|
empty: undefined,
|
|
4943
|
+
order: undefined,
|
|
4944
|
+
render: undefined,
|
|
4942
4945
|
children: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.reactifyContent)(_this.childNodes)
|
|
4943
4946
|
};
|
|
4944
4947
|
return _this;
|
|
@@ -4962,6 +4965,24 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
4962
4965
|
this.props.name = value;
|
|
4963
4966
|
this.update(this.props);
|
|
4964
4967
|
}
|
|
4968
|
+
}, {
|
|
4969
|
+
key: "order",
|
|
4970
|
+
get: function get() {
|
|
4971
|
+
return this.props.order;
|
|
4972
|
+
},
|
|
4973
|
+
set: function set(value) {
|
|
4974
|
+
this.props.order = value;
|
|
4975
|
+
this.update(this.props);
|
|
4976
|
+
}
|
|
4977
|
+
}, {
|
|
4978
|
+
key: "render",
|
|
4979
|
+
get: function get() {
|
|
4980
|
+
return this.props.render;
|
|
4981
|
+
},
|
|
4982
|
+
set: function set(value) {
|
|
4983
|
+
this.props.render = value;
|
|
4984
|
+
this.update(this.props);
|
|
4985
|
+
}
|
|
4965
4986
|
}, {
|
|
4966
4987
|
key: "empty",
|
|
4967
4988
|
get: function get() {
|
|
@@ -4971,6 +4992,15 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
4971
4992
|
this.props.empty = value;
|
|
4972
4993
|
this.update(this.props);
|
|
4973
4994
|
}
|
|
4995
|
+
}, {
|
|
4996
|
+
key: "emptySkipsRender",
|
|
4997
|
+
get: function get() {
|
|
4998
|
+
return this.props.emptySkipsRender;
|
|
4999
|
+
},
|
|
5000
|
+
set: function set(value) {
|
|
5001
|
+
this.props.emptySkipsRender = value;
|
|
5002
|
+
this.update(this.props);
|
|
5003
|
+
}
|
|
4974
5004
|
}, {
|
|
4975
5005
|
key: "connectedCallback",
|
|
4976
5006
|
value: function connectedCallback() {
|
|
@@ -5004,12 +5034,16 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
5004
5034
|
case 'params':
|
|
5005
5035
|
this.params = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(newValue);
|
|
5006
5036
|
break;
|
|
5037
|
+
|
|
5038
|
+
case 'empty-skips-render':
|
|
5039
|
+
this.params = typeof newValue === 'string';
|
|
5040
|
+
break;
|
|
5007
5041
|
}
|
|
5008
5042
|
}
|
|
5009
5043
|
}], [{
|
|
5010
5044
|
key: "observedAttributes",
|
|
5011
5045
|
get: function get() {
|
|
5012
|
-
return ['name', 'params'];
|
|
5046
|
+
return ['name', 'params', 'empty-skips-render'];
|
|
5013
5047
|
}
|
|
5014
5048
|
}]);
|
|
5015
5049
|
|
|
@@ -6406,16 +6440,20 @@ function installPiralDebug(options) {
|
|
|
6406
6440
|
addPilet = options.addPilet,
|
|
6407
6441
|
navigate = options.navigate,
|
|
6408
6442
|
_options$customSettin = options.customSettings,
|
|
6409
|
-
customSettings = _options$customSettin === void 0 ? {} : _options$customSettin
|
|
6443
|
+
customSettings = _options$customSettin === void 0 ? {} : _options$customSettin,
|
|
6444
|
+
_options$defaultSetti = options.defaultSettings,
|
|
6445
|
+
defaultSettings = _options$defaultSetti === void 0 ? {} : _options$defaultSetti;
|
|
6410
6446
|
var events = [];
|
|
6411
6447
|
var legacyBrowser = !new Error().stack;
|
|
6412
|
-
var
|
|
6448
|
+
var initialSettings = (0,_state__WEBPACK_IMPORTED_MODULE_0__.getInitialSettings)(defaultSettings);
|
|
6449
|
+
var excludedRoutes = [initialSettings.cataloguePath];
|
|
6413
6450
|
var selfSource = 'piral-debug-api';
|
|
6414
6451
|
var debugApiVersion = 'v1';
|
|
6415
6452
|
var setValue = _state__WEBPACK_IMPORTED_MODULE_0__.initialSetter;
|
|
6453
|
+
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setInitialState)(initialSettings);
|
|
6416
6454
|
var settings = Object.assign(Object.assign({}, customSettings), {
|
|
6417
6455
|
viewState: {
|
|
6418
|
-
value:
|
|
6456
|
+
value: initialSettings.viewState,
|
|
6419
6457
|
type: 'boolean',
|
|
6420
6458
|
label: 'State container logging',
|
|
6421
6459
|
onChange: function onChange(value) {
|
|
@@ -6423,7 +6461,7 @@ function installPiralDebug(options) {
|
|
|
6423
6461
|
}
|
|
6424
6462
|
},
|
|
6425
6463
|
loadPilets: {
|
|
6426
|
-
value:
|
|
6464
|
+
value: initialSettings.loadPilets,
|
|
6427
6465
|
type: 'boolean',
|
|
6428
6466
|
label: 'Load available pilets',
|
|
6429
6467
|
onChange: function onChange(value) {
|
|
@@ -6431,7 +6469,7 @@ function installPiralDebug(options) {
|
|
|
6431
6469
|
}
|
|
6432
6470
|
},
|
|
6433
6471
|
hardRefresh: {
|
|
6434
|
-
value:
|
|
6472
|
+
value: initialSettings.hardRefresh,
|
|
6435
6473
|
type: 'boolean',
|
|
6436
6474
|
label: 'Full refresh on change',
|
|
6437
6475
|
onChange: function onChange(value) {
|
|
@@ -6439,7 +6477,7 @@ function installPiralDebug(options) {
|
|
|
6439
6477
|
}
|
|
6440
6478
|
},
|
|
6441
6479
|
viewOrigins: {
|
|
6442
|
-
value:
|
|
6480
|
+
value: initialSettings.viewOrigins,
|
|
6443
6481
|
type: 'boolean',
|
|
6444
6482
|
label: 'Visualize component origins',
|
|
6445
6483
|
onChange: function onChange(value, prev) {
|
|
@@ -6451,7 +6489,7 @@ function installPiralDebug(options) {
|
|
|
6451
6489
|
}
|
|
6452
6490
|
},
|
|
6453
6491
|
extensionCatalogue: {
|
|
6454
|
-
value:
|
|
6492
|
+
value: initialSettings.extensionCatalogue,
|
|
6455
6493
|
type: 'boolean',
|
|
6456
6494
|
label: 'Enable extension catalogue',
|
|
6457
6495
|
onChange: function onChange(value) {
|
|
@@ -6459,7 +6497,7 @@ function installPiralDebug(options) {
|
|
|
6459
6497
|
}
|
|
6460
6498
|
},
|
|
6461
6499
|
clearConsole: {
|
|
6462
|
-
value:
|
|
6500
|
+
value: initialSettings.clearConsole,
|
|
6463
6501
|
type: 'boolean',
|
|
6464
6502
|
label: 'Clear console during HMR',
|
|
6465
6503
|
onChange: function onChange(value) {
|
|
@@ -6467,7 +6505,7 @@ function installPiralDebug(options) {
|
|
|
6467
6505
|
}
|
|
6468
6506
|
},
|
|
6469
6507
|
persistSettings: {
|
|
6470
|
-
value:
|
|
6508
|
+
value: initialSettings.persistSettings,
|
|
6471
6509
|
type: 'boolean',
|
|
6472
6510
|
label: 'Persist settings',
|
|
6473
6511
|
onChange: function onChange(value) {
|
|
@@ -6638,12 +6676,12 @@ function installPiralDebug(options) {
|
|
|
6638
6676
|
debug: debugApiVersion,
|
|
6639
6677
|
instance: {
|
|
6640
6678
|
name: "minimal-piral",
|
|
6641
|
-
version: "0.15.9-beta.
|
|
6679
|
+
version: "0.15.9-beta.5403",
|
|
6642
6680
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
6643
6681
|
},
|
|
6644
6682
|
build: {
|
|
6645
|
-
date: "2023-
|
|
6646
|
-
cli: "0.15.9-beta.
|
|
6683
|
+
date: "2023-04-04T17:10:52.847Z",
|
|
6684
|
+
cli: "0.15.9-beta.5403",
|
|
6647
6685
|
compat: "0.15"
|
|
6648
6686
|
}
|
|
6649
6687
|
};
|
|
@@ -6825,7 +6863,7 @@ function installPiralDebug(options) {
|
|
|
6825
6863
|
components: {
|
|
6826
6864
|
Debug: _DebugTracker__WEBPACK_IMPORTED_MODULE_2__.DebugTracker
|
|
6827
6865
|
},
|
|
6828
|
-
routes: _defineProperty({},
|
|
6866
|
+
routes: _defineProperty({}, initialSettings.cataloguePath, _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__.ExtensionCatalogue),
|
|
6829
6867
|
wrappers: {
|
|
6830
6868
|
'*': _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__.VisualizationWrapper
|
|
6831
6869
|
},
|
|
@@ -7095,10 +7133,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7095
7133
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7096
7134
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
7097
7135
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
7136
|
+
/* harmony export */ "getInitialSettings": () => (/* binding */ getInitialSettings),
|
|
7098
7137
|
/* harmony export */ "getState": () => (/* binding */ getState),
|
|
7099
7138
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
7100
|
-
/* harmony export */ "initialSettings": () => (/* binding */ initialSettings),
|
|
7101
7139
|
/* harmony export */ "navigate": () => (/* binding */ navigate),
|
|
7140
|
+
/* harmony export */ "setInitialState": () => (/* binding */ setInitialState),
|
|
7102
7141
|
/* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
|
|
7103
7142
|
/* harmony export */ "setState": () => (/* binding */ setState),
|
|
7104
7143
|
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
@@ -7143,6 +7182,18 @@ var persistentSetter = function persistentSetter(name, value) {
|
|
|
7143
7182
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
7144
7183
|
};
|
|
7145
7184
|
|
|
7185
|
+
function getValue(key, defaultValue, fallbackValue) {
|
|
7186
|
+
var value = sessionStorage.getItem(key);
|
|
7187
|
+
|
|
7188
|
+
if (['on', 'off'].includes(value)) {
|
|
7189
|
+
return value === 'on';
|
|
7190
|
+
} else if (typeof defaultValue === 'boolean') {
|
|
7191
|
+
return defaultValue;
|
|
7192
|
+
} else {
|
|
7193
|
+
return fallbackValue;
|
|
7194
|
+
}
|
|
7195
|
+
}
|
|
7196
|
+
|
|
7146
7197
|
if (persistSettings) {
|
|
7147
7198
|
try {
|
|
7148
7199
|
var settings = JSON.parse(localStorage.getItem(persistKey));
|
|
@@ -7179,16 +7230,18 @@ function disablePersistance() {
|
|
|
7179
7230
|
return defaultSetter;
|
|
7180
7231
|
}
|
|
7181
7232
|
var initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7233
|
+
function getInitialSettings(defaultValues) {
|
|
7234
|
+
return {
|
|
7235
|
+
viewState: getValue(settingsKeys.viewState, defaultValues.viewState, true),
|
|
7236
|
+
loadPilets: getValue(settingsKeys.loadPilets, defaultValues.loadPilets, false),
|
|
7237
|
+
hardRefresh: getValue(settingsKeys.hardRefresh, defaultValues.hardRefresh, false),
|
|
7238
|
+
viewOrigins: getValue(settingsKeys.viewOrigins, defaultValues.viewOrigins, false),
|
|
7239
|
+
extensionCatalogue: getValue(settingsKeys.extensionCatalogue, defaultValues.extensionCatalogue, true),
|
|
7240
|
+
clearConsole: getValue(settingsKeys.clearConsole, defaultValues.clearConsole, false),
|
|
7241
|
+
persistSettings: persistSettings,
|
|
7242
|
+
cataloguePath: '/$debug-extension-catalogue'
|
|
7243
|
+
};
|
|
7244
|
+
}
|
|
7192
7245
|
var listeners = [];
|
|
7193
7246
|
var _navigate = undefined;
|
|
7194
7247
|
function setNavigate(navigate) {
|
|
@@ -7199,15 +7252,20 @@ function navigate(path, state) {
|
|
|
7199
7252
|
}
|
|
7200
7253
|
var state = {
|
|
7201
7254
|
visualize: {
|
|
7202
|
-
active:
|
|
7255
|
+
active: false,
|
|
7203
7256
|
force: false
|
|
7204
7257
|
},
|
|
7205
7258
|
catalogue: {
|
|
7206
|
-
active:
|
|
7207
|
-
path:
|
|
7259
|
+
active: false,
|
|
7260
|
+
path: ''
|
|
7208
7261
|
},
|
|
7209
7262
|
route: undefined
|
|
7210
7263
|
};
|
|
7264
|
+
function setInitialState(initialSettings) {
|
|
7265
|
+
state.visualize.active = initialSettings.viewOrigins;
|
|
7266
|
+
state.catalogue.active = initialSettings.extensionCatalogue;
|
|
7267
|
+
state.catalogue.path = initialSettings.cataloguePath;
|
|
7268
|
+
}
|
|
7211
7269
|
function setState(dispatch) {
|
|
7212
7270
|
var newState = dispatch(state);
|
|
7213
7271
|
|
|
@@ -8644,7 +8702,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8644
8702
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createNavigation),
|
|
8645
8703
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createRedirect),
|
|
8646
8704
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
8647
|
-
/* harmony export */ "integrateDebugger": () => (/*
|
|
8705
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger),
|
|
8648
8706
|
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_12__.integrateEmulator),
|
|
8649
8707
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
8650
8708
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
@@ -8719,7 +8777,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8719
8777
|
};
|
|
8720
8778
|
}
|
|
8721
8779
|
|
|
8722
|
-
|
|
8780
|
+
function integrateDebugger(context, options, debug) { return (0,piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_11__.integrateDebugger)(context, options, { defaultSettings: {}, ...debug }); }
|
|
8723
8781
|
|
|
8724
8782
|
|
|
8725
8783
|
function useRouteFilter(paths) {
|
|
@@ -45583,4 +45641,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45583
45641
|
|
|
45584
45642
|
/******/ })()
|
|
45585
45643
|
;
|
|
45586
|
-
//# sourceMappingURL=index.
|
|
45644
|
+
//# sourceMappingURL=index.2f227a.js.map
|