@maily-to/core 2.0.0-beta.7 → 2.0.0-beta.8
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/blocks/index.cjs +8 -1
- package/dist/blocks/index.d.cts +1 -38
- package/dist/blocks/index.d.mts +14 -6
- package/dist/blocks/index.d.mts.map +1 -1
- package/dist/blocks/index.mjs +2 -2
- package/dist/extensions/index.cjs +252 -303
- package/dist/extensions/index.d.cts +1 -379
- package/dist/extensions/index.d.mts +127 -224
- package/dist/extensions/index.d.mts.map +1 -1
- package/dist/extensions/index.mjs +238 -271
- package/dist/index.cjs +4423 -12618
- package/dist/index.d.cts +1 -165
- package/dist/index.d.mts +701 -121
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8460 -11567
- package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
- package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
- package/dist/theme-D1CI7_8s.d.mts +70 -0
- package/dist/theme-D1CI7_8s.d.mts.map +1 -0
- package/dist/typography-BdOKvXfQ.mjs +911 -0
- package/dist/typography-D-VnwOSw.cjs +970 -0
- package/dist/typography-DW7VApAR.cjs +1072 -0
- package/dist/use-maily-editor-BP6Mt8Nn.cjs +3991 -0
- package/dist/use-maily-editor-DFuhg38t.cjs +4939 -0
- package/dist/use-maily-editor-xVILP7H8.mjs +4488 -0
- package/package.json +82 -74
- package/readme.md +169 -128
- package/src/styles/index.css +2537 -0
- package/dist/blocks/index.d.cts.map +0 -1
- package/dist/chunk-CfYAbeIz.mjs +0 -13
- package/dist/extensions/index.d.cts.map +0 -1
- package/dist/extensions/index.mjs.map +0 -1
- package/dist/index.css +0 -2312
- package/dist/index.d.cts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
- package/dist/slash-command-CK0-1FwR.d.cts +0 -39
- package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
- package/dist/spacer-DBtsr3hu.cjs +0 -5768
- package/dist/spacer-DzZWX-wB.mjs +0 -5456
- package/dist/spacer-DzZWX-wB.mjs.map +0 -1
- package/dist/typography-CWL13acR.cjs +0 -400
- package/dist/typography-DhrUe809.mjs +0 -282
- package/dist/typography-DhrUe809.mjs.map +0 -1
- package/dist/variable-C9S9ZoHv.d.cts +0 -108
- package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
- package/dist/variable-DVwGrg2a.d.mts +0 -108
- package/dist/variable-DVwGrg2a.d.mts.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,165 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { AnyExtension, Editor, 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: EditorBody.Props): react_jsx_runtime0.JSX.Element;
|
|
16
|
-
declare namespace EditorBody {
|
|
17
|
-
type Props = EditorBodyProps;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/components/editor/editor-container.d.ts
|
|
21
|
-
type EditorContainerProps = {
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
className?: string;
|
|
24
|
-
};
|
|
25
|
-
declare function EditorContainer(props: EditorContainer.Props): react_jsx_runtime0.JSX.Element;
|
|
26
|
-
declare namespace EditorContainer {
|
|
27
|
-
type Props = EditorContainerProps;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/components/editor/editor-content.d.ts
|
|
31
|
-
declare function EditorContent(): react_jsx_runtime0.JSX.Element;
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/components/editor/editor-frame.d.ts
|
|
34
|
-
type EditorFrameProps = {
|
|
35
|
-
children: React.ReactNode;
|
|
36
|
-
className?: string;
|
|
37
|
-
};
|
|
38
|
-
declare function EditorFrame(props: EditorFrame.Props): react_jsx_runtime0.JSX.Element;
|
|
39
|
-
declare namespace EditorFrame {
|
|
40
|
-
type Props = EditorFrameProps;
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/components/editor/editor-root.d.ts
|
|
44
|
-
type EditorRootProps = {
|
|
45
|
-
content?: JSONContent | string;
|
|
46
|
-
extensions?: AnyExtension[];
|
|
47
|
-
onUpdate?: ((props: EditorEvents['update']) => void) | undefined;
|
|
48
|
-
onCreate?: ((props: EditorEvents['create']) => void) | undefined;
|
|
49
|
-
textDirection?: TextDirection;
|
|
50
|
-
defaultTextDirection?: TextDirection;
|
|
51
|
-
onTextDirectionChange?: (direction: TextDirection) => void;
|
|
52
|
-
theme?: EditorThemeOptions$1;
|
|
53
|
-
ref?: React.Ref<EditorRootHandle>;
|
|
54
|
-
children: React.ReactNode;
|
|
55
|
-
} & Pick<UseEditorOptions, 'immediatelyRender' | 'autofocus' | 'editable' | 'editorProps'>;
|
|
56
|
-
/**
|
|
57
|
-
* Imperative handle exposed by `Editor.Root` via `ref`. `getEditorHTML`
|
|
58
|
-
* returns the ProseMirror-serialized HTML for the editor view — for
|
|
59
|
-
* email HTML output use `@maily-to/render` with `getJSON()`.
|
|
60
|
-
*/
|
|
61
|
-
type EditorRootHandle = {
|
|
62
|
-
getEditor: () => Editor;
|
|
63
|
-
getJSON: () => JSONContent;
|
|
64
|
-
getEditorHTML: () => string;
|
|
65
|
-
getText: () => string;
|
|
66
|
-
};
|
|
67
|
-
declare function EditorRoot(props: EditorRoot.Props): react_jsx_runtime0.JSX.Element | null;
|
|
68
|
-
declare namespace EditorRoot {
|
|
69
|
-
type Props = EditorRootProps;
|
|
70
|
-
type Handle = EditorRootHandle;
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/components/editor/editor-root-context.d.ts
|
|
74
|
-
type EditorRootContext = {
|
|
75
|
-
textDirection: TextDirection;
|
|
76
|
-
setTextDirection: (direction: TextDirection) => void;
|
|
77
|
-
theme: EditorThemeOptions$1;
|
|
78
|
-
};
|
|
79
|
-
declare const EditorRootContext: React$1.Context<EditorRootContext | null>;
|
|
80
|
-
declare function useEditorRootContext(): EditorRootContext;
|
|
81
|
-
declare namespace editor_d_exports {
|
|
82
|
-
export { EditorBody as Body, EditorContainer as Container, EditorContent as Content, EditorFrame as Frame, EditorRoot as Root, useEditorRootContext };
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region src/components/toolbar/toolbar-root.d.ts
|
|
86
|
-
type ToolbarRootProps = {
|
|
87
|
-
children: React.ReactNode;
|
|
88
|
-
className?: string;
|
|
89
|
-
};
|
|
90
|
-
declare function ToolbarRoot(props: ToolbarRoot.Props): react_jsx_runtime0.JSX.Element;
|
|
91
|
-
declare namespace ToolbarRoot {
|
|
92
|
-
type Props = ToolbarRootProps;
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/components/toolbar/toolbar-group.d.ts
|
|
96
|
-
type ToolbarGroupProps = {
|
|
97
|
-
children: React.ReactNode;
|
|
98
|
-
className?: string;
|
|
99
|
-
};
|
|
100
|
-
declare function ToolbarGroup(props: ToolbarGroup.Props): react_jsx_runtime0.JSX.Element;
|
|
101
|
-
declare namespace ToolbarGroup {
|
|
102
|
-
type Props = ToolbarGroupProps;
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/components/toolbar/toolbar-actions.d.ts
|
|
106
|
-
type ToolbarActionProps = {
|
|
107
|
-
className?: string;
|
|
108
|
-
};
|
|
109
|
-
declare function ToolbarUndo(props: ToolbarUndo.Props): react_jsx_runtime0.JSX.Element;
|
|
110
|
-
declare function ToolbarRedo(props: ToolbarRedo.Props): react_jsx_runtime0.JSX.Element;
|
|
111
|
-
declare function ToolbarBold(props: ToolbarBold.Props): react_jsx_runtime0.JSX.Element;
|
|
112
|
-
declare function ToolbarItalic(props: ToolbarItalic.Props): react_jsx_runtime0.JSX.Element;
|
|
113
|
-
declare function ToolbarUnderline(props: ToolbarUnderline.Props): react_jsx_runtime0.JSX.Element;
|
|
114
|
-
declare function ToolbarStrikethrough(props: ToolbarStrikethrough.Props): react_jsx_runtime0.JSX.Element;
|
|
115
|
-
declare function ToolbarCode(props: ToolbarCode.Props): react_jsx_runtime0.JSX.Element;
|
|
116
|
-
declare function ToolbarCommonActions(): react_jsx_runtime0.JSX.Element;
|
|
117
|
-
declare namespace ToolbarUndo {
|
|
118
|
-
type Props = ToolbarActionProps;
|
|
119
|
-
}
|
|
120
|
-
declare namespace ToolbarRedo {
|
|
121
|
-
type Props = ToolbarActionProps;
|
|
122
|
-
}
|
|
123
|
-
declare namespace ToolbarBold {
|
|
124
|
-
type Props = ToolbarActionProps;
|
|
125
|
-
}
|
|
126
|
-
declare namespace ToolbarItalic {
|
|
127
|
-
type Props = ToolbarActionProps;
|
|
128
|
-
}
|
|
129
|
-
declare namespace ToolbarUnderline {
|
|
130
|
-
type Props = ToolbarActionProps;
|
|
131
|
-
}
|
|
132
|
-
declare namespace ToolbarStrikethrough {
|
|
133
|
-
type Props = ToolbarActionProps;
|
|
134
|
-
}
|
|
135
|
-
declare namespace ToolbarCode {
|
|
136
|
-
type Props = ToolbarActionProps;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/components/toolbar/toolbar-align.d.ts
|
|
140
|
-
type ToolbarAlignProps = {
|
|
141
|
-
className?: string;
|
|
142
|
-
};
|
|
143
|
-
declare function ToolbarAlign(props: ToolbarAlign.Props): react_jsx_runtime0.JSX.Element;
|
|
144
|
-
declare namespace ToolbarAlign {
|
|
145
|
-
type Props = ToolbarAlignProps;
|
|
146
|
-
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/components/toolbar/toolbar-direction.d.ts
|
|
149
|
-
type ToolbarDirectionProps = {
|
|
150
|
-
className?: string;
|
|
151
|
-
};
|
|
152
|
-
declare function ToolbarDirection(props: ToolbarDirection.Props): react_jsx_runtime0.JSX.Element;
|
|
153
|
-
declare namespace ToolbarDirection {
|
|
154
|
-
type Props = ToolbarDirectionProps;
|
|
155
|
-
}
|
|
156
|
-
declare namespace toolbar_d_exports {
|
|
157
|
-
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 };
|
|
158
|
-
}
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region src/hooks/use-editor-variables.d.ts
|
|
161
|
-
/** Returns the current variable list from the variable extension's storage. */
|
|
162
|
-
declare function useEditorVariables(editor?: Editor$1 | null): Variables | undefined;
|
|
163
|
-
//#endregion
|
|
164
|
-
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 };
|
|
165
|
-
//# sourceMappingURL=index.d.cts.map
|
|
1
|
+
export type * from './index.d.mts'
|