@valbuild/next 0.146.3 → 0.147.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 (25) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/client/dist/valbuild-next-client.cjs.dev.js +1 -1
  3. package/client/dist/valbuild-next-client.cjs.prod.js +1 -1
  4. package/client/dist/valbuild-next-client.esm.js +1 -1
  5. package/dist/ValNextProvider-3f8bc508.cjs.js +7 -0
  6. package/dist/{ValNextProvider-da189afe.cjs.prod.js → ValNextProvider-3f8bc508.cjs.prod.js} +19 -1
  7. package/dist/{ValNextProvider-3d2cd7e4.esm.js → ValNextProvider-9934c628.esm.js} +19 -1
  8. package/dist/{ValNextProvider-062a8dc9.cjs.dev.js → ValNextProvider-d6de5d9a.cjs.dev.js} +19 -1
  9. package/dist/{routeFromVal-52811ee4.cjs.dev.js → routeFromVal-1cdcfed4.cjs.dev.js} +5 -1
  10. package/dist/{routeFromVal-fe1264b3.esm.js → routeFromVal-3e1c7e8b.esm.js} +5 -1
  11. package/dist/{routeFromVal-6fc9f240.cjs.prod.js → routeFromVal-e447aa07.cjs.prod.js} +5 -1
  12. package/dist/valbuild-next.cjs.dev.js +2 -2
  13. package/dist/valbuild-next.cjs.prod.js +2 -2
  14. package/dist/valbuild-next.esm.js +2 -2
  15. package/dist/{version-2813e625.cjs.prod.js → version-87786441.cjs.prod.js} +1 -1
  16. package/dist/{version-b5f41d72.cjs.dev.js → version-b99064f0.cjs.dev.js} +1 -1
  17. package/dist/{version-9128e1b5.esm.js → version-eb5887b0.esm.js} +1 -1
  18. package/package.json +8 -8
  19. package/rsc/dist/valbuild-next-rsc.cjs.dev.js +2 -2
  20. package/rsc/dist/valbuild-next-rsc.cjs.prod.js +2 -2
  21. package/rsc/dist/valbuild-next-rsc.esm.js +2 -2
  22. package/server/dist/valbuild-next-server.cjs.dev.js +1 -1
  23. package/server/dist/valbuild-next-server.cjs.prod.js +1 -1
  24. package/server/dist/valbuild-next-server.esm.js +1 -1
  25. package/dist/ValNextProvider-da189afe.cjs.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @valbuild/next
2
2
 
