@jsenv/navi 0.26.25 → 0.26.27
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/dist/jsenv_navi.js +8 -3
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +2 -2
package/dist/jsenv_navi.js
CHANGED
|
@@ -5312,7 +5312,6 @@ const generateSignalId = () => {
|
|
|
5312
5312
|
* const childTab = stateSignal(parentTab);
|
|
5313
5313
|
* // childTab follows parentTab changes unless explicitly set
|
|
5314
5314
|
*/
|
|
5315
|
-
const NO_LOCAL_STORAGE = [() => undefined, () => {}, () => {}];
|
|
5316
5315
|
const stateSignal = (defaultValue, options = {}) => {
|
|
5317
5316
|
const {
|
|
5318
5317
|
id,
|
|
@@ -5437,6 +5436,9 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5437
5436
|
oneOf,
|
|
5438
5437
|
});
|
|
5439
5438
|
const processValue = (value) => {
|
|
5439
|
+
if (value === undefined) {
|
|
5440
|
+
return undefined;
|
|
5441
|
+
}
|
|
5440
5442
|
const wasValid = validity.valid;
|
|
5441
5443
|
updateValidity(value);
|
|
5442
5444
|
if (validity.valid) {
|
|
@@ -5455,12 +5457,14 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5455
5457
|
if (hasAutoFix) {
|
|
5456
5458
|
if (debug) {
|
|
5457
5459
|
console.debug(
|
|
5458
|
-
`[stateSignal:${signalIdString}] validation failed:
|
|
5460
|
+
`[stateSignal:${signalIdString}] validation failed: `,
|
|
5461
|
+
validity,
|
|
5459
5462
|
);
|
|
5460
5463
|
}
|
|
5461
5464
|
} else {
|
|
5462
5465
|
console.warn(
|
|
5463
|
-
`[stateSignal:${signalIdString}] validation failed with no valid suggestion:
|
|
5466
|
+
`[stateSignal:${signalIdString}] validation failed with no valid suggestion: `,
|
|
5467
|
+
validity,
|
|
5464
5468
|
);
|
|
5465
5469
|
}
|
|
5466
5470
|
if (validity.validSuggestion) {
|
|
@@ -5665,6 +5669,7 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5665
5669
|
return facadeSignal;
|
|
5666
5670
|
};
|
|
5667
5671
|
|
|
5672
|
+
const NO_LOCAL_STORAGE = [() => undefined, () => {}, () => {}];
|
|
5668
5673
|
const localStorageTypeMap = {
|
|
5669
5674
|
float: "number",
|
|
5670
5675
|
integer: "number",
|