@valbuild/shared 0.152.0 → 0.153.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.
@@ -7,7 +7,7 @@ import { a as _createClass, c as _classCallCheck } from '../../dist/wrapNativeSu
7
7
  import { fromError } from 'zod-validation-error';
8
8
  import { result, array } from '@valbuild/core/fp';
9
9
  import { PatchError, deepEqual, parseAndValidateArrayIndex } from '@valbuild/core/patch';
10
- export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, Q as QUICK_PREVIEW_PARAM, v as QUICK_PREVIEW_RENDER_SCRIPT, u as QUICK_PREVIEW_SERVICE_WORKER_PATH, z as QUICK_PREVIEW_SERVICE_WORKER_SOURCE, x as QUICK_PREVIEW_STORE_MESSAGE, 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, j as attachElementPicker, k as createPickerOverlay, h as describeElement, l as elementLabel, q as findBySelector, G as formatRoutePattern, H as getNextAppRouterSourceFolder, L as getPageRouterSitemapTree, J as getPageRouterSourceFolder, M as getPatternFromModuleFilePath, I as getTanStackRouterSourceFolder, E as isDesignTabOrigin, y as isQuickPreviewFiles, K as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, m as modifierLabel, p as pageLocationOf, F as parseRoutePattern, C as quickPreviewSiteOrigin, o as readPageSnapshot, r as restoreScroll, t as screenshotPage, s as startElementPicking, A as storeQuickPreview, n as watchPageLocation, B as withQuickPreviewParam, w as withValCanvasParam } from '../../dist/getSitemapTree-3c1b9e57.esm.js';
10
+ export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, Q as QUICK_PREVIEW_PARAM, x as QUICK_PREVIEW_RENDER_SCRIPT, v as QUICK_PREVIEW_SERVICE_WORKER_PATH, A as QUICK_PREVIEW_SERVICE_WORKER_SOURCE, y as QUICK_PREVIEW_STORE_MESSAGE, 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, k as attachElementPicker, l as createPickerOverlay, j as describeElement, n as elementLabel, t as findBySelector, F as formatRoutePattern, G as getNextAppRouterSourceFolder, K as getPageRouterSitemapTree, I as getPageRouterSourceFolder, L as getPatternFromModuleFilePath, H as getTanStackRouterSourceFolder, f as isCanvasSelectionColor, z as isQuickPreviewFiles, J as isTanStackRoutesFolder, h as isValCanvasFrame, i as isValCanvasPageMessage, g as isValCanvasStudioMessage, m as modifierLabel, p as pageLocationOf, E as parseRoutePattern, q as readPageSnapshot, r as restoreScroll, u as screenshotPage, s as startElementPicking, B as storeQuickPreview, o as watchPageLocation, C as withQuickPreviewParam, w as withValCanvasParam } from '../../dist/getSitemapTree-a887fed4.esm.js';
11
11
  import FlexSearch from 'flexsearch';
12
12
  import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
13
13
 
@@ -1872,6 +1872,70 @@ var SketchErrorZ = z.object({
1872
1872
  });
1873
1873
  /** The most text a sketchpad holds, in UTF-8 bytes: a page, not a site. */
1874
1874
  var SKETCHPAD_MAX_TEXT_LENGTH = 256 * 1024;
