From 1ff6e6909353a2e8088dcc8c2bacad15381652a4 Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Mon, 11 Apr 2022 16:10:12 +0300 Subject: [PATCH] Export `createText` from `slate-hyperscript` (#4932) * Update index.ts * Fix code style * Add changeset --- .changeset/chilly-boats-deny.md | 5 +++++ packages/slate-hyperscript/src/index.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/chilly-boats-deny.md diff --git a/.changeset/chilly-boats-deny.md b/.changeset/chilly-boats-deny.md new file mode 100644 index 000000000..0550615b0 --- /dev/null +++ b/.changeset/chilly-boats-deny.md @@ -0,0 +1,5 @@ +--- +'slate-hyperscript': patch +--- + +Export `createText` creator from `slate-hyperscript` package diff --git a/packages/slate-hyperscript/src/index.ts b/packages/slate-hyperscript/src/index.ts index 750bff584..a7308fc3f 100644 --- a/packages/slate-hyperscript/src/index.ts +++ b/packages/slate-hyperscript/src/index.ts @@ -3,7 +3,7 @@ import { HyperscriptCreators, HyperscriptShorthands, } from './hyperscript' -import { createEditor } from './creators' +import { createEditor, createText } from './creators' /** * The default hyperscript factory that ships with Slate, without custom tags. @@ -15,6 +15,7 @@ export { jsx, createHyperscript, createEditor, + createText, HyperscriptCreators, HyperscriptShorthands, }