@valbuild/react 0.64.0 → 0.65.0
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/stega/index.d.ts +2 -0
- package/dist/{slicedToArray-129629e4.cjs.dev.js → slicedToArray-09243dae.cjs.prod.js} +5 -5
- package/dist/{slicedToArray-a79154e9.esm.js → slicedToArray-5391d3c0.esm.js} +5 -5
- package/dist/{slicedToArray-7a63acfd.worker.esm.js → slicedToArray-9ebce1ca.browser.esm.js} +5 -5
- package/dist/{slicedToArray-386a8ae8.cjs.prod.js → slicedToArray-b5020f32.cjs.dev.js} +5 -5
- package/dist/{slicedToArray-6b2002fa.browser.esm.js → slicedToArray-bbda5dad.worker.esm.js} +5 -5
- package/dist/toConsumableArray-1969d309.cjs.dev.js +21 -0
- package/dist/toConsumableArray-299fbd28.worker.esm.js +19 -0
- package/dist/toConsumableArray-5ba6766a.browser.esm.js +19 -0
- package/dist/toConsumableArray-9f3cfc47.esm.js +19 -0
- package/dist/toConsumableArray-b772a825.cjs.prod.js +21 -0
- package/dist/unsupportedIterableToArray-0ac4ac41.browser.esm.js +15 -0
- package/dist/unsupportedIterableToArray-10eaf95e.worker.esm.js +15 -0
- package/dist/unsupportedIterableToArray-1aadf9fb.cjs.prod.js +18 -0
- package/dist/unsupportedIterableToArray-20a9209f.cjs.dev.js +18 -0
- package/dist/unsupportedIterableToArray-f57eb659.esm.js +15 -0
- package/dist/valbuild-react.cjs.d.ts +3 -3
- package/internal/dist/valbuild-react-internal.browser.esm.js +2 -2
- package/internal/dist/valbuild-react-internal.cjs.d.ts +2 -2
- package/internal/dist/valbuild-react-internal.cjs.dev.js +2 -2
- package/internal/dist/valbuild-react-internal.cjs.prod.js +2 -2
- package/internal/dist/valbuild-react-internal.esm.js +2 -2
- package/internal/dist/valbuild-react-internal.worker.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.d.ts +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.d.ts +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +2 -2
- package/package.json +4 -4
- package/stega/dist/valbuild-react-stega.browser.esm.js +44 -38
- package/stega/dist/valbuild-react-stega.cjs.d.ts +2 -2
- package/stega/dist/valbuild-react-stega.cjs.dev.js +45 -37
- package/stega/dist/valbuild-react-stega.cjs.prod.js +45 -37
- package/stega/dist/valbuild-react-stega.esm.js +44 -38
- package/stega/dist/valbuild-react-stega.worker.esm.js +44 -38
- package/dist/toConsumableArray-0a75a603.worker.esm.js +0 -19
- package/dist/toConsumableArray-0ccd58b7.esm.js +0 -19
- package/dist/toConsumableArray-5a71fbb3.browser.esm.js +0 -19
- package/dist/toConsumableArray-b2d28ffa.cjs.dev.js +0 -21
- package/dist/toConsumableArray-b5e3b83f.cjs.prod.js +0 -21
- package/dist/unsupportedIterableToArray-42309462.cjs.prod.js +0 -19
- package/dist/unsupportedIterableToArray-50359a05.worker.esm.js +0 -16
- package/dist/unsupportedIterableToArray-7c30dadf.esm.js +0 -16
- package/dist/unsupportedIterableToArray-ac28611a.cjs.dev.js +0 -19
- package/dist/unsupportedIterableToArray-cce3cb41.browser.esm.js +0 -16
- package/dist/valbuild-react.cjs.d.ts.map +0 -1
- package/internal/dist/valbuild-react-internal.cjs.d.ts.map +0 -1
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.d.ts.map +0 -1
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.d.ts.map +0 -1
- package/stega/dist/valbuild-react-stega.cjs.d.ts.map +0 -1
@@ -1,11 +1,11 @@
|
|
1
|
-
import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-
|
1
|
+
import { a as _typeof, _ as _slicedToArray } from '../../dist/slicedToArray-bbda5dad.worker.esm.js';
|
2
2
|
import ReactJSXRuntime__default from 'react/jsx-runtime';
|
3
3
|
import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
|
4
4
|
import React from 'react';
|
5
5
|
import { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
|
6
|
-
import { _ as _toConsumableArray } from '../../dist/toConsumableArray-
|
6
|
+
import { _ as _toConsumableArray } from '../../dist/toConsumableArray-299fbd28.worker.esm.js';
|
7
7
|
import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
|
8
|
-
import '../../dist/unsupportedIterableToArray-
|
8
|
+
import '../../dist/unsupportedIterableToArray-10eaf95e.worker.esm.js';
|
9
9
|
|
10
10
|
function stegaDecodeString(encodedString) {
|
11
11
|
if (!encodedString || typeof encodedString !== "string") return;
|
@@ -17,18 +17,15 @@ function stegaDecodeString(encodedString) {
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
|
20
|
-
// import { IS_AUTO_TAG_JSX_ENABLED } from ".";
|
21
|
-
|
22
20
|
var isIntrinsicElement = function isIntrinsicElement(type) {
|
23
21
|
// TODO: think this is not correct, but good enough for now?
|
24
22
|
return typeof type === "string";
|
25
23
|
};
|
26
24
|
var addValPathIfFound = function addValPathIfFound(type, props) {
|
27
25
|
// TODO: increases performance. Unsure about the implications right now - seems to work. Remember to look at RSC and client (and pages/?).
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
if (!IS_AUTO_TAG_JSX_ENABLED()) {
|
27
|
+
return;
|
28
|
+
}
|
32
29
|
var valSources = new Set();
|
33
30
|
|
34
31
|
// skip auto-tagging fragments since we can't add attributes to them
|
@@ -65,6 +62,15 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
65
62
|
} else {
|
66
63
|
console.error("Val: Could not auto tag. Reason: unexpected types found while cleaning and / or adding val path data props.");
|
67
64
|
}
|
65
|
+
} else {
|
66
|
+
if (key === "href") {
|
67
|
+
// This is a hack to make sure href values in Next Link components are cleaned (seems to be a React Server Component issue?)
|
68
|
+
var _cleanValue = vercelStegaSplit(value).cleaned;
|
69
|
+
if (typeof key === "string" && !Array.isArray(container)) {
|
70
|
+
container[key] = _cleanValue;
|
71
|
+
valSources.add(valPath);
|
72
|
+
}
|
73
|
+
}
|
68
74
|
}
|
69
75
|
}
|
70
76
|
}
|
@@ -99,6 +105,9 @@ var addValPathIfFound = function addValPathIfFound(type, props) {
|
|
99
105
|
}
|
100
106
|
if (valSources.size > 0 && !props["data-val-path"]) {
|
101
107
|
props["data-val-path"] = Array.from(valSources).join(",");
|
108
|
+
if (IS_RSC()) {
|
109
|
+
props["data-val-rsc"] = "true";
|
110
|
+
}
|
102
111
|
}
|
103
112
|
}
|
104
113
|
};
|
@@ -124,15 +133,15 @@ function autoTagJSX() {
|
|
124
133
|
* include both, so one of them will be set with `undefined` values.
|
125
134
|
*/
|
126
135
|
React.createElement = WrapJsx(React.createElement);
|
127
|
-
JsxDev.jsx && (
|
128
|
-
JsxPro.jsx && (
|
129
|
-
JsxDev.jsxs && (
|
130
|
-
JsxPro.jsxs && (
|
131
|
-
JsxDev.jsxDEV && (
|
132
|
-
JsxPro.jsxDEV && (
|
136
|
+
JsxDev.jsx && (/* */JsxDev.jsx = WrapJsx(JsxDev.jsx));
|
137
|
+
JsxPro.jsx && (/* */JsxPro.jsx = WrapJsx(JsxPro.jsx));
|
138
|
+
JsxDev.jsxs && (/* */JsxDev.jsxs = WrapJsx(JsxDev.jsxs));
|
139
|
+
JsxPro.jsxs && (/* */JsxPro.jsxs = WrapJsx(JsxPro.jsxs));
|
140
|
+
JsxDev.jsxDEV && (/**/JsxDev.jsxDEV = WrapJsx(JsxDev.jsxDEV));
|
141
|
+
JsxPro.jsxDEV && (/**/JsxPro.jsxDEV = WrapJsx(JsxPro.jsxDEV));
|
133
142
|
}
|
134
143
|
|
135
|
-
function
|
144
|
+
function _toPrimitive(t, r) {
|
136
145
|
if ("object" != typeof t || !t) return t;
|
137
146
|
var e = t[Symbol.toPrimitive];
|
138
147
|
if (void 0 !== e) {
|
@@ -143,24 +152,18 @@ function toPrimitive(t, r) {
|
|
143
152
|
return ("string" === r ? String : Number)(t);
|
144
153
|
}
|
145
154
|
|
146
|
-
function
|
147
|
-
var i =
|
148
|
-
return "symbol" == typeof i ? i :
|
155
|
+
function _toPropertyKey(t) {
|
156
|
+
var i = _toPrimitive(t, "string");
|
157
|
+
return "symbol" == typeof i ? i : i + "";
|
149
158
|
}
|
150
159
|
|
151
|
-
function _defineProperty(
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
writable: true
|
159
|
-
});
|
160
|
-
} else {
|
161
|
-
obj[key] = value;
|
162
|
-
}
|
163
|
-
return obj;
|
160
|
+
function _defineProperty(e, r, t) {
|
161
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
162
|
+
value: t,
|
163
|
+
enumerable: !0,
|
164
|
+
configurable: !0,
|
165
|
+
writable: !0
|
166
|
+
}) : e[r] = t, e;
|
164
167
|
}
|
165
168
|
|
166
169
|
function ownKeys(e, r) {
|
@@ -213,6 +216,7 @@ function stegaEncode(input, opts) {
|
|
213
216
|
if (sourceOrSelector && _typeof(sourceOrSelector) === "object" && recOpts.schema.key && typeof recOpts.schema.key === "string") {
|
214
217
|
var _key = sourceOrSelector[recOpts.schema.key];
|
215
218
|
if (_key) {
|
219
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
216
220
|
var schema = recOpts.schema.items.find(function (s) {
|
217
221
|
if (isObjectSchema(s) && s.items && s.items[recOpts.schema.key]) {
|
218
222
|
var keySchema = s.items[recOpts.schema.key];
|
@@ -273,11 +277,6 @@ function stegaEncode(input, opts) {
|
|
273
277
|
if (sourceOrSelector[VAL_EXTENSION] === "file" && typeof sourceOrSelector[FILE_REF_PROP] === "string") {
|
274
278
|
var fileSelector = Internal.convertFileSource(sourceOrSelector);
|
275
279
|
var url = fileSelector.url;
|
276
|
-
if (opts.disabled) {
|
277
|
-
url = fileSelector.url;
|
278
|
-
} else {
|
279
|
-
url = "/api/val/files/public" + fileSelector.url;
|
280
|
-
}
|
281
280
|
return _objectSpread2(_objectSpread2({}, fileSelector), {}, {
|
282
281
|
url: rec(url, recOpts)
|
283
282
|
});
|
@@ -413,6 +412,7 @@ function getModuleIds(input) {
|
|
413
412
|
}
|
414
413
|
|
415
414
|
// NOTE: the exports of this file needs to be kept in sync with ValQuickJSRuntime
|
415
|
+
var isRSC = false;
|
416
416
|
var autoTagJSXEnabled = false;
|
417
417
|
function IS_AUTO_TAG_JSX_ENABLED() {
|
418
418
|
return autoTagJSXEnabled;
|
@@ -420,5 +420,11 @@ function IS_AUTO_TAG_JSX_ENABLED() {
|
|
420
420
|
function SET_AUTO_TAG_JSX_ENABLED(enabled) {
|
421
421
|
autoTagJSXEnabled = enabled;
|
422
422
|
}
|
423
|
+
function IS_RSC() {
|
424
|
+
return isRSC;
|
425
|
+
}
|
426
|
+
function SET_RSC(enabled) {
|
427
|
+
isRSC = enabled;
|
428
|
+
}
|
423
429
|
|
424
|
-
export { IS_AUTO_TAG_JSX_ENABLED, SET_AUTO_TAG_JSX_ENABLED, autoTagJSX, getModuleIds, stegaClean, stegaDecodeString, stegaEncode };
|
430
|
+
export { IS_AUTO_TAG_JSX_ENABLED, IS_RSC, SET_AUTO_TAG_JSX_ENABLED, SET_RSC, autoTagJSX, getModuleIds, stegaClean, stegaDecodeString, stegaEncode };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-50359a05.worker.esm.js';
|
2
|
-
|
3
|
-
function _arrayWithoutHoles(arr) {
|
4
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
5
|
-
}
|
6
|
-
|
7
|
-
function _iterableToArray(iter) {
|
8
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
9
|
-
}
|
10
|
-
|
11
|
-
function _nonIterableSpread() {
|
12
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
13
|
-
}
|
14
|
-
|
15
|
-
function _toConsumableArray(arr) {
|
16
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
17
|
-
}
|
18
|
-
|
19
|
-
export { _toConsumableArray as _ };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-7c30dadf.esm.js';
|
2
|
-
|
3
|
-
function _arrayWithoutHoles(arr) {
|
4
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
5
|
-
}
|
6
|
-
|
7
|
-
function _iterableToArray(iter) {
|
8
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
9
|
-
}
|
10
|
-
|
11
|
-
function _nonIterableSpread() {
|
12
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
13
|
-
}
|
14
|
-
|
15
|
-
function _toConsumableArray(arr) {
|
16
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
17
|
-
}
|
18
|
-
|
19
|
-
export { _toConsumableArray as _ };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cce3cb41.browser.esm.js';
|
2
|
-
|
3
|
-
function _arrayWithoutHoles(arr) {
|
4
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
5
|
-
}
|
6
|
-
|
7
|
-
function _iterableToArray(iter) {
|
8
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
9
|
-
}
|
10
|
-
|
11
|
-
function _nonIterableSpread() {
|
12
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
13
|
-
}
|
14
|
-
|
15
|
-
function _toConsumableArray(arr) {
|
16
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
17
|
-
}
|
18
|
-
|
19
|
-
export { _toConsumableArray as _ };
|
@@ -1,21 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var unsupportedIterableToArray = require('./unsupportedIterableToArray-ac28611a.cjs.dev.js');
|
4
|
-
|
5
|
-
function _arrayWithoutHoles(arr) {
|
6
|
-
if (Array.isArray(arr)) return unsupportedIterableToArray._arrayLikeToArray(arr);
|
7
|
-
}
|
8
|
-
|
9
|
-
function _iterableToArray(iter) {
|
10
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
11
|
-
}
|
12
|
-
|
13
|
-
function _nonIterableSpread() {
|
14
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
15
|
-
}
|
16
|
-
|
17
|
-
function _toConsumableArray(arr) {
|
18
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray._unsupportedIterableToArray(arr) || _nonIterableSpread();
|
19
|
-
}
|
20
|
-
|
21
|
-
exports._toConsumableArray = _toConsumableArray;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var unsupportedIterableToArray = require('./unsupportedIterableToArray-42309462.cjs.prod.js');
|
4
|
-
|
5
|
-
function _arrayWithoutHoles(arr) {
|
6
|
-
if (Array.isArray(arr)) return unsupportedIterableToArray._arrayLikeToArray(arr);
|
7
|
-
}
|
8
|
-
|
9
|
-
function _iterableToArray(iter) {
|
10
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
11
|
-
}
|
12
|
-
|
13
|
-
function _nonIterableSpread() {
|
14
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
15
|
-
}
|
16
|
-
|
17
|
-
function _toConsumableArray(arr) {
|
18
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray._unsupportedIterableToArray(arr) || _nonIterableSpread();
|
19
|
-
}
|
20
|
-
|
21
|
-
exports._toConsumableArray = _toConsumableArray;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
function _arrayLikeToArray(arr, len) {
|
4
|
-
if (len == null || len > arr.length) len = arr.length;
|
5
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
6
|
-
return arr2;
|
7
|
-
}
|
8
|
-
|
9
|
-
function _unsupportedIterableToArray(o, minLen) {
|
10
|
-
if (!o) return;
|
11
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
12
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
13
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
14
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
16
|
-
}
|
17
|
-
|
18
|
-
exports._arrayLikeToArray = _arrayLikeToArray;
|
19
|
-
exports._unsupportedIterableToArray = _unsupportedIterableToArray;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
function _arrayLikeToArray(arr, len) {
|
2
|
-
if (len == null || len > arr.length) len = arr.length;
|
3
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
4
|
-
return arr2;
|
5
|
-
}
|
6
|
-
|
7
|
-
function _unsupportedIterableToArray(o, minLen) {
|
8
|
-
if (!o) return;
|
9
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
10
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
11
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
12
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
13
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
14
|
-
}
|
15
|
-
|
16
|
-
export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
|
@@ -1,16 +0,0 @@
|
|
1
|
-
function _arrayLikeToArray(arr, len) {
|
2
|
-
if (len == null || len > arr.length) len = arr.length;
|
3
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
4
|
-
return arr2;
|
5
|
-
}
|
6
|
-
|
7
|
-
function _unsupportedIterableToArray(o, minLen) {
|
8
|
-
if (!o) return;
|
9
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
10
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
11
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
12
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
13
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
14
|
-
}
|
15
|
-
|
16
|
-
export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
function _arrayLikeToArray(arr, len) {
|
4
|
-
if (len == null || len > arr.length) len = arr.length;
|
5
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
6
|
-
return arr2;
|
7
|
-
}
|
8
|
-
|
9
|
-
function _unsupportedIterableToArray(o, minLen) {
|
10
|
-
if (!o) return;
|
11
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
12
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
13
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
14
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
16
|
-
}
|
17
|
-
|
18
|
-
exports._arrayLikeToArray = _arrayLikeToArray;
|
19
|
-
exports._unsupportedIterableToArray = _unsupportedIterableToArray;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
function _arrayLikeToArray(arr, len) {
|
2
|
-
if (len == null || len > arr.length) len = arr.length;
|
3
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
4
|
-
return arr2;
|
5
|
-
}
|
6
|
-
|
7
|
-
function _unsupportedIterableToArray(o, minLen) {
|
8
|
-
if (!o) return;
|
9
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
10
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
11
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
12
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
13
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
14
|
-
}
|
15
|
-
|
16
|
-
export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"valbuild-react.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"valbuild-react-internal.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/internal/index.d.ts"],"names":[],"mappings":"AAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"valbuild-react-jsx-dev-runtime.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/jsx-dev-runtime.d.ts"],"names":[],"mappings":"AAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"valbuild-react-jsx-runtime.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/jsx-runtime.d.ts"],"names":[],"mappings":"AAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"valbuild-react-stega.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/stega/index.d.ts"],"names":[],"mappings":"AAAA"}
|