@fileverse-dev/ddoc 2.3.0-rtc-patch-17 → 2.3.0-rtc-patch-19

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, E as r, P as s, R as a, h as t, u as i } from "./index-Do6oEUBS.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Doc2hu1k.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -2,5 +2,5 @@ import { Extension } from '@tiptap/core';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
4
  export declare const Command: Extension<any, any>;
5
- declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean) => Extension<any, any>;
5
+ declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean, enableCollaboration?: boolean) => Extension<any, any>;
6
6
  export default SlashCommand;
@@ -1,12 +1,13 @@
1
1
  import { CommandProps } from './types';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
- export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, }: {
4
+ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsImageUploadFn, editor, enableCollaboration, }: {
5
5
  query: string;
6
6
  onError?: (errorString: string) => void;
7
7
  ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>;
8
8
  isConnected?: boolean;
9
9
  editor?: any;
10
+ enableCollaboration?: boolean;
10
11
  }) => ({
11
12
  title: string;
12
13
  description: string;
@@ -23,5 +24,13 @@ export declare const getSuggestionItems: ({ query, onError, isConnected, ipfsIma
23
24
  image: string;
24
25
  command: ({ editor, range }: CommandProps) => void;
25
26
  isDisabled?: undefined;
27
+ } | {
28
+ title: string;
29
+ description: string;
30
+ searchTerms: string[];
31
+ icon: import("react/jsx-runtime").JSX.Element;
32
+ image: string;
33
+ isDisabled: boolean | undefined;
34
+ command: ({ editor, range }: CommandProps) => true | undefined;
26
35
  })[];
27
36
  export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => 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.3.0-rtc-patch-17",
5
+ "version": "2.3.0-rtc-patch-19",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {