@valbuild/next 0.60.20 → 0.60.22
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/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +30 -0
- package/dist/valbuild-next.cjs.dev.js +8 -2
- package/dist/valbuild-next.cjs.prod.js +8 -2
- package/dist/valbuild-next.esm.js +10 -5
- package/dist/version-82faa1d0.cjs.dev.js +12 -0
- package/dist/version-98ec5c7a.esm.js +10 -0
- package/dist/version-a9a6a619.cjs.prod.js +12 -0
- package/package.json +5 -5
- package/server/dist/valbuild-next-server.cjs.dev.js +17 -1
- package/server/dist/valbuild-next-server.cjs.prod.js +17 -1
- package/server/dist/valbuild-next-server.esm.js +17 -1
|
@@ -18,3 +18,33 @@ export { ValProvider } from "./ValProvider.js";
|
|
|
18
18
|
export { ValImage, type ValImageProps } from "./ValImage.js";
|
|
19
19
|
export { ValApp } from "./ValApp.js";
|
|
20
20
|
export type * as t from "./ValTypes.js";
|
|
21
|
+
export declare const Internal: {
|
|
22
|
+
VERSION: {
|
|
23
|
+
next: string | null;
|
|
24
|
+
core: string | null;
|
|
25
|
+
};
|
|
26
|
+
convertFileSource: typeof import("@valbuild/core/dist/declarations/src/schema/file").convertFileSource;
|
|
27
|
+
getSchema: typeof import("@valbuild/core/dist/declarations/src/selector").getSchema;
|
|
28
|
+
getValPath: typeof import("@valbuild/core/dist/declarations/src/val").getValPath;
|
|
29
|
+
getVal: typeof import("@valbuild/core/dist/declarations/src/future/fetchVal").getVal;
|
|
30
|
+
getSource: typeof import("@valbuild/core/dist/declarations/src/module").getSource;
|
|
31
|
+
resolvePath: typeof import("@valbuild/core/dist/declarations/src/module").resolvePath;
|
|
32
|
+
splitModuleIdAndModulePath: typeof import("@valbuild/core/dist/declarations/src/module").splitModuleIdAndModulePath;
|
|
33
|
+
isVal: typeof import("@valbuild/core/dist/declarations/src/val").isVal;
|
|
34
|
+
createValPathOfItem: typeof import("@valbuild/core/dist/declarations/src/selector/SelectorProxy").createValPathOfItem;
|
|
35
|
+
getSHA256Hash: (bits: Uint8Array) => string;
|
|
36
|
+
initSchema: typeof import("@valbuild/core/dist/declarations/src/initSchema").initSchema;
|
|
37
|
+
notFileOp: (op: import("@valbuild/core/patch").Operation) => boolean;
|
|
38
|
+
isFileOp: (op: import("@valbuild/core/patch").Operation) => op is {
|
|
39
|
+
op: "file";
|
|
40
|
+
path: string[];
|
|
41
|
+
filePath: string;
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
createPatchJSONPath: (modulePath: import("@valbuild/core").ModulePath) => string;
|
|
45
|
+
createPatchPath: (modulePath: import("@valbuild/core").ModulePath) => string[];
|
|
46
|
+
patchPathToModulePath: (patchPath: string[]) => import("@valbuild/core").ModulePath;
|
|
47
|
+
VAL_ENABLE_COOKIE_NAME: "val_enable";
|
|
48
|
+
VAL_STATE_COOKIE: "val_state";
|
|
49
|
+
VAL_SESSION_COOKIE: "val_session";
|
|
50
|
+
};
|
|
@@ -10,6 +10,7 @@ var ValNextProvider = require('./ValNextProvider-ef4fdca6.cjs.dev.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-aff60572.cjs.dev.js');
|
|
13
|
+
var version = require('./version-82faa1d0.cjs.dev.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
15
16
|
|
|
@@ -162,13 +163,17 @@ function ValImage(props) {
|
|
|
162
163
|
}));
|
|
163
164
|
}
|
|
164
165
|
|
|
165
|
-
// Core (excluding initVal)
|
|
166
|
-
|
|
167
166
|
// NOTE! Side effects:
|
|
168
167
|
stega.autoTagJSX();
|
|
169
168
|
|
|
170
169
|
// Convenience types
|
|
171
170
|
|
|
171
|
+
var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
|
|
172
|
+
VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
|
|
173
|
+
next: version.VERSION
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
|
|
172
177
|
Object.defineProperty(exports, 'FILE_REF_PROP', {
|
|
173
178
|
enumerable: true,
|
|
174
179
|
get: function () { return core.FILE_REF_PROP; }
|
|
@@ -198,6 +203,7 @@ Object.defineProperty(exports, 'ValApp', {
|
|
|
198
203
|
enumerable: true,
|
|
199
204
|
get: function () { return ValApp.ValApp; }
|
|
200
205
|
});
|
|
206
|
+
exports.Internal = Internal;
|
|
201
207
|
exports.ValImage = ValImage;
|
|
202
208
|
exports.ValProvider = ValProvider;
|
|
203
209
|
exports.initVal = initVal;
|
|
@@ -10,6 +10,7 @@ var ValNextProvider = require('./ValNextProvider-676d6cb8.cjs.prod.js');
|
|
|
10
10
|
var NextImage = require('next/image');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
var ValApp = require('./ValApp-0ec0c7f3.cjs.prod.js');
|
|
13
|
+
var version = require('./version-a9a6a619.cjs.prod.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
15
16
|
|
|
@@ -162,13 +163,17 @@ function ValImage(props) {
|
|
|
162
163
|
}));
|
|
163
164
|
}
|
|
164
165
|
|
|
165
|
-
// Core (excluding initVal)
|
|
166
|
-
|
|
167
166
|
// NOTE! Side effects:
|
|
168
167
|
stega.autoTagJSX();
|
|
169
168
|
|
|
170
169
|
// Convenience types
|
|
171
170
|
|
|
171
|
+
var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
|
|
172
|
+
VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
|
|
173
|
+
next: version.VERSION
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
|
|
172
177
|
Object.defineProperty(exports, 'FILE_REF_PROP', {
|
|
173
178
|
enumerable: true,
|
|
174
179
|
get: function () { return core.FILE_REF_PROP; }
|
|
@@ -198,6 +203,7 @@ Object.defineProperty(exports, 'ValApp', {
|
|
|
198
203
|
enumerable: true,
|
|
199
204
|
get: function () { return ValApp.ValApp; }
|
|
200
205
|
});
|
|
206
|
+
exports.Internal = Internal;
|
|
201
207
|
exports.ValImage = ValImage;
|
|
202
208
|
exports.ValProvider = ValProvider;
|
|
203
209
|
exports.initVal = initVal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _objectSpread2 } from './objectSpread2-439bdcdd.esm.js';
|
|
2
|
-
import { initVal as initVal$1, Internal } from '@valbuild/core';
|
|
2
|
+
import { initVal as initVal$1, Internal as Internal$1 } from '@valbuild/core';
|
|
3
3
|
import * as core from '@valbuild/core';
|
|
4
4
|
export { core as expr };
|
|
5
5
|
export { FILE_REF_PROP, GenericSelector, Schema, VAL_EXTENSION, derefPatch } from '@valbuild/core';
|
|
@@ -9,6 +9,7 @@ import { ValNextProvider } from './ValNextProvider-23099a43.esm.js';
|
|
|
9
9
|
import NextImage from 'next/image';
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
export { ValApp } from './ValApp-61103149.esm.js';
|
|
12
|
+
import { V as VERSION } from './version-98ec5c7a.esm.js';
|
|
12
13
|
|
|
13
14
|
function _typeof(o) {
|
|
14
15
|
"@babel/helpers - typeof";
|
|
@@ -46,7 +47,7 @@ var initVal = function initVal(config) {
|
|
|
46
47
|
if (target === null) {
|
|
47
48
|
return {};
|
|
48
49
|
}
|
|
49
|
-
path = Internal.getValPath(anyTarget);
|
|
50
|
+
path = Internal$1.getValPath(anyTarget);
|
|
50
51
|
if (!path && _typeof(anyTarget) === "object") {
|
|
51
52
|
path = anyTarget["valPath"];
|
|
52
53
|
}
|
|
@@ -138,11 +139,15 @@ function ValImage(props) {
|
|
|
138
139
|
}));
|
|
139
140
|
}
|
|
140
141
|
|
|
141
|
-
// Core (excluding initVal)
|
|
142
|
-
|
|
143
142
|
// NOTE! Side effects:
|
|
144
143
|
autoTagJSX();
|
|
145
144
|
|
|
146
145
|
// Convenience types
|
|
147
146
|
|
|
148
|
-
|
|
147
|
+
var Internal = _objectSpread2(_objectSpread2({}, Internal$1), {}, {
|
|
148
|
+
VERSION: _objectSpread2(_objectSpread2({}, Internal$1.VERSION), {}, {
|
|
149
|
+
next: VERSION
|
|
150
|
+
})
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export { Internal, ValImage, ValProvider, initVal };
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"next",
|
|
9
9
|
"react"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.60.
|
|
11
|
+
"version": "0.60.22",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"typecheck": "tsc --noEmit",
|
|
14
14
|
"test": "jest"
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"exports": true
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@valbuild/core": "~0.60.
|
|
49
|
-
"@valbuild/react": "~0.60.
|
|
50
|
-
"@valbuild/server": "~0.60.
|
|
51
|
-
"@valbuild/ui": "~0.60.
|
|
48
|
+
"@valbuild/core": "~0.60.22",
|
|
49
|
+
"@valbuild/react": "~0.60.22",
|
|
50
|
+
"@valbuild/server": "~0.60.22",
|
|
51
|
+
"@valbuild/ui": "~0.60.22",
|
|
52
52
|
"client-only": "^0.0.1",
|
|
53
53
|
"server-only": "^0.0.1"
|
|
54
54
|
},
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('server-only');
|
|
6
6
|
var slicedToArray = require('../../dist/slicedToArray-c03b6356.cjs.dev.js');
|
|
7
|
+
var objectSpread2 = require('../../dist/objectSpread2-bb9509e8.cjs.dev.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var server = require('@valbuild/server');
|
|
8
10
|
var server$1 = require('next/server');
|
|
11
|
+
var version = require('../../dist/version-82faa1d0.cjs.dev.js');
|
|
9
12
|
require('../../dist/unsupportedIterableToArray-9e97e24a.cjs.dev.js');
|
|
10
13
|
|
|
11
14
|
function _regeneratorRuntime() {
|
|
@@ -343,7 +346,20 @@ function _asyncToGenerator(fn) {
|
|
|
343
346
|
|
|
344
347
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
345
348
|
var route = "/api/val"; // TODO: get from config
|
|
346
|
-
|
|
349
|
+
var coreVersion = core.Internal.VERSION.core;
|
|
350
|
+
if (!coreVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
352
|
+
}
|
|
353
|
+
var nextVersion = version.VERSION;
|
|
354
|
+
if (!nextVersion) {
|
|
355
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
356
|
+
}
|
|
357
|
+
return server.createValApiRouter(route, server.createValServer(route, objectSpread2._objectSpread2({
|
|
358
|
+
versions: {
|
|
359
|
+
next: nextVersion,
|
|
360
|
+
core: coreVersion
|
|
361
|
+
}
|
|
362
|
+
}, config), {
|
|
347
363
|
isEnabled: function isEnabled() {
|
|
348
364
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
349
365
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('server-only');
|
|
6
6
|
var slicedToArray = require('../../dist/slicedToArray-1d91551a.cjs.prod.js');
|
|
7
|
+
var objectSpread2 = require('../../dist/objectSpread2-24e737a6.cjs.prod.js');
|
|
8
|
+
var core = require('@valbuild/core');
|
|
7
9
|
var server = require('@valbuild/server');
|
|
8
10
|
var server$1 = require('next/server');
|
|
11
|
+
var version = require('../../dist/version-a9a6a619.cjs.prod.js');
|
|
9
12
|
require('../../dist/unsupportedIterableToArray-afbea1dd.cjs.prod.js');
|
|
10
13
|
|
|
11
14
|
function _regeneratorRuntime() {
|
|
@@ -343,7 +346,20 @@ function _asyncToGenerator(fn) {
|
|
|
343
346
|
|
|
344
347
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
345
348
|
var route = "/api/val"; // TODO: get from config
|
|
346
|
-
|
|
349
|
+
var coreVersion = core.Internal.VERSION.core;
|
|
350
|
+
if (!coreVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
352
|
+
}
|
|
353
|
+
var nextVersion = version.VERSION;
|
|
354
|
+
if (!nextVersion) {
|
|
355
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
356
|
+
}
|
|
357
|
+
return server.createValApiRouter(route, server.createValServer(route, objectSpread2._objectSpread2({
|
|
358
|
+
versions: {
|
|
359
|
+
next: nextVersion,
|
|
360
|
+
core: coreVersion
|
|
361
|
+
}
|
|
362
|
+
}, config), {
|
|
347
363
|
isEnabled: function isEnabled() {
|
|
348
364
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
349
365
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import 'server-only';
|
|
2
2
|
import { _ as _slicedToArray } from '../../dist/slicedToArray-1ff80c5e.esm.js';
|
|
3
|
+
import { _ as _objectSpread2 } from '../../dist/objectSpread2-439bdcdd.esm.js';
|
|
4
|
+
import { Internal } from '@valbuild/core';
|
|
3
5
|
import { createValApiRouter, createValServer } from '@valbuild/server';
|
|
4
6
|
import { NextResponse } from 'next/server';
|
|
7
|
+
import { V as VERSION } from '../../dist/version-98ec5c7a.esm.js';
|
|
5
8
|
import '../../dist/unsupportedIterableToArray-51bb61c2.esm.js';
|
|
6
9
|
|
|
7
10
|
function _regeneratorRuntime() {
|
|
@@ -339,7 +342,20 @@ function _asyncToGenerator(fn) {
|
|
|
339
342
|
|
|
340
343
|
var initValNextAppRouter = function initValNextAppRouter(config, nextConfig) {
|
|
341
344
|
var route = "/api/val"; // TODO: get from config
|
|
342
|
-
|
|
345
|
+
var coreVersion = Internal.VERSION.core;
|
|
346
|
+
if (!coreVersion) {
|
|
347
|
+
throw new Error("Could not get @valbuild/core package version");
|
|
348
|
+
}
|
|
349
|
+
var nextVersion = VERSION;
|
|
350
|
+
if (!nextVersion) {
|
|
351
|
+
throw new Error("Could not get @valbuild/next package version");
|
|
352
|
+
}
|
|
353
|
+
return createValApiRouter(route, createValServer(route, _objectSpread2({
|
|
354
|
+
versions: {
|
|
355
|
+
next: nextVersion,
|
|
356
|
+
core: coreVersion
|
|
357
|
+
}
|
|
358
|
+
}, config), {
|
|
343
359
|
isEnabled: function isEnabled() {
|
|
344
360
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
345
361
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|