@udecode/plate-heading
Advanced tools
Comparing version 33.0.1 to 33.0.3
@@ -21,5 +21,6 @@ import * as _udecode_plate_common_server from '@udecode/plate-common/server'; | ||
declare const KEY_HEADING = "heading"; | ||
/** Enables support for headings with configurable levels (from 1 to 6). */ | ||
declare const createHeadingPlugin: <OP = HeadingsPlugin, OV extends _udecode_slate.Value = _udecode_slate.Value, OE extends _udecode_plate_common_server.PlateEditor<OV> = _udecode_plate_common_server.PlateEditor<OV>>(override?: Partial<PlatePlugin<_udecode_plate_common_server.NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: _udecode_plate_common_server.OverrideByKey<OV, OE> | undefined) => PlatePlugin<_udecode_plate_common_server.NoInfer<OP>, OV, OE>; | ||
export { ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, type HeadingLevel, type HeadingPlugin, type HeadingsPlugin, KEYS_HEADING, createHeadingPlugin }; | ||
export { ELEMENT_H1, ELEMENT_H2, ELEMENT_H3, ELEMENT_H4, ELEMENT_H5, ELEMENT_H6, type HeadingLevel, type HeadingPlugin, type HeadingsPlugin, KEYS_HEADING, KEY_HEADING, createHeadingPlugin }; |
@@ -30,2 +30,3 @@ "use strict"; | ||
KEYS_HEADING: () => KEYS_HEADING, | ||
KEY_HEADING: () => KEY_HEADING, | ||
createHeadingPlugin: () => createHeadingPlugin | ||
@@ -53,4 +54,5 @@ }); | ||
var import_server = require("@udecode/plate-common/server"); | ||
var KEY_HEADING = "heading"; | ||
var createHeadingPlugin = (0, import_server.createPluginFactory)({ | ||
key: "heading", | ||
key: KEY_HEADING, | ||
options: { | ||
@@ -98,4 +100,5 @@ levels: [1, 2, 3, 4, 5, 6] | ||
KEYS_HEADING, | ||
KEY_HEADING, | ||
createHeadingPlugin | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@udecode/plate-heading", | ||
"version": "33.0.1", | ||
"version": "33.0.3", | ||
"description": "Headings plugin for Plate", | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@udecode/plate-common": ">=33.0.0", | ||
"@udecode/plate-common": ">=33.0.3", | ||
"react": ">=16.8.0", | ||
@@ -48,0 +48,0 @@ "react-dom": ">=16.8.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14625
186