@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.
@@ -1,4 +1,4 @@
1
- import { bJ as C, bM as y, bK as S, bL as E, bp as P, ct as h, aW as v, bT as A, b4 as I, bv as f, aR as L, bQ as M, bz as V, cm as D, co as F, cp as R, cn as O, W as B, cz as x, cA as k, b3 as w, at as W, cd as H, b6 as z, b7 as N, b8 as _, bb as U, bZ as Y, ba as G, bt as j, bf as q, cr as Q, T as K, bq as Z, aI as $, cN as J, cO as X, Z as ee, a2 as se, a1 as ae, Y as te, _ as oe, de as re, cR as ne, bg as ie, ao as le, cV as de, b0 as ce, bk as pe, bR as be, cZ as ge, b$ as me, b_ as ue, bs as Te, bo as Ce, cq as ye, f as Se, bB as Ee, df as Pe, bC as he, dg as ve, bH as Ae, bN as Ie, cc as fe, dh as Le, c7 as Me, di as Ve, bS as De, d2 as Fe, bA as Re, dj as Oe, bG as Be, bF as xe, aV as ke, be as we, c2 as We, d5 as He, dk as ze, b9 as Ne, dl as _e, b5 as Ue, bi as Ye, bc as Ge, c3 as je, dm as qe, bY as Qe, dn as Ke, dp as Ze, m as $e, an as Je, d7 as Xe, j as es, dq as ss, Q as as, c8 as ts, b2 as os, b1 as rs, bu as ns, dr as is, ds as ls, bd as ds, bP as cs, d as ps, c as bs, bj as gs, br as ms, a$ as us, dc as Ts, c4 as Cs, c5 as ys, by as Ss, aU as Es, bm as Ps, af as hs, X as vs, bn as As, dt as Is, c0 as fs, u as Ls, aq as Ms, bw as Vs, bl as Ds, c1 as Fs } from "./SectionLibraryVisualEditorProvider-JVQLJ96r.js";
1
+ import { bJ as y, bM as C, bK as S, bL as h, bp as E, cs as P, aW as v, bT as A, b4 as I, bv as M, aR as f, bQ as L, bz as D, cl as F, cn as V, co as R, cm as O, W as B, cy as k, cz as x, b3 as w, at as W, cc as H, b6 as z, b7 as N, b8 as U, bb as Y, bZ as _, ba as G, bt as Q, bf as q, cq as j, T as K, bq as $, aI as Z, cM as J, cN as X, Z as ee, a2 as se, a1 as ae, Y as te, _ as oe, de as re, cQ as ne, bg as ie, ao as le, cU as de, b0 as ce, bk as pe, bR as be, cY as ge, b$ as me, b_ as ue, bs as Te, bo as ye, cp as Ce, f as Se, bB as he, df as Ee, bC as Pe, dg as ve, bH as Ae, bN as Ie, cb as Me, dh as fe, c7 as Le, di as De, bS as Fe, d2 as Ve, bA as Re, dj as Oe, bG as Be, bF as ke, aV as xe, be as we, c2 as We, d5 as He, dk as ze, b9 as Ne, dl as Ue, b5 as Ye, bi as _e, bc as Ge, c3 as Qe, dm as qe, bY as je, dn as Ke, dp as $e, m as Ze, an as Je, d7 as Xe, k as es, dq as ss, Q as as, h as ts, b2 as os, b1 as rs, bu as ns, dr as is, ds as ls, bd as ds, bP as cs, d as ps, c as bs, bj as gs, br as ms, a$ as us, dc as Ts, c4 as ys, c5 as Cs, by as Ss, aU as hs, bm as Es, af as Ps, X as vs, bn as As, dt as Is, c0 as Ms, u as fs, aq as Ls, bw as Ds, bl as Fs, c1 as Vs } from "./SectionLibraryVisualEditorProvider-Cx0HVYVV.js";
2
2
  import { setDeep as d } from "@puckeditor/core";
