@valbuild/react 0.28.0 → 0.30.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.
Files changed (46) hide show
  1. package/dist/{ValProvider-f27d153f.worker.esm.js → ValProviderInternal-06aa7448.esm.js} +10 -14
  2. package/dist/ValProviderInternal-172144ad.cjs.js +7 -0
  3. package/dist/{ValProvider-4b3dcddd.cjs.prod.js → ValProviderInternal-172144ad.cjs.prod.js} +12 -32
  4. package/dist/{ValProvider-7be3721e.cjs.dev.js → ValProviderInternal-2faf106c.cjs.dev.js} +12 -32
  5. package/dist/{ValProvider-772ad108.browser.esm.js → ValProviderInternal-4c19d576.browser.esm.js} +10 -16
  6. package/dist/{ValProvider-ecdd4b68.esm.js → ValProviderInternal-5a5100ab.worker.esm.js} +10 -16
  7. package/dist/ValUI-46395962.cjs.js +7 -0
  8. package/dist/{ValUI-702583bb.cjs.prod.js → ValUI-46395962.cjs.prod.js} +10 -8
  9. package/dist/{ValUI-1bebc456.browser.esm.js → ValUI-697700f4.browser.esm.js} +8 -6
  10. package/dist/{ValUI-2dc20794.esm.js → ValUI-9a231a97.esm.js} +8 -6
  11. package/dist/{ValUI-968a38fb.cjs.dev.js → ValUI-ab7ef83f.cjs.dev.js} +10 -8
  12. package/dist/{ValUI-a93bea98.worker.esm.js → ValUI-b8544437.worker.esm.js} +8 -6
  13. package/dist/declarations/src/ValProvider.d.ts +2 -13
  14. package/dist/declarations/src/ValProviderInternal.d.ts +15 -0
  15. package/dist/declarations/src/ValRichText.d.ts +3 -2
  16. package/dist/declarations/src/index.d.ts +2 -1
  17. package/dist/{defineProperty-034d0378.browser.esm.js → defineProperty-12b5bd29.esm.js} +1 -1
  18. package/dist/{defineProperty-18559492.worker.esm.js → defineProperty-a4bf59bc.worker.esm.js} +1 -1
  19. package/dist/{defineProperty-b209a901.esm.js → defineProperty-f319cb47.browser.esm.js} +1 -1
  20. package/dist/{slicedToArray-4510c35a.worker.esm.js → slicedToArray-331bebbb.esm.js} +16 -16
  21. package/dist/{slicedToArray-5418adeb.esm.js → slicedToArray-85f6bb43.browser.esm.js} +16 -16
  22. package/dist/{slicedToArray-964e1994.browser.esm.js → slicedToArray-d4c4a4ed.worker.esm.js} +16 -16
  23. package/dist/valbuild-react.browser.esm.js +21 -8
  24. package/dist/valbuild-react.cjs.dev.js +45 -8
  25. package/dist/valbuild-react.cjs.prod.js +45 -8
  26. package/dist/valbuild-react.esm.js +21 -8
  27. package/dist/valbuild-react.worker.esm.js +12 -7
  28. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +1 -1
  29. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +1 -1
  30. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +1 -1
  31. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +1 -1
  32. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +1 -1
  33. package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +1 -1
  34. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +1 -1
  35. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +1 -1
  36. package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +1 -1
  37. package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +1 -1
  38. package/package.json +3 -3
  39. package/stega/dist/valbuild-react-stega.browser.esm.js +2 -2
  40. package/stega/dist/valbuild-react-stega.cjs.dev.js +1 -1
  41. package/stega/dist/valbuild-react-stega.cjs.prod.js +1 -1
  42. package/stega/dist/valbuild-react-stega.esm.js +2 -2
  43. package/stega/dist/valbuild-react-stega.worker.esm.js +2 -2
  44. package/dist/ValUI-702583bb.cjs.js +0 -7
  45. package/dist/{slicedToArray-1fc98f25.cjs.prod.js → slicedToArray-a2a426c7.cjs.prod.js} +15 -15
  46. package/dist/{slicedToArray-fb0bef7d.cjs.dev.js → slicedToArray-a9d0d9cd.cjs.dev.js} +15 -15
@@ -1,18 +1,3 @@
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
1
  function _arrayWithHoles(arr) {
17
2
  if (Array.isArray(arr)) return arr;
18
3
  }
@@ -45,6 +30,21 @@ function _iterableToArrayLimit(r, l) {
45
30
  }
46
31
  }
47
32
 
33
+ function _arrayLikeToArray(arr, len) {
34
+ if (len == null || len > arr.length) len = arr.length;
35
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
36
+ return arr2;
37
+ }
38
+
39
+ function _unsupportedIterableToArray(o, minLen) {
40
+ if (!o) return;
41
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
42
+ var n = Object.prototype.toString.call(o).slice(8, -1);
43
+ if (n === "Object" && o.constructor) n = o.constructor.name;
44
+ if (n === "Map" || n === "Set") return Array.from(o);
45
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
46
+ }
47
+
48
48
  function _nonIterableRest() {
49
49
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
50
50
  }
@@ -53,4 +53,4 @@ function _slicedToArray(arr, i) {
53
53
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
54
54
  }
55
55
 
56
- export { _unsupportedIterableToArray as _, _slicedToArray as a };
56
+ export { _slicedToArray as _, _unsupportedIterableToArray as a };
@@ -1,18 +1,3 @@
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
1
  function _arrayWithHoles(arr) {
17
2
  if (Array.isArray(arr)) return arr;
18
3
  }
@@ -45,6 +30,21 @@ function _iterableToArrayLimit(r, l) {
45
30
  }
46
31
  }
47
32
 
33
+ function _arrayLikeToArray(arr, len) {
34
+ if (len == null || len > arr.length) len = arr.length;
35
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
36
+ return arr2;
37
+ }
38
+
39
+ function _unsupportedIterableToArray(o, minLen) {
40
+ if (!o) return;
41
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
42
+ var n = Object.prototype.toString.call(o).slice(8, -1);
43
+ if (n === "Object" && o.constructor) n = o.constructor.name;
44
+ if (n === "Map" || n === "Set") return Array.from(o);
45
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
46
+ }
47
+
48
48
  function _nonIterableRest() {
49
49
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
50
50
  }
@@ -53,4 +53,4 @@ function _slicedToArray(arr, i) {
53
53
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
54
54
  }
55
55
 
56
- export { _unsupportedIterableToArray as _, _slicedToArray as a };
56
+ export { _slicedToArray as _, _unsupportedIterableToArray as a };
@@ -1,14 +1,26 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-772ad108.browser.esm.js';
2
- import React from 'react';
3
- import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-964e1994.browser.esm.js';
5
- import './defineProperty-034d0378.browser.esm.js';
6
- import '@valbuild/core/fp';
7
- import '@valbuild/core';
1
+ export { useValApi, useValStore } from './ValProviderInternal-4c19d576.browser.esm.js';
2
+ import React, { lazy } from 'react';
3
+ import { jsx, Fragment } from 'react/jsx-runtime';
4
+
5
+ var ValProviderInternal = /*#__PURE__*/lazy(function () {
6
+ return import('./ValProviderInternal-4c19d576.browser.esm.js');
7
+ }) ;
8
+ function ValProvider(_ref) {
9
+ var children = _ref.children;
10
+ if (ValProviderInternal) {
11
+ return /*#__PURE__*/jsx(ValProviderInternal, {
12
+ children: children
13
+ });
14
+ }
15
+ return /*#__PURE__*/jsx(Fragment, {
16
+ children: children
17
+ });
18
+ }
8
19
 
9
20
  /* eslint-disable @typescript-eslint/ban-types */
