@valbuild/react 0.49.0 → 0.51.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 (37) hide show
  1. package/dist/{ValProvider-3f3f21ba.cjs.dev.js → ValProvider-1009cb51.cjs.dev.js} +3 -4
  2. package/dist/{ValProvider-36edbac3.browser.esm.js → ValProvider-6a12fd8e.browser.esm.js} +3 -4
  3. package/dist/{ValProvider-87475f3a.esm.js → ValProvider-8ec03a73.esm.js} +3 -4
  4. package/dist/ValProvider-c7d7067b.cjs.js +7 -0
  5. package/dist/{ValProvider-1bf1d7e4.cjs.prod.js → ValProvider-c7d7067b.cjs.prod.js} +3 -4
  6. package/dist/{ValProvider-a29fe950.worker.esm.js → ValProvider-ecf57703.worker.esm.js} +3 -4
  7. package/dist/{ValUI-efe41d9a.esm.js → ValUI-04c66635.esm.js} +5 -4
  8. package/dist/{ValUI-15ad1f1e.worker.esm.js → ValUI-29f95099.worker.esm.js} +5 -4
  9. package/dist/ValUI-323cc3ff.cjs.js +7 -0
  10. package/dist/{ValUI-b98a0c8f.cjs.prod.js → ValUI-323cc3ff.cjs.prod.js} +4 -3
  11. package/dist/{ValUI-dd0484dc.cjs.dev.js → ValUI-891df000.cjs.dev.js} +4 -3
  12. package/dist/{ValUI-07905fec.browser.esm.js → ValUI-b82ca977.browser.esm.js} +5 -4
  13. package/dist/declarations/src/internal/ValProvider.d.ts +1 -1
  14. package/dist/declarations/src/internal/ValStore.d.ts +1 -1
  15. package/dist/defineProperty-6ed7deb7.browser.esm.js +32 -0
  16. package/dist/defineProperty-82fbeafc.worker.esm.js +32 -0
  17. package/dist/defineProperty-9bf3d0c0.esm.js +32 -0
  18. package/dist/defineProperty-c84f9aba.cjs.dev.js +35 -0
  19. package/dist/defineProperty-f8fe5660.cjs.prod.js +35 -0
  20. package/internal/dist/valbuild-react-internal.browser.esm.js +1 -1
  21. package/internal/dist/valbuild-react-internal.cjs.dev.js +1 -1
  22. package/internal/dist/valbuild-react-internal.cjs.prod.js +1 -1
  23. package/internal/dist/valbuild-react-internal.esm.js +1 -1
  24. package/internal/dist/valbuild-react-internal.worker.esm.js +1 -1
  25. package/package.json +4 -4
  26. package/stega/dist/valbuild-react-stega.browser.esm.js +1 -2
  27. package/stega/dist/valbuild-react-stega.cjs.dev.js +1 -2
  28. package/stega/dist/valbuild-react-stega.cjs.prod.js +1 -2
  29. package/stega/dist/valbuild-react-stega.esm.js +1 -2
  30. package/stega/dist/valbuild-react-stega.worker.esm.js +1 -2
  31. package/dist/ValProvider-1bf1d7e4.cjs.js +0 -7
  32. package/dist/ValUI-b98a0c8f.cjs.js +0 -7
  33. package/dist/defineProperty-12b5bd29.esm.js +0 -32
  34. package/dist/defineProperty-36ed93cd.cjs.prod.js +0 -35
  35. package/dist/defineProperty-a4bf59bc.worker.esm.js +0 -32
  36. package/dist/defineProperty-c82a49b0.cjs.dev.js +0 -35
  37. package/dist/defineProperty-f319cb47.browser.esm.js +0 -32
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var slicedToArray = require('./slicedToArray-a9d0d9cd.cjs.dev.js');
7
7
  var React = require('react');
8
- var defineProperty = require('./defineProperty-c82a49b0.cjs.dev.js');
8
+ var defineProperty = require('./defineProperty-c84f9aba.cjs.dev.js');
9
9
  var fp = require('@valbuild/core/fp');
10
10
  var core = require('@valbuild/core');
11
11
  var ReactJSXRuntime = require('react/jsx-runtime');
