@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/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-B1IWd71H.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-DtfHKbzf.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -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, onPromptUsage, }: NodeViewProps & {
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>;
@@ -2,7 +2,6 @@ import { Node } from '@tiptap/react';
2
2
 
3
3
  export interface AIWriterOptions {
4
4
  HTMLAttributes: Record<string, any>;
5
- onPromptUsage?: () => void;
6
5
  }
7
6
  declare module '@tiptap/core' {
8
7
  interface Commands<ReturnType> {
@@ -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>;
@@ -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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.2.8-byom-14",
5
+ "version": "2.2.8-byom-15",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {