minimal-piral 0.15.9-beta.5437 → 0.15.10-beta.5447
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.f09f08.js → index.cb00ae.js} +100 -86
- package/app/index.cb00ae.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.f09f08.js.map +0 -1
|
@@ -6118,74 +6118,6 @@ function withRoute(path, component) {
|
|
|
6118
6118
|
|
|
6119
6119
|
/***/ }),
|
|
6120
6120
|
|
|
6121
|
-
/***/ "../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js":
|
|
6122
|
-
/*!*****************************************************************!*\
|
|
6123
|
-
!*** ../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js ***!
|
|
6124
|
-
\*****************************************************************/
|
|
6125
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6126
|
-
|
|
6127
|
-
"use strict";
|
|
6128
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6129
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6130
|
-
/* harmony export */ "freezeRouteRefresh": () => (/* binding */ freezeRouteRefresh),
|
|
6131
|
-
/* harmony export */ "useDebugRouteHandling": () => (/* binding */ useDebugRouteHandling)
|
|
6132
|
-
/* harmony export */ });
|
|
6133
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
6134
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
6135
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6136
|
-
|
|
6137
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6138
|
-
|
|
6139
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6140
|
-
|
|
6141
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6142
|
-
|
|
6143
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
6144
|
-
|
|
6145
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
var debugRouteCache = {
|
|
6149
|
-
active: 0,
|
|
6150
|
-
paths: [],
|
|
6151
|
-
refresh: undefined
|
|
6152
|
-
};
|
|
6153
|
-
function freezeRouteRefresh() {
|
|
6154
|
-
debugRouteCache.active++;
|
|
6155
|
-
return function () {
|
|
6156
|
-
var _a;
|
|
6157
|
-
|
|
6158
|
-
debugRouteCache.active--;
|
|
6159
|
-
|
|
6160
|
-
if (!debugRouteCache.active) {
|
|
6161
|
-
(_a = debugRouteCache.refresh) === null || _a === void 0 ? void 0 : _a.call(debugRouteCache, function (s) {
|
|
6162
|
-
return s + 1;
|
|
6163
|
-
});
|
|
6164
|
-
}
|
|
6165
|
-
};
|
|
6166
|
-
}
|
|
6167
|
-
function useDebugRouteHandling(paths) {
|
|
6168
|
-
var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(0),
|
|
6169
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6170
|
-
_ = _React$useState2[0],
|
|
6171
|
-
triggerChange = _React$useState2[1];
|
|
6172
|
-
|
|
6173
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
|
|
6174
|
-
debugRouteCache.refresh = triggerChange;
|
|
6175
|
-
return function () {
|
|
6176
|
-
debugRouteCache.refresh = undefined;
|
|
6177
|
-
};
|
|
6178
|
-
}, []);
|
|
6179
|
-
|
|
6180
|
-
if (!debugRouteCache.active) {
|
|
6181
|
-
debugRouteCache.paths = paths;
|
|
6182
|
-
}
|
|
6183
|
-
|
|
6184
|
-
return debugRouteCache.paths;
|
|
6185
|
-
}
|
|
6186
|
-
|
|
6187
|
-
/***/ }),
|
|
6188
|
-
|
|
6189
6121
|
/***/ "../../utilities/piral-debug-utils/esm/DebugTracker.js":
|
|
6190
6122
|
/*!*************************************************************!*\
|
|
6191
6123
|
!*** ../../utilities/piral-debug-utils/esm/DebugTracker.js ***!
|
|
@@ -6676,12 +6608,12 @@ function installPiralDebug(options) {
|
|
|
6676
6608
|
debug: debugApiVersion,
|
|
6677
6609
|
instance: {
|
|
6678
6610
|
name: "minimal-piral",
|
|
6679
|
-
version: "0.15.
|
|
6611
|
+
version: "0.15.10-beta.5447",
|
|
6680
6612
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
6681
6613
|
},
|
|
6682
6614
|
build: {
|
|
6683
|
-
date: "2023-04-
|
|
6684
|
-
cli: "0.15.
|
|
6615
|
+
date: "2023-04-13T20:14:31.399Z",
|
|
6616
|
+
cli: "0.15.10-beta.5447",
|
|
6685
6617
|
compat: "0.15"
|
|
6686
6618
|
}
|
|
6687
6619
|
};
|
|
@@ -7020,10 +6952,9 @@ function decycle(obj) {
|
|
|
7020
6952
|
"use strict";
|
|
7021
6953
|
__webpack_require__.r(__webpack_exports__);
|
|
7022
6954
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7023
|
-
/* harmony export */ "debugRouteFilter": () => (/* binding */ debugRouteFilter),
|
|
7024
6955
|
/* harmony export */ "installPiletEmulator": () => (/* binding */ installPiletEmulator)
|
|
7025
6956
|
/* harmony export */ });
|
|
7026
|
-
/* harmony import */ var
|
|
6957
|
+
/* harmony import */ var _routeRefresh__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./routeRefresh */ "../../utilities/piral-debug-utils/esm/routeRefresh.js");
|
|
7027
6958
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7028
6959
|
|
|
7029
6960
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -7037,22 +6968,21 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
7037
6968
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7038
6969
|
|
|
7039
6970
|
|
|
7040
|
-
var debugRouteFilter = _DebugRouteSwitch__WEBPACK_IMPORTED_MODULE_0__.useDebugRouteHandling;
|
|
7041
6971
|
function installPiletEmulator(requestPilets, options) {
|
|
7042
6972
|
var addPilet = options.addPilet,
|
|
7043
6973
|
removePilet = options.removePilet,
|
|
7044
6974
|
integrate = options.integrate,
|
|
7045
6975
|
_options$piletApiFall = options.piletApiFallback,
|
|
7046
|
-
piletApiFallback = _options$piletApiFall === void 0 ? '/$pilet-api' : _options$piletApiFall;
|
|
7047
|
-
|
|
7048
|
-
|
|
6976
|
+
piletApiFallback = _options$piletApiFall === void 0 ? '/$pilet-api' : _options$piletApiFall;
|
|
6977
|
+
integrate(function () {
|
|
6978
|
+
// check if pilets should be loaded
|
|
6979
|
+
var loadPilets = sessionStorage.getItem('dbg:load-pilets') === 'on';
|
|
7049
6980
|
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
6981
|
+
var noPilets = function noPilets() {
|
|
6982
|
+
return Promise.resolve([]);
|
|
6983
|
+
};
|
|
7053
6984
|
|
|
7054
|
-
|
|
7055
|
-
integrate(function () {
|
|
6985
|
+
var requester = loadPilets ? requestPilets : noPilets;
|
|
7056
6986
|
var promise = requester(); // the window['dbg:pilet-api'] should point to an API address used as a proxy, fall back to '/$pilet-api' if unavailable
|
|
7057
6987
|
|
|
7058
6988
|
var piletApi = window['dbg:pilet-api'] || piletApiFallback; // either take a full URI or make it an absolute path relative to the current origin
|
|
@@ -7082,7 +7012,7 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
7082
7012
|
|
|
7083
7013
|
timeoutCache[name] = setTimeout(function () {
|
|
7084
7014
|
// we should make sure to only refresh the page / router if pilets have been loaded
|
|
7085
|
-
var unfreeze = (0,
|
|
7015
|
+
var unfreeze = (0,_routeRefresh__WEBPACK_IMPORTED_MODULE_0__.freezeRouteRefresh)(); // tear down pilet
|
|
7086
7016
|
|
|
7087
7017
|
removePilet(meta.name).then(function () {
|
|
7088
7018
|
var clearConsole = sessionStorage.getItem('dbg:clear-console') === 'on';
|
|
@@ -7122,6 +7052,40 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
7122
7052
|
|
|
7123
7053
|
/***/ }),
|
|
7124
7054
|
|
|
7055
|
+
/***/ "../../utilities/piral-debug-utils/esm/routeRefresh.js":
|
|
7056
|
+
/*!*************************************************************!*\
|
|
7057
|
+
!*** ../../utilities/piral-debug-utils/esm/routeRefresh.js ***!
|
|
7058
|
+
\*************************************************************/
|
|
7059
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7060
|
+
|
|
7061
|
+
"use strict";
|
|
7062
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7063
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7064
|
+
/* harmony export */ "debugRouteCache": () => (/* binding */ debugRouteCache),
|
|
7065
|
+
/* harmony export */ "freezeRouteRefresh": () => (/* binding */ freezeRouteRefresh)
|
|
7066
|
+
/* harmony export */ });
|
|
7067
|
+
var debugRouteCache = {
|
|
7068
|
+
active: 0,
|
|
7069
|
+
paths: [],
|
|
7070
|
+
refresh: undefined
|
|
7071
|
+
};
|
|
7072
|
+
function freezeRouteRefresh() {
|
|
7073
|
+
debugRouteCache.active++;
|
|
7074
|
+
return function () {
|
|
7075
|
+
var _a;
|
|
7076
|
+
|
|
7077
|
+
debugRouteCache.active--;
|
|
7078
|
+
|
|
7079
|
+
if (!debugRouteCache.active) {
|
|
7080
|
+
(_a = debugRouteCache.refresh) === null || _a === void 0 ? void 0 : _a.call(debugRouteCache, function (s) {
|
|
7081
|
+
return s + 1;
|
|
7082
|
+
});
|
|
7083
|
+
}
|
|
7084
|
+
};
|
|
7085
|
+
}
|
|
7086
|
+
|
|
7087
|
+
/***/ }),
|
|
7088
|
+
|
|
7125
7089
|
/***/ "../../utilities/piral-debug-utils/esm/state.js":
|
|
7126
7090
|
/*!******************************************************!*\
|
|
7127
7091
|
!*** ../../utilities/piral-debug-utils/esm/state.js ***!
|
|
@@ -7318,6 +7282,56 @@ function useDebugState(select) {
|
|
|
7318
7282
|
|
|
7319
7283
|
/***/ }),
|
|
7320
7284
|
|
|
7285
|
+
/***/ "../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js":
|
|
7286
|
+
/*!********************************************************************!*\
|
|
7287
|
+
!*** ../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js ***!
|
|
7288
|
+
\********************************************************************/
|
|
7289
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7290
|
+
|
|
7291
|
+
"use strict";
|
|
7292
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7293
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7294
|
+
/* harmony export */ "useDebugRouteFilter": () => (/* binding */ useDebugRouteFilter)
|
|
7295
|
+
/* harmony export */ });
|
|
7296
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
7297
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7298
|
+
/* harmony import */ var _routeRefresh__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./routeRefresh */ "../../utilities/piral-debug-utils/esm/routeRefresh.js");
|
|
7299
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7300
|
+
|
|
7301
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7302
|
+
|
|
7303
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7304
|
+
|
|
7305
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7306
|
+
|
|
7307
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
7308
|
+
|
|
7309
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7310
|
+
|
|
7311
|
+
|
|
7312
|
+
|
|
7313
|
+
function useDebugRouteFilter(paths) {
|
|
7314
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
|
|
7315
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7316
|
+
_ = _useState2[0],
|
|
7317
|
+
triggerChange = _useState2[1];
|
|
7318
|
+
|
|
7319
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
7320
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = triggerChange;
|
|
7321
|
+
return function () {
|
|
7322
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = undefined;
|
|
7323
|
+
};
|
|
7324
|
+
}, []);
|
|
7325
|
+
|
|
7326
|
+
if (!_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.active) {
|
|
7327
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.paths = paths;
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
return _routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.paths;
|
|
7331
|
+
}
|
|
7332
|
+
|
|
7333
|
+
/***/ }),
|
|
7334
|
+
|
|
7321
7335
|
/***/ "../../../node_modules/history/esm/history.js":
|
|
7322
7336
|
/*!****************************************************!*\
|
|
7323
7337
|
!*** ../../../node_modules/history/esm/history.js ***!
|
|
@@ -8722,7 +8736,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8722
8736
|
/* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
8723
8737
|
/* harmony import */ var piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/tools/debugger */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
8724
8738
|
/* harmony import */ var piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/tools/emulator */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
8725
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/
|
|
8739
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js");
|
|
8726
8740
|
|
|
8727
8741
|
|
|
8728
8742
|
|
|
@@ -8784,7 +8798,7 @@ function integrateDebugger(context, options, debug) { return (0,piral_core_tools
|
|
|
8784
8798
|
|
|
8785
8799
|
;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useCurrentNavigation)();
|
|
8786
8800
|
|
|
8787
|
-
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__.
|
|
8801
|
+
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__.useDebugRouteFilter)(paths);
|
|
8788
8802
|
}
|
|
8789
8803
|
|
|
8790
8804
|
|
|
@@ -45641,4 +45655,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45641
45655
|
|
|
45642
45656
|
/******/ })()
|
|
45643
45657
|
;
|
|
45644
|
-
//# sourceMappingURL=index.
|
|
45658
|
+
//# sourceMappingURL=index.cb00ae.js.map
|