@valbuild/shared 0.151.0 → 0.152.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.
@@ -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, 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, E as formatRoutePattern, F as getNextAppRouterSourceFolder, J as getPageRouterSitemapTree, H as getPageRouterSourceFolder, K as getPatternFromModuleFilePath, G as getTanStackRouterSourceFolder, y as isQuickPreviewFiles, I as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, m as modifierLabel, p as pageLocationOf, C as parseRoutePattern, 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-2b22cf1b.esm.js';
11
11
  import FlexSearch from 'flexsearch';
12
12
  import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
13
13
 
@@ -3079,6 +3079,26 @@ var Api = {
3079
3079
  parentRef: ParentRef,
3080
3080
  headVersion: z.number().optional()
3081
3081
  })
3082
+ }),
3083
+ /*
3084
+ * The content service failed to take a patch: it answered with a
3085
+ * server error, or could not be reached. Not the 400 above either,
3086
+ * because the patches are fine -- the Studio keeps them and offers
3087
+ * to send them again. `message` is for the editor and `details` (the
3088
+ * status line and the service's own words) for whoever they ask.
3089
+ *
3090
+ * As with the 403, the patches BEFORE the failed one were saved.
3091
+ */
3092
+ z.object({
3093
+ status: z.literal(502),
3094
+ json: z.object({
3095
+ type: z.literal("service-error"),
3096
+ message: z.string(),
3097
+ details: z.string().optional(),
3098
+ newPatchIds: z.array(PatchId),
3099
+ parentRef: ParentRef,
3100
+ headVersion: z.number().optional()
3101
+ })
3082
3102
  }), z.object({
3083
3103
  status: z.literal(200),
3084
3104
  json: z.object({
@@ -3114,7 +3134,9 @@ var Api = {
3114
3134
  status: z.literal(500),
3115
3135
  json: z.object({
3116
3136
  message: z.string(),
3117
- error: GenericError
3137
+ error: GenericError,
3138
+ /** What the content service said: its status line and words. */
3139
+ details: z.string().optional()
3118
3140
  })
3119
3141
  }), z.object({
3120
3142
  status: z.literal(200),
@@ -8232,24 +8254,30 @@ function emptyRecord(schema, context) {
8232
8254
  }));
8233
8255
  }
8234
8256
 
8235
- var toolNames = ["get_all_schema", "get_source", "search_content", "validate_content", "create_patch", "add_session_image_to_gallery", "remove_image_gallery_entry", "navigate_to", "get_current_context", "get_patches", "get_source_path_from_route", "set_session_name", "show_compare_view", "ask_user_question", "duplicate_source", "empty_at_path", "count_entries", "get_record_keys", "list_sketchpads", "create_sketchpad", "read_sketchpad", "write_sketchpad"];
8257
+ var toolNames = ["get_all_schema", "get_source", "search_content", "validate_content", "create_patch", "add_session_image_to_gallery", "remove_image_gallery_entry", "convert_session_image", "navigate_to", "get_current_context", "get_patches", "get_source_path_from_route", "set_session_name", "show_compare_view", "ask_user_question", "duplicate_source", "empty_at_path", "count_entries", "get_record_keys", "list_sketchpads", "create_sketchpad", "read_sketchpad", "write_sketchpad", "highlight_sketchpad_blocks", "clear_sketchpad_highlights"];
8236
8258
 
8237
8259
  /**
8238
8260
  * A page sketch: a page written as indented text, with four primitives.
8239
8261
  *
8240
8262
  * ```
8263
+ * --- /about a route: what follows is the page at /about
8241
8264
  * # Our people text (a heading: #, ## or ###)
8242
8265
  * We are 40 people in Oslo. text (a paragraph)
8266
+ * ## Hi {field: /x.val.ts?p="t"} text linked to a content field: typing
8267
+ * in it writes the field
8243
8268
  * [image: Team photo] placeholder: [kind] or [kind: label]
8244
8269
  * [hero: Roof](image: /a.jpg) a placeholder with an image (or video) in it
8245
8270
  * icon hero M3 5h18v14H3z how every [hero] box is drawn: SVG path data
8246
8271
  * row its children side by side
8247
- * col 2 its children stacked; 2 shares of the row
8248
- * ## Design
8272
+ * col its children stacked; columns share a row
8273
+ * ## Design equally
8249
8274
  * col
8250
8275
  * [button: Join us]
8251
8276
  * ```
8252
8277
  *
8278
+ * A sketchpad is not one page's: a route divider starts the part about a
8279
+ * page, so one sketch can cover a page and the two it links to.
8280
+ *
8253
8281
  * It is a scratch pad, not a layout language: it says WHAT is on a page and
8254
8282
  * roughly WHERE, so an assistant and a person can agree on a page's content
8255
8283
  * before anyone worries about how it looks. The person never sees this text,
@@ -8268,7 +8296,21 @@ var toolNames = ["get_all_schema", "get_source", "search_content", "validate_con
8268
8296
  * that builds the page reads it exactly as the person left it.
8269
8297
  */
8270
8298
 
8299
+ /** The start of the part about one page. Only at the top level. */
8300
+
8301
+ /** Columns share their row equally: a sketch says what, not how wide. */
8302
+
8303
+ /**
8304
+ * `src` names a file the project has, never a guess: its `path` exactly as
8305
+ * the content has it (`/public/val/hero.webp`, or its remote URL), or an
8306
+ * image uploaded to the assistant's session, `session:<key>`. Which files
8307
+ * those are is the Studio's to check; the text only holds the name.
8308
+ */
8309
+
8310
+ /** The prefix of a `src` that is an image in the assistant's session. */
8311
+ var SESSION_MEDIA_PREFIX = "session:";
8271
8312
  var CONTAINER = /^(row|col)(?:\s+(\d+))?$/;
8313
+ var ROUTE = /^---(?:\s+(.*))?$/;
8272
8314
  var PLACEHOLDER = /^\[([^\]:]*)(?::([^\]]*))?\](?:\((image|video):\s*([^\s)]+)\s*\))?$/;
