@groovymedia/easy-email-extensions 4.14.4 → 4.14.6

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
@@ -34487,24 +34487,12 @@ const options$7 = [
34487
34487
  return t("Underline");
34488
34488
  }
34489
34489
  },
34490
- {
34491
- value: "overline",
34492
- get label() {
34493
- return t("Overline");
34494
- }
34495
- },
34496
34490
  {
34497
34491
  value: "line-through",
34498
34492
  get label() {
34499
34493
  return t("Line through");
34500
34494
  }
34501
34495
  },
34502
- {
34503
- value: "blink",
34504
- get label() {
34505
- return t("Blink");
34506
- }
34507
- },
34508
34496
  {
34509
34497
  value: "inherit",
34510
34498
  get label() {
@@ -36435,65 +36423,6 @@ function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }) {
36435
36423
  title: t("Text color")
36436
36424
  }));
36437
36425
  }
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
36426
  function getAnchorElement(node) {
36498
36427
  if (!node)
36499
36428
  return null;
@@ -36821,7 +36750,7 @@ function Tools(props) {
36821
36750
  display: "flex",
36822
36751
  alignItems: "center"
36823
36752
  }
36824
- }, /* @__PURE__ */ React__default.createElement(BasicTools, null), mergeTags2 && /* @__PURE__ */ React__default.createElement(MergeTags, {
36753
+ }, mergeTags2 && /* @__PURE__ */ React__default.createElement(MergeTags, {
36825
36754
  execCommand,
36826
36755
  getPopupContainer: getPopoverMountNode
36827
36756
  }), /* @__PURE__ */ React__default.createElement("div", {
@@ -40233,7 +40162,7 @@ function Toolbar() {
40233
40162
  const { modal, setModalVisible } = useAddToCollection();
40234
40163
  const props = useEditorProps();
40235
40164
  const isPage = (focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.PAGE;
40236
- const isText = isTextBlock(focusBlock2 == null ? void 0 : focusBlock2.type);
40165
+ isTextBlock(focusBlock2 == null ? void 0 : focusBlock2.type);
40237
40166
  const handleAddToCollection = () => {
40238
40167
  if (document.activeElement instanceof HTMLElement) {
40239
40168
  document.activeElement.blur();
@@ -40258,8 +40187,6 @@ function Toolbar() {
40258
40187
  }
40259
40188
  setFocusIdx(getParentIdx(focusIdx2));
40260
40189
  };
40261
- if (isText)
40262
- return null;
40263
40190
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
40264
40191
  id: "easy-email-extensions-InteractivePrompt-Toolbar",
40265
40192
  style: {