@react-email/editor 0.0.0-experimental.20 → 0.0.0-experimental.21

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.cjs CHANGED
@@ -37,6 +37,8 @@ let _tiptap_starter_kit = require("@tiptap/starter-kit");
37
37
  _tiptap_starter_kit = __toESM(_tiptap_starter_kit);
38
38
  let _tiptap_extension_blockquote = require("@tiptap/extension-blockquote");
39
39
  _tiptap_extension_blockquote = __toESM(_tiptap_extension_blockquote);
40
+ let _tiptap_extension_bold = require("@tiptap/extension-bold");
41
+ _tiptap_extension_bold = __toESM(_tiptap_extension_bold);
40
42
  let _tiptap_extension_bullet_list = require("@tiptap/extension-bullet-list");
41
43
  _tiptap_extension_bullet_list = __toESM(_tiptap_extension_bullet_list);
42
44
  let _tiptap_extension_code = require("@tiptap/extension-code");
@@ -67,6 +69,10 @@ let _tiptap_extension_placeholder = require("@tiptap/extension-placeholder");
67
69
  _tiptap_extension_placeholder = __toESM(_tiptap_extension_placeholder);
68
70
  let _tiptap_extension_strike = require("@tiptap/extension-strike");
69
71
  _tiptap_extension_strike = __toESM(_tiptap_extension_strike);
72
+ let _tiptap_extension_superscript = require("@tiptap/extension-superscript");
73
+ _tiptap_extension_superscript = __toESM(_tiptap_extension_superscript);
74
+ let _tiptap_extension_underline = require("@tiptap/extension-underline");
75
+ _tiptap_extension_underline = __toESM(_tiptap_extension_underline);
70
76
  let _tiptap_html = require("@tiptap/html");
71
77
  let lucide_react = require("lucide-react");
72
78
  let _radix_ui_react_popover = require("@radix-ui/react-popover");
@@ -690,95 +696,23 @@ const Body = EmailNode.create({
690
696
 
691
697
  //#endregion
692
698
  //#region src/extensions/bold.tsx
693
- /**
694
- * Matches bold text via `**` as input.
695
- */
696
- const starInputRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/;
697
- /**
698
- * Matches bold text via `**` while pasting.
699
- */
700
- const starPasteRegex = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g;
701
- /**
702
- * Matches bold text via `__` as input.
703
- */
704
- const underscoreInputRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/;
705
- /**
706
- * Matches bold text via `__` while pasting.
707
- */
708
- const underscorePasteRegex = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g;
709
- /**
710
- * This extension allows you to mark text as bold.
711
- * @see https://tiptap.dev/api/marks/bold
712
- */
713
- const Bold = EmailMark.create({
714
- name: "bold",
715
- addOptions() {
716
- return { HTMLAttributes: {} };
717
- },
718
- parseHTML() {
719
- return [
720
- { tag: "strong" },
721
- {
722
- tag: "b",
723
- getAttrs: (node) => node.style.fontWeight !== "normal" && null
724
- },
725
- {
726
- style: "font-weight=400",
727
- clearMark: (mark) => mark.type.name === this.name
728
- }
729
- ];
730
- },
731
- renderHTML({ HTMLAttributes }) {
732
- return [
733
- "strong",
734
- (0, _tiptap_core.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes),
735
- 0
736
- ];
737
- },
738
- renderToReactEmail({ children, style }) {
739
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
740
- style,
741
- children
742
- });
743
- },
744
- addCommands() {
745
- return {
746
- setBold: () => ({ commands }) => {
747
- return commands.setMark(this.name);
748
- },
749
- toggleBold: () => ({ commands }) => {
750
- return commands.toggleMark(this.name);
751
- },
752
- unsetBold: () => ({ commands }) => {
753
- return commands.unsetMark(this.name);
754
- }
755
- };
756
- },
757
- addKeyboardShortcuts() {
758
- return {
759
- "Mod-b": () => this.editor.commands.toggleBold(),
760
- "Mod-B": () => this.editor.commands.toggleBold()
761
- };
762
- },
763
- addInputRules() {
764
- return [(0, _tiptap_core.markInputRule)({
765
- find: starInputRegex,
766
- type: this.type
767
- }), (0, _tiptap_core.markInputRule)({
768
- find: underscoreInputRegex,
769
- type: this.type
770
- })];
771
- },
772
- addPasteRules() {
773
- return [(0, _tiptap_core.markPasteRule)({
774
- find: starPasteRegex,
775
- type: this.type
776
- }), (0, _tiptap_core.markPasteRule)({
777
- find: underscorePasteRegex,
778
- type: this.type
779
- })];
780
- }
781
- });
699
+ const BoldWithoutFontWeightInference = _tiptap_extension_bold.default.extend({ parseHTML() {
700
+ return [
701
+ { tag: "strong" },
702
+ {
703
+ tag: "b",
704
+ getAttrs: (node) => node.style.fontWeight !== "normal" && null
705
+ },
706
+ {
707
+ style: "font-weight=400",
708
+ clearMark: (mark) => mark.type.name === this.name
709
+ }
710
+ ];
711
+ } });
712
+ const Bold = EmailMark.from(BoldWithoutFontWeightInference, ({ children, style }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
713
+ style,
714
+ children
715
+ }));
782
716
 
