@maily-to/core 0.3.7 → 2.0.0-beta.10

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 (40) hide show
  1. package/LICENSE +21 -0
  2. package/dist/blocks/index.cjs +29 -305
  3. package/dist/blocks/index.d.cts +1 -59
  4. package/dist/blocks/index.d.mts +46 -0
  5. package/dist/blocks/index.d.mts.map +1 -0
  6. package/dist/blocks/index.mjs +2 -273
  7. package/dist/extensions/index.cjs +354 -9100
  8. package/dist/extensions/index.d.cts +1 -448
  9. package/dist/extensions/index.d.mts +282 -0
  10. package/dist/extensions/index.d.mts.map +1 -0
  11. package/dist/extensions/index.mjs +322 -9052
  12. package/dist/index.cjs +10225 -12221
  13. package/dist/index.d.cts +1 -63
  14. package/dist/index.d.mts +743 -0
  15. package/dist/index.d.mts.map +1 -0
  16. package/dist/index.mjs +10103 -12273
  17. package/dist/slash-command-BrwA1bHs.d.mts +38 -0
  18. package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
  19. package/dist/theme-D1CI7_8s.d.mts +70 -0
  20. package/dist/theme-D1CI7_8s.d.mts.map +1 -0
  21. package/dist/typography-BdOKvXfQ.mjs +911 -0
  22. package/dist/typography-D-VnwOSw.cjs +970 -0
  23. package/dist/typography-DW7VApAR.cjs +1072 -0
  24. package/dist/use-maily-editor-Atvy2kSO.cjs +3993 -0
  25. package/dist/use-maily-editor-CByaDhmT.cjs +4955 -0
  26. package/dist/use-maily-editor-idL0RNsG.mjs +4504 -0
  27. package/package.json +115 -180
  28. package/readme.md +356 -195
  29. package/src/styles/index.css +2537 -0
  30. package/dist/blocks/index.cjs.map +0 -1
  31. package/dist/blocks/index.d.ts +0 -59
  32. package/dist/blocks/index.mjs.map +0 -1
  33. package/dist/extensions/index.cjs.map +0 -1
  34. package/dist/extensions/index.d.ts +0 -448
  35. package/dist/extensions/index.mjs.map +0 -1
  36. package/dist/index.cjs.map +0 -1
  37. package/dist/index.css +0 -2487
  38. package/dist/index.css.map +0 -1
  39. package/dist/index.d.ts +0 -63
  40. package/dist/index.mjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,63 +1 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Editor as Editor$1, Range, AnyExtension, FocusPosition } from '@tiptap/core';
3
- import { JSONContent } from '@tiptap/react';
4
-
5
- interface CommandProps {
6
- editor: Editor$1;
7
- range: Range;
8
- }
9
- type BlockItem = {
10
- title: string;
11
- description?: string;
12
- searchTerms: string[];
13
- icon?: JSX.Element;
14
- render?: (editor: Editor$1) => JSX.Element | null | true;
15
- preview?: string | ((editor: Editor$1) => JSX.Element | null);
16
- } & ({
17
- command: (options: CommandProps) => void;
18
- id?: never;
19
- commands?: never;
20
- } | {
21
- /**
22
- * id to be used for the slash command query
23
- * `headers.` will go inside the header subcommand
24
- */
25
- id: string;
26
- command?: never;
27
- commands: BlockItem[];
28
- });
29
- type BlockGroupItem = {
30
- title: string;
31
- commands: BlockItem[];
32
- };
33
-
34
- type MailyContextType = {
35
- placeholderUrl?: string;
36
- blocks?: BlockGroupItem[];
37
- };
38
-
39
- type ParitialMailContextType = Partial<MailyContextType>;
40
- type EditorProps = {
41
- contentHtml?: string;
42
- contentJson?: JSONContent;
43
- onUpdate?: (editor: Editor$1) => void;
44
- onCreate?: (editor: Editor$1) => void;
45
- extensions?: AnyExtension[];
46
- config?: {
47
- hasMenuBar?: boolean;
48
- hideContextMenu?: boolean;
49
- spellCheck?: boolean;
50
- wrapClassName?: string;
51
- toolbarClassName?: string;
52
- contentClassName?: string;
53
- bodyClassName?: string;
54
- autofocus?: FocusPosition;
55
- immediatelyRender?: boolean;
56
- };
57
- editable?: boolean;
58
- scrollThreshold?: number;
59
- scrollMargin?: number;
60
- } & ParitialMailContextType;
61
- declare function Editor(props: EditorProps): react_jsx_runtime.JSX.Element | null;
62
-
63
- export { Editor, type EditorProps };
1
+ export type * from './index.d.mts'