@@ -429,7 +429,7 @@ function _defineProperties(target, props) {
429
429
  descriptor.enumerable = descriptor.enumerable || false;
430
430
  descriptor.configurable = true;
431
431
  if ("value" in descriptor) descriptor.writable = true;
432
- Object.defineProperty(target, defineProperty._toPropertyKey(descriptor.key), descriptor);
432
+ Object.defineProperty(target, defineProperty.toPropertyKey(descriptor.key), descriptor);
433
433
  }
434
434
  }
435
435
  function _createClass(Constructor, protoProps, staticProps) {
@@ -555,7 +555,6 @@ var ValStore = /*#__PURE__*/function () {
555
555
  return subscriberId.includes(moduleId);
556
556
  } // NOTE: dependent on
557
557
  );
558
-
559
558
  if (updatedSubscriberId) {
560
559
  updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
561
560
  }
@@ -646,7 +645,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React__default["de
646
645
  valApi: undefined
647
646
  }) : undefined;
648
647
  var ValUI = /*#__PURE__*/React.lazy(function () {
649
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-dd0484dc.cjs.dev.js')); });
648
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-891df000.cjs.dev.js')); });
650
649
  });
651
650
  function ValProvider(_ref) {
652
651
  var children = _ref.children,
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-85f6bb43.browser.esm.js';
3
3
  import React, { useContext, useMemo, useState, useEffect, lazy } from 'react';
4
- import { a as _toPropertyKey, _ as _defineProperty } from './defineProperty-f319cb47.browser.esm.js';
4
+ import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6ed7deb7.browser.esm.js';
5
5
  import { result } from '@valbuild/core/fp';
6
6
  import { ValApi, Internal } from '@valbuild/core';
7
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
403
403
  descriptor.enumerable = descriptor.enumerable || false;
404
404
  descriptor.configurable = true;
405
405
  if ("value" in descriptor) descriptor.writable = true;
406
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
406
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
407
407
  }
408
408
  }
409
409
  function _createClass(Constructor, protoProps, staticProps) {
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
529
529
  return subscriberId.includes(moduleId);
530
530
  } // NOTE: dependent on
531
531
  );
532
-
533
532
  if (updatedSubscriberId) {
534
533
  updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
535
534
  }
@@ -620,7 +619,7 @@ var ValContext = /*#__PURE__*/React.createContext({
620
619
  valApi: undefined
621
620
  }) ;
622
621
  var ValUI = /*#__PURE__*/lazy(function () {
623
- return import('./ValUI-07905fec.browser.esm.js');
622
+ return import('./ValUI-b82ca977.browser.esm.js');
624
623
  });
625
624
  function ValProvider(_ref) {
626
625
  var children = _ref.children,
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-331bebbb.esm.js';
3
3
  import React, { useContext, useMemo, useState, useEffect, lazy } from 'react';
4
- import { a as _toPropertyKey, _ as _defineProperty } from './defineProperty-12b5bd29.esm.js';
4
+ import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-9bf3d0c0.esm.js';
5
5
  import { result } from '@valbuild/core/fp';
6
6
  import { ValApi, Internal } from '@valbuild/core';
7
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
403
403
  descriptor.enumerable = descriptor.enumerable || false;
404
404
  descriptor.configurable = true;
405
405
  if ("value" in descriptor) descriptor.writable = true;
406
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
406
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
407
407
  }
408
408
  }
409
409
  function _createClass(Constructor, protoProps, staticProps) {
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
529
529
  return subscriberId.includes(moduleId);
530
530
  } // NOTE: dependent on
531
531
  );
532
-
533
532
  if (updatedSubscriberId) {
534
533
  updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
535
534
  }
@@ -620,7 +619,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React.createContex
620
619
  valApi: undefined
621
620
  }) : undefined;
622
621
  var ValUI = /*#__PURE__*/lazy(function () {
623
- return import('./ValUI-efe41d9a.esm.js');
622
+ return import('./ValUI-04c66635.esm.js');
624
623
  });
625
624
  function ValProvider(_ref) {
626
625
  var children = _ref.children,
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValProvider-c7d7067b.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValProvider-c7d7067b.cjs.dev.js");
7
+ }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var slicedToArray = require('./slicedToArray-a2a426c7.cjs.prod.js');
7
7
  var React = require('react');
