@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.
- package/dist/{SectionLibraryVisualEditorProvider-JVQLJ96r.js → SectionLibraryVisualEditorProvider-Cx0HVYVV.js} +6877 -6746
- package/dist/cli/yextve.js +109 -29
- package/dist/index.d.ts +5 -2
- package/dist/{locatorEntityTypes-s4dmT9l5.d.ts → locatorEntityTypes-Cx069o6O.d.ts} +8 -0
- package/dist/plugin/plugin.js +152 -148
- package/dist/section-library-support.js +52 -52
- package/dist/sectionLibrarySupport.d.ts +2 -2
- package/dist/visual-editor.js +2516 -2507
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bJ as
|
|
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
|
-
|
|
33
|
-
|
|
32
|
+
y as Accordion,
|
|
33
|
+
C as AccordionContent,
|
|
34
34
|
S as AccordionItem,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
U as HoursTableAtom,
|
|
58
|
+
Y as Image,
|
|
59
|
+
_ as MapPinIcon,
|
|
60
60
|
G as MaybeLink,
|
|
61
|
-
|
|
61
|
+
Q as PageSection,
|
|
62
62
|
q as PhoneAtom,
|
|
63
|
-
|
|
63
|
+
j as SectionLibraryVisualEditorProvider,
|
|
64
64
|
K as TARGET_ORIGINS,
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
87
|
-
|
|
86
|
+
ye as deepMerge,
|
|
87
|
+
Ce as fetchLocalesToPathsForEntity,
|
|
88
88
|
Se as findField,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
he as formatDistance,
|
|
90
|
+
Ee as formatPhoneNumber,
|
|
91
91
|
g as forwardHeadingLevel,
|
|
92
|
-
|
|
92
|
+
Pe as fromMeters,
|
|
93
93
|
ve as gatherSlotStyles,
|
|
94
94
|
Ae as getBackgroundColorClasses,
|
|
95
95
|
Ie as getBackgroundColorStyle,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
Ue as isColorContrastWcagCompliant,
|
|
114
|
+
Ye as isCtaVariantWithColor,
|
|
115
|
+
_e as isDirectoryGrid,
|
|
116
116
|
Ge as isLocalizedAssetImage,
|
|
117
|
-
|
|
117
|
+
Qe as isLocatorEntityType,
|
|
118
118
|
qe as isNonNormalizableLinkType,
|
|
119
|
-
|
|
119
|
+
je as isVisualEditorTestEnv,
|
|
120
120
|
Ke as linkTypeOptions,
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
144
|
-
|
|
143
|
+
ys as toMeters,
|
|
144
|
+
Cs as toMiles,
|
|
145
145
|
Ss as toPuckFields,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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-
|
|
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-
|
|
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';
|