@daisychainapp/maily-to-core 0.1.2 → 0.1.3
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.
- package/dist/extensions/index.js +304 -155
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/index.mjs +271 -122
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.js +63 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -85
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4431,7 +4431,20 @@ function ImageBubbleMenu(props) {
|
|
|
4431
4431
|
}
|
|
4432
4432
|
)
|
|
4433
4433
|
] })
|
|
4434
|
-
] })
|
|
4434
|
+
] }),
|
|
4435
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Divider, {}),
|
|
4436
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4437
|
+
ShowPopover,
|
|
4438
|
+
{
|
|
4439
|
+
showIfKey: state.currentShowIfKey,
|
|
4440
|
+
onShowIfKeyValueChange: (value) => {
|
|
4441
|
+
editor == null ? void 0 : editor.chain().updateAttributes(state.isLogoActive ? "logo" : "image", {
|
|
4442
|
+
showIfKey: value
|
|
4443
|
+
}).run();
|
|
4444
|
+
},
|
|
4445
|
+
editor
|
|
4446
|
+
}
|
|
4447
|
+
)
|
|
4435
4448
|
] })
|
|
4436
4449
|
})
|
|
4437
4450
|
);
|
|
@@ -4886,6 +4899,19 @@ function SectionBubbleMenu(props) {
|
|
|
4886
4899
|
}
|
|
4887
4900
|
}
|
|
4888
4901
|
),
|
|
4902
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Divider, {}),
|
|
4903
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4904
|
+
ShowPopover,
|
|
4905
|
+
{
|
|
4906
|
+
showIfKey: state.currentShowIfKey,
|
|
4907
|
+
onShowIfKeyValueChange: (value) => {
|
|
4908
|
+
editor.commands.updateSection({
|
|
4909
|
+
showIfKey: value
|
|
4910
|
+
});
|
|
4911
|
+
},
|
|
4912
|
+
editor
|
|
4913
|
+
}
|
|
4914
|
+
),
|
|
4889
4915
|
state.isColumnsActive && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
4890
4916
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Divider, {}),
|
|
4891
4917
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { children: [
|
|
@@ -4974,15 +5000,28 @@ function SpacerBubbleMenu(props) {
|
|
|
4974
5000
|
import_react33.BubbleMenu,
|
|
4975
5001
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4976
5002
|
className: "mly-flex mly-gap-0.5 mly-rounded-lg mly-border mly-border-slate-200 mly-bg-white mly-p-0.5 mly-shadow-md",
|
|
4977
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime43.
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
5003
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(TooltipProvider, { children: [
|
|
5004
|
+
items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5005
|
+
BubbleMenuButton,
|
|
5006
|
+
__spreadValues({
|
|
5007
|
+
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
5008
|
+
iconClassName: "mly-w-3 mly-h-3",
|
|
5009
|
+
nameClassName: "mly-text-xs"
|
|
5010
|
+
}, item),
|
|
5011
|
+
index
|
|
5012
|
+
)),
|
|
5013
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Divider, {}),
|
|
5014
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5015
|
+
ShowPopover,
|
|
5016
|
+
{
|
|
5017
|
+
showIfKey: state.currentShowIfKey,
|
|
5018
|
+
onShowIfKeyValueChange: (value) => {
|
|
5019
|
+
editor.commands.setSpacerShowIfKey(value);
|
|
5020
|
+
},
|
|
5021
|
+
editor
|
|
5022
|
+
}
|
|
5023
|
+
)
|
|
5024
|
+
] })
|
|
4986
5025
|
})
|
|
4987
5026
|
);
|
|
4988
5027
|
}
|
|
@@ -5818,7 +5857,20 @@ function ButtonView(props) {
|
|
|
5818
5857
|
}
|
|
5819
5858
|
}
|
|
5820
5859
|
)
|
|
5821
|
-
] })
|
|
5860
|
+
] }),
|
|
5861
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Divider, {}),
|
|
5862
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5863
|
+
ShowPopover,
|
|
5864
|
+
{
|
|
5865
|
+
showIfKey,
|
|
5866
|
+
onShowIfKeyValueChange: (value) => {
|
|
5867
|
+
updateAttributes2({
|
|
5868
|
+
showIfKey: value
|
|
5869
|
+
});
|
|
5870
|
+
},
|
|
5871
|
+
editor
|
|
5872
|
+
}
|
|
5873
|
+
)
|
|
5822
5874
|
] }) })
|
|
5823
5875
|
}
|
|
5824
5876
|
)
|
|
@@ -7763,17 +7815,6 @@ function useTurnIntoBlockOptions(editor) {
|
|
|
7763
7815
|
label: "Heading 3",
|
|
7764
7816
|
type: "option"
|
|
7765
7817
|
},
|
|
7766
|
-
{
|
|
7767
|
-
id: "footer",
|
|
7768
|
-
type: "option",
|
|
7769
|
-
label: "Footer",
|
|
7770
|
-
icon: import_lucide_react29.FootprintsIcon,
|
|
7771
|
-
onClick: () => {
|
|
7772
|
-
editor2.chain().focus().liftListItem("listItem").setFooter().run();
|
|
7773
|
-
},
|
|
7774
|
-
disabled: () => !editor2.can().setFooter(),
|
|
7775
|
-
isActive: () => editor2.isActive("footer")
|
|
7776
|
-
},
|
|
7777
7818
|
{
|
|
7778
7819
|
type: "category",
|
|
7779
7820
|
label: "Lists",
|