@yoopta/code
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
import { YoEditor } from '@yoopta/editor'; | ||
import { CodeChildElement, CodeElement, CodeOptions } from './types'; | ||
import { YoEditor, YooptaPluginBaseOptions } from '@yoopta/editor'; | ||
import { CodeChildElement, CodeElement } from './types'; | ||
declare module 'slate' { | ||
@@ -10,3 +10,3 @@ interface CustomTypes { | ||
declare const CodeLine: import("@yoopta/editor").YooptaPlugin<any, CodeChildElement>; | ||
declare const Code: import("@yoopta/editor").YooptaPlugin<CodeOptions, CodeElement>; | ||
declare const Code: import("@yoopta/editor").YooptaPlugin<YooptaPluginBaseOptions, CodeElement>; | ||
export { Code, CodeLine, CodeElement, CodeChildElement }; |
import { Modify, YooptaBaseElement } from '@yoopta/editor'; | ||
export type CodeOptions = { | ||
export type CodeElementData = { | ||
language: string; | ||
@@ -7,3 +7,3 @@ filename?: string; | ||
export type CodeElement = Modify<YooptaBaseElement<'code'>, { | ||
data: CodeOptions; | ||
data: CodeElementData; | ||
children: CodeChildElement[]; | ||
@@ -10,0 +10,0 @@ }>; |
{ | ||
"name": "@yoopta/code", | ||
"version": "1.9.5-rc", | ||
"version": "1.9.6-rc", | ||
"description": "> TODO: description", | ||
@@ -5,0 +5,0 @@ "author": "Darginec05 <devopsbanda@gmail.com>", |
Sorry, the diff of this file is too big to display
95919
0.1%