@yext/visual-editor 0.0.62 → 0.0.63
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/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/plugin/{debugger-DIK3Bqjc-Cb8l9yqy.js → debugger-DIK3Bqjc-BgrSMGbp.js} +1 -1
- package/dist/plugin/{debugger-DIK3Bqjc-B2OXASKf.cjs → debugger-DIK3Bqjc-BjBMuz6i.cjs} +1 -1
- package/dist/plugin/{index-CFDZ8M9F.js → index-BU3c50aZ.js} +49 -10
- package/dist/plugin/{index-BzJB8YIo.cjs → index-DNFbLH_-.cjs} +49 -10
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.js +1 -1
- package/dist/visual-editor.cjs +39 -39
- package/dist/visual-editor.js +50 -46
- package/package.json +1 -1
package/dist/visual-editor.js
CHANGED
|
@@ -26044,6 +26044,9 @@ const V7e = (e) => Pr(e).map((a) => {
|
|
|
26044
26044
|
childList: !0,
|
|
26045
26045
|
subtree: !0
|
|
26046
26046
|
});
|
|
26047
|
+
}, cpt = (e) => {
|
|
26048
|
+
let t = e.path;
|
|
26049
|
+
return t === "index.html" && (t = ""), `https://${e.document.siteDomain}/${t}`;
|
|
26047
26050
|
};
|
|
26048
26051
|
function q7e(e) {
|
|
26049
26052
|
var t, a, n = "";
|
|
@@ -28567,7 +28570,7 @@ function Ng(e) {
|
|
|
28567
28570
|
function _g(e) {
|
|
28568
28571
|
return typeof e == "object" && e !== null && "field" in e && "constantValue" in e;
|
|
28569
28572
|
}
|
|
28570
|
-
function
|
|
28573
|
+
function dpt(e) {
|
|
28571
28574
|
var o, s;
|
|
28572
28575
|
const t = (o = e == null ? void 0 : e.__) == null ? void 0 : o.layout;
|
|
28573
28576
|
if (!t)
|
|
@@ -28582,7 +28585,7 @@ function cpt(e) {
|
|
|
28582
28585
|
);
|
|
28583
28586
|
}), i;
|
|
28584
28587
|
}
|
|
28585
|
-
const UPe = (e) => typeof e != "string" ? "" : e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"),
|
|
28588
|
+
const UPe = (e) => typeof e != "string" ? "" : e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), upt = (e) => {
|
|
28586
28589
|
var a, n, i;
|
|
28587
28590
|
const t = (a = e == null ? void 0 : e.__) == null ? void 0 : a.layout;
|
|
28588
28591
|
if (!t)
|
|
@@ -32563,7 +32566,7 @@ function kSe(e) {
|
|
|
32563
32566
|
const [t, a = "center"] = e.split("-");
|
|
32564
32567
|
return [t, a];
|
|
32565
32568
|
}
|
|
32566
|
-
var nf = hSe, zd = mSe, of = bSe, sf = vSe, Wd = "Popover", [SSe,
|
|
32569
|
+
var nf = hSe, zd = mSe, of = bSe, sf = vSe, Wd = "Popover", [SSe, ppt] = Ua(Wd, [
|
|
32567
32570
|
Hs
|
|
32568
32571
|
]), ul = Hs(), [jNe, zi] = SSe(Wd), $Se = (e) => {
|
|
32569
32572
|
const {
|
|
@@ -32952,7 +32955,7 @@ const _Se = ({
|
|
|
32952
32955
|
label: a.label + (a.px ? ` (${i}px)` : ""),
|
|
32953
32956
|
value: a.value
|
|
32954
32957
|
};
|
|
32955
|
-
}),
|
|
32958
|
+
}), fpt = (e, t = !0) => ({
|
|
32956
32959
|
type: "custom",
|
|
32957
32960
|
render: ({ value: a, onChange: n }) => {
|
|
32958
32961
|
const i = db(), o = UNe(
|
|
@@ -33160,7 +33163,7 @@ const _Se = ({
|
|
|
33160
33163
|
{ label: "H4", value: 4 },
|
|
33161
33164
|
{ label: "H5", value: 5 },
|
|
33162
33165
|
{ label: "H6", value: 6 }
|
|
33163
|
-
],
|
|
33166
|
+
], hpt = {
|
|
33164
33167
|
colors: {
|
|
33165
33168
|
"palette-primary-light": "hsl(from var(--colors-palette-primary) h s 98)",
|
|
33166
33169
|
"palette-secondary-light": "hsl(from var(--colors-palette-secondary) h s 98)",
|
|
@@ -33334,7 +33337,7 @@ const _Se = ({
|
|
|
33334
33337
|
HOURS_OPTIONS: r_e,
|
|
33335
33338
|
PHONE_OPTIONS: l_e,
|
|
33336
33339
|
MAX_WIDTH: c_e
|
|
33337
|
-
},
|
|
33340
|
+
}, gpt = "node_modules/@yext/visual-editor/dist/**/*.js", d_e = {
|
|
33338
33341
|
Directory: {
|
|
33339
33342
|
action: "updated",
|
|
33340
33343
|
propTransformation: (e) => ({
|
|
@@ -33993,7 +33996,7 @@ const _Se = ({
|
|
|
33993
33996
|
), a[n] = o ?? i);
|
|
33994
33997
|
}
|
|
33995
33998
|
return a;
|
|
33996
|
-
}, bm = (e) => e !== null && typeof e == "object",
|
|
33999
|
+
}, bm = (e) => e !== null && typeof e == "object", mpt = (e, t) => {
|
|
33997
34000
|
const a = P_e(t);
|
|
33998
34001
|
return HSe(e, a);
|
|
33999
34002
|
};
|
|
@@ -35750,7 +35753,7 @@ function cFe(e, t, a) {
|
|
|
35750
35753
|
function XSe(e, t) {
|
|
35751
35754
|
return cFe(e, q_e);
|
|
35752
35755
|
}
|
|
35753
|
-
const
|
|
35756
|
+
const bpt = ({
|
|
35754
35757
|
templateProps: e,
|
|
35755
35758
|
entityFields: t,
|
|
35756
35759
|
tailwindConfig: a,
|
|
@@ -35765,7 +35768,7 @@ const mpt = ({
|
|
|
35765
35768
|
o.document.locale
|
|
35766
35769
|
), /* @__PURE__ */ c.jsx(FAe, { i18n: Gc, children: /* @__PURE__ */ c.jsx(J_e, { client: i, children: /* @__PURE__ */ c.jsx(xp.Provider, { value: o, children: /* @__PURE__ */ c.jsx(lb.Provider, { value: t, children: /* @__PURE__ */ c.jsx(cb.Provider, { value: a, children: n }) }) }) }) });
|
|
35767
35770
|
};
|
|
35768
|
-
function
|
|
35771
|
+
function ypt(e, t) {
|
|
35769
35772
|
return {
|
|
35770
35773
|
...e,
|
|
35771
35774
|
render: (a) => e.render({ ...a, ...t })
|
|
@@ -35927,7 +35930,7 @@ function pFe() {
|
|
|
35927
35930
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
35928
35931
|
return e.length !== t.length || e.some((a, n) => !Object.is(a, t[n]));
|
|
35929
35932
|
}
|
|
35930
|
-
var hf = "Progress", gf = 100, [fFe,
|
|
35933
|
+
var hf = "Progress", gf = 100, [fFe, vpt] = Ua(hf), [hFe, gFe] = fFe(hf), JSe = x.forwardRef(
|
|
35931
35934
|
(e, t) => {
|
|
35932
35935
|
const {
|
|
35933
35936
|
__scopeProgress: a,
|
|
@@ -37215,7 +37218,7 @@ var js = u$e.exports, xIe = Object.freeze({
|
|
|
37215
37218
|
)
|
|
37216
37219
|
);
|
|
37217
37220
|
p$e.displayName = wIe;
|
|
37218
|
-
var CIe = p$e, [Vd,
|
|
37221
|
+
var CIe = p$e, [Vd, kpt] = Ua("Tooltip", [
|
|
37219
37222
|
Hs
|
|
37220
37223
|
]), Bd = Hs(), f$e = "TooltipProvider", TIe = 700, m1 = "tooltip.open", [LIe, bf] = Vd(f$e), h$e = (e) => {
|
|
37221
37224
|
const {
|
|
@@ -37332,7 +37335,7 @@ var b1 = "TooltipTrigger", m$e = x.forwardRef(
|
|
|
37332
37335
|
}
|
|
37333
37336
|
);
|
|
37334
37337
|
m$e.displayName = b1;
|
|
37335
|
-
var PIe = "TooltipPortal", [
|
|
37338
|
+
var PIe = "TooltipPortal", [Spt, MIe] = Vd(PIe, {
|
|
37336
37339
|
forceMount: void 0
|
|
37337
37340
|
}), Ns = "TooltipContent", b$e = x.forwardRef(
|
|
37338
37341
|
(e, t) => {
|
|
@@ -37676,7 +37679,7 @@ function YIe(e) {
|
|
|
37676
37679
|
const t = x.useRef({ value: e, previous: e });
|
|
37677
37680
|
return x.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
37678
37681
|
}
|
|
37679
|
-
var Kd = "Switch", [ZIe,
|
|
37682
|
+
var Kd = "Switch", [ZIe, $pt] = Ua(Kd), [XIe, JIe] = ZIe(Kd), T$e = x.forwardRef(
|
|
37680
37683
|
(e, t) => {
|
|
37681
37684
|
const {
|
|
37682
37685
|
__scopeSwitch: a,
|
|
@@ -37836,7 +37839,7 @@ const tOe = () => {
|
|
|
37836
37839
|
] })
|
|
37837
37840
|
] }) });
|
|
37838
37841
|
};
|
|
37839
|
-
var j$e = "AlertDialog", [aOe,
|
|
37842
|
+
var j$e = "AlertDialog", [aOe, xpt] = Ua(j$e, [
|
|
37840
37843
|
Lke
|
|
37841
37844
|
]), mi = Lke(), N$e = (e) => {
|
|
37842
37845
|
const { __scopeAlertDialog: t, ...a } = e, n = mi(t);
|
|
@@ -49864,7 +49867,7 @@ const Oit = ({ field: e, value: t, onChange: a }) => {
|
|
|
49864
49867
|
metadata: r
|
|
49865
49868
|
}
|
|
49866
49869
|
);
|
|
49867
|
-
}, Zit = new ya(),
|
|
49870
|
+
}, Zit = new ya(), wpt = ({
|
|
49868
49871
|
document: e,
|
|
49869
49872
|
componentRegistry: t,
|
|
49870
49873
|
themeConfig: a,
|
|
@@ -60447,15 +60450,15 @@ function bot() {
|
|
|
60447
60450
|
}
|
|
60448
60451
|
var yot = bot(), vot = /* @__PURE__ */ fot(yot);
|
|
60449
60452
|
const {
|
|
60450
|
-
AsYouType:
|
|
60451
|
-
getCountryCodeForRegionCode:
|
|
60452
|
-
getRegionCodeForCountryCode:
|
|
60453
|
-
getSupportedCallingCodes:
|
|
60454
|
-
getSupportedRegionCodes:
|
|
60455
|
-
findNumbers:
|
|
60456
|
-
getExample:
|
|
60457
|
-
getAsYouType:
|
|
60458
|
-
getNumberFrom:
|
|
60453
|
+
AsYouType: Cpt,
|
|
60454
|
+
getCountryCodeForRegionCode: Tpt,
|
|
60455
|
+
getRegionCodeForCountryCode: Lpt,
|
|
60456
|
+
getSupportedCallingCodes: Apt,
|
|
60457
|
+
getSupportedRegionCodes: Ppt,
|
|
60458
|
+
findNumbers: Mpt,
|
|
60459
|
+
getExample: Ept,
|
|
60460
|
+
getAsYouType: jpt,
|
|
60461
|
+
getNumberFrom: Npt,
|
|
60459
60462
|
parsePhoneNumber: kot
|
|
60460
60463
|
} = vot, xl = (e) => {
|
|
60461
60464
|
const t = Qwe(
|
|
@@ -68136,7 +68139,7 @@ var Kct = "MenuArrow", sTe = x.forwardRef(
|
|
|
68136
68139
|
}
|
|
68137
68140
|
);
|
|
68138
68141
|
sTe.displayName = Kct;
|
|
68139
|
-
var qct = "MenuSub", [
|
|
68142
|
+
var qct = "MenuSub", [_pt, rTe] = Co(qct), Lr = "MenuSubTrigger", lTe = x.forwardRef(
|
|
68140
68143
|
(e, t) => {
|
|
68141
68144
|
const a = To(Lr, e.__scopeMenu), n = Ml(Lr, e.__scopeMenu), i = rTe(Lr, e.__scopeMenu), o = Mh(Lr, e.__scopeMenu), s = x.useRef(null), { pointerGraceTimerRef: r, onPointerGraceIntentChange: l } = o, d = { __scopeMenu: e.__scopeMenu }, u = x.useCallback(() => {
|
|
68142
68145
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
@@ -68286,7 +68289,7 @@ function Qct(e, t) {
|
|
|
68286
68289
|
function Yr(e) {
|
|
68287
68290
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
68288
68291
|
}
|
|
68289
|
-
var edt = UCe, tdt = Ah, adt = qCe, ndt = YCe, idt = jh, odt = ZCe, sdt = mu, rdt = JCe, ldt = eTe, cdt = aTe, ddt = iTe, udt = oTe, pdt = sTe, fdt = lTe, hdt = dTe, bu = "DropdownMenu", [gdt,
|
|
68292
|
+
var edt = UCe, tdt = Ah, adt = qCe, ndt = YCe, idt = jh, odt = ZCe, sdt = mu, rdt = JCe, ldt = eTe, cdt = aTe, ddt = iTe, udt = oTe, pdt = sTe, fdt = lTe, hdt = dTe, bu = "DropdownMenu", [gdt, Fpt] = Ua(
|
|
68290
68293
|
bu,
|
|
68291
68294
|
[BCe]
|
|
68292
68295
|
), Sa = BCe(), [mdt, pTe] = gdt(bu), Fh = (e) => {
|
|
@@ -68615,7 +68618,7 @@ var Zdt = x.forwardRef((e, t) => {
|
|
|
68615
68618
|
function zh(e) {
|
|
68616
68619
|
return e ? "open" : "closed";
|
|
68617
68620
|
}
|
|
68618
|
-
var Xdt = bTe, Jdt = vTe, Qdt = kTe, wn = "Accordion", eut = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Wh, tut, aut] = Th(wn), [vu,
|
|
68621
|
+
var Xdt = bTe, Jdt = vTe, Qdt = kTe, wn = "Accordion", eut = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Wh, tut, aut] = Th(wn), [vu, Ipt] = Ua(wn, [
|
|
68619
68622
|
aut,
|
|
68620
68623
|
mTe
|
|
68621
68624
|
]), Vh = mTe(), STe = w.forwardRef(
|
|
@@ -75166,7 +75169,7 @@ const RTe = 1e3, DTe = 570, c1t = `https://placehold.co/${RTe}x${DTe}/png`, j0 =
|
|
|
75166
75169
|
...wu,
|
|
75167
75170
|
...Su,
|
|
75168
75171
|
...mCe
|
|
75169
|
-
},
|
|
75172
|
+
}, Opt = {
|
|
75170
75173
|
components: G1t,
|
|
75171
75174
|
categories: {
|
|
75172
75175
|
pageSections: {
|
|
@@ -75197,7 +75200,7 @@ const RTe = 1e3, DTe = 570, c1t = `https://placehold.co/${RTe}x${DTe}/png`, j0 =
|
|
|
75197
75200
|
}
|
|
75198
75201
|
)
|
|
75199
75202
|
}
|
|
75200
|
-
},
|
|
75203
|
+
}, Rpt = {
|
|
75201
75204
|
components: {
|
|
75202
75205
|
...vCe,
|
|
75203
75206
|
...wu,
|
|
@@ -75227,7 +75230,7 @@ const RTe = 1e3, DTe = 570, c1t = `https://placehold.co/${RTe}x${DTe}/png`, j0 =
|
|
|
75227
75230
|
}
|
|
75228
75231
|
)
|
|
75229
75232
|
}
|
|
75230
|
-
},
|
|
75233
|
+
}, Dpt = {
|
|
75231
75234
|
components: {
|
|
75232
75235
|
...kCe,
|
|
75233
75236
|
...wu,
|
|
@@ -75319,7 +75322,7 @@ const RTe = 1e3, DTe = 570, c1t = `https://placehold.co/${RTe}x${DTe}/png`, j0 =
|
|
|
75319
75322
|
),
|
|
75320
75323
|
/* @__PURE__ */ c.jsx(n, { disallow: [...$u, ...BTe] })
|
|
75321
75324
|
] });
|
|
75322
|
-
},
|
|
75325
|
+
}, Hpt = {
|
|
75323
75326
|
label: "Section Container",
|
|
75324
75327
|
fields: U1t,
|
|
75325
75328
|
defaultProps: {
|
|
@@ -75350,7 +75353,7 @@ const RTe = 1e3, DTe = 570, c1t = `https://placehold.co/${RTe}x${DTe}/png`, j0 =
|
|
|
75350
75353
|
}, ti = tPe(GTe), ai = (e) => () => iPe({
|
|
75351
75354
|
fontCssVariable: e,
|
|
75352
75355
|
fontList: GTe
|
|
75353
|
-
}),
|
|
75356
|
+
}), zpt = {
|
|
75354
75357
|
palette: {
|
|
75355
75358
|
label: b("theme.colors.colors", "Colors"),
|
|
75356
75359
|
styles: {
|
|
@@ -75711,14 +75714,14 @@ export {
|
|
|
75711
75714
|
Ast as Directory,
|
|
75712
75715
|
Pst as DirectoryCategory,
|
|
75713
75716
|
vCe as DirectoryCategoryComponents,
|
|
75714
|
-
|
|
75717
|
+
wpt as Editor,
|
|
75715
75718
|
cxe as EmbeddedFieldStringInput,
|
|
75716
75719
|
ve as EntityField,
|
|
75717
75720
|
jut as EventSection,
|
|
75718
75721
|
pct as ExpandedFooter,
|
|
75719
75722
|
$ut as ExpandedHeader,
|
|
75720
75723
|
v1t as FAQSection,
|
|
75721
|
-
|
|
75724
|
+
fpt as FontSizeSelector,
|
|
75722
75725
|
act as Footer,
|
|
75723
75726
|
fut as Header,
|
|
75724
75727
|
lt as Heading,
|
|
@@ -75746,7 +75749,7 @@ export {
|
|
|
75746
75749
|
t0t as PromoSection,
|
|
75747
75750
|
vh as ReviewStars,
|
|
75748
75751
|
M1t as ReviewsSection,
|
|
75749
|
-
|
|
75752
|
+
Hpt as SectionContainer,
|
|
75750
75753
|
mm as SpacingSelector,
|
|
75751
75754
|
z1t as StaticMapSection,
|
|
75752
75755
|
cb as TailwindConfigContext,
|
|
@@ -75762,8 +75765,8 @@ export {
|
|
|
75762
75765
|
nCe as Video,
|
|
75763
75766
|
B1t as VideoSection,
|
|
75764
75767
|
Gt as VisibilityWrapper,
|
|
75765
|
-
|
|
75766
|
-
|
|
75768
|
+
gpt as VisualEditorComponentsContentPath,
|
|
75769
|
+
bpt as VisualEditorProvider,
|
|
75767
75770
|
x1 as YextEntityFieldSelector,
|
|
75768
75771
|
P as YextField,
|
|
75769
75772
|
yxe as YextStructFieldSelector,
|
|
@@ -75778,9 +75781,9 @@ export {
|
|
|
75778
75781
|
L_e as createSearchAnalyticsConfig,
|
|
75779
75782
|
T_e as createSearchHeadlessConfig,
|
|
75780
75783
|
Rn as defaultFonts,
|
|
75781
|
-
|
|
75782
|
-
|
|
75783
|
-
|
|
75784
|
+
zpt as defaultThemeConfig,
|
|
75785
|
+
hpt as defaultThemeTailwindExtensions,
|
|
75786
|
+
Rpt as directoryConfig,
|
|
75784
75787
|
BAe as fetchLocalesToPathsForEntity,
|
|
75785
75788
|
UAe as fetchNearbyLocations,
|
|
75786
75789
|
YAe as fetchReviewsForEntity,
|
|
@@ -75788,17 +75791,18 @@ export {
|
|
|
75788
75791
|
eot as filterMaxWidths,
|
|
75789
75792
|
aCe as getAggregateRating,
|
|
75790
75793
|
Wn as getAnalyticsScopeHash,
|
|
75794
|
+
cpt as getCanonicalUrl,
|
|
75791
75795
|
iPe as getFontWeightOptions,
|
|
75792
75796
|
rpt as getFontWeightOverrideOptions,
|
|
75793
75797
|
Qit as getMaxWidthOptions,
|
|
75794
|
-
|
|
75795
|
-
|
|
75798
|
+
dpt as getPageMetadata,
|
|
75799
|
+
upt as getSchema,
|
|
75796
75800
|
cot as headingVariants,
|
|
75797
75801
|
Gc as i18nComponentsInstance,
|
|
75798
75802
|
sl as i18nPlatformInstance,
|
|
75799
75803
|
xo as imgSizesHelper,
|
|
75800
|
-
|
|
75801
|
-
|
|
75804
|
+
Dpt as locatorConfig,
|
|
75805
|
+
Opt as mainConfig,
|
|
75802
75806
|
ff as mergeMeta,
|
|
75803
75807
|
zr as migrate,
|
|
75804
75808
|
Es as migrationRegistry,
|
|
@@ -75812,7 +75816,7 @@ export {
|
|
|
75812
75816
|
Os as resolveYextStructField,
|
|
75813
75817
|
ze as themeManagerCn,
|
|
75814
75818
|
RPe as themeManagerTwMergeConfiguration,
|
|
75815
|
-
|
|
75819
|
+
mpt as themeResolver,
|
|
75816
75820
|
Fs as useBackground,
|
|
75817
75821
|
$e as useDocument,
|
|
75818
75822
|
Pd as useEntityFields,
|
|
@@ -75822,5 +75826,5 @@ export {
|
|
|
75822
75826
|
rl as usePlatformTranslation,
|
|
75823
75827
|
db as useTailwindConfig,
|
|
75824
75828
|
ol as useTemplateProps,
|
|
75825
|
-
|
|
75829
|
+
ypt as withPropOverrides
|
|
75826
75830
|
};
|