@valbuild/react 0.59.0 → 0.60.1
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/declarations/src/internal/index.d.ts +0 -1
- package/dist/{slicedToArray-11a666de.cjs.dev.js → slicedToArray-129629e4.cjs.dev.js} +11 -0
- package/dist/{slicedToArray-c405fbf0.cjs.prod.js → slicedToArray-386a8ae8.cjs.prod.js} +11 -0
- package/dist/{slicedToArray-7b69258f.browser.esm.js → slicedToArray-6b2002fa.browser.esm.js} +11 -1
- package/dist/{slicedToArray-e7da2c5e.worker.esm.js → slicedToArray-7a63acfd.worker.esm.js} +11 -1
- package/dist/{slicedToArray-1dc7d2d6.esm.js → slicedToArray-a79154e9.esm.js} +11 -1
- package/internal/dist/valbuild-react-internal.browser.esm.js +0 -1
- package/internal/dist/valbuild-react-internal.cjs.dev.js +0 -13
- package/internal/dist/valbuild-react-internal.cjs.prod.js +0 -13
- package/internal/dist/valbuild-react-internal.esm.js +0 -1
- package/internal/dist/valbuild-react-internal.worker.esm.js +0 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +1 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +2 -3
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +2 -3
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +1 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +1 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +1 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +2 -3
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +2 -3
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +1 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +1 -2
- package/package.json +5 -6
- package/stega/dist/valbuild-react-stega.browser.esm.js +1 -2
- package/stega/dist/valbuild-react-stega.cjs.dev.js +12 -13
- package/stega/dist/valbuild-react-stega.cjs.prod.js +12 -13
- package/stega/dist/valbuild-react-stega.esm.js +1 -2
- package/stega/dist/valbuild-react-stega.worker.esm.js +1 -2
- package/dist/ValProvider-09e313e2.worker.esm.js +0 -87
- package/dist/ValProvider-461fa48b.cjs.js +0 -7
- package/dist/ValProvider-461fa48b.cjs.prod.js +0 -115
- package/dist/ValProvider-a3b1e699.esm.js +0 -92
- package/dist/ValProvider-b34afe68.browser.esm.js +0 -92
- package/dist/ValProvider-d17e4d13.cjs.dev.js +0 -121
- package/dist/ValUI-1922d8db.cjs.dev.js +0 -83
- package/dist/ValUI-23e2422b.cjs.js +0 -7
- package/dist/ValUI-23e2422b.cjs.prod.js +0 -83
- package/dist/ValUI-7d39a3f6.browser.esm.js +0 -79
- package/dist/ValUI-84a9cc93.worker.esm.js +0 -79
- package/dist/ValUI-8775ef5c.esm.js +0 -79
- package/dist/declarations/src/internal/ValProvider.d.ts +0 -17
- package/dist/typeof-16428c61.cjs.prod.js +0 -13
- package/dist/typeof-9915e135.browser.esm.js +0 -11
- package/dist/typeof-a1531d8f.esm.js +0 -11
- package/dist/typeof-b568f48f.cjs.dev.js +0 -13
- package/dist/typeof-e0c837cc.worker.esm.js +0 -11
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
var unsupportedIterableToArray = require('./unsupportedIterableToArray-ac28611a.cjs.dev.js');
|
4
4
|
|
5
|
+
function _typeof(o) {
|
6
|
+
"@babel/helpers - typeof";
|
7
|
+
|
8
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
9
|
+
return typeof o;
|
10
|
+
} : function (o) {
|
11
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
12
|
+
}, _typeof(o);
|
13
|
+
}
|
14
|
+
|
5
15
|
function _arrayWithHoles(arr) {
|
6
16
|
if (Array.isArray(arr)) return arr;
|
7
17
|
}
|
@@ -43,3 +53,4 @@ function _slicedToArray(arr, i) {
|
|
43
53
|
}
|
44
54
|
|
45
55
|
exports._slicedToArray = _slicedToArray;
|
56
|
+
exports._typeof = _typeof;
|
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
var unsupportedIterableToArray = require('./unsupportedIterableToArray-42309462.cjs.prod.js');
|
4
4
|
|
5
|
+
function _typeof(o) {
|
6
|
+
"@babel/helpers - typeof";
|
7
|
+
|
8
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
9
|
+
return typeof o;
|
10
|
+
} : function (o) {
|
11
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
12
|
+
}, _typeof(o);
|
13
|
+
}
|
14
|
+
|
5
15
|
function _arrayWithHoles(arr) {
|
6
16
|
if (Array.isArray(arr)) return arr;
|
7
17
|
}
|
@@ -43,3 +53,4 @@ function _slicedToArray(arr, i) {
|
|
43
53
|
}
|
44
54
|
|
45
55
|
exports._slicedToArray = _slicedToArray;
|
56
|
+
exports._typeof = _typeof;
|
package/dist/{slicedToArray-7b69258f.browser.esm.js → slicedToArray-6b2002fa.browser.esm.js}
RENAMED
@@ -1,5 +1,15 @@
|
|
1
1
|
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cce3cb41.browser.esm.js';
|
2
2
|
|
3
|
+
function _typeof(o) {
|
4
|
+
"@babel/helpers - typeof";
|
5
|
+
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
7
|
+
return typeof o;
|
8
|
+
} : function (o) {
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
10
|
+
}, _typeof(o);
|
11
|
+
}
|
12
|
+
|
3
13
|
function _arrayWithHoles(arr) {
|
4
14
|
if (Array.isArray(arr)) return arr;
|
5
15
|
}
|
@@ -40,4 +50,4 @@ function _slicedToArray(arr, i) {
|
|
40
50
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
41
51
|
}
|
42
52
|
|
43
|
-
export { _slicedToArray as _ };
|
53
|
+
export { _slicedToArray as _, _typeof as a };
|
@@ -1,5 +1,15 @@
|
|
1
1
|
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-50359a05.worker.esm.js';
|
2
2
|
|
3
|
+
function _typeof(o) {
|
4
|
+
"@babel/helpers - typeof";
|
5
|
+
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
7
|
+
return typeof o;
|
8
|
+
} : function (o) {
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
10
|
+
}, _typeof(o);
|
11
|
+
}
|
12
|
+
|
3
13
|
function _arrayWithHoles(arr) {
|
4
14
|
if (Array.isArray(arr)) return arr;
|
5
15
|
}
|
@@ -40,4 +50,4 @@ function _slicedToArray(arr, i) {
|
|
40
50
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
41
51
|
}
|
42
52
|
|
43
|
-
export { _slicedToArray as _ };
|
53
|
+
export { _slicedToArray as _, _typeof as a };
|
@@ -1,5 +1,15 @@
|
|
1
1
|
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-7c30dadf.esm.js';
|
2
2
|
|
3
|
+
function _typeof(o) {
|
4
|
+
"@babel/helpers - typeof";
|
5
|
+
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
7
|
+
return typeof o;
|
8
|
+
} : function (o) {
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
10
|
+
}, _typeof(o);
|
11
|
+
}
|
12
|
+
|
3
13
|
function _arrayWithHoles(arr) {
|
4
14
|
if (Array.isArray(arr)) return arr;
|
5
15
|
}
|
@@ -40,4 +50,4 @@ function _slicedToArray(arr, i) {
|
|
40
50
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
41
51
|
}
|
42
52
|
|
43
|
-
export { _slicedToArray as _ };
|
53
|
+
export { _slicedToArray as _, _typeof as a };
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('../../dist/ValProvider-d17e4d13.cjs.dev.js');
|
6
5
|
var toConsumableArray = require('../../dist/toConsumableArray-b2d28ffa.cjs.dev.js');
|
7
6
|
var React = require('react');
|
8
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
@@ -115,16 +114,4 @@ function classNameOfTag(tag, clazz, theme) {
|
|
115
114
|
}))).join(" ");
|
116
115
|
}
|
117
116
|
|
118
|
-
Object.defineProperty(exports, 'ValProvider', {
|
119
|
-
enumerable: true,
|
120
|
-
get: function () { return ValProvider.ValProvider; }
|
121
|
-
});
|
122
|
-
Object.defineProperty(exports, 'useValApi', {
|
123
|
-
enumerable: true,
|
124
|
-
get: function () { return ValProvider.useValApi; }
|
125
|
-
});
|
126
|
-
Object.defineProperty(exports, 'useValStore', {
|
127
|
-
enumerable: true,
|
128
|
-
get: function () { return ValProvider.useValStore; }
|
129
|
-
});
|
130
117
|
exports.ValRichText = ValRichText;
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var ValProvider = require('../../dist/ValProvider-461fa48b.cjs.prod.js');
|
6
5
|
var toConsumableArray = require('../../dist/toConsumableArray-b5e3b83f.cjs.prod.js');
|
7
6
|
var React = require('react');
|
8
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
@@ -115,16 +114,4 @@ function classNameOfTag(tag, clazz, theme) {
|
|
115
114
|
}))).join(" ");
|
116
115
|
}
|
117
116
|
|
118
|
-
Object.defineProperty(exports, 'ValProvider', {
|
119
|
-
enumerable: true,
|
120
|
-
get: function () { return ValProvider.ValProvider; }
|
121
|
-
});
|
122
|
-
Object.defineProperty(exports, 'useValApi', {
|
123
|
-
enumerable: true,
|
124
|
-
get: function () { return ValProvider.useValApi; }
|
125
|
-
});
|
126
|
-
Object.defineProperty(exports, 'useValStore', {
|
127
|
-
enumerable: true,
|
128
|
-
get: function () { return ValProvider.useValStore; }
|
129
|
-
});
|
130
117
|
exports.ValRichText = ValRichText;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-7b69258f.browser.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-6b2002fa.browser.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
5
4
|
export * from 'react/jsx-dev-runtime';
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-11a666de.cjs.dev.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-129629e4.cjs.dev.js');
|
7
6
|
var core = require('@valbuild/core');
|
8
7
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
8
|
require('../../dist/unsupportedIterableToArray-ac28611a.cjs.dev.js');
|
@@ -39,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
39
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
40
39
|
key = _Object$entries$_i[0],
|
41
40
|
value = _Object$entries$_i[1];
|
42
|
-
if (
|
41
|
+
if (slicedToArray._typeof(value) === "object" && value !== null && "val" in value) {
|
43
42
|
var valPath = core.Internal.getValPath(value);
|
44
43
|
if (valPath) {
|
45
44
|
valSources.push(valPath);
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-c405fbf0.cjs.prod.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-386a8ae8.cjs.prod.js');
|
7
6
|
var core = require('@valbuild/core');
|
8
7
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
8
|
require('../../dist/unsupportedIterableToArray-42309462.cjs.prod.js');
|
@@ -39,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
39
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
40
39
|
key = _Object$entries$_i[0],
|
41
40
|
value = _Object$entries$_i[1];
|
42
|
-
if (
|
41
|
+
if (slicedToArray._typeof(value) === "object" && value !== null && "val" in value) {
|
43
42
|
var valPath = core.Internal.getValPath(value);
|
44
43
|
if (valPath) {
|
45
44
|
valSources.push(valPath);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-1dc7d2d6.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-a79154e9.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
5
4
|
export * from 'react/jsx-dev-runtime';
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-e7da2c5e.worker.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-7a63acfd.worker.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
|
5
4
|
export * from 'react/jsx-dev-runtime';
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-7b69258f.browser.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-6b2002fa.browser.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
5
4
|
export * from 'react/jsx-runtime';
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-11a666de.cjs.dev.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-129629e4.cjs.dev.js');
|
7
6
|
var core = require('@valbuild/core');
|
8
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
9
8
|
require('../../dist/unsupportedIterableToArray-ac28611a.cjs.dev.js');
|
@@ -39,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
39
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
40
39
|
key = _Object$entries$_i[0],
|
41
40
|
value = _Object$entries$_i[1];
|
42
|
-
if (
|
41
|
+
if (slicedToArray._typeof(value) === "object" && value !== null && "val" in value) {
|
43
42
|
var valPath = core.Internal.getValPath(value);
|
44
43
|
if (valPath) {
|
45
44
|
valSources.push(valPath);
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var slicedToArray = require('../../dist/slicedToArray-c405fbf0.cjs.prod.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-386a8ae8.cjs.prod.js');
|
7
6
|
var core = require('@valbuild/core');
|
8
7
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
9
8
|
require('../../dist/unsupportedIterableToArray-42309462.cjs.prod.js');
|
@@ -39,7 +38,7 @@ var devalProps = function devalProps(type, props) {
|
|
39
38
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
40
39
|
key = _Object$entries$_i[0],
|
41
40
|
value = _Object$entries$_i[1];
|
42
|
-
if (
|
41
|
+
if (slicedToArray._typeof(value) === "object" && value !== null && "val" in value) {
|
43
42
|
var valPath = core.Internal.getValPath(value);
|
44
43
|
if (valPath) {
|
45
44
|
valSources.push(valPath);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-1dc7d2d6.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-a79154e9.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
5
4
|
export * from 'react/jsx-runtime';
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _typeof } from '../../dist/
|
2
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-e7da2c5e.worker.esm.js';
|
1
|
+
import { _ as _slicedToArray, a as _typeof } from '../../dist/slicedToArray-7a63acfd.worker.esm.js';
|
3
2
|
import { Internal } from '@valbuild/core';
|
4
3
|
import * as ReactJSXRuntime from 'react/jsx-runtime';
|
5
4
|
export * from 'react/jsx-runtime';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.60.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val - React internal helpers",
|
6
6
|
"sideEffects": false,
|
@@ -9,12 +9,11 @@
|
|
9
9
|
"test": "jest"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@valbuild/core": "~0.
|
13
|
-
"@valbuild/shared": "~0.
|
14
|
-
"@valbuild/ui": "~0.
|
12
|
+
"@valbuild/core": "~0.60.1",
|
13
|
+
"@valbuild/shared": "~0.60.1",
|
14
|
+
"@valbuild/ui": "~0.60.1",
|
15
15
|
"@vercel/stega": "^0.1.0",
|
16
|
-
"base64-arraybuffer": "^1.0.2"
|
17
|
-
"style-to-object": "^0.4.1"
|
16
|
+
"base64-arraybuffer": "^1.0.2"
|
18
17
|
},
|
19
18
|
"devDependencies": {
|
20
19
|
"@testing-library/react": "^14.0.0",
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
2
|
-
import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
|
1
|
+
import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-6b2002fa.browser.esm.js';
|
3
2
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
3
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
4
|
import React from 'react';
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
6
|
-
var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-129629e4.cjs.dev.js');
|
7
6
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
7
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
8
|
var React = require('react');
|
@@ -21,8 +20,8 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
21
20
|
|
22
21
|
function stegaDecodeString(encodedString) {
|
23
22
|
var encodedBits = stega.vercelStegaDecode(encodedString);
|
24
|
-
if (encodedBits &&
|
25
|
-
if ("origin" in encodedBits && "data" in encodedBits &&
|
23
|
+
if (encodedBits && slicedToArray._typeof(encodedBits) === "object") {
|
24
|
+
if ("origin" in encodedBits && "data" in encodedBits && slicedToArray._typeof(encodedBits.data) === "object" && encodedBits.data && "valPath" in encodedBits.data && typeof encodedBits.data.valPath === "string") {
|
26
25
|
return encodedBits.data.valPath;
|
27
26
|
}
|
28
27
|
}
|
@@ -50,14 +49,14 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
50
49
|
props[attr] = valPath;
|
51
50
|
}
|
52
51
|
}
|
53
|
-
if (props &&
|
52
|
+
if (props && slicedToArray._typeof(props) === "object") {
|
54
53
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
55
54
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
56
55
|
key = _Object$entries$_i[0],
|
57
56
|
value = _Object$entries$_i[1];
|
58
57
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
59
58
|
add(key, value, props, props);
|
60
|
-
} else if (
|
59
|
+
} else if (slicedToArray._typeof(value) === "object" && value !== null) {
|
61
60
|
if (key === "style") {
|
62
61
|
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
63
62
|
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
@@ -182,7 +181,7 @@ function stegaEncode(input, opts) {
|
|
182
181
|
return sourceOrSelector;
|
183
182
|
}
|
184
183
|
if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
|
185
|
-
if (sourceOrSelector &&
|
184
|
+
if (sourceOrSelector && slicedToArray._typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
|
186
185
|
var _key = sourceOrSelector[recOpts.schema.key];
|
187
186
|
if (_key) {
|
188
187
|
var schema = recOpts.schema.items.find(function (s) {
|
@@ -222,7 +221,7 @@ function stegaEncode(input, opts) {
|
|
222
221
|
});
|
223
222
|
}
|
224
223
|
}
|
225
|
-
if (
|
224
|
+
if (slicedToArray._typeof(sourceOrSelector) === "object") {
|
226
225
|
if (!sourceOrSelector) {
|
227
226
|
return null;
|
228
227
|
}
|
@@ -280,7 +279,7 @@ function stegaEncode(input, opts) {
|
|
280
279
|
}
|
281
280
|
return res;
|
282
281
|
}
|
283
|
-
console.error("Could not transform source selector: ".concat(
|
282
|
+
console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
|
284
283
|
return sourceOrSelector;
|
285
284
|
}
|
286
285
|
if (typeof sourceOrSelector === "string") {
|
@@ -302,7 +301,7 @@ function stegaEncode(input, opts) {
|
|
302
301
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
303
302
|
return sourceOrSelector;
|
304
303
|
}
|
305
|
-
console.error("Unexpected type of source selector: ".concat(
|
304
|
+
console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
|
306
305
|
return sourceOrSelector;
|
307
306
|
}
|
308
307
|
return rec(input);
|
@@ -329,7 +328,7 @@ function stegaClean(source) {
|
|
329
328
|
function getModuleIds(input) {
|
330
329
|
var modules = new Set();
|
331
330
|
function rec(sourceOrSelector) {
|
332
|
-
if (
|
331
|
+
if (slicedToArray._typeof(sourceOrSelector) === "object") {
|
333
332
|
if (!sourceOrSelector) {
|
334
333
|
return;
|
335
334
|
}
|
@@ -360,7 +359,7 @@ function getModuleIds(input) {
|
|
360
359
|
}
|
361
360
|
return;
|
362
361
|
}
|
363
|
-
console.error("Could not transform source selector: ".concat(
|
362
|
+
console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
|
364
363
|
return;
|
365
364
|
}
|
366
365
|
if (typeof sourceOrSelector === "string") {
|
@@ -369,7 +368,7 @@ function getModuleIds(input) {
|
|
369
368
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
370
369
|
return;
|
371
370
|
}
|
372
|
-
console.error("Unexpected type of source selector: ".concat(
|
371
|
+
console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
|
373
372
|
return;
|
374
373
|
}
|
375
374
|
rec(input);
|
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var slicedToArray = require('../../dist/slicedToArray-
|
6
|
-
var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
|
5
|
+
var slicedToArray = require('../../dist/slicedToArray-386a8ae8.cjs.prod.js');
|
7
6
|
var ReactJSXRuntime = require('react/jsx-runtime');
|
8
7
|
var jsxRuntimeDev = require('react/jsx-dev-runtime');
|
9
8
|
var React = require('react');
|
@@ -21,8 +20,8 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
21
20
|
|
22
21
|
function stegaDecodeString(encodedString) {
|
23
22
|
var encodedBits = stega.vercelStegaDecode(encodedString);
|
24
|
-
if (encodedBits &&
|
25
|
-
if ("origin" in encodedBits && "data" in encodedBits &&
|
23
|
+
if (encodedBits && slicedToArray._typeof(encodedBits) === "object") {
|
24
|
+
if ("origin" in encodedBits && "data" in encodedBits && slicedToArray._typeof(encodedBits.data) === "object" && encodedBits.data && "valPath" in encodedBits.data && typeof encodedBits.data.valPath === "string") {
|
26
25
|
return encodedBits.data.valPath;
|
27
26
|
}
|
28
27
|
}
|
@@ -50,14 +49,14 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
50
49
|
props[attr] = valPath;
|
51
50
|
}
|
52
51
|
}
|
53
|
-
if (props &&
|
52
|
+
if (props && slicedToArray._typeof(props) === "object") {
|
54
53
|
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
55
54
|
var _Object$entries$_i = slicedToArray._slicedToArray(_Object$entries[_i], 2),
|
56
55
|
key = _Object$entries$_i[0],
|
57
56
|
value = _Object$entries$_i[1];
|
58
57
|
if (typeof value === "string" && value.match(stega.VERCEL_STEGA_REGEX)) {
|
59
58
|
add(key, value, props, props);
|
60
|
-
} else if (
|
59
|
+
} else if (slicedToArray._typeof(value) === "object" && value !== null) {
|
61
60
|
if (key === "style") {
|
62
61
|
for (var _i2 = 0, _Object$entries2 = Object.entries(value); _i2 < _Object$entries2.length; _i2++) {
|
63
62
|
var _Object$entries2$_i = slicedToArray._slicedToArray(_Object$entries2[_i2], 2),
|
@@ -182,7 +181,7 @@ function stegaEncode(input, opts) {
|
|
182
181
|
return sourceOrSelector;
|
183
182
|
}
|
184
183
|
if (recOpts !== null && recOpts !== void 0 && recOpts.schema && isUnionSchema(recOpts === null || recOpts === void 0 ? void 0 : recOpts.schema)) {
|
185
|
-
if (sourceOrSelector &&
|
184
|
+
if (sourceOrSelector && slicedToArray._typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
|
186
185
|
var _key = sourceOrSelector[recOpts.schema.key];
|
187
186
|
if (_key) {
|
188
187
|
var schema = recOpts.schema.items.find(function (s) {
|
@@ -222,7 +221,7 @@ function stegaEncode(input, opts) {
|
|
222
221
|
});
|
223
222
|
}
|
224
223
|
}
|
225
|
-
if (
|
224
|
+
if (slicedToArray._typeof(sourceOrSelector) === "object") {
|
226
225
|
if (!sourceOrSelector) {
|
227
226
|
return null;
|
228
227
|
}
|
@@ -280,7 +279,7 @@ function stegaEncode(input, opts) {
|
|
280
279
|
}
|
281
280
|
return res;
|
282
281
|
}
|
283
|
-
console.error("Could not transform source selector: ".concat(
|
282
|
+
console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
|
284
283
|
return sourceOrSelector;
|
285
284
|
}
|
286
285
|
if (typeof sourceOrSelector === "string") {
|
@@ -302,7 +301,7 @@ function stegaEncode(input, opts) {
|
|
302
301
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
303
302
|
return sourceOrSelector;
|
304
303
|
}
|
305
|
-
console.error("Unexpected type of source selector: ".concat(
|
304
|
+
console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
|
306
305
|
return sourceOrSelector;
|
307
306
|
}
|
308
307
|
return rec(input);
|
@@ -329,7 +328,7 @@ function stegaClean(source) {
|
|
329
328
|
function getModuleIds(input) {
|
330
329
|
var modules = new Set();
|
331
330
|
function rec(sourceOrSelector) {
|
332
|
-
if (
|
331
|
+
if (slicedToArray._typeof(sourceOrSelector) === "object") {
|
333
332
|
if (!sourceOrSelector) {
|
334
333
|
return;
|
335
334
|
}
|
@@ -360,7 +359,7 @@ function getModuleIds(input) {
|
|
360
359
|
}
|
361
360
|
return;
|
362
361
|
}
|
363
|
-
console.error("Could not transform source selector: ".concat(
|
362
|
+
console.error("Could not transform source selector: ".concat(slicedToArray._typeof(sourceOrSelector), " (array: ").concat(Array.isArray(sourceOrSelector), ")"), sourceOrSelector);
|
364
363
|
return;
|
365
364
|
}
|
366
365
|
if (typeof sourceOrSelector === "string") {
|
@@ -369,7 +368,7 @@ function getModuleIds(input) {
|
|
369
368
|
if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
|
370
369
|
return;
|
371
370
|
}
|
372
|
-
console.error("Unexpected type of source selector: ".concat(
|
371
|
+
console.error("Unexpected type of source selector: ".concat(slicedToArray._typeof(sourceOrSelector)));
|
373
372
|
return;
|
374
373
|
}
|
375
374
|
rec(input);
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
2
|
-
import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
|
1
|
+
import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-a79154e9.esm.js';
|
3
2
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
3
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
4
|
import React from 'react';
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { _ as _slicedToArray } from '../../dist/slicedToArray-
|
2
|
-
import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
|
1
|
+
import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-7a63acfd.worker.esm.js';
|
3
2
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
4
3
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
5
4
|
import React from 'react';
|