Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump version 1.4.0 #484

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## 1.4.0
* feat: adjust the loading large document optimization in mobile platform by @LucasXu0 in ([#474](https://github.com/AppFlowy-IO/appflowy-editor/pull/474))
* feat: simplify auto scroll behavior in ScrollServiceWidget by @LucasXu0 in ([#437](https://github.com/AppFlowy-IO/appflowy-editor/pull/437))
* feat: implement delta diff and provide external values by @LucasXu0 in ([#444](https://github.com/AppFlowy-IO/appflowy-editor/pull/444))
* feat: add more showcases on the mobile platform by @LucasXu0 in ([#479](https://github.com/AppFlowy-IO/appflowy-editor/pull/479))
* feat: add more showcases on desktop/mobile platform by @LucasXu0 in ([#481](https://github.com/AppFlowy-IO/appflowy-editor/pull/481))
* feat: support customizing the record time by @LucasXu0 in ([#461](https://github.com/AppFlowy-IO/appflowy-editor/pull/461))
* feat: bulk open links shortcut by @Tony-MK in ([#419](https://github.com/AppFlowy-IO/appflowy-editor/pull/419))
* feat: optimize the performance by @LucasXu0 in ([#442](https://github.com/AppFlowy-IO/appflowy-editor/pull/62))
* fix: request focus in find replace menu by @Xazin in ([#440](https://github.com/AppFlowy-IO/appflowy-editor/pull/440))
* fix: remove unused check in non_delta_input_service by @LucasXu0 in ([#447](https://github.com/AppFlowy-IO/appflowy-editor/pull/447))
* fix: unable to paste html contains section by @LucasXu0 in ([#448](https://github.com/AppFlowy-IO/appflowy-editor/pull/448))
* fix: sometimes failed to paste content from google translation by @LucasXu0 in ([#451](https://github.com/AppFlowy-IO/appflowy-editor/pull/451))
* fix: duration cannot be zero in animate by @Xazin in ([#452](https://github.com/AppFlowy-IO/appflowy-editor/pull/452))
* fix: image upload on web by @garv-shah in ([#453](https://github.com/AppFlowy-IO/appflowy-editor/pull/453))
* fix block selection area by @LucasXu0 in ([#462](https://github.com/AppFlowy-IO/appflowy-editor/pull/462))
* fix: resolve `RangeError` when last row deleted. by @sun-jiao in ([#470](https://github.com/AppFlowy-IO/appflowy-editor/pull/470))
* fix: resolve layout problem of `FindMenuWidget` by @sun-jiao in ([#467](https://github.com/AppFlowy-IO/appflowy-editor/pull/467))
* fix: show reset color button even if one of the selected text was formatted by @LucasXu0 in ([#476](https://github.com/AppFlowy-IO/appflowy-editor/pull/476))
* fix: selection area doesn't show if in the long selection by @LucasXu0 in ([#477](https://github.com/AppFlowy-IO/appflowy-editor/pull/477))
* fix: DT_TOOLCHAIN_DIR path in Podfile for iOS and macOS by @LucasXu0 in ([#483](https://github.com/AppFlowy-IO/appflowy-editor/pull/483))
* fix: respect default and last direction on new line and indent by @zoli in ([#482](https://github.com/AppFlowy-IO/appflowy-editor/pull/482))
* fix: link menu overflow in right by @sun-jiao in ([#478](https://github.com/AppFlowy-IO/appflowy-editor/pull/478))
* fix: resolve "Bad state: no element" when in-table paragraph deleted by @sun-jiao in ([#471](https://github.com/AppFlowy-IO/appflowy-editor/pull/471))
* chore: add jumpTo to editor scroll service by @Xazin in ([#466](https://github.com/AppFlowy-IO/appflowy-editor/pull/466))
* chore: update l10n by @sun-jiao in ([#463](https://github.com/AppFlowy-IO/appflowy-editor/pull/463))
* chore: refactor attribute comparison in Delta class diff loop by @LucasXu0 in ([#456](https://github.com/AppFlowy-IO/appflowy-editor/pull/456))
* chore: update Chinese l10n by @sun-jiao in ([#445](https://github.com/AppFlowy-IO/appflowy-editor/pull/445))
* chore: migrate tests by @MayurSMahajan in ([#438](https://github.com/AppFlowy-IO/appflowy-editor/pull/438))
* chore: refactor color conversion method to handle RGB and hex formatsRefactor method to handle RGB and hex formats, improving color conversion by @LucasXu0 in ([#450](https://github.com/AppFlowy-IO/appflowy-editor/pull/450))

## 1.3.0
* feat: support table plugin by @zoli in ([#62](https://github.com/AppFlowy-IO/appflowy-editor/pull/62))
* feat: support alignment for block component by @LucasXu0 in ([#425](https://github.com/AppFlowy-IO/appflowy-editor/pull/425))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and the Flutter guide for
</p>

<div align="center">
<img src="https://github.com/AppFlowy-IO/appflowy-editor/blob/main/documentation/images/appflowy_editor_example.mp4?raw=true" width = "700" style = "padding: 100"/>
<img src="https://github.com/AppFlowy-IO/appflowy-editor/blob/main/documentation/images/showcase.png?raw=true" width = "700" style = "padding: 100">
</div>

## Key Features
Expand Down
4 changes: 1 addition & 3 deletions assets/images/toolbar/center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion assets/images/toolbar/highlight_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions assets/images/toolbar/left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions assets/images/toolbar/right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion assets/images/toolbar/text_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/toolbar/text_direction_auto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/toolbar/text_direction_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/toolbar/text_direction_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/images/showcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 2 additions & 10 deletions lib/src/editor/toolbar/desktop/items/alignment_toolbar_items.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';

final List<ToolbarItem> alignmentItems = [
_AlignmentToolbarItem(
id: 'align_left',
name: 'left',
tooltip: 'left',
icon: Icons.format_align_left,
align: 'left',
),
_AlignmentToolbarItem(
id: 'align_center',
name: 'center',
tooltip: 'center',
icon: Icons.format_align_center,
align: 'center',
),
_AlignmentToolbarItem(
id: 'align_right',
name: 'right',
tooltip: 'right',
icon: Icons.format_align_right,
align: 'right',
),
];
Expand All @@ -30,7 +26,6 @@ class _AlignmentToolbarItem extends ToolbarItem {
required String id,
required String name,
required String tooltip,
required IconData icon,
required String align,
}) : super(
id: 'editor.$id',
Expand All @@ -42,12 +37,9 @@ class _AlignmentToolbarItem extends ToolbarItem {
final isHighlight = nodes.every(
(n) => n.attributes[blockComponentAlign] == align,
);

return SVGIconItemWidget(
iconBuilder: (_) => Icon(
icon,
size: 16,
color: isHighlight ? highlightColor : Colors.white,
),
iconName: 'toolbar/$name',
isHighlight: isHighlight,
highlightColor: highlightColor,
tooltip: tooltip,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';

ToolbarItem buildHighlightColorItem({List<ColorOption>? colorOptions}) {
return ToolbarItem(
Expand All @@ -19,7 +18,6 @@ ToolbarItem buildHighlightColorItem({List<ColorOption>? colorOptions}) {
});
return SVGIconItemWidget(
iconName: 'toolbar/highlight_color',
iconSize: const Size.square(14),
isHighlight: isHighlight,
highlightColor: highlightColor,
tooltip: AppFlowyEditorLocalizations.current.highlightColor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';

ToolbarItem buildTextColorItem({
List<ColorOption>? colorOptions,
Expand All @@ -22,7 +21,6 @@ ToolbarItem buildTextColorItem({
iconName: 'toolbar/text_color',
isHighlight: isHighlight,
highlightColor: highlightColor,
iconSize: const Size.square(14),
tooltip: AppFlowyEditorLocalizations.current.textColor,
onPressed: () {
bool showClearButton = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';

final List<ToolbarItem> textDirectionItems = [
_TextDirectionToolbarItem(
id: 'text_direction_auto',
name: blockComponentTextDirectionAuto,
tooltip: AppFlowyEditorLocalizations.current.auto,
icon: Icons.swap_horiz,
iconName: 'text_direction_auto',
),
_TextDirectionToolbarItem(
id: 'text_direction_ltr',
name: blockComponentTextDirectionLTR,
tooltip: AppFlowyEditorLocalizations.current.ltr,
icon: Icons.format_textdirection_l_to_r,
iconName: 'text_direction_left',
),
_TextDirectionToolbarItem(
id: 'text_direction_rtl',
name: blockComponentTextDirectionRTL,
tooltip: AppFlowyEditorLocalizations.current.rtl,
icon: Icons.format_textdirection_r_to_l,
iconName: 'text_direction_right',
),
];

Expand All @@ -27,7 +26,7 @@ class _TextDirectionToolbarItem extends ToolbarItem {
required String id,
required String name,
required String tooltip,
required IconData icon,
required String iconName,
}) : super(
id: 'editor.$id',
group: 7,
Expand All @@ -39,11 +38,7 @@ class _TextDirectionToolbarItem extends ToolbarItem {
(n) => n.attributes[blockComponentTextDirection] == name,
);
return SVGIconItemWidget(
iconBuilder: (_) => Icon(
icon,
size: 16,
color: isHighlight ? highlightColor : Colors.white,
),
iconName: 'toolbar/$iconName',
isHighlight: isHighlight,
highlightColor: highlightColor,
tooltip: tooltip,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.3.0
version: 1.4.0
homepage: https://github.com/AppFlowy-IO/appflowy-editor

platforms:
Expand Down