1875
+
1876
+ /**
1877
+ * A manifest as the server answers it: what each module IS on the server
1878
+ * (`GET /manifest`, and the same answer on `/stat` when the Studio asks for it
1879
+ * there -- one function on the server answers both, `manifestAnswer`).
1880
+ */
1881
+ var ManifestJson = z.object({
1882
+ project: ProjectVersionSchema,
1883
+ modules: z.record(ModuleFilePath, ModuleVersionSchema),
1884
+ /** This answer's ETag, as the header has it. */
1885
+ tag: z.string().optional(),
1886
+ /**
1887
+ * Present on a delta only: the `seq` of the manifest it is
1888
+ * relative to, whose modules that are not named here did not
1889
+ * move. Absent: every module is named.
1890
+ */
1891
+ since: z.number().optional(),
1892
+ /**
1893
+ * The build that answered is a previous build still answering
1894
+ * (http mode: the content service counted a newer one live).
1895
+ * Its versions are right for its own bases, which the site does
1896
+ * not serve any more: a Studio does not move to them, and asks
1897
+ * again. Optional: absent from a live build and a server of the
1898
+ * release before.
1899
+ */
1900
+ superseded: z["boolean"]().optional(),
1901
+ /**
1902
+ * The answering build's `val.modules` registry, as an entry a
1903
+ * Studio can import (`valModulesEntryPath`), and the Val it
1904
+ * runs: where a Studio opened on another build takes this
1905
+ * build's code in without reloading the page. Only a build the
1906
+ * platform made and names (`publishBuild`) has one. Optional
1907
+ * both ways: absent from any other server (local development,
1908
+ * where HMR brings the code; a self-hosted deploy) and from a
1909
+ * server of the release before, and ignored by a Studio of the
1910
+ * release before.
1911
+ */
1912
+ registry: z.object({
1913
+ entry: z.string(),
1914
+ core: z.string()
1915
+ }).optional()
1916
+ });
1917
+ /**
1918
+ * The manifest a `/stat` answer carries, when the request said which one the
1919
+ * Studio holds (`manifest` on the request): what `GET /manifest` would have
1920
+ * answered for it, so another editor's keystroke costs no manifest request.
1921
+ *
1922
+ * - A manifest, whole or a delta. A delta names the ETag it is relative to
1923
+ * (`sinceTag`): a Studio uses it only while it holds exactly that one.
1924
+ * - `unchanged`: the manifest the request named, at `seq`, is still the
1925
+ * one for this answer's `seq`. Decided by `seq` alone, and not read: a
1926
+ * Studio reads a manifest only for a stat whose `seq` moved. It keeps the
1927
+ * next request naming the same manifest.
1928
+ *
1929
+ * Optional: absent from a server of the release before, and from an answer
1930
+ * to a request that did not ask, and then the Studio reads `GET /manifest`.
1931
+ */
1932
+ var StatManifest = z.union([ManifestJson.extend({
1933
+ sinceTag: z.string().optional()
1934
+ }), z.object({
1935
+ unchanged: z.literal(true),
1936
+ tag: z.string(),
1937
+ seq: z.number()
1938
+ })]);
1875
1939
  var Api = {
1876
1940
  "/draft/enable": {
1877
1941
  GET: {
@@ -2258,42 +2322,7 @@ var Api = {
2258
2322
  json: GenericError
2259
2323
  }), z.object({
2260
2324
  status: z.literal(200),
2261
- json: z.object({
2262
- project: ProjectVersionSchema,
2263
- modules: z.record(ModuleFilePath, ModuleVersionSchema),
2264
- /** This answer's ETag, as the header has it. */
2265
- tag: z.string().optional(),
2266
- /**
2267
- * Present on a delta only: the `seq` of the manifest it is
2268
- * relative to, whose modules that are not named here did not
2269
- * move. Absent: every module is named.
2270
- */
2271
- since: z.number().optional(),
2272
- /**
2273
- * The build that answered is a previous build still answering
2274
- * (http mode: the content service counted a newer one live).
2275
- * Its versions are right for its own bases, which the site does
2276
- * not serve any more: a Studio does not move to them, and asks
2277
- * again. Optional: absent from a live build and a server of the
2278
- * release before.
2279
- */
2280
- superseded: z["boolean"]().optional(),
2281
- /**
2282
- * The answering build's `val.modules` registry, as an entry a
2283
- * Studio can import (`valModulesEntryPath`), and the Val it
2284
- * runs: where a Studio opened on another build takes this
2285
- * build's code in without reloading the page. Only a build the
2286
- * platform made and names (`publishBuild`) has one. Optional
2287
- * both ways: absent from any other server (local development,
2288
- * where HMR brings the code; a self-hosted deploy) and from a
2289
- * server of the release before, and ignored by a Studio of the
2290
- * release before.
2291
- */
2292
- registry: z.object({
2293
- entry: z.string(),
2294
- core: z.string()
2295
- }).optional()
2296
- })
2325
+ json: ManifestJson
2297
2326
  }),
2298
2327
  /*
2299
2328
  * Nothing moved since the ETag the client sent. No body on the wire;
@@ -2310,23 +2339,24 @@ var Api = {
2310
2339
  req: {
2311
2340
  body: z.object({
2312
2341
  /**
2313
- * @deprecated Echoed by the Studio, and compared by the fs and
2314
- * memory long poll to see that another build answers. This
2315
- * release's Studio reads each module's version from
2316
- * `GET /manifest`; goes once the long poll compares the echoed
2317
- * version instead (see "Release-delayed deletions" in
2342
+ * @deprecated Echoed by a Studio of the release that shipped the
2343
+ * one content model, whose fs and memory long poll compared it to
2344
+ * see another build; a Studio of the release after echoes
2345
+ * {@link version} instead, and this only when it was sent. The
2346
+ * request field goes once no Studio sends it (see
2347
+ * "Release-delayed deletions" in
2318
2348
  * `docs/plans/one-content-model.md`).
2319
2349
  */
2320
- sourcesSha: z.string(),
2350
+ sourcesSha: z.string().optional(),
2351
+ /** @deprecated As `sourcesSha`. */
2352
+ schemaSha: z.string().optional(),
2321
2353
  /**
2322
- * @deprecated Echoed by the Studio, and compared by the fs and
2323
- * memory long poll to see that another build answers. This
2324
- * release's Studio reads each module's version from
2325
- * `GET /manifest`; goes once the long poll compares the echoed
2326
- * version instead (see "Release-delayed deletions" in
2327
- * `docs/plans/one-content-model.md`).
2354
+ * The `version` the last answer carried: what the fs and memory
2355
+ * long poll compare to see another build (the build the chain is
2356
+ * relative to, `ValOps.chainBuild`). Optional: a Studio of the
2357
+ * release before echoes the shas.
2328
2358
  */
2329
- schemaSha: z.string(),
2359
+ version: ProjectVersionSchema.optional(),
2330
2360
  baseSha: z.string(),
2331
2361
  patches: z.array(z.string()).optional(),
2332
2362
  /**
@@ -2335,7 +2365,17 @@ var Api = {
2335
2365
  * jsonValues module's source is markers and the content sits behind a
2336
2366
  * thunk that `JSON.stringify` drops.
2337
2367
  */
2338
- jsonEntriesSha: z.string().optional()
2368
+ jsonEntriesSha: z.string().optional(),
2369
+ /**
2370
+ * The manifest the Studio holds, by its ETag and `seq`, so the
2371
+ * answer can carry what moved since (`manifest` on the answer):
2372
+ * `null` when it holds none and can take one. Absent from a
2373
+ * Studio of the release before, which reads `GET /manifest`.
2374
+ */
2375
+ manifest: z.object({
2376
+ tag: z.string(),
2377
+ seq: z.number()
2378
+ }).nullable().optional()
2339
2379
  }).nullable(),