783
717
  //#endregion
784
718
  //#region src/extensions/bullet-list.tsx
@@ -1778,33 +1712,11 @@ const StyleAttribute = _tiptap_core.Extension.create({
1778
1712
 
1779
1713
  //#endregion
1780
1714
  //#region src/extensions/sup.tsx
1781
- /**
1782
- * This extension allows you to mark text as superscript.
1783
- * @see https://tiptap.dev/api/marks/superscript
1784
- */
1785
- const Sup = EmailMark.create({
1715
+ const SupBase = _tiptap_extension_superscript.default.extend({
1786
1716
  name: "sup",
1787
- addOptions() {
1788
- return { HTMLAttributes: {} };
1789
- },
1790
- parseHTML() {
1791
- return [{ tag: "sup" }];
1792
- },
1793
- renderHTML({ HTMLAttributes }) {
1794
- return [
1795
- "sup",
1796
- (0, _tiptap_core.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes),
1797
- 0
1798
- ];
1799
- },
1800
- renderToReactEmail({ children, style }) {
1801
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("sup", {
1802
- style,
1803
- children
1804
- });
1805
- },
1806
1717
  addCommands() {
1807
1718
  return {
1719
+ ...this.parent?.(),
1808
1720
  setSup: () => ({ commands }) => {
1809
1721
  return commands.setMark(this.name);
1810
1722
  },
@@ -1817,6 +1729,10 @@ const Sup = EmailMark.create({
1817
1729
  };
1818
1730
  }
1819
1731
  });
1732
+ const Sup = EmailMark.from(SupBase, ({ children, style }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("sup", {
1733
+ style,
1734
+ children
1735
+ }));
1820
1736
 
1821
1737
  //#endregion
1822
1738
  //#region src/extensions/table.tsx
@@ -2004,6 +1920,13 @@ const TableHeader = _tiptap_core.Node.create({
2004
1920
  }
2005
1921
  });
2006
1922
 
1923
+ //#endregion
1924
+ //#region src/extensions/underline.tsx
1925
+ const Underline = EmailMark.from(_tiptap_extension_underline.default, ({ children, style }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("u", {
1926
+ style,
1927
+ children
1928
+ }));
1929
+
2007
1930
  //#endregion
2008
1931
  //#region src/extensions/uppercase.tsx
2009
1932
  const Uppercase = EmailMark.create({
@@ -2241,6 +2164,7 @@ const starterKitExtensions = {
2241
2164
  Divider,
2242
2165
  Link,
2243
2166
  Sup,
2167
+ Underline,
2244
2168
  Uppercase,
2245
2169
  PreservedStyle,
2246
2170
  Table,
@@ -2285,6 +2209,7 @@ const StarterKit = _tiptap_core.Extension.create({
2285
2209
  Divider: {},
2286
2210
  Link: {},
2287
2211
  Sup: {},
2212
+ Underline: {},
2288
2213
  Uppercase: {},
2289
2214
  PreservedStyle: {},
2290
2215
  Table: {},
@@ -4259,6 +4184,7 @@ exports.TableHeader = TableHeader;
4259
4184
  exports.TableRow = TableRow;
4260
4185
  exports.ThreeColumns = ThreeColumns;
4261
4186
  exports.TwoColumns = TwoColumns;
4187
+ exports.Underline = Underline;
4262
4188
  exports.Uppercase = Uppercase;
4263
4189
  exports.composeReactEmail = composeReactEmail;
4264
4190
  exports.createSlashCommand = createSlashCommand;
package/dist/index.d.cts CHANGED
@@ -13,12 +13,15 @@ import { OrderedListOptions } from "@tiptap/extension-ordered-list";
13
13
  import { ParagraphOptions } from "@tiptap/extension-paragraph";
14
14
  import { StrikeOptions } from "@tiptap/extension-strike";
15
15
  import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit";
16
+ import { BoldOptions as BoldOptions$1 } from "@tiptap/extension-bold";
16
17
  import { CodeBlockOptions } from "@tiptap/extension-code-block";
17
18
  import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
18
19
  import { HeadingOptions as HeadingOptions$1 } from "@tiptap/extension-heading";
19
20
  import { LinkOptions as LinkOptions$1 } from "@tiptap/extension-link";
20
21
  import { PlaceholderOptions as PlaceholderOptions$1 } from "@tiptap/extension-placeholder";
21
- import * as react_jsx_runtime6 from "react/jsx-runtime";
22
+ import { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
23
+ import { UnderlineOptions as UnderlineOptions$1 } from "@tiptap/extension-underline";
24
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
22
25
  import * as React$1 from "react";
23
26
  import { ComponentType, ReactNode, Ref } from "react";
24
27
 
@@ -206,37 +209,8 @@ declare class EmailMark<Options = Record<string, never>, Storage = Record<string
206
209
  }
207
210
  //#endregion
208
211
  //#region src/extensions/bold.d.ts
209
- interface BoldOptions {
210
- /**
211
- * HTML attributes to add to the bold element.
212
- * @default {}
213
- * @example { class: 'foo' }
214
- */
215
- HTMLAttributes: Record<string, unknown>;
216
- }
217
- declare module '@tiptap/core' {
218
- interface Commands<ReturnType> {
219
- bold: {
220
- /**
221
- * Set a bold mark
222
- */
223
- setBold: () => ReturnType;
224
- /**
225
- * Toggle a bold mark
226
- */
227
- toggleBold: () => ReturnType;
228
- /**
229
- * Unset a bold mark
230
- */
231
- unsetBold: () => ReturnType;
232
- };
233
- }
234
- }
235
- /**
236
- * This extension allows you to mark text as bold.
237
- * @see https://tiptap.dev/api/marks/bold
238
- */
239
- declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
212
+ type BoldOptions = BoldOptions$1;
213
+ declare const Bold: EmailMark<BoldOptions$1, any>;
240
214
  //#endregion
241
215
  //#region src/extensions/button.d.ts
242
216
  interface EditorButtonOptions {
@@ -373,14 +347,7 @@ declare module '@tiptap/core' {
373
347
  declare const StyleAttribute: Extension<StyleAttributeOptions, any>;
374
348
  //#endregion
375
349
  //#region src/extensions/sup.d.ts
376
- interface SupOptions {
377
- /**
378
- * HTML attributes to add to the sup element.
379
- * @default {}
380
- * @example { class: 'foo' }
381
- */
382
- HTMLAttributes: Record<string, unknown>;
383
- }
350
+ type SupOptions = SuperscriptExtensionOptions;
384
351
  declare module '@tiptap/core' {
385
352
  interface Commands<ReturnType> {
386
353
  sup: {
@@ -399,11 +366,7 @@ declare module '@tiptap/core' {
399
366
  };
400
367
  }
401
368
  }
402
- /**
403
- * This extension allows you to mark text as superscript.
404
- * @see https://tiptap.dev/api/marks/superscript
405
- */
406
- declare const Sup: EmailMark<SupOptions, Record<string, never>>;
369
+ declare const Sup: EmailMark<SuperscriptExtensionOptions, any>;
407
370
  //#endregion
408
371
  //#region src/extensions/table.d.ts
409
372
  declare module '@tiptap/core' {
@@ -435,6 +398,10 @@ interface TableCellOptions extends Record<string, unknown> {
435
398
  declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
436
399
  declare const TableHeader: Node$1<any, any>;
437
400
  //#endregion
401
+ //#region src/extensions/underline.d.ts
402
+ type UnderlineOptions = UnderlineOptions$1;
403
+ declare const Underline: EmailMark<UnderlineOptions$1, any>;
404
+ //#endregion
438
405
  //#region src/extensions/uppercase.d.ts
439
406
  interface UppercaseOptions {
440
407
  HTMLAttributes: Record<string, unknown>;
@@ -521,6 +488,7 @@ type StarterKitOptions = {
521
488
  Divider: Partial<DividerOptions> | false;
522
489
  Link: Partial<LinkOptions> | false;
523
490
  Sup: Partial<SupOptions> | false;
491
+ Underline: Partial<UnderlineOptions> | false;
524
492
  Uppercase: Partial<UppercaseOptions> | false;
525
493
  PreservedStyle: Partial<Record<string, never>> | false;
526
494
  Table: Partial<TableOptions> | false;
@@ -551,19 +519,19 @@ interface PreWiredItemProps {
551
519
  declare function BubbleMenuAlignCenter({
552
520
  className,
553
521
  children
554
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
522
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
555
523
  //#endregion
556
524
  //#region src/ui/bubble-menu/align-left.d.ts
557
525
  declare function BubbleMenuAlignLeft({
558
526
  className,
559
527
  children
560
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
528
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
561
529
  //#endregion
562
530
  //#region src/ui/bubble-menu/align-right.d.ts
563
531
  declare function BubbleMenuAlignRight({
564
532
  className,
565
533
  children
566
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
534
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
567
535
  //#endregion
568
536
  //#region src/ui/bubble-menu/default.d.ts
569
537
  type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
@@ -588,7 +556,7 @@ declare function BubbleMenuDefault({
588
556
  offset,
589
557
  onHide,
590
558
  className
591
- }: BubbleMenuDefaultProps): react_jsx_runtime6.JSX.Element;
559
+ }: BubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
592
560
  //#endregion
593
561
  //#region src/ui/bubble-menu/group.d.ts
594
562
  interface BubbleMenuItemGroupProps {
@@ -598,7 +566,7 @@ interface BubbleMenuItemGroupProps {
598
566
  declare function BubbleMenuItemGroup({
599
567
  className,
600
568
  children
601
- }: BubbleMenuItemGroupProps): react_jsx_runtime6.JSX.Element;
569
+ }: BubbleMenuItemGroupProps): react_jsx_runtime8.JSX.Element;
602
570
  //#endregion
603
571
  //#region src/ui/bubble-menu/item.d.ts
604
572
  interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
@@ -616,7 +584,7 @@ declare function BubbleMenuItem({
616
584
  className,
617
585
  children,
618
586
  ...rest
619
- }: BubbleMenuItemProps): react_jsx_runtime6.JSX.Element;
587
+ }: BubbleMenuItemProps): react_jsx_runtime8.JSX.Element;
620
588
  //#endregion
621
589
  //#region src/ui/bubble-menu/link-selector.d.ts
622
590
  interface BubbleMenuLinkSelectorProps {
@@ -645,7 +613,7 @@ declare function BubbleMenuLinkSelector({
645
613
  children,
646
614
  open: controlledOpen,
647
615
  onOpenChange
648
- }: BubbleMenuLinkSelectorProps): react_jsx_runtime6.JSX.Element | null;
616
+ }: BubbleMenuLinkSelectorProps): react_jsx_runtime8.JSX.Element | null;
649
617
  //#endregion
650
618
  //#region src/ui/bubble-menu/node-selector.d.ts
651
619
  type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
@@ -671,7 +639,7 @@ declare function NodeSelectorRoot({
671
639
  onOpenChange,
672
640
  className,
673
641
  children
674
- }: NodeSelectorRootProps): react_jsx_runtime6.JSX.Element | null;
642
+ }: NodeSelectorRootProps): react_jsx_runtime8.JSX.Element | null;
675
643
  interface NodeSelectorTriggerProps {
676
644
  className?: string;
677
645
  children?: React$1.ReactNode;
@@ -679,7 +647,7 @@ interface NodeSelectorTriggerProps {
679
647
  declare function NodeSelectorTrigger({
680
648
  className,
681
649
  children
682
- }: NodeSelectorTriggerProps): react_jsx_runtime6.JSX.Element;
650
+ }: NodeSelectorTriggerProps): react_jsx_runtime8.JSX.Element;
683
651
  interface NodeSelectorContentProps {
684
652
  className?: string;
685
653
  /** Popover alignment (default: "start") */
@@ -692,7 +660,7 @@ declare function NodeSelectorContent({
692
660
  className,
693
661
  align,
694
662
  children
695
- }: NodeSelectorContentProps): react_jsx_runtime6.JSX.Element;
663
+ }: NodeSelectorContentProps): react_jsx_runtime8.JSX.Element;
696
664
  interface BubbleMenuNodeSelectorProps {
697
665
  /** Block types to exclude */
698
666
  omit?: string[];
@@ -710,7 +678,7 @@ declare function BubbleMenuNodeSelector({
710
678
  triggerContent,
711
679
  open,
712
680
  onOpenChange
713
- }: BubbleMenuNodeSelectorProps): react_jsx_runtime6.JSX.Element;
681
+ }: BubbleMenuNodeSelectorProps): react_jsx_runtime8.JSX.Element;
714
682
  //#endregion
715
683
  //#region src/ui/bubble-menu/root.d.ts
716
684
  interface BubbleMenuRootProps {
@@ -733,7 +701,7 @@ declare function BubbleMenuRoot({
733
701
  onHide,
734
702
  className,
735
703
  children
736
- }: BubbleMenuRootProps): react_jsx_runtime6.JSX.Element | null;
704
+ }: BubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
737
705
  //#endregion
738
706
  //#region src/ui/bubble-menu/separator.d.ts
739
707
  interface BubbleMenuSeparatorProps {
@@ -741,14 +709,14 @@ interface BubbleMenuSeparatorProps {
741
709
  }
742
710
  declare function BubbleMenuSeparator({
743
711
  className
744
- }: BubbleMenuSeparatorProps): react_jsx_runtime6.JSX.Element;
712
+ }: BubbleMenuSeparatorProps): react_jsx_runtime8.JSX.Element;
745
713
  //#endregion
746
714
  //#region src/ui/bubble-menu/bold.d.ts
747
715
  declare const BubbleMenuBold: {
748
716
  ({
749
717
  className,
750
718
  children
751
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
719
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
752
720
  displayName: string;
753
721
  };
754
722
  //#endregion
@@ -757,7 +725,7 @@ declare const BubbleMenuCode: {
757
725
  ({
758
726
  className,
759
727
  children
760
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
728
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
761
729
  displayName: string;
762
730
  };
763
731
  //#endregion
@@ -766,7 +734,7 @@ declare const BubbleMenuItalic: {
766
734
  ({
767
735
  className,
768
736
  children
769
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
737
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
770
738
  displayName: string;
771
739
  };
772
740
  //#endregion
@@ -775,7 +743,7 @@ declare const BubbleMenuStrike: {
775
743
  ({
776
744
  className,
777
745
  children
778
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
746
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
779
747
  displayName: string;
780
748
  };
781
749
  //#endregion
@@ -784,7 +752,7 @@ declare const BubbleMenuUnderline: {
784
752
  ({
785
753
  className,
786
754
  children
787
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
755
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
788
756
  displayName: string;
789
757
  };
790
758
  //#endregion
@@ -793,7 +761,7 @@ declare const BubbleMenuUppercase: {
793
761
  ({
794
762
  className,
795
763
  children
796
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
764
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
797
765
  displayName: string;
798
766
  };
799
767
  //#endregion
@@ -807,42 +775,42 @@ declare const BubbleMenu: {
807
775
  ({
808
776
  className,
809
777
  children
810
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
778
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
811
779
  displayName: string;
812
780
  };
813
781
  readonly Italic: {
814
782
  ({
815
783
  className,
816
784
  children
817
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
785
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
818
786
  displayName: string;
819
787
  };
820
788
  readonly Underline: {
821
789
  ({
822
790
  className,
823
791
  children
824
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
792
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
825
793
  displayName: string;
826
794
  };
827
795
  readonly Strike: {
828
796
  ({
829
797
  className,
830
798
  children
831
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
799
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
832
800
  displayName: string;
833
801
  };
834
802
  readonly Code: {
835
803
  ({
836
804
  className,
837
805
  children
838
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
806
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
839
807
  displayName: string;
840
808
  };
841
809
  readonly Uppercase: {
842
810
  ({
843
811
  className,
844
812
  children
845
- }: PreWiredItemProps): react_jsx_runtime6.JSX.Element;
813
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
846
814
  displayName: string;
847
815
  };
848
816
  readonly AlignLeft: typeof BubbleMenuAlignLeft;
@@ -872,7 +840,7 @@ declare function ButtonBubbleMenuDefault({
872
840
  offset,
873
841
  onHide,
874
842
  className
875
- }: ButtonBubbleMenuDefaultProps): react_jsx_runtime6.JSX.Element;
843
+ }: ButtonBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
876
844
  //#endregion
877
845
  //#region src/ui/button-bubble-menu/edit-link.d.ts
878
846
  interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -882,7 +850,7 @@ declare function ButtonBubbleMenuEditLink({
882
850
  onClick,
883
851
  onMouseDown,
884
852
  ...rest
885
- }: ButtonBubbleMenuEditLinkProps): react_jsx_runtime6.JSX.Element;
853
+ }: ButtonBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
886
854
  //#endregion
887
855
  //#region src/ui/button-bubble-menu/root.d.ts
888
856
  interface ButtonBubbleMenuRootProps {
@@ -902,14 +870,14 @@ declare function ButtonBubbleMenuRoot({
902
870
  offset,
903
871
  className,
904
872
  children
905
- }: ButtonBubbleMenuRootProps): react_jsx_runtime6.JSX.Element | null;
873
+ }: ButtonBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
906
874
  //#endregion
907
875
  //#region src/ui/button-bubble-menu/toolbar.d.ts
908
876
  interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
909
877
  declare function ButtonBubbleMenuToolbar({
910
878
  children,
911
879
  ...rest
912
- }: ButtonBubbleMenuToolbarProps): react_jsx_runtime6.JSX.Element | null;
880
+ }: ButtonBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
913
881
  //#endregion
914
882
  //#region src/ui/button-bubble-menu/context.d.ts
915
883
  interface ButtonBubbleMenuContextValue {
@@ -942,7 +910,7 @@ declare function ImageBubbleMenuDefault({
942
910
  offset,
943
911
  onHide,
944
912
  className
945
- }: ImageBubbleMenuDefaultProps): react_jsx_runtime6.JSX.Element;
913
+ }: ImageBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
946
914
  //#endregion
947
915
  //#region src/ui/image-bubble-menu/edit-link.d.ts
948
916
  interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -952,7 +920,7 @@ declare function ImageBubbleMenuEditLink({
952
920
  onClick,
953
921
  onMouseDown,
954
922
  ...rest
955
- }: ImageBubbleMenuEditLinkProps): react_jsx_runtime6.JSX.Element;
923
+ }: ImageBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
956
924
  //#endregion
957
925
  //#region src/ui/image-bubble-menu/root.d.ts
958
926
  interface ImageBubbleMenuRootProps {
@@ -972,14 +940,14 @@ declare function ImageBubbleMenuRoot({
972
940
  offset,
973
941
  className,
974
942
  children
975
- }: ImageBubbleMenuRootProps): react_jsx_runtime6.JSX.Element | null;
943
+ }: ImageBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
976
944
  //#endregion
977
945
  //#region src/ui/image-bubble-menu/toolbar.d.ts
978
946
  interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
979
947
  declare function ImageBubbleMenuToolbar({
980
948
  children,
981
949
  ...rest
982
- }: ImageBubbleMenuToolbarProps): react_jsx_runtime6.JSX.Element | null;
950
+ }: ImageBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
983
951
  //#endregion
984
952
  //#region src/ui/image-bubble-menu/context.d.ts
985
953
  interface ImageBubbleMenuContextValue {
@@ -1018,7 +986,7 @@ declare function LinkBubbleMenuDefault({
1018
986
  validateUrl,
1019
987
  onLinkApply,
1020
988
  onLinkRemove
1021
- }: LinkBubbleMenuDefaultProps): react_jsx_runtime6.JSX.Element;
989
+ }: LinkBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
1022
990
  //#endregion
1023
991
  //#region src/ui/link-bubble-menu/edit-link.d.ts
1024
992
  interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -1028,7 +996,7 @@ declare function LinkBubbleMenuEditLink({
1028
996
  onClick,
1029
997
  onMouseDown,
1030
998
  ...rest
1031
- }: LinkBubbleMenuEditLinkProps): react_jsx_runtime6.JSX.Element;
999
+ }: LinkBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
1032
1000
  //#endregion
1033
1001
  //#region src/ui/link-bubble-menu/form.d.ts
1034
1002
  interface LinkBubbleMenuFormProps {
@@ -1048,7 +1016,7 @@ declare function LinkBubbleMenuForm({
1048
1016
  onLinkApply,
1049
1017
  onLinkRemove,
1050
1018
  children
1051
- }: LinkBubbleMenuFormProps): react_jsx_runtime6.JSX.Element | null;
1019
+ }: LinkBubbleMenuFormProps): react_jsx_runtime8.JSX.Element | null;
1052
1020
  //#endregion
1053
1021
  //#region src/ui/link-bubble-menu/open-link.d.ts
1054
1022
  interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
@@ -1056,7 +1024,7 @@ declare function LinkBubbleMenuOpenLink({
1056
1024
  className,
1057
1025
  children,
1058
1026
  ...rest
1059
- }: LinkBubbleMenuOpenLinkProps): react_jsx_runtime6.JSX.Element;
1027
+ }: LinkBubbleMenuOpenLinkProps): react_jsx_runtime8.JSX.Element;
1060
1028
  //#endregion
1061
1029
  //#region src/ui/link-bubble-menu/root.d.ts
1062
1030
  interface LinkBubbleMenuRootProps {
@@ -1076,14 +1044,14 @@ declare function LinkBubbleMenuRoot({
1076
1044
  offset,
1077
1045
  className,
1078
1046
  children
1079
- }: LinkBubbleMenuRootProps): react_jsx_runtime6.JSX.Element | null;
1047
+ }: LinkBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
1080
1048
  //#endregion
1081
1049
  //#region src/ui/link-bubble-menu/toolbar.d.ts
1082
1050
  interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
1083
1051
  declare function LinkBubbleMenuToolbar({
1084
1052
  children,
1085
1053
  ...rest
1086
- }: LinkBubbleMenuToolbarProps): react_jsx_runtime6.JSX.Element | null;
1054
+ }: LinkBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
1087
1055
  //#endregion
1088
1056
  //#region src/ui/link-bubble-menu/unlink.d.ts
1089
1057
  interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -1093,7 +1061,7 @@ declare function LinkBubbleMenuUnlink({
1093
1061
  onClick,
1094
1062
  onMouseDown,
1095
1063
  ...rest
1096
- }: LinkBubbleMenuUnlinkProps): react_jsx_runtime6.JSX.Element;
1064
+ }: LinkBubbleMenuUnlinkProps): react_jsx_runtime8.JSX.Element;
1097
1065
  //#endregion
1098
1066
  //#region src/ui/link-bubble-menu/context.d.ts
1099
1067
  interface LinkBubbleMenuContextValue {
@@ -1152,7 +1120,7 @@ declare function CommandList({
1152
1120
  command,
1153
1121
  query,
1154
1122
  ref
1155
- }: CommandListProps): react_jsx_runtime6.JSX.Element;
1123
+ }: CommandListProps): react_jsx_runtime8.JSX.Element;
1156
1124
  //#endregion
1157
1125
  //#region src/ui/slash-command/commands.d.ts
1158
1126
  declare const TEXT: SlashCommandItem;
@@ -1192,5 +1160,5 @@ declare const SlashCommand: _tiptap_core0.Extension<any, any>;
1192
1160
  //#region src/utils/set-text-alignment.d.ts
1193
1161
  declare function setTextAlignment(editor: Editor, alignment: string): void;
1194
1162
  //#endregion
1195
- export { AlignmentAttribute, AlignmentOptions, BULLET_LIST, BUTTON, Blockquote, Body, BodyOptions, Bold, BoldOptions, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuCode, BubbleMenuDefault, type BubbleMenuDefaultProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, BulletList, Button, ButtonBubbleMenu, ButtonBubbleMenuDefault, type ButtonBubbleMenuDefaultProps, ButtonBubbleMenuEditLink, type ButtonBubbleMenuEditLinkProps, ButtonBubbleMenuRoot, type ButtonBubbleMenuRootProps, ButtonBubbleMenuToolbar, type ButtonBubbleMenuToolbarProps, CODE, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, Code, CodeBlockPrism, CodeBlockPrismOptions, ColumnsColumn, CommandList, type CommandListComponent, type CommandListProps, type CommandListRef, DIVIDER, Div, DivOptions, Divider, DividerOptions, EditorButtonOptions, EditorEventHandler, EditorEventMap, EditorEventName, EditorEventSubscription, EmailNode, EmailNodeConfig, FOUR_COLUMNS, FourColumns, GlobalContent, GlobalContentOptions, H1, H2, H3, HardBreak, Heading, HeadingOptions, ImageBubbleMenu, ImageBubbleMenuDefault, type ImageBubbleMenuDefaultProps, ImageBubbleMenuEditLink, type ImageBubbleMenuEditLinkProps, ImageBubbleMenuRoot, type ImageBubbleMenuRootProps, ImageBubbleMenuToolbar, type ImageBubbleMenuToolbarProps, Italic, Link, LinkBubbleMenu, LinkBubbleMenuDefault, type LinkBubbleMenuDefaultProps, LinkBubbleMenuEditLink, type LinkBubbleMenuEditLinkProps, LinkBubbleMenuForm, type LinkBubbleMenuFormProps, LinkBubbleMenuOpenLink, type LinkBubbleMenuOpenLinkProps, LinkBubbleMenuRoot, type LinkBubbleMenuRootProps, LinkBubbleMenuToolbar, type LinkBubbleMenuToolbarProps, LinkBubbleMenuUnlink, type LinkBubbleMenuUnlinkProps, LinkOptions, ListItem, MAX_COLUMNS_DEPTH, MaxNesting, MaxNestingOptions, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, OrderedList, Paragraph, Placeholder, PlaceholderOptions, type PreWiredItemProps, PreservedStyle, PreviewText, PreviewTextOptions, QUOTE, RendererComponent, SECTION, type SearchableItem, Section, SectionOptions, SlashCommand, type SlashCommandItem, type SlashCommandProps, StarterKit, StarterKitOptions, Strike, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, TEXT, THREE_COLUMNS, TWO_COLUMNS, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Uppercase, UppercaseOptions, composeReactEmail, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, getGlobalContent, isAtMaxColumnsDepth, isDocumentVisuallyEmpty, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
1163
+ export { AlignmentAttribute, AlignmentOptions, BULLET_LIST, BUTTON, Blockquote, Body, BodyOptions, Bold, BoldOptions, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuCode, BubbleMenuDefault, type BubbleMenuDefaultProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, BulletList, Button, ButtonBubbleMenu, ButtonBubbleMenuDefault, type ButtonBubbleMenuDefaultProps, ButtonBubbleMenuEditLink, type ButtonBubbleMenuEditLinkProps, ButtonBubbleMenuRoot, type ButtonBubbleMenuRootProps, ButtonBubbleMenuToolbar, type ButtonBubbleMenuToolbarProps, CODE, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, Code, CodeBlockPrism, CodeBlockPrismOptions, ColumnsColumn, CommandList, type CommandListComponent, type CommandListProps, type CommandListRef, DIVIDER, Div, DivOptions, Divider, DividerOptions, EditorButtonOptions, EditorEventHandler, EditorEventMap, EditorEventName, EditorEventSubscription, EmailNode, EmailNodeConfig, FOUR_COLUMNS, FourColumns, GlobalContent, GlobalContentOptions, H1, H2, H3, HardBreak, Heading, HeadingOptions, ImageBubbleMenu, ImageBubbleMenuDefault, type ImageBubbleMenuDefaultProps, ImageBubbleMenuEditLink, type ImageBubbleMenuEditLinkProps, ImageBubbleMenuRoot, type ImageBubbleMenuRootProps, ImageBubbleMenuToolbar, type ImageBubbleMenuToolbarProps, Italic, Link, LinkBubbleMenu, LinkBubbleMenuDefault, type LinkBubbleMenuDefaultProps, LinkBubbleMenuEditLink, type LinkBubbleMenuEditLinkProps, LinkBubbleMenuForm, type LinkBubbleMenuFormProps, LinkBubbleMenuOpenLink, type LinkBubbleMenuOpenLinkProps, LinkBubbleMenuRoot, type LinkBubbleMenuRootProps, LinkBubbleMenuToolbar, type LinkBubbleMenuToolbarProps, LinkBubbleMenuUnlink, type LinkBubbleMenuUnlinkProps, LinkOptions, ListItem, MAX_COLUMNS_DEPTH, MaxNesting, MaxNestingOptions, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, OrderedList, Paragraph, Placeholder, PlaceholderOptions, type PreWiredItemProps, PreservedStyle, PreviewText, PreviewTextOptions, QUOTE, RendererComponent, SECTION, type SearchableItem, Section, SectionOptions, SlashCommand, type SlashCommandItem, type SlashCommandProps, StarterKit, StarterKitOptions, Strike, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, TEXT, THREE_COLUMNS, TWO_COLUMNS, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Underline, UnderlineOptions, Uppercase, UppercaseOptions, composeReactEmail, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, getGlobalContent, isAtMaxColumnsDepth, isDocumentVisuallyEmpty, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
1196
1164
  //# sourceMappingURL=index.d.cts.map