@valbuild/react 0.21.2 → 0.22.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 (59) hide show
  1. package/dist/{ValProvider-e8201907.cjs.prod.js → ValProvider-4b3dcddd.cjs.prod.js} +206 -210
  2. package/dist/ValProvider-772ad108.browser.esm.js +618 -0
  3. package/dist/{ValProvider-91d1bef0.cjs.dev.js → ValProvider-7be3721e.cjs.dev.js} +206 -210
  4. package/dist/ValProvider-ecdd4b68.esm.js +618 -0
  5. package/dist/ValProvider-f27d153f.worker.esm.js +616 -0
  6. package/dist/{ValUI-43955bc2.browser.esm.js → ValUI-1bebc456.browser.esm.js} +10 -4
  7. package/dist/{ValUI-2db816eb.esm.js → ValUI-2dc20794.esm.js} +10 -4
  8. package/dist/ValUI-702583bb.cjs.js +7 -0
  9. package/dist/{ValUI-9b5a2304.cjs.prod.js → ValUI-702583bb.cjs.prod.js} +10 -4
  10. package/dist/{ValUI-28c5f528.cjs.dev.js → ValUI-968a38fb.cjs.dev.js} +10 -4
  11. package/dist/{ValUI-ba280067.worker.esm.js → ValUI-a93bea98.worker.esm.js} +10 -4
  12. package/dist/declarations/src/ValProvider.d.ts +1 -2
  13. package/dist/declarations/src/ValStore.d.ts +2 -1
  14. package/dist/declarations/src/stega/stegaEncode.d.ts +2 -1
  15. package/dist/{slicedToArray-5bddfa58.cjs.prod.js → slicedToArray-1fc98f25.cjs.prod.js} +19 -19
  16. package/dist/{slicedToArray-0cbb3d34.browser.esm.js → slicedToArray-4510c35a.worker.esm.js} +19 -19
  17. package/dist/{slicedToArray-5a51fd33.worker.esm.js → slicedToArray-5418adeb.esm.js} +19 -19
  18. package/dist/{slicedToArray-b4fb91fa.esm.js → slicedToArray-964e1994.browser.esm.js} +19 -19
  19. package/dist/{slicedToArray-7b1713a7.cjs.dev.js → slicedToArray-fb0bef7d.cjs.dev.js} +19 -19
  20. package/dist/typeof-16428c61.cjs.prod.js +13 -0
  21. package/dist/typeof-9915e135.browser.esm.js +11 -0
  22. package/dist/typeof-a1531d8f.esm.js +11 -0
  23. package/dist/typeof-b568f48f.cjs.dev.js +13 -0
  24. package/dist/typeof-e0c837cc.worker.esm.js +11 -0
  25. package/dist/valbuild-react.browser.esm.js +2 -2
  26. package/dist/valbuild-react.cjs.dev.js +2 -2
  27. package/dist/valbuild-react.cjs.prod.js +2 -2
  28. package/dist/valbuild-react.esm.js +2 -2
  29. package/dist/valbuild-react.worker.esm.js +2 -2
  30. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +2 -2
  31. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +2 -2
  32. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +2 -2
  33. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +2 -2
  34. package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +2 -2
  35. package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +2 -2
  36. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +2 -2
  37. package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +2 -2
  38. package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +2 -2
  39. package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +2 -2
  40. package/package.json +3 -3
  41. package/src/ShadowRoot.tsx +1 -1
  42. package/src/ValProvider.tsx +3 -2
  43. package/src/ValStore.ts +2 -4
  44. package/src/ValUI.tsx +8 -3
  45. package/src/stega/stegaEncode.ts +3 -0
  46. package/stega/dist/valbuild-react-stega.browser.esm.js +17 -17
  47. package/stega/dist/valbuild-react-stega.cjs.dev.js +17 -17
  48. package/stega/dist/valbuild-react-stega.cjs.prod.js +17 -17
  49. package/stega/dist/valbuild-react-stega.esm.js +17 -17
  50. package/stega/dist/valbuild-react-stega.worker.esm.js +17 -17
  51. package/dist/ValProvider-46d4ba67.esm.js +0 -622
  52. package/dist/ValProvider-5026936f.worker.esm.js +0 -620
  53. package/dist/ValProvider-a6ce7155.browser.esm.js +0 -622
  54. package/dist/ValUI-9b5a2304.cjs.js +0 -7
  55. package/dist/typeof-16c77f45.cjs.prod.js +0 -13
  56. package/dist/typeof-1de657a3.cjs.dev.js +0 -13
  57. package/dist/typeof-52fabea9.browser.esm.js +0 -11
  58. package/dist/typeof-5c86a240.esm.js +0 -11
  59. package/dist/typeof-8854ace1.worker.esm.js +0 -11
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { a as _slicedToArray } from './slicedToArray-b4fb91fa.esm.js';
2
+ import { a as _slicedToArray } from './slicedToArray-5418adeb.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { Style, ValOverlay } from '@valbuild/ui';
5
5
  import { useRef, useState, useLayoutEffect, useEffect } from 'react';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
