@yiitap/vue 1.0.14 → 1.2.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 +9 -2
- package/dist/index.cjs +53 -108
- package/dist/index.js +53 -108
- package/dist/index.mjs +32063 -38947
- package/dist/vue.css +1 -1
- package/package.json +17 -6
- package/types/__tests__/index.spec.d.ts +1 -0
- package/types/components/YiiEditor.vue.d.ts +4 -4
- package/types/components/buttons/OEmojiBtn.vue.d.ts +10 -0
- package/types/components/common/OBlockPopover.vue.d.ts +95 -46
- package/types/components/common/OBlockToolbar.vue.d.ts +80 -32
- package/types/components/common/OContextMenu.vue.d.ts +80 -32
- package/types/components/common/ODocToc.vue.d.ts +22 -0
- package/types/components/common/OEmojiSelect.vue.d.ts +26 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/ui/OPopover.vue.d.ts +53 -16
- package/types/components/ui/OTooltip.vue.d.ts +55 -0
- package/types/constants/emoji.d.ts +8 -0
- package/types/extensions/char-command/emoji/suggestion.d.ts +18 -0
- package/types/extensions/char-command/emoji/view.vue.d.ts +72 -0
- package/types/extensions/dynamic.d.ts +0 -4
- package/types/extensions/image/index.d.ts +2 -2
- package/types/extensions/index.d.ts +5 -4
- package/types/extensions/table-wrapper/index.d.ts +1 -2
- package/types/extensions/video/index.d.ts +1 -10
- package/types/hooks/useTiptap.d.ts +3 -0
- package/types/extensions/placeholder/index.d.ts +0 -17
- package/types/extensions/slash/index.d.ts +0 -3
- package/types/extensions/slash/slash-zh.d.ts +0 -3
- package/types/extensions/slash/slash.d.ts +0 -6
- package/types/extensions/table/TableView.d.ts +0 -18
- package/types/extensions/table/index.d.ts +0 -11
- package/types/extensions/trailing-node/index.d.ts +0 -3
- package/types/extensions/unique-id-simple/index.d.ts +0 -8
- package/types/utils/copy-to-clipboard.d.ts +0 -1
- /package/types/extensions/{slash → char-command/slash}/suggestion.d.ts +0 -0
- /package/types/extensions/{slash → char-command/slash}/view.vue.d.ts +0 -0
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extensions Dynamic
|
|
3
|
-
*/
|
|
4
1
|
declare class DynamicClass {
|
|
5
2
|
constructor(name: string);
|
|
6
3
|
}
|
|
7
4
|
export default DynamicClass;
|
|
8
5
|
export declare const getDynamicExtension: (name: string) => DynamicClass;
|
|
9
6
|
export declare const TableExtensions: import("@tiptap/core").Node<any, any>[];
|
|
10
|
-
export declare const TableExtensions1: any[];
|
|
11
7
|
export declare const TableExtensions0: import("@tiptap/core").Node<import("@tiptap/extension-table-cell").TableCellOptions, any>[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ImageOptions } from '@
|
|
2
|
-
declare const OImage: import("@tiptap/
|
|
1
|
+
import type { ImageOptions } from '@yiitap/extension-image';
|
|
2
|
+
declare const OImage: import("@tiptap/vue-3").Node<ImageOptions, any>;
|
|
3
3
|
export default OImage;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export { default as OColorHighlighter } from '@yiitap/extension-color-highlighter';
|
|
2
2
|
export { default as OFocus } from '@yiitap/extension-focus';
|
|
3
|
+
export { default as OPlaceholder } from '@yiitap/extension-placeholder';
|
|
4
|
+
export { default as OTable } from '@yiitap/extension-table';
|
|
5
|
+
export { default as OTrailingNode } from '@yiitap/extension-trailing-node';
|
|
6
|
+
export { default as OUniqueID } from '@yiitap/extension-unique-id';
|
|
7
|
+
export { ColonCommand as OColonCommand, SlashCommand as OSlashCommand, SlashZhCommand as OSlashZhCommand, } from '@yiitap/extension-char-command';
|
|
3
8
|
export { default as OBlockquote } from './blockquote';
|
|
4
9
|
export { default as OCallout } from './callout';
|
|
5
10
|
export { default as OCodeBlock } from './code-block';
|
|
@@ -8,13 +13,9 @@ export { default as OHorizontalRule } from './horizontal-rule';
|
|
|
8
13
|
export { default as OImage } from './image';
|
|
9
14
|
export { default as OLink } from './link';
|
|
10
15
|
export { default as OParagraph } from './paragraph';
|
|
11
|
-
export { default as OPlaceholder } from './placeholder';
|
|
12
|
-
export { default as OTable } from './table';
|
|
13
16
|
export { default as OTableCell } from './table-cell';
|
|
14
17
|
export { default as OTableHeader } from './table-header';
|
|
15
18
|
export { default as OTableWrapper } from './table-wrapper';
|
|
16
|
-
export { default as OTrailingNode } from './trailing-node';
|
|
17
|
-
export { default as OUniqueID } from './unique-id-simple';
|
|
18
19
|
export { default as OVideo } from './video';
|
|
19
20
|
export declare const DefaultExtensions: string[];
|
|
20
21
|
export declare const TipTapExtensions: string[];
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const inputRegex: RegExp;
|
|
3
|
-
declare module '@tiptap/core' {
|
|
4
|
-
interface Commands<ReturnType> {
|
|
5
|
-
video: {
|
|
6
|
-
setVideo: (options: Indexable) => ReturnType;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare const OVideo: Node<any, any>;
|
|
1
|
+
export declare const OVideo: import("@tiptap/vue-3").Node<any, any>;
|
|
11
2
|
export default OVideo;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ChainedCommands, Editor, SingleCommands } from '@tiptap/core';
|
|
2
2
|
export default function (): {
|
|
3
|
+
isEditable: {
|
|
4
|
+
value: boolean;
|
|
5
|
+
};
|
|
3
6
|
run: (editor: Editor, command: string, options?: Indexable) => void;
|
|
4
7
|
onCommand: (commands: SingleCommands, focus: ChainedCommands, command: string, options?: Indexable) => void;
|
|
5
8
|
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Editor, Extension } from '@tiptap/core';
|
|
2
|
-
import { Node as ProsemirrorNode } from '@tiptap/pm/model';
|
|
3
|
-
export interface PlaceholderOptions {
|
|
4
|
-
emptyEditorClass: string;
|
|
5
|
-
emptyNodeClass: string;
|
|
6
|
-
placeholder: ((PlaceholderProps: {
|
|
7
|
-
editor: Editor;
|
|
8
|
-
node: ProsemirrorNode;
|
|
9
|
-
pos: number;
|
|
10
|
-
hasAnchor: boolean;
|
|
11
|
-
}) => string) | string;
|
|
12
|
-
showOnlyWhenEditable: boolean;
|
|
13
|
-
showOnlyCurrent: boolean;
|
|
14
|
-
includeChildren: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const Placeholder: Extension<PlaceholderOptions, any>;
|
|
17
|
-
export default Placeholder;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
2
|
-
import { EditorView, type NodeView } from '@tiptap/pm/view';
|
|
3
|
-
export declare function updateColumns(node: ProseMirrorNode, colgroup: Element, table: Element, cellMinWidth: number, overrideCol?: number, overrideValue?: any): void;
|
|
4
|
-
export declare class TableView implements NodeView {
|
|
5
|
-
node: ProseMirrorNode;
|
|
6
|
-
cellMinWidth: number;
|
|
7
|
-
view: EditorView;
|
|
8
|
-
dom: HTMLElement;
|
|
9
|
-
table: HTMLElement;
|
|
10
|
-
colgroup: HTMLElement;
|
|
11
|
-
contentDOM: HTMLElement;
|
|
12
|
-
constructor(node: ProseMirrorNode, cellMinWidth: number, view: EditorView);
|
|
13
|
-
update(node: ProseMirrorNode): boolean;
|
|
14
|
-
ignoreMutation(mutation: MutationRecord | {
|
|
15
|
-
type: 'selection';
|
|
16
|
-
target: Element;
|
|
17
|
-
}): boolean;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TableOptions } from '@tiptap/extension-table';
|
|
2
|
-
declare module '@tiptap/core' {
|
|
3
|
-
interface Commands<ReturnType> {
|
|
4
|
-
extendTable: {
|
|
5
|
-
selectRow: (pos: number) => ReturnType;
|
|
6
|
-
selectColumn: (pos: number) => ReturnType;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
declare const Table: import("@tiptap/core").Node<TableOptions, any>;
|
|
11
|
-
export default Table;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (text: string): Promise<unknown>;
|
|
File without changes
|
|
File without changes
|