8
- var defineProperty = require('./defineProperty-36ed93cd.cjs.prod.js');
8
+ var defineProperty = require('./defineProperty-f8fe5660.cjs.prod.js');
9
9
  var fp = require('@valbuild/core/fp');
10
10
  var core = require('@valbuild/core');
11
11
  var ReactJSXRuntime = require('react/jsx-runtime');
@@ -429,7 +429,7 @@ function _defineProperties(target, props) {
429
429
  descriptor.enumerable = descriptor.enumerable || false;
430
430
  descriptor.configurable = true;
431
431
  if ("value" in descriptor) descriptor.writable = true;
432
- Object.defineProperty(target, defineProperty._toPropertyKey(descriptor.key), descriptor);
432
+ Object.defineProperty(target, defineProperty.toPropertyKey(descriptor.key), descriptor);
433
433
  }
434
434
  }
435
435
  function _createClass(Constructor, protoProps, staticProps) {
@@ -555,7 +555,6 @@ var ValStore = /*#__PURE__*/function () {
555
555
  return subscriberId.includes(moduleId);
556
556
  } // NOTE: dependent on
557
557
  );
558
-
559
558
  if (updatedSubscriberId) {
560
559
  updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
561
560
  }
@@ -646,7 +645,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React__default["de
646
645
  valApi: undefined
647
646
  }) : undefined;
648
647
  var ValUI = /*#__PURE__*/React.lazy(function () {
649
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-b98a0c8f.cjs.prod.js')); });
648
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-323cc3ff.cjs.prod.js')); });
650
649
  });
651
650
  function ValProvider(_ref) {
652
651
  var children = _ref.children,
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { a as _unsupportedIterableToArray, _ as _slicedToArray } from './slicedToArray-d4c4a4ed.worker.esm.js';
3
3
  import { useMemo, useState, useEffect, lazy } from 'react';
4
- import { a as _toPropertyKey, _ as _defineProperty } from './defineProperty-a4bf59bc.worker.esm.js';
4
+ import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-82fbeafc.worker.esm.js';
5
5
  import { result } from '@valbuild/core/fp';
6
6
  import { ValApi, Internal } from '@valbuild/core';
7
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
@@ -403,7 +403,7 @@ function _defineProperties(target, props) {
403
403
  descriptor.enumerable = descriptor.enumerable || false;
404
404
  descriptor.configurable = true;
405
405
  if ("value" in descriptor) descriptor.writable = true;
406
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
406
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
407
407
  }
408
408
  }
409
409
  function _createClass(Constructor, protoProps, staticProps) {
@@ -529,7 +529,6 @@ var ValStore = /*#__PURE__*/function () {
529
529
  return subscriberId.includes(moduleId);
530
530
  } // NOTE: dependent on
531
531
  );
532
-
533
532
  if (updatedSubscriberId) {
534
533
  updatedSubscriberIds.set(updatedSubscriberId, (updatedSubscriberIds.get(updatedSubscriberId) || []).concat(moduleId));
535
534
  }
@@ -615,7 +614,7 @@ var useValApi = function useValApi() {
615
614
  };
616
615
  var ValContext = undefined;
617
616
  var ValUI = /*#__PURE__*/lazy(function () {
618
- return import('./ValUI-15ad1f1e.worker.esm.js');
617
+ return import('./ValUI-29f95099.worker.esm.js');
619
618
  });