10
21
  function ValRichText(_ref) {
11
22
  var theme = _ref.theme,
23
+ className = _ref.className,
12
24
  children = _ref.children;
13
25
  var root = children;
14
26
  function withRenderTag(clazz, current) {
@@ -140,9 +152,10 @@ function ValRichText(_ref) {
140
152
  });
141
153
  }
142
154
  return /*#__PURE__*/jsx("div", {
155
+ className: className,
143
156
  "data-val-path": root.valPath,
144
157
  children: root.children.map(toReact)
145
158
  });
146
159
  }
147
160
 
148
- export { ValRichText };
161
+ export { ValProvider, ValRichText };
@@ -2,21 +2,51 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('./ValProvider-7be3721e.cjs.dev.js');
5
+ var ValProviderInternal$1 = require('./ValProviderInternal-2faf106c.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
- require('./slicedToArray-fb0bef7d.cjs.dev.js');
9
- require('./defineProperty-c82a49b0.cjs.dev.js');
10
- require('@valbuild/core/fp');
11
- require('@valbuild/core');
12
8
 
13
9
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
10
 
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n["default"] = e;
26
+ return Object.freeze(n);
27
+ }
28
+
15
29
  var React__default = /*#__PURE__*/_interopDefault(React);
16
30
 
31
+ var ValProviderInternal = typeof window !== "undefined" ? /*#__PURE__*/React.lazy(function () {
32
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValProviderInternal-2faf106c.cjs.dev.js')); });
33
+ }) : null;
34
+ function ValProvider(_ref) {
35
+ var children = _ref.children;
36
+ if (ValProviderInternal) {
37
+ return /*#__PURE__*/ReactJSXRuntime.jsx(ValProviderInternal, {
38
+ children: children
39
+ });
40
+ }
41
+ return /*#__PURE__*/ReactJSXRuntime.jsx(ReactJSXRuntime.Fragment, {
42
+ children: children
43
+ });
44
+ }
45
+
17
46
  /* eslint-disable @typescript-eslint/ban-types */
18
47
  function ValRichText(_ref) {
19
48
  var theme = _ref.theme,
49
+ className = _ref.className,
20
50
  children = _ref.children;
21
51
  var root = children;
22
52
  function withRenderTag(clazz, current) {
@@ -148,12 +178,19 @@ function ValRichText(_ref) {
148
178
  });
149
179
  }
150
180
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
181
+ className: className,
151
182
  "data-val-path": root.valPath,
152
183
  children: root.children.map(toReact)
153
184
  });
154
185
  }
155
186
 
156
- exports.ValProvider = ValProvider.ValProvider;
157
- exports.useValApi = ValProvider.useValApi;
158
- exports.useValStore = ValProvider.useValStore;
187
+ Object.defineProperty(exports, 'useValApi', {
188
+ enumerable: true,
189
+ get: function () { return ValProviderInternal$1.useValApi; }
190
+ });
191
+ Object.defineProperty(exports, 'useValStore', {
192
+ enumerable: true,
193
+ get: function () { return ValProviderInternal$1.useValStore; }
194
+ });
195
+ exports.ValProvider = ValProvider;
159
196
  exports.ValRichText = ValRichText;
@@ -2,21 +2,51 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('./ValProvider-4b3dcddd.cjs.prod.js');
5
+ var ValProviderInternal$1 = require('./ValProviderInternal-172144ad.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
- require('./slicedToArray-1fc98f25.cjs.prod.js');
9
- require('./defineProperty-36ed93cd.cjs.prod.js');
10
- require('@valbuild/core/fp');
11
- require('@valbuild/core');
12
8
 
13
9
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
10
 
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n["default"] = e;
26
+ return Object.freeze(n);
27
+ }
28
+
15
29
  var React__default = /*#__PURE__*/_interopDefault(React);
16
30
 
