@groovymedia/easy-email-extensions 4.14.4 → 4.14.5

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.
@@ -1 +1 @@
1
- export declare function Toolbar(): JSX.Element | null;
1
+ export declare function Toolbar(): JSX.Element;
package/lib/index2.js CHANGED
@@ -36435,65 +36435,6 @@ function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }) {
36435
36435
  title: t("Text color")
36436
36436
  }));
36437
36437
  }
36438
- function BasicTools() {
36439
- const { copyBlock, removeBlock } = useBlock();
36440
- const { focusIdx: focusIdx2, setFocusIdx } = useFocusIdx();
36441
- const { modal, setModalVisible } = useAddToCollection();
36442
- const { onAddCollection } = useEditorProps();
36443
- const handleAddToCollection = () => {
36444
- if (document.activeElement instanceof HTMLElement) {
36445
- document.activeElement.blur();
36446
- }
36447
- setModalVisible(true);
36448
- };
36449
- const handleCopy = (ev) => {
36450
- if (document.activeElement instanceof HTMLElement) {
36451
- document.activeElement.blur();
36452
- }
36453
- copyBlock(focusIdx2);
36454
- };
36455
- const handleDelete = () => {
36456
- if (document.activeElement instanceof HTMLElement) {
36457
- document.activeElement.blur();
36458
- }
36459
- removeBlock(focusIdx2);
36460
- };
36461
- const handleSelectParent = () => {
36462
- if (document.activeElement instanceof HTMLElement) {
36463
- document.activeElement.blur();
36464
- }
36465
- setFocusIdx(getParentIdx(focusIdx2));
36466
- };
36467
- return /* @__PURE__ */ React__default.createElement("div", {
36468
- style: { marginRight: 40 }
36469
- }, /* @__PURE__ */ React__default.createElement("span", {
36470
- style: { position: "relative", marginRight: 10, color: "#fff", fontFamily: "-apple-system, BlinkMacSystemFont, San Francisco, Segoe UI" }
36471
- }, "Text"), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
36472
- onClick: handleSelectParent,
36473
- title: t("Select parent block"),
36474
- icon: /* @__PURE__ */ React__default.createElement(IconFont, {
36475
- iconName: "icon-back-parent"
36476
- })
36477
- }), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
36478
- onClick: handleCopy,
36479
- title: t("Copy"),
36480
- icon: /* @__PURE__ */ React__default.createElement(IconFont, {
36481
- iconName: "icon-copy"
36482
- })
36483
- }), onAddCollection && /* @__PURE__ */ React__default.createElement(ToolItem$1, {
36484
- onClick: handleAddToCollection,
36485
- title: t("Add to collection"),
36486
- icon: /* @__PURE__ */ React__default.createElement(IconFont, {
36487
- iconName: "icon-collection"
36488
- })
36489
- }), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
36490
- onClick: handleDelete,
36491
- title: t("Delete"),
36492
- icon: /* @__PURE__ */ React__default.createElement(IconFont, {
36493
- iconName: "icon-delete"
36494
- })
36495
- }), modal);
36496
- }
36497
36438
  function getAnchorElement(node) {
36498
36439
  if (!node)
36499
36440
  return null;
@@ -36821,7 +36762,7 @@ function Tools(props) {
36821
36762
  display: "flex",
36822
36763
  alignItems: "center"
36823
36764
  }
36824
- }, /* @__PURE__ */ React__default.createElement(BasicTools, null), mergeTags2 && /* @__PURE__ */ React__default.createElement(MergeTags, {
36765
+ }, mergeTags2 && /* @__PURE__ */ React__default.createElement(MergeTags, {
36825
36766
  execCommand,
36826
36767
  getPopupContainer: getPopoverMountNode
36827
36768
  }), /* @__PURE__ */ React__default.createElement("div", {
@@ -40233,7 +40174,7 @@ function Toolbar() {
40233
40174
  const { modal, setModalVisible } = useAddToCollection();
40234
40175
  const props = useEditorProps();
40235
40176
  const isPage = (focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.PAGE;
40236
- const isText = isTextBlock(focusBlock2 == null ? void 0 : focusBlock2.type);
40177
+ isTextBlock(focusBlock2 == null ? void 0 : focusBlock2.type);
40237
40178
  const handleAddToCollection = () => {
40238
40179
  if (document.activeElement instanceof HTMLElement) {
40239
40180
  document.activeElement.blur();
@@ -40258,8 +40199,6 @@ function Toolbar() {
40258
40199
  }
40259
40200
  setFocusIdx(getParentIdx(focusIdx2));
40260
40201
  };
40261
- if (isText)
40262
- return null;
40263
40202
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
40264
40203
  id: "easy-email-extensions-InteractivePrompt-Toolbar",
40265
40204
  style: {