Skip to content

Commit

Permalink
Revert "docs"
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens authored May 8, 2021
1 parent 38b65a6 commit dfbde8b
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 105 deletions.
8 changes: 0 additions & 8 deletions .changeset/core-major-1.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/core-major-2.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/core-major-3.md

This file was deleted.

25 changes: 25 additions & 0 deletions .changeset/core-major-eight-poems-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---

"@udecode/slate-plugins-core": major
------------------------------------

- renamed:
- `useTSlate` to `useEditorState`
- `useTSlateStatic` to `useEditorRef`
- `useStoreEditor` to `useStoreEditorRef`
- removed:
- `useEditorId` in favor of `useEditorRef().id`
- `useEditorOptions` in favor of `useEditorRef().options`
- `useSlatePluginOptions` in favor of
`getSlatePluginOptions(useEditorRef(), pluginKey)`
- `useSlatePluginType` in favor of
`getSlatePluginType(useEditorRef(), pluginKey)`
- `pipeOnDOMBeforeInput` in favor of `pipeHandler`
- `pipeOnKeyDown` in favor of `pipeHandler`
- types:
- renamed:
- `SlatePluginsState` to `SlatePluginsStates`
- `State` to `SlatePluginsState`
- removed:
- `OnDOMBeforeInput` in favor of
- `OnKeyDown` in favor of `KeyboardHandler`
6 changes: 0 additions & 6 deletions .changeset/core-minor-1.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/core-minor-10.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/core-minor-11.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/core-minor-2.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/core-minor-3.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/core-minor-4.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/core-minor-5.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/core-minor-6.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/core-minor-7.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/core-minor-8.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/core-minor-9.md

This file was deleted.

32 changes: 32 additions & 0 deletions .changeset/core-minor-eight-poems-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
"@udecode/slate-plugins-core": minor
---

- `useEditableProps` (used by `SlatePlugins`):
- new fields returned: all handler props from the plugins (if defined)
- new core plugins with the following fields:
- `onFocus: setEventEditorId('focus', id)`
- `onBlur: setEventEditorId('blur', id)`
- You can add your own handlers in a plugin
- `EditorStateEffect`: a new component used by `SlatePlugins` to update
the editor state.
- `setEventEditorId`: a new action. Set an editor id by event key.
- `eventEditorStore`, `useEventEditorStore`: a new store. Store where
the keys are event names and the values are editor ids.
- `useEventEditorId`: a new selector. Get the editor id by `event`
key.
- `useStoreEditorSelection`: a new selector. Get the editor selection
which is updated on editor change.
- `useStoreEditorState`: a new selector. Get editor state which is
updated on editor change. Similar to `useSlate`.
- `SlatePlugin`: the previous plugin could implement the following
handlers: `onChange`, `onDOMBeforeInput` and `onKeyDown`. The plugins
now implement all DOM handlers: clipboard, composition, focus, form,
image, keyboard, media, mouse, selection, touch, pointer, ui, wheel
animation and transition events.
- `SlatePluginsState` (store interface):
- a new field `keyChange` incremented by
`SlatePlugins` on `useSlate` update.
- a new field `selection = editor.selection` updated on `useSlate`
update.
- `pipeHandler`: a new function. Generic pipe for handlers.

0 comments on commit dfbde8b

Please sign in to comment.