31
+ var ValProviderInternal = typeof window !== "undefined" ? /*#__PURE__*/React.lazy(function () {
32
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValProviderInternal-172144ad.cjs.prod.js')); });
33
+ }) : null;
34
+ function ValProvider(_ref) {
35
+ var children = _ref.children;
36
+ if (ValProviderInternal) {
37
+ return /*#__PURE__*/ReactJSXRuntime.jsx(ValProviderInternal, {
38
+ children: children
39
+ });
40
+ }
41
+ return /*#__PURE__*/ReactJSXRuntime.jsx(ReactJSXRuntime.Fragment, {
42
+ children: children
43
+ });
44
+ }
45
+
17
46
  /* eslint-disable @typescript-eslint/ban-types */
18
47
  function ValRichText(_ref) {
19
48
  var theme = _ref.theme,
49
+ className = _ref.className,
20
50
  children = _ref.children;
21
51
  var root = children;
22
52
  function withRenderTag(clazz, current) {
@@ -148,12 +178,19 @@ function ValRichText(_ref) {
148
178
  });
149
179
  }
150
180
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
181
+ className: className,
151
182
  "data-val-path": root.valPath,
152
183
  children: root.children.map(toReact)
153
184
  });
154
185
  }
155
186
 
156
- exports.ValProvider = ValProvider.ValProvider;
157
- exports.useValApi = ValProvider.useValApi;
158
- exports.useValStore = ValProvider.useValStore;
187
+ Object.defineProperty(exports, 'useValApi', {
188
+ enumerable: true,
189
+ get: function () { return ValProviderInternal$1.useValApi; }
190
+ });
191
+ Object.defineProperty(exports, 'useValStore', {
192
+ enumerable: true,
193
+ get: function () { return ValProviderInternal$1.useValStore; }
194
+ });
195
+ exports.ValProvider = ValProvider;
159
196
  exports.ValRichText = ValRichText;
@@ -1,14 +1,26 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-ecdd4b68.esm.js';
2
- import React from 'react';
3
- import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-5418adeb.esm.js';
5
- import './defineProperty-b209a901.esm.js';
6
- import '@valbuild/core/fp';
7
- import '@valbuild/core';
1
+ export { useValApi, useValStore } from './ValProviderInternal-06aa7448.esm.js';
2
+ import React, { lazy } from 'react';
3
+ import { jsx, Fragment } from 'react/jsx-runtime';
4
+
5
+ var ValProviderInternal = typeof window !== "undefined" ? /*#__PURE__*/lazy(function () {
6
+ return import('./ValProviderInternal-06aa7448.esm.js');
7
+ }) : null;
8
+ function ValProvider(_ref) {
9
+ var children = _ref.children;
10
+ if (ValProviderInternal) {
11
+ return /*#__PURE__*/jsx(ValProviderInternal, {
12
+ children: children
13
+ });
14
+ }
15
+ return /*#__PURE__*/jsx(Fragment, {
16
+ children: children
17
+ });
18
+ }
8
19
 
9
20
  /* eslint-disable @typescript-eslint/ban-types */
10
21
  function ValRichText(_ref) {
11
22
  var theme = _ref.theme,
23
+ className = _ref.className,
12
24
  children = _ref.children;
13
25
  var root = children;
14
26
  function withRenderTag(clazz, current) {
@@ -140,9 +152,10 @@ function ValRichText(_ref) {
140
152
  });
141
153
  }
142
154
  return /*#__PURE__*/jsx("div", {
155
+ className: className,
143
156
  "data-val-path": root.valPath,
144
157
  children: root.children.map(toReact)
145
158
  });
146
159
  }
147
160
 
148
- export { ValRichText };
161
+ export { ValProvider, ValRichText };
@@ -1,14 +1,18 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-f27d153f.worker.esm.js';
1
+ export { useValApi, useValStore } from './ValProviderInternal-5a5100ab.worker.esm.js';
2
2
  import React from 'react';
