@fileverse-dev/ddoc 2.2.8-byom-2 → 2.2.8-hotfix-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/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-2",
5
+ "version": "2.2.8-hotfix-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -83,7 +83,6 @@
83
83
  "katex": "^0.16.11",
84
84
  "lowlight": "^3.3.0",
85
85
  "markdown-it-footnote": "^4.0.0",
86
- "ollama": "^0.5.14",
87
86
  "platform": "^1.3.6",
88
87
  "prosemirror-model": "^1.21.0",
89
88
  "prosemirror-state": "^1.4.3",
@@ -1,3 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
-
3
- export declare const AiAutocomplete: Extension<any, any>;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { NodeViewProps } from '@tiptap/react';
3
-
4
- export declare const AIWriterNodeView: React.MemoExoticComponent<({ node, editor, getPos, updateAttributes, onPromptUsage, }: NodeViewProps & {
5
- onPromptUsage: () => void;
6
- }) => import("react/jsx-runtime").JSX.Element | null>;
@@ -1,21 +0,0 @@
1
- import { Node } from '@tiptap/react';
2
-
3
- export interface AIWriterOptions {
4
- HTMLAttributes: Record<string, any>;
5
- onPromptUsage?: () => void;
6
- }
7
- declare module '@tiptap/core' {
8
- interface Commands<ReturnType> {
9
- aiWriter: {
10
- /**
11
- * Add a prompt card
12
- */
13
- insertAIWriter: (options: {
14
- prompt: string;
15
- content: string;
16
- tone: string;
17
- }) => ReturnType;
18
- };
19
- }
20
- }
21
- export declare const AIWriter: Node<AIWriterOptions, any>;
@@ -1 +0,0 @@
1
- export * from './ai-writer';
@@ -1,11 +0,0 @@
1
- /**
2
- * Represents a tone option for AI text generation
3
- */
4
- export interface ToneOption {
5
- value: string;
6
- label: string;
7
- }
8
- /**
9
- * Available tone options for AI text generation
10
- */
11
- export declare const TONE_OPTIONS: ToneOption[];
@@ -1 +0,0 @@
1
- export declare const isLikelyLatex: (input: string) => boolean;