2340
2380
  cookies: {
2341
2381
  val_session: z.string().optional()
@@ -2356,21 +2396,16 @@ var Api = {
2356
2396
  type: z.union([z.literal("request-again"), z.literal("no-change"), z.literal("did-change")]),
2357
2397
  baseSha: z.string(),
2358
2398
  /**
2359
- * @deprecated Read by a Studio of the release before
2360
- * (`BaseAlignment`, `SchemaFreshnessWatch`); this release's
2361
- * only echoes it, and reads each module's version from
2362
- * `GET /manifest`. Goes in two steps (see "Release-delayed
2363
- * deletions" in `docs/plans/one-content-model.md`).
2364
- */
2365
- schemaSha: z.string(),
2366
- /**
2367
- * @deprecated Read by a Studio of the release before
2368
- * (`BaseAlignment`, `SchemaFreshnessWatch`); this release's
2369
- * only echoes it, and reads each module's version from
2370
- * `GET /manifest`. Goes in two steps (see "Release-delayed
2371
- * deletions" in `docs/plans/one-content-model.md`).
2399
+ * @deprecated Still sent, for a Studio of the release that
2400
+ * shipped the one content model, which echoes it; a Studio of
2401
+ * the release after reads it as optional and echoes `version`.
2402
+ * The server stops sending it in the release after that (see
2403
+ * "Release-delayed deletions" in
2404
+ * `docs/plans/one-content-model.md`).
2372
2405
  */
2373
- sourcesSha: z.string(),
2406
+ schemaSha: z.string().optional(),
2407
+ /** @deprecated As `schemaSha`. */
2408
+ sourcesSha: z.string().optional(),
2374
2409
  patches: z.array(PatchId),
2375
2410
  /**
2376
2411
  * Of `patches`, the ones that have already SHIPPED.
@@ -2474,28 +2509,25 @@ var Api = {
2474
2509
  * answers, the higher `seq` is the newer. Optional: a server
2475
2510
  * that predates versions sends none.
2476
2511
  */
2477
- version: ProjectVersionSchema.optional()
2512
+ version: ProjectVersionSchema.optional(),
2513
+ /** See {@link StatManifest}. */
2514
+ manifest: StatManifest.optional()
2478
2515
  }), z.object({
2479
2516
  type: z.literal("use-websocket"),
2480
2517
  url: z.string(),
2481
2518
  nonce: z.string(),
2482
2519
  baseSha: z.string(),
2483
2520
  /**
2484
- * @deprecated Read by a Studio of the release before
2485
- * (`BaseAlignment`, `SchemaFreshnessWatch`); this release's
2486
- * only echoes it, and reads each module's version from
2487
- * `GET /manifest`. Goes in two steps (see "Release-delayed
2488
- * deletions" in `docs/plans/one-content-model.md`).
2489
- */
2490
- schemaSha: z.string(),
2491
- /**
2492
- * @deprecated Read by a Studio of the release before
2493
- * (`BaseAlignment`, `SchemaFreshnessWatch`); this release's
2494
- * only echoes it, and reads each module's version from
2495
- * `GET /manifest`. Goes in two steps (see "Release-delayed
2496
- * deletions" in `docs/plans/one-content-model.md`).
2521
+ * @deprecated Still sent, for a Studio of the release that
2522
+ * shipped the one content model, which echoes it; a Studio of
2523
+ * the release after reads it as optional and echoes `version`.
2524
+ * The server stops sending it in the release after that (see
2525
+ * "Release-delayed deletions" in
2526
+ * `docs/plans/one-content-model.md`).
2497
2527
  */
2498
- sourcesSha: z.string(),
2528
+ schemaSha: z.string().optional(),
2529
+ /** @deprecated As `schemaSha`. */
2530
+ sourcesSha: z.string().optional(),
2499
2531
  /**
2500
2532
  * The commit this deployment was built from.
2501
2533
  *
@@ -2623,7 +2655,9 @@ var Api = {
2623
2655
  * answers, the higher `seq` is the newer. Optional: a server
2624
2656
  * that predates versions sends none.
2625
2657
  */
2626
- version: ProjectVersionSchema.optional()
2658
+ version: ProjectVersionSchema.optional(),
2659
+ /** See {@link StatManifest}. */
2660
+ manifest: StatManifest.optional()
2627
2661
  })])
