@valbuild/next 0.75.2 → 0.75.3

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.
@@ -52,7 +52,7 @@ var ValApp = function ValApp(_ref) {
52
52
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
53
53
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
54
54
  type: "module",
55
- src: "".concat(route, "/static").concat(ui.VAL_APP_PATH),
55
+ src: "".concat(route, "/static").concat(ui.VERSION ? "/".concat(ui.VERSION) : "").concat(ui.VAL_APP_PATH),
56
56
  crossOrigin: "anonymous"
57
57
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
58
58
  id: ui.VAL_APP_ID
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { _ as _slicedToArray } from './slicedToArray-aa291011.esm.js';
3
- import { VAL_APP_PATH, VAL_APP_ID } from '@valbuild/ui';
3
+ import { VERSION, VAL_APP_PATH, VAL_APP_ID } from '@valbuild/ui';
4
4
  import Script from 'next/script';
5
5
  import { useState, useEffect } from 'react';
6
6
  import { u as useRemoteConfigSender } from './useRemoteConfigSender-02451801.esm.js';
@@ -44,7 +44,7 @@ var ValApp = function ValApp(_ref) {
44
44
  return /*#__PURE__*/jsxs(Fragment, {
45
45
  children: [/*#__PURE__*/jsx(Script, {
46
46
  type: "module",
47
- src: "".concat(route, "/static").concat(VAL_APP_PATH),
47
+ src: "".concat(route, "/static").concat(VERSION ? "/".concat(VERSION) : "").concat(VAL_APP_PATH),
48
48
  crossOrigin: "anonymous"
49
49
  }), /*#__PURE__*/jsx("div", {
50
50
  id: VAL_APP_ID
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValApp-a808cf89.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValApp-a808cf89.cjs.dev.js");
7
+ }
@@ -52,7 +52,7 @@ var ValApp = function ValApp(_ref) {
52
52
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
53
53
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
54
54
  type: "module",
55
- src: "".concat(route, "/static").concat(ui.VAL_APP_PATH),
55
+ src: "".concat(route, "/static").concat(ui.VERSION ? "/".concat(ui.VERSION) : "").concat(ui.VAL_APP_PATH),
56
56
  crossOrigin: "anonymous"
57
57
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
58
58
  id: ui.VAL_APP_ID
@@ -2,7 +2,7 @@
2
2
  import { _ as _slicedToArray } from './slicedToArray-aa291011.esm.js';
3
3
  import { _ as _objectSpread2 } from './objectSpread2-c1340c1c.esm.js';
4
4
  import { DEFAULT_CONTENT_HOST, Internal } from '@valbuild/core';
5
- import { VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
5
+ import { VERSION, VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
6
6
  import { useRouter } from 'next/navigation';
7
7
  import Script from 'next/script';
8
8
  import React from 'react';
@@ -266,7 +266,7 @@ var ValNextProvider = function ValNextProvider(props) {
266
266
  }), showOverlay && draftMode !== undefined && /*#__PURE__*/jsxs(React.Fragment, {
267
267
  children: [/*#__PURE__*/jsx(Script, {
268
268
  type: "module",
269
- src: "".concat(route, "/static").concat(VAL_APP_PATH),
269
+ src: "".concat(route, "/static").concat(VERSION ? "/".concat(VERSION) : "").concat(VAL_APP_PATH),
270
270
  crossOrigin: "anonymous"
271
271
  }), /*#__PURE__*/jsx("div", {
272
272
  id: VAL_OVERLAY_ID
@@ -275,7 +275,7 @@ var ValNextProvider = function ValNextProvider(props) {
275
275
  }), showOverlay && draftMode !== undefined && /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
276
276
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
277
277
  type: "module",
278
- src: "".concat(route, "/static").concat(ui.VAL_APP_PATH),
278
+ src: "".concat(route, "/static").concat(ui.VERSION ? "/".concat(ui.VERSION) : "").concat(ui.VAL_APP_PATH),
279
279
  crossOrigin: "anonymous"
280
280
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
281
281
  id: ui.VAL_OVERLAY_ID
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValNextProvider-9ff1bb92.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValNextProvider-9ff1bb92.cjs.dev.js");
7
+ }
@@ -275,7 +275,7 @@ var ValNextProvider = function ValNextProvider(props) {
275
275
  }), showOverlay && draftMode !== undefined && /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
276
276
  children: [/*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
277
277
  type: "module",
278
- src: "".concat(route, "/static").concat(ui.VAL_APP_PATH),
278
+ src: "".concat(route, "/static").concat(ui.VERSION ? "/".concat(ui.VERSION) : "").concat(ui.VAL_APP_PATH),
279
279
  crossOrigin: "anonymous"
280
280
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
281
281
  id: ui.VAL_OVERLAY_ID
@@ -6,10 +6,10 @@ var objectSpread2 = require('./objectSpread2-792eb2c2.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-3c3cdb83.cjs.dev.js');
9
+ var ValNextProvider = require('./ValNextProvider-99b4552f.cjs.dev.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
- var ValApp = require('./ValApp-54761eee.cjs.dev.js');
12
+ var ValApp = require('./ValApp-0efa0e5d.cjs.dev.js');
13
13
  var version = require('./version-82faa1d0.cjs.dev.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -6,10 +6,10 @@ var objectSpread2 = require('./objectSpread2-3c87fb4f.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-8b7cbdb7.cjs.prod.js');
9
+ var ValNextProvider = require('./ValNextProvider-9ff1bb92.cjs.prod.js');
10
10
  var NextImage = require('next/image');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
- var ValApp = require('./ValApp-9f1d8d49.cjs.prod.js');
12
+ var ValApp = require('./ValApp-a808cf89.cjs.prod.js');
13
13
  var version = require('./version-a9a6a619.cjs.prod.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -5,10 +5,10 @@ export { core as expr };
5
5
  export { FILE_REF_PROP, GenericSelector, Schema, VAL_EXTENSION, derefPatch, modules } 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-114b1205.esm.js';
8
+ import { ValNextProvider } from './ValNextProvider-5f8b7338.esm.js';
9
9
  import NextImage from 'next/image';
10
10
  import { jsx } from 'react/jsx-runtime';
11
- export { ValApp } from './ValApp-6cdadf96.esm.js';
11
+ export { ValApp } from './ValApp-3ab62a2b.esm.js';
12
12
  import { V as VERSION } from './version-98ec5c7a.esm.js';
13
13
 
14
14
  function _typeof(o) {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "next",
9
9
  "react"
10
10
  ],
11
- "version": "0.75.2",
11
+ "version": "0.75.3",
12
12
  "scripts": {
13
13
  "typecheck": "tsc --noEmit",
14
14
  "test": "jest"
@@ -45,11 +45,11 @@
45
45
  "exports": true
46
46
  },
47
47
  "dependencies": {
48
- "@valbuild/core": "~0.75.2",
49
- "@valbuild/react": "~0.75.2",
50
- "@valbuild/server": "~0.75.2",
51
- "@valbuild/shared": "~0.75.2",
52
- "@valbuild/ui": "~0.75.2",
48
+ "@valbuild/core": "~0.75.3",
49
+ "@valbuild/react": "~0.75.3",
50
+ "@valbuild/server": "~0.75.3",
51
+ "@valbuild/shared": "~0.75.3",
52
+ "@valbuild/ui": "~0.75.3",
53
53
  "client-only": "^0.0.1",
54
54
  "server-only": "^0.0.1"
55
55
  },
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValApp-9f1d8d49.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValApp-9f1d8d49.cjs.dev.js");
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValNextProvider-8b7cbdb7.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValNextProvider-8b7cbdb7.cjs.dev.js");
7
- }