@yext/visual-editor 2.0.0-beta.7 → 2.0.0-beta.9
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-DKUR2CCF.js → SectionLibraryVisualEditorProvider-Czy5e9wB.js} +28549 -24804
- package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +4 -0
- package/dist/cli/yextve.js +2 -2
- package/dist/{locatorEntityTypes-CBKnACVV.d.ts → createYextFieldTransforms-CPEwasy9.d.ts} +239 -26
- package/dist/index.d.ts +26 -65
- package/dist/plugin/plugin.js +1151 -1109
- package/dist/section-library-support.js +107 -105
- package/dist/sectionLibrarySupport.d.ts +2 -2
- package/dist/visual-editor.css +1 -1
- package/dist/visual-editor.js +8838 -12194
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cf as C, ci as y, cg as S, ch as P, bX as E, cZ as h, bt as v, cp as A, bD as I, c1 as f, bo as D, cm as F, c5 as M, cS as L, cU as V, cV as R, cT as x, aF as B, d3 as O, d4 as w, bC as W, b1 as k, cJ as U, bF as z, bG as G, bH as H, bK as Y, cv as N, bJ as _, cH as j, b$ as Q, bO as X, cX as Z, T as $, bY as J, bf as K, dj as q, dk as ee, au as se, ax as ae, aw as te, at as oe, av as re, dP as ne, dn as ie, bP as le, aD as ce, ds as de, bz as pe, bS as ge, cn as ue, dw as me, U as be, cx as Te, cw as Ce, b_ as ye, b0 as Se, bW as Pe, cW as Ee, f as he, c7 as ve, dQ as Ae, c8 as Ie, dR as fe, cd as De, cj as Fe, dS as Me, dT as Le, cF as Ve, dU as Re, co as xe, dD as Be, c6 as Oe, dV as we, cc as We, cb as ke, bs as Ue, bN as ze, cA as Ge, dG as He, dW as Ye, bI as Ne, dX as _e, bE as je, bQ as Qe, bL as Xe, cB as Ze, dY as $e, cu as Je, dZ as Ke, d_ as qe, m as es, az as ss, dI as as, j as ts, d$ as os, Y as rs, g as ns, bB as is, bA as ls, c0 as cs, e0 as ds, e1 as ps, bM as gs, cl as us, d as ms, c as bs, bR as Ts, bZ as Cs, by as ys, dN as Ss, cC as Ps, cD as Es, c4 as hs, br as vs, bU as As, aA as Is, as as fs, bV as Ds, e2 as Fs, cy as Ms, u as Ls, aB as Vs, c2 as Rs, bT as xs, cz as Bs, e3 as Os } from "./SectionLibraryVisualEditorProvider-Czy5e9wB.js";
|
|
2
2
|
import { setDeep as c } from "@puckeditor/core";
|
|
3
3
|
function g(s, e) {
|
|
4
4
|
return d(e)[s] ?? null;
|
|
@@ -32,129 +32,131 @@ export {
|
|
|
32
32
|
C as Accordion,
|
|
33
33
|
y as AccordionContent,
|
|
34
34
|
S as AccordionItem,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
P as AccordionTrigger,
|
|
36
|
+
E as Background,
|
|
37
37
|
h as BackgroundProvider,
|
|
38
38
|
v as Body,
|
|
39
39
|
A as Button,
|
|
40
40
|
I as CTA,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
f as CardContextProvider,
|
|
42
|
+
D as ComponentErrorBoundary,
|
|
43
|
+
F as ConstantValueModeToggler,
|
|
44
|
+
M as DEFAULT_ENTITY_TYPE,
|
|
45
|
+
L as DropdownMenu,
|
|
46
|
+
V as DropdownMenuContent,
|
|
47
|
+
R as DropdownMenuItem,
|
|
48
|
+
x as DropdownMenuTrigger,
|
|
49
|
+
B as EditorButton,
|
|
50
|
+
O as EmbeddedFieldStringInputFromEntity,
|
|
51
|
+
w as EmbeddedFieldStringInputFromOptions,
|
|
52
|
+
W as EntityField,
|
|
53
|
+
k as EntityTooltipsProvider,
|
|
54
54
|
U as FOOD_DELIVERY_SERVICES,
|
|
55
55
|
z as Heading,
|
|
56
56
|
G as HoursStatusAtom,
|
|
57
57
|
H as HoursTableAtom,
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Y as Image,
|
|
59
|
+
N as MapPinIcon,
|
|
60
60
|
_ as MaybeLink,
|
|
61
|
+
j as MaybeRTF,
|
|
61
62
|
Q as PageSection,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Ee as
|
|
90
|
-
|
|
91
|
-
|
|
63
|
+
X as PhoneAtom,
|
|
64
|
+
Z as SectionLibraryVisualEditorProvider,
|
|
65
|
+
$ as TARGET_ORIGINS,
|
|
66
|
+
J as TemplatePropsContext,
|
|
67
|
+
K as ThemeOptions,
|
|
68
|
+
q as TimestampAtom,
|
|
69
|
+
ee as TimestampOption,
|
|
70
|
+
se as Tooltip,
|
|
71
|
+
ae as TooltipArrow,
|
|
72
|
+
te as TooltipContent,
|
|
73
|
+
oe as TooltipProvider,
|
|
74
|
+
re as TooltipTrigger,
|
|
75
|
+
ne as VIEWPORT_BREAKPOINTS,
|
|
76
|
+
ie as VideoAtom,
|
|
77
|
+
le as VisibilityWrapper,
|
|
78
|
+
ce as YextAutoField,
|
|
79
|
+
de as YextEntityFieldSelector,
|
|
80
|
+
pe as backgroundColors,
|
|
81
|
+
ge as bindSlots,
|
|
82
|
+
ue as buildLocatorDisplayOptions,
|
|
83
|
+
me as buttonVariants,
|
|
84
|
+
be as createPuckGenerationCatalog,
|
|
85
|
+
Te as createSearchAnalyticsConfig,
|
|
86
|
+
Ce as createSearchHeadlessConfig,
|
|
87
|
+
ye as createSlottedItemSource,
|
|
88
|
+
Se as createYextFieldTransforms,
|
|
89
|
+
Pe as deepMerge,
|
|
90
|
+
Ee as fetchLocalesToPathsForEntity,
|
|
91
|
+
he as findField,
|
|
92
|
+
ve as formatDistance,
|
|
93
|
+
Ae as formatPhoneNumber,
|
|
92
94
|
u as forwardHeadingLevel,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
Ie as fromMeters,
|
|
96
|
+
fe as gatherSlotStyles,
|
|
97
|
+
De as getBackgroundColorClasses,
|
|
98
|
+
Fe as getBackgroundColorStyle,
|
|
97
99
|
Me as getCTAType,
|
|
98
|
-
|
|
100
|
+
Le as getDisplayValue,
|
|
99
101
|
Ve as getEntityTypeLabel,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
Re as getImageAltText,
|
|
103
|
+
xe as getLocatorEntityTypeSourceMap,
|
|
102
104
|
Be as getPageMetadata,
|
|
103
105
|
Oe as getPreferredDistanceUnit,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
we as getRandomPlaceholderImageObject,
|
|
107
|
+
We as getTextColorClass,
|
|
108
|
+
ke as getTextColorStyle,
|
|
109
|
+
Ue as getThemeColorCssValue,
|
|
110
|
+
ze as getThemeValue,
|
|
109
111
|
g as getValueFromQueryString,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
112
|
+
Ge as getViewport,
|
|
113
|
+
He as headingVariants,
|
|
114
|
+
Ye as hexToRGB,
|
|
115
|
+
Ne as imgSizesHelper,
|
|
116
|
+
_e as isColorContrastWcagCompliant,
|
|
117
|
+
je as isCtaVariantWithColor,
|
|
118
|
+
Qe as isDirectoryGrid,
|
|
119
|
+
Xe as isLocalizedAssetImage,
|
|
120
|
+
Ze as isLocatorEntityType,
|
|
121
|
+
$e as isNonNormalizableLinkType,
|
|
122
|
+
Je as isVisualEditorTestEnv,
|
|
123
|
+
Ke as linkTypeOptions,
|
|
124
|
+
qe as loadTranslationDictionary,
|
|
125
|
+
es as mergeMeta,
|
|
126
|
+
ss as msg,
|
|
127
|
+
as as normalizeLink,
|
|
128
|
+
ts as normalizeSlug,
|
|
129
|
+
os as presetImageIcons,
|
|
130
|
+
rs as pt,
|
|
131
|
+
ns as resolveBreadcrumbs,
|
|
132
|
+
is as resolveComponentData,
|
|
133
|
+
ls as resolveDataFromParent,
|
|
134
|
+
cs as resolveDirectoryListChildren,
|
|
135
|
+
ds as resolveDirectoryRootProps,
|
|
136
|
+
ps as resolveField,
|
|
137
|
+
gs as resolveLocalizedAssetImage,
|
|
138
|
+
us as resolveLocatorResultUrl,
|
|
139
|
+
ms as resolveUrlTemplate,
|
|
140
|
+
bs as resolveUrlTemplateOfChild,
|
|
141
|
+
Ts as sortAlphabetically,
|
|
142
|
+
Cs as syncLinkedSlotMappedCards,
|
|
141
143
|
m as syncParentStyles,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
144
|
+
ys as themeManagerCn,
|
|
145
|
+
Ss as toKilometers,
|
|
146
|
+
Ps as toMeters,
|
|
147
|
+
Es as toMiles,
|
|
148
|
+
hs as toPuckFields,
|
|
149
|
+
vs as useBackground,
|
|
150
|
+
As as useCardContext,
|
|
151
|
+
Is as useDocument,
|
|
152
|
+
fs as useEntityTooltips,
|
|
153
|
+
Ds as useGetCardSlots,
|
|
154
|
+
Fs as useParentCardStyles,
|
|
153
155
|
Ms as usePreviewWindow,
|
|
154
|
-
|
|
156
|
+
Ls as useReceiveMessage,
|
|
155
157
|
Vs as useSendMessageToParent,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
Rs as useTemplateMetadata,
|
|
159
|
+
xs as useTemplateProps,
|
|
158
160
|
Bs as useWindowWidth,
|
|
159
161
|
Os as withGenerationCatalog
|
|
160
162
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ThemeColor, a as StreamDocument,
|
|
2
|
-
export {
|
|
1
|
+
import { g as ThemeColor, a as StreamDocument, cz as SlotMappedCardsData, a4 as SectionLibraryTranslationLoaders, S as StreamFields, c as TailwindConfig, b7 as PresetImageType, aT as LayoutGenerationMetadata } from './createYextFieldTransforms-CPEwasy9.js';
|
|
2
|
+
export { a5 as Accordion, a6 as AccordionContent, a7 as AccordionItem, a8 as AccordionTrigger, a9 as AssetImageType, a3 as AssetVideo, aa as Background, ab as BackgroundProps, ac as BackgroundProvider, B as BasicSelectorField, ae as Body, q as BodyProps, ag as Button, ah as ButtonProps, ai as CTA, v as CTAProps, j as CTAVariant, cA as ConstantValueModeToggler, cB as DEFAULT_ENTITY_TYPE, ao as DropdownMenu, ap as DropdownMenuContent, aq as DropdownMenuItem, ar as DropdownMenuTrigger, as as EmbeddedFieldStringInputFromEntity, at as EmbeddedFieldStringInputFromOptions, cC as EmbeddedStringOption, av as EntityField, cD as EntityTooltipsProvider, aB as FOOD_DELIVERY_SERVICES, cE as FieldResolution, cF as FieldTypeData, aH as Heading, l as HeadingLevel, H as HeadingProps, aJ as HoursStatusAtom, aK as HoursStatusAtomProps, aL as HoursTableAtom, aM as HoursTableAtomProps, aN as Image, aP as ImageField, m as ImageFillType, cG as ImagePayload, aQ as ImageProps, o as ImgSizesByBreakpoint, cH as LocatorConfig, L as LocatorEntityType, aV as MaybeLink, aW as MaybeLinkProps, aX as MaybeRTF, M as MsgString, a_ as MultiSelectorOption, r as MultiSelectorValue, b2 as PageSection, b3 as PageSectionProps, b5 as PhoneAtom, b6 as PhoneAtomProps, bb as RenderYextEntityFieldSelectorProps, u as ResolvedComprehensiveCTAValue, cI as RootConfig, bl as TemplatePropsContext, f as ThemeOptions, bp as TimestampAtom, bq as TimestampAtomProps, br as TimestampOption, n as TranslatableAssetImage, k as TranslatableString, bw as VideoAtom, bx as VideoAtomProps, bz as VisibilityWrapper, bC as YextArrayField, bD as YextAutoField, bE as YextCTAField, h as YextComponentConfig, bF as YextCustomFieldRenderProps, i as YextEntityField, bG as YextEntityFieldSelector, bH as YextFieldDefinition, Y as YextFieldMap, bI as YextFields, bJ as YextObjectField, bK as YextPuckField, bN as YextTransformedProps, bO as backgroundColors, bP as bindSlots, cJ as buildLocatorDisplayOptions, bR as buttonVariants, bT as createSearchAnalyticsConfig, bU as createSearchHeadlessConfig, bV as createSlottedItemSource, bW as createYextFieldTransforms, bX as deepMerge, b_ as fetchLocalesToPathsForEntity, cK as findField, cL as formatDistance, cM as formatPhoneNumber, cN as fromMeters, cO as getBackgroundColorClasses, cP as getBackgroundColorStyle, cQ as getCTAType, cR as getDisplayValue, cS as getEntityTypeLabel, cT as getImageAltText, cU as getLocatorEntityTypeSourceMap, c4 as getPageMetadata, c5 as getPreferredDistanceUnit, cV as getTextColorClass, cW as getTextColorStyle, c7 as getThemeColorCssValue, c9 as headingVariants, cX as hexToRGB, ca as imgSizesHelper, cY as isColorContrastWcagCompliant, cZ as isCtaVariantWithColor, cc as isLocalizedAssetImage, c_ as isLocatorEntityType, c$ as isNonNormalizableLinkType, d0 as loadTranslationDictionary, cd as mergeMeta, ce as msg, cf as normalizeLink, cg as normalizeSlug, ci as pt, cj as resolveBreadcrumbs, ck as resolveComponentData, cl as resolveDataFromParent, d1 as resolveDirectoryRootProps, d2 as resolveField, cm as resolveLocalizedAssetImage, cn as resolveUrlTemplate, co as resolveUrlTemplateOfChild, cq as themeManagerCn, ct as toKilometers, d3 as toMeters, d4 as toMiles, cu as toPuckFields, cv as useBackground, cw as useDocument, d5 as useEntityTooltips, d6 as useTemplateMetadata, cy as useTemplateProps } from './createYextFieldTransforms-CPEwasy9.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { Slot, useGetPuck, ComponentData, Fields, Permissions, Config } from '@puckeditor/core';
|