@yext/visual-editor 0.0.17 → 0.0.18
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/{debugger-C-GK2f4q-8oHFLsRA.cjs → debugger-C-GK2f4q--U70tA3w.cjs} +1 -1
- package/dist/{debugger-C-GK2f4q-CXC-jEGs.js → debugger-C-GK2f4q-DouP2OQY.js} +1 -1
- package/dist/{index-DYLhnejE.cjs → index-BC8EbMY5.cjs} +3 -3
- package/dist/{index-gaSBBVcH.js → index-BMCKPRVM.js} +2 -5
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/visual-editor.cjs +1 -1
- package/dist/visual-editor.js +6 -6
- package/package.json +1 -1
|
@@ -15863,10 +15863,7 @@ const tV = ({ field: e, value: t, onChange: n }) => {
|
|
|
15863
15863
|
if (!t)
|
|
15864
15864
|
return /* @__PURE__ */ re.jsx("div", { children: /* @__PURE__ */ re.jsx(ng, { children: /* @__PURE__ */ re.jsx(rg, { children: "Please contact your developer to set up theme management." }) }) });
|
|
15865
15865
|
const [o, i] = ee.useState(
|
|
15866
|
-
Object.keys(t).reduce(
|
|
15867
|
-
(g, _) => ({ ...g, [_]: !1 }),
|
|
15868
|
-
{}
|
|
15869
|
-
)
|
|
15866
|
+
Object.keys(t).reduce((g, _) => ({ ...g, [_]: !0 }), {})
|
|
15870
15867
|
), a = (g) => {
|
|
15871
15868
|
i((_) => ({
|
|
15872
15869
|
..._,
|
|
@@ -18577,7 +18574,7 @@ class C9 {
|
|
|
18577
18574
|
}
|
|
18578
18575
|
}
|
|
18579
18576
|
const w9 = () => new C9(), T9 = Lu(null);
|
|
18580
|
-
q1(() => import("./debugger-C-GK2f4q-
|
|
18577
|
+
q1(() => import("./debugger-C-GK2f4q-DouP2OQY.js"));
|
|
18581
18578
|
const N9 = Lu({ name: "" }), S9 = () => Pg(N9).name;
|
|
18582
18579
|
function O9() {
|
|
18583
18580
|
const e = Pg(T9);
|
package/dist/index.d.cts
CHANGED
|
@@ -330,7 +330,7 @@ interface HeadingTextProps extends HeadingProps {
|
|
|
330
330
|
}
|
|
331
331
|
declare const HeadingTextComponent: ComponentConfig<HeadingTextProps>;
|
|
332
332
|
|
|
333
|
-
type
|
|
333
|
+
type HoursTableProps = {
|
|
334
334
|
hours: YextEntityField<HoursType>;
|
|
335
335
|
startOfWeek: keyof DayOfWeekNames | "today";
|
|
336
336
|
collapseDays: boolean;
|
|
@@ -338,7 +338,7 @@ type HoursCardProps = {
|
|
|
338
338
|
alignment: "items-start" | "items-center";
|
|
339
339
|
padding: VariantProps<typeof sectionVariants>["padding"];
|
|
340
340
|
};
|
|
341
|
-
declare const
|
|
341
|
+
declare const HoursTableComponent: ComponentConfig<HoursTableProps>;
|
|
342
342
|
|
|
343
343
|
interface HoursStatusProps {
|
|
344
344
|
hours: YextEntityField<HoursType>;
|
|
@@ -411,4 +411,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
411
411
|
}
|
|
412
412
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
413
413
|
|
|
414
|
-
export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps,
|
|
414
|
+
export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, yextCn };
|
package/dist/index.d.ts
CHANGED
|
@@ -330,7 +330,7 @@ interface HeadingTextProps extends HeadingProps {
|
|
|
330
330
|
}
|
|
331
331
|
declare const HeadingTextComponent: ComponentConfig<HeadingTextProps>;
|
|
332
332
|
|
|
333
|
-
type
|
|
333
|
+
type HoursTableProps = {
|
|
334
334
|
hours: YextEntityField<HoursType>;
|
|
335
335
|
startOfWeek: keyof DayOfWeekNames | "today";
|
|
336
336
|
collapseDays: boolean;
|
|
@@ -338,7 +338,7 @@ type HoursCardProps = {
|
|
|
338
338
|
alignment: "items-start" | "items-center";
|
|
339
339
|
padding: VariantProps<typeof sectionVariants>["padding"];
|
|
340
340
|
};
|
|
341
|
-
declare const
|
|
341
|
+
declare const HoursTableComponent: ComponentConfig<HoursTableProps>;
|
|
342
342
|
|
|
343
343
|
interface HoursStatusProps {
|
|
344
344
|
hours: YextEntityField<HoursType>;
|
|
@@ -411,4 +411,4 @@ interface TextListProps extends VariantProps<typeof textListVariants> {
|
|
|
411
411
|
}
|
|
412
412
|
declare const TextListComponent: ComponentConfig<TextListProps>;
|
|
413
413
|
|
|
414
|
-
export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps,
|
|
414
|
+
export { AddressComponent as Address, type AddressProps, Body, type BodyProps, BodyTextComponent as BodyText, type BodyTextProps, Button, type ButtonProps, CTA, type CTAProps, CTAWrapperComponent as CTAWrapper, type CTAWrapperProps, DocumentContext, Editor, EmailsComponent as Emails, type EmailsProps, EntityField, FlexContainerComponent as FlexContainer, type FlexContainerProps, type FontRegistry, FontSizeSelector, GetDirectionsComponent as GetDirections, type GetDirectionsProps, GridSectionComponent as GridSection, type GridSectionProps, Heading, type HeadingProps, HeadingTextComponent as HeadingText, type HeadingTextProps, HoursStatusComponent as HoursStatus, type HoursStatusProps, HoursTableComponent as HoursTable, type HoursTableProps, ImageWrapperComponent as ImageWrapper, type ImageWrapperProps, NumberFieldWithDefaultOption, type NumberFieldWithDefaultOptionProps, type NumberOrDefault, PhoneComponent as Phone, type PhoneProps, PromoComponent as Promo, type PromoProps, type RenderYextEntityFieldSelectorProps, Section, type SectionProps, TailwindConfigContext, TextListComponent as TextList, type TextListProps, type ThemeConfig, VisualEditorProvider, type YextEntityField, YextEntityFieldSelector, applyTheme, bodyVariants, buttonVariants, constructFontSelectOptions, defaultFonts, getFontWeightOptions, getFontWeightOverrideOptions, headingVariants, resolveVisualEditorData, resolveYextEntityField, sectionVariants, themeResolver, useDocument, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields, useTailwindConfig, yextCn };
|
package/dist/visual-editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BC8EbMY5.cjs");exports.Address=e.AddressComponent;exports.Body=e.Body;exports.BodyText=e.BodyTextComponent;exports.Button=e.Button;exports.CTA=e.CTA;exports.CTAWrapper=e.CTAWrapperComponent;exports.DocumentContext=e.DocumentContext;exports.Editor=e.Editor;exports.Emails=e.EmailsComponent;exports.EntityField=e.EntityField;exports.FlexContainer=e.FlexContainerComponent;exports.FontSizeSelector=e.FontSizeSelector;exports.GetDirections=e.GetDirectionsComponent;exports.GridSection=e.GridSectionComponent;exports.Heading=e.Heading;exports.HeadingText=e.HeadingTextComponent;exports.HoursStatus=e.HoursStatusComponent;exports.HoursTable=e.HoursTableComponent;exports.ImageWrapper=e.ImageWrapperComponent;exports.NumberFieldWithDefaultOption=e.NumberFieldWithDefaultOption;exports.Phone=e.PhoneComponent;exports.Promo=e.PromoComponent;exports.Section=e.Section;exports.TailwindConfigContext=e.TailwindConfigContext;exports.TextList=e.TextListComponent;exports.VisualEditorProvider=e.VisualEditorProvider;exports.YextEntityFieldSelector=e.YextEntityFieldSelector;exports.applyTheme=e.applyTheme;exports.bodyVariants=e.bodyVariants;exports.buttonVariants=e.buttonVariants;exports.constructFontSelectOptions=e.constructFontSelectOptions;exports.defaultFonts=e.defaultFonts;exports.getFontWeightOptions=e.getFontWeightOptions;exports.getFontWeightOverrideOptions=e.getFontWeightOverrideOptions;exports.headingVariants=e.headingVariants;exports.resolveVisualEditorData=e.resolveVisualEditorData;exports.resolveYextEntityField=e.resolveYextEntityField;exports.sectionVariants=e.sectionVariants;exports.themeResolver=e.themeResolver;exports.useDocument=e.useDocument;exports.useEntityFields=e.useEntityFields;exports.usePlatformBridgeDocument=e.usePlatformBridgeDocument;exports.usePlatformBridgeEntityFields=e.usePlatformBridgeEntityFields;exports.useTailwindConfig=e.useTailwindConfig;exports.yextCn=e.yextCn;
|
package/dist/visual-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as t, w as e, B as i, z as o, L as n, C as r, D as d, E as l, m as u, k as c, n as g, F as m, G as F, o as p, M as x, H as y,
|
|
1
|
+
import { A as t, w as e, B as i, z as o, L as n, C as r, D as d, E as l, m as u, k as c, n as g, F as m, G as F, o as p, M as x, H as y, q as E, p as T, I as C, N as f, P as h, s as S, S as D, T as V, v, V as B, Y as O, e as P, x as b, K as H, j as W, g as A, h as w, i as G, O as Y, r as z, f as I, Q as L, t as N, c as j, a as k, u as q, b as K, d as M, y as Q } from "./index-BMCKPRVM.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Address,
|
|
4
4
|
e as Body,
|
|
@@ -16,9 +16,9 @@ export {
|
|
|
16
16
|
p as GridSection,
|
|
17
17
|
x as Heading,
|
|
18
18
|
y as HeadingText,
|
|
19
|
-
C as HoursCard,
|
|
20
19
|
E as HoursStatus,
|
|
21
|
-
T as
|
|
20
|
+
T as HoursTable,
|
|
21
|
+
C as ImageWrapper,
|
|
22
22
|
f as NumberFieldWithDefaultOption,
|
|
23
23
|
h as Phone,
|
|
24
24
|
S as Promo,
|
|
@@ -28,9 +28,9 @@ export {
|
|
|
28
28
|
B as VisualEditorProvider,
|
|
29
29
|
O as YextEntityFieldSelector,
|
|
30
30
|
P as applyTheme,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
b as bodyVariants,
|
|
32
|
+
H as buttonVariants,
|
|
33
|
+
W as constructFontSelectOptions,
|
|
34
34
|
A as defaultFonts,
|
|
35
35
|
w as getFontWeightOptions,
|
|
36
36
|
G as getFontWeightOverrideOptions,
|