sample-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.2e8356.js → index.e8e408.js} +90 -32
- package/app/index.e8e408.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.2e8356.js.map +0 -1
|
@@ -4710,7 +4710,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4710
4710
|
/* harmony export */ });
|
|
4711
4711
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/loader.js");
|
|
4712
4712
|
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules */ "../../framework/piral-core/esm/modules/dependencies.js");
|
|
4713
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/
|
|
4713
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
4714
4714
|
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/esm/tools/emulator.js");
|
|
4715
4715
|
|
|
4716
4716
|
|
|
@@ -5226,8 +5226,11 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
5226
5226
|
_this.update = _utils__WEBPACK_IMPORTED_MODULE_0__.noop;
|
|
5227
5227
|
_this.props = {
|
|
5228
5228
|
name: _this.getAttribute('name'),
|
|
5229
|
+
emptySkipsRender: typeof _this.getAttribute('empty-skips-render') === 'string',
|
|
5229
5230
|
params: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(_this.getAttribute('params')),
|
|
5230
5231
|
empty: undefined,
|
|
5232
|
+
order: undefined,
|
|
5233
|
+
render: undefined,
|
|
5231
5234
|
children: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.reactifyContent)(_this.childNodes)
|
|
5232
5235
|
};
|
|
5233
5236
|
return _this;
|
|
@@ -5251,6 +5254,24 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
5251
5254
|
this.props.name = value;
|
|
5252
5255
|
this.update(this.props);
|
|
5253
5256
|
}
|
|
5257
|
+
}, {
|
|
5258
|
+
key: "order",
|
|
5259
|
+
get: function get() {
|
|
5260
|
+
return this.props.order;
|
|
5261
|
+
},
|
|
5262
|
+
set: function set(value) {
|
|
5263
|
+
this.props.order = value;
|
|
5264
|
+
this.update(this.props);
|
|
5265
|
+
}
|
|
5266
|
+
}, {
|
|
5267
|
+
key: "render",
|
|
5268
|
+
get: function get() {
|
|
5269
|
+
return this.props.render;
|
|
5270
|
+
},
|
|
5271
|
+
set: function set(value) {
|
|
5272
|
+
this.props.render = value;
|
|
5273
|
+
this.update(this.props);
|
|
5274
|
+
}
|
|
5254
5275
|
}, {
|
|
5255
5276
|
key: "empty",
|
|
5256
5277
|
get: function get() {
|
|
@@ -5260,6 +5281,15 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
5260
5281
|
this.props.empty = value;
|
|
5261
5282
|
this.update(this.props);
|
|
5262
5283
|
}
|
|
5284
|
+
}, {
|
|
5285
|
+
key: "emptySkipsRender",
|
|
5286
|
+
get: function get() {
|
|
5287
|
+
return this.props.emptySkipsRender;
|
|
5288
|
+
},
|
|
5289
|
+
set: function set(value) {
|
|
5290
|
+
this.props.emptySkipsRender = value;
|
|
5291
|
+
this.update(this.props);
|
|
5292
|
+
}
|
|
5263
5293
|
}, {
|
|
5264
5294
|
key: "connectedCallback",
|
|
5265
5295
|
value: function connectedCallback() {
|
|
@@ -5293,12 +5323,16 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
5293
5323
|
case 'params':
|
|
5294
5324
|
this.params = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.tryParseJson)(newValue);
|
|
5295
5325
|
break;
|
|
5326
|
+
|
|
5327
|
+
case 'empty-skips-render':
|
|
5328
|
+
this.params = typeof newValue === 'string';
|
|
5329
|
+
break;
|
|
5296
5330
|
}
|
|
5297
5331
|
}
|
|
5298
5332
|
}], [{
|
|
5299
5333
|
key: "observedAttributes",
|
|
5300
5334
|
get: function get() {
|
|
5301
|
-
return ['name', 'params'];
|
|
5335
|
+
return ['name', 'params', 'empty-skips-render'];
|
|
5302
5336
|
}
|
|
5303
5337
|
}]);
|
|
5304
5338
|
|
|
@@ -9369,16 +9403,20 @@ function installPiralDebug(options) {
|
|
|
9369
9403
|
addPilet = options.addPilet,
|
|
9370
9404
|
navigate = options.navigate,
|
|
9371
9405
|
_options$customSettin = options.customSettings,
|
|
9372
|
-
customSettings = _options$customSettin === void 0 ? {} : _options$customSettin
|
|
9406
|
+
customSettings = _options$customSettin === void 0 ? {} : _options$customSettin,
|
|
9407
|
+
_options$defaultSetti = options.defaultSettings,
|
|
9408
|
+
defaultSettings = _options$defaultSetti === void 0 ? {} : _options$defaultSetti;
|
|
9373
9409
|
var events = [];
|
|
9374
9410
|
var legacyBrowser = !new Error().stack;
|
|
9375
|
-
var
|
|
9411
|
+
var initialSettings = (0,_state__WEBPACK_IMPORTED_MODULE_0__.getInitialSettings)(defaultSettings);
|
|
9412
|
+
var excludedRoutes = [initialSettings.cataloguePath];
|
|
9376
9413
|
var selfSource = 'piral-debug-api';
|
|
9377
9414
|
var debugApiVersion = 'v1';
|
|
9378
9415
|
var setValue = _state__WEBPACK_IMPORTED_MODULE_0__.initialSetter;
|
|
9416
|
+
(0,_state__WEBPACK_IMPORTED_MODULE_0__.setInitialState)(initialSettings);
|
|
9379
9417
|
var settings = Object.assign(Object.assign({}, customSettings), {
|
|
9380
9418
|
viewState: {
|
|
9381
|
-
value:
|
|
9419
|
+
value: initialSettings.viewState,
|
|
9382
9420
|
type: 'boolean',
|
|
9383
9421
|
label: 'State container logging',
|
|
9384
9422
|
onChange: function onChange(value) {
|
|
@@ -9386,7 +9424,7 @@ function installPiralDebug(options) {
|
|
|
9386
9424
|
}
|
|
9387
9425
|
},
|
|
9388
9426
|
loadPilets: {
|
|
9389
|
-
value:
|
|
9427
|
+
value: initialSettings.loadPilets,
|
|
9390
9428
|
type: 'boolean',
|
|
9391
9429
|
label: 'Load available pilets',
|
|
9392
9430
|
onChange: function onChange(value) {
|
|
@@ -9394,7 +9432,7 @@ function installPiralDebug(options) {
|
|
|
9394
9432
|
}
|
|
9395
9433
|
},
|
|
9396
9434
|
hardRefresh: {
|
|
9397
|
-
value:
|
|
9435
|
+
value: initialSettings.hardRefresh,
|
|
9398
9436
|
type: 'boolean',
|
|
9399
9437
|
label: 'Full refresh on change',
|
|
9400
9438
|
onChange: function onChange(value) {
|
|
@@ -9402,7 +9440,7 @@ function installPiralDebug(options) {
|
|
|
9402
9440
|
}
|
|
9403
9441
|
},
|
|
9404
9442
|
viewOrigins: {
|
|
9405
|
-
value:
|
|
9443
|
+
value: initialSettings.viewOrigins,
|
|
9406
9444
|
type: 'boolean',
|
|
9407
9445
|
label: 'Visualize component origins',
|
|
9408
9446
|
onChange: function onChange(value, prev) {
|
|
@@ -9414,7 +9452,7 @@ function installPiralDebug(options) {
|
|
|
9414
9452
|
}
|
|
9415
9453
|
},
|
|
9416
9454
|
extensionCatalogue: {
|
|
9417
|
-
value:
|
|
9455
|
+
value: initialSettings.extensionCatalogue,
|
|
9418
9456
|
type: 'boolean',
|
|
9419
9457
|
label: 'Enable extension catalogue',
|
|
9420
9458
|
onChange: function onChange(value) {
|
|
@@ -9422,7 +9460,7 @@ function installPiralDebug(options) {
|
|
|
9422
9460
|
}
|
|
9423
9461
|
},
|
|
9424
9462
|
clearConsole: {
|
|
9425
|
-
value:
|
|
9463
|
+
value: initialSettings.clearConsole,
|
|
9426
9464
|
type: 'boolean',
|
|
9427
9465
|
label: 'Clear console during HMR',
|
|
9428
9466
|
onChange: function onChange(value) {
|
|
@@ -9430,7 +9468,7 @@ function installPiralDebug(options) {
|
|
|
9430
9468
|
}
|
|
9431
9469
|
},
|
|
9432
9470
|
persistSettings: {
|
|
9433
|
-
value:
|
|
9471
|
+
value: initialSettings.persistSettings,
|
|
9434
9472
|
type: 'boolean',
|
|
9435
9473
|
label: 'Persist settings',
|
|
9436
9474
|
onChange: function onChange(value) {
|
|
@@ -9601,12 +9639,12 @@ function installPiralDebug(options) {
|
|
|
9601
9639
|
debug: debugApiVersion,
|
|
9602
9640
|
instance: {
|
|
9603
9641
|
name: "sample-piral",
|
|
9604
|
-
version: "0.15.9-beta.
|
|
9642
|
+
version: "0.15.9-beta.5403",
|
|
9605
9643
|
dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
|
|
9606
9644
|
},
|
|
9607
9645
|
build: {
|
|
9608
|
-
date: "2023-
|
|
9609
|
-
cli: "0.15.9-beta.
|
|
9646
|
+
date: "2023-04-04T17:10:54.170Z",
|
|
9647
|
+
cli: "0.15.9-beta.5403",
|
|
9610
9648
|
compat: "0.15"
|
|
9611
9649
|
}
|
|
9612
9650
|
};
|
|
@@ -9788,7 +9826,7 @@ function installPiralDebug(options) {
|
|
|
9788
9826
|
components: {
|
|
9789
9827
|
Debug: _DebugTracker__WEBPACK_IMPORTED_MODULE_2__.DebugTracker
|
|
9790
9828
|
},
|
|
9791
|
-
routes: _defineProperty({},
|
|
9829
|
+
routes: _defineProperty({}, initialSettings.cataloguePath, _ExtensionCatalogue__WEBPACK_IMPORTED_MODULE_3__.ExtensionCatalogue),
|
|
9792
9830
|
wrappers: {
|
|
9793
9831
|
'*': _VisualizationWrapper__WEBPACK_IMPORTED_MODULE_4__.VisualizationWrapper
|
|
9794
9832
|
},
|
|
@@ -10058,10 +10096,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10058
10096
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10059
10097
|
/* harmony export */ "disablePersistance": () => (/* binding */ disablePersistance),
|
|
10060
10098
|
/* harmony export */ "enablePersistance": () => (/* binding */ enablePersistance),
|
|
10099
|
+
/* harmony export */ "getInitialSettings": () => (/* binding */ getInitialSettings),
|
|
10061
10100
|
/* harmony export */ "getState": () => (/* binding */ getState),
|
|
10062
10101
|
/* harmony export */ "initialSetter": () => (/* binding */ initialSetter),
|
|
10063
|
-
/* harmony export */ "initialSettings": () => (/* binding */ initialSettings),
|
|
10064
10102
|
/* harmony export */ "navigate": () => (/* binding */ navigate),
|
|
10103
|
+
/* harmony export */ "setInitialState": () => (/* binding */ setInitialState),
|
|
10065
10104
|
/* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
|
|
10066
10105
|
/* harmony export */ "setState": () => (/* binding */ setState),
|
|
10067
10106
|
/* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
|
|
@@ -10106,6 +10145,18 @@ var persistentSetter = function persistentSetter(name, value) {
|
|
|
10106
10145
|
localStorage.setItem(persistKey, JSON.stringify(data));
|
|
10107
10146
|
};
|
|
10108
10147
|
|
|
10148
|
+
function getValue(key, defaultValue, fallbackValue) {
|
|
10149
|
+
var value = sessionStorage.getItem(key);
|
|
10150
|
+
|
|
10151
|
+
if (['on', 'off'].includes(value)) {
|
|
10152
|
+
return value === 'on';
|
|
10153
|
+
} else if (typeof defaultValue === 'boolean') {
|
|
10154
|
+
return defaultValue;
|
|
10155
|
+
} else {
|
|
10156
|
+
return fallbackValue;
|
|
10157
|
+
}
|
|
10158
|
+
}
|
|
10159
|
+
|
|
10109
10160
|
if (persistSettings) {
|
|
10110
10161
|
try {
|
|
10111
10162
|
var settings = JSON.parse(localStorage.getItem(persistKey));
|
|
@@ -10142,16 +10193,18 @@ function disablePersistance() {
|
|
|
10142
10193
|
return defaultSetter;
|
|
10143
10194
|
}
|
|
10144
10195
|
var initialSetter = persistSettings ? persistentSetter : defaultSetter;
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10196
|
+
function getInitialSettings(defaultValues) {
|
|
10197
|
+
return {
|
|
10198
|
+
viewState: getValue(settingsKeys.viewState, defaultValues.viewState, true),
|
|
10199
|
+
loadPilets: getValue(settingsKeys.loadPilets, defaultValues.loadPilets, false),
|
|
10200
|
+
hardRefresh: getValue(settingsKeys.hardRefresh, defaultValues.hardRefresh, false),
|
|
10201
|
+
viewOrigins: getValue(settingsKeys.viewOrigins, defaultValues.viewOrigins, false),
|
|
10202
|
+
extensionCatalogue: getValue(settingsKeys.extensionCatalogue, defaultValues.extensionCatalogue, true),
|
|
10203
|
+
clearConsole: getValue(settingsKeys.clearConsole, defaultValues.clearConsole, false),
|
|
10204
|
+
persistSettings: persistSettings,
|
|
10205
|
+
cataloguePath: '/$debug-extension-catalogue'
|
|
10206
|
+
};
|
|
10207
|
+
}
|
|
10155
10208
|
var listeners = [];
|
|
10156
10209
|
var _navigate = undefined;
|
|
10157
10210
|
function setNavigate(navigate) {
|
|
@@ -10162,15 +10215,20 @@ function navigate(path, state) {
|
|
|
10162
10215
|
}
|
|
10163
10216
|
var state = {
|
|
10164
10217
|
visualize: {
|
|
10165
|
-
active:
|
|
10218
|
+
active: false,
|
|
10166
10219
|
force: false
|
|
10167
10220
|
},
|
|
10168
10221
|
catalogue: {
|
|
10169
|
-
active:
|
|
10170
|
-
path:
|
|
10222
|
+
active: false,
|
|
10223
|
+
path: ''
|
|
10171
10224
|
},
|
|
10172
10225
|
route: undefined
|
|
10173
10226
|
};
|
|
10227
|
+
function setInitialState(initialSettings) {
|
|
10228
|
+
state.visualize.active = initialSettings.viewOrigins;
|
|
10229
|
+
state.catalogue.active = initialSettings.extensionCatalogue;
|
|
10230
|
+
state.catalogue.path = initialSettings.cataloguePath;
|
|
10231
|
+
}
|
|
10174
10232
|
function setState(dispatch) {
|
|
10175
10233
|
var newState = dispatch(state);
|
|
10176
10234
|
|
|
@@ -14296,7 +14354,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14296
14354
|
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.createNavigation),
|
|
14297
14355
|
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.createRedirect),
|
|
14298
14356
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
14299
|
-
/* harmony export */ "integrateDebugger": () => (/*
|
|
14357
|
+
/* harmony export */ "integrateDebugger": () => (/* binding */ integrateDebugger),
|
|
14300
14358
|
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_tools_emulator__WEBPACK_IMPORTED_MODULE_13__.integrateEmulator),
|
|
14301
14359
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
14302
14360
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
@@ -14373,7 +14431,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14373
14431
|
};
|
|
14374
14432
|
}
|
|
14375
14433
|
|
|
14376
|
-
|
|
14434
|
+
function integrateDebugger(context, options, debug) { return (0,piral_core_tools_debugger__WEBPACK_IMPORTED_MODULE_12__.integrateDebugger)(context, options, { defaultSettings: {}, ...debug }); }
|
|
14377
14435
|
|
|
14378
14436
|
|
|
14379
14437
|
function useRouteFilter(paths) {
|
|
@@ -66370,4 +66428,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
|
|
|
66370
66428
|
|
|
66371
66429
|
/******/ })()
|
|
66372
66430
|
;
|
|
66373
|
-
//# sourceMappingURL=index.
|
|
66431
|
+
//# sourceMappingURL=index.e8e408.js.map
|