2628
2662
  })])
2629
2663
  }
@@ -3188,81 +3222,6 @@ var Api = {
3188
3222
  })])
3189
3223
  }
3190
3224
  },
3191
- /**
3192
- * @deprecated The whole tree. Nothing of this release asks it: the Studio
3193
- * reads modules by version (`GET /manifest`, `GET /modules/~`), the draft
3194
- * readers and MCP read the head in-process. Kept, with `exclude_patches`
3195
- * (`BaseAlignment`'s fetch) and the ignored `validate_sources` and
3196
- * `validate_binary_files`, for a Studio of the release before; goes in the
3197
- * release after the one that ships this (see "Release-delayed deletions"
3198
- * in `docs/plans/one-content-model.md`).
3199
- */
3200
- "/sources/~": {
3201
- PUT: {
3202
- req: {
3203
- path: z.string().optional(),
3204
- query: {
3205
- validate_sources: onlyOneBooleanQueryParam.optional(),
3206
- validate_binary_files: onlyOneBooleanQueryParam.optional(),
3207
- exclude_patches: onlyOneBooleanQueryParam.optional(),
3208
- apply_patches: onlyOneBooleanQueryParam.optional()
3209
- },
3210
- cookies: {
3211
- val_session: z.string().optional()
3212
- }
3213
- },
3214
- res: z.union([unauthorizedResponse, z.object({
3215
- status: z.literal(401),
3216
- json: GenericError
3217
- }), z.object({
3218
- status: z.literal(500),
3219
- json: z.object({
3220
- message: z.string(),
3221
- details: z.union([z.array(ModulesError), GenericError])
3222
- })
3223
- }), z.object({
3224
- status: z.literal(409),
3225
- json: z.object({
3226
- message: z.string()
3227
- })
3228
- }), z.object({
3229
- status: z.literal(400),
3230
- json: z.object({
3231
- message: z.string(),
3232
- details: z.array(ModulesError)
3233
- })
3234
- }), z.object({
3235
- status: z.literal(200),
3236
- json: z.object({
3237
- schemaSha: z.string(),
3238
- sourcesSha: z.string(),
3239
- modules: z.record(ModuleFilePath, z.object({
3240
- preview: z.any().optional(),
3241
- // TODO: improve this type
3242
- source: z.any().optional(),
3243
- //.optional(), // TODO: Json zod type
3244
- baseSource: z.any().optional(),
3245
- // pre-patch source for compare view; only set when the server applies patches (apply_patches=true) and the module has pending patches
3246
- patches: z.object({
3247
- applied: z.array(PatchId),
3248
- skipped: z.array(PatchId).optional(),
3249
- errors: z.record(PatchId, GenericError).optional()
3250
- }).optional(),
3251
- validationErrors: z.record(z.string(), z.array(ValidationError)).optional(),
3252
- /**
3253
- * The version of `source` as answered: with the chain the
3254
- * server applied, or the empty chain when it applied none
3255
- * (`apply_patches=false`). Optional: an older server sends
3256
- * none.
3257
- */
3258
- version: ModuleVersionSchema.optional()
3259
- })),
3260
- /** The project version this tree was read at. See `/stat`. */
3261
- project: ProjectVersionSchema.optional()
3262
- })
3263
- })])
3264
- }
3265
- },
3266
3225
  /**
3267
3226
  * One module by version: phase 6 of `docs/plans/one-content-model.md`
3268
3227
  * ("The Studio loads everything from one place"). `GET /modules/~<path>`,
@@ -11835,4 +11794,4 @@ var messageOf = function messageOf(error) {
11835
11794
  return error instanceof Error ? error.message : String(error);
11836
11795
  };
11837
11796
 
11838
- export { AA_LARGE, AA_TEXT, AIToolCallSummaries, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, ChainFold, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, EMPTY_CHAIN, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, ENGINE, 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, ModuleVersionSchema, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, ProjectVersionSchema, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, SESSION_MEDIA_PREFIX, SKETCHPAD_MAX_TEXT_LENGTH, STAGED_SCHEMA_PREFIX, 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, Sketchpad, SketchpadSummary, VAL_CLIENT_HEADER, 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, applyChain, applyPatchRecord, baseModuleContent, baseVersionOf, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, bundleTier, chainHeadOf, chainOf, checkCompatibility, checkSketch, childSource, chooseEncoded, classifyJsonValuesOp, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, engineWork, entryAddress, entryState, enumLocaleTag, expandJsonValuesRootOp, expandJsonValuesRootOpForKey, explainIncompatible, extendChain, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, formatSketch, formatSketchBox, formatSketchText, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, hasLocaleRouteParam, indexModule, isInsidePatchSetPath, isJsonObject, isJsonValuesRootOp, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, isValidationWarning, isWarningFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, localeOfModuleRoot, localeOfRouteKey, localeParamOfRouteKey, localeScopeAt, memoryTier, moduleKey, newestCommitSha, parseModuleKey, parseSketch, partitionValidationErrors, pathOfModuleKey, performSearch, proposalCustomProperties, rebaseContentOp, relativeLuminance, relocateForLocale, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolveEntry, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, sameEntryVersion, sameModuleVersion, schemaErrorsOf, schemaTypesOfPath, schemaVersionOf, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sketchFieldTexts, sketchRoutes, sketchTitle, sourcePathOfChild, storeWork, themeCustomProperties, tiered, toolNames, traverseSchemaSource, urlOf, valClientHeaders, valModulesEntryFile, valModulesEntryPath, validateRoutePatterns, versionHashCount, wholeEntryKey, withExtension };
11797
+ export { AA_LARGE, AA_TEXT, AIToolCallSummaries, AnalyticsBeacon, Api, BRAND_CONTRAST_PAIRS, BinaryFileRef, ChainFold, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, EMPTY_CHAIN, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, ENGINE, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, ManifestJson, ModuleComparison, ModuleVersionSchema, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchId, PatchJSON, PatchSets, PlanRefusalError, ProjectVersionSchema, RAMP_STEPS, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SCHEMA_SOURCE_FIXES, SELF_CHECK_VERSION, SESSION_MEDIA_PREFIX, SKETCHPAD_MAX_TEXT_LENGTH, STAGED_SCHEMA_PREFIX, 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, Sketchpad, SketchpadSummary, StatManifest, VAL_CLIENT_HEADER, 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, applyChain, applyPatchRecord, baseModuleContent, baseVersionOf, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, bundleTier, chainHeadOf, chainOf, checkCompatibility, checkSketch, childSource, chooseEncoded, classifyJsonValuesOp, concatModulePath, contrastRatio, createRegExpFromPattern, createSearchIndex, createValClient, declaredLocales, describeContainerAtPath, emptyOf, engineWork, entryAddress, entryState, enumLocaleTag, expandJsonValuesRootOp, expandJsonValuesRootOpForKey, explainIncompatible, extendChain, fallbackMimeType, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, forEachRichTextImage, formatSketch, formatSketchBox, formatSketchText, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getKeyOfRecordAt, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, getValDemo, hasLocaleRouteParam, indexModule, isInsidePatchSetPath, isJsonObject, isJsonValuesRootOp, isLocaleSchema, isMimeTypeAccepted, isRemoteSchema, isRepairedOnSave, isSchemaSourceFixError, isSkippedSource, isStudioFix, isValidationWarning, isWarningFix, joinSharedChanges, keyOfRecordPath, levenshtein, localeAt, localeMeantBy, localeOfModuleRoot, localeOfRouteKey, localeParamOfRouteKey, localeScopeAt, memoryTier, moduleKey, newestCommitSha, parseModuleKey, parseSketch, partitionValidationErrors, pathOfModuleKey, performSearch, proposalCustomProperties, rebaseContentOp, relativeLuminance, relocateForLocale, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolveEntry, resolvePairGround, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextImageSchema, richTextToRemirror, safeParsePatch, sameEntryVersion, sameModuleVersion, schemaErrorsOf, schemaTypesOfPath, schemaVersionOf, selectionClosure, selfCheck, shouldEncodeWithWasm, sideFiles, sideSource, sketchFieldTexts, sketchRoutes, sketchTitle, sourcePathOfChild, storeWork, themeCustomProperties, tiered, toolNames, traverseSchemaSource, urlOf, valClientHeaders, valModulesEntryFile, valModulesEntryPath, validateRoutePatterns, versionHashCount, wholeEntryKey, withExtension };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.152.0",
3
+ "version": "0.153.0",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "yaml": "^2.9.0",
55
55
  "zod": "^4.4.3",
56
56
  "zod-validation-error": "^5.0.0",
57
- "@valbuild/core": "0.151.0"
57
+ "@valbuild/core": "0.153.0"
58
58
  },
59
59
  "files": [
60
60
  "CHANGELOG.md",
@@ -72,7 +72,7 @@
72
72
  ],
73
73
  "devDependencies": {
74
74
  "typescript": "^6.0.3",
75
- "@valbuild/tanstack-build": "0.151.0"
75
+ "@valbuild/tanstack-build": "0.153.0"
76
76
  },
77
77
  "sideEffects": false,
78
78
  "scripts": {