@maily-to/core 2.0.0-beta.1 → 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 (49) hide show
  1. package/LICENSE +21 -0
  2. package/dist/blocks/index.cjs +8 -1
  3. package/dist/blocks/index.d.cts +1 -38
  4. package/dist/blocks/index.d.mts +14 -6
  5. package/dist/blocks/index.d.mts.map +1 -1
  6. package/dist/blocks/index.mjs +2 -2
  7. package/dist/extensions/index.cjs +266 -286
  8. package/dist/extensions/index.d.cts +1 -379
  9. package/dist/extensions/index.d.mts +127 -224
  10. package/dist/extensions/index.d.mts.map +1 -1
  11. package/dist/extensions/index.mjs +238 -271
  12. package/dist/index.cjs +8717 -11689
  13. package/dist/index.d.cts +1 -107
  14. package/dist/index.d.mts +711 -73
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +8397 -11474
  17. package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
  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 +102 -90
  28. package/readme.md +177 -133
  29. package/src/styles/index.css +2537 -0
  30. package/dist/blocks/index.d.cts.map +0 -1
  31. package/dist/chunk-CfYAbeIz.mjs +0 -13
  32. package/dist/extensions/index.d.cts.map +0 -1
  33. package/dist/extensions/index.mjs.map +0 -1
  34. package/dist/index.css +0 -2312
  35. package/dist/index.d.cts.map +0 -1
  36. package/dist/index.mjs.map +0 -1
  37. package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
  38. package/dist/slash-command-CK0-1FwR.d.cts +0 -39
  39. package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
  40. package/dist/spacer-DBtsr3hu.cjs +0 -5768
  41. package/dist/spacer-DzZWX-wB.mjs +0 -5456
  42. package/dist/spacer-DzZWX-wB.mjs.map +0 -1
  43. package/dist/typography-CWL13acR.cjs +0 -400
  44. package/dist/typography-DhrUe809.mjs +0 -282
  45. package/dist/typography-DhrUe809.mjs.map +0 -1
  46. package/dist/variable-C9S9ZoHv.d.cts +0 -108
  47. package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
  48. package/dist/variable-DVwGrg2a.d.mts +0 -108
  49. package/dist/variable-DVwGrg2a.d.mts.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,107 +1 @@
