github udecode/plate @udecode/plate-suggestion@37.0.0

latest releases: @udecode/plate-trailing-block@40.0.0, @udecode/plate-yjs@40.0.0, @udecode/plate-toggle@40.0.0...
2 months ago

Major Changes

  • #3420 by @zbeyens
    • createSuggestionPlugin -> SuggestionPlugin
    • Move suggestionStore to SuggestionPlugin
    • Remove SuggestionProvider and its hooks
    • Remove useSuggestionStates (replaced by direct option access)
    • Remove useSuggestionSelectors (replaced by option selectors)
    • Remove useSuggestionActions (replaced by api methods)
    • Replace useUpdateSuggestion with api.suggestion.updateSuggestion
    • Replace useAddSuggestion with api.suggestion.addSuggestion
    • Replace useRemoveSuggestion with api.suggestion.removeSuggestion
    • Replace useSuggestionById with options.suggestionById
    • Replace useSuggestionUserById with options.suggestionUserById
    • Replace useCurrentSuggestionUser with options.currentSuggestionUser
    • Remove editor.activeSuggestionId, use plugin option
    • Remove useSetIsSuggesting, use editor.setOption
    • Remove useSetActiveSuggestionId, use editor.setOption
    • Remove editor.isSuggesting, use plugin option
    • Remove SuggestionEditorProps type

Don't miss a new plate release

NewReleases is sending notifications on new releases.