sample-piral 0.14.15-beta.3791 → 0.14.15-beta.3795
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.1ccd7e.js → index.69f5cd.js} +29 -25
- package/app/index.69f5cd.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 +1 -1
- package/app/index.1ccd7e.js.map +0 -1
|
@@ -3621,7 +3621,7 @@ function createInstance() {
|
|
|
3621
3621
|
var createApi = apiFactory(context, usedPlugins);
|
|
3622
3622
|
var root = createApi({
|
|
3623
3623
|
name: 'root',
|
|
3624
|
-
version: "0.14.15-beta.
|
|
3624
|
+
version: "0.14.15-beta.3795" || 0,
|
|
3625
3625
|
spec: ''
|
|
3626
3626
|
});
|
|
3627
3627
|
var options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -9382,21 +9382,34 @@ function installPiralDebug(options) {
|
|
|
9382
9382
|
});
|
|
9383
9383
|
};
|
|
9384
9384
|
|
|
9385
|
+
var activatePilet = function activatePilet(pilet) {
|
|
9386
|
+
try {
|
|
9387
|
+
var _createApi = options.createApi;
|
|
9388
|
+
|
|
9389
|
+
var newApi = _createApi(pilet);
|
|
9390
|
+
|
|
9391
|
+
injectPilet(pilet);
|
|
9392
|
+
pilet.setup(newApi);
|
|
9393
|
+
} catch (error) {
|
|
9394
|
+
console.error(error);
|
|
9395
|
+
}
|
|
9396
|
+
};
|
|
9397
|
+
|
|
9385
9398
|
var togglePilet = function togglePilet(name) {
|
|
9386
9399
|
var pilet = getPilets().find(function (m) {
|
|
9387
9400
|
return m.name === name;
|
|
9388
9401
|
});
|
|
9389
9402
|
|
|
9390
|
-
if (pilet
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9403
|
+
if (!pilet) {// nothing to do, obviously invalid call
|
|
9404
|
+
} else if (pilet.disabled) {
|
|
9405
|
+
if (pilet.original) {
|
|
9406
|
+
// everything is fine, let's use the cached version
|
|
9407
|
+
activatePilet(pilet.original);
|
|
9408
|
+
} else {
|
|
9409
|
+
// something fishy is going on - let's just try to activate the same pilet
|
|
9410
|
+
activatePilet(Object.assign(Object.assign({}, pilet), {
|
|
9411
|
+
disabled: false
|
|
9412
|
+
}));
|
|
9400
9413
|
}
|
|
9401
9414
|
} else {
|
|
9402
9415
|
injectPilet({
|
|
@@ -9418,17 +9431,8 @@ function installPiralDebug(options) {
|
|
|
9418
9431
|
};
|
|
9419
9432
|
|
|
9420
9433
|
var appendPilet = function appendPilet(meta) {
|
|
9421
|
-
var
|
|
9422
|
-
|
|
9423
|
-
loadPilet(meta).then(function (pilet) {
|
|
9424
|
-
try {
|
|
9425
|
-
var newApi = createApi(pilet);
|
|
9426
|
-
injectPilet(pilet);
|
|
9427
|
-
pilet.setup(newApi);
|
|
9428
|
-
} catch (error) {
|
|
9429
|
-
console.error(error);
|
|
9430
|
-
}
|
|
9431
|
-
});
|
|
9434
|
+
var loadPilet = options.loadPilet;
|
|
9435
|
+
loadPilet(meta).then(activatePilet);
|
|
9432
9436
|
};
|
|
9433
9437
|
|
|
9434
9438
|
var toggleVisualize = function toggleVisualize() {
|
|
@@ -9488,11 +9492,11 @@ function installPiralDebug(options) {
|
|
|
9488
9492
|
debug: debugApiVersion,
|
|
9489
9493
|
instance: {
|
|
9490
9494
|
name: "sample-piral",
|
|
9491
|
-
version: "0.14.15-beta.
|
|
9495
|
+
version: "0.14.15-beta.3795",
|
|
9492
9496
|
dependencies: "reactstrap,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
9493
9497
|
},
|
|
9494
9498
|
build: {
|
|
9495
|
-
date: "2022-03-
|
|
9499
|
+
date: "2022-03-04T18:11:42.960Z",
|
|
9496
9500
|
cli: "0.14.14",
|
|
9497
9501
|
compat: "0.14"
|
|
9498
9502
|
},
|
|
@@ -80906,4 +80910,4 @@ var layout_1 = __webpack_require__(/*! ./layout */ "./src/layout.tsx");
|
|
|
80906
80910
|
|
|
80907
80911
|
/******/ })()
|
|
80908
80912
|
;
|
|
80909
|
-
//# sourceMappingURL=index.
|
|
80913
|
+
//# sourceMappingURL=index.69f5cd.js.map
|