From 423af0e3ca79c67ac737453c2d705bbd1cb8faa2 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Fri, 1 Nov 2024 13:51:15 +0800 Subject: [PATCH 1/2] chore: bump version 0.7.3 --- frontend/Makefile.toml | 2 +- .../openai/widgets/smart_edit_node_widget.dart | 5 +++++ frontend/appflowy_flutter/pubspec.lock | 4 ++-- frontend/appflowy_flutter/pubspec.yaml | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml index e99dbd6e3485..d2d915f5b9ff 100644 --- a/frontend/Makefile.toml +++ b/frontend/Makefile.toml @@ -26,7 +26,7 @@ CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true CARGO_MAKE_CRATE_FS_NAME = "dart_ffi" CARGO_MAKE_CRATE_NAME = "dart-ffi" LIB_NAME = "dart_ffi" -APPFLOWY_VERSION = "0.7.2" +APPFLOWY_VERSION = "0.7.3" FLUTTER_DESKTOP_FEATURES = "dart" PRODUCT_NAME = "AppFlowy" MACOSX_DEPLOYMENT_TARGET = "11.0" diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart index f6d0f53170b8..9f7d3a51993b 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart @@ -13,6 +13,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:universal_platform/universal_platform.dart'; class SmartEditBlockKeys { const SmartEditBlockKeys._(); @@ -120,6 +121,10 @@ class _SmartEditBlockComponentWidgetState @override Widget build(BuildContext context) { + if (UniversalPlatform.isMobile) { + return const SizedBox.shrink(); + } + final width = _getEditorWidth(); return BlocProvider.value( diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock index 76bc1ce7b859..6011fbc02e60 100644 --- a/frontend/appflowy_flutter/pubspec.lock +++ b/frontend/appflowy_flutter/pubspec.lock @@ -61,8 +61,8 @@ packages: dependency: "direct main" description: path: "." - ref: "4081fb7" - resolved-ref: "4081fb756311c6d249f45efbeb59e4cd2a7db530" + ref: eccb244 + resolved-ref: eccb24452a451c734bc2aeae56c1fd81398d849c url: "https://github.com/AppFlowy-IO/appflowy-editor.git" source: git version: "4.0.0" diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml index b8536bbccc37..2d1a91933349 100644 --- a/frontend/appflowy_flutter/pubspec.yaml +++ b/frontend/appflowy_flutter/pubspec.yaml @@ -4,7 +4,7 @@ description: Bring projects, wikis, and teams together with AI. AppFlowy is an your data. The best open source alternative to Notion. publish_to: "none" -version: 0.7.2 +version: 0.7.3 environment: flutter: ">=3.22.0" @@ -172,7 +172,7 @@ dependency_overrides: appflowy_editor: git: url: https://github.com/AppFlowy-IO/appflowy-editor.git - ref: "4081fb7" + ref: "eccb244" appflowy_editor_plugins: git: From 64fabc58bef1a4919e19e4f022894b07f4f53276 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Fri, 1 Nov 2024 14:14:34 +0800 Subject: [PATCH 2/2] fix: windows ci --- frontend/appflowy_flutter/packages/flowy_infra/pubspec.yaml | 2 +- frontend/appflowy_flutter/packages/flowy_infra_ui/pubspec.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/packages/flowy_infra/pubspec.yaml b/frontend/appflowy_flutter/packages/flowy_infra/pubspec.yaml index ffe46b0abadb..cb5cbb9cee98 100644 --- a/frontend/appflowy_flutter/packages/flowy_infra/pubspec.yaml +++ b/frontend/appflowy_flutter/packages/flowy_infra/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: file: ^7.0.0 dev_dependencies: - build_runner: ^2.2.0 + build_runner: ^2.4.9 flutter_lints: ^3.0.1 freezed: ^2.4.7 json_serializable: ^6.5.4 diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/pubspec.yaml b/frontend/appflowy_flutter/packages/flowy_infra_ui/pubspec.yaml index c90679b0cd55..62cb26d4e085 100644 --- a/frontend/appflowy_flutter/packages/flowy_infra_ui/pubspec.yaml +++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/pubspec.yaml @@ -32,6 +32,7 @@ dependencies: path: ../flowy_svg dev_dependencies: + build_runner: ^2.4.9 provider: ^6.0.5 flutter_test: sdk: flutter