@valbuild/react 0.50.0 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -645,7 +645,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React__default["de
645
645
  valApi: undefined
646
646
  }) : undefined;
647
647
  var ValUI = /*#__PURE__*/React.lazy(function () {
648
- 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')); });
649
649
  });
650
650
  function ValProvider(_ref) {
651
651
  var children = _ref.children,
@@ -619,7 +619,7 @@ var ValContext = /*#__PURE__*/React.createContext({
619
619
  valApi: undefined
620
620
  }) ;
621
621
  var ValUI = /*#__PURE__*/lazy(function () {
622
- return import('./ValUI-07905fec.browser.esm.js');
622
+ return import('./ValUI-b82ca977.browser.esm.js');
623
623
  });
624
624
  function ValProvider(_ref) {
625
625
  var children = _ref.children,
@@ -619,7 +619,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React.createContex
619
619
  valApi: undefined
620
620
  }) : undefined;
621
621
  var ValUI = /*#__PURE__*/lazy(function () {
622
- return import('./ValUI-efe41d9a.esm.js');
622
+ return import('./ValUI-04c66635.esm.js');
623
623
  });
624
624
  function ValProvider(_ref) {
625
625
  var children = _ref.children,
@@ -645,7 +645,7 @@ var ValContext = typeof window !== "undefined" ? /*#__PURE__*/React__default["de
645
645
  valApi: undefined
646
646
  }) : undefined;
647
647
  var ValUI = /*#__PURE__*/React.lazy(function () {
648
- 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')); });
649
649
  });
650
650
  function ValProvider(_ref) {
651
651
  var children = _ref.children,
@@ -614,7 +614,7 @@ var useValApi = function useValApi() {
614
614
  };
615
615
  var ValContext = undefined;
616
616
  var ValUI = /*#__PURE__*/lazy(function () {
617
- return import('./ValUI-15ad1f1e.worker.esm.js');
617
+ return import('./ValUI-29f95099.worker.esm.js');
618
618
  });
619
619
  function ValProvider(_ref) {
620
620
  var children = _ref.children,
@@ -1,5 +1,5 @@
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';
@@ -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,5 +1,5 @@
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';
@@ -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
+ }
@@ -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,
@@ -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,5 +1,5 @@
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';
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.50.0",
3
+ "version": "0.51.1",
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.50.0",
13
- "@valbuild/shared": "~0.50.0",
14
- "@valbuild/ui": "~0.50.0",
12
+ "@valbuild/core": "~0.51.1",
13
+ "@valbuild/shared": "~0.51.1",
14
+ "@valbuild/ui": "~0.51.1",
15
15
  "@vercel/stega": "^0.1.0",
16
16
  "base64-arraybuffer": "^1.0.2",
17
17
  "style-to-object": "^0.4.1"
@@ -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
- }