@react-email/editor 0.0.0-experimental.41 → 0.0.0-experimental.43

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 (67) hide show
  1. package/dist/core/index.cjs +4 -3
  2. package/dist/core/index.d.cts +2 -2
  3. package/dist/core/index.d.mts +3 -3
  4. package/dist/core/index.mjs +3 -3
  5. package/dist/{create-paste-handler-CGR738bC.d.mts → create-paste-handler-DsJYKisA.d.mts} +1 -1
  6. package/dist/{create-paste-handler-CGR738bC.d.mts.map → create-paste-handler-DsJYKisA.d.mts.map} +1 -1
  7. package/dist/{event-bus-fb8U7hrl.cjs → event-bus-BJn1dJM1.cjs} +20 -3
  8. package/dist/{event-bus-CHEzOS_O.mjs → event-bus-DJpnfDHw.mjs} +14 -3
  9. package/dist/{event-bus-CHEzOS_O.mjs.map → event-bus-DJpnfDHw.mjs.map} +1 -1
  10. package/dist/{extension-w5VaUeSw.cjs → extension-CF0s-pGh.cjs} +301 -37
  11. package/dist/{extension-DyY8_bh4.mjs → extension-DcToBuV0.mjs} +301 -13
  12. package/dist/extension-DcToBuV0.mjs.map +1 -0
  13. package/dist/extensions/index.cjs +3 -3
  14. package/dist/extensions/index.d.cts +1 -1
  15. package/dist/extensions/index.d.cts.map +1 -1
  16. package/dist/extensions/index.d.mts +2 -2
  17. package/dist/extensions/index.d.mts.map +1 -1
  18. package/dist/extensions/index.mjs +3 -3
  19. package/dist/{extensions-CkjPj2JO.cjs → extensions-B6VCxUmi.cjs} +68 -25
  20. package/dist/{extensions-BvfmaKCn.mjs → extensions-mStGDfMH.mjs} +63 -20
  21. package/dist/extensions-mStGDfMH.mjs.map +1 -0
  22. package/dist/{styles-C-cCyJCn.cjs → global-content-C5WjNoMX.cjs} +88 -0
  23. package/dist/{styles-_TMw3YxC.mjs → global-content-CjA49_jE.mjs} +78 -2
  24. package/dist/global-content-CjA49_jE.mjs.map +1 -0
  25. package/dist/{index-C4KcMQ0R.d.cts → index-LCPnE_xx.d.cts} +66 -3
  26. package/dist/index-LCPnE_xx.d.cts.map +1 -0
  27. package/dist/{index-CxX7W63O.d.mts → index-i5JdL0UD.d.mts} +67 -4
  28. package/dist/index-i5JdL0UD.d.mts.map +1 -0
  29. package/dist/index.cjs +4 -4
  30. package/dist/index.d.mts +3 -3
  31. package/dist/index.d.mts.map +1 -1
  32. package/dist/index.mjs +3 -3
  33. package/dist/plugins/index.cjs +1 -5
  34. package/dist/plugins/index.d.cts +5 -123
  35. package/dist/plugins/index.d.cts.map +1 -1
  36. package/dist/plugins/index.d.mts +5 -123
  37. package/dist/plugins/index.d.mts.map +1 -1
  38. package/dist/plugins/index.mjs +2 -2
  39. package/dist/{root-pS4l8bVZ.mjs → root-BVs63m-4.mjs} +39 -39
  40. package/dist/root-BVs63m-4.mjs.map +1 -0
  41. package/dist/{root-Jq1R3tkX.cjs → root-D6lslKju.cjs} +2 -2
  42. package/dist/{set-text-alignment-OA8IMWmO.mjs → set-text-alignment-GMXOPMlJ.mjs} +1 -1
  43. package/dist/{set-text-alignment-OA8IMWmO.mjs.map → set-text-alignment-GMXOPMlJ.mjs.map} +1 -1
  44. package/dist/types-BNEbRz-a.d.cts +47 -0
  45. package/dist/types-BNEbRz-a.d.cts.map +1 -0
  46. package/dist/types-C8k-blF7.d.mts +47 -0
  47. package/dist/types-C8k-blF7.d.mts.map +1 -0
  48. package/dist/ui/index.cjs +645 -2
  49. package/dist/ui/index.d.cts +307 -128
  50. package/dist/ui/index.d.cts.map +1 -1
  51. package/dist/ui/index.d.mts +263 -84
  52. package/dist/ui/index.d.mts.map +1 -1
  53. package/dist/ui/index.mjs +630 -3
  54. package/dist/ui/index.mjs.map +1 -1
  55. package/dist/utils/index.cjs +1 -1
  56. package/dist/utils/index.mjs +1 -1
  57. package/package.json +2 -2
  58. package/dist/extension-DyY8_bh4.mjs.map +0 -1
  59. package/dist/extensions-BvfmaKCn.mjs.map +0 -1
  60. package/dist/global-content-D_WYaFgX.mjs +0 -78
  61. package/dist/global-content-D_WYaFgX.mjs.map +0 -1
  62. package/dist/global-content-bJgotqmA.cjs +0 -89
  63. package/dist/index-C4KcMQ0R.d.cts.map +0 -1
  64. package/dist/index-CxX7W63O.d.mts.map +0 -1
  65. package/dist/root-pS4l8bVZ.mjs.map +0 -1
  66. package/dist/styles-_TMw3YxC.mjs.map +0 -1
  67. /package/dist/{set-text-alignment-Cv72txmv.cjs → set-text-alignment-aNb7Ml9N.cjs} +0 -0