3
3
  function b(s, e) {
4
4
  return c(e)[s] ?? null;
@@ -29,41 +29,41 @@ const c = (s) => s.substring(1).split("&").map((e) => e.split("=")).reduce((e, a
29
29
  return e;
30
30
  };
31
31
  export {
32
- C as Accordion,
33
- y as AccordionContent,
32
+ y as Accordion,
33
+ C as AccordionContent,
34
34
  S as AccordionItem,
35
- E as AccordionTrigger,
36
- P as Background,
37
- h as BackgroundProvider,
35
+ h as AccordionTrigger,
36
+ E as Background,
37
+ P as BackgroundProvider,
38
38
  v as Body,
39
39
  A as Button,
40
40
  I as CTA,
41
- f as CardContextProvider,
42
- L as ComponentErrorBoundary,
43
- M as ConstantValueModeToggler,
44
- V as DEFAULT_ENTITY_TYPE,
45
- D as DropdownMenu,
46
- F as DropdownMenuContent,
41
+ M as CardContextProvider,
42
+ f as ComponentErrorBoundary,
43
+ L as ConstantValueModeToggler,
44
+ D as DEFAULT_ENTITY_TYPE,
45
+ F as DropdownMenu,
46
+ V as DropdownMenuContent,
47
47
  R as DropdownMenuItem,
48
48
  O as DropdownMenuTrigger,
49
49
  B as EditorButton,
50
- x as EmbeddedFieldStringInputFromEntity,
51
- k as EmbeddedFieldStringInputFromOptions,
50
+ k as EmbeddedFieldStringInputFromEntity,
51
+ x as EmbeddedFieldStringInputFromOptions,
52
52
  w as EntityField,
53
53
  W as EntityTooltipsProvider,
54
54
  H as FOOD_DELIVERY_SERVICES,
55
55
  z as Heading,
56
56
  N as HoursStatusAtom,
57
- _ as HoursTableAtom,
58
- U as Image,
59
- Y as MapPinIcon,
57
+ U as HoursTableAtom,
58
+ Y as Image,
59
+ _ as MapPinIcon,
60
60
  G as MaybeLink,
61
- j as PageSection,
61
+ Q as PageSection,
62
62
  q as PhoneAtom,
63
- Q as SectionLibraryVisualEditorProvider,
63
+ j as SectionLibraryVisualEditorProvider,
64
64
  K as TARGET_ORIGINS,
65
- Z as TemplatePropsContext,
66
- $ as ThemeOptions,
65
+ $ as TemplatePropsContext,
66
+ Z as ThemeOptions,
67
67
  J as TimestampAtom,
68
68
  X as TimestampOption,
69
69
  ee as Tooltip,
@@ -83,43 +83,43 @@ export {
83
83
  me as createSearchAnalyticsConfig,
84
84
  ue as createSearchHeadlessConfig,
85
85
  Te as createSlottedItemSource,
86
- Ce as deepMerge,
87
- ye as fetchLocalesToPathsForEntity,
86
+ ye as deepMerge,
87
+ Ce as fetchLocalesToPathsForEntity,
88
88
  Se as findField,
89
- Ee as formatDistance,
90
- Pe as formatPhoneNumber,
89
+ he as formatDistance,
90
+ Ee as formatPhoneNumber,
91
91
  g as forwardHeadingLevel,
92
- he as fromMeters,
92
+ Pe as fromMeters,
93
93
  ve as gatherSlotStyles,
94
94
  Ae as getBackgroundColorClasses,
95
95
  Ie as getBackgroundColorStyle,
96
- fe as getCTAType,
97
- Le as getDisplayValue,
98
- Me as getEntityTypeLabel,
99
- Ve as getImageAltText,
100
- De as getLocatorEntityTypeSourceMap,
101
- Fe as getPageMetadata,
96
+ Me as getCTAType,
97
+ fe as getDisplayValue,
98
+ Le as getEntityTypeLabel,
99
+ De as getImageAltText,
100
+ Fe as getLocatorEntityTypeSourceMap,
101
+ Ve as getPageMetadata,
102
102
  Re as getPreferredDistanceUnit,
103
103
  Oe as getRandomPlaceholderImageObject,
104
104
  Be as getTextColorClass,
105
- xe as getTextColorStyle,
106
- ke as getThemeColorCssValue,
105
+ ke as getTextColorStyle,
106
+ xe as getThemeColorCssValue,
107
107
  we as getThemeValue,
108
108
  b as getValueFromQueryString,
109
109
  We as getViewport,
110
110
  He as headingVariants,
111
111
  ze as hexToRGB,
112
112
  Ne as imgSizesHelper,
113
- _e as isColorContrastWcagCompliant,
114
- Ue as isCtaVariantWithColor,
115
- Ye as isDirectoryGrid,
113
+ Ue as isColorContrastWcagCompliant,
114
+ Ye as isCtaVariantWithColor,
115
+ _e as isDirectoryGrid,
116
116
  Ge as isLocalizedAssetImage,
117
- je as isLocatorEntityType,
117
+ Qe as isLocatorEntityType,
118
118
  qe as isNonNormalizableLinkType,
119
- Qe as isVisualEditorTestEnv,
119
+ je as isVisualEditorTestEnv,
120
120
  Ke as linkTypeOptions,
121
- Ze as loadTranslationDictionary,
122
- $e as mergeMeta,
121
+ $e as loadTranslationDictionary,
122
+ Ze as mergeMeta,
123
123
  Je as msg,
124
124
  Xe as normalizeLink,
125
125
  es as normalizeSlug,
@@ -140,19 +140,19 @@ export {
140
140
  m as syncParentStyles,
141
141
  us as themeManagerCn,
142
142
  Ts as toKilometers,
143
- Cs as toMeters,
144
- ys as toMiles,
143
+ ys as toMeters,
144
+ Cs as toMiles,
145
145
  Ss as toPuckFields,
146
- Es as useBackground,
147
- Ps as useCardContext,
148
- hs as useDocument,
146
+ hs as useBackground,
147
+ Es as useCardContext,
148
+ Ps as useDocument,
149
149
  vs as useEntityTooltips,
150
150
  As as useGetCardSlots,
151
151
  Is as useParentCardStyles,
152
- fs as usePreviewWindow,
153
- Ls as useReceiveMessage,
154
- Ms as useSendMessageToParent,
155
- Vs as useTemplateMetadata,
156
- Ds as useTemplateProps,
157
- Fs as useWindowWidth
152
+ Ms as usePreviewWindow,
153
+ fs as useReceiveMessage,
154
+ Ls as useSendMessageToParent,
155
+ Ds as useTemplateMetadata,
156
+ Fs as useTemplateProps,
157
+ Vs as useWindowWidth
158
158
  };
@@ -1,5 +1,5 @@
1
- import { g as ThemeColor, a as StreamDocument, ck as SlotMappedCardsData, a2 as SectionLibraryTranslationLoaders, S as StreamFields, c as TailwindConfig, a$ as PresetImageType } from './locatorEntityTypes-s4dmT9l5.js';
2
- export { a3 as Accordion, a4 as AccordionContent, a5 as AccordionItem, a6 as AccordionTrigger, a7 as AssetImageType, a1 as AssetVideo, a8 as Background, a9 as BackgroundProps, aa as BackgroundProvider, B as BasicSelectorField, ac as Body, p as BodyProps, ae as Button, af as ButtonProps, ag as CTA, t as CTAProps, i as CTAVariant, cl as ConstantValueModeToggler, cm as DEFAULT_ENTITY_TYPE, am as DropdownMenu, an as DropdownMenuContent, ao as DropdownMenuItem, ap as DropdownMenuTrigger, aq as EmbeddedFieldStringInputFromEntity, ar as EmbeddedFieldStringInputFromOptions, cn as EmbeddedStringOption, at as EntityField, co as EntityTooltipsProvider, az as FOOD_DELIVERY_SERVICES, cp as FieldResolution, cq as FieldTypeData, aD as Heading, k as HeadingLevel, H as HeadingProps, aF as HoursStatusAtom, aG as HoursStatusAtomProps, aH as HoursTableAtom, aI as HoursTableAtomProps, aJ as Image, J as ImageField, l as ImageFillType, cr as ImagePayload, aM as ImageProps, n as ImgSizesByBreakpoint, cs as LocatorConfig, L as LocatorEntityType, aQ as MaybeLink, aR as MaybeLinkProps, M as MsgString, aT as MultiSelectorOption, q as MultiSelectorValue, aW as PageSection, aX as PageSectionProps, aZ as PhoneAtom, a_ as PhoneAtomProps, b3 as RenderYextEntityFieldSelectorProps, ct as RootConfig, ba as TemplatePropsContext, f as ThemeOptions, bd as TimestampAtom, be as TimestampAtomProps, bf as TimestampOption, m as TranslatableAssetImage, j as TranslatableString, bk as VideoAtom, bl as VideoAtomProps, bn as VisibilityWrapper, bq as YextArrayField, br as YextAutoField, bs as YextCTAField, Y as YextComponentConfig, bt as YextCustomFieldRenderProps, h as YextEntityField, bu as YextEntityFieldSelector, bv as YextFieldDefinition, bw as YextFieldMap, bx as YextFields, by as YextObjectField, bz as YextPuckField, bC as backgroundColors, bD as bindSlots, cu as buildLocatorDisplayOptions, bF as buttonVariants, bH as createSearchAnalyticsConfig, bI as createSearchHeadlessConfig, bJ as createSlottedItemSource, bK as deepMerge, bN as fetchLocalesToPathsForEntity, cv as findField, cw as formatDistance, cx as formatPhoneNumber, cy as fromMeters, cz as getBackgroundColorClasses, cA as getBackgroundColorStyle, cB as getCTAType, cC as getDisplayValue, cD as getEntityTypeLabel, cE as getImageAltText, cF as getLocatorEntityTypeSourceMap, bR as getPageMetadata, bS as getPreferredDistanceUnit, cG as getTextColorClass, cH as getTextColorStyle, bU as getThemeColorCssValue, bW as headingVariants, cI as hexToRGB, bX as imgSizesHelper, cJ as isColorContrastWcagCompliant, cK as isCtaVariantWithColor, bZ as isLocalizedAssetImage, cL as isLocatorEntityType, cM as isNonNormalizableLinkType, cN as loadTranslationDictionary, b_ as mergeMeta, b$ as msg, c0 as normalizeLink, c1 as normalizeSlug, c3 as pt, c4 as resolveBreadcrumbs, c5 as resolveComponentData, c6 as resolveDataFromParent, cO as resolveDirectoryRootProps, cP as resolveField, c7 as resolveLocalizedAssetImage, c8 as resolveUrlTemplate, c9 as resolveUrlTemplateOfChild, cb as themeManagerCn, ce as toKilometers, cQ as toMeters, cR as toMiles, cf as toPuckFields, cg as useBackground, ch as useDocument, cS as useEntityTooltips, cT as useTemplateMetadata, cj as useTemplateProps } from './locatorEntityTypes-s4dmT9l5.js';
1
+ import { g as ThemeColor, a as StreamDocument, ck as SlotMappedCardsData, a2 as SectionLibraryTranslationLoaders, S as StreamFields, c as TailwindConfig, a$ as PresetImageType } from './locatorEntityTypes-Cx069o6O.js';
2
+ export { a3 as Accordion, a4 as AccordionContent, a5 as AccordionItem, a6 as AccordionTrigger, a7 as AssetImageType, a1 as AssetVideo, a8 as Background, a9 as BackgroundProps, aa as BackgroundProvider, B as BasicSelectorField, ac as Body, p as BodyProps, ae as Button, af as ButtonProps, ag as CTA, t as CTAProps, i as CTAVariant, cl as ConstantValueModeToggler, cm as DEFAULT_ENTITY_TYPE, am as DropdownMenu, an as DropdownMenuContent, ao as DropdownMenuItem, ap as DropdownMenuTrigger, aq as EmbeddedFieldStringInputFromEntity, ar as EmbeddedFieldStringInputFromOptions, cn as EmbeddedStringOption, at as EntityField, co as EntityTooltipsProvider, az as FOOD_DELIVERY_SERVICES, cp as FieldResolution, cq as FieldTypeData, aD as Heading, k as HeadingLevel, H as HeadingProps, aF as HoursStatusAtom, aG as HoursStatusAtomProps, aH as HoursTableAtom, aI as HoursTableAtomProps, aJ as Image, J as ImageField, l as ImageFillType, cr as ImagePayload, aM as ImageProps, n as ImgSizesByBreakpoint, cs as LocatorConfig, L as LocatorEntityType, aQ as MaybeLink, aR as MaybeLinkProps, M as MsgString, aT as MultiSelectorOption, q as MultiSelectorValue, aW as PageSection, aX as PageSectionProps, aZ as PhoneAtom, a_ as PhoneAtomProps, b3 as RenderYextEntityFieldSelectorProps, ct as RootConfig, ba as TemplatePropsContext, f as ThemeOptions, bd as TimestampAtom, be as TimestampAtomProps, bf as TimestampOption, m as TranslatableAssetImage, j as TranslatableString, bk as VideoAtom, bl as VideoAtomProps, bn as VisibilityWrapper, bq as YextArrayField, br as YextAutoField, bs as YextCTAField, Y as YextComponentConfig, bt as YextCustomFieldRenderProps, h as YextEntityField, bu as YextEntityFieldSelector, bv as YextFieldDefinition, bw as YextFieldMap, bx as YextFields, by as YextObjectField, bz as YextPuckField, bC as backgroundColors, bD as bindSlots, cu as buildLocatorDisplayOptions, bF as buttonVariants, bH as createSearchAnalyticsConfig, bI as createSearchHeadlessConfig, bJ as createSlottedItemSource, bK as deepMerge, bN as fetchLocalesToPathsForEntity, cv as findField, cw as formatDistance, cx as formatPhoneNumber, cy as fromMeters, cz as getBackgroundColorClasses, cA as getBackgroundColorStyle, cB as getCTAType, cC as getDisplayValue, cD as getEntityTypeLabel, cE as getImageAltText, cF as getLocatorEntityTypeSourceMap, bR as getPageMetadata, bS as getPreferredDistanceUnit, cG as getTextColorClass, cH as getTextColorStyle, bU as getThemeColorCssValue, bW as headingVariants, cI as hexToRGB, bX as imgSizesHelper, cJ as isColorContrastWcagCompliant, cK as isCtaVariantWithColor, bZ as isLocalizedAssetImage, cL as isLocatorEntityType, cM as isNonNormalizableLinkType, cN as loadTranslationDictionary, b_ as mergeMeta, b$ as msg, c0 as normalizeLink, c1 as normalizeSlug, c3 as pt, c4 as resolveBreadcrumbs, c5 as resolveComponentData, c6 as resolveDataFromParent, cO as resolveDirectoryRootProps, cP as resolveField, c7 as resolveLocalizedAssetImage, c8 as resolveUrlTemplate, c9 as resolveUrlTemplateOfChild, cb as themeManagerCn, ce as toKilometers, cQ as toMeters, cR as toMiles, cf as toPuckFields, cg as useBackground, ch as useDocument, cS as useEntityTooltips, cT as useTemplateMetadata, cj as useTemplateProps } from './locatorEntityTypes-Cx069o6O.js';
3
3
  import * as React from 'react';
4
4
  import React__default from 'react';
5
5
  import { Slot, useGetPuck, ComponentData } from '@puckeditor/core';