@fileverse-dev/ddoc 2.2.9-webllm-1 → 2.3.0-patch-1
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/{ccip-l8ihOsjW.mjs → ccip-K_5DUUoN.mjs} +1 -1
- package/dist/{index-DxRcjag5.mjs → index-Cpi2heJH.mjs} +22696 -22151
- package/dist/index.es.js +1 -1
- package/dist/package/extensions/slash-command/slash-comand.d.ts +1 -1
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +1 -2
- package/dist/package/extensions/supercharged-table/extension-table/table-view.d.ts +7 -6
- package/dist/package/extensions/supercharged-table/extension-table/table.d.ts +38 -3
- package/dist/package/extensions/supercharged-table/extension-table/utilities/col-style.d.ts +1 -0
- package/dist/package/extensions/supercharged-table/extension-table/utilities/create-cell.d.ts +1 -1
- package/dist/package/extensions/supercharged-table/extension-table/utilities/create-col-group.d.ts +18 -0
- package/dist/package/extensions/supercharged-table/extension-table/utilities/create-table.d.ts +1 -1
- package/dist/package/extensions/supercharged-table/extension-table/utilities/get-table-node-types.d.ts +1 -1
- package/dist/package/extensions/supercharged-table/extension-table/utilities/is-cell-selection.d.ts +1 -1
- package/dist/package/types.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +2 -3
- package/dist/package/extensions/ai-autocomplete/workers/webllm.worker.d.ts +0 -1
package/dist/index.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
2
2
|
|
3
3
|
export declare const Command: Extension<any, any>;
|
4
|
-
declare const SlashCommand: (onError?: (errorString: string) => void, secureImageUploadUrl?: string, isConnected?: boolean
|
4
|
+
declare const SlashCommand: (onError?: (errorString: string) => void, secureImageUploadUrl?: string, isConnected?: boolean) => Extension<any, any>;
|
5
5
|
export default SlashCommand;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { CommandProps } from './types';
|
2
2
|
|
3
|
-
export declare const getSuggestionItems: ({ query, onError, secureImageUploadUrl,
|
3
|
+
export declare const getSuggestionItems: ({ query, onError, secureImageUploadUrl, editor, }: {
|
4
4
|
query: string;
|
5
5
|
onError?: (errorString: string) => void;
|
6
6
|
secureImageUploadUrl?: string;
|
7
7
|
isConnected?: boolean;
|
8
|
-
hasAvailableModels?: boolean;
|
9
8
|
editor?: any;
|
10
9
|
}) => ({
|
11
10
|
title: string;
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from '
|
2
|
-
import { NodeView, ViewMutationRecord } from '
|
1
|
+
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
2
|
+
import { NodeView, ViewMutationRecord } from '@tiptap/pm/view';
|
3
3
|
|
4
|
-
export declare function updateColumns(node: ProseMirrorNode, colgroup:
|
4
|
+
export declare function updateColumns(node: ProseMirrorNode, colgroup: HTMLTableColElement, // <colgroup> has the same prototype as <col>
|
5
|
+
table: HTMLTableElement, cellMinWidth: number, overrideCol?: number, overrideValue?: number): void;
|
5
6
|
export declare class TableView implements NodeView {
|
6
7
|
node: ProseMirrorNode;
|
7
8
|
cellMinWidth: number;
|
8
|
-
dom:
|
9
|
+
dom: HTMLDivElement;
|
9
10
|
table: HTMLTableElement;
|
10
|
-
colgroup:
|
11
|
-
contentDOM:
|
11
|
+
colgroup: HTMLTableColElement;
|
12
|
+
contentDOM: HTMLTableSectionElement;
|
12
13
|
constructor(node: ProseMirrorNode, cellMinWidth: number);
|
13
14
|
update(node: ProseMirrorNode): boolean;
|
14
15
|
ignoreMutation(mutation: ViewMutationRecord): boolean;
|
@@ -1,13 +1,48 @@
|
|
1
1
|
import { Node, ParentConfig } from '@tiptap/core';
|
2
|
-
import { NodeView } from '
|
2
|
+
import { EditorView, NodeView } from '@tiptap/pm/view';
|
3
|
+
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
3
4
|
|
4
5
|
export interface TableOptions {
|
5
|
-
|
6
|
+
/**
|
7
|
+
* HTML attributes for the table element.
|
8
|
+
* @default {}
|
9
|
+
* @example { class: 'foo' }
|
10
|
+
*/
|
11
|
+
HTMLAttributes: Record<string, any>;
|
12
|
+
/**
|
13
|
+
* Enables the resizing of tables.
|
14
|
+
* @default false
|
15
|
+
* @example true
|
16
|
+
*/
|
6
17
|
resizable: boolean;
|
18
|
+
/**
|
19
|
+
* The width of the resize handle.
|
20
|
+
* @default 5
|
21
|
+
* @example 10
|
22
|
+
*/
|
7
23
|
handleWidth: number;
|
24
|
+
/**
|
25
|
+
* The minimum width of a cell.
|
26
|
+
* @default 25
|
27
|
+
* @example 50
|
28
|
+
*/
|
8
29
|
cellMinWidth: number;
|
9
|
-
|
30
|
+
/**
|
31
|
+
* The node view to render the table.
|
32
|
+
* @default TableView
|
33
|
+
*/
|
34
|
+
View: (new (node: ProseMirrorNode, cellMinWidth: number, view: EditorView) => NodeView) | null;
|
35
|
+
/**
|
36
|
+
* Enables the resizing of the last column.
|
37
|
+
* @default true
|
38
|
+
* @example false
|
39
|
+
*/
|
10
40
|
lastColumnResizable: boolean;
|
41
|
+
/**
|
42
|
+
* Allow table node selection.
|
43
|
+
* @default false
|
44
|
+
* @example true
|
45
|
+
*/
|
11
46
|
allowTableNodeSelection: boolean;
|
12
47
|
}
|
13
48
|
declare module '@tiptap/core' {
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getColStyleDeclaration(minWidth: number, width: number | undefined): [string, string];
|
package/dist/package/extensions/supercharged-table/extension-table/utilities/create-cell.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import { Fragment, Node as ProsemirrorNode, NodeType } from '
|
1
|
+
import { Fragment, Node as ProsemirrorNode, NodeType } from '@tiptap/pm/model';
|
2
2
|
|
3
3
|
export declare function createCell(cellType: NodeType, cellContent?: Fragment | ProsemirrorNode | Array<ProsemirrorNode>): ProsemirrorNode | null | undefined;
|
package/dist/package/extensions/supercharged-table/extension-table/utilities/create-col-group.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DOMOutputSpec, Node as ProseMirrorNode } from '@tiptap/pm/model';
|
2
|
+
|
3
|
+
export type ColGroup = {
|
4
|
+
colgroup: DOMOutputSpec;
|
5
|
+
tableWidth: string;
|
6
|
+
tableMinWidth: string;
|
7
|
+
} | Record<string, never>;
|
8
|
+
/**
|
9
|
+
* Creates a colgroup element for a table node in ProseMirror.
|
10
|
+
*
|
11
|
+
* @param node - The ProseMirror node representing the table.
|
12
|
+
* @param cellMinWidth - The minimum width of a cell in the table.
|
13
|
+
* @param overrideCol - (Optional) The index of the column to override the width of.
|
14
|
+
* @param overrideValue - (Optional) The width value to use for the overridden column.
|
15
|
+
* @returns An object containing the colgroup element, the total width of the table, and the minimum width of the table.
|
16
|
+
*/
|
17
|
+
export declare function createColGroup(node: ProseMirrorNode, cellMinWidth: number): ColGroup;
|
18
|
+
export declare function createColGroup(node: ProseMirrorNode, cellMinWidth: number, overrideCol: number, overrideValue: number): ColGroup;
|
package/dist/package/extensions/supercharged-table/extension-table/utilities/create-table.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import { Fragment, Node as ProsemirrorNode, Schema } from '
|
1
|
+
import { Fragment, Node as ProsemirrorNode, Schema } from '@tiptap/pm/model';
|
2
2
|
|
3
3
|
export declare function createTable(schema: Schema, rowsCount: number, colsCount: number, withHeaderRow: boolean, cellContent?: Fragment | ProsemirrorNode | Array<ProsemirrorNode>): ProsemirrorNode;
|
package/dist/package/types.d.ts
CHANGED
@@ -96,7 +96,6 @@ export interface DdocProps extends CommentAccountProps {
|
|
96
96
|
onMarkdownExport?: () => void;
|
97
97
|
onMarkdownImport?: () => void;
|
98
98
|
onPdfExport?: () => void;
|
99
|
-
onPromptUsage?: () => void;
|
100
99
|
sharedSlidesLink?: string;
|
101
100
|
documentName?: string;
|
102
101
|
onInvalidContentError?: (e: unknown) => void;
|