easy-email-extensions 4.4.3 → 4.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/BlockLayer/index.d.ts +1 -1
- package/lib/index2.js +16 -13
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
@@ -10,4 +10,4 @@ export interface IBlockDataWithId extends IBlockData {
|
|
10
10
|
export interface BlockLayerProps {
|
11
11
|
renderTitle?: (block: IBlockDataWithId) => React.ReactNode;
|
12
12
|
}
|
13
|
-
export declare function BlockLayer(props: BlockLayerProps): JSX.Element
|
13
|
+
export declare function BlockLayer(props: BlockLayerProps): JSX.Element;
|
package/lib/index2.js
CHANGED
@@ -33654,7 +33654,7 @@ function Page() {
|
|
33654
33654
|
}), /* @__PURE__ */ React__default.createElement(Stack$4.Item, null), /* @__PURE__ */ React__default.createElement(Stack$4.Item, null), /* @__PURE__ */ React__default.createElement(AddFont, null), /* @__PURE__ */ React__default.createElement(Stack$4.Item, null), /* @__PURE__ */ React__default.createElement(Stack$4.Item, null))))));
|
33655
33655
|
}
|
33656
33656
|
function Padding(props = {}) {
|
33657
|
-
const { title: title2 = "Padding", attributeName = "padding", name: name2 } = props;
|
33657
|
+
const { title: title2 = t("Padding"), attributeName = "padding", name: name2 } = props;
|
33658
33658
|
const { focusBlock: focusBlock2, change, values: values2 } = useBlock();
|
33659
33659
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
33660
33660
|
const type = focusBlock2 && focusBlock2.type;
|
@@ -34405,21 +34405,27 @@ function Color({ title: title2 = "Color" }) {
|
|
34405
34405
|
const options$6 = [
|
34406
34406
|
{
|
34407
34407
|
value: "left",
|
34408
|
-
label
|
34408
|
+
get label() {
|
34409
|
+
return t("left");
|
34410
|
+
}
|
34409
34411
|
},
|
34410
34412
|
{
|
34411
34413
|
value: "center",
|
34412
|
-
label
|
34414
|
+
get label() {
|
34415
|
+
return t("center");
|
34416
|
+
}
|
34413
34417
|
},
|
34414
34418
|
{
|
34415
34419
|
value: "right",
|
34416
|
-
label
|
34420
|
+
get label() {
|
34421
|
+
return t("right");
|
34422
|
+
}
|
34417
34423
|
}
|
34418
34424
|
];
|
34419
34425
|
function Align({ inline }) {
|
34420
34426
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34421
34427
|
return /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34422
|
-
label: "Align",
|
34428
|
+
label: t("Align"),
|
34423
34429
|
name: `${focusIdx2}.attributes.align`,
|
34424
34430
|
options: options$6
|
34425
34431
|
});
|
@@ -34738,7 +34744,7 @@ function TextAlign({ name: name2 }) {
|
|
34738
34744
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34739
34745
|
return useMemo(() => {
|
34740
34746
|
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34741
|
-
label: "Text align",
|
34747
|
+
label: t("Text align"),
|
34742
34748
|
name: name2 || `${focusIdx2}.attributes.text-align`,
|
34743
34749
|
options: options$5
|
34744
34750
|
}));
|
@@ -37300,9 +37306,6 @@ function BlockLayer(props) {
|
|
37300
37306
|
}
|
37301
37307
|
return keys2;
|
37302
37308
|
}, [focusIdx2]);
|
37303
|
-
const hasFocus = Boolean(focusIdx2);
|
37304
|
-
if (!hasFocus)
|
37305
|
-
return null;
|
37306
37309
|
return /* @__PURE__ */ React__default.createElement("div", __spreadValues({
|
37307
37310
|
ref: setBlockLayerRef,
|
37308
37311
|
id: "BlockLayerManager"
|
@@ -40003,11 +40006,11 @@ function TipNode(props) {
|
|
40003
40006
|
const { direction, title: title2, lineWidth, type } = props;
|
40004
40007
|
const dragTitle = useMemo(() => {
|
40005
40008
|
if (direction === "top" || direction === "noEnoughTop") {
|
40006
|
-
return `Insert before
|
40009
|
+
return t(`Insert before`, title2);
|
40007
40010
|
} else if (direction === "bottom") {
|
40008
|
-
return `Insert after
|
40011
|
+
return t(`Insert after`, title2);
|
40009
40012
|
} else if (direction === "right" || direction === "left") {
|
40010
|
-
return "Drag here";
|
40013
|
+
return t("Drag here");
|
40011
40014
|
}
|
40012
40015
|
return `Drag to ${title2}`;
|
40013
40016
|
}, [direction, title2]);
|
@@ -45716,7 +45719,7 @@ function EditPanel({ showSourceCode }) {
|
|
45716
45719
|
}, /* @__PURE__ */ React__default.createElement(DefaultHeader, null))
|
45717
45720
|
}, /* @__PURE__ */ React__default.createElement(TabPane, {
|
45718
45721
|
key: "2",
|
45719
|
-
title: "Block"
|
45722
|
+
title: t("Block")
|
45720
45723
|
}, /* @__PURE__ */ React__default.createElement(FullHeightOverlayScrollbars, {
|
45721
45724
|
height: `calc(${height} - 60px)`
|
45722
45725
|
}, /* @__PURE__ */ React__default.createElement(Blocks, null))), /* @__PURE__ */ React__default.createElement(TabPane, {
|