@valbuild/next 0.107.0 → 0.108.1

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.
@@ -18,100 +18,24 @@ export { ValProvider } from "./ValProvider.js";
18
18
  export { ValImage, type ValImageProps } from "./ValImage.js";
19
19
  export { ValApp } from "./ValApp.js";
20
20
  export { ValModulesClient, useRegisterValModules } from "./ValModulesClient.js";
21
+ import { Internal as InternalCore } from "@valbuild/core";
22
+ import { VERSION } from "./version.js";
21
23
  export type * as t from "./ValTypes.js";
22
24
  export type { DecodeVal } from "@valbuild/react/stega";
23
- export declare const Internal: {
24
- VERSION: {
25
- next: string | null;
26
- core: string | null;
25
+ /**
26
+ * Annotated rather than inferred.
27
+ *
28
+ * The inferred type of the spread below reaches into @valbuild/core's internal
29
+ * declaration files for names like `NonEmptyArray` and `createValPathOfItem`,
30
+ * which the declaration emitter cannot write down portably: `preconstruct
31
+ * build` fails with a wall of TS2883 "the inferred type of 'Internal' cannot be
32
+ * named without a reference to ..." while `tsc --noEmit` stays happy, so it only
33
+ * shows up in the build job. Naming the type in terms of `typeof InternalCore`
34
+ * keeps everything the emitter needs reachable through the package entry point.
35
+ */
36
+ type InternalWithNextVersion = Omit<typeof InternalCore, "VERSION"> & {
37
+ VERSION: typeof InternalCore.VERSION & {
38
+ next: typeof VERSION;
27
39
  };
28
- mediaUrl: typeof import("@valbuild/core/dist/declarations/src/source/media").mediaUrl;
29
- resolveMedia: typeof import("@valbuild/core/dist/declarations/src/source/media").resolveMedia;
30
- isRemoteMediaPath: typeof import("@valbuild/core/dist/declarations/src/source/media").isRemoteMediaPath;
31
- media: {
32
- fillFromGallery: typeof import("@valbuild/core/dist/declarations/src/source/media").fillFromGallery;
33
- };
34
- getSchema: typeof import("@valbuild/core/dist/declarations/src/selector").getSchema;
35
- getValPath: typeof import("@valbuild/core/dist/declarations/src/val").getValPath;
36
- getSource: typeof import("@valbuild/core/dist/declarations/src/module").getSource;
37
- isValModule: typeof import("@valbuild/core/dist/declarations/src/module").isValModule;
38
- resolvePath: typeof import("@valbuild/core/dist/declarations/src/module").resolvePath;
39
- safeResolvePath: typeof import("@valbuild/core/dist/declarations/src/module").safeResolvePath;
40
- splitModuleFilePathAndModulePath: typeof import("@valbuild/core/dist/declarations/src/module").splitModuleFilePathAndModulePath;
41
- joinModuleFilePathAndModulePath: typeof import("@valbuild/core/dist/declarations/src/module").joinModuleFilePathAndModulePath;
42
- nextAppRouter: import("@valbuild/core").ValRouter;
43
- externalPageRouter: import("@valbuild/core").ValRouter;
44
- color: {
45
- parseColor: typeof import("@valbuild/core/dist/declarations/src/schema/colorFormat").parseColor;
46
- formatColor: typeof import("@valbuild/core/dist/declarations/src/schema/colorFormat").formatColor;
47
- convertColor: typeof import("@valbuild/core/dist/declarations/src/schema/colorFormat").convertColor;
48
- detectColorFormat: typeof import("@valbuild/core/dist/declarations/src/schema/colorFormat").detectColorFormat;
49
- colorToHex: typeof import("@valbuild/core/dist/declarations/src/schema/colorFormat").colorToHex;
50
- };
51
- remote: {
52
- createRemoteRef: typeof import("@valbuild/core/dist/declarations/src/source/remote").createRemoteRef;
53
- getValidationBasis: typeof import("@valbuild/core/dist/declarations/src/remote/validationBasis").getValidationBasis;
54
- getValidationHash: typeof import("@valbuild/core/dist/declarations/src/remote/validationBasis").getValidationHash;
55
- getFileHash: typeof import("@valbuild/core/dist/declarations/src/remote/fileHash").getFileHash;
56
- hashToRemoteFileHash: typeof import("@valbuild/core/dist/declarations/src/remote/fileHash").hashToRemoteFileHash;
57
- splitRemoteRef: typeof import("@valbuild/core/dist/declarations/src/remote/splitRemoteRef").splitRemoteRef;
58
- };
59
- validate: (val: import("@valbuild/core").ValModule<import("@valbuild/core").SelectorSource>, path: import("@valbuild/core").SourcePath, src: unknown) => import("@valbuild/core").ValidationErrors | undefined;
60
- isVal: typeof import("@valbuild/core/dist/declarations/src/val").isVal;
61
- isJson: typeof import("@valbuild/core/dist/declarations/src/source/json").isJson;
62
- getJsonImport: typeof import("@valbuild/core/dist/declarations/src/source/json").getJsonImport;
63
- resolveJsonValues: typeof import("@valbuild/core/dist/declarations/src/source/json").resolveJsonValues;
64
- createValPathOfItem: typeof import("@valbuild/core/dist/declarations/src/selector/SelectorProxy").createValPathOfItem;
65
- getSHA256Hash: (bits: Uint8Array) => string;
66
- initSchema: typeof import("@valbuild/core/dist/declarations/src/initSchema").initSchema;
67
- getMimeType: typeof import("@valbuild/core/dist/declarations/src/mimeType").getMimeType;
68
- mimeTypeToFileExt: typeof import("@valbuild/core/dist/declarations/src/mimeType").mimeTypeToFileExt;
69
- filenameToMimeType: typeof import("@valbuild/core/dist/declarations/src/mimeType").filenameToMimeType;
70
- EXT_TO_MIME_TYPES: Record<string, string>;
71
- MIME_TYPES_TO_EXT: {
72
- [k: string]: string;
73
- };
74
- ModuleFilePathSep: string;
75
- notFileOp: (op: import("@valbuild/core/patch").Operation) => op is {
76
- op: "add";
77
- path: string[];
78
- value: import("@valbuild/core/patch").JSONValue;
79
- } | {
80
- op: "remove";
81
- path: import("@valbuild/core/dist/declarations/src/fp/array").NonEmptyArray<string>;
82
- } | {
83
- op: "replace";
84
- path: string[];
85
- value: import("@valbuild/core/patch").JSONValue;
86
- } | {
87
- op: "move";
88
- from: import("@valbuild/core/dist/declarations/src/fp/array").NonEmptyArray<string>;
89
- path: string[];
90
- } | {
91
- op: "copy";
92
- from: string[];
93
- path: string[];
94
- } | {
95
- op: "test";
96
- path: string[];
97
- value: import("@valbuild/core/patch").JSONValue;
98
- };
99
- isFileOp: (op: import("@valbuild/core/patch").Operation) => op is {
100
- op: "file";
101
- path: string[];
102
- filePath: string;
103
- value: string;
104
- remote: boolean;
105
- };
106
- createPatchJSONPath: (modulePath: import("@valbuild/core").ModulePath) => string;
107
- createPatchPath: (modulePath: import("@valbuild/core").ModulePath) => string[];
108
- splitModulePath: typeof import("@valbuild/core/dist/declarations/src/module").splitModulePath;
109
- splitModuleFilePath: typeof import("@valbuild/core/dist/declarations/src/module").splitModuleFilePath;
110
- splitJoinedSourcePaths: typeof import("@valbuild/core/dist/declarations/src/module").splitJoinedSourcePaths;
111
- parentOfSourcePath: typeof import("@valbuild/core/dist/declarations/src/module").parentOfSourcePath;
112
- patchPathToModulePath: typeof import("@valbuild/core/dist/declarations/src/module").patchPathToModulePath;
113
- VAL_ENABLE_COOKIE_NAME: "val_enable";
114
- VAL_STATE_COOKIE: "val_state";
115
- VAL_SESSION_COOKIE: "val_session";
116
- createFilename: (data: string | null, filename: string | null, metadata: import("@valbuild/core").FileMetadata | import("@valbuild/core").ImageMetadata | undefined, sha256: string) => string | null;
117
40
  };
41
+ export declare const Internal: InternalWithNextVersion;
@@ -0,0 +1 @@
1
+ export declare const VERSION: string | null;
@@ -198,6 +198,18 @@ stega.autoTagJSX();
198
198
 
199
199
  // Convenience types
200
200
 
201
+ /**
202
+ * Annotated rather than inferred.
203
+ *
204
+ * The inferred type of the spread below reaches into @valbuild/core's internal
205
+ * declaration files for names like `NonEmptyArray` and `createValPathOfItem`,
206
+ * which the declaration emitter cannot write down portably: `preconstruct
207
+ * build` fails with a wall of TS2883 "the inferred type of 'Internal' cannot be
208
+ * named without a reference to ..." while `tsc --noEmit` stays happy, so it only
209
+ * shows up in the build job. Naming the type in terms of `typeof InternalCore`
210
+ * keeps everything the emitter needs reachable through the package entry point.
211
+ */
212
+
201
213
  var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
202
214
  VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
203
215
  next: version.VERSION
@@ -198,6 +198,18 @@ stega.autoTagJSX();
198
198
 
199
199
  // Convenience types
200
200
 
201
+ /**
202
+ * Annotated rather than inferred.
203
+ *
204
+ * The inferred type of the spread below reaches into @valbuild/core's internal
205
+ * declaration files for names like `NonEmptyArray` and `createValPathOfItem`,
206
+ * which the declaration emitter cannot write down portably: `preconstruct
207
+ * build` fails with a wall of TS2883 "the inferred type of 'Internal' cannot be
208
+ * named without a reference to ..." while `tsc --noEmit` stays happy, so it only
209
+ * shows up in the build job. Naming the type in terms of `typeof InternalCore`
210
+ * keeps everything the emitter needs reachable through the package entry point.
211
+ */
212
+
201
213
  var Internal = objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal), {}, {
202
214
  VERSION: objectSpread2._objectSpread2(objectSpread2._objectSpread2({}, core.Internal.VERSION), {}, {
203
215
  next: version.VERSION
@@ -174,6 +174,18 @@ autoTagJSX();
174
174
 
175
175
  // Convenience types
176
176
 
177
+ /**
178
+ * Annotated rather than inferred.
179
+ *
180
+ * The inferred type of the spread below reaches into @valbuild/core's internal
181
+ * declaration files for names like `NonEmptyArray` and `createValPathOfItem`,
182
+ * which the declaration emitter cannot write down portably: `preconstruct
183
+ * build` fails with a wall of TS2883 "the inferred type of 'Internal' cannot be
184
+ * named without a reference to ..." while `tsc --noEmit` stays happy, so it only
185
+ * shows up in the build job. Naming the type in terms of `typeof InternalCore`
186
+ * keeps everything the emitter needs reachable through the package entry point.
187
+ */
188
+
177
189
  var Internal = _objectSpread2(_objectSpread2({}, Internal$1), {}, {
178
190
  VERSION: _objectSpread2(_objectSpread2({}, Internal$1.VERSION), {}, {
179
191
  next: VERSION
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.107.0",
15
+ "version": "0.108.1",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -47,22 +47,22 @@
47
47
  "dependencies": {
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
+ "@valbuild/react": "0.108.1",
51
+ "@valbuild/language-server": "0.108.1",
50
52
  "@valbuild/core": "0.106.0",
51
- "@valbuild/language-server": "0.107.0",
52
- "@valbuild/react": "0.107.0",
53
- "@valbuild/server": "0.107.0",
54
- "@valbuild/shared": "0.107.0",
55
- "@valbuild/ui": "0.107.0"
53
+ "@valbuild/server": "0.108.1",
54
+ "@valbuild/shared": "0.108.0",
55
+ "@valbuild/ui": "0.108.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@testing-library/react": "^16.3.2",
58
+ "@testing-library/react": "^16.3.3",
59
59
  "@types/react": "^19.2.18",
60
60
  "@types/react-dom": "^19.2.5",
61
- "jest-environment-jsdom": "^29.5.0",
61
+ "jest-environment-jsdom": "^30.5.0",
62
62
  "next": "^16.3.3",
63
63
  "react": "^19.2.8",
64
64
  "react-dom": "^19.2.8",
65
- "typescript": "^5.9.3"
65
+ "typescript": "^6.0.3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "next": ">=14.3.0",