- Updated dependencies [
a6bf8c5e]:- @udecode/plate-common@5.3.5
- Updated dependencies [
8aec270f]:- @udecode/plate-core@5.3.1
- @udecode/plate-common@5.3.1
- Updated dependencies [
7ee21356]:- @udecode/plate-core@5.3.0
- @udecode/plate-common@5.3.0
- Updated dependencies [
503956fd]:- @udecode/plate-common@5.1.0
- Updated dependencies [
b22c06aa]:- @udecode/plate-common@4.4.0
- Updated dependencies [
58f6fb53]:- @udecode/plate-core@4.3.7
- @udecode/plate-common@4.3.7
- Updated dependencies [
6af469cd]:- @udecode/plate-core@4.3.0
- @udecode/plate-common@4.3.0
- #1053
cc14dfd4Thanks @bensquire! - Passes the most recent keystroke into auto-format rule "query"
- Updated dependencies [
58387c6d]:- @udecode/plate-common@3.2.0
- @udecode/plate-core@3.2.0
- Updated dependencies [
f6c58134]:- @udecode/plate-common@3.1.3
- #939
e6ea7ac2Thanks @zbeyens! - breaking changes:autoformatBlock:- signatude changed from
(editor: TEditor, type: string, at: Location, options: Pick<AutoformatRule, 'preFormat' | 'format'>)to(editor: TEditor, options: AutoformatBlockOptions) - moved the checks from
withAutoformat
- signatude changed from
autoformatInline:- renamed to
autoformatMark - signatured changed from
(editor: TEditor, options: Pick<AutoformatRule, 'type' | 'between' | 'markup' | 'ignoreTrim'>)toAutoformatMarkOptions
- renamed to
AutoformatRuleis nowAutoformatBlockRule | AutoformatMarkRule | AutoformatTextRule;mode: 'inline'renamed tomode: 'mark'markupandbetweenhave been replaced bymatch: string | string[] | MatchRange | MatchRange[]: The rule applies when the trigger and the text just before the cursor matches. Formode: 'block': lookup for the end match(es) before the cursor. Formode: 'text': lookup for the end match(es) before the cursor. Ifformatis an array, also lookup for the start match(es). Formode: 'mark': lookup for the start and end matches. Note:'_*',['_*']and{ start: '_*', end: '*_' }are equivalent.triggernow defaults to the last character ofmatchormatch.end(previously' ')
- the plugin now checks that there is no character before the start match to apply autoformatting. For example, nothing will happen by typing
a*text*.
- #939
2eb3bb7aThanks @zbeyens! - features:- new rules:
autoformatArrow,autoformatLegal,autoformatLegalHtml,autoformatPunctuation,autoformatComparison,autoformatEquality,autoformatFraction,autoformatMath,autoformatDivision,autoformatOperation,autoformatSubscriptNumbers,autoformatSubscriptSymbols,autoformatSuperscriptNumbers,autoformatSuperscriptSymbols
- types:
AutoformatMarkOptions: options forautoformatMarkAutoformatTextOptions: options forautoformatTextAutoformatBlockOptions: options forautoformatBlockAutoformatCommonRule: rule properties for all modesMatchRangeGetMatchPointsReturnType
mode: 'block',autoformatBlock:mode: 'mark':typenow acceptsstring[]to add multiple marks- new
mode: 'text'that can be used to replacematchby any text using theformatoptionmatch: string | string[]format: string | string[] | ((editor: TEditor, options: GetMatchPointsReturnType) => void)–string: the matched text is replaced by that string –string[]: the matched texts are replaced by these strings (e.g. smart quotes) –function: called when there is a match.
getMatchPoints: used byautoformatMarkandautoformatTextto get the matching pointsgetMatchRange: mapsmatchandtriggeroption to start to match, end to match and triggers.isPreviousCharacterEmpty
- new rules:
- Updated dependencies [
ec4d5b7b]:- @udecode/plate-common@2.0.0
-
#918
7d045d8dThanks @zbeyens! - addslate-historyas a peerDep -
Updated dependencies [
7d045d8d]:- @udecode/plate-common@1.1.6
🎉 The Slate Plugins project has evolved to Plate 🎉
To migrate, install @udecode/plate[-x] then find and replace all
occurrences of:
slate-pluginstoplateSlatePluginstoPlateSlatePlugintoPlatePlugin
This is the last version of
@udecode/slate-plugins[-x], please install@udecode/plate[-x].
- Updated dependencies [
7c26cf32]:- @udecode/slate-plugins-core@1.0.0-next.61
- @udecode/slate-plugins-common@1.0.0-next.61
- Updated dependencies [
3a3eb1b8]:- @udecode/slate-plugins-common@1.0.0-next.59
- Updated dependencies [
75b39f18]:- @udecode/slate-plugins-core@1.0.0-next.56
- @udecode/slate-plugins-common@1.0.0-next.56
- Updated dependencies [
abaf4a11]:- @udecode/slate-plugins-core@1.0.0-next.55
- @udecode/slate-plugins-common@1.0.0-next.55
- Updated dependencies [
d906095d]:- @udecode/slate-plugins-common@1.0.0-next.54
- Updated dependencies [
42360b44]:- @udecode/slate-plugins-core@1.0.0-next.53
- @udecode/slate-plugins-common@1.0.0-next.53
- Updated dependencies [
6e9068f6]:- @udecode/slate-plugins-common@1.0.0-next.46
- Updated dependencies [
15048e6f]:- @udecode/slate-plugins-core@1.0.0-next.40
- @udecode/slate-plugins-common@1.0.0-next.40
- Updated dependencies [
b444071e]:- @udecode/slate-plugins-core@1.0.0-next.39
- @udecode/slate-plugins-common@1.0.0-next.39
- Updated dependencies [
2cf618c3]:- @udecode/slate-plugins-common@1.0.0-next.37
- Updated dependencies [
7cbd7bd9,806e1632]:- @udecode/slate-plugins-common@1.0.0-next.36
- @udecode/slate-plugins-core@1.0.0-next.36
- Updated dependencies [
33605a49,28f30c8a,75e6d25d]:- @udecode/slate-plugins-core@1.0.0-next.30
- @udecode/slate-plugins-common@1.0.0-next.30
- Updated dependencies [
dfbde8bd,dfbde8bd]:- @udecode/slate-plugins-core@1.0.0-next.29
- @udecode/slate-plugins-common@1.0.0-next.29
- Updated dependencies [
201a7993]:- @udecode/slate-plugins-core@1.0.0-next.26
- @udecode/slate-plugins-common@1.0.0-next.26