sample-piral 0.14.10-beta.3661 → 0.14.11-beta.3683
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.d.ts +28 -0
- package/app/{index.3cdf78.js → index.db4399.js} +29 -12
- package/app/index.db4399.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 +7 -7
- package/app/index.3cdf78.js.map +0 -1
package/app/index.d.ts
CHANGED
|
@@ -1828,6 +1828,10 @@ declare module "sample-piral" {
|
|
|
1828
1828
|
* The provided error details.
|
|
1829
1829
|
*/
|
|
1830
1830
|
error: any;
|
|
1831
|
+
/**
|
|
1832
|
+
* The name of the pilet emitting the error.
|
|
1833
|
+
*/
|
|
1834
|
+
pilet?: string;
|
|
1831
1835
|
}
|
|
1832
1836
|
|
|
1833
1837
|
/**
|
|
@@ -1856,6 +1860,10 @@ declare module "sample-piral" {
|
|
|
1856
1860
|
* The provided error details.
|
|
1857
1861
|
*/
|
|
1858
1862
|
error: any;
|
|
1863
|
+
/**
|
|
1864
|
+
* The name of the pilet emitting the error.
|
|
1865
|
+
*/
|
|
1866
|
+
pilet?: string;
|
|
1859
1867
|
}
|
|
1860
1868
|
|
|
1861
1869
|
/**
|
|
@@ -1880,6 +1888,10 @@ declare module "sample-piral" {
|
|
|
1880
1888
|
* The provided error details.
|
|
1881
1889
|
*/
|
|
1882
1890
|
error: any;
|
|
1891
|
+
/**
|
|
1892
|
+
* The name of the pilet emitting the error.
|
|
1893
|
+
*/
|
|
1894
|
+
pilet?: string;
|
|
1883
1895
|
}
|
|
1884
1896
|
|
|
1885
1897
|
export interface LanguagesPickerProps {
|
|
@@ -2065,6 +2077,10 @@ declare module "sample-piral" {
|
|
|
2065
2077
|
* The currently used number of rows.
|
|
2066
2078
|
*/
|
|
2067
2079
|
rows: number;
|
|
2080
|
+
/**
|
|
2081
|
+
* The name of the pilet emitting the error.
|
|
2082
|
+
*/
|
|
2083
|
+
pilet?: string;
|
|
2068
2084
|
}
|
|
2069
2085
|
|
|
2070
2086
|
/**
|
|
@@ -2083,6 +2099,10 @@ declare module "sample-piral" {
|
|
|
2083
2099
|
* The type of the used menu.
|
|
2084
2100
|
*/
|
|
2085
2101
|
menu: MenuType;
|
|
2102
|
+
/**
|
|
2103
|
+
* The name of the pilet emitting the error.
|
|
2104
|
+
*/
|
|
2105
|
+
pilet?: string;
|
|
2086
2106
|
}
|
|
2087
2107
|
|
|
2088
2108
|
/**
|
|
@@ -2101,6 +2121,10 @@ declare module "sample-piral" {
|
|
|
2101
2121
|
* Callback for closing the modal programmatically.
|
|
2102
2122
|
*/
|
|
2103
2123
|
onClose(): void;
|
|
2124
|
+
/**
|
|
2125
|
+
* The name of the pilet emitting the error.
|
|
2126
|
+
*/
|
|
2127
|
+
pilet?: string;
|
|
2104
2128
|
}
|
|
2105
2129
|
|
|
2106
2130
|
/**
|
|
@@ -2115,6 +2139,10 @@ declare module "sample-piral" {
|
|
|
2115
2139
|
* The provided error details.
|
|
2116
2140
|
*/
|
|
2117
2141
|
error: any;
|
|
2142
|
+
/**
|
|
2143
|
+
* The name of the pilet emitting the error.
|
|
2144
|
+
*/
|
|
2145
|
+
pilet?: string;
|
|
2118
2146
|
}
|
|
2119
2147
|
|
|
2120
2148
|
/**
|
|
@@ -1303,6 +1303,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1303
1303
|
/* harmony export */ });
|
|
1304
1304
|
/* harmony import */ var _cleanup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cleanup */ "../../framework/piral-base/esm/cleanup.js");
|
|
1305
1305
|
|
|
1306
|
+
|
|
1307
|
+
function logError(name, e) {
|
|
1308
|
+
console.error("Error while setting up ".concat(name, "."), e);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function withCatch(result, name) {
|
|
1312
|
+
if (result instanceof Promise) {
|
|
1313
|
+
return result["catch"](function (e) {
|
|
1314
|
+
return logError(name, e);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
return result;
|
|
1319
|
+
}
|
|
1306
1320
|
/**
|
|
1307
1321
|
* Sets up the given single pilet by calling the exported `setup`
|
|
1308
1322
|
* function on the pilet with the created API.
|
|
@@ -1310,6 +1324,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1310
1324
|
* @param api The generated API for the pilet.
|
|
1311
1325
|
*/
|
|
1312
1326
|
|
|
1327
|
+
|
|
1313
1328
|
function setupSinglePilet(app, api) {
|
|
1314
1329
|
try {
|
|
1315
1330
|
var result = app.setup(api);
|
|
@@ -1328,9 +1343,9 @@ function setupSinglePilet(app, api) {
|
|
|
1328
1343
|
};
|
|
1329
1344
|
|
|
1330
1345
|
api.on(evtName, handler);
|
|
1331
|
-
return result;
|
|
1346
|
+
return withCatch(result, app === null || app === void 0 ? void 0 : app.name);
|
|
1332
1347
|
} catch (e) {
|
|
1333
|
-
|
|
1348
|
+
logError(app === null || app === void 0 ? void 0 : app.name, e);
|
|
1334
1349
|
}
|
|
1335
1350
|
}
|
|
1336
1351
|
/**
|
|
@@ -1342,9 +1357,9 @@ function setupSinglePilet(app, api) {
|
|
|
1342
1357
|
|
|
1343
1358
|
function setupMultiPilet(app, apiFactory) {
|
|
1344
1359
|
try {
|
|
1345
|
-
return app.setup(apiFactory);
|
|
1360
|
+
return withCatch(app.setup(apiFactory), app === null || app === void 0 ? void 0 : app.name);
|
|
1346
1361
|
} catch (e) {
|
|
1347
|
-
|
|
1362
|
+
logError(app === null || app === void 0 ? void 0 : app.name, e);
|
|
1348
1363
|
}
|
|
1349
1364
|
}
|
|
1350
1365
|
/**
|
|
@@ -1868,7 +1883,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1868
1883
|
/* harmony export */ "RootListener": () => (/* binding */ RootListener)
|
|
1869
1884
|
/* harmony export */ });
|
|
1870
1885
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
1871
|
-
/* harmony import */ var
|
|
1886
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
1872
1887
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/element.js");
|
|
1873
1888
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
1874
1889
|
|
|
@@ -1886,7 +1901,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
1886
1901
|
|
|
1887
1902
|
|
|
1888
1903
|
var RootListener = function RootListener() {
|
|
1889
|
-
var context = (0,
|
|
1904
|
+
var context = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalStateContext)();
|
|
1890
1905
|
react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(function () {
|
|
1891
1906
|
if (typeof document !== 'undefined') {
|
|
1892
1907
|
var handler = function handler(ev) {
|
|
@@ -2441,9 +2456,11 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
2441
2456
|
var rest = renderProps;
|
|
2442
2457
|
|
|
2443
2458
|
if (error) {
|
|
2459
|
+
var pilet = piral.meta.name;
|
|
2444
2460
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_2__.PiralError, Object.assign({
|
|
2445
2461
|
type: errorType,
|
|
2446
|
-
error: error
|
|
2462
|
+
error: error,
|
|
2463
|
+
pilet: pilet
|
|
2447
2464
|
}, rest));
|
|
2448
2465
|
}
|
|
2449
2466
|
|
|
@@ -3511,7 +3528,7 @@ function createInstance() {
|
|
|
3511
3528
|
var createApi = apiFactory(context, usedPlugins);
|
|
3512
3529
|
var root = createApi({
|
|
3513
3530
|
name: 'root',
|
|
3514
|
-
version: "0.14.
|
|
3531
|
+
version: "0.14.11-beta.3683" || 0,
|
|
3515
3532
|
spec: ''
|
|
3516
3533
|
});
|
|
3517
3534
|
var options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -9268,12 +9285,12 @@ function installPiralDebug(options) {
|
|
|
9268
9285
|
debug: debugApiVersion,
|
|
9269
9286
|
instance: {
|
|
9270
9287
|
name: "sample-piral",
|
|
9271
|
-
version: "0.14.
|
|
9288
|
+
version: "0.14.11-beta.3683",
|
|
9272
9289
|
dependencies: "reactstrap,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
9273
9290
|
},
|
|
9274
9291
|
build: {
|
|
9275
|
-
date: "2022-02-
|
|
9276
|
-
cli: "0.14.
|
|
9292
|
+
date: "2022-02-17T15:09:46.347Z",
|
|
9293
|
+
cli: "0.14.10",
|
|
9277
9294
|
compat: "0.14"
|
|
9278
9295
|
},
|
|
9279
9296
|
pilets: {
|
|
@@ -80577,4 +80594,4 @@ var layout_1 = __webpack_require__(/*! ./layout */ "./src/layout.tsx");
|
|
|
80577
80594
|
|
|
80578
80595
|
/******/ })()
|
|
80579
80596
|
;
|
|
80580
|
-
//# sourceMappingURL=index.
|
|
80597
|
+
//# sourceMappingURL=index.db4399.js.map
|