8273
8315
  var HAS_MEDIA = /^\[[^\]]*\]\(/;
8274
8316
  var ICON = /^icon\s+(\S+)\s+([Mm][\d\s.-].*)$/;
@@ -8311,6 +8353,32 @@ function parseSketch(source) {
8311
8353
  while (stack.length > 1 && indent <= stack[stack.length - 1].indent) {
8312
8354
  stack.pop();
8313
8355
  }
8356
+ var route = ROUTE.exec(content);
8357
+ if (route) {
8358
+ var _route$;
8359
+ var _path = ((_route$ = route[1]) !== null && _route$ !== void 0 ? _route$ : "").trim();
8360
+ if (!_path.startsWith("/") || /\s/.test(_path)) {
8361
+ errors.push({
8362
+ line: line,
8363
+ message: 'A route divider names one page by its route, like "--- /about".'
8364
+ });
8365
+ }
8366
+ if (indent > 0) {
8367
+ errors.push({
8368
+ line: line,
8369
+ message: "A route divider starts a page, so it goes at the top level, not indented."
8370
+ });
8371
+ }
8372
+ // It closes everything open: what follows is another page.
8373
+ stack.length = 1;
8374
+ stack[0].lastIndent = 0;
8375
+ blocks.push({
8376
+ type: "route",
8377
+ line: line,
8378
+ route: _path
8379
+ });
8380
+ return;
8381
+ }
8314
8382
  var parent = stack[stack.length - 1];
8315
8383
  var node = parseContent(content, line, errors);
8316
8384
 
@@ -8352,7 +8420,27 @@ function parseSketch(source) {
8352
8420
  errors: errors
8353
8421
  };
8354
8422
  }
8355
- function parseContent(content, line, errors) {
8423
+
8424
+ /** The link to a content field at the end of a text line. */
8425
+ var FIELD = / \{field: (\/[^{}]*)\}$/;
8426
+ function parseContent(whole, line, errors) {
8427
+ var link = FIELD.exec(whole);
8428
+ if (link) {
8429
+ var node = parseLine(whole.slice(0, link.index), line, errors);
8430
+ if (node.type !== "text") {
8431
+ errors.push({
8432
+ line: line,
8433
+ message: "Only a heading or a paragraph is linked to a field: put {field: ...} at the end of one."
8434
+ });
8435
+ return node;
8436
+ }
8437
+ return _objectSpread2(_objectSpread2({}, node), {}, {
8438
+ field: link[1].trim()
8439
+ });
8440
+ }
8441
+ return parseLine(whole, line, errors);
8442
+ }
8443
+ function parseLine(content, line, errors) {
8356
8444
  // A leading backslash keeps a line that looks like a keyword as text.
8357
8445
  if (content.startsWith("\\")) {
8358
8446
  return {
@@ -8377,17 +8465,15 @@ function parseContent(content, line, errors) {
8377
8465
  children: []
8378
8466
  };
8379
8467
  }
8380
- var weight = container[2] === undefined ? 1 : Number(container[2]);
8381
- if (weight === 0) {
8468
+ if (container[2] !== undefined) {
8382
8469
  errors.push({
8383
8470
  line: line,
8384
- message: "A col needs a weight of 1 or more."
8471
+ message: 'Columns share a row equally, so a col takes no number: write "col".'
8385
8472
  });
8386
8473
  }
8387
8474
  return {
8388
8475
  type: "col",
8389
8476
  line: line,
8390
- weight: Math.max(weight, 1),
8391
8477
  children: []
8392
8478
  };
8393
8479
  }
@@ -8461,13 +8547,19 @@ function parseContent(content, line, errors) {
8461
8547
  * The line a text block is written as. Line breaks become spaces, and a
8462
8548
  * paragraph that would read as something else is kept as text with `\`.
8463
8549
  */
8464
- function formatSketchText(level, text) {
8550
+ function formatSketchText(level, text, field) {
8465
8551
  var flat = text.replace(/\s+/g, " ").trim();
8552
+ var path = field === null || field === void 0 ? void 0 : field.replace(/\s+/g, " ").trim();
8553
+ // A source path, and one the line can be read back with: no braces.
8554
+ var link = path && /^\/[^{}]*$/.test(path) ? " {field: ".concat(path, "}") : "";
8466
8555
  if (level > 0) {
8467
- return "#".repeat(level) + " " + flat;
8556
+ return "#".repeat(level) + " " + flat + link;
8468
8557
  }
8469
- var ambiguous = flat.startsWith("\\") || flat.startsWith("[") || CONTAINER.test(flat) || HEADING.test(flat) || ICON.test(flat);
8470
- return ambiguous ? "\\" + flat : flat;
8558
+ // Read as the whole line will be, link and all: `icon x M` is text, and
8559
+ // `icon x M {field: ...}` would be an icon.
8560
+ var whole = flat + link;
8561
+ var ambiguous = flat.startsWith("\\") || flat.startsWith("[") || CONTAINER.test(whole) || ROUTE.test(whole) || HEADING.test(whole) || ICON.test(whole);
8562
+ return (ambiguous ? "\\" + flat : flat) + link;
8471
8563
  }
8472
8564
 
8473
8565
  /** The line a placeholder is written as. */
@@ -8492,17 +8584,26 @@ function formatSketchBox(placeholder) {
8492
8584
  */
8493
8585
  function formatSketch(blocks, icons) {
8494
8586
  var lines = [];
8587
+ // One block per field: the first keeps the link.
8588
+ var linked = new Set();
8495
8589
  var _walk = function walk(node, depth, inRow) {
8496
8590
  var indent = " ".repeat(depth);
8497
8591
  switch (node.type) {
8498
8592
  case "text":
8499
8593
  if (node.text) {
8500
- lines.push(indent + formatSketchText(node.level, node.text));
8594
+ var field = node.field && !linked.has(node.field) ? node.field : undefined;
8595
+ if (field) {
8596
+ linked.add(field);
8597
+ }
8598
+ lines.push(indent + formatSketchText(node.level, node.text, field));
8501
8599
  }
8502
8600
  return;
8503
8601
  case "placeholder":
8504
8602
  lines.push(indent + formatSketchBox(node));
8505
8603
  return;
8604
+ case "route":
8605
+ lines.push("--- ".concat(node.route));
8606
+ return;
8506
8607
  case "row":
8507
8608
  lines.push(indent + "row");
8508
8609
  if (node.children.length === 0) {
@@ -8519,7 +8620,7 @@ function formatSketch(blocks, icons) {
8519
8620
  });
8520
8621
  return;
8521
8622
  }
8522
- lines.push(indent + (node.weight === 1 ? "col" : "col ".concat(node.weight)));
8623
+ lines.push(indent + "col");
8523
8624
  node.children.forEach(function (child) {
8524
8625
  return _walk(child, depth + 1, false);
8525
8626
  });
@@ -8539,6 +8640,33 @@ function formatSketch(blocks, icons) {
8539
8640
  return all.length > 0 ? all.join("\n") + "\n" : "";
8540
8641
  }
8541
8642
 
8643
+ /**
8644
+ * The text of every block linked to a field, by field: what the Studio
8645
+ * writes to the content when a linked block changes. The first block wins,
8646
+ * as `formatSketch` keeps only its link.
8647
+ */
8648
+ function sketchFieldTexts(blocks) {
8649
+ var texts = new Map();
8650
+ var _walk2 = function walk(node) {
8651
+ if (node.type === "text") {
8652
+ if (node.field && node.text && !texts.has(node.field)) {
8653
+ texts.set(node.field, node.text.replace(/\s+/g, " ").trim());
8654
+ }
8655
+ } else if (node.type === "row" || node.type === "col") {
8656
+ node.children.forEach(_walk2);
8657
+ }
8658
+ };
8659
+ blocks.forEach(_walk2);
8660
+ return texts;
8661
+ }
8662
+
8663
+ /** The pages a sketch is about, in the order it gives them. */
8664
+ function sketchRoutes(blocks) {
8665
+ return blocks.flatMap(function (block) {
8666
+ return block.type === "route" && block.route !== "" ? [block.route] : [];
8667
+ });
8668
+ }
8669
+
8542
8670
  /**
8543
8671
  * What a list names a sketch by: its first top-level heading, the biggest
8544
8672
  * one first. Null for a sketch with no heading, which a list then names by
@@ -11707,4 +11835,4 @@ var messageOf = function messageOf(error) {
11707
11835
  return error instanceof Error ? error.message : String(error);
11708
11836
  };
11709
11837
 
11710
- 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, 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, sketchTitle, sourcePathOfChild, storeWork, themeCustomProperties, tiered, toolNames, traverseSchemaSource, urlOf, valClientHeaders, valModulesEntryFile, valModulesEntryPath, validateRoutePatterns, versionHashCount, wholeEntryKey, withExtension };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.151.0",
3
+ "version": "0.152.1",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {