@react-email/editor 0.0.0-experimental.12 → 0.0.0-experimental.13
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 → index.cjs} +102 -107
- package/dist/{index.d.ts → index.d.cts} +39 -39
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +38 -38
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/ui/themes/default.css +540 -0
- package/package.json +9 -3
- package/dist/index.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _tiptap_core9 from "@tiptap/core";
|
|
2
2
|
import { Editor, Extension, JSONContent, Mark, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig } from "@tiptap/core";
|
|
3
3
|
import * as _tiptap_starter_kit0 from "@tiptap/starter-kit";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
5
5
|
import { CodeBlockOptions } from "@tiptap/extension-code-block";
|
|
6
6
|
import * as _tiptap_extension_placeholder0 from "@tiptap/extension-placeholder";
|
|
7
7
|
import * as React$1 from "react";
|
|
@@ -347,19 +347,19 @@ interface PreWiredItemProps {
|
|
|
347
347
|
declare function BubbleMenuAlignCenter({
|
|
348
348
|
className,
|
|
349
349
|
children
|
|
350
|
-
}: PreWiredItemProps):
|
|
350
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
351
351
|
//#endregion
|
|
352
352
|
//#region src/ui/bubble-menu/align-left.d.ts
|
|
353
353
|
declare function BubbleMenuAlignLeft({
|
|
354
354
|
className,
|
|
355
355
|
children
|
|
356
|
-
}: PreWiredItemProps):
|
|
356
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region src/ui/bubble-menu/align-right.d.ts
|
|
359
359
|
declare function BubbleMenuAlignRight({
|
|
360
360
|
className,
|
|
361
361
|
children
|
|
362
|
-
}: PreWiredItemProps):
|
|
362
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region src/ui/bubble-menu/default.d.ts
|
|
365
365
|
type ExcludableItem = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
@@ -384,7 +384,7 @@ declare function BubbleMenuDefault({
|
|
|
384
384
|
offset,
|
|
385
385
|
onHide,
|
|
386
386
|
className
|
|
387
|
-
}: BubbleMenuDefaultProps):
|
|
387
|
+
}: BubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
388
388
|
//#endregion
|
|
389
389
|
//#region src/ui/bubble-menu/group.d.ts
|
|
390
390
|
interface BubbleMenuItemGroupProps {
|
|
@@ -394,7 +394,7 @@ interface BubbleMenuItemGroupProps {
|
|
|
394
394
|
declare function BubbleMenuItemGroup({
|
|
395
395
|
className,
|
|
396
396
|
children
|
|
397
|
-
}: BubbleMenuItemGroupProps):
|
|
397
|
+
}: BubbleMenuItemGroupProps): react_jsx_runtime7.JSX.Element;
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/ui/bubble-menu/item.d.ts
|
|
400
400
|
interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
|
|
@@ -412,7 +412,7 @@ declare function BubbleMenuItem({
|
|
|
412
412
|
className,
|
|
413
413
|
children,
|
|
414
414
|
...rest
|
|
415
|
-
}: BubbleMenuItemProps):
|
|
415
|
+
}: BubbleMenuItemProps): react_jsx_runtime7.JSX.Element;
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
418
418
|
interface BubbleMenuLinkSelectorProps {
|
|
@@ -441,7 +441,7 @@ declare function BubbleMenuLinkSelector({
|
|
|
441
441
|
children,
|
|
442
442
|
open: controlledOpen,
|
|
443
443
|
onOpenChange
|
|
444
|
-
}: BubbleMenuLinkSelectorProps):
|
|
444
|
+
}: BubbleMenuLinkSelectorProps): react_jsx_runtime7.JSX.Element | null;
|
|
445
445
|
//#endregion
|
|
446
446
|
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
447
447
|
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
@@ -467,7 +467,7 @@ declare function NodeSelectorRoot({
|
|
|
467
467
|
onOpenChange,
|
|
468
468
|
className,
|
|
469
469
|
children
|
|
470
|
-
}: NodeSelectorRootProps):
|
|
470
|
+
}: NodeSelectorRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
471
471
|
interface NodeSelectorTriggerProps {
|
|
472
472
|
className?: string;
|
|
473
473
|
children?: React$1.ReactNode;
|
|
@@ -475,7 +475,7 @@ interface NodeSelectorTriggerProps {
|
|
|
475
475
|
declare function NodeSelectorTrigger({
|
|
476
476
|
className,
|
|
477
477
|
children
|
|
478
|
-
}: NodeSelectorTriggerProps):
|
|
478
|
+
}: NodeSelectorTriggerProps): react_jsx_runtime7.JSX.Element;
|
|
479
479
|
interface NodeSelectorContentProps {
|
|
480
480
|
className?: string;
|
|
481
481
|
/** Popover alignment (default: "start") */
|
|
@@ -488,7 +488,7 @@ declare function NodeSelectorContent({
|
|
|
488
488
|
className,
|
|
489
489
|
align,
|
|
490
490
|
children
|
|
491
|
-
}: NodeSelectorContentProps):
|
|
491
|
+
}: NodeSelectorContentProps): react_jsx_runtime7.JSX.Element;
|
|
492
492
|
interface BubbleMenuNodeSelectorProps {
|
|
493
493
|
/** Block types to exclude */
|
|
494
494
|
omit?: string[];
|
|
@@ -506,7 +506,7 @@ declare function BubbleMenuNodeSelector({
|
|
|
506
506
|
triggerContent,
|
|
507
507
|
open,
|
|
508
508
|
onOpenChange
|
|
509
|
-
}: BubbleMenuNodeSelectorProps):
|
|
509
|
+
}: BubbleMenuNodeSelectorProps): react_jsx_runtime7.JSX.Element;
|
|
510
510
|
//#endregion
|
|
511
511
|
//#region src/ui/bubble-menu/root.d.ts
|
|
512
512
|
interface BubbleMenuRootProps {
|
|
@@ -529,7 +529,7 @@ declare function BubbleMenuRoot({
|
|
|
529
529
|
onHide,
|
|
530
530
|
className,
|
|
531
531
|
children
|
|
532
|
-
}: BubbleMenuRootProps):
|
|
532
|
+
}: BubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
533
533
|
//#endregion
|
|
534
534
|
//#region src/ui/bubble-menu/separator.d.ts
|
|
535
535
|
interface BubbleMenuSeparatorProps {
|
|
@@ -537,14 +537,14 @@ interface BubbleMenuSeparatorProps {
|
|
|
537
537
|
}
|
|
538
538
|
declare function BubbleMenuSeparator({
|
|
539
539
|
className
|
|
540
|
-
}: BubbleMenuSeparatorProps):
|
|
540
|
+
}: BubbleMenuSeparatorProps): react_jsx_runtime7.JSX.Element;
|
|
541
541
|
//#endregion
|
|
542
542
|
//#region src/ui/bubble-menu/bold.d.ts
|
|
543
543
|
declare const BubbleMenuBold: {
|
|
544
544
|
({
|
|
545
545
|
className,
|
|
546
546
|
children
|
|
547
|
-
}: PreWiredItemProps):
|
|
547
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
548
548
|
displayName: string;
|
|
549
549
|
};
|
|
550
550
|
//#endregion
|
|
@@ -553,7 +553,7 @@ declare const BubbleMenuCode: {
|
|
|
553
553
|
({
|
|
554
554
|
className,
|
|
555
555
|
children
|
|
556
|
-
}: PreWiredItemProps):
|
|
556
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
557
557
|
displayName: string;
|
|
558
558
|
};
|
|
559
559
|
//#endregion
|
|
@@ -562,7 +562,7 @@ declare const BubbleMenuItalic: {
|
|
|
562
562
|
({
|
|
563
563
|
className,
|
|
564
564
|
children
|
|
565
|
-
}: PreWiredItemProps):
|
|
565
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
566
566
|
displayName: string;
|
|
567
567
|
};
|
|
568
568
|
//#endregion
|
|
@@ -571,7 +571,7 @@ declare const BubbleMenuStrike: {
|
|
|
571
571
|
({
|
|
572
572
|
className,
|
|
573
573
|
children
|
|
574
|
-
}: PreWiredItemProps):
|
|
574
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
575
575
|
displayName: string;
|
|
576
576
|
};
|
|
577
577
|
//#endregion
|
|
@@ -580,7 +580,7 @@ declare const BubbleMenuUnderline: {
|
|
|
580
580
|
({
|
|
581
581
|
className,
|
|
582
582
|
children
|
|
583
|
-
}: PreWiredItemProps):
|
|
583
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
584
584
|
displayName: string;
|
|
585
585
|
};
|
|
586
586
|
//#endregion
|
|
@@ -589,7 +589,7 @@ declare const BubbleMenuUppercase: {
|
|
|
589
589
|
({
|
|
590
590
|
className,
|
|
591
591
|
children
|
|
592
|
-
}: PreWiredItemProps):
|
|
592
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
593
593
|
displayName: string;
|
|
594
594
|
};
|
|
595
595
|
//#endregion
|
|
@@ -603,42 +603,42 @@ declare const BubbleMenu: {
|
|
|
603
603
|
({
|
|
604
604
|
className,
|
|
605
605
|
children
|
|
606
|
-
}: PreWiredItemProps):
|
|
606
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
607
607
|
displayName: string;
|
|
608
608
|
};
|
|
609
609
|
readonly Italic: {
|
|
610
610
|
({
|
|
611
611
|
className,
|
|
612
612
|
children
|
|
613
|
-
}: PreWiredItemProps):
|
|
613
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
614
614
|
displayName: string;
|
|
615
615
|
};
|
|
616
616
|
readonly Underline: {
|
|
617
617
|
({
|
|
618
618
|
className,
|
|
619
619
|
children
|
|
620
|
-
}: PreWiredItemProps):
|
|
620
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
621
621
|
displayName: string;
|
|
622
622
|
};
|
|
623
623
|
readonly Strike: {
|
|
624
624
|
({
|
|
625
625
|
className,
|
|
626
626
|
children
|
|
627
|
-
}: PreWiredItemProps):
|
|
627
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
628
628
|
displayName: string;
|
|
629
629
|
};
|
|
630
630
|
readonly Code: {
|
|
631
631
|
({
|
|
632
632
|
className,
|
|
633
633
|
children
|
|
634
|
-
}: PreWiredItemProps):
|
|
634
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
635
635
|
displayName: string;
|
|
636
636
|
};
|
|
637
637
|
readonly Uppercase: {
|
|
638
638
|
({
|
|
639
639
|
className,
|
|
640
640
|
children
|
|
641
|
-
}: PreWiredItemProps):
|
|
641
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
642
642
|
displayName: string;
|
|
643
643
|
};
|
|
644
644
|
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
@@ -661,7 +661,7 @@ declare function ButtonBubbleMenuEditLink({
|
|
|
661
661
|
onClick,
|
|
662
662
|
onMouseDown,
|
|
663
663
|
...rest
|
|
664
|
-
}: ButtonBubbleMenuEditLinkProps):
|
|
664
|
+
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
665
665
|
//#endregion
|
|
666
666
|
//#region src/ui/button-bubble-menu/root.d.ts
|
|
667
667
|
interface ButtonBubbleMenuRootProps {
|
|
@@ -681,14 +681,14 @@ declare function ButtonBubbleMenuRoot({
|
|
|
681
681
|
offset,
|
|
682
682
|
className,
|
|
683
683
|
children
|
|
684
|
-
}: ButtonBubbleMenuRootProps):
|
|
684
|
+
}: ButtonBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
685
685
|
//#endregion
|
|
686
686
|
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
687
687
|
interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
688
688
|
declare function ButtonBubbleMenuToolbar({
|
|
689
689
|
children,
|
|
690
690
|
...rest
|
|
691
|
-
}: ButtonBubbleMenuToolbarProps):
|
|
691
|
+
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
692
692
|
//#endregion
|
|
693
693
|
//#region src/ui/button-bubble-menu/context.d.ts
|
|
694
694
|
interface ButtonBubbleMenuContextValue {
|
|
@@ -713,7 +713,7 @@ declare function ImageBubbleMenuEditLink({
|
|
|
713
713
|
onClick,
|
|
714
714
|
onMouseDown,
|
|
715
715
|
...rest
|
|
716
|
-
}: ImageBubbleMenuEditLinkProps):
|
|
716
|
+
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
717
717
|
//#endregion
|
|
718
718
|
//#region src/ui/image-bubble-menu/root.d.ts
|
|
719
719
|
interface ImageBubbleMenuRootProps {
|
|
@@ -733,14 +733,14 @@ declare function ImageBubbleMenuRoot({
|
|
|
733
733
|
offset,
|
|
734
734
|
className,
|
|
735
735
|
children
|
|
736
|
-
}: ImageBubbleMenuRootProps):
|
|
736
|
+
}: ImageBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
737
737
|
//#endregion
|
|
738
738
|
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
739
739
|
interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
740
740
|
declare function ImageBubbleMenuToolbar({
|
|
741
741
|
children,
|
|
742
742
|
...rest
|
|
743
|
-
}: ImageBubbleMenuToolbarProps):
|
|
743
|
+
}: ImageBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
744
744
|
//#endregion
|
|
745
745
|
//#region src/ui/image-bubble-menu/context.d.ts
|
|
746
746
|
interface ImageBubbleMenuContextValue {
|
|
@@ -765,7 +765,7 @@ declare function LinkBubbleMenuEditLink({
|
|
|
765
765
|
onClick,
|
|
766
766
|
onMouseDown,
|
|
767
767
|
...rest
|
|
768
|
-
}: LinkBubbleMenuEditLinkProps):
|
|
768
|
+
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
769
769
|
//#endregion
|
|
770
770
|
//#region src/ui/link-bubble-menu/form.d.ts
|
|
771
771
|
interface LinkBubbleMenuFormProps {
|
|
@@ -785,7 +785,7 @@ declare function LinkBubbleMenuForm({
|
|
|
785
785
|
onLinkApply,
|
|
786
786
|
onLinkRemove,
|
|
787
787
|
children
|
|
788
|
-
}: LinkBubbleMenuFormProps):
|
|
788
|
+
}: LinkBubbleMenuFormProps): react_jsx_runtime7.JSX.Element | null;
|
|
789
789
|
//#endregion
|
|
790
790
|
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
791
791
|
interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
@@ -793,7 +793,7 @@ declare function LinkBubbleMenuOpenLink({
|
|
|
793
793
|
className,
|
|
794
794
|
children,
|
|
795
795
|
...rest
|
|
796
|
-
}: LinkBubbleMenuOpenLinkProps):
|
|
796
|
+
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime7.JSX.Element;
|
|
797
797
|
//#endregion
|
|
798
798
|
//#region src/ui/link-bubble-menu/root.d.ts
|
|
799
799
|
interface LinkBubbleMenuRootProps {
|
|
@@ -813,14 +813,14 @@ declare function LinkBubbleMenuRoot({
|
|
|
813
813
|
offset,
|
|
814
814
|
className,
|
|
815
815
|
children
|
|
816
|
-
}: LinkBubbleMenuRootProps):
|
|
816
|
+
}: LinkBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
819
819
|
interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
820
820
|
declare function LinkBubbleMenuToolbar({
|
|
821
821
|
children,
|
|
822
822
|
...rest
|
|
823
|
-
}: LinkBubbleMenuToolbarProps):
|
|
823
|
+
}: LinkBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
824
824
|
//#endregion
|
|
825
825
|
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
826
826
|
interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -830,7 +830,7 @@ declare function LinkBubbleMenuUnlink({
|
|
|
830
830
|
onClick,
|
|
831
831
|
onMouseDown,
|
|
832
832
|
...rest
|
|
833
|
-
}: LinkBubbleMenuUnlinkProps):
|
|
833
|
+
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime7.JSX.Element;
|
|
834
834
|
//#endregion
|
|
835
835
|
//#region src/ui/link-bubble-menu/context.d.ts
|
|
836
836
|
interface LinkBubbleMenuContextValue {
|
package/dist/index.mjs
CHANGED
|
@@ -1805,7 +1805,7 @@ function useBubbleMenuContext() {
|
|
|
1805
1805
|
|
|
1806
1806
|
//#endregion
|
|
1807
1807
|
//#region src/ui/bubble-menu/item.tsx
|
|
1808
|
-
function BubbleMenuItem({ name, isActive, onCommand, className, children
|
|
1808
|
+
function BubbleMenuItem({ name, isActive, onCommand, className, children, ...rest }) {
|
|
1809
1809
|
return /* @__PURE__ */ jsx("button", {
|
|
1810
1810
|
type: "button",
|
|
1811
1811
|
"aria-label": name,
|
|
@@ -2444,7 +2444,7 @@ function useButtonBubbleMenuContext() {
|
|
|
2444
2444
|
|
|
2445
2445
|
//#endregion
|
|
2446
2446
|
//#region src/ui/button-bubble-menu/edit-link.tsx
|
|
2447
|
-
function ButtonBubbleMenuEditLink({ className, children, onClick, onMouseDown
|
|
2447
|
+
function ButtonBubbleMenuEditLink({ className, children, onClick, onMouseDown, ...rest }) {
|
|
2448
2448
|
const { setIsEditing } = useButtonBubbleMenuContext();
|
|
2449
2449
|
return /* @__PURE__ */ jsx("button", {
|
|
2450
2450
|
...rest,
|
|
@@ -2497,7 +2497,7 @@ function ButtonBubbleMenuRoot({ onHide, placement = "top", offset = 8, className
|
|
|
2497
2497
|
|
|
2498
2498
|
//#endregion
|
|
2499
2499
|
//#region src/ui/button-bubble-menu/toolbar.tsx
|
|
2500
|
-
function ButtonBubbleMenuToolbar({ children
|
|
2500
|
+
function ButtonBubbleMenuToolbar({ children, ...rest }) {
|
|
2501
2501
|
const { isEditing } = useButtonBubbleMenuContext();
|
|
2502
2502
|
if (isEditing) return null;
|
|
2503
2503
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -2526,7 +2526,7 @@ function useImageBubbleMenuContext() {
|
|
|
2526
2526
|
|
|
2527
2527
|
//#endregion
|
|
2528
2528
|
//#region src/ui/image-bubble-menu/edit-link.tsx
|
|
2529
|
-
function ImageBubbleMenuEditLink({ className, children, onClick, onMouseDown
|
|
2529
|
+
function ImageBubbleMenuEditLink({ className, children, onClick, onMouseDown, ...rest }) {
|
|
2530
2530
|
const { setIsEditing } = useImageBubbleMenuContext();
|
|
2531
2531
|
return /* @__PURE__ */ jsx("button", {
|
|
2532
2532
|
...rest,
|
|
@@ -2579,7 +2579,7 @@ function ImageBubbleMenuRoot({ onHide, placement = "top", offset = 8, className,
|
|
|
2579
2579
|
|
|
2580
2580
|
//#endregion
|
|
2581
2581
|
//#region src/ui/image-bubble-menu/toolbar.tsx
|
|
2582
|
-
function ImageBubbleMenuToolbar({ children
|
|
2582
|
+
function ImageBubbleMenuToolbar({ children, ...rest }) {
|
|
2583
2583
|
const { isEditing } = useImageBubbleMenuContext();
|
|
2584
2584
|
if (isEditing) return null;
|
|
2585
2585
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -2608,7 +2608,7 @@ function useLinkBubbleMenuContext() {
|
|
|
2608
2608
|
|
|
2609
2609
|
//#endregion
|
|
2610
2610
|
//#region src/ui/link-bubble-menu/edit-link.tsx
|
|
2611
|
-
function LinkBubbleMenuEditLink({ className, children, onClick, onMouseDown
|
|
2611
|
+
function LinkBubbleMenuEditLink({ className, children, onClick, onMouseDown, ...rest }) {
|
|
2612
2612
|
const { setIsEditing } = useLinkBubbleMenuContext();
|
|
2613
2613
|
return /* @__PURE__ */ jsx("button", {
|
|
2614
2614
|
type: "button",
|
|
@@ -2736,7 +2736,7 @@ function LinkBubbleMenuForm({ className, validateUrl, onLinkApply, onLinkRemove,
|
|
|
2736
2736
|
|
|
2737
2737
|
//#endregion
|
|
2738
2738
|
//#region src/ui/link-bubble-menu/open-link.tsx
|
|
2739
|
-
function LinkBubbleMenuOpenLink({ className, children
|
|
2739
|
+
function LinkBubbleMenuOpenLink({ className, children, ...rest }) {
|
|
2740
2740
|
const { linkHref } = useLinkBubbleMenuContext();
|
|
2741
2741
|
return /* @__PURE__ */ jsx("a", {
|
|
2742
2742
|
...rest,
|
|
@@ -2788,7 +2788,7 @@ function LinkBubbleMenuRoot({ onHide, placement = "top", offset = 8, className,
|
|
|
2788
2788
|
|
|
2789
2789
|
//#endregion
|
|
2790
2790
|
//#region src/ui/link-bubble-menu/toolbar.tsx
|
|
2791
|
-
function LinkBubbleMenuToolbar({ children
|
|
2791
|
+
function LinkBubbleMenuToolbar({ children, ...rest }) {
|
|
2792
2792
|
const { isEditing } = useLinkBubbleMenuContext();
|
|
2793
2793
|
if (isEditing) return null;
|
|
2794
2794
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -2800,7 +2800,7 @@ function LinkBubbleMenuToolbar({ children,...rest }) {
|
|
|
2800
2800
|
|
|
2801
2801
|
//#endregion
|
|
2802
2802
|
//#region src/ui/link-bubble-menu/unlink.tsx
|
|
2803
|
-
function LinkBubbleMenuUnlink({ className, children, onClick, onMouseDown
|
|
2803
|
+
function LinkBubbleMenuUnlink({ className, children, onClick, onMouseDown, ...rest }) {
|
|
2804
2804
|
const { editor } = useLinkBubbleMenuContext();
|
|
2805
2805
|
return /* @__PURE__ */ jsx("button", {
|
|
2806
2806
|
type: "button",
|