@yext/visual-editor 2.0.0-beta.3 → 2.0.0-beta.5

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.
@@ -12228,7 +12228,7 @@ import { fileURLToPath as fileURLToPath3 } from "url";
12228
12228
  var package_default = {
12229
12229
  name: "@yext/visual-editor",
12230
12230
  description: "Component library for Yext Pages Visual Editor",
12231
- version: "2.0.0-beta.3",
12231
+ version: "2.0.0-beta.5",
12232
12232
  author: "sprumo@yext.com",
12233
12233
  repository: {
12234
12234
  type: "git",
@@ -12301,7 +12301,7 @@ var package_default = {
12301
12301
  },
12302
12302
  dependencies: {
12303
12303
  "@mapbox/maki": "^8.2.0",
12304
- "@puckeditor/core": "0.22.2",
12304
+ "@puckeditor/core": "0.22.4",
12305
12305
  "@radix-ui/react-accordion": "^1.2.3",
12306
12306
  "@radix-ui/react-alert-dialog": "^1.1.1",
12307
12307
  "@radix-ui/react-dialog": "^1.1.13",
@@ -12411,7 +12411,7 @@ import { Project } from "ts-morph";
12411
12411
  // src/internal/sectionLibraryValidation/stages/api/libraryMetadata.ts
12412
12412
  import path from "path";
12413
12413
  import fs from "fs-extra";
12414
- var safeIdPattern = /^[A-Za-z0-9_-]{1,64}$/;
12414
+ var safeIdPattern = /^[a-z][a-z0-9-]{0,61}[a-z0-9](?![\s\S])/;
12415
12415
  var descriptionMaxLength = 1024;
12416
12416
  var validateLibraryMetadata = (rootDir) => {
12417
12417
  const filePath = path.join(rootDir, "src", "library", "library.json");
@@ -12467,11 +12467,14 @@ var validateLibraryMetadata = (rootDir) => {
12467
12467
  libraryMetadataValues.set("description", description);
12468
12468
  }
12469
12469
  const id = libraryMetadataValues.get("id");
12470
- if (id && !safeIdPattern.test(id)) {
12471
- addIssue(
12472
- "field/id/safe",
12473
- "id must be at most 64 characters and may contain only letters, numbers, underscores, and hyphens."
12474
- );
12470
+ if (id) {
12471
+ const unprefixedId = id.startsWith("yext_") ? id.slice(5) : id;
12472
+ if (id.length > 63 || !safeIdPattern.test(unprefixedId)) {
12473
+ addIssue(
12474
+ "field/id/safe",
12475
+ "id must be 2\u201363 characters, contain only lowercase letters, numbers, and hyphens, start with a lowercase letter, and end with a letter or number."
12476
+ );
12477
+ }
12475
12478
  }
12476
12479
  if (issues.length > 0) {
12477
12480
  return { issues };
@@ -13176,6 +13179,7 @@ var purposes = ["LOCATION", "CITATION"];
13176
13179
 
13177
13180
  // src/cli/commands/internal/convertTemplatesToSectionLibrary.ts
13178
13181
  var SAFE_ID = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
13182
+ var ID_REQUIREMENTS = "must start with a letter or number and contain only letters, numbers, underscores, and hyphens";
13179
13183
  var VERTICALS = new Set(verticals);
13180
13184
  var PURPOSES = new Set(purposes);
13181
13185
  var REQUIRED_BASE_SECTIONS = /* @__PURE__ */ new Set(["Directory", "Locator"]);
@@ -13282,24 +13286,28 @@ var readLegacyTemplates = (rootDirectory) => {
13282
13286
  if (templateDirectories.length === 0) {
13283
13287
  throw new Error(`No legacy templates found in ${registryDirectory}`);
13284
13288
  }
13285
- const normalizedTemplateIds = /* @__PURE__ */ new Set();
13289
+ const normalizedTemplateIds = /* @__PURE__ */ new Map();
13286
13290
  return templateDirectories.map((templateDirectory) => {
13287
13291
  if (!SAFE_ID.test(templateDirectory)) {
13288
- throw new Error(`Template ID is not valid: ${templateDirectory}`);
13292
+ throw new Error(
13293
+ `Template ID is not valid: ${path3.join(registryDirectory, templateDirectory)}. Template IDs ${ID_REQUIREMENTS}.`
13294
+ );
13289
13295
  }
13290
13296
  const templateId = removeYextPrefix(templateDirectory);
13291
13297
  if (!SAFE_ID.test(templateId)) {
13292
- throw new Error(`Template ID is not valid: ${templateDirectory}`);
13298
+ throw new Error(
13299
+ `Template ID is not valid: ${path3.join(registryDirectory, templateDirectory)}. After removing the yext prefix, ${JSON.stringify(templateId)} ${ID_REQUIREMENTS}.`
13300
+ );
13293
13301
  }
13294
13302
  if (normalizedTemplateIds.has(templateId)) {
13295
13303
  throw new Error(
13296
- `Template IDs collide after removing the yext- prefix: ${templateId}`
13304
+ `Template IDs collide after removing the yext prefix: ${path3.join(registryDirectory, normalizedTemplateIds.get(templateId))} and ${path3.join(registryDirectory, templateDirectory)} both normalize to ${JSON.stringify(templateId)}.`
13297
13305
  );
13298
13306
  }
13299
- normalizedTemplateIds.add(templateId);
13307
+ normalizedTemplateIds.set(templateId, templateDirectory);
13300
13308
  if (RESERVED_LAYOUT_IDS.has(templateId)) {
13301
13309
  throw new Error(
13302
- `Template ID is reserved for a generated template alias: ${templateId}`
13310
+ `Template ID is reserved for a generated template alias: ${path3.join(registryDirectory, templateDirectory)} normalizes to ${JSON.stringify(templateId)}. Reserved IDs: ${Array.from(RESERVED_LAYOUT_IDS).join(", ")}. Rename the template directory.`
13303
13311
  );
13304
13312
  }
13305
13313
  return readLegacyTemplate(
@@ -13589,8 +13597,37 @@ var readBaseLibrary = (libraryDirectory) => {
13589
13597
  metadataPath,
13590
13598
  `layout metadata for ${entry.name}`
13591
13599
  );
13592
- if (!isRecord(metadata) || !["ENTITY", "DIRECTORY", "LOCATOR"].includes(metadata.pageSetType) || typeof metadata.id !== "string" || metadata.id !== entry.name || !SAFE_ID.test(metadata.id)) {
13593
- throw new Error(`Base layout metadata is not valid: ${metadataPath}`);
13600
+ const issues = [];
13601
+ if (!isRecord(metadata)) {
13602
+ issues.push("metadata must be a JSON object.");
13603
+ } else {
13604
+ if (!["ENTITY", "DIRECTORY", "LOCATOR"].includes(metadata.pageSetType)) {
13605
+ issues.push(
13606
+ `pageSetType must be ENTITY, DIRECTORY, or LOCATOR; received ${JSON.stringify(metadata.pageSetType)}.`
13607
+ );
13608
+ }
13609
+ if (typeof metadata.id !== "string") {
13610
+ issues.push(
13611
+ `id must be a string; received ${JSON.stringify(metadata.id)}.`
13612
+ );
13613
+ } else {
13614
+ if (metadata.id !== entry.name) {
13615
+ issues.push(
13616
+ `id must match directory name ${JSON.stringify(entry.name)}; received ${JSON.stringify(metadata.id)}.`
13617
+ );
13618
+ }
13619
+ if (!SAFE_ID.test(metadata.id)) {
13620
+ issues.push(
13621
+ `id ${ID_REQUIREMENTS}; received ${JSON.stringify(metadata.id)}.`
13622
+ );
13623
+ }
13624
+ }
13625
+ }
13626
+ if (issues.length > 0) {
13627
+ throw new Error(
13628
+ `Base layout metadata is not valid: ${metadataPath}
13629
+ ${issues.map((issue) => ` - ${issue}`).join("\n")}`
13630
+ );
13594
13631
  }
13595
13632
  const defaultLayoutPath = path3.join(directory, "defaultLayout.json");
13596
13633
  const defaultLayout = readJson(
@@ -13659,11 +13696,12 @@ var buildConversion = (templates, baseLibrary) => {
13659
13696
  const componentIds = new Set(components.keys());
13660
13697
  const directoryLayoutId = `${firstTemplate.templateId}-directory`;
13661
13698
  const locatorLayoutId = `${firstTemplate.templateId}-locator`;
13662
- if (templates.some(
13699
+ const conflictingTemplate = templates.find(
13663
13700
  (template) => template.templateId === directoryLayoutId || template.templateId === locatorLayoutId
13664
- )) {
13701
+ );
13702
+ if (conflictingTemplate) {
13665
13703
  throw new Error(
13666
- "A legacy template ID conflicts with the generated Directory or Locator layout ID"
13704
+ `Legacy template ${conflictingTemplate.directory} conflicts with generated layout ID ${JSON.stringify(conflictingTemplate.templateId)} from ${firstTemplate.directory}. Rename the conflicting template directory.`
13667
13705
  );
13668
13706
  }
13669
13707
  for (const template of templates) {
@@ -13742,19 +13780,43 @@ var readMetadataList = (value, allowedValues, sourcePath, property) => {
13742
13780
  if (value === void 0) {
13743
13781
  return [];
13744
13782
  }
13745
- if (!Array.isArray(value) || value.some(
13783
+ if (!Array.isArray(value)) {
13784
+ throw new Error(
13785
+ `${sourcePath} ${property} must be an array of supported strings; received ${JSON.stringify(value)}. Allowed values: ${Array.from(allowedValues).join(", ")}.`
13786
+ );
13787
+ }
13788
+ const invalidValues = value.filter(
13746
13789
  (item) => typeof item !== "string" || !allowedValues.has(item)
13747
- )) {
13790
+ );
13791
+ if (invalidValues.length > 0) {
13748
13792
  throw new Error(
13749
- `${sourcePath} ${property} must contain supported string values`
13793
+ `${sourcePath} ${property} contains unsupported values: ${invalidValues.map((item) => JSON.stringify(item)).join(", ")}. Allowed values: ${Array.from(allowedValues).join(", ")}.`
13750
13794
  );
13751
13795
  }
13752
13796
  return value;
13753
13797
  };
13754
13798
  function validateDefaultLayout(defaultLayout, sourcePath, description) {
13755
- if (!isRecord(defaultLayout) || !isRecord(defaultLayout.root) || !isRecord(defaultLayout.zones) || !Array.isArray(defaultLayout.content)) {
13799
+ const issues = [];
13800
+ if (!isRecord(defaultLayout)) {
13801
+ issues.push("default layout must be a JSON object.");
13802
+ } else {
13803
+ for (const field of ["root", "zones"]) {
13804
+ if (!isRecord(defaultLayout[field])) {
13805
+ issues.push(
13806
+ `${field} must be a JSON object; received ${JSON.stringify(defaultLayout[field])}.`
13807
+ );
13808
+ }
13809
+ }
13810
+ if (!Array.isArray(defaultLayout.content)) {
13811
+ issues.push(
13812
+ `content must be an array; received ${JSON.stringify(defaultLayout.content)}.`
13813
+ );
13814
+ }
13815
+ }
13816
+ if (issues.length > 0) {
13756
13817
  throw new Error(
13757
- `${description} default layout is not valid: ${sourcePath}`
13818
+ `${description} default layout is not valid: ${sourcePath}
13819
+ ${issues.map((issue) => ` - ${issue}`).join("\n")}`
13758
13820
  );
13759
13821
  }
13760
13822
  }
@@ -14409,12 +14471,15 @@ import { execFileSync as execFileSync2 } from "child_process";
14409
14471
 
14410
14472
  // src/cli/commands/internal/deploy/logging.ts
14411
14473
  import ora from "ora";
14412
- function logApiCall(text, method, url, verbose = false) {
14474
+ function logApiCall(text, method, url, verbose = false, expectedStatusMessages = {}) {
14413
14475
  const spinner = text.length > 0 ? ora(text).start() : void 0;
14414
14476
  const finishVerboseLog = verbose ? verboseLogApiCall(method, url) : void 0;
14415
14477
  return (res) => {
14416
14478
  if (spinner) {
14417
- if (res?.ok) {
14479
+ const expectedMessage = res && expectedStatusMessages[res.status];
14480
+ if (expectedMessage) {
14481
+ spinner.info(expectedMessage);
14482
+ } else if (res?.ok) {
14418
14483
  spinner.succeed(`${text} ${color("done", true)}`);
14419
14484
  } else {
14420
14485
  spinner.fail(`${text} ${color("error", false)}`);
@@ -14459,7 +14524,7 @@ function color(text, success) {
14459
14524
 
14460
14525
  // src/cli/commands/internal/deploy/api.ts
14461
14526
  var API_PATH_PREFIX = "/v2/";
14462
- async function yextApiRequest(logAction, method, path16, config, verbose = false, data) {
14527
+ async function yextApiRequest(logAction, method, path16, config, verbose = false, data, expectedStatusMessages = {}) {
14463
14528
  const url = new URL(`${API_PATH_PREFIX}${path16}`, config.apiHost);
14464
14529
  url.searchParams.set("v", "20260819");
14465
14530
  url.searchParams.set("api_key", config.apiKey);
@@ -14470,7 +14535,13 @@ async function yextApiRequest(logAction, method, path16, config, verbose = false
14470
14535
  });
14471
14536
  requestInit.body = JSON.stringify(data);
14472
14537
  }
14473
- const finishLog = logApiCall(logAction, method, url, verbose);
14538
+ const finishLog = logApiCall(
14539
+ logAction,
14540
+ method,
14541
+ url,
14542
+ verbose,
14543
+ expectedStatusMessages
14544
+ );
14474
14545
  try {
14475
14546
  const response = await fetch(url, new Request(url, requestInit));
14476
14547
  const responseJson = JSON.parse(
@@ -14550,6 +14621,13 @@ async function createSectionLibraryRevision(config, libraryId, data, verbose) {
14550
14621
  data
14551
14622
  );
14552
14623
  if (!result.ok) {
14624
+ if (result.errors[0]?.message.includes(
14625
+ "cannot create revision for built-in section library"
14626
+ )) {
14627
+ throw new Error(
14628
+ 'Cannot create a revision for a built-in section library. Check the "id" field in src/library/library.json. To deploy your own library, remove the reserved "yext_" prefix and retry.'
14629
+ );
14630
+ }
14553
14631
  throw sectionLibraryApiError(
14554
14632
  result.errors,
14555
14633
  "Failed to upload current commit as a Section Library Revision"
@@ -14606,7 +14684,9 @@ async function getSectionLibrary(config, libraryId, verbose) {
14606
14684
  "GET",
14607
14685
  `accounts/me/sectionLibraries/${encodeURIComponent(libraryId)}`,
14608
14686
  config,
14609
- verbose
14687
+ verbose,
14688
+ void 0,
14689
+ { 404: "Section library not found" }
14610
14690
  );
14611
14691
  if (!result.ok && result.status !== 404) {
14612
14692
  throw sectionLibraryApiError(
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as StreamFields, a as StreamDocument, T as TranslationDictionary, b as ThemeConfig, P as ProductPrice, C as CreateItemSourceOptions, I as ItemSourceInstance, c as TailwindConfig, E as EntityFieldTypes, d as ComponentRegistry, e as TranslatableRichText, M as MsgString, R as RichText, f as ThemeOptions, g as ThemeColor, Y as YextComponentConfig, h as YextEntityField, i as CTAVariant, j as TranslatableString, H as HeadingProps, k as HeadingLevel, l as ImageFillType, m as TranslatableAssetImage, n as ImgSizesByBreakpoint, B as BasicSelectorField, o as SlottedItemSourceInstance, L as LocatorEntityType, p as BodyProps, q as MultiSelectorValue, r as StyledTextValue, s as ComprehensiveCTAValue, t as CTAProps, u as BaseTextStyles, F as FontRegistry, v as CTASelectorField, w as CodeField, x as ComprehensiveCTAField, D as DateTimeSelectorField, y as EntityFieldSelectorField, z as MultiSelectorOptionValue, A as MultiSelectorField, G as FontSizeSelectorField, J as ImageField, O as OptionalNumberField, K as StyledButtonField, N as StyledButtonValue, Q as StyledImageField, U as StyledImageValue, V as StyledLinkField, W as StyledLinkValue, X as StyledPageSectionField, Z as StyledPageSectionValue, _ as StyledTextField, $ as TranslatableStringField, a0 as VideoField, a1 as AssetVideo, a2 as SectionLibraryTranslationLoaders } from './locatorEntityTypes-s4dmT9l5.js';
2
- export { a3 as Accordion, a4 as AccordionContent, a5 as AccordionItem, a6 as AccordionTrigger, a7 as AssetImageType, a8 as Background, a9 as BackgroundProps, aa as BackgroundProvider, ab as BasicSelectorFieldOverride, ac as Body, ad as BreadcrumbLink, ae as Button, af as ButtonProps, ag as CTA, ah as CTASelectorFieldOverride, ai as CodeFieldOverride, aj as ComprehensiveCTAFieldOverride, ak as CreateSlottedItemSourceOptions, al as DateTimeSelectorFieldOverride, am as DropdownMenu, an as DropdownMenuContent, ao as DropdownMenuItem, ap as DropdownMenuTrigger, aq as EmbeddedFieldStringInputFromEntity, ar as EmbeddedFieldStringInputFromOptions, as as EnhancedTranslatableCTA, at as EntityField, au as EntityFieldSelectorFieldOverride, av as EventSectionType, aw as EventStruct, ax as FAQSectionType, ay as FAQStruct, az as FOOD_DELIVERY_SERVICES, aA as Font, aB as FontSizeSelectorFieldOverride, aC as FoodDeliveryServiceType, aD as Heading, aE as HeroSectionType, aF as HoursStatusAtom, aG as HoursStatusAtomProps, aH as HoursTableAtom, aI as HoursTableAtomProps, aJ as Image, aK as ImageContentData, aL as ImageFieldOverride, aM as ImageProps, aN as InsightSectionType, aO as InsightStruct, aP as LocalizedAssetImage, aQ as MaybeLink, aR as MaybeLinkProps, aS as MultiSelectorFieldOverride, aT as MultiSelectorOption, aU as MultiSelectorOptions, aV as OptionalNumberFieldOverride, aW as PageSection, aX as PageSectionProps, aY as PersonStruct, aZ as PhoneAtom, a_ as PhoneAtomProps, a$ as PresetImageType, b0 as ProductSectionType, b1 as ProductStruct, b2 as PromoSectionType, b3 as RenderYextEntityFieldSelectorProps, b4 as StyledButtonFieldOverride, b5 as StyledImageFieldOverride, b6 as StyledLinkFieldOverride, b7 as StyledPageSectionFieldOverride, b8 as StyledTextFieldOverride, b9 as TeamSectionType, ba as TemplatePropsContext, bb as TestimonialSectionType, bc as TestimonialStruct, bd as TimestampAtom, be as TimestampAtomProps, bf as TimestampOption, bg as TranslatableCTA, bh as TranslatableStringFieldOverride, bi as TranslationLoader, bj as TranslationLoaders, bk as VideoAtom, bl as VideoAtomProps, bm as VideoFieldOverride, bn as VisibilityWrapper, bo as VisualEditorComponentsContentPath, bp as VisualEditorThemeClassSafelist, bq as YextArrayField, br as YextAutoField, bs as YextCTAField, bt as YextCustomFieldRenderProps, bu as YextEntityFieldSelector, bv as YextFieldDefinition, bw as YextFieldMap, bx as YextFields, by as YextObjectField, bz as YextPuckField, bA as YextSchemaField, bB as YextSchemaFieldDefinition, bC as backgroundColors, bD as bindSlots, bE as bodyVariants, bF as buttonVariants, bG as constructFontSelectOptions, bH as createSearchAnalyticsConfig, bI as createSearchHeadlessConfig, bJ as createSlottedItemSource, bK as deepMerge, bL as defaultFonts, bM as defaultThemeTailwindExtensions, bN as fetchLocalesToPathsForEntity, bO as getDefaultForegroundColor, bP as getFontWeightOptions, bQ as getFontWeightOverrideOptions, bR as getPageMetadata, bS as getPreferredDistanceUnit, bT as getSurfaceColorStyle, bU as getThemeColorCssValue, bV as getThemeColorHexValue, bW as headingVariants, bX as imgSizesHelper, bY as isDarkColor, bZ as isLocalizedAssetImage, b_ as mergeMeta, b$ as msg, c0 as normalizeLink, c1 as normalizeSlug, c2 as normalizeThemeColorToken, c3 as pt, c4 as resolveBreadcrumbs, c5 as resolveComponentData, c6 as resolveDataFromParent, c7 as resolveLocalizedAssetImage, c8 as resolveUrlTemplate, c9 as resolveUrlTemplateOfChild, ca as resolveYextEntityField, cb as themeManagerCn, cc as themeManagerTwMergeConfiguration, cd as themeResolver, ce as toKilometers, cf as toPuckFields, cg as useBackground, ch as useDocument, ci as usePlatformTranslation, cj as useTemplateProps } from './locatorEntityTypes-s4dmT9l5.js';
1
+ import { S as StreamFields, a as StreamDocument, T as TranslationDictionary, b as ThemeConfig, P as ProductPrice, C as CreateItemSourceOptions, I as ItemSourceInstance, c as TailwindConfig, E as EntityFieldTypes, d as ComponentRegistry, e as TranslatableRichText, M as MsgString, R as RichText, f as ThemeOptions, g as ThemeColor, Y as YextComponentConfig, h as YextEntityField, i as CTAVariant, j as TranslatableString, H as HeadingProps, k as HeadingLevel, l as ImageFillType, m as TranslatableAssetImage, n as ImgSizesByBreakpoint, B as BasicSelectorField, o as SlottedItemSourceInstance, L as LocatorEntityType, p as BodyProps, q as MultiSelectorValue, r as StyledTextValue, s as ComprehensiveCTAValue, t as CTAProps, u as BaseTextStyles, F as FontRegistry, v as CTASelectorField, w as CodeField, x as ComprehensiveCTAField, D as DateTimeSelectorField, y as EntityFieldSelectorField, z as MultiSelectorOptionValue, A as MultiSelectorField, G as FontSizeSelectorField, J as ImageField, O as OptionalNumberField, K as StyledButtonField, N as StyledButtonValue, Q as StyledImageField, U as StyledImageValue, V as StyledLinkField, W as StyledLinkValue, X as StyledPageSectionField, Z as StyledPageSectionValue, _ as StyledTextField, $ as TranslatableStringField, a0 as VideoField, a1 as AssetVideo, a2 as SectionLibraryTranslationLoaders } from './locatorEntityTypes-Cx069o6O.js';
2
+ export { a3 as Accordion, a4 as AccordionContent, a5 as AccordionItem, a6 as AccordionTrigger, a7 as AssetImageType, a8 as Background, a9 as BackgroundProps, aa as BackgroundProvider, ab as BasicSelectorFieldOverride, ac as Body, ad as BreadcrumbLink, ae as Button, af as ButtonProps, ag as CTA, ah as CTASelectorFieldOverride, ai as CodeFieldOverride, aj as ComprehensiveCTAFieldOverride, ak as CreateSlottedItemSourceOptions, al as DateTimeSelectorFieldOverride, am as DropdownMenu, an as DropdownMenuContent, ao as DropdownMenuItem, ap as DropdownMenuTrigger, aq as EmbeddedFieldStringInputFromEntity, ar as EmbeddedFieldStringInputFromOptions, as as EnhancedTranslatableCTA, at as EntityField, au as EntityFieldSelectorFieldOverride, av as EventSectionType, aw as EventStruct, ax as FAQSectionType, ay as FAQStruct, az as FOOD_DELIVERY_SERVICES, aA as Font, aB as FontSizeSelectorFieldOverride, aC as FoodDeliveryServiceType, aD as Heading, aE as HeroSectionType, aF as HoursStatusAtom, aG as HoursStatusAtomProps, aH as HoursTableAtom, aI as HoursTableAtomProps, aJ as Image, aK as ImageContentData, aL as ImageFieldOverride, aM as ImageProps, aN as InsightSectionType, aO as InsightStruct, aP as LocalizedAssetImage, aQ as MaybeLink, aR as MaybeLinkProps, aS as MultiSelectorFieldOverride, aT as MultiSelectorOption, aU as MultiSelectorOptions, aV as OptionalNumberFieldOverride, aW as PageSection, aX as PageSectionProps, aY as PersonStruct, aZ as PhoneAtom, a_ as PhoneAtomProps, a$ as PresetImageType, b0 as ProductSectionType, b1 as ProductStruct, b2 as PromoSectionType, b3 as RenderYextEntityFieldSelectorProps, b4 as StyledButtonFieldOverride, b5 as StyledImageFieldOverride, b6 as StyledLinkFieldOverride, b7 as StyledPageSectionFieldOverride, b8 as StyledTextFieldOverride, b9 as TeamSectionType, ba as TemplatePropsContext, bb as TestimonialSectionType, bc as TestimonialStruct, bd as TimestampAtom, be as TimestampAtomProps, bf as TimestampOption, bg as TranslatableCTA, bh as TranslatableStringFieldOverride, bi as TranslationLoader, bj as TranslationLoaders, bk as VideoAtom, bl as VideoAtomProps, bm as VideoFieldOverride, bn as VisibilityWrapper, bo as VisualEditorComponentsContentPath, bp as VisualEditorThemeClassSafelist, bq as YextArrayField, br as YextAutoField, bs as YextCTAField, bt as YextCustomFieldRenderProps, bu as YextEntityFieldSelector, bv as YextFieldDefinition, bw as YextFieldMap, bx as YextFields, by as YextObjectField, bz as YextPuckField, bA as YextSchemaField, bB as YextSchemaFieldDefinition, bC as backgroundColors, bD as bindSlots, bE as bodyVariants, bF as buttonVariants, bG as constructFontSelectOptions, bH as createSearchAnalyticsConfig, bI as createSearchHeadlessConfig, bJ as createSlottedItemSource, bK as deepMerge, bL as defaultFonts, bM as defaultThemeTailwindExtensions, bN as fetchLocalesToPathsForEntity, bO as getDefaultForegroundColor, bP as getFontWeightOptions, bQ as getFontWeightOverrideOptions, bR as getPageMetadata, bS as getPreferredDistanceUnit, bT as getSurfaceColorStyle, bU as getThemeColorCssValue, bV as getThemeColorHexValue, bW as headingVariants, bX as imgSizesHelper, bY as isDarkColor, bZ as isLocalizedAssetImage, b_ as mergeMeta, b$ as msg, c0 as normalizeLink, c1 as normalizeSlug, c2 as normalizeThemeColorToken, c3 as pt, c4 as resolveBreadcrumbs, c5 as resolveComponentData, c6 as resolveDataFromParent, c7 as resolveLocalizedAssetImage, c8 as resolveUrlTemplate, c9 as resolveUrlTemplateOfChild, ca as resolveYextEntityField, cb as themeManagerCn, cc as themeManagerTwMergeConfiguration, cd as themeResolver, ce as toKilometers, cf as toPuckFields, cg as useBackground, ch as useDocument, ci as usePlatformTranslation, cj as useTemplateProps } from './locatorEntityTypes-Cx069o6O.js';
3
3
  import * as React$1 from 'react';
4
4
  import React__default from 'react';
5
5
  import * as _puckeditor_core from '@puckeditor/core';
@@ -103,6 +103,9 @@ declare const formatCurrency: (value: ProductPrice["value"], currencyCode: Produ
103
103
 
104
104
  type MigrationAction = {
105
105
  action: "removed";
106
+ } | {
107
+ action: "renamed";
108
+ newType: string;
106
109
  } | {
107
110
  action: "updated";
108
111
  propTransformation: (oldProps: {
@@ -1448,8 +1448,16 @@ declare const toPuckFields: <Props extends DefaultComponentProps = DefaultCompon
1448
1448
  * 3. Define the resolved item shape returned by `resolveItems(...)`.
1449
1449
  */
1450
1450
  type CreateItemSourceOptions<TItemProps extends Record<string, unknown>> = {
1451
+ /** Label shown above the item source controls. */
1451
1452
  label: string;
1453
+ /**
1454
+ * Fields for each item. These define both the manual item inputs and the
1455
+ * mappings to fields within each object in a selected entity list.
1456
+ * A list can be selected when its item type or a child field matches any
1457
+ * mapping field filter.
1458
+ */
1452
1459
  mappingFields: YextFieldMap<TItemProps>;
1460
+ /** Initial manual items. The first item is also the template for new items. */
1453
1461
  defaultValues?: TItemProps[];
1454
1462
  };
1455
1463
  type RepeatedEntityFieldValue<TItemProps extends Record<string, unknown>> = YextEntityField<TItemProps[], TItemProps>;