easy-email-pro-theme 1.33.0 → 1.33.2
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/lib/index.js
CHANGED
|
@@ -38283,6 +38283,12 @@ function Preheader(props) {
|
|
|
38283
38283
|
);
|
|
38284
38284
|
}, [props]);
|
|
38285
38285
|
}
|
|
38286
|
+
function ButtonContent(props) {
|
|
38287
|
+
const { label = t("Content") } = props;
|
|
38288
|
+
return useMemo$1(() => {
|
|
38289
|
+
return /* @__PURE__ */ React__default.createElement(AttributeField.TextField, { path: props.path, name: "text", label });
|
|
38290
|
+
}, [label, props]);
|
|
38291
|
+
}
|
|
38286
38292
|
const defaultAttributeFields = {
|
|
38287
38293
|
// Basic Form Field
|
|
38288
38294
|
WatchField,
|
|
@@ -38331,6 +38337,7 @@ const defaultAttributeFields = {
|
|
|
38331
38337
|
Typography,
|
|
38332
38338
|
TextAndHeadingList,
|
|
38333
38339
|
Buttons,
|
|
38340
|
+
ButtonContent,
|
|
38334
38341
|
ButtonCategory,
|
|
38335
38342
|
WebFonts,
|
|
38336
38343
|
RichTextField,
|
|
@@ -39056,7 +39063,7 @@ function AttributesContainer$c({
|
|
|
39056
39063
|
if (!selectedNode)
|
|
39057
39064
|
return null;
|
|
39058
39065
|
return /* @__PURE__ */ React__default.createElement(CollapseWrapper$1, { defaultActiveKey: ["0", "1", "2", "3", "4"] }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "3", header: t("Content") }, /* @__PURE__ */ React__default.createElement(
|
|
39059
|
-
AttributeField.
|
|
39066
|
+
AttributeField.ButtonContent,
|
|
39060
39067
|
{
|
|
39061
39068
|
path: textPath,
|
|
39062
39069
|
name: "text",
|
|
@@ -40618,6 +40625,7 @@ const ConfigurationSideBar = ({ height }) => {
|
|
|
40618
40625
|
}
|
|
40619
40626
|
));
|
|
40620
40627
|
}
|
|
40628
|
+
const isPageNode = selectedNodePath && Path.equals(selectedNodePath, [0]);
|
|
40621
40629
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
40622
40630
|
Tabs,
|
|
40623
40631
|
{
|
|
@@ -40630,9 +40638,9 @@ const ConfigurationSideBar = ({ height }) => {
|
|
|
40630
40638
|
{
|
|
40631
40639
|
height: `calc(${height} - 60px)`
|
|
40632
40640
|
},
|
|
40633
|
-
/* @__PURE__ */ React__default.createElement(SharedComponents.AttributePanel, null)
|
|
40641
|
+
isPageNode && /* @__PURE__ */ React__default.createElement(SharedComponents.AttributePanel, null)
|
|
40634
40642
|
))
|
|
40635
|
-
), /* @__PURE__ */ React__default.createElement(
|
|
40643
|
+
), !isPageNode && /* @__PURE__ */ React__default.createElement(
|
|
40636
40644
|
ConfigurationDrawer,
|
|
40637
40645
|
{
|
|
40638
40646
|
height: `calc(${height} - 60px)`,
|
|
@@ -45339,6 +45347,7 @@ export {
|
|
|
45339
45347
|
ResponsiveTabs,
|
|
45340
45348
|
Retro,
|
|
45341
45349
|
SharedComponents,
|
|
45350
|
+
enhancer,
|
|
45342
45351
|
getMergeTagsByType,
|
|
45343
45352
|
mjmlToJson,
|
|
45344
45353
|
previewLoadImage,
|
|
@@ -33,6 +33,7 @@ import { ImageWidth } from "./ImageWidth";
|
|
|
33
33
|
import { Direction } from "./Direction";
|
|
34
34
|
import { FieldItem } from "../WidgetConfigPanel/widgetFields";
|
|
35
35
|
import { Preheader } from "./Preheader";
|
|
36
|
+
import { ButtonContent } from "./ButtonContent";
|
|
36
37
|
export declare const defaultAttributeFields: {
|
|
37
38
|
WatchField: (props: import("../../../Form/WatchField").WatchFieldProps) => import("react").JSX.Element;
|
|
38
39
|
SyncChildrenField: (props: import("../../../Form/SyncChildrenField").SyncChildrenFieldProps) => import("react").JSX.Element;
|
|
@@ -104,6 +105,7 @@ export declare const defaultAttributeFields: {
|
|
|
104
105
|
Typography: typeof Typography;
|
|
105
106
|
TextAndHeadingList: typeof TextAndHeadingList;
|
|
106
107
|
Buttons: typeof Buttons;
|
|
108
|
+
ButtonContent: typeof ButtonContent;
|
|
107
109
|
ButtonCategory: typeof ButtonCategory;
|
|
108
110
|
WebFonts: typeof WebFonts;
|
|
109
111
|
RichTextField: (props: import("../../../Form/enhancer").EnhancerProps & Omit<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WidgetConfigPanel } from "./ConfigurationPanel/components/WidgetConfigPanel";
|
|
3
|
+
export { enhancer } from "./Form";
|
|
3
4
|
export * from "./Providers";
|
|
4
5
|
export declare const SharedComponents: {
|
|
5
6
|
PreviewEmailDrawer: ({ children, }: {
|