Skip to content

Latest commit

 

History

History
305 lines (190 loc) · 10.8 KB

CHANGELOG.md

File metadata and controls

305 lines (190 loc) · 10.8 KB

@udecode/plate-autoformat

10.1.2

10.1.1

10.1.0

10.0.0

9.3.1

9.3.0

9.2.1

9.2.0

9.0.0

8.3.0

8.1.0

8.0.0

7.0.2

7.0.1

7.0.0

6.4.1

6.4.0

6.3.0

6.2.0

6.1.0

6.0.0

5.3.5

Patch Changes

5.3.1

Patch Changes

5.3.0

Patch Changes

5.1.0

Patch Changes

4.4.0

Patch Changes

4.3.7

Patch Changes

4.3.0

Patch Changes

4.0.0

Patch Changes

3.4.0

Patch Changes

3.2.0

Minor Changes

Patch Changes

3.1.3

Patch Changes

2.0.0

Major Changes

  • #939 e6ea7ac2 Thanks @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
    • autoformatInline:
      • renamed to autoformatMark
      • signatured changed from (editor: TEditor, options: Pick<AutoformatRule, 'type' | 'between' | 'markup' | 'ignoreTrim'>) to AutoformatMarkOptions
    • AutoformatRule is now AutoformatBlockRule | AutoformatMarkRule | AutoformatTextRule;
      • mode: 'inline' renamed to mode: 'mark'
      • markup and between have been replaced by match: string | string[] | MatchRange | MatchRange[]: The rule applies when the trigger and the text just before the cursor matches. For mode: 'block': lookup for the end match(es) before the cursor. For mode: 'text': lookup for the end match(es) before the cursor. If format is an array, also lookup for the start match(es). For mode: 'mark': lookup for the start and end matches. Note: '_*', ['_*'] and { start: '_*', end: '*_' } are equivalent.
      • trigger now defaults to the last character of match or match.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*.

Minor Changes

  • #939 2eb3bb7a Thanks @zbeyens! - features:
    • new rules:
      • autoformatArrow, autoformatLegal, autoformatLegalHtml, autoformatPunctuation, autoformatComparison, autoformatEquality, autoformatFraction, autoformatMath, autoformatDivision, autoformatOperation, autoformatSubscriptNumbers, autoformatSubscriptSymbols, autoformatSuperscriptNumbers, autoformatSuperscriptSymbols
    • types:
      • AutoformatMarkOptions: options for autoformatMark
      • AutoformatTextOptions: options for autoformatText
      • AutoformatBlockOptions: options for autoformatBlock
      • AutoformatCommonRule: rule properties for all modes
      • MatchRange
      • GetMatchPointsReturnType
    • mode: 'block', autoformatBlock:
    • mode: 'mark': type now accepts string[] to add multiple marks
    • new mode: 'text' that can be used to replace match by any text using the format option
      • match: 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 by autoformatMark and autoformatText to get the matching points
    • getMatchRange: maps match and trigger option to start to match, end to match and triggers.
    • isPreviousCharacterEmpty

Patch Changes

1.1.6

Patch Changes

1.0.0

Major Changes

🎉 The Slate Plugins project has evolved to Plate 🎉

To migrate, install @udecode/plate[-x] then find and replace all occurrences of:

  • slate-plugins to plate
  • SlatePlugins to Plate
  • SlatePlugin to PlatePlugin

1.0.0-next.61

This is the last version of @udecode/slate-plugins[-x], please install @udecode/plate[-x].

Patch Changes

1.0.0-next.59

Patch Changes

1.0.0-next.56

Patch Changes

1.0.0-next.55

Patch Changes

1.0.0-next.54

Patch Changes

1.0.0-next.53

Patch Changes

1.0.0-next.46

Patch Changes

1.0.0-next.40

Patch Changes

1.0.0-next.39

Patch Changes

1.0.0-next.37

Patch Changes

1.0.0-next.36

Patch Changes

1.0.0-next.30

Patch Changes

1.0.0-next.29

Patch Changes

1.0.0-next.26

Patch Changes