@daisychainapp/maily-to-core 0.0.23 → 0.0.25
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/index.js +11 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3670,20 +3670,7 @@ function ImageBubbleMenu(props) {
|
|
|
3670
3670
|
}
|
|
3671
3671
|
)
|
|
3672
3672
|
] })
|
|
3673
|
-
] })
|
|
3674
|
-
/* @__PURE__ */ jsx30(Divider, {}),
|
|
3675
|
-
/* @__PURE__ */ jsx30(
|
|
3676
|
-
ShowPopover,
|
|
3677
|
-
{
|
|
3678
|
-
showIfKey: state.currentShowIfKey,
|
|
3679
|
-
onShowIfKeyValueChange: (value) => {
|
|
3680
|
-
editor == null ? void 0 : editor.chain().updateAttributes(state.isLogoActive ? "logo" : "image", {
|
|
3681
|
-
showIfKey: value
|
|
3682
|
-
}).run();
|
|
3683
|
-
},
|
|
3684
|
-
editor
|
|
3685
|
-
}
|
|
3686
|
-
)
|
|
3673
|
+
] })
|
|
3687
3674
|
] })
|
|
3688
3675
|
})
|
|
3689
3676
|
);
|
|
@@ -4132,19 +4119,6 @@ function SectionBubbleMenu(props) {
|
|
|
4132
4119
|
}
|
|
4133
4120
|
}
|
|
4134
4121
|
),
|
|
4135
|
-
/* @__PURE__ */ jsx35(Divider, {}),
|
|
4136
|
-
/* @__PURE__ */ jsx35(
|
|
4137
|
-
ShowPopover,
|
|
4138
|
-
{
|
|
4139
|
-
showIfKey: state.currentShowIfKey,
|
|
4140
|
-
onShowIfKeyValueChange: (value) => {
|
|
4141
|
-
editor.commands.updateSection({
|
|
4142
|
-
showIfKey: value
|
|
4143
|
-
});
|
|
4144
|
-
},
|
|
4145
|
-
editor
|
|
4146
|
-
}
|
|
4147
|
-
),
|
|
4148
4122
|
state.isColumnsActive && /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
4149
4123
|
/* @__PURE__ */ jsx35(Divider, {}),
|
|
4150
4124
|
/* @__PURE__ */ jsxs18(Popover, { children: [
|
|
@@ -4283,7 +4257,7 @@ var useSpacerState = (editor) => {
|
|
|
4283
4257
|
};
|
|
4284
4258
|
|
|
4285
4259
|
// src/editor/components/spacer-menu/spacer-bubble-menu.tsx
|
|
4286
|
-
import { jsx as jsx36
|
|
4260
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4287
4261
|
function SpacerBubbleMenu(props) {
|
|
4288
4262
|
const { editor, appendTo } = props;
|
|
4289
4263
|
if (!editor) {
|
|
@@ -4308,28 +4282,15 @@ function SpacerBubbleMenu(props) {
|
|
|
4308
4282
|
BubbleMenu5,
|
|
4309
4283
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
4310
4284
|
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",
|
|
4311
|
-
children: /* @__PURE__ */
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
)),
|
|
4321
|
-
/* @__PURE__ */ jsx36(Divider, {}),
|
|
4322
|
-
/* @__PURE__ */ jsx36(
|
|
4323
|
-
ShowPopover,
|
|
4324
|
-
{
|
|
4325
|
-
showIfKey: state.currentShowIfKey,
|
|
4326
|
-
onShowIfKeyValueChange: (value) => {
|
|
4327
|
-
editor.commands.setSpacerShowIfKey(value);
|
|
4328
|
-
},
|
|
4329
|
-
editor
|
|
4330
|
-
}
|
|
4331
|
-
)
|
|
4332
|
-
] })
|
|
4285
|
+
children: /* @__PURE__ */ jsx36(TooltipProvider, { children: items.map((item, index) => /* @__PURE__ */ jsx36(
|
|
4286
|
+
BubbleMenuButton,
|
|
4287
|
+
__spreadValues({
|
|
4288
|
+
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
4289
|
+
iconClassName: "mly-w-3 mly-h-3",
|
|
4290
|
+
nameClassName: "mly-text-xs"
|
|
4291
|
+
}, item),
|
|
4292
|
+
index
|
|
4293
|
+
)) })
|
|
4333
4294
|
})
|
|
4334
4295
|
);
|
|
4335
4296
|
}
|
|
@@ -4452,7 +4413,7 @@ var Textarea = React6.forwardRef(
|
|
|
4452
4413
|
Textarea.displayName = "Textarea";
|
|
4453
4414
|
|
|
4454
4415
|
// src/editor/nodes/link-card.tsx
|
|
4455
|
-
import { jsx as jsx39, jsxs as
|
|
4416
|
+
import { jsx as jsx39, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4456
4417
|
function LinkCardComponent(props) {
|
|
4457
4418
|
const { title, description, link, linkTitle, image: image2, badgeText, subTitle } = props.node.attrs;
|
|
4458
4419
|
const { getPos, editor } = props;
|
|
@@ -4462,7 +4423,7 @@ function LinkCardComponent(props) {
|
|
|
4462
4423
|
className: `react-component ${props.selected && "ProseMirror-selectednode"}`,
|
|
4463
4424
|
draggable: "true",
|
|
4464
4425
|
"data-drag-handle": "",
|
|
4465
|
-
children: /* @__PURE__ */
|
|
4426
|
+
children: /* @__PURE__ */ jsxs19(Popover, { open: props.selected, children: [
|
|
4466
4427
|
/* @__PURE__ */ jsx39(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx39(
|
|
4467
4428
|
"div",
|
|
4468
4429
|
{
|
|
@@ -4472,7 +4433,7 @@ function LinkCardComponent(props) {
|
|
|
4472
4433
|
const pos = getPos();
|
|
4473
4434
|
editor.commands.setNodeSelection(pos);
|
|
4474
4435
|
},
|
|
4475
|
-
children: /* @__PURE__ */
|
|
4436
|
+
children: /* @__PURE__ */ jsxs19("div", { className: "mly-no-prose mly-flex mly-flex-col mly-rounded-lg mly-border mly-border-gray-300", children: [
|
|
4476
4437
|
image2 && /* @__PURE__ */ jsx39("div", { className: "mly-relative mly-mb-1.5 mly-w-full mly-shrink-0", children: /* @__PURE__ */ jsx39(
|
|
4477
4438
|
"img",
|
|
4478
4439
|
{
|
|
@@ -4481,14 +4442,14 @@ function LinkCardComponent(props) {
|
|
|
4481
4442
|
className: "mly-no-prose !mly-mb-0 mly-h-full mly-w-full mly-rounded-t-lg"
|
|
4482
4443
|
}
|
|
4483
4444
|
) }),
|
|
4484
|
-
/* @__PURE__ */ jsx39("div", { className: "mly-flex mly-items-stretch mly-p-3", children: /* @__PURE__ */
|
|
4485
|
-
/* @__PURE__ */
|
|
4445
|
+
/* @__PURE__ */ jsx39("div", { className: "mly-flex mly-items-stretch mly-p-3", children: /* @__PURE__ */ jsxs19("div", { className: cn("mly-flex mly-flex-col"), children: [
|
|
4446
|
+
/* @__PURE__ */ jsxs19("div", { className: "!mly-mb-1.5 mly-flex mly-items-center mly-gap-1.5", children: [
|
|
4486
4447
|
/* @__PURE__ */ jsx39("h2", { className: "!mly-mb-0 !mly-text-lg mly-font-semibold", children: title }),
|
|
4487
4448
|
badgeText && /* @__PURE__ */ jsx39("span", { className: "!mly-font-base text-xs mly-rounded-md mly-bg-yellow-200 mly-px-2 mly-py-1 mly-font-semibold mly-leading-none", children: badgeText }),
|
|
4488
4449
|
" ",
|
|
4489
4450
|
subTitle && !badgeText && /* @__PURE__ */ jsx39("span", { className: "!mly-font-base text-xs mly-font-regular mly-rounded-md mly-leading-none mly-text-gray-400", children: subTitle })
|
|
4490
4451
|
] }),
|
|
4491
|
-
/* @__PURE__ */
|
|
4452
|
+
/* @__PURE__ */ jsxs19("p", { className: "!mly-my-0 !mly-text-base mly-text-gray-500", children: [
|
|
4492
4453
|
description,
|
|
4493
4454
|
" ",
|
|
4494
4455
|
linkTitle ? /* @__PURE__ */ jsx39("a", { href: link, className: "mly-font-semibold", children: linkTitle }) : null
|
|
@@ -4497,7 +4458,7 @@ function LinkCardComponent(props) {
|
|
|
4497
4458
|
] })
|
|
4498
4459
|
}
|
|
4499
4460
|
) }),
|
|
4500
|
-
/* @__PURE__ */
|
|
4461
|
+
/* @__PURE__ */ jsxs19(
|
|
4501
4462
|
PopoverContent,
|
|
4502
4463
|
{
|
|
4503
4464
|
align: "end",
|
|
@@ -4506,7 +4467,7 @@ function LinkCardComponent(props) {
|
|
|
4506
4467
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
4507
4468
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
4508
4469
|
children: [
|
|
4509
|
-
/* @__PURE__ */
|
|
4470
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4510
4471
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Image" }),
|
|
4511
4472
|
/* @__PURE__ */ jsx39(
|
|
4512
4473
|
Input,
|
|
@@ -4522,7 +4483,7 @@ function LinkCardComponent(props) {
|
|
|
4522
4483
|
}
|
|
4523
4484
|
)
|
|
4524
4485
|
] }),
|
|
4525
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4526
4487
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Title" }),
|
|
4527
4488
|
/* @__PURE__ */ jsx39(
|
|
4528
4489
|
Input,
|
|
@@ -4537,7 +4498,7 @@ function LinkCardComponent(props) {
|
|
|
4537
4498
|
}
|
|
4538
4499
|
)
|
|
4539
4500
|
] }),
|
|
4540
|
-
/* @__PURE__ */
|
|
4501
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4541
4502
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Description" }),
|
|
4542
4503
|
/* @__PURE__ */ jsx39(
|
|
4543
4504
|
Textarea,
|
|
@@ -4552,8 +4513,8 @@ function LinkCardComponent(props) {
|
|
|
4552
4513
|
}
|
|
4553
4514
|
)
|
|
4554
4515
|
] }),
|
|
4555
|
-
/* @__PURE__ */
|
|
4556
|
-
/* @__PURE__ */
|
|
4516
|
+
/* @__PURE__ */ jsxs19("div", { className: "mly-grid mly-grid-cols-2 mly-gap-2", children: [
|
|
4517
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4557
4518
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link Title" }),
|
|
4558
4519
|
/* @__PURE__ */ jsx39(
|
|
4559
4520
|
Input,
|
|
@@ -4568,7 +4529,7 @@ function LinkCardComponent(props) {
|
|
|
4568
4529
|
}
|
|
4569
4530
|
)
|
|
4570
4531
|
] }),
|
|
4571
|
-
/* @__PURE__ */
|
|
4532
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4572
4533
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Link" }),
|
|
4573
4534
|
/* @__PURE__ */ jsx39(
|
|
4574
4535
|
Input,
|
|
@@ -4584,8 +4545,8 @@ function LinkCardComponent(props) {
|
|
|
4584
4545
|
)
|
|
4585
4546
|
] })
|
|
4586
4547
|
] }),
|
|
4587
|
-
/* @__PURE__ */
|
|
4588
|
-
/* @__PURE__ */
|
|
4548
|
+
/* @__PURE__ */ jsxs19("div", { className: "mly-grid mly-grid-cols-2 mly-gap-2", children: [
|
|
4549
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4589
4550
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Badge Text" }),
|
|
4590
4551
|
/* @__PURE__ */ jsx39(
|
|
4591
4552
|
Input,
|
|
@@ -4600,7 +4561,7 @@ function LinkCardComponent(props) {
|
|
|
4600
4561
|
}
|
|
4601
4562
|
)
|
|
4602
4563
|
] }),
|
|
4603
|
-
/* @__PURE__ */
|
|
4564
|
+
/* @__PURE__ */ jsxs19("label", { className: "mly-w-full mly-space-y-1", children: [
|
|
4604
4565
|
/* @__PURE__ */ jsx39("span", { className: "mly-text-xs mly-font-normal mly-text-slate-400", children: "Sub Title" }),
|
|
4605
4566
|
/* @__PURE__ */ jsx39(
|
|
4606
4567
|
Input,
|
|
@@ -4706,7 +4667,7 @@ import { NodeViewWrapper as NodeViewWrapper5 } from "@tiptap/react";
|
|
|
4706
4667
|
import { useMemo as useMemo6 } from "react";
|
|
4707
4668
|
import { useState as useState10 } from "react";
|
|
4708
4669
|
import { useRef as useRef9 } from "react";
|
|
4709
|
-
import { jsx as jsx40, jsxs as
|
|
4670
|
+
import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4710
4671
|
function ButtonLabelInput(props) {
|
|
4711
4672
|
const { value, onValueChange, isVariable, editor } = props;
|
|
4712
4673
|
const linkInputRef = useRef9(null);
|
|
@@ -4728,7 +4689,7 @@ function ButtonLabelInput(props) {
|
|
|
4728
4689
|
editor
|
|
4729
4690
|
}).map((variable) => variable.name);
|
|
4730
4691
|
}, [variables, value, editor]);
|
|
4731
|
-
return /* @__PURE__ */
|
|
4692
|
+
return /* @__PURE__ */ jsxs20("div", { className: "mly-isolate mly-flex mly-rounded-lg", children: [
|
|
4732
4693
|
!isEditing && /* @__PURE__ */ jsx40(
|
|
4733
4694
|
"button",
|
|
4734
4695
|
{
|
|
@@ -4776,7 +4737,7 @@ function ButtonLabelInput(props) {
|
|
|
4776
4737
|
}
|
|
4777
4738
|
|
|
4778
4739
|
// src/editor/nodes/button/button-view.tsx
|
|
4779
|
-
import { jsx as jsx41, jsxs as
|
|
4740
|
+
import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4780
4741
|
function ButtonView(props) {
|
|
4781
4742
|
const { node, editor, getPos, updateAttributes: updateAttributes2 } = props;
|
|
4782
4743
|
const {
|
|
@@ -4801,7 +4762,7 @@ function ButtonView(props) {
|
|
|
4801
4762
|
style: {
|
|
4802
4763
|
textAlign: alignment
|
|
4803
4764
|
},
|
|
4804
|
-
children: /* @__PURE__ */
|
|
4765
|
+
children: /* @__PURE__ */ jsxs21(Popover, { open: props.selected, children: [
|
|
4805
4766
|
/* @__PURE__ */ jsx41(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx41("div", { children: /* @__PURE__ */ jsx41(
|
|
4806
4767
|
"button",
|
|
4807
4768
|
{
|
|
@@ -4848,7 +4809,7 @@ function ButtonView(props) {
|
|
|
4848
4809
|
sideOffset: 8,
|
|
4849
4810
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
4850
4811
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
4851
|
-
children: /* @__PURE__ */ jsx41(TooltipProvider, { children: /* @__PURE__ */
|
|
4812
|
+
children: /* @__PURE__ */ jsx41(TooltipProvider, { children: /* @__PURE__ */ jsxs21("div", { className: "mly-flex mly-items-stretch mly-text-midnight-gray", children: [
|
|
4852
4813
|
/* @__PURE__ */ jsx41(
|
|
4853
4814
|
ButtonLabelInput,
|
|
4854
4815
|
{
|
|
@@ -4864,7 +4825,7 @@ function ButtonView(props) {
|
|
|
4864
4825
|
}
|
|
4865
4826
|
),
|
|
4866
4827
|
/* @__PURE__ */ jsx41(Divider, {}),
|
|
4867
|
-
/* @__PURE__ */
|
|
4828
|
+
/* @__PURE__ */ jsxs21("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
4868
4829
|
/* @__PURE__ */ jsx41(
|
|
4869
4830
|
Select,
|
|
4870
4831
|
{
|
|
@@ -4903,7 +4864,7 @@ function ButtonView(props) {
|
|
|
4903
4864
|
)
|
|
4904
4865
|
] }),
|
|
4905
4866
|
/* @__PURE__ */ jsx41(Divider, {}),
|
|
4906
|
-
/* @__PURE__ */
|
|
4867
|
+
/* @__PURE__ */ jsxs21("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
4907
4868
|
/* @__PURE__ */ jsx41(
|
|
4908
4869
|
AlignmentSwitch,
|
|
4909
4870
|
{
|
|
@@ -4932,7 +4893,7 @@ function ButtonView(props) {
|
|
|
4932
4893
|
)
|
|
4933
4894
|
] }),
|
|
4934
4895
|
/* @__PURE__ */ jsx41(Divider, {}),
|
|
4935
|
-
/* @__PURE__ */
|
|
4896
|
+
/* @__PURE__ */ jsxs21("div", { className: "mly-flex mly-space-x-0.5", children: [
|
|
4936
4897
|
/* @__PURE__ */ jsx41(
|
|
4937
4898
|
BackgroundColorPickerPopup,
|
|
4938
4899
|
{
|
|
@@ -4956,20 +4917,7 @@ function ButtonView(props) {
|
|
|
4956
4917
|
}
|
|
4957
4918
|
}
|
|
4958
4919
|
)
|
|
4959
|
-
] })
|
|
4960
|
-
/* @__PURE__ */ jsx41(Divider, {}),
|
|
4961
|
-
/* @__PURE__ */ jsx41(
|
|
4962
|
-
ShowPopover,
|
|
4963
|
-
{
|
|
4964
|
-
showIfKey,
|
|
4965
|
-
onShowIfKeyValueChange: (value) => {
|
|
4966
|
-
updateAttributes2({
|
|
4967
|
-
showIfKey: value
|
|
4968
|
-
});
|
|
4969
|
-
},
|
|
4970
|
-
editor
|
|
4971
|
-
}
|
|
4972
|
-
)
|
|
4920
|
+
] })
|
|
4973
4921
|
] }) })
|
|
4974
4922
|
}
|
|
4975
4923
|
)
|
|
@@ -5018,7 +4966,7 @@ function TextColorPickerPopup(props) {
|
|
|
5018
4966
|
size: "sm",
|
|
5019
4967
|
type: "button",
|
|
5020
4968
|
className: "mly-size-7",
|
|
5021
|
-
children: /* @__PURE__ */
|
|
4969
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
5022
4970
|
/* @__PURE__ */ jsx41("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-midnight-gray", children: "A" }),
|
|
5023
4971
|
/* @__PURE__ */ jsx41(
|
|
5024
4972
|
"div",
|
|
@@ -5601,10 +5549,10 @@ import { ReactNodeViewRenderer as ReactNodeViewRenderer6 } from "@tiptap/react";
|
|
|
5601
5549
|
// src/editor/nodes/for/for-view.tsx
|
|
5602
5550
|
import { NodeViewWrapper as NodeViewWrapper6, NodeViewContent } from "@tiptap/react";
|
|
5603
5551
|
import { Repeat2 as Repeat22 } from "lucide-react";
|
|
5604
|
-
import { jsx as jsx42, jsxs as
|
|
5552
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5605
5553
|
function ForView(props) {
|
|
5606
5554
|
const { editor, getPos } = props;
|
|
5607
|
-
return /* @__PURE__ */
|
|
5555
|
+
return /* @__PURE__ */ jsxs22(
|
|
5608
5556
|
NodeViewWrapper6,
|
|
5609
5557
|
{
|
|
5610
5558
|
draggable: "true",
|
|
@@ -5613,7 +5561,7 @@ function ForView(props) {
|
|
|
5613
5561
|
className: "mly-relative",
|
|
5614
5562
|
children: [
|
|
5615
5563
|
/* @__PURE__ */ jsx42(NodeViewContent, { className: "is-editable" }),
|
|
5616
|
-
/* @__PURE__ */
|
|
5564
|
+
/* @__PURE__ */ jsxs22(
|
|
5617
5565
|
"div",
|
|
5618
5566
|
{
|
|
5619
5567
|
role: "button",
|
|
@@ -5719,7 +5667,7 @@ var ForExtension = Node9.create({
|
|
|
5719
5667
|
// src/editor/components/text-menu/turn-into-block.tsx
|
|
5720
5668
|
import { ChevronDownIcon as ChevronDownIcon3, PilcrowIcon } from "lucide-react";
|
|
5721
5669
|
import { useMemo as useMemo7 } from "react";
|
|
5722
|
-
import { jsx as jsx43, jsxs as
|
|
5670
|
+
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5723
5671
|
var isOption = (option) => option.type === "option";
|
|
5724
5672
|
var isCategory = (option) => option.type === "category";
|
|
5725
5673
|
function TurnIntoBlock(props) {
|
|
@@ -5729,9 +5677,9 @@ function TurnIntoBlock(props) {
|
|
|
5729
5677
|
[options]
|
|
5730
5678
|
);
|
|
5731
5679
|
const { icon: ActiveIcon = PilcrowIcon } = activeItem || {};
|
|
5732
|
-
return /* @__PURE__ */
|
|
5733
|
-
/* @__PURE__ */
|
|
5734
|
-
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: /* @__PURE__ */
|
|
5680
|
+
return /* @__PURE__ */ jsxs23(Popover, { children: [
|
|
5681
|
+
/* @__PURE__ */ jsxs23(Tooltip, { children: [
|
|
5682
|
+
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs23(
|
|
5735
5683
|
PopoverTrigger,
|
|
5736
5684
|
{
|
|
5737
5685
|
className: cn(
|
|
@@ -5754,7 +5702,7 @@ function TurnIntoBlock(props) {
|
|
|
5754
5702
|
className: "mly-flex mly-w-[160px] mly-flex-col mly-rounded-md mly-p-1",
|
|
5755
5703
|
children: options.map((option, index) => {
|
|
5756
5704
|
if (isOption(option)) {
|
|
5757
|
-
return /* @__PURE__ */
|
|
5705
|
+
return /* @__PURE__ */ jsxs23(
|
|
5758
5706
|
BaseButton,
|
|
5759
5707
|
{
|
|
5760
5708
|
onClick: option.onClick,
|
|
@@ -5881,7 +5829,7 @@ function useTurnIntoBlockOptions(editor) {
|
|
|
5881
5829
|
}
|
|
5882
5830
|
|
|
5883
5831
|
// src/editor/components/text-menu/text-bubble-menu.tsx
|
|
5884
|
-
import { Fragment as Fragment7, jsx as jsx44, jsxs as
|
|
5832
|
+
import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5885
5833
|
function TextBubbleMenu(props) {
|
|
5886
5834
|
var _a, _b, _c, _d;
|
|
5887
5835
|
const { editor, appendTo } = props;
|
|
@@ -5977,7 +5925,7 @@ function TextBubbleMenu(props) {
|
|
|
5977
5925
|
BubbleMenu6,
|
|
5978
5926
|
__spreadProps(__spreadValues({}, bubbleMenuProps), {
|
|
5979
5927
|
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",
|
|
5980
|
-
children: /* @__PURE__ */
|
|
5928
|
+
children: /* @__PURE__ */ jsxs24(TooltipProvider, { children: [
|
|
5981
5929
|
/* @__PURE__ */ jsx44(TurnIntoBlock, { options: turnIntoBlockOptions }),
|
|
5982
5930
|
/* @__PURE__ */ jsx44(Divider, { className: "mly-mx-0" }),
|
|
5983
5931
|
items.map((item, index) => /* @__PURE__ */ jsx44(BubbleMenuButton, __spreadValues({}, item), index)),
|
|
@@ -5990,7 +5938,7 @@ function TextBubbleMenu(props) {
|
|
|
5990
5938
|
}
|
|
5991
5939
|
}
|
|
5992
5940
|
),
|
|
5993
|
-
!state.isListActive && /* @__PURE__ */
|
|
5941
|
+
!state.isListActive && /* @__PURE__ */ jsxs24(Fragment7, { children: [
|
|
5994
5942
|
/* @__PURE__ */ jsx44(
|
|
5995
5943
|
BubbleMenuButton,
|
|
5996
5944
|
{
|
|
@@ -6050,7 +5998,7 @@ function TextBubbleMenu(props) {
|
|
|
6050
5998
|
size: "sm",
|
|
6051
5999
|
type: "button",
|
|
6052
6000
|
className: "!mly-h-7 mly-w-7 mly-shrink-0 mly-p-0",
|
|
6053
|
-
children: /* @__PURE__ */
|
|
6001
|
+
children: /* @__PURE__ */ jsxs24("div", { className: "mly-flex mly-flex-col mly-items-center mly-justify-center mly-gap-[1px]", children: [
|
|
6054
6002
|
/* @__PURE__ */ jsx44("span", { className: "mly-font-bolder mly-font-mono mly-text-xs mly-text-slate-700", children: "A" }),
|
|
6055
6003
|
/* @__PURE__ */ jsx44(
|
|
6056
6004
|
"div",
|
|
@@ -6293,7 +6241,7 @@ import {
|
|
|
6293
6241
|
useState as useState12
|
|
6294
6242
|
} from "react";
|
|
6295
6243
|
import tippy3 from "tippy.js";
|
|
6296
|
-
import { jsx as jsx46, jsxs as
|
|
6244
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6297
6245
|
function CommandList(props) {
|
|
6298
6246
|
const { items, command, editor } = props;
|
|
6299
6247
|
const [selectedIndex, setSelectedIndex] = useState12(0);
|
|
@@ -6343,7 +6291,7 @@ function CommandList(props) {
|
|
|
6343
6291
|
updateScrollView(container, item);
|
|
6344
6292
|
}
|
|
6345
6293
|
}, [selectedIndex]);
|
|
6346
|
-
return items.length > 0 ? /* @__PURE__ */
|
|
6294
|
+
return items.length > 0 ? /* @__PURE__ */ jsxs25("div", { className: "mly-z-50 mly-w-72 mly-rounded-md mly-border mly-border-gray-200 mly-bg-white mly-shadow-md mly-transition-all", children: [
|
|
6347
6295
|
/* @__PURE__ */ jsx46(
|
|
6348
6296
|
"div",
|
|
6349
6297
|
{
|
|
@@ -6351,7 +6299,7 @@ function CommandList(props) {
|
|
|
6351
6299
|
ref: commandListContainer,
|
|
6352
6300
|
className: "mly-no-scrollbar mly-h-auto mly-max-h-[330px] mly-overflow-y-auto mly-scroll-smooth mly-p-1",
|
|
6353
6301
|
children: items.map((item, index) => {
|
|
6354
|
-
return /* @__PURE__ */
|
|
6302
|
+
return /* @__PURE__ */ jsxs25(
|
|
6355
6303
|
"button",
|
|
6356
6304
|
{
|
|
6357
6305
|
className: cn(
|
|
@@ -6362,7 +6310,7 @@ function CommandList(props) {
|
|
|
6362
6310
|
type: "button",
|
|
6363
6311
|
children: [
|
|
6364
6312
|
/* @__PURE__ */ jsx46("div", { className: "mly-flex mly-h-6 mly-w-6 mly-shrink-0 mly-items-center mly-justify-center", children: item.icon }),
|
|
6365
|
-
/* @__PURE__ */
|
|
6313
|
+
/* @__PURE__ */ jsxs25("div", { children: [
|
|
6366
6314
|
/* @__PURE__ */ jsx46("p", { className: "mly-font-medium", children: item.title }),
|
|
6367
6315
|
/* @__PURE__ */ jsx46("p", { className: "mly-text-xs mly-text-gray-400", children: item.description })
|
|
6368
6316
|
] })
|
|
@@ -6373,15 +6321,15 @@ function CommandList(props) {
|
|
|
6373
6321
|
})
|
|
6374
6322
|
}
|
|
6375
6323
|
),
|
|
6376
|
-
/* @__PURE__ */ jsx46("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */
|
|
6377
|
-
/* @__PURE__ */
|
|
6324
|
+
/* @__PURE__ */ jsx46("div", { className: "mly-border-t mly-border-gray-200 mly-px-1 mly-py-3 mly-pl-4", children: /* @__PURE__ */ jsxs25("div", { className: "mly-flex mly-items-center", children: [
|
|
6325
|
+
/* @__PURE__ */ jsxs25("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6378
6326
|
/* @__PURE__ */ jsx46("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2191" }),
|
|
6379
6327
|
/* @__PURE__ */ jsx46("kbd", { className: "mly-ml-1 mly-rounded mly-border mly-p-1 mly-px-2 mly-font-medium", children: "\u2193" }),
|
|
6380
6328
|
" ",
|
|
6381
6329
|
"to navigate"
|
|
6382
6330
|
] }),
|
|
6383
6331
|
/* @__PURE__ */ jsx46("span", { "aria-hidden": "true", className: "mly-select-none mly-px-1", children: "\xB7" }),
|
|
6384
|
-
/* @__PURE__ */
|
|
6332
|
+
/* @__PURE__ */ jsxs25("p", { className: "mly-text-center mly-text-xs mly-text-gray-400", children: [
|
|
6385
6333
|
/* @__PURE__ */ jsx46("kbd", { className: "mly-rounded mly-border mly-p-1 mly-px-1.5 mly-font-medium", children: "Enter" }),
|
|
6386
6334
|
" ",
|
|
6387
6335
|
"to select"
|
|
@@ -6569,7 +6517,7 @@ function extensions(props) {
|
|
|
6569
6517
|
}
|
|
6570
6518
|
|
|
6571
6519
|
// src/editor/index.tsx
|
|
6572
|
-
import { jsx as jsx47, jsxs as
|
|
6520
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6573
6521
|
function Editor9(props) {
|
|
6574
6522
|
const {
|
|
6575
6523
|
config: {
|
|
@@ -6658,14 +6606,14 @@ function Editor9(props) {
|
|
|
6658
6606
|
variableTriggerCharacter,
|
|
6659
6607
|
renderVariable,
|
|
6660
6608
|
placeholderUrl,
|
|
6661
|
-
children: /* @__PURE__ */
|
|
6609
|
+
children: /* @__PURE__ */ jsxs26(
|
|
6662
6610
|
"div",
|
|
6663
6611
|
{
|
|
6664
6612
|
className: cn("mly-editor mly-antialiased", wrapClassName),
|
|
6665
6613
|
ref: menuContainerRef,
|
|
6666
6614
|
children: [
|
|
6667
6615
|
hasMenuBar && /* @__PURE__ */ jsx47(EditorMenuBar, { config: props.config, editor }),
|
|
6668
|
-
/* @__PURE__ */
|
|
6616
|
+
/* @__PURE__ */ jsxs26(
|
|
6669
6617
|
"div",
|
|
6670
6618
|
{
|
|
6671
6619
|
className: cn(
|