620
619
  function ValProvider(_ref) {
621
620
  var children = _ref.children,
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { Style, ValOverlay } from '@valbuild/ui';
2
+ import { VAL_CSS_PATH, ValOverlay } from '@valbuild/ui';
3
3
  import { _ as _slicedToArray } from './slicedToArray-331bebbb.esm.js';
4
4
  import { useRef, useState, useLayoutEffect } from 'react';
5
5
  import { createPortal } from 'react-dom';
6
6
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
- import { useValApi, useValStore } from './ValProvider-87475f3a.esm.js';
7
+ import { useValApi, useValStore } from './ValProvider-8ec03a73.esm.js';
8
8
 
9
9
  function ShadowContent(_ref) {
10
10
  var root = _ref.root,
@@ -63,8 +63,9 @@ function ValUI(props) {
63
63
  }), /*#__PURE__*/jsx("link", {
64
64
  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",
65
65
  rel: "stylesheet"
66
- }), /*#__PURE__*/jsx(Style, {
67
- route: props.host
66
+ }), /*#__PURE__*/jsx("link", {
67
+ rel: "stylesheet",
68
+ href: "".concat(props.host || "/api/val", "/static").concat(VAL_CSS_PATH)
68
69
  }), /*#__PURE__*/jsx(ValOverlay, {
69
70
  api: api,
70
71
  store: store,
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { Style, ValOverlay } from '@valbuild/ui';
2
+ import { VAL_CSS_PATH, ValOverlay } from '@valbuild/ui';
3
3
  import { _ as _slicedToArray } from './slicedToArray-d4c4a4ed.worker.esm.js';
4
4
  import { useRef, useState, useLayoutEffect } from 'react';
5
5
  import { createPortal } from 'react-dom';
6
6
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
- import { useValApi, useValStore } from './ValProvider-a29fe950.worker.esm.js';
7
+ import { useValApi, useValStore } from './ValProvider-ecf57703.worker.esm.js';
8
8
 
9
9
  function ShadowContent(_ref) {
10
10
  var root = _ref.root,
@@ -63,8 +63,9 @@ function ValUI(props) {
63
63
  }), /*#__PURE__*/jsx("link", {
64
64
  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",
65
65
  rel: "stylesheet"
66
- }), /*#__PURE__*/jsx(Style, {
67
- route: props.host
66
+ }), /*#__PURE__*/jsx("link", {
67
+ rel: "stylesheet",
68
+ href: "".concat(props.host || "/api/val", "/static").concat(VAL_CSS_PATH)
68
69
  }), /*#__PURE__*/jsx(ValOverlay, {
69
70
  api: api,
70
71
  store: store,
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValUI-323cc3ff.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValUI-323cc3ff.cjs.dev.js");
7
+ }
@@ -8,7 +8,7 @@ var slicedToArray = require('./slicedToArray-a2a426c7.cjs.prod.js');
8
8
  var React = require('react');
9
9
  var reactDom = require('react-dom');
10
10
  var ReactJSXRuntime = require('react/jsx-runtime');
11
- var ValProvider = require('./ValProvider-1bf1d7e4.cjs.prod.js');
11
+ var ValProvider = require('./ValProvider-c7d7067b.cjs.prod.js');
12
12
 
13
13
  function ShadowContent(_ref) {
14
14
  var root = _ref.root,
@@ -67,8 +67,9 @@ function ValUI(props) {
67
67
  }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
68
68
  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",
69
69
  rel: "stylesheet"
70
- }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.Style, {
71
- route: props.host
70
+ }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
71
+ rel: "stylesheet",
72
+ href: "".concat(props.host || "/api/val", "/static").concat(ui.VAL_CSS_PATH)
72
73
  }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.ValOverlay, {
73
74
  api: api,
74
75
  store: store,
@@ -8,7 +8,7 @@ var slicedToArray = require('./slicedToArray-a9d0d9cd.cjs.dev.js');
8
8
  var React = require('react');
9
9
  var reactDom = require('react-dom');
10
10
  var ReactJSXRuntime = require('react/jsx-runtime');
11
- var ValProvider = require('./ValProvider-3f3f21ba.cjs.dev.js');
11
+ var ValProvider = require('./ValProvider-1009cb51.cjs.dev.js');
12
12
 
13
13
  function ShadowContent(_ref) {
14
14
  var root = _ref.root,
@@ -67,8 +67,9 @@ function ValUI(props) {
67
67
  }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
68
68
  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",
69
69
  rel: "stylesheet"
70
- }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.Style, {
71
- route: props.host
70
+ }), /*#__PURE__*/ReactJSXRuntime.jsx("link", {
71
+ rel: "stylesheet",
72
+ href: "".concat(props.host || "/api/val", "/static").concat(ui.VAL_CSS_PATH)
72
73
  }), /*#__PURE__*/ReactJSXRuntime.jsx(ui.ValOverlay, {
73
74
  api: api,
74
75
  store: store,
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { Style, ValOverlay } from '@valbuild/ui';
2
+ import { VAL_CSS_PATH, ValOverlay } from '@valbuild/ui';
3
3
  import { _ as _slicedToArray } from './slicedToArray-85f6bb43.browser.esm.js';
4
4
  import { useRef, useState, useLayoutEffect } from 'react';
5
5
  import { createPortal } from 'react-dom';
6
6
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
- import { useValApi, useValStore } from './ValProvider-36edbac3.browser.esm.js';
7
+ import { useValApi, useValStore } from './ValProvider-6a12fd8e.browser.esm.js';
8
8
 
9
9
  function ShadowContent(_ref) {
10
10
  var root = _ref.root,
@@ -63,8 +63,9 @@ function ValUI(props) {
63
63
  }), /*#__PURE__*/jsx("link", {
64
64
  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",
65
65
  rel: "stylesheet"
66
- }), /*#__PURE__*/jsx(Style, {
67
- route: props.host
66
+ }), /*#__PURE__*/jsx("link", {
67
+ rel: "stylesheet",
68
+ href: "".concat(props.host || "/api/val", "/static").concat(VAL_CSS_PATH)
68
69
  }), /*#__PURE__*/jsx(ValOverlay, {
69
70
  api: api,
70
71
  store: store,
@@ -3,7 +3,7 @@ import { ValStore } from "./ValStore.js";
3
3
  import { ValApi } from "@valbuild/core";
4
4
  export declare const useValStore: () => ValStore | undefined;
5
5
  export type UseValStore = typeof useValStore;
6
- export declare const useValApi: () => ValApi | undefined;
6
+ export declare const useValApi: () => any;
7
7
  export type UseValApi = typeof useValApi;
8
8
  export type ValContext = {
9
9
  readonly valStore?: ValStore;
@@ -1,5 +1,5 @@
1
1
  import { Json, ModuleId, ValApi } from "@valbuild/core";
2
- import type { IValStore } from "@valbuild/ui";
2
+ import type { IValStore } from "@valbuild/shared/internal";
3
3
  export declare class ValStore implements IValStore {
4
4
  private readonly api;
5
5
  private readonly subscribers;
@@ -0,0 +1,32 @@
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+
12
+ function toPropertyKey(t) {
13
+ var i = toPrimitive(t, "string");
14
+ return "symbol" == typeof i ? i : String(i);
15
+ }
16
+
17
+ function _defineProperty(obj, key, value) {
18
+ key = toPropertyKey(key);
19
+ if (key in obj) {
20
+ Object.defineProperty(obj, key, {
21
+ value: value,
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true
25
+ });
26
+ } else {
27
+ obj[key] = value;
28
+ }
29
+ return obj;
30
+ }
31
+
32
+ export { _defineProperty as _, toPropertyKey as t };
@@ -0,0 +1,32 @@
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+
12
+ function toPropertyKey(t) {
13
+ var i = toPrimitive(t, "string");
14
+ return "symbol" == typeof i ? i : String(i);
15
+ }
16
+
17
+ function _defineProperty(obj, key, value) {
18
+ key = toPropertyKey(key);
19
+ if (key in obj) {
20
+ Object.defineProperty(obj, key, {
21
+ value: value,
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true
25
+ });
26
+ } else {
27
+ obj[key] = value;
28
+ }
29
+ return obj;
30
+ }
31
+
32
+ export { _defineProperty as _, toPropertyKey as t };
@@ -0,0 +1,32 @@
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+
12
+ function toPropertyKey(t) {
13
+ var i = toPrimitive(t, "string");
14
+ return "symbol" == typeof i ? i : String(i);
15
+ }
16
+
17
+ function _defineProperty(obj, key, value) {
18
+ key = toPropertyKey(key);
19
+ if (key in obj) {
20
+ Object.defineProperty(obj, key, {
21
+ value: value,
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true
25
+ });
26
+ } else {
27
+ obj[key] = value;
28
+ }
29
+ return obj;
30
+ }
31
+
32
+ export { _defineProperty as _, toPropertyKey as t };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ function toPrimitive(t, r) {
4
+ if ("object" != typeof t || !t) return t;
5
+ var e = t[Symbol.toPrimitive];
6
+ if (void 0 !== e) {
7
+ var i = e.call(t, r || "default");
8
+ if ("object" != typeof i) return i;
9
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return ("string" === r ? String : Number)(t);
12
+ }
13
+
14
+ function toPropertyKey(t) {
15
+ var i = toPrimitive(t, "string");
16
+ return "symbol" == typeof i ? i : String(i);
17
+ }
18
+
19
+ function _defineProperty(obj, key, value) {
20
+ key = toPropertyKey(key);
21
+ if (key in obj) {
22
+ Object.defineProperty(obj, key, {
23
+ value: value,
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true
27
+ });
28
+ } else {
29
+ obj[key] = value;
30
+ }
31
+ return obj;
32
+ }
33
+
34
+ exports._defineProperty = _defineProperty;
35
+ exports.toPropertyKey = toPropertyKey;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ function toPrimitive(t, r) {
4
+ if ("object" != typeof t || !t) return t;
5
+ var e = t[Symbol.toPrimitive];
6
+ if (void 0 !== e) {
7
+ var i = e.call(t, r || "default");
8
+ if ("object" != typeof i) return i;
9
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return ("string" === r ? String : Number)(t);
12
+ }
13
+
14
+ function toPropertyKey(t) {
15
+ var i = toPrimitive(t, "string");
16
+ return "symbol" == typeof i ? i : String(i);
17
+ }
18
+
19
+ function _defineProperty(obj, key, value) {
20
+ key = toPropertyKey(key);
21
+ if (key in obj) {
22
+ Object.defineProperty(obj, key, {
23
+ value: value,
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true
27
+ });
28
+ } else {
29
+ obj[key] = value;
30
+ }
31
+ return obj;
32
+ }
33
+
34
+ exports._defineProperty = _defineProperty;
35
+ exports.toPropertyKey = toPropertyKey;
@@ -1,4 +1,4 @@
1
- export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-36edbac3.browser.esm.js';
1
+ export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-6a12fd8e.browser.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('../../dist/ValProvider-3f3f21ba.cjs.dev.js');
5
+ var ValProvider = require('../../dist/ValProvider-1009cb51.cjs.dev.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValProvider = require('../../dist/ValProvider-1bf1d7e4.cjs.prod.js');
5
+ var ValProvider = require('../../dist/ValProvider-c7d7067b.cjs.prod.js');
6
6
  var React = require('react');
7
7
  var ReactJSXRuntime = require('react/jsx-runtime');
8
8
 
@@ -1,4 +1,4 @@
1
- export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-87475f3a.esm.js';
1
+ export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-8ec03a73.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-a29fe950.worker.esm.js';
1
+ export { ValProvider, useValApi, useValStore } from '../../dist/ValProvider-ecf57703.worker.esm.js';
2
2
  import React from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "private": false,
5
5
  "description": "Val - React internal helpers",
6
6
  "sideEffects": false,
@@ -9,9 +9,9 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "dependencies": {
12
- "@valbuild/core": "~0.49.0",
13
- "@valbuild/shared": "~0.49.0",
14
- "@valbuild/ui": "~0.49.0",
12
+ "@valbuild/core": "~0.51.0",
13
+ "@valbuild/shared": "~0.51.0",
14
+ "@valbuild/ui": "~0.51.0",
15
15
  "@vercel/stega": "^0.1.0",
16
16
  "base64-arraybuffer": "^1.0.2",
17
17
  "style-to-object": "^0.4.1"
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { _ as _defineProperty } from '../../dist/defineProperty-f319cb47.browser.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-6ed7deb7.browser.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/shared/internal';
10
10
 
@@ -242,7 +242,6 @@ function stegaEncode(input, opts) {
242
242
  }, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
243
243
  );
244
244
  }
245
-
246
245
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
247
246
  return sourceOrSelector;
248
247
  }
@@ -8,7 +8,7 @@ var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
  var React = require('react');
10
10
  var stega = require('@vercel/stega');
11
- var defineProperty = require('../../dist/defineProperty-c82a49b0.cjs.dev.js');
11
+ var defineProperty = require('../../dist/defineProperty-c84f9aba.cjs.dev.js');
12
12
  var core = require('@valbuild/core');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
 
@@ -252,7 +252,6 @@ function stegaEncode(input, opts) {
252
252
  }, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
253
253
  );
254
254
  }
255
-
256
255
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
257
256
  return sourceOrSelector;
258
257
  }
@@ -8,7 +8,7 @@ var ReactJSXRuntime = require('react/jsx-runtime');
8
8
  var jsxRuntimeDev = require('react/jsx-dev-runtime');
9
9
  var React = require('react');
10
10
  var stega = require('@vercel/stega');
11
- var defineProperty = require('../../dist/defineProperty-36ed93cd.cjs.prod.js');
11
+ var defineProperty = require('../../dist/defineProperty-f8fe5660.cjs.prod.js');
12
12
  var core = require('@valbuild/core');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
 
@@ -252,7 +252,6 @@ function stegaEncode(input, opts) {
252
252
  }, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
253
253
  );
254
254
  }
255
-
256
255
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
257
256
  return sourceOrSelector;
258
257
  }
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { _ as _defineProperty } from '../../dist/defineProperty-12b5bd29.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-9bf3d0c0.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/shared/internal';
10
10
 
@@ -242,7 +242,6 @@ function stegaEncode(input, opts) {
242
242
  }, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
243
243
  );
244
244
  }
245
-
246
245
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
247
246
  return sourceOrSelector;
248
247
  }
@@ -4,7 +4,7 @@ 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 { vercelStegaDecode, VERCEL_STEGA_REGEX, vercelStegaSplit, vercelStegaCombine } from '@vercel/stega';
7
- import { _ as _defineProperty } from '../../dist/defineProperty-a4bf59bc.worker.esm.js';
7
+ import { _ as _defineProperty } from '../../dist/defineProperty-82fbeafc.worker.esm.js';
8
8
  import { Internal, VAL_EXTENSION, FILE_REF_PROP } from '@valbuild/core';
9
9
  import { parseRichTextSource } from '@valbuild/shared/internal';
10
10
 
@@ -242,7 +242,6 @@ function stegaEncode(input, opts) {
242
242
  }, false // auto detection on urls and dates is disabled, isDate could be used but it is also disabled (users should use a date schema instead): isDate(sourceOrSelector) // skip = true if isDate
243
243
  );
