@yiitap/vue 1.1.0 → 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/dist/index.cjs +41 -117
- package/dist/index.js +41 -117
- package/dist/index.mjs +15017 -21995
- package/dist/vue.css +1 -1
- package/package.json +17 -13
- 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/index.d.ts +2 -1
- package/types/hooks/useTiptap.d.ts +3 -0
- package/types/extensions/placeholder/index.d.ts +0 -17
- 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>[];
|
|
@@ -3,6 +3,8 @@ export { default as OFocus } from '@yiitap/extension-focus';
|
|
|
3
3
|
export { default as OPlaceholder } from '@yiitap/extension-placeholder';
|
|
4
4
|
export { default as OTable } from '@yiitap/extension-table';
|
|
5
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';
|
|
6
8
|
export { default as OBlockquote } from './blockquote';
|
|
7
9
|
export { default as OCallout } from './callout';
|
|
8
10
|
export { default as OCodeBlock } from './code-block';
|
|
@@ -14,7 +16,6 @@ export { default as OParagraph } from './paragraph';
|
|
|
14
16
|
export { default as OTableCell } from './table-cell';
|
|
15
17
|
export { default as OTableHeader } from './table-header';
|
|
16
18
|
export { default as OTableWrapper } from './table-wrapper';
|
|
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,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
|