@react-email/editor 0.0.0-experimental.8 → 1.0.0

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.
Files changed (92) hide show
  1. package/dist/columns-BItFgD76.mjs +273 -0
  2. package/dist/columns-BItFgD76.mjs.map +1 -0
  3. package/dist/columns-DqFvXgmK.cjs +394 -0
  4. package/dist/core/index.cjs +10 -0
  5. package/dist/core/index.d.cts +2 -0
  6. package/dist/core/index.d.mts +2 -0
  7. package/dist/core/index.mjs +4 -0
  8. package/dist/core-CbSTyrV4.mjs +151 -0
  9. package/dist/core-CbSTyrV4.mjs.map +1 -0
  10. package/dist/core-D7AzzMLI.cjs +167 -0
  11. package/dist/email-node-B-_g4X-S.mjs +254 -0
  12. package/dist/email-node-B-_g4X-S.mjs.map +1 -0
  13. package/dist/email-node-hLU5bGnX.cjs +288 -0
  14. package/dist/event-bus-CIJ___tH.cjs +65 -0
  15. package/dist/event-bus-CqrIUE24.mjs +55 -0
  16. package/dist/event-bus-CqrIUE24.mjs.map +1 -0
  17. package/dist/extension-BbjpP9mF.cjs +1625 -0
  18. package/dist/extension-C5qNDPZL.mjs +154 -0
  19. package/dist/extension-C5qNDPZL.mjs.map +1 -0
  20. package/dist/extension-Cs4Yq2gF.cjs +158 -0
  21. package/dist/extension-DlWknmE5.mjs +1495 -0
  22. package/dist/extension-DlWknmE5.mjs.map +1 -0
  23. package/dist/extensions/index.cjs +50 -0
  24. package/dist/extensions/index.d.cts +392 -0
  25. package/dist/extensions/index.d.cts.map +1 -0
  26. package/dist/extensions/index.d.mts +392 -0
  27. package/dist/extensions/index.d.mts.map +1 -0
  28. package/dist/extensions/index.mjs +4 -0
  29. package/dist/extensions-CHIQO3d-.mjs +1745 -0
  30. package/dist/extensions-CHIQO3d-.mjs.map +1 -0
  31. package/dist/extensions-DCrDvZ42.cjs +1981 -0
  32. package/dist/global-content-0-J-Te3N.mjs +77 -0
  33. package/dist/global-content-0-J-Te3N.mjs.map +1 -0
  34. package/dist/global-content-8M2KyrOL.cjs +87 -0
  35. package/dist/image-KwEYzhji.cjs +41 -0
  36. package/dist/image-Oc789YjV.mjs +37 -0
  37. package/dist/image-Oc789YjV.mjs.map +1 -0
  38. package/dist/index-CHAPu71g.d.cts +193 -0
  39. package/dist/index-CHAPu71g.d.cts.map +1 -0
  40. package/dist/index-D4UEWmJX.d.mts +193 -0
  41. package/dist/index-D4UEWmJX.d.mts.map +1 -0
  42. package/dist/index.cjs +216 -0
  43. package/dist/index.d.cts +38 -0
  44. package/dist/index.d.cts.map +1 -0
  45. package/dist/index.d.mts +33 -623
  46. package/dist/index.d.mts.map +1 -1
  47. package/dist/index.mjs +189 -2349
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/plugins/index.cjs +56 -0
  50. package/dist/plugins/index.d.cts +114 -0
  51. package/dist/plugins/index.d.cts.map +1 -0
  52. package/dist/plugins/index.d.mts +114 -0
  53. package/dist/plugins/index.d.mts.map +1 -0
  54. package/dist/plugins/index.mjs +34 -0
  55. package/dist/plugins/index.mjs.map +1 -0
  56. package/dist/root-CT5d4CKj.cjs +2798 -0
  57. package/dist/root-uvdshbyT.mjs +2295 -0
  58. package/dist/root-uvdshbyT.mjs.map +1 -0
  59. package/dist/set-text-alignment-BCRnE5So.mjs +19 -0
  60. package/dist/set-text-alignment-BCRnE5So.mjs.map +1 -0
  61. package/dist/set-text-alignment-Twg1EG4-.cjs +22 -0
  62. package/dist/style.css +974 -0
  63. package/dist/types-BG5XsXt9.d.mts +37 -0
  64. package/dist/types-BG5XsXt9.d.mts.map +1 -0
  65. package/dist/types-DnOcnDoO.d.mts +56 -0
  66. package/dist/types-DnOcnDoO.d.mts.map +1 -0
  67. package/dist/types-DzPTbbDC.d.cts +56 -0
  68. package/dist/types-DzPTbbDC.d.cts.map +1 -0
  69. package/dist/types-hURXpEIO.d.cts +37 -0
  70. package/dist/types-hURXpEIO.d.cts.map +1 -0
  71. package/dist/ui/bubble-menu/bubble-menu.css +291 -0
  72. package/dist/ui/index.cjs +2899 -0
  73. package/dist/ui/index.d.cts +1155 -0
  74. package/dist/ui/index.d.cts.map +1 -0
  75. package/dist/ui/index.d.mts +1157 -0
  76. package/dist/ui/index.d.mts.map +1 -0
  77. package/dist/ui/index.mjs +2788 -0
  78. package/dist/ui/index.mjs.map +1 -0
  79. package/dist/ui/inspector/inspector.css +293 -0
  80. package/dist/ui/slash-command/slash-command.css +44 -0
  81. package/dist/ui/themes/default.css +1140 -0
  82. package/dist/utils/index.cjs +3 -0
  83. package/dist/utils/index.d.cts +7 -0
  84. package/dist/utils/index.d.cts.map +1 -0
  85. package/dist/utils/index.d.mts +7 -0
  86. package/dist/utils/index.d.mts.map +1 -0
  87. package/dist/utils/index.mjs +2 -0
  88. package/package.json +100 -16
  89. package/readme.md +69 -0
  90. package/dist/index.d.ts +0 -628
  91. package/dist/index.d.ts.map +0 -1
  92. package/dist/index.js +0 -2461
