@ylzcc/editor 0.0.2 → 0.0.4
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/Editor/index.d.ts +3 -2
- package/dist/components/CodeBlockView/index.d.ts +1 -1
- package/dist/editor.es.js +4673 -4560
- package/dist/editor.umd.js +68 -69
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/Editor/index.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import './index.less';
|
|
|
3
3
|
import type { Editor as Instance } from '@tiptap/core';
|
|
4
4
|
type EditorProps = {
|
|
5
5
|
showCatalogue?: boolean;
|
|
6
|
-
canOpenCatalogue?: boolean;
|
|
7
6
|
oss?: string;
|
|
8
7
|
xternUrl?: string;
|
|
9
8
|
wsUrl?: any;
|
|
10
9
|
editable?: boolean;
|
|
10
|
+
templateInfo?: any;
|
|
11
|
+
titleOnChange?: (value: string) => void;
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
};
|
|
13
14
|
type shareDataType = {
|
|
@@ -15,5 +16,5 @@ type shareDataType = {
|
|
|
15
16
|
[key: string]: any;
|
|
16
17
|
};
|
|
17
18
|
export declare const shareData: React.Context<Partial<shareDataType>>;
|
|
18
|
-
declare
|
|
19
|
+
declare let Editor: React.FC<EditorProps>;
|
|
19
20
|
export default Editor;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './index.less';
|
|
2
|
-
declare const CodeBlockView: ({ editor, node,
|
|
2
|
+
declare const CodeBlockView: ({ editor, node, updateAttributes, extension }: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CodeBlockView;
|