3
- import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-4510c35a.worker.esm.js';
5
- import './defineProperty-18559492.worker.esm.js';
6
- import '@valbuild/core/fp';
7
- import '@valbuild/core';
3
+ import { jsx, Fragment } from 'react/jsx-runtime';
4
+
5
+ function ValProvider(_ref) {
6
+ var children = _ref.children;
7
+ return /*#__PURE__*/jsx(Fragment, {
8
+ children: children
9
+ });
10
+ }
8
11
 
9
12
  /* eslint-disable @typescript-eslint/ban-types */
10
13
  function ValRichText(_ref) {
11
14
  var theme = _ref.theme,
15
+ className = _ref.className,
12
16
  children = _ref.children;
13
17
  var root = children;
14
18
  function withRenderTag(clazz, current) {
@@ -140,9 +144,10 @@ function ValRichText(_ref) {
140
144
  });
141
145
  }
142
146
  return /*#__PURE__*/jsx("div", {
147
+ className: className,
143
148
  "data-val-path": root.valPath,
144
149
  children: root.children.map(toReact)
145
150
  });
146
151
  }
147
152
 
148
- export { ValRichText };
153
+ export { ValProvider, ValRichText };
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-964e1994.browser.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-85f6bb43.browser.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
5
5
  export * from 'react/jsx-dev-runtime';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
