@valbuild/shared 0.149.7 → 0.150.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.
- package/CHANGELOG.md +52 -0
- package/dist/declarations/src/internal/index.d.ts +1 -0
- package/dist/declarations/src/internal/validation/validationWarnings.d.ts +33 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +45 -0
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +45 -0
- package/internal/dist/valbuild-shared-internal.esm.js +41 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.150.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#894](https://github.com/valbuild/val/pull/894) [`9171baa`](https://github.com/valbuild/val/commit/9171baad7beb1b2a355c70724d2339467b126e02) Thanks [@freekh](https://github.com/freekh)! - `val validate` no longer fails a project just because some of its files are
|
|
8
|
+
local while the project stores files remotely (`files: { remote: true }` or
|
|
9
|
+
`.remote()`). Every project made from a template starts like that, and the
|
|
10
|
+
site serves those files from `public/` until they are uploaded. They are now
|
|
11
|
+
reported as **warnings**, grouped into one block per file with the command
|
|
12
|
+
that uploads them:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
content/images.val.ts ⚠ 7 warnings (12ms)
|
|
16
|
+
│
|
|
17
|
+
│ ⚠ Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.
|
|
18
|
+
│
|
|
19
|
+
│ content/images.val.ts:7:5 /public/val/images/image-0_00000.png
|
|
20
|
+
│ content/images.val.ts:8:5 /public/val/images/image-1_00001.png
|
|
21
|
+
│ content/images.val.ts:9:5 /public/val/images/image-2_00002.png
|
|
22
|
+
│ content/images.val.ts:10:5 /public/val/images/image-3_00003.png
|
|
23
|
+
│ content/images.val.ts:11:5 /public/val/images/image-4_00004.png
|
|
24
|
+
│ … 2 more
|
|
25
|
+
│
|
|
26
|
+
│ → val validate --fix uploads them (needs val login)
|
|
27
|
+
│
|
|
28
|
+
|
|
29
|
+
✔ No validation errors · 7 warnings in 1 file
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- `--strict` on `val validate` and `val publish` makes warnings fail too.
|
|
33
|
+
- `val validate --fix` still fails when it cannot upload them, for example
|
|
34
|
+
when you are not logged in.
|
|
35
|
+
- A local file that does not exist is still an error.
|
|
36
|
+
- The language server shows these as warnings.
|
|
37
|
+
- In the Studio, **Check everything** on the Validate page lists them with a
|
|
38
|
+
**Fix** button that uploads them, so a hosted project, which
|
|
39
|
+
has no command line, can move its template's images and files to remote
|
|
40
|
+
storage. That covers images, files and videos (a video's poster, captions
|
|
41
|
+
and HLS stream go up with it), images inside rich text included, and the
|
|
42
|
+
fields that picked a gallery image or a video from a set are updated with
|
|
43
|
+
it.
|
|
44
|
+
- On a hosted project, **Check everything** no longer reports the template's
|
|
45
|
+
images and videos as "The file is gone", and no longer offers a Fix that
|
|
46
|
+
would remove them from their gallery or video set.
|
|
47
|
+
|
|
48
|
+
Fixable errors are now printed with `✘`, like every other error, instead of
|
|
49
|
+
the `⚠` warnings use. They were always errors and still make `val validate`
|
|
50
|
+
fail.
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`9171baa`](https://github.com/valbuild/val/commit/9171baad7beb1b2a355c70724d2339467b126e02)]:
|
|
53
|
+
- @valbuild/core@0.150.1
|
|
54
|
+
|
|
3
55
|
## 0.149.7
|
|
4
56
|
|
|
5
57
|
### Patch Changes
|
|
@@ -31,6 +31,7 @@ export * from "./aiTools/aiSourceToolPatches.js";
|
|
|
31
31
|
export * from "./validation/partitionValidationErrors.js";
|
|
32
32
|
export * from "./validation/blockingValidationErrors.js";
|
|
33
33
|
export * from "./validation/studioFixes.js";
|
|
34
|
+
export * from "./validation/validationWarnings.js";
|
|
34
35
|
export * from "./media/encodeImageDecisions.js";
|
|
35
36
|
export * from "./search/searchIndex.js";
|
|
36
37
|
export * from "./search/traverseSchemaSource.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ValidationFix } from "@valbuild/core";
|
|
2
|
+
/**
|
|
3
|
+
* The fixes whose errors are WARNINGS: reported, but never a reason on their
|
|
4
|
+
* own for `val validate` or `val publish` to fail (unless `--strict`).
|
|
5
|
+
*
|
|
6
|
+
* All of them say the same thing: a local file in a project that stores its
|
|
7
|
+
* files remotely (`files: { remote: true }`, or `.remote()`). Nothing is broken
|
|
8
|
+
* -- the site serves the file from `public/` until it is uploaded -- and every
|
|
9
|
+
* project made from a template starts this way, including a hosted one, which
|
|
10
|
+
* has no CLI to upload with. A local file that does not EXIST is still an
|
|
11
|
+
* error; the CLI's handlers check that before reporting a warning.
|
|
12
|
+
*
|
|
13
|
+
* `--fix` is different: asked to upload and unable to (not logged in, no
|
|
14
|
+
* project), `val validate --fix` fails, because it was asked to do something
|
|
15
|
+
* it did not do.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WARNING_FIXES: readonly ["image:upload-remote", "images:upload-remote", "file:upload-remote", "files:upload-remote", "video:upload-remote", "videos:upload-remote"];
|
|
18
|
+
export type WarningFix = (typeof WARNING_FIXES)[number];
|
|
19
|
+
export declare function isWarningFix(fix: ValidationFix): fix is WarningFix;
|
|
20
|
+
/**
|
|
21
|
+
* Whether an error is a warning: it carries fixes, and every one of them is a
|
|
22
|
+
* {@link WARNING_FIXES} code. An error tagged with any other fix as well is an
|
|
23
|
+
* error, the same rule `isRepairedOnSave` uses.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isValidationWarning(error: {
|
|
26
|
+
fixes?: ValidationFix[];
|
|
27
|
+
}): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* What `val validate` says about a local file in a remote project, once for
|
|
30
|
+
* all of a module's: the CLI groups warnings by message.
|
|
31
|
+
*/
|
|
32
|
+
export declare const LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = "Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.";
|
|
33
|
+
export declare const LOCAL_FILE_IN_REMOTE_PROJECT_HINT = "val validate --fix uploads them (needs val login)";
|
|
@@ -6472,6 +6472,46 @@ function isStudioFix(fix) {
|
|
|
6472
6472
|
});
|
|
6473
6473
|
}
|
|
6474
6474
|
|
|
6475
|
+
/**
|
|
6476
|
+
* The fixes whose errors are WARNINGS: reported, but never a reason on their
|
|
6477
|
+
* own for `val validate` or `val publish` to fail (unless `--strict`).
|
|
6478
|
+
*
|
|
6479
|
+
* All of them say the same thing: a local file in a project that stores its
|
|
6480
|
+
* files remotely (`files: { remote: true }`, or `.remote()`). Nothing is broken
|
|
6481
|
+
* -- the site serves the file from `public/` until it is uploaded -- and every
|
|
6482
|
+
* project made from a template starts this way, including a hosted one, which
|
|
6483
|
+
* has no CLI to upload with. A local file that does not EXIST is still an
|
|
6484
|
+
* error; the CLI's handlers check that before reporting a warning.
|
|
6485
|
+
*
|
|
6486
|
+
* `--fix` is different: asked to upload and unable to (not logged in, no
|
|
6487
|
+
* project), `val validate --fix` fails, because it was asked to do something
|
|
6488
|
+
* it did not do.
|
|
6489
|
+
*/
|
|
6490
|
+
var WARNING_FIXES = ["image:upload-remote", "images:upload-remote", "file:upload-remote", "files:upload-remote", "video:upload-remote", "videos:upload-remote"];
|
|
6491
|
+
function isWarningFix(fix) {
|
|
6492
|
+
return WARNING_FIXES.some(function (warningFix) {
|
|
6493
|
+
return warningFix === fix;
|
|
6494
|
+
});
|
|
6495
|
+
}
|
|
6496
|
+
|
|
6497
|
+
/**
|
|
6498
|
+
* Whether an error is a warning: it carries fixes, and every one of them is a
|
|
6499
|
+
* {@link WARNING_FIXES} code. An error tagged with any other fix as well is an
|
|
6500
|
+
* error, the same rule `isRepairedOnSave` uses.
|
|
6501
|
+
*/
|
|
6502
|
+
function isValidationWarning(error) {
|
|
6503
|
+
var _error$fixes;
|
|
6504
|
+
var fixes = (_error$fixes = error.fixes) !== null && _error$fixes !== void 0 ? _error$fixes : [];
|
|
6505
|
+
return fixes.length > 0 && fixes.every(isWarningFix);
|
|
6506
|
+
}
|
|
6507
|
+
|
|
6508
|
+
/**
|
|
6509
|
+
* What `val validate` says about a local file in a remote project, once for
|
|
6510
|
+
* all of a module's: the CLI groups warnings by message.
|
|
6511
|
+
*/
|
|
6512
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = "Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.";
|
|
6513
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_HINT = "val validate --fix uploads them (needs val login)";
|
|
6514
|
+
|
|
6475
6515
|
/**
|
|
6476
6516
|
* Every decision `encode` makes, with none of the pixels.
|
|
6477
6517
|
*
|
|
@@ -8624,6 +8664,8 @@ exports.ImageEncodeOption = ImageEncodeOption;
|
|
|
8624
8664
|
exports.ImageOptions = ImageOptions;
|
|
8625
8665
|
exports.JSONValue = JSONValue;
|
|
8626
8666
|
exports.JSON_ENTRIES_BATCH_MAX = JSON_ENTRIES_BATCH_MAX;
|
|
8667
|
+
exports.LOCAL_FILE_IN_REMOTE_PROJECT_HINT = LOCAL_FILE_IN_REMOTE_PROJECT_HINT;
|
|
8668
|
+
exports.LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = LOCAL_FILE_IN_REMOTE_PROJECT_WARNING;
|
|
8627
8669
|
exports.ModuleComparison = ModuleComparison;
|
|
8628
8670
|
exports.NEVER_ENCODED = NEVER_ENCODED;
|
|
8629
8671
|
exports.ParentRef = ParentRef$1;
|
|
@@ -8683,6 +8725,7 @@ exports.ValCommit = ValCommit;
|
|
|
8683
8725
|
exports.ValDeployment = ValDeployment;
|
|
8684
8726
|
exports.VideoOptions = VideoOptions;
|
|
8685
8727
|
exports.VideoStreamOption = VideoStreamOption;
|
|
8728
|
+
exports.WARNING_FIXES = WARNING_FIXES;
|
|
8686
8729
|
exports.WASM_ENCODED_MIME_TYPES = WASM_ENCODED_MIME_TYPES;
|
|
8687
8730
|
exports.accentRamp = accentRamp;
|
|
8688
8731
|
exports.buildDuplicatePatch = buildDuplicatePatch;
|
|
@@ -8729,6 +8772,8 @@ exports.isRepairedOnSave = isRepairedOnSave;
|
|
|
8729
8772
|
exports.isSchemaSourceFixError = isSchemaSourceFixError;
|
|
8730
8773
|
exports.isSkippedSource = isSkippedSource;
|
|
8731
8774
|
exports.isStudioFix = isStudioFix;
|
|
8775
|
+
exports.isValidationWarning = isValidationWarning;
|
|
8776
|
+
exports.isWarningFix = isWarningFix;
|
|
8732
8777
|
exports.joinSharedChanges = joinSharedChanges;
|
|
8733
8778
|
exports.keyOfRecordPath = keyOfRecordPath;
|
|
8734
8779
|
exports.levenshtein = levenshtein;
|
|
@@ -6472,6 +6472,46 @@ function isStudioFix(fix) {
|
|
|
6472
6472
|
});
|
|
6473
6473
|
}
|
|
6474
6474
|
|
|
6475
|
+
/**
|
|
6476
|
+
* The fixes whose errors are WARNINGS: reported, but never a reason on their
|
|
6477
|
+
* own for `val validate` or `val publish` to fail (unless `--strict`).
|
|
6478
|
+
*
|
|
6479
|
+
* All of them say the same thing: a local file in a project that stores its
|
|
6480
|
+
* files remotely (`files: { remote: true }`, or `.remote()`). Nothing is broken
|
|
6481
|
+
* -- the site serves the file from `public/` until it is uploaded -- and every
|
|
6482
|
+
* project made from a template starts this way, including a hosted one, which
|
|
6483
|
+
* has no CLI to upload with. A local file that does not EXIST is still an
|
|
6484
|
+
* error; the CLI's handlers check that before reporting a warning.
|
|
6485
|
+
*
|
|
6486
|
+
* `--fix` is different: asked to upload and unable to (not logged in, no
|
|
6487
|
+
* project), `val validate --fix` fails, because it was asked to do something
|
|
6488
|
+
* it did not do.
|
|
6489
|
+
*/
|
|
6490
|
+
var WARNING_FIXES = ["image:upload-remote", "images:upload-remote", "file:upload-remote", "files:upload-remote", "video:upload-remote", "videos:upload-remote"];
|
|
6491
|
+
function isWarningFix(fix) {
|
|
6492
|
+
return WARNING_FIXES.some(function (warningFix) {
|
|
6493
|
+
return warningFix === fix;
|
|
6494
|
+
});
|
|
6495
|
+
}
|
|
6496
|
+
|
|
6497
|
+
/**
|
|
6498
|
+
* Whether an error is a warning: it carries fixes, and every one of them is a
|
|
6499
|
+
* {@link WARNING_FIXES} code. An error tagged with any other fix as well is an
|
|
6500
|
+
* error, the same rule `isRepairedOnSave` uses.
|
|
6501
|
+
*/
|
|
6502
|
+
function isValidationWarning(error) {
|
|
6503
|
+
var _error$fixes;
|
|
6504
|
+
var fixes = (_error$fixes = error.fixes) !== null && _error$fixes !== void 0 ? _error$fixes : [];
|
|
6505
|
+
return fixes.length > 0 && fixes.every(isWarningFix);
|
|
6506
|
+
}
|
|
6507
|
+
|
|
6508
|
+
/**
|
|
6509
|
+
* What `val validate` says about a local file in a remote project, once for
|
|
6510
|
+
* all of a module's: the CLI groups warnings by message.
|
|
6511
|
+
*/
|
|
6512
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = "Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.";
|
|
6513
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_HINT = "val validate --fix uploads them (needs val login)";
|
|
6514
|
+
|
|
6475
6515
|
/**
|
|
6476
6516
|
* Every decision `encode` makes, with none of the pixels.
|
|
6477
6517
|
*
|
|
@@ -8624,6 +8664,8 @@ exports.ImageEncodeOption = ImageEncodeOption;
|
|
|
8624
8664
|
exports.ImageOptions = ImageOptions;
|
|
8625
8665
|
exports.JSONValue = JSONValue;
|
|
8626
8666
|
exports.JSON_ENTRIES_BATCH_MAX = JSON_ENTRIES_BATCH_MAX;
|
|
8667
|
+
exports.LOCAL_FILE_IN_REMOTE_PROJECT_HINT = LOCAL_FILE_IN_REMOTE_PROJECT_HINT;
|
|
8668
|
+
exports.LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = LOCAL_FILE_IN_REMOTE_PROJECT_WARNING;
|
|
8627
8669
|
exports.ModuleComparison = ModuleComparison;
|
|
8628
8670
|
exports.NEVER_ENCODED = NEVER_ENCODED;
|
|
8629
8671
|
exports.ParentRef = ParentRef$1;
|
|
@@ -8683,6 +8725,7 @@ exports.ValCommit = ValCommit;
|
|
|
8683
8725
|
exports.ValDeployment = ValDeployment;
|
|
8684
8726
|
exports.VideoOptions = VideoOptions;
|
|
8685
8727
|
exports.VideoStreamOption = VideoStreamOption;
|
|
8728
|
+
exports.WARNING_FIXES = WARNING_FIXES;
|
|
8686
8729
|
exports.WASM_ENCODED_MIME_TYPES = WASM_ENCODED_MIME_TYPES;
|
|
8687
8730
|
exports.accentRamp = accentRamp;
|
|
8688
8731
|
exports.buildDuplicatePatch = buildDuplicatePatch;
|
|
@@ -8729,6 +8772,8 @@ exports.isRepairedOnSave = isRepairedOnSave;
|
|
|
8729
8772
|
exports.isSchemaSourceFixError = isSchemaSourceFixError;
|
|
8730
8773
|
exports.isSkippedSource = isSkippedSource;
|
|
8731
8774
|
exports.isStudioFix = isStudioFix;
|
|
8775
|
+
exports.isValidationWarning = isValidationWarning;
|
|
8776
|
+
exports.isWarningFix = isWarningFix;
|
|
8732
8777
|
exports.joinSharedChanges = joinSharedChanges;
|
|
8733
8778
|
exports.keyOfRecordPath = keyOfRecordPath;
|
|
8734
8779
|
exports.levenshtein = levenshtein;
|
|
@@ -6465,6 +6465,46 @@ function isStudioFix(fix) {
|
|
|
6465
6465
|
});
|
|
6466
6466
|
}
|
|
6467
6467
|
|
|
6468
|
+
/**
|
|
6469
|
+
* The fixes whose errors are WARNINGS: reported, but never a reason on their
|
|
6470
|
+
* own for `val validate` or `val publish` to fail (unless `--strict`).
|
|
6471
|
+
*
|
|
6472
|
+
* All of them say the same thing: a local file in a project that stores its
|
|
6473
|
+
* files remotely (`files: { remote: true }`, or `.remote()`). Nothing is broken
|
|
6474
|
+
* -- the site serves the file from `public/` until it is uploaded -- and every
|
|
6475
|
+
* project made from a template starts this way, including a hosted one, which
|
|
6476
|
+
* has no CLI to upload with. A local file that does not EXIST is still an
|
|
6477
|
+
* error; the CLI's handlers check that before reporting a warning.
|
|
6478
|
+
*
|
|
6479
|
+
* `--fix` is different: asked to upload and unable to (not logged in, no
|
|
6480
|
+
* project), `val validate --fix` fails, because it was asked to do something
|
|
6481
|
+
* it did not do.
|
|
6482
|
+
*/
|
|
6483
|
+
var WARNING_FIXES = ["image:upload-remote", "images:upload-remote", "file:upload-remote", "files:upload-remote", "video:upload-remote", "videos:upload-remote"];
|
|
6484
|
+
function isWarningFix(fix) {
|
|
6485
|
+
return WARNING_FIXES.some(function (warningFix) {
|
|
6486
|
+
return warningFix === fix;
|
|
6487
|
+
});
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
/**
|
|
6491
|
+
* Whether an error is a warning: it carries fixes, and every one of them is a
|
|
6492
|
+
* {@link WARNING_FIXES} code. An error tagged with any other fix as well is an
|
|
6493
|
+
* error, the same rule `isRepairedOnSave` uses.
|
|
6494
|
+
*/
|
|
6495
|
+
function isValidationWarning(error) {
|
|
6496
|
+
var _error$fixes;
|
|
6497
|
+
var fixes = (_error$fixes = error.fixes) !== null && _error$fixes !== void 0 ? _error$fixes : [];
|
|
6498
|
+
return fixes.length > 0 && fixes.every(isWarningFix);
|
|
6499
|
+
}
|
|
6500
|
+
|
|
6501
|
+
/**
|
|
6502
|
+
* What `val validate` says about a local file in a remote project, once for
|
|
6503
|
+
* all of a module's: the CLI groups warnings by message.
|
|
6504
|
+
*/
|
|
6505
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_WARNING = "Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.";
|
|
6506
|
+
var LOCAL_FILE_IN_REMOTE_PROJECT_HINT = "val validate --fix uploads them (needs val login)";
|
|
6507
|
+
|
|
6468
6508
|
/**
|
|
6469
6509
|
* Every decision `encode` makes, with none of the pixels.
|
|
6470
6510
|
*
|
|
@@ -8559,4 +8599,4 @@ var messageOf = function messageOf(error) {
|
|
|
8559
8599
|
return error instanceof Error ? error.message : String(error);
|
|
8560
8600
|
};
|
|
8561
8601
|
|
|
8562
|
-
export { AA_LARGE, AA_TEXT, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, STUDIO_FIXES, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedDiscriminatedUnionSchema, SerializedEnumSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedLocaleSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedValViewSchema, SerializedVideoSchema, SharedValConfig, VAL_ENABLE_COOKIE_NAME, VAL_GREEN_RAMP, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, VAL_STUDIO_HEADER, ValCommit, ValDeployment, VideoOptions, VideoStreamOption, WASM_ENCODED_MIME_TYPES, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, enumLocaleTag, explainIncompatible, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, indexModule, isInsidePatchSetPath, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, memoizePerRequest, newestCommitSha, partitionValidationErrors, performSearch, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, schemaErrorsOf, schemaTypesOfPath, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sourcePathOfChild, themeCustomProperties, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
|
|
8602
|
+
export { AA_LARGE, AA_TEXT, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, STUDIO_FIXES, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedDiscriminatedUnionSchema, SerializedEnumSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedLocaleSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedValViewSchema, SerializedVideoSchema, SharedValConfig, VAL_ENABLE_COOKIE_NAME, VAL_GREEN_RAMP, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, VAL_STUDIO_HEADER, ValCommit, ValDeployment, VideoOptions, VideoStreamOption, WARNING_FIXES, WASM_ENCODED_MIME_TYPES, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, enumLocaleTag, explainIncompatible, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, indexModule, isInsidePatchSetPath, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, isValidationWarning, isWarningFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, memoizePerRequest, newestCommitSha, partitionValidationErrors, performSearch, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, schemaErrorsOf, schemaTypesOfPath, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sourcePathOfChild, themeCustomProperties, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yaml": "^2.9.0",
|
|
54
54
|
"zod": "^4.4.3",
|
|
55
55
|
"zod-validation-error": "^5.0.0",
|
|
56
|
-
"@valbuild/core": "0.
|
|
56
|
+
"@valbuild/core": "0.150.1"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"CHANGELOG.md",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
],
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
|
-
"@valbuild/tanstack-build": "0.
|
|
74
|
+
"@valbuild/tanstack-build": "0.150.1"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"scripts": {
|