3
+ ## 0.147.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#816](https://github.com/valbuild/val/pull/816) [`2f09cd5`](https://github.com/valbuild/val/commit/2f09cd5e2f4fc37f06917899f24f9ad2ee8d3a8b) Thanks [@freekh](https://github.com/freekh)! - Routers can give each route parameter a schema, and a URL can say which language a page is in.
8
+
9
+ - **`s.router(router, params, item)`** takes a schema per route parameter, by the name the route file gives it (`$slug`, `[slug]`, `{-$locale}`). Each key's parameters are validated against them, and a name the route does not have is a schema error.
10
+
11
+ ```ts
12
+ s.router(tanstackRouter, { locale: urlLocale, slug: s.string() }, item);
13
+ ```
14
+
15
+ - **`s.enum(...).locales({ ... })`** says which of the project's languages each value means, so `/nb/…` can mean `nb-NO`. The tags are checked against `locales.available` in the settings module, like `s.locale()`. On a nullable enum, a second argument names the language of a URL that leaves the segment out, which only a router parameter may use:
16
+
17
+ ```ts
18
+ const urlLocale = s
19
+ .enum("nb")
20
+ .nullable()
21
+ .locales({ nb: "nb-NO" }, { null: "en-US" });
22
+ ```
23
+
24
+ A router with a locale parameter makes each page a locale scope, so the Studio and validation know which language every page is in.
25
+
26
+ - **A route's language segment can no longer be forgotten.** In a project that declares `locales.available`, a page route with a `locale` or `lang` segment (`{-$locale}`, `[lang]`) whose module gives that parameter no schema is reported, saying what to add. Any schema answers it, so a `$lang` that is not a language is silenced with its own, e.g. `{ lang: s.enum("typescript", "python") }`. It is an ordinary validation error: the Studio still opens and `val validate` lists it, but a project that already has such a route will see it after upgrading, and it blocks publishing until the parameter has a schema.
27
+ - **The Studio's new-page form offers a language as a list.** A route parameter whose schema is a locale is picked from the project's languages, each named in its own language, with "no prefix" where the URL may leave the segment out. Other enum parameters get a list of their values, and every parameter's description is shown under it. The URL row previews what the choice puts there.
28
+ - **TanStack optional segments (`{-$param}`)** are now understood: route validation, `useValRoute` and the Studio's new-page form accept keys with and without the segment.
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [[`2f09cd5`](https://github.com/valbuild/val/commit/2f09cd5e2f4fc37f06917899f24f9ad2ee8d3a8b), [`cb04e58`](https://github.com/valbuild/val/commit/cb04e586db1e3ffd20ec1fee744561b1c8f8cffd), [`cb04e58`](https://github.com/valbuild/val/commit/cb04e586db1e3ffd20ec1fee744561b1c8f8cffd)]:
33
+ - @valbuild/core@0.147.0
34
+ - @valbuild/shared@0.147.0
35
+ - @valbuild/ui@0.147.0
36
+ - @valbuild/server@0.147.0
37
+ - @valbuild/language-server@0.147.0
38
+ - @valbuild/mcp@0.147.0
39
+ - @valbuild/react@0.147.0
40
+
41
+ ## 0.146.4
42
+
43
+ ### Patch Changes
44
+
45
+ - [#870](https://github.com/valbuild/val/pull/870) [`81f2e80`](https://github.com/valbuild/val/commit/81f2e803c4cefdf58bbe6856c06e98ace95a8e0b) Thanks [@freekh](https://github.com/freekh)! - The canvas works on a page behind your site's own login.
46
+
47
+ A site with its own sign-in (a dashboard, an intranet, a members' area) can be edited in the canvas. The canvas is a frame on the same origin as the Studio, so it sends your site's cookies like any other tab: if you are signed in to the site, the canvas shows the page signed in as you.
48
+
49
+ If you were not signed in, the site redirected the canvas to its login page, and the canvas then broke. That page mounted Val's whole overlay inside the canvas, a Studio inside the Studio. The canvas stayed on "Preview is not ready yet" through the sign-in and after it, until you pressed Reload. Now a page shown in the Studio's canvas counts as the canvas wherever it navigated to, so you can sign in inside the canvas and keep editing.
50
+
51
+ - Updated dependencies [[`81f2e80`](https://github.com/valbuild/val/commit/81f2e803c4cefdf58bbe6856c06e98ace95a8e0b), [`59ff6c3`](https://github.com/valbuild/val/commit/59ff6c367bc313b2bb7718b00c1641aaccab949d), [`c31f609`](https://github.com/valbuild/val/commit/c31f609fdeed79aa0e139fa4f652ba0684e96ea3)]:
52
+ - @valbuild/shared@0.146.4
53
+ - @valbuild/ui@0.146.4
54
+ - @valbuild/server@0.146.4
55
+ - @valbuild/language-server@0.146.4
56
+ - @valbuild/mcp@0.146.4
57
+ - @valbuild/react@0.146.4
58
+
3
59
  ## 0.146.3
4
60
 
5
61
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('client-only');
6
- var routeFromVal = require('../../dist/routeFromVal-52811ee4.cjs.dev.js');
6
+ var routeFromVal = require('../../dist/routeFromVal-1cdcfed4.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('client-only');
6
- var routeFromVal = require('../../dist/routeFromVal-6fc9f240.cjs.prod.js');
6
+ var routeFromVal = require('../../dist/routeFromVal-e447aa07.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
@@ -1,5 +1,5 @@
1
1
  import 'client-only';
2
- import { j as jsonValuesRecordToFill, f as fillJsonValuesRecord, g as getJsonEntryStegaRoot, _ as _typeof, c as bundledJsonEntryImport, a as isJsonValuesRecordSchema, b as getValRouteUrlFromVal, i as initValRouteFromVal } from '../../dist/routeFromVal-fe1264b3.esm.js';
2
+ import { j as jsonValuesRecordToFill, f as fillJsonValuesRecord, g as getJsonEntryStegaRoot, _ as _typeof, c as bundledJsonEntryImport, a as isJsonValuesRecordSchema, b as getValRouteUrlFromVal, i as initValRouteFromVal } from '../../dist/routeFromVal-3e1c7e8b.esm.js';
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { getModuleIds, stegaEncode } from '@valbuild/react/stega';
5
5
  import React from 'react';
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValNextProvider-3f8bc508.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValNextProvider-3f8bc508.cjs.dev.js");
7
+ }
@@ -366,7 +366,7 @@ var ValNextProvider = function ValNextProvider(props) {
366
366
  setMountOverlay(false);
367
367
  return;
368
368
  }
369
- setIsCanvas(client.isValCanvasFrame(location.search));
369
+ setIsCanvas(client.isValCanvasFrame(location.search, readParentPathname()));
370
370
  setMountOverlay(hasValEnableCookie(document.cookie));
371
371
  }, []);
372
372
  React__default["default"].useEffect(function () {
@@ -874,6 +874,24 @@ function isValStudioPath(pathname) {
874
874
  return pathname.startsWith("/val");
875
875
  }
876
876
 
877
+ /**
878
+ * The path of the window framing this document, or `null`.
879
+ *
880
+ * `null` for a top-level document, and for a parent on another origin: reading
881
+ * a cross-origin `location` throws, and a page on another origin is not the
882
+ * studio, whose canvas is always the same app. See `isValCanvasFrame`.
883
+ */
884
+ function readParentPathname() {
885
+ try {
886
+ if (window.parent === window) {
887
+ return null;
888
+ }
889
+ return window.parent.location.pathname;
890
+ } catch (_unused) {
891
+ return null;
892
+ }
893
+ }
894
+
877
895
  // Same guards as the mountOverlay effect: suspending where the overlay can't
878
896
  // mount would only ever stall into the waitForLoad timeout. Browser-only.
879
897
  function shouldEnableVal() {
@@ -339,7 +339,7 @@ var ValNextProvider = function ValNextProvider(props) {
339
339
  setMountOverlay(false);
340
340
  return;
341
341
  }
342
- setIsCanvas(isValCanvasFrame(location.search));
342
+ setIsCanvas(isValCanvasFrame(location.search, readParentPathname()));
343
343
  setMountOverlay(hasValEnableCookie(document.cookie));
344
344
  }, []);
345
345
  React.useEffect(function () {
@@ -847,6 +847,24 @@ function isValStudioPath(pathname) {
847
847
  return pathname.startsWith("/val");
848
848
  }
849
849
 
850
+ /**
851
+ * The path of the window framing this document, or `null`.
852
+ *
853
+ * `null` for a top-level document, and for a parent on another origin: reading
854
+ * a cross-origin `location` throws, and a page on another origin is not the
855
+ * studio, whose canvas is always the same app. See `isValCanvasFrame`.
856
+ */
857
+ function readParentPathname() {
858
+ try {
859
+ if (window.parent === window) {
860
+ return null;
861
+ }
862
+ return window.parent.location.pathname;
863
+ } catch (_unused) {
864
+ return null;
865
+ }
866
+ }
867
+
850
868
  // Same guards as the mountOverlay effect: suspending where the overlay can't
851
869
  // mount would only ever stall into the waitForLoad timeout. Browser-only.
852
870
  function shouldEnableVal() {
@@ -366,7 +366,7 @@ var ValNextProvider = function ValNextProvider(props) {
366
366
  setMountOverlay(false);
367
367
  return;
368
368
  }
369
- setIsCanvas(client.isValCanvasFrame(location.search));
369
+ setIsCanvas(client.isValCanvasFrame(location.search, readParentPathname()));
370
370
  setMountOverlay(hasValEnableCookie(document.cookie));
371
371
  }, []);
372
372
  React__default["default"].useEffect(function () {
@@ -874,6 +874,24 @@ function isValStudioPath(pathname) {
874
874
  return pathname.startsWith("/val");
875
875
  }
876
876
 
877
+ /**
878
+ * The path of the window framing this document, or `null`.
879
+ *
880
+ * `null` for a top-level document, and for a parent on another origin: reading
881
+ * a cross-origin `location` throws, and a page on another origin is not the
882
+ * studio, whose canvas is always the same app. See `isValCanvasFrame`.
883
+ */
884
+ function readParentPathname() {
885
+ try {
886
+ if (window.parent === window) {
887
+ return null;
888
+ }
889
+ return window.parent.location.pathname;
890
+ } catch (_unused) {
891
+ return null;
892
+ }
893
+ }
894
+
877
895
  // Same guards as the mountOverlay effect: suspending where the overlay can't
878
896
  // mount would only ever stall into the waitForLoad timeout. Browser-only.
879
897
  function shouldEnableVal() {
@@ -231,7 +231,11 @@ val) {
231
231
  } else if (part.type === "array-param" || part.type === "string-param") {
232
232
  var key = part.paramName;
233
233
  var value = resolvedParams === null || resolvedParams === void 0 ? void 0 : resolvedParams[key];
234
- if (typeof value !== "string" && !Array.isArray(value)) {
234
+ if (part.type === "string-param" && part.optional && (value === undefined || value === null)) {
235
+ // An optional segment the URL left out (`{-$locale}`): it contributes
236
+ // nothing to the key, so `/about` is the key for `{ locale: undefined }`.
237
+ delete missingParamKeys[key];
238
+ } else if (typeof value !== "string" && !Array.isArray(value)) {
235
239
  missingPatterns.push(part);
236
240
  } else if (Array.isArray(value)) {
237
241
  if (missingParamKeys !== null && missingParamKeys !== void 0 && missingParamKeys[key]) {
@@ -229,7 +229,11 @@ val) {
229
229
  } else if (part.type === "array-param" || part.type === "string-param") {
230
230
  var key = part.paramName;
231
231
  var value = resolvedParams === null || resolvedParams === void 0 ? void 0 : resolvedParams[key];
232
- if (typeof value !== "string" && !Array.isArray(value)) {
232
+ if (part.type === "string-param" && part.optional && (value === undefined || value === null)) {
233
+ // An optional segment the URL left out (`{-$locale}`): it contributes
234
+ // nothing to the key, so `/about` is the key for `{ locale: undefined }`.
235
+ delete missingParamKeys[key];
236
+ } else if (typeof value !== "string" && !Array.isArray(value)) {
233
237
  missingPatterns.push(part);
234
238
  } else if (Array.isArray(value)) {
235
239
  if (missingParamKeys !== null && missingParamKeys !== void 0 && missingParamKeys[key]) {
@@ -231,7 +231,11 @@ val) {
231
231
  } else if (part.type === "array-param" || part.type === "string-param") {
232
232
  var key = part.paramName;
233
233
  var value = resolvedParams === null || resolvedParams === void 0 ? void 0 : resolvedParams[key];
234
- if (typeof value !== "string" && !Array.isArray(value)) {
234
+ if (part.type === "string-param" && part.optional && (value === undefined || value === null)) {
235
+ // An optional segment the URL left out (`{-$locale}`): it contributes
236
+ // nothing to the key, so `/about` is the key for `{ locale: undefined }`.
237
+ delete missingParamKeys[key];
238
+ } else if (typeof value !== "string" && !Array.isArray(value)) {
235
239
  missingPatterns.push(part);
236
240
  } else if (Array.isArray(value)) {
237
241
  if (missingParamKeys !== null && missingParamKeys !== void 0 && missingParamKeys[key]) {
@@ -8,13 +8,13 @@ var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var objectWithoutProperties = require('./objectWithoutProperties-8f93848f.cjs.dev.js');
10
10
  var internal = require('@valbuild/react/internal');
11
- var ValNextProvider = require('./ValNextProvider-062a8dc9.cjs.dev.js');
11
+ var ValNextProvider = require('./ValNextProvider-d6de5d9a.cjs.dev.js');
12
12
  var NextImage = require('next/image');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-b8130c1b.cjs.dev.js');
15
15
  var ValApp = require('./ValApp-cd14230d.cjs.dev.js');
16
16
  var ValModulesClient = require('./ValModulesClient-4ecabf99.cjs.dev.js');
17
- var version = require('./version-b5f41d72.cjs.dev.js');
17
+ var version = require('./version-b99064f0.cjs.dev.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
19
19
  require('./defineProperty-f90345d7.cjs.dev.js');
20
20
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
@@ -8,13 +8,13 @@ var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var objectWithoutProperties = require('./objectWithoutProperties-107dcb46.cjs.prod.js');
10
10
  var internal = require('@valbuild/react/internal');
11
- var ValNextProvider = require('./ValNextProvider-da189afe.cjs.prod.js');
11
+ var ValNextProvider = require('./ValNextProvider-3f8bc508.cjs.prod.js');
12
12
  var NextImage = require('next/image');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
  var ValVideo = require('./ValVideo-94e5aa28.cjs.prod.js');
15
15
  var ValApp = require('./ValApp-b17ac306.cjs.prod.js');
16
16
  var ValModulesClient = require('./ValModulesClient-10c0721c.cjs.prod.js');
17
- var version = require('./version-2813e625.cjs.prod.js');
17
+ var version = require('./version-87786441.cjs.prod.js');
18
18
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
19
19
  require('./defineProperty-8951f469.cjs.prod.js');
20
20
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
@@ -7,13 +7,13 @@ export { GenericSelector, Schema, VAL_EXTENSION, derefPatch, modules } from '@va
7
7
  import { stegaEncode, attrs, raw, autoTagJSX } from '@valbuild/react/stega';
8
8
  import { d as decodeValPathsOfString, _ as _objectWithoutProperties } from './objectWithoutProperties-2daec22c.esm.js';
9
9
  export { ValRichText } from '@valbuild/react/internal';
10
- import { ValNextProvider } from './ValNextProvider-3d2cd7e4.esm.js';
10
+ import { ValNextProvider } from './ValNextProvider-9934c628.esm.js';
11
11
  import NextImage from 'next/image';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
  export { ValVideo } from './ValVideo-19f2ab05.esm.js';
14
14
  export { ValApp } from './ValApp-821536aa.esm.js';
15
15
  export { ValModulesClient, useRegisterValModules } from './ValModulesClient-0dd601a1.esm.js';
16
- import { V as VERSION } from './version-9128e1b5.esm.js';
16
+ import { V as VERSION } from './version-eb5887b0.esm.js';
17
17
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
18
18
  import './defineProperty-cca5affa.esm.js';
19
19
  import './unsupportedIterableToArray-5baabfdc.esm.js';
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.146.3",
17
+ version: "0.147.0",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.146.3",
17
+ version: "0.147.0",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -12,7 +12,7 @@ var packageJson = {
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- version: "0.146.3",
15
+ version: "0.147.0",
16
16
  scripts: {
17
17
  typecheck: "tsc --noEmit",
18
18
  test: "jest"
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.146.3",
15
+ "version": "0.147.0",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -47,13 +47,13 @@
47
47
  "dependencies": {
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
- "@valbuild/core": "0.146.2",
51
- "@valbuild/mcp": "0.146.2",
52
- "@valbuild/react": "0.146.2",
53
- "@valbuild/server": "0.146.2",
54
- "@valbuild/shared": "0.146.2",
55
- "@valbuild/ui": "0.146.2",
56
- "@valbuild/language-server": "0.146.2"
50
+ "@valbuild/core": "0.147.0",
51
+ "@valbuild/language-server": "0.147.0",
52
+ "@valbuild/react": "0.147.0",
53
+ "@valbuild/mcp": "0.147.0",
54
+ "@valbuild/shared": "0.147.0",
55
+ "@valbuild/server": "0.147.0",
56
+ "@valbuild/ui": "0.147.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@testing-library/react": "^16.3.3",
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('server-only');
6
- var routeFromVal = require('../../dist/routeFromVal-52811ee4.cjs.dev.js');
6
+ var routeFromVal = require('../../dist/routeFromVal-1cdcfed4.cjs.dev.js');
7
7
  var defineProperty = require('../../dist/defineProperty-f90345d7.cjs.dev.js');
8
8
  var objectSpread2 = require('../../dist/objectSpread2-58024783.cjs.dev.js');
9
9
  var asyncToGenerator = require('../../dist/asyncToGenerator-c3823d62.cjs.dev.js');
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-b5f41d72.cjs.dev.js');
15
+ var version = require('../../dist/version-b99064f0.cjs.dev.js');
16
16
  require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
17
17
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
18
18
  require('../../dist/slicedToArray-44036a76.cjs.dev.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('server-only');
6
- var routeFromVal = require('../../dist/routeFromVal-6fc9f240.cjs.prod.js');
6
+ var routeFromVal = require('../../dist/routeFromVal-e447aa07.cjs.prod.js');
7
7
  var defineProperty = require('../../dist/defineProperty-8951f469.cjs.prod.js');
8
8
  var objectSpread2 = require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
9
9
  var asyncToGenerator = require('../../dist/asyncToGenerator-8e5c36c8.cjs.prod.js');
@@ -12,7 +12,7 @@ var core = require('@valbuild/core');
12
12
  var React = require('react');
13
13
  var internal = require('@valbuild/shared/internal');
14
14
  var server = require('@valbuild/server');
15
- var version = require('../../dist/version-2813e625.cjs.prod.js');
15
+ var version = require('../../dist/version-87786441.cjs.prod.js');
16
16
  require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
17
17
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
18
18
  require('../../dist/slicedToArray-ce613de6.cjs.prod.js');
@@ -1,5 +1,5 @@
1
1
  import 'server-only';
2
- import { f as fillJsonValuesRecord, j as jsonValuesRecordToFill, i as initValRouteFromVal, g as getJsonEntryStegaRoot, a as isJsonValuesRecordSchema, b as getValRouteUrlFromVal, c as bundledJsonEntryImport, _ as _typeof } from '../../dist/routeFromVal-fe1264b3.esm.js';
2
+ import { f as fillJsonValuesRecord, j as jsonValuesRecordToFill, i as initValRouteFromVal, g as getJsonEntryStegaRoot, a as isJsonValuesRecordSchema, b as getValRouteUrlFromVal, c as bundledJsonEntryImport, _ as _typeof } from '../../dist/routeFromVal-3e1c7e8b.esm.js';
3
3
  import { _ as _defineProperty } from '../../dist/defineProperty-cca5affa.esm.js';
4
4
  import { _ as _objectSpread2 } from '../../dist/objectSpread2-60d1bd93.esm.js';
5
5
  import { _ as _asyncToGenerator, a as _regenerator } from '../../dist/asyncToGenerator-500f022f.esm.js';
@@ -8,7 +8,7 @@ import { Internal } from '@valbuild/core';
8
8
  import { cache } from 'react';
9
9
  import { VAL_SESSION_COOKIE, memoizePerRequest } from '@valbuild/shared/internal';
10
10
  import { createValServer } from '@valbuild/server';
11
- import { V as VERSION } from '../../dist/version-9128e1b5.esm.js';
11
+ import { V as VERSION } from '../../dist/version-eb5887b0.esm.js';
12
12
  import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
13
13
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
14
14
  import '../../dist/slicedToArray-aa291011.esm.js';
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-58024783.cjs.dev.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-b5f41d72.cjs.dev.js');
12
+ var version = require('../../dist/version-b99064f0.cjs.dev.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
15
15
  require('../../dist/defineProperty-f90345d7.cjs.dev.js');
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-2813e625.cjs.prod.js');
12
+ var version = require('../../dist/version-87786441.cjs.prod.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
15
15
  require('../../dist/defineProperty-8951f469.cjs.prod.js');
@@ -6,7 +6,7 @@ import { Internal } from '@valbuild/core';
6
6
  import { createValApiRouter, createValServer } from '@valbuild/server';
7
7
  export { createPrettierFormatter } from '@valbuild/server';
8
8
  import { NextResponse } from 'next/server';
9
- import { V as VERSION } from '../../dist/version-9128e1b5.esm.js';
9
+ import { V as VERSION } from '../../dist/version-eb5887b0.esm.js';
10
10
  import { initValMcp as initValMcp$1 } from '@valbuild/mcp';
11
11
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
12
12
  import '../../dist/defineProperty-cca5affa.esm.js';
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValNextProvider-da189afe.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValNextProvider-da189afe.cjs.dev.js");
7
- }