easy-email-extensions 4.0.0-alpha.7 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index2.js CHANGED
@@ -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, {