1
- import { a as filterVariableSuggestions, i as VariablesFunction, n as VariableFunctionOptions, r as Variables, t as Variable } from "./variable-C9S9ZoHv.cjs";
2
- import { AnyExtension, JSONContent } from "@tiptap/core";
3
- import * as React$1 from "react";
4
- import { DEFAULT_EDITOR_THEME, EditorThemeOptions, EditorThemeOptions as EditorThemeOptions$1, TextDirection } from "@maily-to/shared";
5
- import { Editor as Editor$1, EditorEvents, UseEditorOptions } from "@tiptap/react";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
-
8
- //#region \0rolldown/runtime.js
9
- //#endregion
10
- //#region src/components/editor/editor-body.d.ts
11
- type EditorBodyProps = {
12
- children: React.ReactNode;
13
- className?: string;
14
- };
15
- declare function EditorBody(props: EditorBodyProps): react_jsx_runtime0.JSX.Element;
16
- //#endregion
17
- //#region src/components/editor/editor-container.d.ts
18
- type EditorContainerProps = {
19
- children: React.ReactNode;
20
- className?: string;
21
- };
22
- declare function EditorContainer(props: EditorContainerProps): react_jsx_runtime0.JSX.Element;
23
- //#endregion
24
- //#region src/components/editor/editor-content.d.ts
25
- declare function EditorContent(): react_jsx_runtime0.JSX.Element;
26
- //#endregion
27
- //#region src/components/editor/editor-frame.d.ts
28
- type EditorFrameProps = {
29
- children: React.ReactNode;
30
- className?: string;
31
- };
32
- declare function EditorFrame(props: EditorFrameProps): react_jsx_runtime0.JSX.Element;
33
- //#endregion
34
- //#region src/components/editor/editor-root.d.ts
35
- type EditorRootProps = {
36
- content?: JSONContent | string;
37
- extensions?: AnyExtension[];
38
- onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
39
- onCreate?: ((props: EditorEvents['create']) => void) | undefined;
40
- textDirection?: TextDirection;
41
- defaultTextDirection?: TextDirection;
42
- onTextDirectionChange?: (direction: TextDirection) => void;
43
- theme?: EditorThemeOptions$1;
44
- children: React.ReactNode;
45
- } & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
46
- declare function EditorRoot(props: EditorRootProps): react_jsx_runtime0.JSX.Element | null;
47
- //#endregion
48
- //#region src/components/editor/editor-root-context.d.ts
49
- type EditorRootContext = {
50
- textDirection: TextDirection;
51
- setTextDirection: (direction: TextDirection) => void;
52
- theme: EditorThemeOptions$1;
53
- };
54
- declare const EditorRootContext: React$1.Context<EditorRootContext | null>;
55
- declare function useEditorRootContext(): EditorRootContext;
56
- declare namespace editor_d_exports {
57
- export { EditorBody as Body, EditorContainer as Container, EditorContent as Content, EditorFrame as Frame, EditorRoot as Root, useEditorRootContext };
58
- }
59
- //#endregion
60
- //#region src/components/toolbar/toolbar-root.d.ts
61
- type ToolbarRootProps = {
62
- children: React.ReactNode;
63
- className?: string;
64
- };
65
- declare function ToolbarRoot(props: ToolbarRootProps): react_jsx_runtime0.JSX.Element;
66
- //#endregion
67
- //#region src/components/toolbar/toolbar-group.d.ts
68
- type ToolbarGroupProps = {
69
- children: React.ReactNode;
70
- className?: string;
71
- };
72
- declare function ToolbarGroup(props: ToolbarGroupProps): react_jsx_runtime0.JSX.Element;
73
- //#endregion
74
- //#region src/components/toolbar/toolbar-actions.d.ts
75
- type ToolbarActionProps = {
76
- className?: string;
77
- };
78
- declare function ToolbarUndo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
79
- declare function ToolbarRedo(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
80
- declare function ToolbarBold(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
81
- declare function ToolbarItalic(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
82
- declare function ToolbarUnderline(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
83
- declare function ToolbarStrikethrough(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
84
- declare function ToolbarCode(props: ToolbarActionProps): react_jsx_runtime0.JSX.Element;
85
- declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
86
- //#endregion
87
- //#region src/components/toolbar/toolbar-align.d.ts
88
- type ToolbarAlignProps = {
89
- className?: string;
90
- };
91
- declare function ToolbarAlign(props: ToolbarAlignProps): react_jsx_runtime0.JSX.Element;
92
- //#endregion
93
- //#region src/components/toolbar/toolbar-direction.d.ts
94
- type ToolbarDirectionProps = {
95
- className?: string;
96
- };
97
- declare function ToolbarDirection(props: ToolbarDirectionProps): react_jsx_runtime0.JSX.Element;
98
- declare namespace toolbar_d_exports {
99
- export { ToolbarAlign as Align, ToolbarBold as Bold, ToolbarCode as Code, ToolbarCommonActions as CommonActions, ToolbarDirection as Direction, ToolbarGroup as Group, ToolbarItalic as Italic, ToolbarRedo as Redo, ToolbarRoot as Root, ToolbarStrikethrough as Strikethrough, ToolbarUnderline as Underline, ToolbarUndo as Undo };
100
- }
101
- //#endregion
102
- //#region src/hooks/use-editor-variables.d.ts
103
- /** Returns the current variable list from the variable extension's storage. */
104
- declare function useEditorVariables(editor?: Editor$1 | null): Variables | undefined;
105
- //#endregion
106
- export { DEFAULT_EDITOR_THEME, editor_d_exports as Editor, type EditorThemeOptions, toolbar_d_exports as Toolbar, type VariableFunctionOptions, type Variable as VariableItem, type Variables, type VariablesFunction, filterVariableSuggestions, useEditorRootContext, useEditorVariables };
107
- //# sourceMappingURL=index.d.cts.map
1
+ export type * from './index.d.mts'