@yext/visual-editor 2.0.0-beta.4 → 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-Dbj44frg.js → SectionLibraryVisualEditorProvider-Cx0HVYVV.js} +2829 -2807
- package/dist/cli/yextve.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/section-library-support.js +52 -52
- package/dist/visual-editor.js +1225 -1218
- package/package.json +2 -2
package/dist/cli/yextve.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|
package/dist/index.d.ts
CHANGED
|
@@ -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: {
|
|
@@ -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
|
};
|