8
- import { a as useValApi } from './ValProvider-46d4ba67.esm.js';
8
+ import { a as useValApi, u as useValStore } from './ValProvider-ecdd4b68.esm.js';
9
9
  import './defineProperty-b209a901.esm.js';
10
10
  import '@valbuild/core/fp';
11
11
 
@@ -37,6 +37,7 @@ var ShadowRoot = function ShadowRoot(_ref2) {
37
37
  return /*#__PURE__*/jsx("div", {
38
38
  ref: node,
39
39
  style: style,
40
+ id: "val-ui",
40
41
  children: root && /*#__PURE__*/jsx(ShadowContent, {
41
42
  root: root,
42
43
  children: children
@@ -59,6 +60,7 @@ function ValUI() {
59
60
  _useState6[0];
60
61
  var setDraftMode = _useState6[1]; // TODO: if enabled, but not in draft mode: show something
61
62
  var api = useValApi();
63
+ var store = useValStore();
62
64
  useEffect(function () {
63
65
  setIsClient(true);
64
66
  try {
@@ -98,10 +100,14 @@ function ValUI() {
98
100
  href: "https://fonts.gstatic.com",
99
101
  crossOrigin: "anonymous"
100
102
  }), /*#__PURE__*/jsx("link", {
101
- href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap",
103
+ href: "https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
104
+ rel: "stylesheet"
105
+ }), /*#__PURE__*/jsx("link", {
106
+ href: "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
102
107
  rel: "stylesheet"
103
108
  }), /*#__PURE__*/jsx(Style, {}), /*#__PURE__*/jsx(ValOverlay, {
104
- api: api
109
+ api: api,
110
+ store: store
105
111
  })]
106
112
  })
107
113
  });
@@ -0,0 +1,7 @@
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
+ }
@@ -3,13 +3,13 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var slicedToArray = require('./slicedToArray-5bddfa58.cjs.prod.js');
6
+ var slicedToArray = require('./slicedToArray-1fc98f25.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var ui = require('@valbuild/ui');
9
9
  var React = require('react');
10
10
  var reactDom = require('react-dom');
11
11
  var ReactJSXRuntime = require('react/jsx-runtime');
12
- var ValProvider = require('./ValProvider-e8201907.cjs.prod.js');
12
+ var ValProvider = require('./ValProvider-4b3dcddd.cjs.prod.js');
13
13
  require('./defineProperty-36ed93cd.cjs.prod.js');
14
14
  require('@valbuild/core/fp');
15
15
 
@@ -41,6 +41,7 @@ var ShadowRoot = function ShadowRoot(_ref2) {
41
41
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
42
42
  ref: node,
43
43
  style: style,
44
+ id: "val-ui",
44
45
  children: root && /*#__PURE__*/ReactJSXRuntime.jsx(ShadowContent, {
45
46
  root: root,
46
47
  children: children
@@ -63,6 +64,7 @@ function ValUI() {
63
64
  _useState6[0];
64
65
  var setDraftMode = _useState6[1]; // TODO: if enabled, but not in draft mode: show something
65
66
  var api = ValProvider.useValApi();
67
+ var store = ValProvider.useValStore();
66
68
  React.useEffect(function () {
67
69
  setIsClient(true);
68
70
  try {
@@ -102,10 +104,14 @@ function ValUI() {
102
104
  href: "https://fonts.gstatic.com",
103
105
  crossOrigin: "anonymous"
104
106
  }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
105
- href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap",
107
+ href: "https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
108
+ rel: "stylesheet"
109
+ }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
110
+ href: "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
106
111
  rel: "stylesheet"
107
112
  }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.Style, {}), /*#__PURE__*/ReactJSXRuntime.jsx(ui.ValOverlay, {
108
- api: api
113
+ api: api,
114
+ store: store
109
115
  })]
110
116
  })
111
117
  });
@@ -3,13 +3,13 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var slicedToArray = require('./slicedToArray-7b1713a7.cjs.dev.js');
6
+ var slicedToArray = require('./slicedToArray-fb0bef7d.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var ui = require('@valbuild/ui');
9
9
  var React = require('react');
10
10
  var reactDom = require('react-dom');
11
11
  var ReactJSXRuntime = require('react/jsx-runtime');
12
- var ValProvider = require('./ValProvider-91d1bef0.cjs.dev.js');
12
+ var ValProvider = require('./ValProvider-7be3721e.cjs.dev.js');
13
13
  require('./defineProperty-c82a49b0.cjs.dev.js');
14
14
  require('@valbuild/core/fp');
15
15
 
@@ -41,6 +41,7 @@ var ShadowRoot = function ShadowRoot(_ref2) {
41
41
  return /*#__PURE__*/ReactJSXRuntime.jsx("div", {
42
42
  ref: node,
43
43
  style: style,
44
+ id: "val-ui",
44
45
  children: root && /*#__PURE__*/ReactJSXRuntime.jsx(ShadowContent, {
45
46
  root: root,
46
47
  children: children
@@ -63,6 +64,7 @@ function ValUI() {
63
64
  _useState6[0];
64
65
  var setDraftMode = _useState6[1]; // TODO: if enabled, but not in draft mode: show something
65
66
  var api = ValProvider.useValApi();
67
+ var store = ValProvider.useValStore();
66
68
  React.useEffect(function () {
67
69
  setIsClient(true);
68
70
  try {
@@ -102,10 +104,14 @@ function ValUI() {
102
104
  href: "https://fonts.gstatic.com",
103
105
  crossOrigin: "anonymous"
104
106
  }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
105
- href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap",
107
+ href: "https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
108
+ rel: "stylesheet"
109
+ }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
110
+ href: "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
106
111
  rel: "stylesheet"
107
112
  }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.Style, {}), /*#__PURE__*/ReactJSXRuntime.jsx(ui.ValOverlay, {
108
- api: api
113
+ api: api,
114
+ store: store
109
115
  })]
110
116
  })
111
117
  });
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { a as _slicedToArray } from './slicedToArray-5a51fd33.worker.esm.js';
2
+ import { a as _slicedToArray } from './slicedToArray-4510c35a.worker.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { Style, ValOverlay } from '@valbuild/ui';
5
5
  import { useRef, useState, useLayoutEffect, useEffect } from 'react';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
8
- import { a as useValApi } from './ValProvider-5026936f.worker.esm.js';
8
+ import { a as useValApi, u as useValStore } from './ValProvider-f27d153f.worker.esm.js';
9
9
  import './defineProperty-18559492.worker.esm.js';
10
10
  import '@valbuild/core/fp';
11
11
 
@@ -37,6 +37,7 @@ var ShadowRoot = function ShadowRoot(_ref2) {
37
37
  return /*#__PURE__*/jsx("div", {
38
38
  ref: node,
39
39
  style: style,
40
+ id: "val-ui",
40
41
  children: root && /*#__PURE__*/jsx(ShadowContent, {
41
42
  root: root,
42
43
  children: children
@@ -59,6 +60,7 @@ function ValUI() {
59
60
  _useState6[0];
60
61
  var setDraftMode = _useState6[1]; // TODO: if enabled, but not in draft mode: show something
61
62
  var api = useValApi();
63
+ var store = useValStore();
62
64
  useEffect(function () {
63
65
  setIsClient(true);
64
66
  try {
@@ -98,10 +100,14 @@ function ValUI() {
98
100
  href: "https://fonts.gstatic.com",
99
101
  crossOrigin: "anonymous"
100
102
  }), /*#__PURE__*/jsx("link", {
101
- href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap",
103
+ href: "https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
104
+ rel: "stylesheet"
105
+ }), /*#__PURE__*/jsx("link", {
106
+ href: "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap",
102
107
  rel: "stylesheet"
103
108
  }), /*#__PURE__*/jsx(Style, {}), /*#__PURE__*/jsx(ValOverlay, {
104
- api: api
109
+ api: api,
110
+ store: store
105
111
  })]
106
112
  })
107
113
  });
@@ -9,7 +9,6 @@ export type ValContext = {
9
9
  };
10
10
  export declare const ValContext: React.Context<ValContext>;
11
11
  export type ValProviderProps = {
12
- host?: string;
13
12
  children?: React.ReactNode;
14
13
  };
15
- export declare function ValProvider({ host, children }: ValProviderProps): JSX.Element;
14
+ export declare function ValProvider({ children }: ValProviderProps): JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { Json, ModuleId, ValApi } from "@valbuild/core";
2
- export declare class ValStore {
2
+ import { IValStore } from "@valbuild/ui";
3
+ export declare class ValStore implements IValStore {
3
4
  private readonly api;
4
5
  private readonly subscribers;
5
6
  private readonly listeners;
@@ -2,6 +2,7 @@ import { Json, RichTextSource, RichText } from "@valbuild/core";
2
2
  import { FileSource, Source, SourceObject } from "@valbuild/core";
3
3
  import { JsonPrimitive } from "@valbuild/core";
4
4
  import { SourceArray } from "@valbuild/core";
5
+ import { RawString } from "@valbuild/core/src/schema/string";
5
6
  declare const brand: unique symbol;
6
7
  /**
7
8
  * ValEncodedString is a string that is encoded using steganography.
@@ -18,7 +19,7 @@ export type StegaOfSource<T extends Source> = Json extends T ? Json : T extends
18
19
  url: ValEncodedString;
19
20
  } : T extends SourceObject ? {
20
21
  [key in keyof T]: StegaOfSource<T[key]>;
21
- } : T extends SourceArray ? StegaOfSource<T[number]>[] : T extends string ? ValEncodedString : T extends JsonPrimitive ? T : never;
22
+ } : T extends SourceArray ? StegaOfSource<T[number]>[] : T extends RawString ? string : T extends string ? ValEncodedString : T extends JsonPrimitive ? T : never;
22
23
  export declare function stegaEncode(input: any, opts: {
23
24
  getModule?: (moduleId: string) => any;
24
25
  disabled?: boolean;
@@ -19,31 +19,31 @@ function _arrayWithHoles(arr) {
19
19
  if (Array.isArray(arr)) return arr;
20
20
  }
21
21
 
22
- function _iterableToArrayLimit(arr, i) {
23
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
24
- if (null != _i) {
25
- var _s,
26
- _e,
27
- _x,
28
- _r,
29
- _arr = [],
30
- _n = !0,
31
- _d = !1;
22
+ function _iterableToArrayLimit(r, l) {
23
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
24
+ if (null != t) {
25
+ var e,
26
+ n,
27
+ i,
28
+ u,
29
+ a = [],
30
+ f = !0,
31
+ o = !1;
32
32
  try {
33
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
34
- if (Object(_i) !== _i) return;
35
- _n = !1;
36
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
37
- } catch (err) {
38
- _d = !0, _e = err;
33
+ if (i = (t = t.call(r)).next, 0 === l) {
34
+ if (Object(t) !== t) return;
35
+ f = !1;
36
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
37
+ } catch (r) {
38
+ o = !0, n = r;
39
39
  } finally {
40
40
  try {
41
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
41
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
42
42
  } finally {
43
- if (_d) throw _e;
43
+ if (o) throw n;
44
44
  }
45
45
  }
46
- return _arr;
46
+ return a;
47
47
  }
48
48
  }
49
49
 
@@ -17,31 +17,31 @@ function _arrayWithHoles(arr) {
17
17
  if (Array.isArray(arr)) return arr;
18
18
  }
19
19
 
20
- function _iterableToArrayLimit(arr, i) {
21
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
22
- if (null != _i) {
23
- var _s,
24
- _e,
25
- _x,
26
- _r,
27
- _arr = [],
28
- _n = !0,
29
- _d = !1;
20
+ function _iterableToArrayLimit(r, l) {
21
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
22
+ if (null != t) {
23
+ var e,
24
+ n,
25
+ i,
26
+ u,
27
+ a = [],
28
+ f = !0,
29
+ o = !1;
30
30
  try {
31
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
32
- if (Object(_i) !== _i) return;
33
- _n = !1;
34
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
35
- } catch (err) {
36
- _d = !0, _e = err;
31
+ if (i = (t = t.call(r)).next, 0 === l) {
32
+ if (Object(t) !== t) return;
33
+ f = !1;
34
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
35
+ } catch (r) {
36
+ o = !0, n = r;
37
37
  } finally {
38
38
  try {
39
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
39
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
40
40
  } finally {
41
- if (_d) throw _e;
41
+ if (o) throw n;
42
42
  }
43
43
  }
44
- return _arr;
44
+ return a;
45
45
  }
46
46
  }
47
47
 
@@ -17,31 +17,31 @@ function _arrayWithHoles(arr) {
17
17
  if (Array.isArray(arr)) return arr;
18
18
  }
19
19
 
20
- function _iterableToArrayLimit(arr, i) {
21
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
22
- if (null != _i) {
23
- var _s,
24
- _e,
25
- _x,
26
- _r,
27
- _arr = [],
28
- _n = !0,
29
- _d = !1;
20
+ function _iterableToArrayLimit(r, l) {
21
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
22
+ if (null != t) {
23
+ var e,
24
+ n,
25
+ i,
26
+ u,
27
+ a = [],
28
+ f = !0,
29
+ o = !1;
30
30
  try {
31
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
32
- if (Object(_i) !== _i) return;
33
- _n = !1;
34
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
35
- } catch (err) {
36
- _d = !0, _e = err;
31
+ if (i = (t = t.call(r)).next, 0 === l) {
32
+ if (Object(t) !== t) return;
33
+ f = !1;
34
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
35
+ } catch (r) {
36
+ o = !0, n = r;
37
37
  } finally {
38
38
  try {
39
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
39
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
40
40
  } finally {
41
- if (_d) throw _e;
41
+ if (o) throw n;
42
42
  }
43
43
  }
44
- return _arr;
44
+ return a;
45
45
  }
46
46
  }
47
47
 
@@ -17,31 +17,31 @@ function _arrayWithHoles(arr) {
17
17
  if (Array.isArray(arr)) return arr;
18
18
  }
19
19
 
20
- function _iterableToArrayLimit(arr, i) {
21
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
22
- if (null != _i) {
23
- var _s,
24
- _e,
25
- _x,
26
- _r,
27
- _arr = [],
28
- _n = !0,
29
- _d = !1;
20
+ function _iterableToArrayLimit(r, l) {
21
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
22
+ if (null != t) {
23
+ var e,
24
+ n,
25
+ i,
26
+ u,
27
+ a = [],
28
+ f = !0,
29
+ o = !1;
30
30
  try {
31
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
32
- if (Object(_i) !== _i) return;
33
- _n = !1;
34
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
35
- } catch (err) {
36
- _d = !0, _e = err;
31
+ if (i = (t = t.call(r)).next, 0 === l) {
32
+ if (Object(t) !== t) return;
33
+ f = !1;
34
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
35
+ } catch (r) {
36
+ o = !0, n = r;
37
37
  } finally {
38
38
  try {
39
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
39
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
40
40
  } finally {
41
- if (_d) throw _e;
41
+ if (o) throw n;
42
42
  }
43
43
  }
44
- return _arr;
44
+ return a;
45
45
  }
46
46
  }
47
47
 
@@ -19,31 +19,31 @@ function _arrayWithHoles(arr) {
19
19
  if (Array.isArray(arr)) return arr;
20
20
  }
21
21
 
22
- function _iterableToArrayLimit(arr, i) {
23
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
24
- if (null != _i) {
25
- var _s,
26
- _e,
27
- _x,
28
- _r,
29
- _arr = [],
30
- _n = !0,
31
- _d = !1;
22
+ function _iterableToArrayLimit(r, l) {
23
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
24
+ if (null != t) {
25
+ var e,
26
+ n,
27
+ i,
28
+ u,
29
+ a = [],
30
+ f = !0,
31
+ o = !1;
32
32
  try {
33
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
34
- if (Object(_i) !== _i) return;
35
- _n = !1;
36
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
37
- } catch (err) {
38
- _d = !0, _e = err;
33
+ if (i = (t = t.call(r)).next, 0 === l) {
34
+ if (Object(t) !== t) return;
35
+ f = !1;
36
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
37
+ } catch (r) {
38
+ o = !0, n = r;
39
39
  } finally {
40
40
  try {
41
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
41
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
42
42
  } finally {
43
- if (_d) throw _e;
43
+ if (o) throw n;
44
44
  }
45
45
  }
46
- return _arr;
46
+ return a;
47
47
  }
48
48
  }
49
49
 
@@ -0,0 +1,13 @@
1
+ 'use strict';
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
+
13
+ exports._typeof = _typeof;
@@ -0,0 +1,11 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
@@ -0,0 +1,11 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
@@ -0,0 +1,13 @@
1
+ 'use strict';
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
+
13
+ exports._typeof = _typeof;
@@ -0,0 +1,11 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
@@ -1,7 +1,7 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-a6ce7155.browser.esm.js';
1
+ export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-772ad108.browser.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-0cbb3d34.browser.esm.js';
4
+ import './slicedToArray-964e1994.browser.esm.js';
5
5
  import './defineProperty-034d0378.browser.esm.js';
6
6
  import '@valbuild/core/fp';
7
7
  import '@valbuild/core';
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('./ValProvider-91d1bef0.cjs.dev.js');
5
+ var ValProvider = require('./ValProvider-7be3721e.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
- require('./slicedToArray-7b1713a7.cjs.dev.js');
8
+ require('./slicedToArray-fb0bef7d.cjs.dev.js');
9
9
  require('./defineProperty-c82a49b0.cjs.dev.js');
10
10
  require('@valbuild/core/fp');
11
11
  require('@valbuild/core');
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('./ValProvider-e8201907.cjs.prod.js');
5
+ var ValProvider = require('./ValProvider-4b3dcddd.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
- require('./slicedToArray-5bddfa58.cjs.prod.js');
8
+ require('./slicedToArray-1fc98f25.cjs.prod.js');
9
9
  require('./defineProperty-36ed93cd.cjs.prod.js');
10
10
  require('@valbuild/core/fp');
11
11
  require('@valbuild/core');
@@ -1,7 +1,7 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-46d4ba67.esm.js';
1
+ export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-ecdd4b68.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-b4fb91fa.esm.js';
4
+ import './slicedToArray-5418adeb.esm.js';
5
5
  import './defineProperty-b209a901.esm.js';
6
6
  import '@valbuild/core/fp';
7
7
  import '@valbuild/core';
@@ -1,7 +1,7 @@
1
- export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-5026936f.worker.esm.js';
1
+ export { V as ValProvider, a as useValApi, u as useValStore } from './ValProvider-f27d153f.worker.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import './slicedToArray-5a51fd33.worker.esm.js';
4
+ import './slicedToArray-4510c35a.worker.esm.js';
5
5
  import './defineProperty-18559492.worker.esm.js';
6
6
  import '@valbuild/core/fp';
7
7
  import '@valbuild/core';
@@ -1,5 +1,5 @@
1
- import { _ as _typeof } from '../../dist/typeof-52fabea9.browser.esm.js';
2
- import { a as _slicedToArray } from '../../dist/slicedToArray-0cbb3d34.browser.esm.js';
1
+ import { _ as _typeof } from '../../dist/typeof-9915e135.browser.esm.js';
2
+ import { a as _slicedToArray } from '../../dist/slicedToArray-964e1994.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';