6
- var slicedToArray = require('../../dist/slicedToArray-fb0bef7d.cjs.dev.js');
6
+ var slicedToArray = require('../../dist/slicedToArray-a9d0d9cd.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
6
- var slicedToArray = require('../../dist/slicedToArray-1fc98f25.cjs.prod.js');
6
+ var slicedToArray = require('../../dist/slicedToArray-a2a426c7.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-5418adeb.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-331bebbb.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
5
5
  export * from 'react/jsx-dev-runtime';
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-4510c35a.worker.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-d4c4a4ed.worker.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as jsxRuntimeDev from 'react/jsx-dev-runtime';
5
5
  export * from 'react/jsx-dev-runtime';
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-964e1994.browser.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-85f6bb43.browser.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as ReactJSXRuntime from 'react/jsx-runtime';
5
5
  export * from 'react/jsx-runtime';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
6
- var slicedToArray = require('../../dist/slicedToArray-fb0bef7d.cjs.dev.js');
6
+ var slicedToArray = require('../../dist/slicedToArray-a9d0d9cd.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var ReactJSXRuntime = require('react/jsx-runtime');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
6
- var slicedToArray = require('../../dist/slicedToArray-1fc98f25.cjs.prod.js');
6
+ var slicedToArray = require('../../dist/slicedToArray-a2a426c7.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var ReactJSXRuntime = require('react/jsx-runtime');
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-5418adeb.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-331bebbb.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as ReactJSXRuntime from 'react/jsx-runtime';
5
5
  export * from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-4510c35a.worker.esm.js';
2
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-d4c4a4ed.worker.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import * as ReactJSXRuntime from 'react/jsx-runtime';
5
5
  export * from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "private": false,
5
5
  "description": "Val - React internal helpers",
6
6
  "sideEffects": false,
@@ -9,8 +9,8 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "dependencies": {
12
- "@valbuild/core": "~0.28.0",
13
- "@valbuild/ui": "~0.28.0",
12
+ "@valbuild/core": "~0.30.0",
13
+ "@valbuild/ui": "~0.30.0",
14
14
  "@vercel/stega": "^0.1.0",
15
15
  "base64-arraybuffer": "^1.0.2",
16
16
  "style-to-object": "^0.4.1"
@@ -1,10 +1,10 @@
1
- import { a as _slicedToArray } from '../../dist/slicedToArray-964e1994.browser.esm.js';
1
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-85f6bb43.browser.esm.js';
2
2
  import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
3
3
  import ReactJSXRuntime__default from 'react/jsx-runtime';
4
4
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
5
5
  import React from 'react';
6
6
  import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { a as _defineProperty } from '../../dist/defineProperty-034d0378.browser.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-f319cb47.browser.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/ui';
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var slicedToArray = require('../../dist/slicedToArray-fb0bef7d.cjs.dev.js');
5
+ var slicedToArray = require('../../dist/slicedToArray-a9d0d9cd.cjs.dev.js');
6
6
  var _typeof = require('../../dist/typeof-b568f48f.cjs.dev.js');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var slicedToArray = require('../../dist/slicedToArray-1fc98f25.cjs.prod.js');
5
+ var slicedToArray = require('../../dist/slicedToArray-a2a426c7.cjs.prod.js');
6
6
  var _typeof = require('../../dist/typeof-16428c61.cjs.prod.js');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
@@ -1,10 +1,10 @@
1
- import { a as _slicedToArray } from '../../dist/slicedToArray-5418adeb.esm.js';
1
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-331bebbb.esm.js';
2
2
  import { _ as _typeof } from '../../dist/typeof-a1531d8f.esm.js';
3
3
  import ReactJSXRuntime__default from 'react/jsx-runtime';
4
4
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
5
5
  import React from 'react';
6
6
  import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { a as _defineProperty } from '../../dist/defineProperty-b209a901.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-12b5bd29.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/ui';
10
10
 
@@ -1,10 +1,10 @@
1
- import { a as _slicedToArray } from '../../dist/slicedToArray-4510c35a.worker.esm.js';
1
+ import { _ as _slicedToArray } from '../../dist/slicedToArray-d4c4a4ed.worker.esm.js';
2
2
  import { _ as _typeof } from '../../dist/typeof-e0c837cc.worker.esm.js';
3
3
  import ReactJSXRuntime__default from 'react/jsx-runtime';
4
4
  import jsxRuntimeDev__default from 'react/jsx-dev-runtime';
5
5
  import React from 'react';
6
6
  import { VERCEL_STEGA_REGEX, vercelStegaDecode, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { a as _defineProperty } from '../../dist/defineProperty-18559492.worker.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-a4bf59bc.worker.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/ui';
10
10
 
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValUI-702583bb.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValUI-702583bb.cjs.dev.js");
7
- }
@@ -1,20 +1,5 @@
1
1
  'use strict';
2
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
3
  function _arrayWithHoles(arr) {
19
4
  if (Array.isArray(arr)) return arr;
20
5
  }
@@ -47,6 +32,21 @@ function _iterableToArrayLimit(r, l) {
47
32
  }
48
33
  }
49
34
 
35
+ function _arrayLikeToArray(arr, len) {
36
+ if (len == null || len > arr.length) len = arr.length;
37
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
38
+ return arr2;
39
+ }
40
+
41
+ function _unsupportedIterableToArray(o, minLen) {
42
+ if (!o) return;
43
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
44
+ var n = Object.prototype.toString.call(o).slice(8, -1);
45
+ if (n === "Object" && o.constructor) n = o.constructor.name;
46
+ if (n === "Map" || n === "Set") return Array.from(o);
47
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
48
+ }
49
+
50
50
  function _nonIterableRest() {
51
51
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
52
  }
@@ -1,20 +1,5 @@
1
1
  'use strict';
2
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
3
  function _arrayWithHoles(arr) {
19
4
  if (Array.isArray(arr)) return arr;
20
5
  }
@@ -47,6 +32,21 @@ function _iterableToArrayLimit(r, l) {
47
32
  }
48
33
  }
49
34
 
35
+ function _arrayLikeToArray(arr, len) {
36
+ if (len == null || len > arr.length) len = arr.length;
37
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
38
+ return arr2;
39
+ }
40
+
41
+ function _unsupportedIterableToArray(o, minLen) {
42
+ if (!o) return;
43
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
44
+ var n = Object.prototype.toString.call(o).slice(8, -1);
45
+ if (n === "Object" && o.constructor) n = o.constructor.name;
46
+ if (n === "Map" || n === "Set") return Array.from(o);
47
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
48
+ }
49
+
50
50
  function _nonIterableRest() {
51
51
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
52
  }