@valbuild/next 0.91.4 → 0.92.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.
- package/LICENSE.md +7 -0
- package/README.md +4 -6
- package/client/dist/valbuild-next-client.cjs.dev.js +1 -1
- package/client/dist/valbuild-next-client.cjs.prod.js +1 -1
- package/client/dist/valbuild-next-client.esm.js +1 -1
- package/dist/declarations/src/ValImage.d.ts +0 -1
- package/dist/declarations/src/ValProvider.d.ts +2 -3
- package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +25 -1
- package/dist/declarations/src/initVal.d.ts +1 -2
- package/dist/declarations/src/rsc/initValRsc.d.ts +3 -3
- package/dist/declarations/src/server/initValServer.d.ts +1 -1
- package/dist/{routeFromVal-7d9ac291.cjs.prod.js → routeFromVal-2f6b0861.cjs.prod.js} +2 -2
- package/dist/{routeFromVal-c46c1288.cjs.dev.js → routeFromVal-360717ba.cjs.dev.js} +2 -2
- package/dist/{routeFromVal-7d9046e9.esm.js → routeFromVal-da7172ac.esm.js} +2 -2
- package/dist/valbuild-next.cjs.dev.js +3 -1
- package/dist/valbuild-next.cjs.prod.js +3 -1
- package/dist/valbuild-next.esm.js +3 -1
- package/dist/{version-98ec5c7a.esm.js → version-16f6b0ce.esm.js} +1 -1
- package/dist/{version-a9a6a619.cjs.prod.js → version-d034b2fc.cjs.dev.js} +1 -1
- package/dist/{version-82faa1d0.cjs.dev.js → version-d2061026.cjs.prod.js} +1 -1
- package/package.json +16 -14
- package/rsc/dist/valbuild-next-rsc.cjs.dev.js +2 -3
- package/rsc/dist/valbuild-next-rsc.cjs.prod.js +2 -3
- package/rsc/dist/valbuild-next-rsc.esm.js +2 -3
- package/server/dist/valbuild-next-server.cjs.dev.js +1 -2
- package/server/dist/valbuild-next-server.cjs.prod.js +1 -2
- package/server/dist/valbuild-next-server.esm.js +1 -2
package/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2025 Fredrik Ekholdt and Blank AS
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -38,12 +38,6 @@
|
|
|
38
38
|
</p>
|
|
39
39
|
</p>
|
|
40
40
|
|
|
41
|
-
# 🐉 HERE BE DRAGONS 🐉
|
|
42
|
-
|
|
43
|
-
Val is currently in beta - the API can be considered relatively stable, but expect some features to be broken and the UX to be changing.
|
|
44
|
-
|
|
45
|
-
Join us on [discord](https://discord.gg/cZzqPvaX8k) to get help or give us feedback.
|
|
46
|
-
|
|
47
41
|
## Table of contents
|
|
48
42
|
|
|
49
43
|
- [Installation](#installation)
|
|
@@ -873,3 +867,7 @@ s.string().validate((val) => {
|
|
|
873
867
|
return false; // no validation error
|
|
874
868
|
});
|
|
875
869
|
```
|
|
870
|
+
|
|
871
|
+
## Get in touch
|
|
872
|
+
|
|
873
|
+
Join us on [discord](https://discord.gg/cZzqPvaX8k) to get help or give us feedback.
|
|
@@ -7,7 +7,7 @@ var core = require('@valbuild/core');
|
|
|
7
7
|
var stega = require('@valbuild/react/stega');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var ValOverlayContext = require('../../dist/ValOverlayContext-c82a4507.cjs.dev.js');
|
|
10
|
-
var routeFromVal = require('../../dist/routeFromVal-
|
|
10
|
+
var routeFromVal = require('../../dist/routeFromVal-360717ba.cjs.dev.js');
|
|
11
11
|
require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
|
|
12
12
|
require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
|
|
13
13
|
require('../../dist/objectSpread2-792eb2c2.cjs.dev.js');
|
|
@@ -7,7 +7,7 @@ var core = require('@valbuild/core');
|
|
|
7
7
|
var stega = require('@valbuild/react/stega');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var ValOverlayContext = require('../../dist/ValOverlayContext-942f1294.cjs.prod.js');
|
|
10
|
-
var routeFromVal = require('../../dist/routeFromVal-
|
|
10
|
+
var routeFromVal = require('../../dist/routeFromVal-2f6b0861.cjs.prod.js');
|
|
11
11
|
require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
|
|
12
12
|
require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
|
|
13
13
|
require('../../dist/objectSpread2-3c87fb4f.cjs.prod.js');
|
|
@@ -3,7 +3,7 @@ import { Internal } from '@valbuild/core';
|
|
|
3
3
|
import { getModuleIds, stegaEncode } from '@valbuild/react/stega';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useValOverlayContext } from '../../dist/ValOverlayContext-6635a4d7.esm.js';
|
|
6
|
-
import { i as initValRouteFromVal, g as getValRouteUrlFromVal } from '../../dist/routeFromVal-
|
|
6
|
+
import { i as initValRouteFromVal, g as getValRouteUrlFromVal } from '../../dist/routeFromVal-da7172ac.esm.js';
|
|
7
7
|
import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
|
|
8
8
|
import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
|
|
9
9
|
import '../../dist/objectSpread2-c1340c1c.esm.js';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import NextImage from "next/image";
|
|
3
2
|
import { Image } from "@valbuild/react/stega";
|
|
4
3
|
export type ValImageProps = Omit<React.ComponentProps<typeof NextImage>, "src" | "alt" | "srcset" | "layout" | "objectFit" | "objectPosition" | "lazyBoundary" | "lazyRoot"> & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ValProvider: (props: {
|
|
3
|
-
children:
|
|
2
|
+
children: React.ReactNode | React.ReactNode[];
|
|
4
3
|
config: import("@valbuild/core").ValConfig;
|
|
5
|
-
disableRefresh?: boolean
|
|
4
|
+
disableRefresh?: boolean;
|
|
6
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,6 +35,7 @@ export declare const Internal: {
|
|
|
35
35
|
splitModuleFilePathAndModulePath: typeof import("@valbuild/core/dist/declarations/src/module").splitModuleFilePathAndModulePath;
|
|
36
36
|
joinModuleFilePathAndModulePath: typeof import("@valbuild/core/dist/declarations/src/module").joinModuleFilePathAndModulePath;
|
|
37
37
|
nextAppRouter: import("@valbuild/core").ValRouter;
|
|
38
|
+
externalUrlPage: import("@valbuild/core").ValRouter;
|
|
38
39
|
remote: {
|
|
39
40
|
createRemoteRef: typeof import("@valbuild/core/dist/declarations/src/source/remote").createRemoteRef;
|
|
40
41
|
getValidationBasis: typeof import("@valbuild/core/dist/declarations/src/remote/validationBasis").getValidationBasis;
|
|
@@ -57,7 +58,30 @@ export declare const Internal: {
|
|
|
57
58
|
[k: string]: string;
|
|
58
59
|
};
|
|
59
60
|
ModuleFilePathSep: string;
|
|
60
|
-
notFileOp: (op: import("@valbuild/core/patch").Operation) =>
|
|
61
|
+
notFileOp: (op: import("@valbuild/core/patch").Operation) => op is {
|
|
62
|
+
op: "add";
|
|
63
|
+
path: string[];
|
|
64
|
+
value: import("@valbuild/core/patch").JSONValue;
|
|
65
|
+
} | {
|
|
66
|
+
op: "remove";
|
|
67
|
+
path: import("@valbuild/core/dist/declarations/src/fp/array").NonEmptyArray<string>;
|
|
68
|
+
} | {
|
|
69
|
+
op: "replace";
|
|
70
|
+
path: string[];
|
|
71
|
+
value: import("@valbuild/core/patch").JSONValue;
|
|
72
|
+
} | {
|
|
73
|
+
op: "move";
|
|
74
|
+
from: import("@valbuild/core/dist/declarations/src/fp/array").NonEmptyArray<string>;
|
|
75
|
+
path: string[];
|
|
76
|
+
} | {
|
|
77
|
+
op: "copy";
|
|
78
|
+
from: string[];
|
|
79
|
+
path: string[];
|
|
80
|
+
} | {
|
|
81
|
+
op: "test";
|
|
82
|
+
path: string[];
|
|
83
|
+
value: import("@valbuild/core/patch").JSONValue;
|
|
84
|
+
};
|
|
61
85
|
isFileOp: (op: import("@valbuild/core/patch").Operation) => op is {
|
|
62
86
|
op: "file";
|
|
63
87
|
path: string[];
|
|
@@ -3,7 +3,6 @@ import { raw } from "@valbuild/react/stega";
|
|
|
3
3
|
import { getUnpatchedUnencodedVal } from "./getUnpatchedUnencodedVal.js";
|
|
4
4
|
import { decodeValPathsOfString } from "./decodeValPathsOfString.js";
|
|
5
5
|
import { attrs } from "@valbuild/react/stega";
|
|
6
|
-
declare const nextAppRouter: ValRouter;
|
|
7
6
|
export declare const initVal: (config?: ValConfig) => InitVal & {
|
|
8
7
|
val: ValConstructor & {
|
|
9
8
|
/**
|
|
@@ -50,5 +49,5 @@ export declare const initVal: (config?: ValConfig) => InitVal & {
|
|
|
50
49
|
* });
|
|
51
50
|
*/
|
|
52
51
|
nextAppRouter: ValRouter;
|
|
52
|
+
externalUrlPage: ValRouter;
|
|
53
53
|
};
|
|
54
|
-
export {};
|
|
@@ -9,7 +9,7 @@ declare const initFetchValStega: (config: ValConfig, valApiEndpoints: string, va
|
|
|
9
9
|
name: string;
|
|
10
10
|
value: string;
|
|
11
11
|
} | undefined;
|
|
12
|
-
}>) => <T extends SelectorSource>(selector: T) => Promise<SelectorOf<T> extends GenericSelector<infer S
|
|
12
|
+
}>) => <T extends SelectorSource>(selector: T) => Promise<SelectorOf<T> extends GenericSelector<infer S> ? StegaOfSource<S> : never>;
|
|
13
13
|
type FetchValRouteReturnType<T extends ValModule<GenericSelector<SourceObject>>> = T extends ValModule<infer S> ? S extends SourceObject ? StegaOfSource<NonNullable<S>[string]> | null : never : never;
|
|
14
14
|
declare const initFetchValRouteStega: (config: ValConfig, valApiEndpoints: string, valServerPromise: Promise<ValServer>, isEnabled: () => Promise<boolean>, getHeaders: () => Promise<{
|
|
15
15
|
get(name: string): string | null;
|
|
@@ -18,7 +18,7 @@ declare const initFetchValRouteStega: (config: ValConfig, valApiEndpoints: strin
|
|
|
18
18
|
name: string;
|
|
19
19
|
value: string;
|
|
20
20
|
} | undefined;
|
|
21
|
-
}>) => <T extends ValModule<GenericSelector<SourceObject
|
|
21
|
+
}>) => <T extends ValModule<GenericSelector<SourceObject>>>(selector: T, params: Promise<Record<string, string | string[]>> | Record<string, string | string[]> | unknown) => Promise<FetchValRouteReturnType<T>>;
|
|
22
22
|
declare const initFetchValRouteUrl: (config: ValConfig, valApiEndpoints: string, valServerPromise: Promise<ValServer>, isEnabled: () => Promise<boolean>, getHeaders: () => Promise<{
|
|
23
23
|
get(name: string): string | null;
|
|
24
24
|
}>, getCookies: () => Promise<{
|
|
@@ -26,7 +26,7 @@ declare const initFetchValRouteUrl: (config: ValConfig, valApiEndpoints: string,
|
|
|
26
26
|
name: string;
|
|
27
27
|
value: string;
|
|
28
28
|
} | undefined;
|
|
29
|
-
}>) => <T extends ValModule<GenericSelector<SourceObject
|
|
29
|
+
}>) => <T extends ValModule<GenericSelector<SourceObject>>>(selector: T, params?: Promise<Record<string, string | string[]>> | Record<string, string | string[]> | unknown) => Promise<string | null>;
|
|
30
30
|
type ValNextRscConfig = {
|
|
31
31
|
draftMode: typeof draftMode;
|
|
32
32
|
headers: typeof headers;
|
|
@@ -2,7 +2,7 @@ import { ValConfig, ValModules } from "@valbuild/core";
|
|
|
2
2
|
import type { draftMode } from "next/headers";
|
|
3
3
|
import { NextResponse } from "next/server";
|
|
4
4
|
declare const initValNextAppRouter: (valModules: ValModules, config: ValConfig, nextConfig: ValServerNextConfig & {
|
|
5
|
-
formatter?: (
|
|
5
|
+
formatter?: (code: string, filePath: string) => Promise<string> | string;
|
|
6
6
|
}) => (req: Request) => Promise<NextResponse<unknown>>;
|
|
7
7
|
type ValServerNextConfig = {
|
|
8
8
|
draftMode: typeof draftMode;
|
|
@@ -46,8 +46,8 @@ val) {
|
|
|
46
46
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
47
47
|
} else if (!schema["currentRouter"]) {
|
|
48
48
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
49
|
-
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId()) {
|
|
50
|
-
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router)."));
|
|
49
|
+
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== core.Internal.externalUrlPage.getRouterId()) {
|
|
50
|
+
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router or External URL Page Router)."));
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
if (_typeof(resolvedParams) !== "object") {
|
|
@@ -46,8 +46,8 @@ val) {
|
|
|
46
46
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
47
47
|
} else if (!schema["currentRouter"]) {
|
|
48
48
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
49
|
-
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId()) {
|
|
50
|
-
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router)."));
|
|
49
|
+
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== core.Internal.externalUrlPage.getRouterId()) {
|
|
50
|
+
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router or External URL Page Router)."));
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
if (_typeof(resolvedParams) !== "object") {
|
|
@@ -44,8 +44,8 @@ val) {
|
|
|
44
44
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
45
45
|
} else if (!schema["currentRouter"]) {
|
|
46
46
|
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
47
|
-
} else if (schema["currentRouter"].getRouterId() !== Internal.nextAppRouter.getRouterId()) {
|
|
48
|
-
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router)."));
|
|
47
|
+
} else if (schema["currentRouter"].getRouterId() !== Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== Internal.externalUrlPage.getRouterId()) {
|
|
48
|
+
console.error("Val: ".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not the Next.js App Router or External URL Page Router)."));
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
if (_typeof(resolvedParams) !== "object") {
|
|
@@ -10,7 +10,7 @@ var ValNextProvider = require('./ValNextProvider-145cfd3a.cjs.dev.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-3df36e0d.cjs.dev.js');
|
|
13
|
-
var version = require('./version-
|
|
13
|
+
var version = require('./version-d034b2fc.cjs.dev.js');
|
|
14
14
|
var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
|
|
15
15
|
require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
|
|
16
16
|
|
|
@@ -50,6 +50,7 @@ function decodeValPathsOfString(encodedString) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
var nextAppRouter = core.Internal.nextAppRouter;
|
|
53
|
+
var externalUrlPage = core.Internal.externalUrlPage;
|
|
53
54
|
var initVal = function initVal(config) {
|
|
54
55
|
var _createValSystem = core.initVal(config),
|
|
55
56
|
s = _createValSystem.s,
|
|
@@ -61,6 +62,7 @@ var initVal = function initVal(config) {
|
|
|
61
62
|
s: s,
|
|
62
63
|
c: c,
|
|
63
64
|
nextAppRouter: nextAppRouter,
|
|
65
|
+
externalUrlPage: externalUrlPage,
|
|
64
66
|
val: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, val), {}, {
|
|
65
67
|
attrs: stega.attrs,
|
|
66
68
|
unstable_decodeValPathsOfString: decodeValPathsOfString,
|
|
@@ -10,7 +10,7 @@ var ValNextProvider = require('./ValNextProvider-96d1c795.cjs.prod.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-22147086.cjs.prod.js');
|
|
13
|
-
var version = require('./version-
|
|
13
|
+
var version = require('./version-d2061026.cjs.prod.js');
|
|
14
14
|
var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
|
|
15
15
|
require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
|
|
16
16
|
|
|
@@ -50,6 +50,7 @@ function decodeValPathsOfString(encodedString) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
var nextAppRouter = core.Internal.nextAppRouter;
|
|
53
|
+
var externalUrlPage = core.Internal.externalUrlPage;
|
|
53
54
|
var initVal = function initVal(config) {
|
|
54
55
|
var _createValSystem = core.initVal(config),
|
|
55
56
|
s = _createValSystem.s,
|
|
@@ -61,6 +62,7 @@ var initVal = function initVal(config) {
|
|
|
61
62
|
s: s,
|
|
62
63
|
c: c,
|
|
63
64
|
nextAppRouter: nextAppRouter,
|
|
65
|
+
externalUrlPage: externalUrlPage,
|
|
64
66
|
val: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, val), {}, {
|
|
65
67
|
attrs: stega.attrs,
|
|
66
68
|
unstable_decodeValPathsOfString: decodeValPathsOfString,
|
|
@@ -9,7 +9,7 @@ import { ValNextProvider } from './ValNextProvider-25a03cab.esm.js';
|
|
|
9
9
|
import NextImage from 'next/image';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
export { ValApp } from './ValApp-e2e1dfed.esm.js';
|
|
12
|
-
import { V as VERSION } from './version-
|
|
12
|
+
import { V as VERSION } from './version-16f6b0ce.esm.js';
|
|
13
13
|
import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
|
|
14
14
|
import './unsupportedIterableToArray-5baabfdc.esm.js';
|
|
15
15
|
|
|
@@ -26,6 +26,7 @@ function decodeValPathsOfString(encodedString) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
var nextAppRouter = Internal$1.nextAppRouter;
|
|
29
|
+
var externalUrlPage = Internal$1.externalUrlPage;
|
|
29
30
|
var initVal = function initVal(config) {
|
|
30
31
|
var _createValSystem = initVal$1(config),
|
|
31
32
|
s = _createValSystem.s,
|
|
@@ -37,6 +38,7 @@ var initVal = function initVal(config) {
|
|
|
37
38
|
s: s,
|
|
38
39
|
c: c,
|
|
39
40
|
nextAppRouter: nextAppRouter,
|
|
41
|
+
externalUrlPage: externalUrlPage,
|
|
40
42
|
val: _objectSpread2(_objectSpread2({}, val), {}, {
|
|
41
43
|
attrs: attrs,
|
|
42
44
|
unstable_decodeValPathsOfString: decodeValPathsOfString,
|
package/package.json
CHANGED
|
@@ -12,11 +12,7 @@
|
|
|
12
12
|
"next",
|
|
13
13
|
"react"
|
|
14
14
|
],
|
|
15
|
-
"version": "0.
|
|
16
|
-
"scripts": {
|
|
17
|
-
"typecheck": "tsc --noEmit",
|
|
18
|
-
"test": "jest"
|
|
19
|
-
},
|
|
15
|
+
"version": "0.92.0",
|
|
20
16
|
"main": "dist/valbuild-next.cjs.js",
|
|
21
17
|
"module": "dist/valbuild-next.esm.js",
|
|
22
18
|
"exports": {
|
|
@@ -49,16 +45,18 @@
|
|
|
49
45
|
"exports": true
|
|
50
46
|
},
|
|
51
47
|
"dependencies": {
|
|
52
|
-
"@valbuild/core": "~0.91.4",
|
|
53
|
-
"@valbuild/react": "~0.91.4",
|
|
54
|
-
"@valbuild/server": "~0.91.4",
|
|
55
|
-
"@valbuild/shared": "~0.91.4",
|
|
56
|
-
"@valbuild/ui": "~0.91.4",
|
|
57
48
|
"client-only": "^0.0.1",
|
|
58
|
-
"server-only": "^0.0.1"
|
|
49
|
+
"server-only": "^0.0.1",
|
|
50
|
+
"@valbuild/core": "0.92.0",
|
|
51
|
+
"@valbuild/react": "0.92.0",
|
|
52
|
+
"@valbuild/server": "0.92.0",
|
|
53
|
+
"@valbuild/shared": "0.92.0",
|
|
54
|
+
"@valbuild/ui": "0.92.0"
|
|
59
55
|
},
|
|
60
56
|
"devDependencies": {
|
|
61
|
-
"
|
|
57
|
+
"@types/react": "^18.2.38",
|
|
58
|
+
"next": "^13.4.0",
|
|
59
|
+
"typescript": "^5.9.3"
|
|
62
60
|
},
|
|
63
61
|
"peerDependencies": {
|
|
64
62
|
"next": ">=13.4.0",
|
|
@@ -72,5 +70,9 @@
|
|
|
72
70
|
"client",
|
|
73
71
|
"server",
|
|
74
72
|
"rsc"
|
|
75
|
-
]
|
|
76
|
-
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"typecheck": "tsc --noEmit",
|
|
76
|
+
"test": "jest"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -9,8 +9,8 @@ var stega = require('@valbuild/react/stega');
|
|
|
9
9
|
var core = require('@valbuild/core');
|
|
10
10
|
var internal = require('@valbuild/shared/internal');
|
|
11
11
|
var server = require('@valbuild/server');
|
|
12
|
-
var version = require('../../dist/version-
|
|
13
|
-
var routeFromVal = require('../../dist/routeFromVal-
|
|
12
|
+
var version = require('../../dist/version-d034b2fc.cjs.dev.js');
|
|
13
|
+
var routeFromVal = require('../../dist/routeFromVal-360717ba.cjs.dev.js');
|
|
14
14
|
require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
|
|
15
15
|
require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
|
|
16
16
|
require('../../dist/slicedToArray-44036a76.cjs.dev.js');
|
|
@@ -257,7 +257,6 @@ var initFetchValRouteUrl = function initFetchValRouteUrl(config, valApiEndpoints
|
|
|
257
257
|
}();
|
|
258
258
|
};
|
|
259
259
|
var valApiEndpoints = "/api/val";
|
|
260
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
261
260
|
function initValRsc(config, valModules, rscNextConfig) {
|
|
262
261
|
var coreVersion = core.Internal.VERSION.core;
|
|
263
262
|
if (!coreVersion) {
|
|
@@ -9,8 +9,8 @@ var stega = require('@valbuild/react/stega');
|
|
|
9
9
|
var core = require('@valbuild/core');
|
|
10
10
|
var internal = require('@valbuild/shared/internal');
|
|
11
11
|
var server = require('@valbuild/server');
|
|
12
|
-
var version = require('../../dist/version-
|
|
13
|
-
var routeFromVal = require('../../dist/routeFromVal-
|
|
12
|
+
var version = require('../../dist/version-d2061026.cjs.prod.js');
|
|
13
|
+
var routeFromVal = require('../../dist/routeFromVal-2f6b0861.cjs.prod.js');
|
|
14
14
|
require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
|
|
15
15
|
require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
|
|
16
16
|
require('../../dist/slicedToArray-ce613de6.cjs.prod.js');
|
|
@@ -257,7 +257,6 @@ var initFetchValRouteUrl = function initFetchValRouteUrl(config, valApiEndpoints
|
|
|
257
257
|
}();
|
|
258
258
|
};
|
|
259
259
|
var valApiEndpoints = "/api/val";
|
|
260
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
261
260
|
function initValRsc(config, valModules, rscNextConfig) {
|
|
262
261
|
var coreVersion = core.Internal.VERSION.core;
|
|
263
262
|
if (!coreVersion) {
|
|
@@ -5,8 +5,8 @@ import { SET_RSC, stegaEncode, SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/
|
|
|
5
5
|
import { Internal } from '@valbuild/core';
|
|
6
6
|
import { VAL_SESSION_COOKIE } from '@valbuild/shared/internal';
|
|
7
7
|
import { createValServer } from '@valbuild/server';
|
|
8
|
-
import { V as VERSION } from '../../dist/version-
|
|
9
|
-
import { i as initValRouteFromVal, g as getValRouteUrlFromVal } from '../../dist/routeFromVal-
|
|
8
|
+
import { V as VERSION } from '../../dist/version-16f6b0ce.esm.js';
|
|
9
|
+
import { i as initValRouteFromVal, g as getValRouteUrlFromVal } from '../../dist/routeFromVal-da7172ac.esm.js';
|
|
10
10
|
import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
|
|
11
11
|
import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
|
|
12
12
|
import '../../dist/slicedToArray-aa291011.esm.js';
|
|
@@ -253,7 +253,6 @@ var initFetchValRouteUrl = function initFetchValRouteUrl(config, valApiEndpoints
|
|
|
253
253
|
}();
|
|
254
254
|
};
|
|
255
255
|
var valApiEndpoints = "/api/val";
|
|
256
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
257
256
|
function initValRsc(config, valModules, rscNextConfig) {
|
|
258
257
|
var coreVersion = Internal.VERSION.core;
|
|
259
258
|
if (!coreVersion) {
|
|
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-792eb2c2.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-
|
|
12
|
+
var version = require('../../dist/version-d034b2fc.cjs.dev.js');
|
|
13
13
|
require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
|
|
14
14
|
|
|
15
15
|
var initValNextAppRouter = function initValNextAppRouter(valModules, config, nextConfig) {
|
|
@@ -114,7 +114,6 @@ var initValNextAppRouter = function initValNextAppRouter(valModules, config, nex
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
117
|
function initValServer(valModules, config, nextConfig) {
|
|
119
118
|
return {
|
|
120
119
|
valNextAppRouter: initValNextAppRouter(valModules, config, nextConfig)
|
|
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-3c87fb4f.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-
|
|
12
|
+
var version = require('../../dist/version-d2061026.cjs.prod.js');
|
|
13
13
|
require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
|
|
14
14
|
|
|
15
15
|
var initValNextAppRouter = function initValNextAppRouter(valModules, config, nextConfig) {
|
|
@@ -114,7 +114,6 @@ var initValNextAppRouter = function initValNextAppRouter(valModules, config, nex
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
117
|
function initValServer(valModules, config, nextConfig) {
|
|
119
118
|
return {
|
|
120
119
|
valNextAppRouter: initValNextAppRouter(valModules, config, nextConfig)
|
|
@@ -5,7 +5,7 @@ import { _ as _objectSpread2 } from '../../dist/objectSpread2-c1340c1c.esm.js';
|
|
|
5
5
|
import { Internal } from '@valbuild/core';
|
|
6
6
|
import { createValApiRouter, createValServer } from '@valbuild/server';
|
|
7
7
|
import { NextResponse } from 'next/server';
|
|
8
|
-
import { V as VERSION } from '../../dist/version-
|
|
8
|
+
import { V as VERSION } from '../../dist/version-16f6b0ce.esm.js';
|
|
9
9
|
import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
|
|
10
10
|
|
|
11
11
|
var initValNextAppRouter = function initValNextAppRouter(valModules, config, nextConfig) {
|
|
@@ -110,7 +110,6 @@ var initValNextAppRouter = function initValNextAppRouter(valModules, config, nex
|
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
114
113
|
function initValServer(valModules, config, nextConfig) {
|
|
115
114
|
return {
|
|
116
115
|
valNextAppRouter: initValNextAppRouter(valModules, config, nextConfig)
|