rj-editor 1.3.0 → 1.3.2
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/README.md +15 -6
- package/dist/LexicalCodePrism.prod-aiocbvfq.js +1416 -0
- package/dist/components/rj-text-editor/RJEditorImageUploadContext.d.ts +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/plugins/CodeHighlightPlugin.d.ts +0 -6
- package/dist/prism-2TqtsDnJ.js +1917 -0
- package/dist/prism-bash-HogikaHd.js +175 -0
- package/dist/prism-docker-DI1lriSm.js +75 -0
- package/dist/prism-json-CPmaNewv.js +25 -0
- package/dist/prism-jsx-DCSoxYIa.js +46 -0
- package/dist/prism-tsx-BRUTQfCu.js +8 -0
- package/dist/prism-yaml-D6c5M_c9.js +68 -0
- package/dist/rendered-html.d.ts +2 -0
- package/dist/rendered-html.js +29 -0
- package/dist/rj-editor.css +1 -1
- package/dist/rj-editor.js +3669 -7335
- package/dist/rj-editor.umd.cjs +11 -11
- package/package.json +10 -5
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type RJEditorImageUploadHandler = (file: File) => Promise<string>;
|
|
3
|
-
export
|
|
3
|
+
export type RJEditorImageUploadContextValue = {
|
|
4
|
+
isUploading: boolean;
|
|
5
|
+
uploadImage: RJEditorImageUploadHandler;
|
|
6
|
+
};
|
|
7
|
+
export declare const ImageUploadContext: React.Context<RJEditorImageUploadContextValue>;
|
|
4
8
|
export declare function useRJEditorImageUpload(): RJEditorImageUploadHandler;
|
|
9
|
+
export declare function useRJEditorImageUploadState(): RJEditorImageUploadContextValue;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './styles/main.scss';
|
|
2
2
|
export { RJTextEditor } from './components/RJTextEditor';
|
|
3
|
+
export { registerCodeBlockCopyHandler } from './utils/helpers/index';
|
|
3
4
|
export { enTranslations, mergeTranslations, RJEditorI18nProvider, ruTranslations, useRJEditorI18n, uzTranslations, } from './i18n/index';
|
|
4
5
|
export type { RJTextEditorProps } from './components/RJTextEditor';
|
|
5
6
|
export type { RJEditorImageUploadHandler } from './components/RJTextEditor';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import 'prismjs/components/prism-bash';
|
|
2
|
-
import 'prismjs/components/prism-docker';
|
|
3
|
-
import 'prismjs/components/prism-json';
|
|
4
|
-
import 'prismjs/components/prism-jsx';
|
|
5
|
-
import 'prismjs/components/prism-tsx';
|
|
6
|
-
import 'prismjs/components/prism-yaml';
|
|
7
1
|
export declare function CodeHighlightPlugin(): null;
|