@daisychainapp/maily-to-core 0.2.8 → 0.2.9
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/package.json +1 -1
- package/dist/blocks/index.d.mts +0 -57
- package/dist/blocks/index.js +0 -290
- package/dist/blocks/index.js.map +0 -1
- package/dist/extensions/index.d.mts +0 -332
- package/dist/extensions/index.js +0 -5268
- package/dist/extensions/index.js.map +0 -1
- package/dist/index.d.mts +0 -82
- package/dist/index.js +0 -8348
- package/dist/index.js.map +0 -1
package/dist/index.d.mts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
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 Variable = {
|
|
35
|
-
name: string;
|
|
36
|
-
required?: boolean;
|
|
37
|
-
valid?: boolean;
|
|
38
|
-
};
|
|
39
|
-
type VariableFunctionOptions = {
|
|
40
|
-
query: string;
|
|
41
|
-
from: 'content-variable' | 'bubble-variable' | 'repeat-variable';
|
|
42
|
-
editor: Editor$1;
|
|
43
|
-
};
|
|
44
|
-
type VariablesFunction = (opts: VariableFunctionOptions) => Array<Variable>;
|
|
45
|
-
type Variables = Array<Variable> | VariablesFunction;
|
|
46
|
-
type RenderVariableOptions = {
|
|
47
|
-
variable: Variable;
|
|
48
|
-
fallback?: string;
|
|
49
|
-
editor: Editor$1;
|
|
50
|
-
from: 'content-variable' | 'bubble-variable' | 'button-variable';
|
|
51
|
-
};
|
|
52
|
-
type RenderVariableFunction = (opts: RenderVariableOptions) => JSX.Element | null;
|
|
53
|
-
type MailyContextType = {
|
|
54
|
-
placeholderUrl?: string;
|
|
55
|
-
variableTriggerCharacter?: string;
|
|
56
|
-
variables?: Variables;
|
|
57
|
-
blocks?: BlockGroupItem[];
|
|
58
|
-
renderVariable?: RenderVariableFunction;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
type ParitialMailContextType = Partial<MailyContextType>;
|
|
62
|
-
type EditorProps = {
|
|
63
|
-
contentHtml?: string;
|
|
64
|
-
contentJson?: JSONContent;
|
|
65
|
-
onUpdate?: (editor: Editor$1) => void;
|
|
66
|
-
onCreate?: (editor: Editor$1) => void;
|
|
67
|
-
extensions?: AnyExtension[];
|
|
68
|
-
config?: {
|
|
69
|
-
hasMenuBar?: boolean;
|
|
70
|
-
spellCheck?: boolean;
|
|
71
|
-
wrapClassName?: string;
|
|
72
|
-
toolbarClassName?: string;
|
|
73
|
-
contentClassName?: string;
|
|
74
|
-
bodyClassName?: string;
|
|
75
|
-
autofocus?: FocusPosition;
|
|
76
|
-
immediatelyRender?: boolean;
|
|
77
|
-
};
|
|
78
|
-
editable?: boolean;
|
|
79
|
-
} & ParitialMailContextType;
|
|
80
|
-
declare function Editor(props: EditorProps): react_jsx_runtime.JSX.Element | null;
|
|
81
|
-
|
|
82
|
-
export { Editor, type EditorProps };
|