@ylzcc/editor 0.3.18 → 0.3.20

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- import type { Editor as Instance } from '@tiptap/core';
3
+ import 'highlight.js/styles/github.css';
4
4
  type EditorProps = {
5
5
  showTitle?: boolean;
6
6
  showCatalogue?: boolean;
@@ -18,10 +18,5 @@ type EditorProps = {
18
18
  setHeader?: any;
19
19
  [key: string]: any;
20
20
  };
21
- type shareDataType = {
22
- editor: Instance | undefined | null;
23
- [key: string]: any;
24
- };
25
- export declare const shareData: React.Context<Partial<shareDataType>>;
26
21
  declare let Editor: React.FC<EditorProps>;
27
22
  export default Editor;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { Editor as Instance } from '@tiptap/core';
3
+ type shareDataType = {
4
+ editor: Instance | undefined | null;
5
+ [key: string]: any;
6
+ };
7
+ declare const shareData: import("react").Context<Partial<shareDataType>>;
8
+ export default shareData;
@@ -1,4 +1,3 @@
1
- import 'highlight.js/styles/atom-one-dark.css';
2
1
  import './index.less';
3
2
  declare const PdfViewShow: ({ node }: any) => import("react/jsx-runtime").JSX.Element;
4
3
  export default PdfViewShow;