easy-email-extensions 4.0.0-alpha.6 → 4.0.0-alpha.9

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index2.js CHANGED
@@ -42960,19 +42960,6 @@ function Social() {
42960
42960
  }, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
42961
42961
  defaultActiveKey: ["0", "1", "2", "3"]
42962
42962
  }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
42963
- name: "2",
42964
- header: "Social item",
42965
- contentStyle: { padding: 10 }
42966
- }, /* @__PURE__ */ React__default.createElement(EditGridTabField, {
42967
- tabPosition: "top",
42968
- name: `${focusIdx2}.data.value.elements`,
42969
- label: "",
42970
- labelHidden: true,
42971
- renderItem: (item2, index2) => /* @__PURE__ */ React__default.createElement(SocialElement, {
42972
- item: item2,
42973
- index: index2
42974
- })
42975
- })), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
42976
42963
  name: "1",
42977
42964
  header: "Setting"
42978
42965
  }, /* @__PURE__ */ React__default.createElement(Space$1, {
@@ -43009,6 +42996,19 @@ function Social() {
43009
42996
  offset: 1,
43010
42997
  span: 11
43011
42998
  }, /* @__PURE__ */ React__default.createElement(FontStyle, null))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
42999
+ name: "2",
43000
+ header: "Social item",
43001
+ contentStyle: { padding: 10 }
43002
+ }, /* @__PURE__ */ React__default.createElement(EditGridTabField, {
43003
+ tabPosition: "top",
43004
+ name: `${focusIdx2}.data.value.elements`,
43005
+ label: "",
43006
+ labelHidden: true,
43007
+ renderItem: (item2, index2) => /* @__PURE__ */ React__default.createElement(SocialElement, {
43008
+ item: item2,
43009
+ index: index2
43010
+ })
43011
+ })), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
43012
43012
  name: "0",
43013
43013
  header: "Dimension"
43014
43014
  }, /* @__PURE__ */ React__default.createElement(Space$1, {
@@ -43027,7 +43027,7 @@ function Social() {
43027
43027
  name: `${focusIdx2}.attributes.border-radius`
43028
43028
  }))), /* @__PURE__ */ React__default.createElement(Padding, null), /* @__PURE__ */ React__default.createElement(Padding, {
43029
43029
  attributeName: "inner-padding",
43030
- title: "Inner padding"
43030
+ title: "Icon padding"
43031
43031
  }), /* @__PURE__ */ React__default.createElement(Padding, {
43032
43032
  attributeName: "text-padding",
43033
43033
  title: "Text padding"
@@ -43324,6 +43324,7 @@ function BasicTools() {
43324
43324
  const { copyBlock, removeBlock } = useBlock();
43325
43325
  const { focusIdx: focusIdx2, setFocusIdx } = useFocusIdx();
43326
43326
  const { modal, setModalVisible } = useAddToCollection();
43327
+ const { onAddCollection } = useEditorProps();
43327
43328
  const handleAddToCollection = () => {
43328
43329
  if (document.activeElement instanceof HTMLElement) {
43329
43330
  document.activeElement.blur();
@@ -43364,7 +43365,7 @@ function BasicTools() {
43364
43365
  icon: /* @__PURE__ */ React__default.createElement(IconFont, {
43365
43366
  iconName: "icon-copy"
43366
43367
  })
43367
- }), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
43368
+ }), onAddCollection && /* @__PURE__ */ React__default.createElement(ToolItem$1, {
43368
43369
  onClick: handleAddToCollection,
43369
43370
  title: "Add to collection",
43370
43371
  icon: /* @__PURE__ */ React__default.createElement(IconFont, {