@yoopta/code 1.9.9-rc → 1.9.11-rc
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/Code.d.ts +2 -2
- package/dist/ui/CodeEditor.d.ts +2 -2
- package/dist/utils/decorator.d.ts +2 -2
- package/package.json +1 -1
package/dist/Code.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YooEditor, YooptaPluginBaseOptions } from '@yoopta/editor';
|
|
2
2
|
import { CodeChildElement, CodeElement } from './types';
|
|
3
3
|
declare module 'slate' {
|
|
4
4
|
interface CustomTypes {
|
|
5
|
-
Editor:
|
|
5
|
+
Editor: YooEditor;
|
|
6
6
|
Element: CodeElement | CodeChildElement;
|
|
7
7
|
}
|
|
8
8
|
}
|
package/dist/ui/CodeEditor.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ import 'prismjs/components/prism-cpp';
|
|
|
20
20
|
import 'prismjs/components/prism-matlab';
|
|
21
21
|
import 'prismjs/components/prism-scala';
|
|
22
22
|
import 'prism-material-themes/themes/material-default.css';
|
|
23
|
-
import { RenderYooptaElementProps,
|
|
23
|
+
import { RenderYooptaElementProps, YooEditor } from '@yoopta/editor';
|
|
24
24
|
import { CodeElement } from '../types';
|
|
25
25
|
declare const CodeEditor: {
|
|
26
|
-
(editor:
|
|
26
|
+
(editor: YooEditor): ({ element, attributes, children, HTMLAttributes }: RenderYooptaElementProps<CodeElement>) => JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
export { CodeEditor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YooEditor } from '@yoopta/editor';
|
|
2
2
|
import { Node, NodeEntry } from 'slate';
|
|
3
3
|
export declare const mergeMaps: <K, V>(...maps: Map<K, V>[]) => Map<K, V>;
|
|
4
4
|
export declare const getChildNodeToDecorations: ([block, blockPath]: NodeEntry<any>) => Map<import("..").CodeElement | import("..").CodeChildElement, import("slate").BaseRange[]>;
|
|
5
|
-
export declare const codeLineDecorator: (editor:
|
|
5
|
+
export declare const codeLineDecorator: (editor: YooEditor) => ([node, path]: NodeEntry<Node>) => import("slate").BaseRange[];
|