@@ -0,0 +1,47 @@
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
+ //#endregion
46
+ export { PanelGroup as a, ResetTheme as c, KnownThemeComponents as i, SupportedCssProperties as l, EditorTheme as n, PanelInputProperty as o, KnownCssProperties as r, PanelSectionId as s, CssJs as t };
47
+ //# sourceMappingURL=types-BNEbRz-a.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BNEbRz-a.d.cts","names":[],"sources":["../src/plugins/email-theming/types.ts"],"sourcesContent":[],"mappings":";;;KAEK,SAAA;KACA,SAAA;AAH+B,KAI/B,OAAA,GAAU,MAFD,CAAA,MAAA,EAAA,MAAA,CAAA;AACT,KAGO,WAAA,GAHE,OAAA,GAAA,SAAA;AACT,KAGO,cAAA,GAHG,MAAM,GAAA,WAAA,GAAA,YAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,OAAA,GAAA,QAAA,GAAA,YAAA,GAAA,aA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EAAA;EAAiB,WAAA,CAAA,EAAA,MAAA;EAAU,YAAA,CAAA,EAAA,CAAA,KAAA,EAD1C,MAC0C,CAAA,MAAA,EAAA,OAAA,CAAA,EAAA,MAAA,EAAA,CAAA,IAAA,EAAA,CAAA,IAAA,EAA3B,UAA2B,EAAA,EAAA,GAAV,UAAU,EAAA,EAAA,GAAA,IAAA,EAAA,GAAA,IAAA;AAKtC,CAAA,EAET;AAEA,UAJS,kBAAA,CAIT;EACW,KAAA,EAAA,MAAA;EACV,IAAA,EAJD,SAIC;EACG,KAAA,CAAA,EAAA,MAAA,GAAA,MAAA;EAEA,IAAA,EALJ,kBAKI;EAAuB,cAAA,CAAA,EAJhB,oBAIgB;EAAkB,IAAA,CAAA,EAH5C,SAG4C;EAGpC,OAAA,CAAA,EALL,OAKe;EACpB,WAAA,CAAA,EAAA,MAAA;EAGQ,QAAM,EAPT,sBAOS,CAPc,kBAOd,CAAA,CAAA,UAAA,CAAA;;AAEN,UANE,UAAA,CAMF;EAAL,EAAA,CAAA,EALH,cAKG;EAAI,KAAA,EAAA,MAAA;;eAFC,OAAA,CAAM;mBACF;UACT,KAAK"}
@@ -0,0 +1,47 @@
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
+ //#endregion
46
+ export { PanelGroup as a, ResetTheme as c, KnownThemeComponents as i, SupportedCssProperties as l, EditorTheme as n, PanelInputProperty as o, KnownCssProperties as r, PanelSectionId as s, CssJs as t };
47
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