244
244
  }
245
-
246
245
  if (typeof sourceOrSelector === "number" || typeof sourceOrSelector === "boolean") {
247
246
  return sourceOrSelector;
248
247
  }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValProvider-1bf1d7e4.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValProvider-1bf1d7e4.cjs.dev.js");
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValUI-b98a0c8f.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValUI-b98a0c8f.cjs.dev.js");
7
- }
@@ -1,32 +0,0 @@
1
- function _toPrimitive(input, hint) {
2
- if (typeof input !== "object" || input === null) return input;
3
- var prim = input[Symbol.toPrimitive];
4
- if (prim !== undefined) {
5
- var res = prim.call(input, hint || "default");
6
- if (typeof res !== "object") return res;
7
- throw new TypeError("@@toPrimitive must return a primitive value.");
8
- }
9
- return (hint === "string" ? String : Number)(input);
10
- }
11
-
12
- function _toPropertyKey(arg) {
13
- var key = _toPrimitive(arg, "string");
14
- return typeof key === "symbol" ? key : String(key);
15
- }
16
-
17
- function _defineProperty(obj, key, value) {
18
- key = _toPropertyKey(key);
19
- if (key in obj) {
20
- Object.defineProperty(obj, key, {
21
- value: value,
22
- enumerable: true,
23
- configurable: true,
24
- writable: true
25
- });
26
- } else {
27
- obj[key] = value;
28
- }
29
- return obj;
30
- }
31
-
32
- export { _defineProperty as _, _toPropertyKey as a };
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- function _toPrimitive(input, hint) {
4
- if (typeof input !== "object" || input === null) return input;
5
- var prim = input[Symbol.toPrimitive];
6
- if (prim !== undefined) {
7
- var res = prim.call(input, hint || "default");
8
- if (typeof res !== "object") return res;
9
- throw new TypeError("@@toPrimitive must return a primitive value.");
10
- }
11
- return (hint === "string" ? String : Number)(input);
12
- }
13
-
14
- function _toPropertyKey(arg) {
15
- var key = _toPrimitive(arg, "string");
16
- return typeof key === "symbol" ? key : String(key);
17
- }
18
-
19
- function _defineProperty(obj, key, value) {
20
- key = _toPropertyKey(key);
21
- if (key in obj) {
22
- Object.defineProperty(obj, key, {
23
- value: value,
24
- enumerable: true,
25
- configurable: true,
26
- writable: true
27
- });
28
- } else {
29
- obj[key] = value;
30
- }
31
- return obj;
32
- }
33
-
34
- exports._defineProperty = _defineProperty;
35
- exports._toPropertyKey = _toPropertyKey;
@@ -1,32 +0,0 @@
1
- function _toPrimitive(input, hint) {
2
- if (typeof input !== "object" || input === null) return input;
3
- var prim = input[Symbol.toPrimitive];
4
- if (prim !== undefined) {
5
- var res = prim.call(input, hint || "default");
6
- if (typeof res !== "object") return res;
7
- throw new TypeError("@@toPrimitive must return a primitive value.");
8
- }
9
- return (hint === "string" ? String : Number)(input);
10
- }
11
-
12
- function _toPropertyKey(arg) {
13
- var key = _toPrimitive(arg, "string");
14
- return typeof key === "symbol" ? key : String(key);
15
- }
16
-
17
- function _defineProperty(obj, key, value) {
18
- key = _toPropertyKey(key);
19
- if (key in obj) {
20
- Object.defineProperty(obj, key, {
21
- value: value,
22
- enumerable: true,
23
- configurable: true,
24
- writable: true
25
- });
26
- } else {
27
- obj[key] = value;
28
- }
29
- return obj;
30
- }
31
-
32
- export { _defineProperty as _, _toPropertyKey as a };
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- function _toPrimitive(input, hint) {
4
- if (typeof input !== "object" || input === null) return input;
5
- var prim = input[Symbol.toPrimitive];
6
- if (prim !== undefined) {
7
- var res = prim.call(input, hint || "default");
8
- if (typeof res !== "object") return res;
9
- throw new TypeError("@@toPrimitive must return a primitive value.");
10
- }
11
- return (hint === "string" ? String : Number)(input);
12
- }
13
-
14
- function _toPropertyKey(arg) {
15
- var key = _toPrimitive(arg, "string");
16
- return typeof key === "symbol" ? key : String(key);
17
- }
18
-
19
- function _defineProperty(obj, key, value) {
20
- key = _toPropertyKey(key);
21
- if (key in obj) {
22
- Object.defineProperty(obj, key, {
23
- value: value,
24
- enumerable: true,
25
- configurable: true,
26
- writable: true
27
- });
28
- } else {
29
- obj[key] = value;
30
- }
31
- return obj;
32
- }
33
-
34
- exports._defineProperty = _defineProperty;
35
- exports._toPropertyKey = _toPropertyKey;
@@ -1,32 +0,0 @@
1
- function _toPrimitive(input, hint) {
2
- if (typeof input !== "object" || input === null) return input;
3
- var prim = input[Symbol.toPrimitive];
4
- if (prim !== undefined) {
5
- var res = prim.call(input, hint || "default");
6
- if (typeof res !== "object") return res;
7
- throw new TypeError("@@toPrimitive must return a primitive value.");
8
- }
9
- return (hint === "string" ? String : Number)(input);
10
- }
11
-
12
- function _toPropertyKey(arg) {
13
- var key = _toPrimitive(arg, "string");
14
- return typeof key === "symbol" ? key : String(key);
15
- }
16
-
17
- function _defineProperty(obj, key, value) {
18
- key = _toPropertyKey(key);
19
- if (key in obj) {
20
- Object.defineProperty(obj, key, {
21
- value: value,
22
- enumerable: true,
23
- configurable: true,
24
- writable: true
25
- });
26
- } else {
27
- obj[key] = value;
28
- }
29
- return obj;
30
- }
31
-
32
- export { _defineProperty as _, _toPropertyKey as a };