@@ -0,0 +1,37 @@
1
+ import { ReactNode } from "react";
2
+ import { Editor, Range } from "@tiptap/core";
3
+
4
+ //#region src/ui/slash-command/types.d.ts
5
+ type SlashCommandCategory = string;
6
+ interface SearchableItem {
7
+ title: string;
8
+ description: string;
9
+ searchTerms?: string[];
10
+ }
11
+ interface SlashCommandItem extends SearchableItem {
12
+ icon: ReactNode;
13
+ category: SlashCommandCategory;
14
+ command: (props: SlashCommandProps) => void;
15
+ }
16
+ interface SlashCommandProps {
17
+ editor: Editor;
18
+ range: Range;
19
+ }
20
+ interface SlashCommandRenderProps {
21
+ items: SlashCommandItem[];
22
+ query: string;
23
+ selectedIndex: number;
24
+ onSelect: (index: number) => void;
25
+ }
26
+ interface SlashCommandRootProps {
27
+ items?: SlashCommandItem[];
28
+ filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
29
+ char?: string;
30
+ allow?: (props: {
31
+ editor: Editor;
32
+ }) => boolean;
33
+ children?: (props: SlashCommandRenderProps) => ReactNode;
34
+ }
35
+ //#endregion
36
+ export { SlashCommandRootProps as a, SlashCommandRenderProps as i, SlashCommandItem as n, SlashCommandProps as r, SearchableItem as t };
37
+ //# sourceMappingURL=types-BG5XsXt9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BG5XsXt9.d.mts","names":[],"sources":["../src/ui/slash-command/types.ts"],"mappings":";;;;KAGY,oBAAA;AAAA,UAEK,cAAA;EACf,KAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,UAGe,gBAAA,SAAyB,cAAA;EACxC,IAAA,EAAM,SAAA;EACN,QAAA,EAAU,oBAAA;EACV,OAAA,GAAU,KAAA,EAAO,iBAAA;AAAA;AAAA,UAGF,iBAAA;EACf,MAAA,EAAQ,MAAA;EACR,KAAA,EAAO,KAAA;AAAA;AAAA,UAGQ,uBAAA;EACf,KAAA,EAAO,gBAAA;EACP,KAAA;EACA,aAAA;EACA,QAAA,GAAW,KAAA;AAAA;AAAA,UAGI,qBAAA;EACf,KAAA,GAAQ,gBAAA;EACR,WAAA,IACE,KAAA,EAAO,gBAAA,IACP,KAAA,UACA,MAAA,EAAQ,MAAA,KACL,gBAAA;EACL,IAAA;EACA,KAAA,IAAS,KAAA;IAAS,MAAA,EAAQ,MAAA;EAAA;EAC1B,QAAA,IAAY,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA"}
@@ -0,0 +1,56 @@
1
+ import * as React$1 from "react";
2
+
3
+ //#region src/plugins/email-theming/types.d.ts
4
+ type InputType = 'color' | 'number' | 'select' | 'text' | 'textarea';
5
+ type InputUnit = 'px' | '%';
6
+ type Options = Record<string, string>;
7
+ type EditorTheme = 'basic' | 'minimal';
8
+ type PanelSectionId = 'body' | 'container' | 'typography' | 'h1' | 'h2' | 'h3' | 'link' | 'image' | 'button' | 'code-block' | 'inline-code';
9
+ type KnownThemeComponents = 'reset' | 'body' | 'container' | 'h1' | 'h2' | 'h3' | 'paragraph' | 'nestedList' | 'list' | 'listItem' | 'listParagraph' | 'blockquote' | 'codeBlock' | 'inlineCode' | 'codeTag' | 'link' | 'footer' | 'hr' | 'image' | 'button' | 'section';
10
+ type KnownCssProperties = 'align' | 'backgroundColor' | 'color' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textDecoration' | 'borderRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderWidth' | 'borderTopWidth' | 'borderRightWidth' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderStyle' | 'borderTopStyle' | 'borderRightStyle' | 'borderBottomStyle' | 'borderLeftStyle' | 'borderColor' | 'borderTopColor' | 'borderRightColor' | 'borderBottomColor' | 'borderLeftColor' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'width' | 'height';
11
+ type ResetTheme = Record<KnownThemeComponents, React$1.CSSProperties>;
12
+ type CssJs = { [K in KnownThemeComponents]: React$1.CSSProperties & {
13
+ align?: 'center' | 'left' | 'right';
14
+ } };
15
+ type SupportedCssProperties = { [K in KnownCssProperties]: {
16
+ category: 'layout' | 'appearance' | 'typography';
17
+ label: string;
18
+ type: InputType;
19
+ defaultValue: string | number;
20
+ unit?: InputUnit;
21
+ options?: Options;
22
+ excludeNodes?: string[];
23
+ placeholder?: string;
24
+ customUpdate?: (props: Record<string, unknown>, update: (func: (tree: PanelGroup[]) => PanelGroup[]) => void) => void;
25
+ } };
26
+ interface PanelInputProperty {
27
+ label: string;
28
+ type: InputType;
29
+ value?: string | number;
30
+ prop: KnownCssProperties;
31
+ classReference?: KnownThemeComponents;
32
+ unit?: InputUnit;
33
+ options?: Options;
34
+ placeholder?: string;
35
+ category: SupportedCssProperties[KnownCssProperties]['category'];
36
+ }
37
+ interface PanelGroup {
38
+ id?: PanelSectionId;
39
+ title: string;
40
+ category?: string;
41
+ headerSlot?: React$1.ReactNode;
42
+ classReference?: KnownThemeComponents;
43
+ inputs: Omit<PanelInputProperty, 'category'>[];
44
+ }
45
+ type ThemeableComponent = Extract<KnownThemeComponents, 'body' | 'container' | 'h1' | 'h2' | 'h3' | 'link' | 'image' | 'button' | 'codeBlock' | 'inlineCode'>;
46
+ type ThemeComponentStyles = { [K in ThemeableComponent]?: React$1.CSSProperties & {
47
+ align?: 'center' | 'left' | 'right';
48
+ } };
49
+ interface ThemeConfig {
50
+ extends?: EditorTheme;
51
+ styles: ThemeComponentStyles;
52
+ }
53
+ type EditorThemeInput = EditorTheme | ThemeConfig;
54
+ //#endregion
55
+ export { KnownThemeComponents as a, PanelSectionId as c, ThemeComponentStyles as d, ThemeConfig as f, KnownCssProperties as i, ResetTheme as l, EditorTheme as n, PanelGroup as o, ThemeableComponent as p, EditorThemeInput as r, PanelInputProperty as s, CssJs as t, SupportedCssProperties as u };
56
+ //# sourceMappingURL=types-DnOcnDoO.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DnOcnDoO.d.mts","names":[],"sources":["../src/plugins/email-theming/types.ts"],"mappings":";;;KAEK,SAAA;AAAA,KACA,SAAA;AAAA,KACA,OAAA,GAAU,MAAA;AAAA,KAEH,WAAA;AAAA,KACA,cAAA;AAAA,KAYA,oBAAA;AAAA,KAuBA,kBAAA;AAAA,KAqCA,UAAA,GAAa,MAAA,CAAO,oBAAA,EAAsB,OAAA,CAAM,aAAA;AAAA,KAEhD,KAAA,WACJ,oBAAA,GAAuB,OAAA,CAAM,aAAA;EAEjC,KAAA;AAAA;AAAA,KAGQ,sBAAA,WACJ,kBAAA;EACJ,QAAA;EACA,KAAA;EACA,IAAA,EAAM,SAAA;EACN,YAAA;EACA,IAAA,GAAO,SAAA;EACP,OAAA,GAAU,OAAA;EACV,YAAA;EACA,WAAA;EACA,YAAA,IACE,KAAA,EAAO,MAAA,mBACP,MAAA,GAAS,IAAA,GAAO,IAAA,EAAM,UAAA,OAAiB,UAAA;AAAA;AAAA,UAK5B,kBAAA;EACf,KAAA;EACA,IAAA,EAAM,SAAA;EACN,KAAA;EACA,IAAA,EAAM,kBAAA;EACN,cAAA,GAAiB,oBAAA;EACjB,IAAA,GAAO,SAAA;EACP,OAAA,GAAU,OAAA;EACV,WAAA;EACA,QAAA,EAAU,sBAAA,CAAuB,kBAAA;AAAA;AAAA,UAGlB,UAAA;EACf,EAAA,GAAK,cAAA;EACL,KAAA;EACA,QAAA;EACA,UAAA,GAAa,OAAA,CAAM,SAAA;EACnB,cAAA,GAAiB,oBAAA;EACjB,MAAA,EAAQ,IAAA,CAAK,kBAAA;AAAA;AAAA,KAGH,kBAAA,GAAqB,OAAA,CAC/B,oBAAA;AAAA,KAaU,oBAAA,WACJ,kBAAA,IAAsB,OAAA,CAAM,aAAA;EAChC,KAAA;AAAA;AAAA,UAIa,WAAA;EACf,OAAA,GAAU,WAAA;EACV,MAAA,EAAQ,oBAAA;AAAA;AAAA,KAGE,gBAAA,GAAmB,WAAA,GAAc,WAAA"}
@@ -0,0 +1,56 @@
1
+ import * as React$1 from "react";
2
+
3
+ //#region src/plugins/email-theming/types.d.ts
4
+ type InputType = 'color' | 'number' | 'select' | 'text' | 'textarea';
5
+ type InputUnit = 'px' | '%';
6
+ type Options = Record<string, string>;
7
+ type EditorTheme = 'basic' | 'minimal';
8
+ type PanelSectionId = 'body' | 'container' | 'typography' | 'h1' | 'h2' | 'h3' | 'link' | 'image' | 'button' | 'code-block' | 'inline-code';
9
+ type KnownThemeComponents = 'reset' | 'body' | 'container' | 'h1' | 'h2' | 'h3' | 'paragraph' | 'nestedList' | 'list' | 'listItem' | 'listParagraph' | 'blockquote' | 'codeBlock' | 'inlineCode' | 'codeTag' | 'link' | 'footer' | 'hr' | 'image' | 'button' | 'section';
10
+ type KnownCssProperties = 'align' | 'backgroundColor' | 'color' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'textDecoration' | 'borderRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderWidth' | 'borderTopWidth' | 'borderRightWidth' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderStyle' | 'borderTopStyle' | 'borderRightStyle' | 'borderBottomStyle' | 'borderLeftStyle' | 'borderColor' | 'borderTopColor' | 'borderRightColor' | 'borderBottomColor' | 'borderLeftColor' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'width' | 'height';
11
+ type ResetTheme = Record<KnownThemeComponents, React$1.CSSProperties>;
12
+ type CssJs = { [K in KnownThemeComponents]: React$1.CSSProperties & {
13
+ align?: 'center' | 'left' | 'right';
14
+ } };
15
+ type SupportedCssProperties = { [K in KnownCssProperties]: {
16
+ category: 'layout' | 'appearance' | 'typography';
17
+ label: string;
18
+ type: InputType;
19
+ defaultValue: string | number;
20
+ unit?: InputUnit;
21
+ options?: Options;
22
+ excludeNodes?: string[];
23
+ placeholder?: string;
24
+ customUpdate?: (props: Record<string, unknown>, update: (func: (tree: PanelGroup[]) => PanelGroup[]) => void) => void;
25
+ } };
26
+ interface PanelInputProperty {
27
+ label: string;
28
+ type: InputType;
29
+ value?: string | number;
30
+ prop: KnownCssProperties;
31
+ classReference?: KnownThemeComponents;
32
+ unit?: InputUnit;
33
+ options?: Options;
34
+ placeholder?: string;
35
+ category: SupportedCssProperties[KnownCssProperties]['category'];
36
+ }
37
+ interface PanelGroup {
38
+ id?: PanelSectionId;
39
+ title: string;
40
+ category?: string;
41
+ headerSlot?: React$1.ReactNode;
42
+ classReference?: KnownThemeComponents;
43
+ inputs: Omit<PanelInputProperty, 'category'>[];
44
+ }
45
+ type ThemeableComponent = Extract<KnownThemeComponents, 'body' | 'container' | 'h1' | 'h2' | 'h3' | 'link' | 'image' | 'button' | 'codeBlock' | 'inlineCode'>;
46
+ type ThemeComponentStyles = { [K in ThemeableComponent]?: React$1.CSSProperties & {
47
+ align?: 'center' | 'left' | 'right';
48
+ } };
49
+ interface ThemeConfig {
50
+ extends?: EditorTheme;
51
+ styles: ThemeComponentStyles;
52
+ }
53
+ type EditorThemeInput = EditorTheme | ThemeConfig;
54
+ //#endregion
55
+ export { KnownThemeComponents as a, PanelSectionId as c, ThemeComponentStyles as d, ThemeConfig as f, KnownCssProperties as i, ResetTheme as l, EditorTheme as n, PanelGroup as o, ThemeableComponent as p, EditorThemeInput as r, PanelInputProperty as s, CssJs as t, SupportedCssProperties as u };
56
+ //# sourceMappingURL=types-DzPTbbDC.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DzPTbbDC.d.cts","names":[],"sources":["../src/plugins/email-theming/types.ts"],"mappings":";;;KAEK,SAAA;AAAA,KACA,SAAA;AAAA,KACA,OAAA,GAAU,MAAA;AAAA,KAEH,WAAA;AAAA,KACA,cAAA;AAAA,KAYA,oBAAA;AAAA,KAuBA,kBAAA;AAAA,KAqCA,UAAA,GAAa,MAAA,CAAO,oBAAA,EAAsB,OAAA,CAAM,aAAA;AAAA,KAEhD,KAAA,WACJ,oBAAA,GAAuB,OAAA,CAAM,aAAA;EAEjC,KAAA;AAAA;AAAA,KAGQ,sBAAA,WACJ,kBAAA;EACJ,QAAA;EACA,KAAA;EACA,IAAA,EAAM,SAAA;EACN,YAAA;EACA,IAAA,GAAO,SAAA;EACP,OAAA,GAAU,OAAA;EACV,YAAA;EACA,WAAA;EACA,YAAA,IACE,KAAA,EAAO,MAAA,mBACP,MAAA,GAAS,IAAA,GAAO,IAAA,EAAM,UAAA,OAAiB,UAAA;AAAA;AAAA,UAK5B,kBAAA;EACf,KAAA;EACA,IAAA,EAAM,SAAA;EACN,KAAA;EACA,IAAA,EAAM,kBAAA;EACN,cAAA,GAAiB,oBAAA;EACjB,IAAA,GAAO,SAAA;EACP,OAAA,GAAU,OAAA;EACV,WAAA;EACA,QAAA,EAAU,sBAAA,CAAuB,kBAAA;AAAA;AAAA,UAGlB,UAAA;EACf,EAAA,GAAK,cAAA;EACL,KAAA;EACA,QAAA;EACA,UAAA,GAAa,OAAA,CAAM,SAAA;EACnB,cAAA,GAAiB,oBAAA;EACjB,MAAA,EAAQ,IAAA,CAAK,kBAAA;AAAA;AAAA,KAGH,kBAAA,GAAqB,OAAA,CAC/B,oBAAA;AAAA,KAaU,oBAAA,WACJ,kBAAA,IAAsB,OAAA,CAAM,aAAA;EAChC,KAAA;AAAA;AAAA,UAIa,WAAA;EACf,OAAA,GAAU,WAAA;EACV,MAAA,EAAQ,oBAAA;AAAA;AAAA,KAGE,gBAAA,GAAmB,WAAA,GAAc,WAAA"}
@@ -0,0 +1,37 @@
1
+ import { Editor, Range } from "@tiptap/core";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/ui/slash-command/types.d.ts
5
+ type SlashCommandCategory = string;
6
+ interface SearchableItem {
7
+ title: string;
8
+ description: string;
9
+ searchTerms?: string[];
10
+ }
11
+ interface SlashCommandItem extends SearchableItem {
12
+ icon: ReactNode;
13
+ category: SlashCommandCategory;
14
+ command: (props: SlashCommandProps) => void;
15
+ }
16
+ interface SlashCommandProps {
17
+ editor: Editor;
18
+ range: Range;
19
+ }
20
+ interface SlashCommandRenderProps {
21
+ items: SlashCommandItem[];
22
+ query: string;
23
+ selectedIndex: number;
24
+ onSelect: (index: number) => void;
25
+ }
26
+ interface SlashCommandRootProps {
27
+ items?: SlashCommandItem[];
28
+ filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
29
+ char?: string;
30
+ allow?: (props: {
31
+ editor: Editor;
32
+ }) => boolean;
33
+ children?: (props: SlashCommandRenderProps) => ReactNode;
34
+ }
35
+ //#endregion
36
+ export { SlashCommandRootProps as a, SlashCommandRenderProps as i, SlashCommandItem as n, SlashCommandProps as r, SearchableItem as t };
37
+ //# sourceMappingURL=types-hURXpEIO.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-hURXpEIO.d.cts","names":[],"sources":["../src/ui/slash-command/types.ts"],"mappings":";;;;KAGY,oBAAA;AAAA,UAEK,cAAA;EACf,KAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,UAGe,gBAAA,SAAyB,cAAA;EACxC,IAAA,EAAM,SAAA;EACN,QAAA,EAAU,oBAAA;EACV,OAAA,GAAU,KAAA,EAAO,iBAAA;AAAA;AAAA,UAGF,iBAAA;EACf,MAAA,EAAQ,MAAA;EACR,KAAA,EAAO,KAAA;AAAA;AAAA,UAGQ,uBAAA;EACf,KAAA,EAAO,gBAAA;EACP,KAAA;EACA,aAAA;EACA,QAAA,GAAW,KAAA;AAAA;AAAA,UAGI,qBAAA;EACf,KAAA,GAAQ,gBAAA;EACR,WAAA,IACE,KAAA,EAAO,gBAAA,IACP,KAAA,UACA,MAAA,EAAQ,MAAA,KACL,gBAAA;EACL,IAAA;EACA,KAAA,IAAS,KAAA;IAAS,MAAA,EAAQ,MAAA;EAAA;EAC1B,QAAA,IAAY,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA"}
@@ -0,0 +1,291 @@
1
+ /* Minimal functional styles for BubbleMenu compound components.
2
+ * This file handles layout and positioning only - no visual design.
3
+ * Import this optionally: import '@react-email/editor/styles/bubble-menu.css';
4
+ */
5
+
6
+ [data-re-bubble-menu] {
7
+ display: flex;
8
+ align-items: center;
9
+ gap: 0.125rem;
10
+ }
11
+
12
+ [data-re-bubble-menu-group] {
13
+ display: flex;
14
+ align-items: center;
15
+ gap: 0.125rem;
16
+ padding: 0 0.125rem;
17
+ border: none;
18
+ border-left: 1px solid var(--re-border);
19
+ margin: 0;
20
+ min-width: 0;
21
+ }
22
+
23
+ [data-re-bubble-menu-group]:last-child {
24
+ padding-right: 0;
25
+ }
26
+
27
+ [data-re-bubble-menu-separator] {
28
+ align-self: stretch;
29
+ width: 1px;
30
+ margin: 0.25rem 0;
31
+ }
32
+
33
+ [data-re-bubble-menu-item] {
34
+ display: inline-flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ cursor: pointer;
38
+ border: none;
39
+ background: none;
40
+ padding: 0.375rem;
41
+ margin: 0.125rem 0;
42
+ }
43
+
44
+ [data-re-bubble-menu-item] svg {
45
+ width: 0.875rem;
46
+ height: 0.875rem;
47
+ }
48
+
49
+ [data-re-node-selector] {
50
+ position: relative;
51
+ }
52
+
53
+ [data-re-node-selector-trigger] {
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 0.25rem;
57
+ cursor: pointer;
58
+ border: none;
59
+ background: none;
60
+ white-space: nowrap;
61
+ font-size: 0.8125rem;
62
+ padding: 0.375rem 0.5rem;
63
+ }
64
+
65
+ [data-re-node-selector-trigger] svg {
66
+ width: 0.75rem;
67
+ height: 0.75rem;
68
+ opacity: 0.5;
69
+ }
70
+
71
+ [data-re-node-selector-content] {
72
+ display: flex;
73
+ flex-direction: column;
74
+ min-width: 10rem;
75
+ }
76
+
77
+ [data-re-node-selector-item] {
78
+ display: flex;
79
+ align-items: center;
80
+ gap: 0.5rem;
81
+ cursor: pointer;
82
+ border: none;
83
+ background: none;
84
+ padding: 0.375rem 0.5rem;
85
+ font-size: 0.8125rem;
86
+ width: 100%;
87
+ text-align: left;
88
+ }
89
+
90
+ [data-re-node-selector-item] svg {
91
+ width: 0.875rem;
92
+ height: 0.875rem;
93
+ }
94
+
95
+ [data-re-link-selector] {
96
+ display: flex;
97
+ position: relative;
98
+ }
99
+
100
+ [data-re-link-selector-trigger] {
101
+ display: inline-flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ cursor: pointer;
105
+ border: none;
106
+ background: none;
107
+ padding: 0.375rem;
108
+ }
109
+
110
+ [data-re-link-selector-trigger] svg {
111
+ width: 0.875rem;
112
+ height: 0.875rem;
113
+ }
114
+
115
+ [data-re-link-selector-form] {
116
+ display: flex;
117
+ align-items: center;
118
+ gap: 0.25rem;
119
+ position: absolute;
120
+ top: 100%;
121
+ left: 0;
122
+ margin-top: 0.25rem;
123
+ width: max-content;
124
+ min-width: 16rem;
125
+ padding: 0.25rem;
126
+ }
127
+
128
+ [data-re-link-selector-input] {
129
+ flex: 1;
130
+ border: none;
131
+ outline: none;
132
+ font-size: 0.8125rem;
133
+ padding: 0.25rem;
134
+ background: transparent;
135
+ }
136
+
137
+ [data-re-link-selector-apply],
138
+ [data-re-link-selector-unlink] {
139
+ display: inline-flex;
140
+ align-items: center;
141
+ justify-content: center;
142
+ cursor: pointer;
143
+ border: none;
144
+ background: none;
145
+ padding: 0.25rem;
146
+ }
147
+
148
+ [data-re-link-selector-apply] svg,
149
+ [data-re-link-selector-unlink] svg {
150
+ width: 0.875rem;
151
+ height: 0.875rem;
152
+ }
153
+
154
+ /* Button bubble menu */
155
+
156
+ [data-re-btn-bm-toolbar] {
157
+ display: flex;
158
+ align-items: center;
159
+ }
160
+
161
+ [data-re-btn-bm-item] {
162
+ display: inline-flex;
163
+ align-items: center;
164
+ justify-content: center;
165
+ cursor: pointer;
166
+ border: none;
167
+ background: none;
168
+ padding: 0.375rem;
169
+ }
170
+
171
+ [data-re-btn-bm-item] svg {
172
+ width: 0.875rem;
173
+ height: 0.875rem;
174
+ }
175
+
176
+ [data-re-btn-bm-form] {
177
+ display: flex;
178
+ align-items: center;
179
+ gap: 0.25rem;
180
+ min-width: 16rem;
181
+ padding: 0.25rem;
182
+ }
183
+
184
+ [data-re-btn-bm-input] {
185
+ flex: 1;
186
+ border: none;
187
+ outline: none;
188
+ font-size: 0.8125rem;
189
+ padding: 0.25rem;
190
+ background: transparent;
191
+ }
192
+
193
+ [data-re-btn-bm-apply],
194
+ [data-re-btn-bm-unlink] {
195
+ display: inline-flex;
196
+ align-items: center;
197
+ justify-content: center;
198
+ cursor: pointer;
199
+ border: none;
200
+ background: none;
201
+ padding: 0.25rem;
202
+ }
203
+
204
+ [data-re-btn-bm-apply] svg,
205
+ [data-re-btn-bm-unlink] svg {
206
+ width: 0.875rem;
207
+ height: 0.875rem;
208
+ }
209
+
210
+ /* Link bubble menu */
211
+
212
+ [data-re-link-bm-toolbar] {
213
+ display: flex;
214
+ align-items: center;
215
+ }
216
+
217
+ [data-re-link-bm-item] {
218
+ display: inline-flex;
219
+ align-items: center;
220
+ justify-content: center;
221
+ cursor: pointer;
222
+ border: none;
223
+ background: none;
224
+ padding: 0.375rem;
225
+ }
226
+
227
+ [data-re-link-bm-item] svg {
228
+ width: 0.875rem;
229
+ height: 0.875rem;
230
+ }
231
+
232
+ a[data-re-link-bm-item] {
233
+ text-decoration: none;
234
+ color: inherit;
235
+ }
236
+
237
+ [data-re-link-bm-form] {
238
+ display: flex;
239
+ align-items: center;
240
+ gap: 0.25rem;
241
+ min-width: 16rem;
242
+ padding: 0.25rem;
243
+ }
244
+
245
+ [data-re-link-bm-input] {
246
+ flex: 1;
247
+ border: none;
248
+ outline: none;
249
+ font-size: 0.8125rem;
250
+ padding: 0.25rem;
251
+ background: transparent;
252
+ }
253
+
254
+ [data-re-link-bm-apply],
255
+ [data-re-link-bm-unlink] {
256
+ display: inline-flex;
257
+ align-items: center;
258
+ justify-content: center;
259
+ cursor: pointer;
260
+ border: none;
261
+ background: none;
262
+ padding: 0.25rem;
263
+ }
264
+
265
+ [data-re-link-bm-apply] svg,
266
+ [data-re-link-bm-unlink] svg {
267
+ width: 0.875rem;
268
+ height: 0.875rem;
269
+ }
270
+
271
+ /* Image bubble menu */
272
+
273
+ [data-re-img-bm-toolbar] {
274
+ display: flex;
275
+ align-items: center;
276
+ }
277
+
278
+ [data-re-img-bm-item] {
279
+ display: inline-flex;
280
+ align-items: center;
281
+ justify-content: center;
282
+ cursor: pointer;
283
+ border: none;
284
+ background: none;
285
+ padding: 0.5rem;
286
+ }
287
+
288
+ [data-re-img-bm-item] svg {
289
+ width: 1rem;
290
+ height: 1rem;
291
+ }