@fileverse-dev/ddoc 2.2.8-byom-14 → 2.2.8-byom-15
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-BieRJ3ra.mjs → ccip-E1c0iFNB.mjs} +1 -1
- package/dist/{index-B1IWd71H.mjs → index-DtfHKbzf.mjs} +11327 -11346
- package/dist/index.es.js +1 -1
- package/dist/package/extensions/ai-writer/ai-writer-node-view.d.ts +1 -3
- package/dist/package/extensions/ai-writer/ai-writer.d.ts +0 -1
- package/dist/package/extensions/ai-writer/types.d.ts +1 -0
- package/dist/package/types.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { NodeViewProps } from '@tiptap/react';
|
3
3
|
|
4
|
-
export declare const AIWriterNodeView: React.MemoExoticComponent<({ node, editor: parentEditor, getPos, updateAttributes
|
5
|
-
onPromptUsage: () => void;
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null>;
|
4
|
+
export declare const AIWriterNodeView: React.MemoExoticComponent<({ node, editor: parentEditor, getPos, updateAttributes }: NodeViewProps) => import("react/jsx-runtime").JSX.Element | null>;
|
@@ -32,6 +32,7 @@ export interface ModelContextType {
|
|
32
32
|
setSystemPrompt: (prompt: string) => void;
|
33
33
|
selectedLLM: string | null;
|
34
34
|
setSelectedLLM: (llm: string | null) => void;
|
35
|
+
onPromptUsage?: () => void;
|
35
36
|
}
|
36
37
|
export interface ModelService {
|
37
38
|
callModel?: (prompt: string, model: string) => Promise<string>;
|
package/dist/package/types.d.ts
CHANGED
@@ -95,7 +95,6 @@ export interface DdocProps extends CommentAccountProps {
|
|
95
95
|
onMarkdownExport?: () => void;
|
96
96
|
onMarkdownImport?: () => void;
|
97
97
|
onPdfExport?: () => void;
|
98
|
-
onPromptUsage?: () => void;
|
99
98
|
sharedSlidesLink?: string;
|
100
99
|
documentName?: string;
|
101
100
|
onInvalidContentError?: (e: unknown) => void;
|