@valbuild/next 0.148.1 → 0.148.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.
- package/CHANGELOG.md +48 -0
- package/client/dist/valbuild-next-client.cjs.dev.js +3 -3
- package/client/dist/valbuild-next-client.cjs.prod.js +3 -3
- package/client/dist/valbuild-next-client.esm.js +3 -3
- package/dist/ValNextProvider-35d0b521.cjs.js +7 -0
- package/dist/{ValNextProvider-3f8bc508.cjs.prod.js → ValNextProvider-35d0b521.cjs.prod.js} +18 -13
- package/dist/{ValNextProvider-d6de5d9a.cjs.dev.js → ValNextProvider-a85a1d33.cjs.dev.js} +18 -13
- package/dist/{ValNextProvider-9934c628.esm.js → ValNextProvider-df6f351e.esm.js} +18 -13
- package/dist/{ValOverlayContext-398baef3.esm.js → ValOverlayContext-1a45e03d.esm.js} +2 -1
- package/dist/{ValOverlayContext-98d33d86.cjs.dev.js → ValOverlayContext-262899b3.cjs.dev.js} +2 -1
- package/dist/ValOverlayContext-405ca70c.cjs.js +7 -0
- package/dist/{ValOverlayContext-9c4ae06d.cjs.prod.js → ValOverlayContext-405ca70c.cjs.prod.js} +2 -1
- package/dist/{ValVideo-b8130c1b.cjs.dev.js → ValVideo-6e410ad8.cjs.dev.js} +2 -1
- package/dist/{ValVideo-19f2ab05.esm.js → ValVideo-d377f06e.esm.js} +2 -1
- package/dist/ValVideo-dcd2b9f8.cjs.js +7 -0
- package/dist/{ValVideo-94e5aa28.cjs.prod.js → ValVideo-dcd2b9f8.cjs.prod.js} +2 -1
- package/dist/{routeFromVal-1cdcfed4.cjs.dev.js → routeFromVal-4df1157a.cjs.dev.js} +12 -12
- package/dist/{routeFromVal-3e1c7e8b.esm.js → routeFromVal-64cba2a6.esm.js} +12 -12
- package/dist/{routeFromVal-e447aa07.cjs.prod.js → routeFromVal-812be6ea.cjs.prod.js} +12 -12
- package/dist/valbuild-next.cjs.dev.js +3 -3
- package/dist/valbuild-next.cjs.prod.js +3 -3
- package/dist/valbuild-next.esm.js +3 -3
- package/dist/{version-95a90ddb.cjs.dev.js → version-39c46a15.cjs.dev.js} +1 -1
- package/dist/{version-a793fedf.cjs.prod.js → version-435b0b50.cjs.prod.js} +1 -1
- package/dist/{version-ce556420.esm.js → version-87844cb8.esm.js} +1 -1
- package/package.json +8 -8
- package/rsc/dist/valbuild-next-rsc.cjs.dev.js +9 -9
- package/rsc/dist/valbuild-next-rsc.cjs.prod.js +9 -9
- package/rsc/dist/valbuild-next-rsc.esm.js +9 -9
- package/server/dist/valbuild-next-server.cjs.dev.js +1 -1
- package/server/dist/valbuild-next-server.cjs.prod.js +1 -1
- package/server/dist/valbuild-next-server.esm.js +1 -1
- package/dist/ValNextProvider-3f8bc508.cjs.js +0 -7
- package/dist/ValOverlayContext-9c4ae06d.cjs.js +0 -7
- package/dist/ValVideo-94e5aa28.cjs.js +0 -7
|
@@ -174,46 +174,46 @@ schema,
|
|
|
174
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
175
|
val) {
|
|
176
176
|
if (!path) {
|
|
177
|
-
|
|
177
|
+
core.Internal.log.error("".concat(methodName, " can only be used with a Val module (details: no Val path found)."));
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
180
180
|
if (val === null) {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
183
|
if (_typeof(val) !== "object") {
|
|
184
|
-
|
|
184
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found ").concat(_typeof(val), " instead)."));
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
187
187
|
if (Array.isArray(val)) {
|
|
188
|
-
|
|
188
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found array instead)."));
|
|
189
189
|
return null;
|
|
190
190
|
}
|
|
191
191
|
if (!schema) {
|
|
192
|
-
|
|
192
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: no schema found)."));
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
195
|
if (!(schema instanceof core.RecordSchema)) {
|
|
196
|
-
|
|
196
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
197
197
|
} else if (!schema["currentRouter"]) {
|
|
198
|
-
|
|
198
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
199
199
|
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== core.Internal.externalPageRouter.getRouterId()) {
|
|
200
|
-
|
|
200
|
+
core.Internal.log.error("".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)."));
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
203
|
if (_typeof(resolvedParams) !== "object") {
|
|
204
|
-
|
|
204
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: params is not an object)."));
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
207
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
208
208
|
_Internal$splitModule2 = slicedToArray._slicedToArray(_Internal$splitModule, 1),
|
|
209
209
|
moduleFilePath = _Internal$splitModule2[0];
|
|
210
210
|
if (!(moduleFilePath.endsWith("page.val.ts") || moduleFilePath.endsWith("page.val.js"))) {
|
|
211
|
-
|
|
211
|
+
core.Internal.log.error("".concat(methodName, " is used with a Val module that does not have a page.val.ts or page.val.js file. Make sure the Val module is in the same directory as your page.tsx or page.js file."));
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
214
|
var srcFolder = client.getNextAppRouterSourceFolder(moduleFilePath);
|
|
215
215
|
if (!srcFolder) {
|
|
216
|
-
|
|
216
|
+
core.Internal.log.error("".concat(methodName, " was used with a Val module that is not in the /app or /src/app folder"));
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
219
|
var pattern = client.getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -280,11 +280,11 @@ val) {
|
|
|
280
280
|
return "[...".concat(part.paramName, "]");
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
-
|
|
283
|
+
core.Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(errorMessageParams.join(", "), " where not provided. Make sure the Val module is in the same directory as your page.tsx or page.js file and that the Val module filename is called page.val.ts or page.val.js."));
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
286
286
|
if (Object.keys(missingParamKeys).length > 0) {
|
|
287
|
-
|
|
287
|
+
core.Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(Object.keys(missingParamKeys).join(", "), " where not found in the path of: ").concat(moduleFilePath, ". Make sure ").concat(moduleFilePath, " in the same directory as your page.tsx or page.js file."));
|
|
288
288
|
// We do not return null here since we found a route that matches the path
|
|
289
289
|
// though chances are that there's something wrong in the way ${methodName} is used
|
|
290
290
|
}
|
|
@@ -172,46 +172,46 @@ schema,
|
|
|
172
172
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
173
173
|
val) {
|
|
174
174
|
if (!path) {
|
|
175
|
-
|
|
175
|
+
Internal.log.error("".concat(methodName, " can only be used with a Val module (details: no Val path found)."));
|
|
176
176
|
return null;
|
|
177
177
|
}
|
|
178
178
|
if (val === null) {
|
|
179
179
|
return null;
|
|
180
180
|
}
|
|
181
181
|
if (_typeof(val) !== "object") {
|
|
182
|
-
|
|
182
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found ").concat(_typeof(val), " instead)."));
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
185
185
|
if (Array.isArray(val)) {
|
|
186
|
-
|
|
186
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found array instead)."));
|
|
187
187
|
return null;
|
|
188
188
|
}
|
|
189
189
|
if (!schema) {
|
|
190
|
-
|
|
190
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: no schema found)."));
|
|
191
191
|
return null;
|
|
192
192
|
}
|
|
193
193
|
if (!(schema instanceof RecordSchema)) {
|
|
194
|
-
|
|
194
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
195
195
|
} else if (!schema["currentRouter"]) {
|
|
196
|
-
|
|
196
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
197
197
|
} else if (schema["currentRouter"].getRouterId() !== Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== Internal.externalPageRouter.getRouterId()) {
|
|
198
|
-
|
|
198
|
+
Internal.log.error("".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)."));
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
201
|
if (_typeof(resolvedParams) !== "object") {
|
|
202
|
-
|
|
202
|
+
Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: params is not an object)."));
|
|
203
203
|
return null;
|
|
204
204
|
}
|
|
205
205
|
var _Internal$splitModule = Internal.splitModuleFilePathAndModulePath(path),
|
|
206
206
|
_Internal$splitModule2 = _slicedToArray(_Internal$splitModule, 1),
|
|
207
207
|
moduleFilePath = _Internal$splitModule2[0];
|
|
208
208
|
if (!(moduleFilePath.endsWith("page.val.ts") || moduleFilePath.endsWith("page.val.js"))) {
|
|
209
|
-
|
|
209
|
+
Internal.log.error("".concat(methodName, " is used with a Val module that does not have a page.val.ts or page.val.js file. Make sure the Val module is in the same directory as your page.tsx or page.js file."));
|
|
210
210
|
return null;
|
|
211
211
|
}
|
|
212
212
|
var srcFolder = getNextAppRouterSourceFolder(moduleFilePath);
|
|
213
213
|
if (!srcFolder) {
|
|
214
|
-
|
|
214
|
+
Internal.log.error("".concat(methodName, " was used with a Val module that is not in the /app or /src/app folder"));
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
var pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -278,11 +278,11 @@ val) {
|
|
|
278
278
|
return "[...".concat(part.paramName, "]");
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
|
-
|
|
281
|
+
Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(errorMessageParams.join(", "), " where not provided. Make sure the Val module is in the same directory as your page.tsx or page.js file and that the Val module filename is called page.val.ts or page.val.js."));
|
|
282
282
|
return null;
|
|
283
283
|
}
|
|
284
284
|
if (Object.keys(missingParamKeys).length > 0) {
|
|
285
|
-
|
|
285
|
+
Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(Object.keys(missingParamKeys).join(", "), " where not found in the path of: ").concat(moduleFilePath, ". Make sure ").concat(moduleFilePath, " in the same directory as your page.tsx or page.js file."));
|
|
286
286
|
// We do not return null here since we found a route that matches the path
|
|
287
287
|
// though chances are that there's something wrong in the way ${methodName} is used
|
|
288
288
|
}
|
|
@@ -174,46 +174,46 @@ schema,
|
|
|
174
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
175
|
val) {
|
|
176
176
|
if (!path) {
|
|
177
|
-
|
|
177
|
+
core.Internal.log.error("".concat(methodName, " can only be used with a Val module (details: no Val path found)."));
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
180
180
|
if (val === null) {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
183
183
|
if (_typeof(val) !== "object") {
|
|
184
|
-
|
|
184
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found ").concat(_typeof(val), " instead)."));
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
187
187
|
if (Array.isArray(val)) {
|
|
188
|
-
|
|
188
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: expected type object, found array instead)."));
|
|
189
189
|
return null;
|
|
190
190
|
}
|
|
191
191
|
if (!schema) {
|
|
192
|
-
|
|
192
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: no schema found)."));
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
195
|
if (!(schema instanceof core.RecordSchema)) {
|
|
196
|
-
|
|
196
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: schema is not a record)."));
|
|
197
197
|
} else if (!schema["currentRouter"]) {
|
|
198
|
-
|
|
198
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: router is not set)."));
|
|
199
199
|
} else if (schema["currentRouter"].getRouterId() !== core.Internal.nextAppRouter.getRouterId() && schema["currentRouter"].getRouterId() !== core.Internal.externalPageRouter.getRouterId()) {
|
|
200
|
-
|
|
200
|
+
core.Internal.log.error("".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)."));
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
203
|
if (_typeof(resolvedParams) !== "object") {
|
|
204
|
-
|
|
204
|
+
core.Internal.log.error("".concat(methodName, " must be used with a Val Module that is a s.record().router(...) (details: params is not an object)."));
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
207
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
208
208
|
_Internal$splitModule2 = slicedToArray._slicedToArray(_Internal$splitModule, 1),
|
|
209
209
|
moduleFilePath = _Internal$splitModule2[0];
|
|
210
210
|
if (!(moduleFilePath.endsWith("page.val.ts") || moduleFilePath.endsWith("page.val.js"))) {
|
|
211
|
-
|
|
211
|
+
core.Internal.log.error("".concat(methodName, " is used with a Val module that does not have a page.val.ts or page.val.js file. Make sure the Val module is in the same directory as your page.tsx or page.js file."));
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
214
|
var srcFolder = client.getNextAppRouterSourceFolder(moduleFilePath);
|
|
215
215
|
if (!srcFolder) {
|
|
216
|
-
|
|
216
|
+
core.Internal.log.error("".concat(methodName, " was used with a Val module that is not in the /app or /src/app folder"));
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
219
|
var pattern = client.getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -280,11 +280,11 @@ val) {
|
|
|
280
280
|
return "[...".concat(part.paramName, "]");
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
-
|
|
283
|
+
core.Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(errorMessageParams.join(", "), " where not provided. Make sure the Val module is in the same directory as your page.tsx or page.js file and that the Val module filename is called page.val.ts or page.val.js."));
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
286
286
|
if (Object.keys(missingParamKeys).length > 0) {
|
|
287
|
-
|
|
287
|
+
core.Internal.log.error("".concat(methodName, " could not find route since parameters: ").concat(Object.keys(missingParamKeys).join(", "), " where not found in the path of: ").concat(moduleFilePath, ". Make sure ").concat(moduleFilePath, " in the same directory as your page.tsx or page.js file."));
|
|
288
288
|
// We do not return null here since we found a route that matches the path
|
|
289
289
|
// though chances are that there's something wrong in the way ${methodName} is used
|
|
290
290
|
}
|
|
@@ -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-
|
|
11
|
+
var ValNextProvider = require('./ValNextProvider-a85a1d33.cjs.dev.js');
|
|
12
12
|
var NextImage = require('next/image');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
-
var ValVideo = require('./ValVideo-
|
|
14
|
+
var ValVideo = require('./ValVideo-6e410ad8.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-
|
|
17
|
+
var version = require('./version-39c46a15.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-
|
|
11
|
+
var ValNextProvider = require('./ValNextProvider-35d0b521.cjs.prod.js');
|
|
12
12
|
var NextImage = require('next/image');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
-
var ValVideo = require('./ValVideo-
|
|
14
|
+
var ValVideo = require('./ValVideo-dcd2b9f8.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-
|
|
17
|
+
var version = require('./version-435b0b50.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-
|
|
10
|
+
import { ValNextProvider } from './ValNextProvider-df6f351e.esm.js';
|
|
11
11
|
import NextImage from 'next/image';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
|
-
export { ValVideo } from './ValVideo-
|
|
13
|
+
export { ValVideo } from './ValVideo-d377f06e.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-
|
|
16
|
+
import { V as VERSION } from './version-87844cb8.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';
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"next",
|
|
13
13
|
"react"
|
|
14
14
|
],
|
|
15
|
-
"version": "0.148.
|
|
15
|
+
"version": "0.148.3",
|
|
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.148.
|
|
51
|
-
"@valbuild/language-server": "0.148.
|
|
52
|
-
"@valbuild/mcp": "0.148.
|
|
53
|
-
"@valbuild/
|
|
54
|
-
"@valbuild/
|
|
55
|
-
"@valbuild/
|
|
56
|
-
"@valbuild/
|
|
50
|
+
"@valbuild/core": "0.148.2",
|
|
51
|
+
"@valbuild/language-server": "0.148.3",
|
|
52
|
+
"@valbuild/mcp": "0.148.3",
|
|
53
|
+
"@valbuild/server": "0.148.3",
|
|
54
|
+
"@valbuild/shared": "0.148.3",
|
|
55
|
+
"@valbuild/ui": "0.148.3",
|
|
56
|
+
"@valbuild/react": "0.148.3"
|
|
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-
|
|
6
|
+
var routeFromVal = require('../../dist/routeFromVal-4df1157a.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-
|
|
15
|
+
var version = require('../../dist/version-39c46a15.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');
|
|
@@ -132,7 +132,7 @@ function _loadDraftSources() {
|
|
|
132
132
|
_context19.n = 4;
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
core.Internal.log.debug("authentication error: ", treeRes.json.message);
|
|
136
136
|
return _context19.a(2, null);
|
|
137
137
|
case 4:
|
|
138
138
|
throw Error(JSON.stringify(treeRes.json, null, 2));
|
|
@@ -162,7 +162,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
162
162
|
case 3:
|
|
163
163
|
_context2.p = 3;
|
|
164
164
|
_t = _context2.v;
|
|
165
|
-
|
|
165
|
+
core.Internal.log.error("could not check if Val is enabled! This might be due to an error to check draftMode. fetchVal can only be used server-side. Use useVal on clients.", _t);
|
|
166
166
|
case 4:
|
|
167
167
|
if (!enabled) {
|
|
168
168
|
_context2.n = 16;
|
|
@@ -185,7 +185,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
185
185
|
case 8:
|
|
186
186
|
_context2.p = 8;
|
|
187
187
|
_t2 = _context2.v;
|
|
188
|
-
|
|
188
|
+
core.Internal.log.error("could not read headers! fetchVal can only be used server-side. Use useVal on clients.", _t2);
|
|
189
189
|
headers = null;
|
|
190
190
|
case 9:
|
|
191
191
|
_context2.p = 9;
|
|
@@ -198,7 +198,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
198
198
|
case 11:
|
|
199
199
|
_context2.p = 11;
|
|
200
200
|
_t3 = _context2.v;
|
|
201
|
-
|
|
201
|
+
core.Internal.log.error("could not read cookies! fetchVal can only be used server-side. Use useVal on clients.", _t3);
|
|
202
202
|
cookies = null;
|
|
203
203
|
case 12:
|
|
204
204
|
host = headers && getHost(headers);
|
|
@@ -274,7 +274,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
274
274
|
return asyncToGenerator._regenerator().w(function (_context3) {
|
|
275
275
|
while (1) switch (_context3.n) {
|
|
276
276
|
case 0:
|
|
277
|
-
|
|
277
|
+
core.Internal.log.error("failed to fetch ", err);
|
|
278
278
|
_t11 = stega.stegaEncode;
|
|
279
279
|
_t12 = selector;
|
|
280
280
|
_context3.n = 1;
|
|
@@ -675,7 +675,7 @@ function _loadDraftJsonEntry() {
|
|
|
675
675
|
_context24.n = 7;
|
|
676
676
|
break;
|
|
677
677
|
}
|
|
678
|
-
|
|
678
|
+
core.Internal.log.debug("authentication error: ", res.json.message);
|
|
679
679
|
return _context24.a(2, {
|
|
680
680
|
status: "unavailable"
|
|
681
681
|
});
|
|
@@ -688,7 +688,7 @@ function _loadDraftJsonEntry() {
|
|
|
688
688
|
status: "absent"
|
|
689
689
|
});
|
|
690
690
|
case 8:
|
|
691
|
-
|
|
691
|
+
core.Internal.log.error("could not load draft JSON entry: ", "message" in res.json ? res.json.message : "status ".concat(res.status));
|
|
692
692
|
return _context24.a(2, {
|
|
693
693
|
status: "unavailable"
|
|
694
694
|
});
|
|
@@ -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-
|
|
6
|
+
var routeFromVal = require('../../dist/routeFromVal-812be6ea.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-
|
|
15
|
+
var version = require('../../dist/version-435b0b50.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');
|
|
@@ -132,7 +132,7 @@ function _loadDraftSources() {
|
|
|
132
132
|
_context19.n = 4;
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
core.Internal.log.debug("authentication error: ", treeRes.json.message);
|
|
136
136
|
return _context19.a(2, null);
|
|
137
137
|
case 4:
|
|
138
138
|
throw Error(JSON.stringify(treeRes.json, null, 2));
|
|
@@ -162,7 +162,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
162
162
|
case 3:
|
|
163
163
|
_context2.p = 3;
|
|
164
164
|
_t = _context2.v;
|
|
165
|
-
|
|
165
|
+
core.Internal.log.error("could not check if Val is enabled! This might be due to an error to check draftMode. fetchVal can only be used server-side. Use useVal on clients.", _t);
|
|
166
166
|
case 4:
|
|
167
167
|
if (!enabled) {
|
|
168
168
|
_context2.n = 16;
|
|
@@ -185,7 +185,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
185
185
|
case 8:
|
|
186
186
|
_context2.p = 8;
|
|
187
187
|
_t2 = _context2.v;
|
|
188
|
-
|
|
188
|
+
core.Internal.log.error("could not read headers! fetchVal can only be used server-side. Use useVal on clients.", _t2);
|
|
189
189
|
headers = null;
|
|
190
190
|
case 9:
|
|
191
191
|
_context2.p = 9;
|
|
@@ -198,7 +198,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
198
198
|
case 11:
|
|
199
199
|
_context2.p = 11;
|
|
200
200
|
_t3 = _context2.v;
|
|
201
|
-
|
|
201
|
+
core.Internal.log.error("could not read cookies! fetchVal can only be used server-side. Use useVal on clients.", _t3);
|
|
202
202
|
cookies = null;
|
|
203
203
|
case 12:
|
|
204
204
|
host = headers && getHost(headers);
|
|
@@ -274,7 +274,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
274
274
|
return asyncToGenerator._regenerator().w(function (_context3) {
|
|
275
275
|
while (1) switch (_context3.n) {
|
|
276
276
|
case 0:
|
|
277
|
-
|
|
277
|
+
core.Internal.log.error("failed to fetch ", err);
|
|
278
278
|
_t11 = stega.stegaEncode;
|
|
279
279
|
_t12 = selector;
|
|
280
280
|
_context3.n = 1;
|
|
@@ -675,7 +675,7 @@ function _loadDraftJsonEntry() {
|
|
|
675
675
|
_context24.n = 7;
|
|
676
676
|
break;
|
|
677
677
|
}
|
|
678
|
-
|
|
678
|
+
core.Internal.log.debug("authentication error: ", res.json.message);
|
|
679
679
|
return _context24.a(2, {
|
|
680
680
|
status: "unavailable"
|
|
681
681
|
});
|
|
@@ -688,7 +688,7 @@ function _loadDraftJsonEntry() {
|
|
|
688
688
|
status: "absent"
|
|
689
689
|
});
|
|
690
690
|
case 8:
|
|
691
|
-
|
|
691
|
+
core.Internal.log.error("could not load draft JSON entry: ", "message" in res.json ? res.json.message : "status ".concat(res.status));
|
|
692
692
|
return _context24.a(2, {
|
|
693
693
|
status: "unavailable"
|
|
694
694
|
});
|
|
@@ -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-
|
|
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-64cba2a6.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-
|
|
11
|
+
import { V as VERSION } from '../../dist/version-87844cb8.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';
|
|
@@ -128,7 +128,7 @@ function _loadDraftSources() {
|
|
|
128
128
|
_context19.n = 4;
|
|
129
129
|
break;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
Internal.log.debug("authentication error: ", treeRes.json.message);
|
|
132
132
|
return _context19.a(2, null);
|
|
133
133
|
case 4:
|
|
134
134
|
throw Error(JSON.stringify(treeRes.json, null, 2));
|
|
@@ -158,7 +158,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
158
158
|
case 3:
|
|
159
159
|
_context2.p = 3;
|
|
160
160
|
_t = _context2.v;
|
|
161
|
-
|
|
161
|
+
Internal.log.error("could not check if Val is enabled! This might be due to an error to check draftMode. fetchVal can only be used server-side. Use useVal on clients.", _t);
|
|
162
162
|
case 4:
|
|
163
163
|
if (!enabled) {
|
|
164
164
|
_context2.n = 16;
|
|
@@ -181,7 +181,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
181
181
|
case 8:
|
|
182
182
|
_context2.p = 8;
|
|
183
183
|
_t2 = _context2.v;
|
|
184
|
-
|
|
184
|
+
Internal.log.error("could not read headers! fetchVal can only be used server-side. Use useVal on clients.", _t2);
|
|
185
185
|
headers = null;
|
|
186
186
|
case 9:
|
|
187
187
|
_context2.p = 9;
|
|
@@ -194,7 +194,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
194
194
|
case 11:
|
|
195
195
|
_context2.p = 11;
|
|
196
196
|
_t3 = _context2.v;
|
|
197
|
-
|
|
197
|
+
Internal.log.error("could not read cookies! fetchVal can only be used server-side. Use useVal on clients.", _t3);
|
|
198
198
|
cookies = null;
|
|
199
199
|
case 12:
|
|
200
200
|
host = headers && getHost(headers);
|
|
@@ -270,7 +270,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
270
270
|
return _regenerator().w(function (_context3) {
|
|
271
271
|
while (1) switch (_context3.n) {
|
|
272
272
|
case 0:
|
|
273
|
-
|
|
273
|
+
Internal.log.error("failed to fetch ", err);
|
|
274
274
|
_t11 = stegaEncode;
|
|
275
275
|
_t12 = selector;
|
|
276
276
|
_context3.n = 1;
|
|
@@ -671,7 +671,7 @@ function _loadDraftJsonEntry() {
|
|
|
671
671
|
_context24.n = 7;
|
|
672
672
|
break;
|
|
673
673
|
}
|
|
674
|
-
|
|
674
|
+
Internal.log.debug("authentication error: ", res.json.message);
|
|
675
675
|
return _context24.a(2, {
|
|
676
676
|
status: "unavailable"
|
|
677
677
|
});
|
|
@@ -684,7 +684,7 @@ function _loadDraftJsonEntry() {
|
|
|
684
684
|
status: "absent"
|
|
685
685
|
});
|
|
686
686
|
case 8:
|
|
687
|
-
|
|
687
|
+
Internal.log.error("could not load draft JSON entry: ", "message" in res.json ? res.json.message : "status ".concat(res.status));
|
|
688
688
|
return _context24.a(2, {
|
|
689
689
|
status: "unavailable"
|
|
690
690
|
});
|
|
@@ -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-
|
|
12
|
+
var version = require('../../dist/version-39c46a15.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-
|
|
12
|
+
var version = require('../../dist/version-435b0b50.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-
|
|
9
|
+
import { V as VERSION } from '../../dist/version-87844cb8.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';
|