sample-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.1f04c7.js → index.ce4c38.js} +100 -86
- package/app/index.ce4c38.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 +8 -8
- package/app/index.1f04c7.js.map +0 -1
|
@@ -9081,74 +9081,6 @@ var Localizer = /*#__PURE__*/function () {
|
|
|
9081
9081
|
|
|
9082
9082
|
/***/ }),
|
|
9083
9083
|
|
|
9084
|
-
/***/ "../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js":
|
|
9085
|
-
/*!*****************************************************************!*\
|
|
9086
|
-
!*** ../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js ***!
|
|
9087
|
-
\*****************************************************************/
|
|
9088
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9089
|
-
|
|
9090
|
-
"use strict";
|
|
9091
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9092
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9093
|
-
/* harmony export */ "freezeRouteRefresh": () => (/* binding */ freezeRouteRefresh),
|
|
9094
|
-
/* harmony export */ "useDebugRouteHandling": () => (/* binding */ useDebugRouteHandling)
|
|
9095
|
-
/* harmony export */ });
|
|
9096
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
9097
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9098
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9099
|
-
|
|
9100
|
-
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."); }
|
|
9101
|
-
|
|
9102
|
-
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); }
|
|
9103
|
-
|
|
9104
|
-
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; }
|
|
9105
|
-
|
|
9106
|
-
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; }
|
|
9107
|
-
|
|
9108
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
var debugRouteCache = {
|
|
9112
|
-
active: 0,
|
|
9113
|
-
paths: [],
|
|
9114
|
-
refresh: undefined
|
|
9115
|
-
};
|
|
9116
|
-
function freezeRouteRefresh() {
|
|
9117
|
-
debugRouteCache.active++;
|
|
9118
|
-
return function () {
|
|
9119
|
-
var _a;
|
|
9120
|
-
|
|
9121
|
-
debugRouteCache.active--;
|
|
9122
|
-
|
|
9123
|
-
if (!debugRouteCache.active) {
|
|
9124
|
-
(_a = debugRouteCache.refresh) === null || _a === void 0 ? void 0 : _a.call(debugRouteCache, function (s) {
|
|
9125
|
-
return s + 1;
|
|
9126
|
-
});
|
|
9127
|
-
}
|
|
9128
|
-
};
|
|
9129
|
-
}
|
|
9130
|
-
function useDebugRouteHandling(paths) {
|
|
9131
|
-
var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(0),
|
|
9132
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
9133
|
-
_ = _React$useState2[0],
|
|
9134
|
-
triggerChange = _React$useState2[1];
|
|
9135
|
-
|
|
9136
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
|
|
9137
|
-
debugRouteCache.refresh = triggerChange;
|
|
9138
|
-
return function () {
|
|
9139
|
-
debugRouteCache.refresh = undefined;
|
|
9140
|
-
};
|
|
9141
|
-
}, []);
|
|
9142
|
-
|
|
9143
|
-
if (!debugRouteCache.active) {
|
|
9144
|
-
debugRouteCache.paths = paths;
|
|
9145
|
-
}
|
|
9146
|
-
|
|
9147
|
-
return debugRouteCache.paths;
|
|
9148
|
-
}
|
|
9149
|
-
|
|
9150
|
-
/***/ }),
|
|
9151
|
-
|
|
9152
9084
|
/***/ "../../utilities/piral-debug-utils/esm/DebugTracker.js":
|
|
9153
9085
|
/*!*************************************************************!*\
|
|
9154
9086
|
!*** ../../utilities/piral-debug-utils/esm/DebugTracker.js ***!
|
|
@@ -9639,12 +9571,12 @@ function installPiralDebug(options) {
|
|
|
9639
9571
|
debug: debugApiVersion,
|
|
9640
9572
|
instance: {
|
|
9641
9573
|
name: "sample-piral",
|
|
9642
|
-
version: "0.15.
|
|
9574
|
+
version: "0.15.10-beta.5447",
|
|
9643
9575
|
dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
|
|
9644
9576
|
},
|
|
9645
9577
|
build: {
|
|
9646
|
-
date: "2023-04-
|
|
9647
|
-
cli: "0.15.
|
|
9578
|
+
date: "2023-04-13T20:14:31.089Z",
|
|
9579
|
+
cli: "0.15.10-beta.5447",
|
|
9648
9580
|
compat: "0.15"
|
|
9649
9581
|
}
|
|
9650
9582
|
};
|
|
@@ -9983,10 +9915,9 @@ function decycle(obj) {
|
|
|
9983
9915
|
"use strict";
|
|
9984
9916
|
__webpack_require__.r(__webpack_exports__);
|
|
9985
9917
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9986
|
-
/* harmony export */ "debugRouteFilter": () => (/* binding */ debugRouteFilter),
|
|
9987
9918
|
/* harmony export */ "installPiletEmulator": () => (/* binding */ installPiletEmulator)
|
|
9988
9919
|
/* harmony export */ });
|
|
9989
|
-
/* harmony import */ var
|
|
9920
|
+
/* harmony import */ var _routeRefresh__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./routeRefresh */ "../../utilities/piral-debug-utils/esm/routeRefresh.js");
|
|
9990
9921
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9991
9922
|
|
|
9992
9923
|
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."); }
|
|
@@ -10000,22 +9931,21 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10000
9931
|
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; }
|
|
10001
9932
|
|
|
10002
9933
|
|
|
10003
|
-
var debugRouteFilter = _DebugRouteSwitch__WEBPACK_IMPORTED_MODULE_0__.useDebugRouteHandling;
|
|
10004
9934
|
function installPiletEmulator(requestPilets, options) {
|
|
10005
9935
|
var addPilet = options.addPilet,
|
|
10006
9936
|
removePilet = options.removePilet,
|
|
10007
9937
|
integrate = options.integrate,
|
|
10008
9938
|
_options$piletApiFall = options.piletApiFallback,
|
|
10009
|
-
piletApiFallback = _options$piletApiFall === void 0 ? '/$pilet-api' : _options$piletApiFall;
|
|
10010
|
-
|
|
10011
|
-
|
|
9939
|
+
piletApiFallback = _options$piletApiFall === void 0 ? '/$pilet-api' : _options$piletApiFall;
|
|
9940
|
+
integrate(function () {
|
|
9941
|
+
// check if pilets should be loaded
|
|
9942
|
+
var loadPilets = sessionStorage.getItem('dbg:load-pilets') === 'on';
|
|
10012
9943
|
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
9944
|
+
var noPilets = function noPilets() {
|
|
9945
|
+
return Promise.resolve([]);
|
|
9946
|
+
};
|
|
10016
9947
|
|
|
10017
|
-
|
|
10018
|
-
integrate(function () {
|
|
9948
|
+
var requester = loadPilets ? requestPilets : noPilets;
|
|
10019
9949
|
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
|
|
10020
9950
|
|
|
10021
9951
|
var piletApi = window['dbg:pilet-api'] || piletApiFallback; // either take a full URI or make it an absolute path relative to the current origin
|
|
@@ -10045,7 +9975,7 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
10045
9975
|
|
|
10046
9976
|
timeoutCache[name] = setTimeout(function () {
|
|
10047
9977
|
// we should make sure to only refresh the page / router if pilets have been loaded
|
|
10048
|
-
var unfreeze = (0,
|
|
9978
|
+
var unfreeze = (0,_routeRefresh__WEBPACK_IMPORTED_MODULE_0__.freezeRouteRefresh)(); // tear down pilet
|
|
10049
9979
|
|
|
10050
9980
|
removePilet(meta.name).then(function () {
|
|
10051
9981
|
var clearConsole = sessionStorage.getItem('dbg:clear-console') === 'on';
|
|
@@ -10085,6 +10015,40 @@ function installPiletEmulator(requestPilets, options) {
|
|
|
10085
10015
|
|
|
10086
10016
|
/***/ }),
|
|
10087
10017
|
|
|
10018
|
+
/***/ "../../utilities/piral-debug-utils/esm/routeRefresh.js":
|
|
10019
|
+
/*!*************************************************************!*\
|
|
10020
|
+
!*** ../../utilities/piral-debug-utils/esm/routeRefresh.js ***!
|
|
10021
|
+
\*************************************************************/
|
|
10022
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10023
|
+
|
|
10024
|
+
"use strict";
|
|
10025
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10026
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10027
|
+
/* harmony export */ "debugRouteCache": () => (/* binding */ debugRouteCache),
|
|
10028
|
+
/* harmony export */ "freezeRouteRefresh": () => (/* binding */ freezeRouteRefresh)
|
|
10029
|
+
/* harmony export */ });
|
|
10030
|
+
var debugRouteCache = {
|
|
10031
|
+
active: 0,
|
|
10032
|
+
paths: [],
|
|
10033
|
+
refresh: undefined
|
|
10034
|
+
};
|
|
10035
|
+
function freezeRouteRefresh() {
|
|
10036
|
+
debugRouteCache.active++;
|
|
10037
|
+
return function () {
|
|
10038
|
+
var _a;
|
|
10039
|
+
|
|
10040
|
+
debugRouteCache.active--;
|
|
10041
|
+
|
|
10042
|
+
if (!debugRouteCache.active) {
|
|
10043
|
+
(_a = debugRouteCache.refresh) === null || _a === void 0 ? void 0 : _a.call(debugRouteCache, function (s) {
|
|
10044
|
+
return s + 1;
|
|
10045
|
+
});
|
|
10046
|
+
}
|
|
10047
|
+
};
|
|
10048
|
+
}
|
|
10049
|
+
|
|
10050
|
+
/***/ }),
|
|
10051
|
+
|
|
10088
10052
|
/***/ "../../utilities/piral-debug-utils/esm/state.js":
|
|
10089
10053
|
/*!******************************************************!*\
|
|
10090
10054
|
!*** ../../utilities/piral-debug-utils/esm/state.js ***!
|
|
@@ -10281,6 +10245,56 @@ function useDebugState(select) {
|
|
|
10281
10245
|
|
|
10282
10246
|
/***/ }),
|
|
10283
10247
|
|
|
10248
|
+
/***/ "../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js":
|
|
10249
|
+
/*!********************************************************************!*\
|
|
10250
|
+
!*** ../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js ***!
|
|
10251
|
+
\********************************************************************/
|
|
10252
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10253
|
+
|
|
10254
|
+
"use strict";
|
|
10255
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10256
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10257
|
+
/* harmony export */ "useDebugRouteFilter": () => (/* binding */ useDebugRouteFilter)
|
|
10258
|
+
/* harmony export */ });
|
|
10259
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
10260
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10261
|
+
/* harmony import */ var _routeRefresh__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./routeRefresh */ "../../utilities/piral-debug-utils/esm/routeRefresh.js");
|
|
10262
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10263
|
+
|
|
10264
|
+
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."); }
|
|
10265
|
+
|
|
10266
|
+
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); }
|
|
10267
|
+
|
|
10268
|
+
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; }
|
|
10269
|
+
|
|
10270
|
+
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; }
|
|
10271
|
+
|
|
10272
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10273
|
+
|
|
10274
|
+
|
|
10275
|
+
|
|
10276
|
+
function useDebugRouteFilter(paths) {
|
|
10277
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
|
|
10278
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10279
|
+
_ = _useState2[0],
|
|
10280
|
+
triggerChange = _useState2[1];
|
|
10281
|
+
|
|
10282
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
10283
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = triggerChange;
|
|
10284
|
+
return function () {
|
|
10285
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = undefined;
|
|
10286
|
+
};
|
|
10287
|
+
}, []);
|
|
10288
|
+
|
|
10289
|
+
if (!_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.active) {
|
|
10290
|
+
_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.paths = paths;
|
|
10291
|
+
}
|
|
10292
|
+
|
|
10293
|
+
return _routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.paths;
|
|
10294
|
+
}
|
|
10295
|
+
|
|
10296
|
+
/***/ }),
|
|
10297
|
+
|
|
10284
10298
|
/***/ "../../utilities/piral-hooks-utils/esm/hooks/onClickOutside.js":
|
|
10285
10299
|
/*!*********************************************************************!*\
|
|
10286
10300
|
!*** ../../utilities/piral-hooks-utils/esm/hooks/onClickOutside.js ***!
|
|
@@ -14375,7 +14389,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14375
14389
|
/* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
14376
14390
|
/* harmony import */ var piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/tools/debugger */ "../../framework/piral-core/esm/tools/debugger.js");
|
|
14377
14391
|
/* harmony import */ var piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-core/_/tools/emulator */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
14378
|
-
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/
|
|
14392
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/useDebugRouteFilter.js");
|
|
14379
14393
|
|
|
14380
14394
|
|
|
14381
14395
|
|
|
@@ -14438,7 +14452,7 @@ function integrateDebugger(context, options, debug) { return (0,piral_core_tools
|
|
|
14438
14452
|
|
|
14439
14453
|
;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.useCurrentNavigation)();
|
|
14440
14454
|
|
|
14441
|
-
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__.
|
|
14455
|
+
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__.useDebugRouteFilter)(paths);
|
|
14442
14456
|
}
|
|
14443
14457
|
|
|
14444
14458
|
|
|
@@ -66428,4 +66442,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
|
|
|
66428
66442
|
|
|
66429
66443
|
/******/ })()
|
|
66430
66444
|
;
|
|
66431
|
-
//# sourceMappingURL=index.
|
|
66445
|
+
//# sourceMappingURL=index.ce4c38.js.map
|