From d5462baa485cd05da764bed78e9e569f0d8da794 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Wed, 12 Jul 2023 13:02:26 +0700 Subject: [PATCH] chore: bump version 1.2.0 (#305) --- CHANGELOG.md | 14 ++++++++++++++ documentation/{migration.md => UPGRADING.md} | 4 ++-- lib/l10n/intl_en.arb | 5 ++++- lib/src/l10n/intl/messages_en.dart | 3 +++ lib/src/l10n/l10n.dart | 16 ++++++++-------- pubspec.yaml | 2 +- 6 files changed, 32 insertions(+), 12 deletions(-) rename documentation/{migration.md => UPGRADING.md} (92%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40c9dc347..2da3c190b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## 1.2.0 + +_If you are upgrading: please see [`UPGRADING.md`](https://github.com/AppFlowy-IO/appflowy-editor/blob/main/documentation/migration.md)._ + +* feat: added support for RTL and AUTO direction by @zoli in ([#191](https://github.com/AppFlowy-IO/appflowy-editor/pull/191)) +* feat: added support for customizing href behavior by @LucasXu0 in ([#293](https://github.com/AppFlowy-IO/appflowy-editor/pull/293)) +* feat: added support for delete key shortcut by @MayurSMahajan in ([#272](https://github.com/AppFlowy-IO/appflowy-editor/pull/272)) +* feat: added support customize the font family by @LucasXu0 in ([#300](https://github.com/AppFlowy-IO/appflowy-editor/pull/300)) +* fix: slash menu keyword not shows up the option by @johansutrisno in ([#268](https://github.com/AppFlowy-IO/appflowy-editor/pull/268)) +* fix: unable to access the slash menu on web platform by @LucasXu0 in ([#303](https://github.com/AppFlowy-IO/appflowy-editor/pull/303)) +* chore: change windows and linux command for redo by @MayurSMahajan in ([#294](https://github.com/AppFlowy-IO/appflowy-editor/pull/294)) +* chore: optimize the textSpan decorator by @LucasXu0 in ([#290](https://github.com/AppFlowy-IO/appflowy-editor/pull/290)) +* chore: remove the reference of the deprecated values by @LucasXu0 in ([#304](https://github.com/AppFlowy-IO/appflowy-editor/pull/304)) + ## 1.1.0 * feat: support IME by @LucasXu0 in ([#253](https://github.com/AppFlowy-IO/appflowy-editor/pull/253)) * feat: support text and background color in mobile toolbar by @hyj1204 in ([#233](https://github.com/AppFlowy-IO/appflowy-editor/pull/233)) diff --git a/documentation/migration.md b/documentation/UPGRADING.md similarity index 92% rename from documentation/migration.md rename to documentation/UPGRADING.md index f12f2aafa..c513e523e 100644 --- a/documentation/migration.md +++ b/documentation/UPGRADING.md @@ -1,6 +1,6 @@ -# Migration Guide +# UPGRADING -## From 1.1.0 to 1.2.0 +## From 1.1 to 1.2 - `AppFlowyEditor.custom` and `AppFlowyEditor.standard` have been removed. Use `AppFlowyEditor.` instead. - For now, we provide the default values to the `blockComponentBuilders`, `characterShortcutEvents`, and `commandShortcutEvents` if you do not customize them. diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 4b25a83df..d3b2c015a 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -108,5 +108,8 @@ "customColor": "Custom color", "hexValue": "Hex value", "opacity": "Opacity", - "resetToDefaultColor": "Reset to default color" + "resetToDefaultColor": "Reset to default color", + "ltr": "LTR", + "rtl": "RTL", + "auto": "Auto" } diff --git a/lib/src/l10n/intl/messages_en.dart b/lib/src/l10n/intl/messages_en.dart index f536dae62..b89b58d39 100644 --- a/lib/src/l10n/intl/messages_en.dart +++ b/lib/src/l10n/intl/messages_en.dart @@ -23,6 +23,7 @@ class MessageLookup extends MessageLookupByLibrary { final messages = _notInlinedMessages(_notInlinedMessages); static Map _notInlinedMessages(_) => { "addYourLink": MessageLookupByLibrary.simpleMessage("Add your link"), + "auto": MessageLookupByLibrary.simpleMessage("Auto"), "backgroundColor": MessageLookupByLibrary.simpleMessage("Background Color"), "backgroundColorBlue": @@ -84,6 +85,7 @@ class MessageLookup extends MessageLookupByLibrary { "lightLightTint8": MessageLookupByLibrary.simpleMessage("Aqua"), "lightLightTint9": MessageLookupByLibrary.simpleMessage("Blue"), "link": MessageLookupByLibrary.simpleMessage("Link"), + "ltr": MessageLookupByLibrary.simpleMessage("LTR"), "mobileHeading1": MessageLookupByLibrary.simpleMessage("Heading 1"), "mobileHeading2": MessageLookupByLibrary.simpleMessage("Heading 2"), "mobileHeading3": MessageLookupByLibrary.simpleMessage("Heading 3"), @@ -94,6 +96,7 @@ class MessageLookup extends MessageLookupByLibrary { "removeLink": MessageLookupByLibrary.simpleMessage("Remove link"), "resetToDefaultColor": MessageLookupByLibrary.simpleMessage("Reset to default color"), + "rtl": MessageLookupByLibrary.simpleMessage("RTL"), "strikethrough": MessageLookupByLibrary.simpleMessage("Strikethrough"), "text": MessageLookupByLibrary.simpleMessage("Text"), "textColor": MessageLookupByLibrary.simpleMessage("Text Color"), diff --git a/lib/src/l10n/l10n.dart b/lib/src/l10n/l10n.dart index 65c176065..9a0187a53 100644 --- a/lib/src/l10n/l10n.dart +++ b/lib/src/l10n/l10n.dart @@ -771,21 +771,21 @@ class AppFlowyEditorLocalizations { ); } - /// `RTL` - String get rtl { + /// `LTR` + String get ltr { return Intl.message( - 'RTL', - name: 'rtl', + 'LTR', + name: 'ltr', desc: '', args: [], ); } - /// `LTR` - String get ltr { + /// `RTL` + String get rtl { return Intl.message( - 'LTR', - name: 'ltr', + 'RTL', + name: 'rtl', desc: '', args: [], ); diff --git a/pubspec.yaml b/pubspec.yaml index 5f6bd9c47..97e3dc072 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: appflowy_editor description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond. -version: 1.1.0 +version: 1.2.0 homepage: https://github.com/AppFlowy-IO/appflowy-editor platforms: