@valbuild/shared 0.142.0 → 0.144.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/CHANGELOG.md +22 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +118 -89
- package/dist/declarations/src/internal/aiTools/aiImageToolPatches.d.ts +1 -1
- package/dist/declarations/src/internal/index.d.ts +1 -0
- package/dist/declarations/src/internal/richtext/richTextImages.d.ts +21 -0
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/History.d.ts +7 -7
- package/dist/declarations/src/internal/zod/Patch.d.ts +1 -0
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +20 -2
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +110 -62
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +110 -62
- package/internal/dist/valbuild-shared-internal.esm.js +109 -63
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Internal, CODE_LANGUAGES, resolveSettingsModule, missingDeclaredKeys, localeOfValue, discriminatedUnionBranchOf, DEFAULT_COLOR_FORMAT, declaredKeySetOf } from '@valbuild/core';
|
|
2
1
|
import { _ as _createForOfIteratorHelper, o as _objectSpread2, q as _arrayLikeToArray, r as _unsupportedIterableToArray, s as _typeof, t as _defineProperty, u as _toPropertyKey } from '../../dist/getSitemapTree-6fcdf745.esm.js';
|
|
3
2
|
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as getNextAppRouterSourceFolder, m as getPageRouterSitemapTree, k as getPageRouterSourceFolder, n as getPatternFromModuleFilePath, j as getTanStackRouterSourceFolder, l as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-6fcdf745.esm.js';
|
|
3
|
+
import { Internal, CODE_LANGUAGES, resolveSettingsModule, missingDeclaredKeys, localeOfValue, discriminatedUnionBranchOf, DEFAULT_COLOR_FORMAT, declaredKeySetOf } from '@valbuild/core';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { fromError } from 'zod-validation-error';
|
|
6
6
|
import FlexSearch from 'flexsearch';
|
|
@@ -650,6 +650,105 @@ function convertListItemToRemirrorParagraph(rtChildren) {
|
|
|
650
650
|
return children;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
+
/**
|
|
654
|
+
* The one way to build a child's source path.
|
|
655
|
+
*
|
|
656
|
+
* There were five hand-rolled versions of this, three of them subtly different
|
|
657
|
+
* and two of them wrong, and the wrong ones were wrong in a way that hid: a
|
|
658
|
+
* module path segment has to be JSON-quoted if it is a string and bare if it is
|
|
659
|
+
* an array index, and both broken copies appended the raw key at the module
|
|
660
|
+
* root. An unquoted key parses fine as long as it contains no `.` — so every
|
|
661
|
+
* object field and every ordinary record key still resolved, and only a key with
|
|
662
|
+
* a dot in it broke. That is exactly what a media gallery is keyed by, so
|
|
663
|
+
* clicking a file in the Media panel navigated to
|
|
664
|
+
* `?p=/public/val/red-8x8_bfbd0.png`, which `splitModulePath` reads as the two
|
|
665
|
+
* segments `/public/val/red-8x8_bfbd0` and `png`, and the studio said the module
|
|
666
|
+
* was not found.
|
|
667
|
+
*
|
|
668
|
+
* So: one function, and never a template string. `Internal.createValPathOfItem`
|
|
669
|
+
* is the rule itself — `JSON.stringify` quotes a string and leaves a number
|
|
670
|
+
* bare, which is precisely the module-path grammar — and everything here defers
|
|
671
|
+
* to it rather than restating it.
|
|
672
|
+
*/
|
|
673
|
+
function sourcePathOfChild(parent, key) {
|
|
674
|
+
/**
|
|
675
|
+
* A parent that is already `…?p=` gets the key with no separator.
|
|
676
|
+
*
|
|
677
|
+
* The search index walks from `moduleFilePath + "?p="` rather than from the
|
|
678
|
+
* module file path, so that every path it produces has a module path — and
|
|
679
|
+
* `createValPathOfItem` would see the separator and join with a `.`, giving
|
|
680
|
+
* `?p=."title"`.
|
|
681
|
+
*/
|
|
682
|
+
if (parent.endsWith(Internal.ModuleFilePathSep)) {
|
|
683
|
+
return "".concat(parent).concat(JSON.stringify(key));
|
|
684
|
+
}
|
|
685
|
+
var path = Internal.createValPathOfItem(parent, key);
|
|
686
|
+
if (path === undefined) {
|
|
687
|
+
// Only when the parent is empty, which callers cannot produce: every walk
|
|
688
|
+
// starts from a module file path. Thrown rather than skipped so a future
|
|
689
|
+
// change that breaks that assumption is loud.
|
|
690
|
+
throw new Error("Could not build a source path for '".concat(key, "' under ").concat(parent));
|
|
691
|
+
}
|
|
692
|
+
return path;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* The same thing, for callers holding the module file path and module path apart.
|
|
697
|
+
*
|
|
698
|
+
* `ModulePath` is empty at the module root, which is the case both broken copies
|
|
699
|
+
* got wrong: there is no separator in the path yet, so the key is the first
|
|
700
|
+
* segment and still has to be quoted.
|
|
701
|
+
*/
|
|
702
|
+
function concatModulePath(moduleFilePath, modulePath, key) {
|
|
703
|
+
return sourcePathOfChild(modulePath ? Internal.joinModuleFilePathAndModulePath(moduleFilePath, modulePath) : moduleFilePath, key);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* The image schema a rich text field's inline `img` nodes are validated with,
|
|
708
|
+
* when it is a real schema rather than `img: true`.
|
|
709
|
+
*
|
|
710
|
+
* It is the only way a rich text field can point INTO a gallery
|
|
711
|
+
* (`s.richtext({ img: s.image(galleryVal) })`), which is why every reference
|
|
712
|
+
* scan has to ask: the field's own schema is `richtext`, not `image`, so a walk
|
|
713
|
+
* that only looks for image leaves walks straight past the images in it.
|
|
714
|
+
*/
|
|
715
|
+
function richTextImageSchema(schema) {
|
|
716
|
+
var _schema$options;
|
|
717
|
+
var img = (_schema$options = schema.options) === null || _schema$options === void 0 ? void 0 : _schema$options.img;
|
|
718
|
+
return _typeof(img) === "object" && img !== null ? img : null;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Every inline image in a rich text value, at the path of its `src`.
|
|
723
|
+
*
|
|
724
|
+
* `src` is a media value (`{ path, … }`), so the path handed out is one a
|
|
725
|
+
* patch can address — `field.0."children".1."src"` — and a rename rewrites
|
|
726
|
+
* `[…, "src", "path"]` there with the same op it uses on an image field.
|
|
727
|
+
* Images nest (a list item holds a paragraph holds the image), so the walk
|
|
728
|
+
* follows `children` all the way down.
|
|
729
|
+
*/
|
|
730
|
+
function forEachRichTextImage(path, source, visit) {
|
|
731
|
+
if (!Array.isArray(source)) {
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
for (var index = 0; index < source.length; index++) {
|
|
735
|
+
var node = source[index];
|
|
736
|
+
if (_typeof(node) !== "object" || node === null || Array.isArray(node)) {
|
|
737
|
+
continue;
|
|
738
|
+
}
|
|
739
|
+
var nodePath = sourcePathOfChild(path, index);
|
|
740
|
+
if ("tag" in node && node.tag === "img" && "src" in node) {
|
|
741
|
+
var src = node.src;
|
|
742
|
+
if (_typeof(src) === "object" && src !== null && !Array.isArray(src)) {
|
|
743
|
+
visit(sourcePathOfChild(nodePath, "src"), _objectSpread2({}, src));
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
if ("children" in node) {
|
|
747
|
+
forEachRichTextImage(sourcePathOfChild(nodePath, "children"), node.children, visit);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
653
752
|
var VAL_SESSION_COOKIE = Internal.VAL_SESSION_COOKIE;
|
|
654
753
|
var VAL_STATE_COOKIE = Internal.VAL_STATE_COOKIE;
|
|
655
754
|
var VAL_ENABLE_COOKIE_NAME = Internal.VAL_ENABLE_COOKIE_NAME;
|
|
@@ -1165,7 +1264,7 @@ var SerializedRecordSchema = z.lazy(function () {
|
|
|
1165
1264
|
dir: z.string().optional(),
|
|
1166
1265
|
remote: z["boolean"]().optional(),
|
|
1167
1266
|
encode: ImageEncodeOption.optional(),
|
|
1168
|
-
// A
|
|
1267
|
+
// A videodir's: see `VideoStreamOption` below for why it is spelled
|
|
1169
1268
|
// out rather than passed through.
|
|
1170
1269
|
stream: VideoStreamOption.optional(),
|
|
1171
1270
|
alt: SerializedSchema.optional(),
|
|
@@ -1221,7 +1320,7 @@ var SerializedVideoSchema = z.object(_objectSpread2(_objectSpread2({}, commonSch
|
|
|
1221
1320
|
options: VideoOptions.optional(),
|
|
1222
1321
|
opt: z["boolean"](),
|
|
1223
1322
|
remote: z["boolean"]().optional(),
|
|
1224
|
-
// The `s.
|
|
1323
|
+
// The `s.videodir()` a set-backed field picks from.
|
|
1225
1324
|
referencedModule: z.string().optional()
|
|
1226
1325
|
}));
|
|
1227
1326
|
var DateOptions = z.object({
|
|
@@ -5560,7 +5659,7 @@ function getSourceAt(source, path) {
|
|
|
5560
5659
|
* Walks `schema` along `path`, returning a structured result:
|
|
5561
5660
|
* - `leaf`: walked the full path; resolved schema at the end.
|
|
5562
5661
|
* - `richtext`: hit a richtext mid-walk; richtext is the resolved schema.
|
|
5563
|
-
* - `gallery-traversed`: hit an `s.
|
|
5662
|
+
* - `gallery-traversed`: hit an `s.imagedir()` record and walked past it (i.e. the
|
|
5564
5663
|
* path tries to address an entry inside the gallery — a clue the AI should
|
|
5565
5664
|
* have used the gallery tool instead).
|
|
5566
5665
|
* - `unresolved`: the path could not be walked.
|
|
@@ -5668,7 +5767,7 @@ function checkGallerySchema(moduleSchema) {
|
|
|
5668
5767
|
// looks like a gallery from here, and the tool can do nothing with one.
|
|
5669
5768
|
return {
|
|
5670
5769
|
kind: "error",
|
|
5671
|
-
message: "Module is a video set (s.
|
|
5770
|
+
message: "Module is a video set (s.videodir()), not an images gallery. Videos cannot be added or removed by this tool: upload them in Val Studio."
|
|
5672
5771
|
};
|
|
5673
5772
|
}
|
|
5674
5773
|
if (moduleSchema.type === "image") {
|
|
@@ -5699,7 +5798,7 @@ function buildImageGalleryPatch(args, moduleSchema) {
|
|
|
5699
5798
|
op: "add",
|
|
5700
5799
|
path: [args.filePath],
|
|
5701
5800
|
value: _objectSpread2(_objectSpread2({}, args.metadata), {}, {
|
|
5702
|
-
// `alt` is a REQUIRED field of a gallery entry (`s.
|
|
5801
|
+
// `alt` is a REQUIRED field of a gallery entry (`s.imagedir()` gives it a
|
|
5703
5802
|
// nullable string schema), so an entry written without one is invalid
|
|
5704
5803
|
// the moment it lands — and the caller that had no alt to give is the
|
|
5705
5804
|
// common case, not the odd one. Null is what the Studio's own upload
|
|
@@ -5762,7 +5861,7 @@ function buildRemoveImageGalleryEntryPatch(args, moduleSchema, moduleSource) {
|
|
|
5762
5861
|
var GALLERY_REDIRECT = {
|
|
5763
5862
|
kind: "wrong-tool",
|
|
5764
5863
|
suggestedTool: "add_session_image_to_gallery",
|
|
5765
|
-
reason: "Destination is a media gallery (s.
|
|
5864
|
+
reason: "Destination is a media gallery (s.imagedir() / s.filedir()). Gallery entries are keyed by file path and carry a file on disk, so they cannot be created with a plain patch. Use add_session_image_to_gallery."
|
|
5766
5865
|
};
|
|
5767
5866
|
|
|
5768
5867
|
/**
|
|
@@ -5772,10 +5871,10 @@ var GALLERY_REDIRECT = {
|
|
|
5772
5871
|
*/
|
|
5773
5872
|
var VIDEOSET_REFUSAL = {
|
|
5774
5873
|
kind: "error",
|
|
5775
|
-
message: "Destination is a video set (s.
|
|
5874
|
+
message: "Destination is a video set (s.videodir()). Its entries are keyed by file path and carry video files, so they cannot be created with a plain patch, and no tool here uploads a video: add it in Val Studio."
|
|
5776
5875
|
};
|
|
5777
5876
|
|
|
5778
|
-
/** An `s.
|
|
5877
|
+
/** An `s.imagedir()` / `s.filedir()` / `s.videodir()` record: a gallery, not an ordinary record. */
|
|
5779
5878
|
function isGallery(schema) {
|
|
5780
5879
|
return schema.type === "record" && schema.mediaType !== undefined;
|
|
5781
5880
|
}
|
|
@@ -6367,59 +6466,6 @@ function withExtension(filename, ext) {
|
|
|
6367
6466
|
return "".concat(base, ".").concat(ext);
|
|
6368
6467
|
}
|
|
6369
6468
|
|
|
6370
|
-
/**
|
|
6371
|
-
* The one way to build a child's source path.
|
|
6372
|
-
*
|
|
6373
|
-
* There were five hand-rolled versions of this, three of them subtly different
|
|
6374
|
-
* and two of them wrong, and the wrong ones were wrong in a way that hid: a
|
|
6375
|
-
* module path segment has to be JSON-quoted if it is a string and bare if it is
|
|
6376
|
-
* an array index, and both broken copies appended the raw key at the module
|
|
6377
|
-
* root. An unquoted key parses fine as long as it contains no `.` — so every
|
|
6378
|
-
* object field and every ordinary record key still resolved, and only a key with
|
|
6379
|
-
* a dot in it broke. That is exactly what a media gallery is keyed by, so
|
|
6380
|
-
* clicking a file in the Media panel navigated to
|
|
6381
|
-
* `?p=/public/val/red-8x8_bfbd0.png`, which `splitModulePath` reads as the two
|
|
6382
|
-
* segments `/public/val/red-8x8_bfbd0` and `png`, and the studio said the module
|
|
6383
|
-
* was not found.
|
|
6384
|
-
*
|
|
6385
|
-
* So: one function, and never a template string. `Internal.createValPathOfItem`
|
|
6386
|
-
* is the rule itself — `JSON.stringify` quotes a string and leaves a number
|
|
6387
|
-
* bare, which is precisely the module-path grammar — and everything here defers
|
|
6388
|
-
* to it rather than restating it.
|
|
6389
|
-
*/
|
|
6390
|
-
function sourcePathOfChild(parent, key) {
|
|
6391
|
-
/**
|
|
6392
|
-
* A parent that is already `…?p=` gets the key with no separator.
|
|
6393
|
-
*
|
|
6394
|
-
* The search index walks from `moduleFilePath + "?p="` rather than from the
|
|
6395
|
-
* module file path, so that every path it produces has a module path — and
|
|
6396
|
-
* `createValPathOfItem` would see the separator and join with a `.`, giving
|
|
6397
|
-
* `?p=."title"`.
|
|
6398
|
-
*/
|
|
6399
|
-
if (parent.endsWith(Internal.ModuleFilePathSep)) {
|
|
6400
|
-
return "".concat(parent).concat(JSON.stringify(key));
|
|
6401
|
-
}
|
|
6402
|
-
var path = Internal.createValPathOfItem(parent, key);
|
|
6403
|
-
if (path === undefined) {
|
|
6404
|
-
// Only when the parent is empty, which callers cannot produce: every walk
|
|
6405
|
-
// starts from a module file path. Thrown rather than skipped so a future
|
|
6406
|
-
// change that breaks that assumption is loud.
|
|
6407
|
-
throw new Error("Could not build a source path for '".concat(key, "' under ").concat(parent));
|
|
6408
|
-
}
|
|
6409
|
-
return path;
|
|
6410
|
-
}
|
|
6411
|
-
|
|
6412
|
-
/**
|
|
6413
|
-
* The same thing, for callers holding the module file path and module path apart.
|
|
6414
|
-
*
|
|
6415
|
-
* `ModulePath` is empty at the module root, which is the case both broken copies
|
|
6416
|
-
* got wrong: there is no separator in the path yet, so the key is the first
|
|
6417
|
-
* segment and still has to be quoted.
|
|
6418
|
-
*/
|
|
6419
|
-
function concatModulePath(moduleFilePath, modulePath, key) {
|
|
6420
|
-
return sourcePathOfChild(modulePath ? Internal.joinModuleFilePathAndModulePath(moduleFilePath, modulePath) : moduleFilePath, key);
|
|
6421
|
-
}
|
|
6422
|
-
|
|
6423
6469
|
/**
|
|
6424
6470
|
* Traverses a schema and source pair, calling a callback for each leaf node.
|
|
6425
6471
|
* Handles all schema types including primitives, objects, arrays, records, unions, richtext, files, images, etc.
|
|
@@ -7930,4 +7976,4 @@ function parse(schema, body, call) {
|
|
|
7930
7976
|
return parsed.data;
|
|
7931
7977
|
}
|
|
7932
7978
|
|
|
7933
|
-
export { AA_LARGE, AA_TEXT, 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, PatchGroup, PatchId, PatchJSON, PublishProtocolError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_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, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, explainIncompatible, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, indexModule, isMimeTypeAccepted, isRemoteSchema, isSchemaSourceFixError, isSkippedSource, keyOfRecordPath, levenshtein, localeAt, memoizePerRequest, newestCommitSha, parseArtifacts, parseBuildTarget, parseCancel, parseDeclare, parseDiscard, parseJob, parseNewestCiRun, parsePress, parseProblems, parseProjectSource, parsePromote, parsePublishToken, parseRenew, parseRequestStatus, parseStatus, parseUpdateTarget, parseVerify, partitionValidationErrors, performSearch, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextToRemirror, safeParsePatch, sourcePathOfChild, themeCustomProperties, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
|
|
7979
|
+
export { AA_LARGE, AA_TEXT, 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, PatchGroup, PatchId, PatchJSON, PublishProtocolError, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_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, accentRamp, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, chainHeadOf, checkCompatibility, chooseEncoded, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, explainIncompatible, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, indexModule, isMimeTypeAccepted, isRemoteSchema, isSchemaSourceFixError, isSkippedSource, keyOfRecordPath, levenshtein, localeAt, memoizePerRequest, newestCommitSha, parseArtifacts, parseBuildTarget, parseCancel, parseDeclare, parseDiscard, parseJob, parseNewestCiRun, parsePress, parseProblems, parseProjectSource, parsePromote, parsePublishToken, parseRenew, parseRequestStatus, parseStatus, parseUpdateTarget, parseVerify, partitionValidationErrors, performSearch, relativeLuminance, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, 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.144.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"flexsearch": "^0.8.212",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
39
|
"zod-validation-error": "^5.0.0",
|
|
40
|
-
"@valbuild/core": "0.
|
|
40
|
+
"@valbuild/core": "0.144.0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"CHANGELOG.md",
|