@valbuild/next 0.60.0 → 0.60.2

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.
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValApp-0ec0c7f3.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValApp-0ec0c7f3.cjs.dev.js");
7
+ }
@@ -22,9 +22,6 @@ var ValApp = function ValApp(_ref) {
22
22
  children: [/*#__PURE__*/jsxRuntime.jsx("link", {
23
23
  rel: "stylesheet",
24
24
  href: "".concat(route , "/static").concat(ui.VAL_CSS_PATH)
25
- }), ui.IS_DEV && /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
26
- type: "module",
27
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
28
25
  }), /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
29
26
  type: "module",
30
27
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { VAL_CSS_PATH, IS_DEV, VAL_APP_PATH, VAL_APP_ID } from '@valbuild/ui';
2
+ import { VAL_CSS_PATH, VAL_APP_PATH, VAL_APP_ID } from '@valbuild/ui';
3
3
  import Script from 'next/script';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
@@ -14,9 +14,6 @@ var ValApp = function ValApp(_ref) {
14
14
  children: [/*#__PURE__*/jsx("link", {
15
15
  rel: "stylesheet",
16
16
  href: "".concat(route , "/static").concat(VAL_CSS_PATH)
17
- }), IS_DEV && /*#__PURE__*/jsx(Script, {
18
- type: "module",
19
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
20
17
  }), /*#__PURE__*/jsx(Script, {
21
18
  type: "module",
22
19
  src: "".concat(route, "/static").concat(VAL_APP_PATH)
@@ -22,9 +22,6 @@ var ValApp = function ValApp(_ref) {
22
22
  children: [/*#__PURE__*/jsxRuntime.jsx("link", {
23
23
  rel: "stylesheet",
24
24
  href: "".concat(route , "/static").concat(ui.VAL_CSS_PATH)
25
- }), ui.IS_DEV && /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
26
- type: "module",
27
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
28
25
  }), /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
29
26
  type: "module",
30
27
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { _ as _slicedToArray } from './slicedToArray-1ff80c5e.esm.js';
3
- import { IS_DEV, VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
3
+ import { VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
4
4
  import { usePathname, useRouter } from 'next/navigation';
5
5
  import Script from 'next/script';
6
6
  import { useMemo, useTransition, useEffect } from 'react';
@@ -58,10 +58,7 @@ var ValNextProvider = function ValNextProvider(props) {
58
58
  value: {
59
59
  valEvents: valEvents
60
60
  },
61
- children: [props.children, IS_DEV && /*#__PURE__*/jsx(Script, {
62
- type: "module",
63
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
64
- }), /*#__PURE__*/jsx(Script, {
61
+ children: [props.children, /*#__PURE__*/jsx(Script, {
65
62
  type: "module",
66
63
  src: "".concat(route, "/static").concat(VAL_APP_PATH)
67
64
  }), /*#__PURE__*/jsx("div", {
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValNextProvider-bdce5efd.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValNextProvider-bdce5efd.cjs.dev.js");
7
+ }
@@ -66,10 +66,7 @@ var ValNextProvider = function ValNextProvider(props) {
66
66
  value: {
67
67
  valEvents: valEvents
68
68
  },
69
- children: [props.children, ui.IS_DEV && /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
70
- type: "module",
71
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
72
- }), /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
69
+ children: [props.children, /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
73
70
  type: "module",
74
71
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
75
72
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -66,10 +66,7 @@ var ValNextProvider = function ValNextProvider(props) {
66
66
  value: {
67
67
  valEvents: valEvents
68
68
  },
69
- children: [props.children, ui.IS_DEV && /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
70
- type: "module",
71
- children: "import RefreshRuntime from \"".concat(route, "/static/@react-refresh\"\nif (RefreshRuntime.injectIntoGlobalHook) {\n RefreshRuntime.injectIntoGlobalHook(window)\n window.$RefreshReg$ = () => {}\n window.$RefreshSig$ = () => (type) => type\n window.__vite_plugin_react_preamble_installed__ = true\n}")
72
- }), /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
69
+ children: [props.children, /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
73
70
  type: "module",
74
71
  src: "".concat(route, "/static").concat(ui.VAL_APP_PATH)
75
72
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -6,10 +6,10 @@ var objectSpread2 = require('./objectSpread2-bb9509e8.cjs.dev.js');
6
6
  var core = require('@valbuild/core');
7
7
  var stega = require('@valbuild/react/stega');
8
8
  var internal = require('@valbuild/react/internal');
9
- var ValNextProvider = require('./ValNextProvider-90d31215.cjs.dev.js');
9
+ var ValNextProvider = require('./ValNextProvider-d06cae18.cjs.dev.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
- var ValApp = require('./ValApp-cbf9b1c3.cjs.dev.js');
12
+ var ValApp = require('./ValApp-aff60572.cjs.dev.js');
13
13
 
14
14
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
15
 
@@ -6,10 +6,10 @@ var objectSpread2 = require('./objectSpread2-24e737a6.cjs.prod.js');
6
6
  var core = require('@valbuild/core');
7
7
  var stega = require('@valbuild/react/stega');
8
8
  var internal = require('@valbuild/react/internal');
9
- var ValNextProvider = require('./ValNextProvider-8856010a.cjs.prod.js');
9
+ var ValNextProvider = require('./ValNextProvider-bdce5efd.cjs.prod.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
- var ValApp = require('./ValApp-09d3eba7.cjs.prod.js');
12
+ var ValApp = require('./ValApp-0ec0c7f3.cjs.prod.js');
13
13
 
14
14
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
15
15
 
@@ -5,10 +5,10 @@ export { core as expr };
5
5
  export { FILE_REF_PROP, GenericSelector, Schema, VAL_EXTENSION, derefPatch } from '@valbuild/core';
6
6
  import { stegaClean, stegaDecodeString, autoTagJSX } from '@valbuild/react/stega';
7
7
  export { ValRichText } from '@valbuild/react/internal';
8
- import { ValNextProvider } from './ValNextProvider-a2d6f137.esm.js';
8
+ import { ValNextProvider } from './ValNextProvider-79a4f66e.esm.js';
9
9
  import NextImage from 'next/image';
10
10
  import { jsx } from 'react/jsx-runtime';
11
- export { ValApp } from './ValApp-6827827a.esm.js';
11
+ export { ValApp } from './ValApp-61103149.esm.js';
12
12
 
13
13
  function _typeof(o) {
14
14
  "@babel/helpers - typeof";
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "next",
9
9
  "react"
10
10
  ],
11
- "version": "0.60.0",
11
+ "version": "0.60.2",
12
12
  "scripts": {
13
13
  "typecheck": "tsc --noEmit",
14
14
  "test": "jest"
@@ -45,10 +45,10 @@
45
45
  "exports": true
46
46
  },
47
47
  "dependencies": {
48
- "@valbuild/core": "~0.60.0",
49
- "@valbuild/react": "~0.60.0",
50
- "@valbuild/server": "~0.60.0",
51
- "@valbuild/ui": "~0.60.0",
48
+ "@valbuild/core": "~0.60.2",
49
+ "@valbuild/react": "~0.60.2",
50
+ "@valbuild/server": "~0.60.2",
51
+ "@valbuild/ui": "~0.60.2",
52
52
  "client-only": "^0.0.1",
53
53
  "server-only": "^0.0.1"
54
54
  },
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValApp-09d3eba7.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValApp-09d3eba7.cjs.dev.js");
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValNextProvider-8856010a.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValNextProvider-8856010a.cjs.dev.js");
7
- }