@norio-office/rich-text 0.7.1 → 0.8.0
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/README.md +895 -824
- package/dist/ai/bridge.d.ts +335 -0
- package/dist/ai/consume-stream.d.ts +8 -0
- package/dist/ai/executor.d.ts +19 -0
- package/dist/ai/index.d.ts +8 -0
- package/dist/ai/index.js +4106 -0
- package/dist/ai/tools.d.ts +158 -0
- package/dist/ai-protocol/index.d.ts +12 -0
- package/dist/ai-protocol/index.js +2372 -0
- package/dist/ai-protocol/json-schema.d.ts +5 -0
- package/dist/ai-protocol/patch.d.ts +77 -0
- package/dist/ai-protocol/references.d.ts +11 -0
- package/dist/ai-protocol/stream.d.ts +94 -0
- package/dist/ai-protocol/tools.d.ts +8 -0
- package/dist/ai-protocol/validation.d.ts +20 -0
- package/dist/components/RichTextEditor.vue.d.ts +11 -4
- package/dist/document/ai-identity.d.ts +4 -0
- package/dist/document/nodes/columns-block.d.ts +2 -0
- package/dist/document/nodes/countdown-block.d.ts +2 -0
- package/dist/document/nodes/formula-block.d.ts +2 -0
- package/dist/document/nodes/highlight-block.d.ts +2 -0
- package/dist/document/nodes/image-block.d.ts +8 -0
- package/dist/document/nodes/link-block.d.ts +2 -0
- package/dist/document/nodes/local-file-block.d.ts +2 -0
- package/dist/document/nodes/mention.d.ts +2 -0
- package/dist/document/nodes/office-code-block.d.ts +1 -0
- package/dist/document/nodes/table-cells.d.ts +2 -0
- package/dist/document/nodes/themed-table.d.ts +1 -0
- package/dist/document/nodes/video-block.d.ts +8 -0
- package/dist/document/schema.d.ts +17 -0
- package/dist/extensions/ai-identity.d.ts +1 -0
- package/dist/extensions/columns-block.d.ts +1 -2
- package/dist/extensions/countdown-block.d.ts +1 -2
- package/dist/extensions/formula-block.d.ts +1 -2
- package/dist/extensions/highlight-block.d.ts +1 -2
- package/dist/extensions/image-block.d.ts +4 -8
- package/dist/extensions/link-block.d.ts +1 -2
- package/dist/extensions/local-file-block.d.ts +1 -2
- package/dist/extensions/mention.d.ts +1 -2
- package/dist/extensions/video-block.d.ts +4 -8
- package/dist/{html2canvas-4hiP1s1t.js → html2canvas-BnDzIoab.js} +112 -126
- package/dist/index.js +8343 -7407
- package/dist/index.umd.cjs +2196 -1995
- package/dist/nordox/index.d.ts +95 -0
- package/dist/nordox/index.js +2094 -0
- package/dist/{chunk-C_CI6nMA.js → rolldown-runtime-VHNaYcLd.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/types.d.ts +9 -1
- package/docs/ai/README.md +108 -0
- package/docs/ai/acceptance-report.md +88 -0
- package/docs/ai/capability-matrix.md +43 -0
- package/docs/ai/compatibility.md +9 -0
- package/docs/icons.md +21 -0
- package/examples/ai/browser/App.vue +151 -0
- package/examples/ai/browser/index.html +12 -0
- package/examples/ai/browser/main.ts +5 -0
- package/examples/ai/browser/tsconfig.json +7 -0
- package/examples/ai/browser/vite.config.ts +14 -0
- package/examples/ai/node.mjs +28 -0
- package/package.json +15 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type RichTextJsonSchema = Record<string, unknown>;
|
|
2
|
+
export declare function getRichTextDocumentJsonSchema(): RichTextJsonSchema;
|
|
3
|
+
export declare function getRichTextAiCreatedDocumentJsonSchema(): RichTextJsonSchema;
|
|
4
|
+
export declare function getRichTextPatchJsonSchema(): RichTextJsonSchema;
|
|
5
|
+
export declare function getRichTextStreamEventJsonSchema(): RichTextJsonSchema;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { RichTextValidationIssue } from './validation';
|
|
3
|
+
export type RichTextJsonValue = string | number | boolean | null | RichTextJsonValue[] | {
|
|
4
|
+
[key: string]: RichTextJsonValue;
|
|
5
|
+
};
|
|
6
|
+
export type RichTextAttributes = Record<string, RichTextJsonValue>;
|
|
7
|
+
export type RichTextPatchOperation = {
|
|
8
|
+
type: 'insertContent';
|
|
9
|
+
targetRef: string;
|
|
10
|
+
position: 'at' | 'before' | 'after';
|
|
11
|
+
content: JSONContent[];
|
|
12
|
+
} | {
|
|
13
|
+
type: 'replaceText';
|
|
14
|
+
targetRef: string;
|
|
15
|
+
text: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'replaceFragment';
|
|
18
|
+
targetRef: string;
|
|
19
|
+
content: JSONContent[];
|
|
20
|
+
} | {
|
|
21
|
+
type: 'setMarks';
|
|
22
|
+
targetRef: string;
|
|
23
|
+
marks: Array<{
|
|
24
|
+
type: string;
|
|
25
|
+
attrs?: RichTextAttributes;
|
|
26
|
+
}>;
|
|
27
|
+
} | {
|
|
28
|
+
type: 'unsetMarks';
|
|
29
|
+
targetRef: string;
|
|
30
|
+
markTypes: string[];
|
|
31
|
+
} | {
|
|
32
|
+
type: 'setNodeAttributes';
|
|
33
|
+
targetRef: string;
|
|
34
|
+
nodeType: string;
|
|
35
|
+
attrs: RichTextAttributes;
|
|
36
|
+
} | {
|
|
37
|
+
type: 'unsetNodeAttributes';
|
|
38
|
+
targetRef: string;
|
|
39
|
+
nodeType: string;
|
|
40
|
+
attributes: string[];
|
|
41
|
+
} | {
|
|
42
|
+
type: 'deleteContent';
|
|
43
|
+
targetRef: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: 'moveBlocks';
|
|
46
|
+
targetRef: string;
|
|
47
|
+
destinationRef: string;
|
|
48
|
+
position: 'before' | 'after';
|
|
49
|
+
} | {
|
|
50
|
+
type: 'transformBlocks';
|
|
51
|
+
targetRef: string;
|
|
52
|
+
nodeType: string;
|
|
53
|
+
attrs?: RichTextAttributes;
|
|
54
|
+
} | {
|
|
55
|
+
type: 'tableOperation';
|
|
56
|
+
targetRef: string;
|
|
57
|
+
action: 'insertRowBefore' | 'insertRowAfter' | 'deleteRow' | 'insertColumnBefore' | 'insertColumnAfter' | 'deleteColumn' | 'mergeCells' | 'splitCell' | 'setCellContent' | 'setCellBackground' | 'setTableTheme';
|
|
58
|
+
content?: JSONContent[];
|
|
59
|
+
value?: RichTextJsonValue;
|
|
60
|
+
};
|
|
61
|
+
export type RichTextPatch = {
|
|
62
|
+
protocolVersion: 1;
|
|
63
|
+
documentId: string;
|
|
64
|
+
requestId: string;
|
|
65
|
+
contextId: string;
|
|
66
|
+
baseRevision: number;
|
|
67
|
+
operations: RichTextPatchOperation[];
|
|
68
|
+
};
|
|
69
|
+
export type RichTextPatchValidationResult = {
|
|
70
|
+
valid: true;
|
|
71
|
+
patch: RichTextPatch;
|
|
72
|
+
errors: [];
|
|
73
|
+
} | {
|
|
74
|
+
valid: false;
|
|
75
|
+
errors: RichTextValidationIssue[];
|
|
76
|
+
};
|
|
77
|
+
export declare function validateRichTextPatch(value: unknown): RichTextPatchValidationResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { RichTextPatch } from './patch';
|
|
3
|
+
import { RichTextStreamEvent } from './stream';
|
|
4
|
+
export type RichTextExternalReference = {
|
|
5
|
+
kind: 'image' | 'video' | 'file' | 'mention' | 'comment' | 'link';
|
|
6
|
+
id?: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function collectRichTextDocumentReferences(document: JSONContent): RichTextExternalReference[];
|
|
10
|
+
export declare function collectRichTextPatchReferences(patch: RichTextPatch): RichTextExternalReference[];
|
|
11
|
+
export declare function collectRichTextStreamEventReferences(event: RichTextStreamEvent, currentNodeType?: string): RichTextExternalReference[];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { RichTextPatchOperation, RichTextAttributes } from './patch';
|
|
3
|
+
export declare const RICH_TEXT_STREAM_PROTOCOL_VERSION = 1;
|
|
4
|
+
export type RichTextStreamMode = 'createDocument' | 'insertContent' | 'replaceText' | 'replaceFragment' | 'operations';
|
|
5
|
+
type StreamEvent<T extends string, P> = {
|
|
6
|
+
protocolVersion: 1;
|
|
7
|
+
streamId: string;
|
|
8
|
+
seq: number;
|
|
9
|
+
type: T;
|
|
10
|
+
payload: P;
|
|
11
|
+
};
|
|
12
|
+
export type RichTextStreamEvent = StreamEvent<'node.open', {
|
|
13
|
+
nodeRef: string;
|
|
14
|
+
nodeType: string;
|
|
15
|
+
attrs?: RichTextAttributes;
|
|
16
|
+
}> | StreamEvent<'text.delta', {
|
|
17
|
+
nodeRef?: string;
|
|
18
|
+
text: string;
|
|
19
|
+
marks?: Array<{
|
|
20
|
+
type: string;
|
|
21
|
+
attrs?: RichTextAttributes;
|
|
22
|
+
}>;
|
|
23
|
+
}> | StreamEvent<'node.attrs', {
|
|
24
|
+
nodeRef: string;
|
|
25
|
+
attrs: RichTextAttributes;
|
|
26
|
+
}> | StreamEvent<'node.close', {
|
|
27
|
+
nodeRef: string;
|
|
28
|
+
}> | StreamEvent<'operation', {
|
|
29
|
+
operation: RichTextPatchOperation;
|
|
30
|
+
}> | StreamEvent<'stream.end', Record<string, never>>;
|
|
31
|
+
export declare class RichTextStreamError extends Error {
|
|
32
|
+
readonly code: 'INVALID_STREAM_EVENT' | 'STREAM_SEQUENCE_ERROR' | 'STREAM_INCOMPLETE' | 'STREAM_LIMIT_EXCEEDED' | 'STREAM_CLOSED';
|
|
33
|
+
constructor(code: 'INVALID_STREAM_EVENT' | 'STREAM_SEQUENCE_ERROR' | 'STREAM_INCOMPLETE' | 'STREAM_LIMIT_EXCEEDED' | 'STREAM_CLOSED', message: string);
|
|
34
|
+
}
|
|
35
|
+
export type RichTextStreamLimits = {
|
|
36
|
+
maxEventBytes: number;
|
|
37
|
+
maxTotalBytes: number;
|
|
38
|
+
maxTextLength: number;
|
|
39
|
+
maxNodes: number;
|
|
40
|
+
maxDepth: number;
|
|
41
|
+
maxOperations: number;
|
|
42
|
+
maxEvents: number;
|
|
43
|
+
};
|
|
44
|
+
export declare const DEFAULT_RICH_TEXT_STREAM_LIMITS: RichTextStreamLimits;
|
|
45
|
+
export declare function validateRichTextStreamEvent(value: unknown): RichTextStreamEvent;
|
|
46
|
+
export declare function createRichTextStreamDecoder(limits?: Partial<RichTextStreamLimits>): {
|
|
47
|
+
push: (chunk: string | Uint8Array) => RichTextStreamEvent[];
|
|
48
|
+
finish: () => RichTextStreamEvent[];
|
|
49
|
+
};
|
|
50
|
+
export declare function createRichTextStreamBuilder(options: {
|
|
51
|
+
streamId: string;
|
|
52
|
+
mode: RichTextStreamMode;
|
|
53
|
+
limits?: Partial<RichTextStreamLimits>;
|
|
54
|
+
}): {
|
|
55
|
+
append: (eventInput: unknown) => {
|
|
56
|
+
committed: false;
|
|
57
|
+
streamId: string;
|
|
58
|
+
mode: RichTextStreamMode;
|
|
59
|
+
seq: number;
|
|
60
|
+
ended: boolean;
|
|
61
|
+
nodes: JSONContent[];
|
|
62
|
+
openNodes: JSONContent[];
|
|
63
|
+
replacementText: string;
|
|
64
|
+
operations: Record<string, unknown>[];
|
|
65
|
+
};
|
|
66
|
+
appendFast: (eventInput: unknown) => {
|
|
67
|
+
seq: number;
|
|
68
|
+
ended: boolean;
|
|
69
|
+
};
|
|
70
|
+
snapshot: () => {
|
|
71
|
+
committed: false;
|
|
72
|
+
streamId: string;
|
|
73
|
+
mode: RichTextStreamMode;
|
|
74
|
+
seq: number;
|
|
75
|
+
ended: boolean;
|
|
76
|
+
nodes: JSONContent[];
|
|
77
|
+
openNodes: JSONContent[];
|
|
78
|
+
replacementText: string;
|
|
79
|
+
operations: Record<string, unknown>[];
|
|
80
|
+
};
|
|
81
|
+
result: () => {
|
|
82
|
+
committed: false;
|
|
83
|
+
streamId: string;
|
|
84
|
+
mode: RichTextStreamMode;
|
|
85
|
+
seq: number;
|
|
86
|
+
ended: boolean;
|
|
87
|
+
nodes: JSONContent[];
|
|
88
|
+
openNodes: JSONContent[];
|
|
89
|
+
replacementText: string;
|
|
90
|
+
operations: Record<string, unknown>[];
|
|
91
|
+
};
|
|
92
|
+
currentNodeType: () => string | undefined;
|
|
93
|
+
};
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RichTextJsonSchema } from './json-schema';
|
|
2
|
+
export type RichTextToolDefinition = {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: RichTextJsonSchema;
|
|
6
|
+
outputSchema: RichTextJsonSchema;
|
|
7
|
+
};
|
|
8
|
+
export declare function getRichTextToolDefinitions(): RichTextToolDefinition[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
export type RichTextValidationIssue = {
|
|
3
|
+
path: string;
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export type RichTextValidationResult = {
|
|
8
|
+
valid: true;
|
|
9
|
+
document: JSONContent;
|
|
10
|
+
schemaVersion: string;
|
|
11
|
+
errors: [];
|
|
12
|
+
} | {
|
|
13
|
+
valid: false;
|
|
14
|
+
errors: RichTextValidationIssue[];
|
|
15
|
+
schemaVersion: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function isValidRichTextAttributeValue(type: string, key: string, value: unknown): boolean;
|
|
18
|
+
export declare function validateRichTextNode(value: unknown, path?: string): RichTextValidationIssue[];
|
|
19
|
+
export declare function validateRichTextDocument(value: unknown): RichTextValidationResult;
|
|
20
|
+
export declare function migrateRichTextDocument(value: unknown, sourceVersion?: 'legacy-json' | '1'): RichTextValidationResult;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
|
2
2
|
import { RichTextEditorFilePayload, RichTextEditorCollectedFilePayload, RichTextEditorCommentCreatePayload, RichTextEditorCommentDeletePayload, RichTextEditorCommentMentionProviderPayload, RichTextEditorCommentReplyPayload, RichTextEditorCommentResolvePayload, RichTextEditorCommentSubmitPayload, RichTextEditorCommentThread, RichTextEditorCommentUpdatePayload, RichTextEditorCommentUser, RichTextEditorImageExportOptions, RichTextEditorImagePayload, RichTextEditorLocalFilePayload, RichTextEditorMentionItem, RichTextEditorOutlineChangeHandler, RichTextEditorOutlineItem, RichTextEditorOutlineState, RichTextEditorProps, RichTextEditorUploadErrorPayload, RichTextEditorWatermarkOptions, RichTextEditorVideoPayload } from '../types';
|
|
3
|
+
import { NordoxResourceResolver, PackNordoxOptions, UnpackedNordox } from '../nordox';
|
|
3
4
|
declare const _default: import('vue').DefineComponent<RichTextEditorProps, {
|
|
4
5
|
exportPdf: () => Promise<Blob | null>;
|
|
5
6
|
exportImage: (options?: RichTextEditorImageExportOptions) => Promise<Blob | null>;
|
|
6
7
|
exportHtml: () => string | null;
|
|
8
|
+
exportNordox: (options?: Omit<PackNordoxOptions, "existingResources" | "title">) => Promise<Blob>;
|
|
9
|
+
openNordox: (input: Blob | Uint8Array | ArrayBuffer, options?: {
|
|
10
|
+
resourceResolver?: NordoxResourceResolver;
|
|
11
|
+
}) => Promise<UnpackedNordox>;
|
|
12
|
+
getAiAdapter: () => import('../ai').RichTextAiEditorAdapter;
|
|
7
13
|
insertImage: (payload: RichTextEditorImagePayload | RichTextEditorImagePayload[]) => boolean;
|
|
8
14
|
insertVideo: (payload: RichTextEditorVideoPayload) => boolean;
|
|
9
15
|
insertFile: (payload: RichTextEditorFilePayload) => boolean;
|
|
@@ -64,16 +70,17 @@ declare const _default: import('vue').DefineComponent<RichTextEditorProps, {
|
|
|
64
70
|
}>, {
|
|
65
71
|
mode: "edit" | "preview";
|
|
66
72
|
placeholder: string;
|
|
67
|
-
comments: RichTextEditorCommentThread[] | null;
|
|
68
|
-
watermark: RichTextEditorWatermarkOptions | null;
|
|
69
73
|
mention: boolean;
|
|
70
|
-
editable: boolean;
|
|
71
74
|
uploadImage: import('..').RichTextEditorUploadHook | null;
|
|
72
75
|
onUploadError: import('..').RichTextEditorUploadErrorHandler | null;
|
|
73
76
|
uploadVideo: import('..').RichTextEditorUploadHook | null;
|
|
77
|
+
assetPackaging: import('../nordox').RichTextAssetPackaging | null;
|
|
78
|
+
comments: RichTextEditorCommentThread[] | null;
|
|
79
|
+
watermark: RichTextEditorWatermarkOptions | null;
|
|
74
80
|
modelValue: JSONContent | null;
|
|
75
81
|
documentName: string;
|
|
76
82
|
showToolbar: boolean;
|
|
83
|
+
showAiTargetButton: boolean;
|
|
77
84
|
showOutline: boolean;
|
|
78
85
|
outlinePlacement: import('../feature-codes').RichTextEditorOutlinePlacement;
|
|
79
86
|
messages: import('..').RichTextEditorMessages | null;
|
|
@@ -124,6 +131,6 @@ declare const _default: import('vue').DefineComponent<RichTextEditorProps, {
|
|
|
124
131
|
imageUploadInputRef: HTMLInputElement;
|
|
125
132
|
videoUploadInputRef: HTMLInputElement;
|
|
126
133
|
commentImageInputRef: HTMLInputElement;
|
|
127
|
-
|
|
134
|
+
slashMenuRef: HTMLDivElement;
|
|
128
135
|
}, HTMLDivElement>;
|
|
129
136
|
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Extension, JSONContent } from '@tiptap/core';
|
|
2
|
+
export declare const AI_IDENTIFIED_NODE_TYPES: readonly ["paragraph", "heading", "blockquote", "bulletList", "orderedList", "listItem", "taskList", "taskItem", "codeBlock", "horizontalRule", "table", "tableRow", "tableCell", "tableHeader", "columnsBlock", "columnsColumn", "highlightBlock", "imageBlock", "videoBlock", "localFileBlock", "linkBlock", "formulaBlock", "countdownBlock"];
|
|
3
|
+
export declare const AiIdentityDefinition: Extension<any, any>;
|
|
4
|
+
export declare function assignMissingRichTextAiIds(value: JSONContent): JSONContent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { RichTextEditorUploadErrorHandler, RichTextEditorUploadHook } from '../../types';
|
|
3
|
+
type ImageBlockOptions = {
|
|
4
|
+
uploadImage: RichTextEditorUploadHook | null;
|
|
5
|
+
onUploadError: RichTextEditorUploadErrorHandler | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const ImageBlockDefinition: Node<ImageBlockOptions, any>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OfficeCodeBlockDefinition: import('@tiptap/core').Node<import('@tiptap/extension-code-block-lowlight').CodeBlockLowlightOptions, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemedTableDefinition: import('@tiptap/core').Node<import('@tiptap/extension-table').TableOptions, any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
import { RichTextEditorUploadErrorHandler, RichTextEditorUploadHook } from '../../types';
|
|
3
|
+
type VideoBlockOptions = {
|
|
4
|
+
uploadVideo: RichTextEditorUploadHook | null;
|
|
5
|
+
onUploadError: RichTextEditorUploadErrorHandler | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const VideoBlockDefinition: Node<VideoBlockOptions, any>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const RICH_TEXT_SCHEMA_VERSION = "1";
|
|
2
|
+
export declare function createRichTextDocumentExtensions(): (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<{
|
|
3
|
+
uploadImage: import('..').RichTextEditorUploadHook | null;
|
|
4
|
+
onUploadError: import('..').RichTextEditorUploadErrorHandler | null;
|
|
5
|
+
}, any> | import('@tiptap/core').Node<import('@tiptap/extension-code-block-lowlight').CodeBlockLowlightOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-table').TableCellOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-table').TableOptions, any> | import('@tiptap/core').Node<{
|
|
6
|
+
uploadVideo: import('..').RichTextEditorUploadHook | null;
|
|
7
|
+
onUploadError: import('..').RichTextEditorUploadErrorHandler | null;
|
|
8
|
+
}, any> | import('@tiptap/core').Extension<{
|
|
9
|
+
types: string[];
|
|
10
|
+
minLevel: number;
|
|
11
|
+
maxLevel: number;
|
|
12
|
+
stepEm: number;
|
|
13
|
+
}, any> | import('@tiptap/core').Extension<{
|
|
14
|
+
defaultBorderColor: string;
|
|
15
|
+
defaultBackgroundColor: string;
|
|
16
|
+
}, any> | import('@tiptap/core').Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-text-style/text-style').TextStyleOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-text-style').FontFamilyOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-superscript').SuperscriptExtensionOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskListOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskItemOptions, any>)[];
|
|
17
|
+
export declare function getRichTextDocumentSchema(): import('prosemirror-model').Schema<any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AiIdentity: import('@tiptap/core').Extension<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ColumnsBlock: Node<any, any>;
|
|
1
|
+
export declare const ColumnsBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CountdownBlock: Node<any, any>;
|
|
1
|
+
export declare const CountdownBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const FormulaBlock: Node<any, any>;
|
|
1
|
+
export declare const FormulaBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const HighlightBlock: Node<any, any>;
|
|
1
|
+
export declare const HighlightBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onUploadError: RichTextEditorUploadErrorHandler | null;
|
|
6
|
-
};
|
|
7
|
-
export declare const ImageBlock: Node<ImageBlockOptions, any>;
|
|
8
|
-
export {};
|
|
1
|
+
export declare const ImageBlock: import('@tiptap/core').Node<{
|
|
2
|
+
uploadImage: import('..').RichTextEditorUploadHook | null;
|
|
3
|
+
onUploadError: import('..').RichTextEditorUploadErrorHandler | null;
|
|
4
|
+
}, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LinkBlock: Node<any, any>;
|
|
1
|
+
export declare const LinkBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LocalFileBlock: Node<any, any>;
|
|
1
|
+
export declare const LocalFileBlock: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Mention: Node<any, any>;
|
|
1
|
+
export declare const Mention: import('@tiptap/core').Node<any, any>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onUploadError: RichTextEditorUploadErrorHandler | null;
|
|
6
|
-
};
|
|
7
|
-
export declare const VideoBlock: Node<VideoBlockOptions, any>;
|
|
8
|
-
export {};
|
|
1
|
+
export declare const VideoBlock: import('@tiptap/core').Node<{
|
|
2
|
+
uploadVideo: import('..').RichTextEditorUploadHook | null;
|
|
3
|
+
onUploadError: import('..').RichTextEditorUploadErrorHandler | null;
|
|
4
|
+
}, any>;
|