Skip to content

Commit 41403cb

Browse files
author
Ellet
committed
Prepare to release 9.2.10
1 parent 6bc1f11 commit 41403cb

File tree

21 files changed

+58
-27
lines changed

21 files changed

+58
-27
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 9.2.10
6+
* Update example screenshots
7+
* Refactor `Container` to `QuillContainer` with backward compatibility
8+
* A workaround fix in history feature
9+
510
## 9.2.9
611
* Refactor the type of `Delta().toJson()` to be more clear type
712

dart_quill_delta/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 9.2.10
6+
* Update example screenshots
7+
* Refactor `Container` to `QuillContainer` with backward compatibility
8+
* A workaround fix in history feature
9+
510
## 9.2.9
611
* Refactor the type of `Delta().toJson()` to be more clear type
712

dart_quill_delta/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_quill_delta
22
description: A port of quill-js-delta from typescript to dart
3-
version: 9.2.9
3+
version: 9.2.10
44
homepage: https://github.com/singerdmx/flutter-quill/tree/master/dart_quill_delta/
55
repository: https://github.com/singerdmx/flutter-quill/tree/master/dart_quill_delta/
66
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/

flutter_quill_extensions/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 9.2.10
6+
* Update example screenshots
7+
* Refactor `Container` to `QuillContainer` with backward compatibility
8+
* A workaround fix in history feature
9+
510
## 9.2.9
611
* Refactor the type of `Delta().toJson()` to be more clear type
712

flutter_quill_extensions/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill_extensions
22
description: Embed extensions for flutter_quill including image, video, formula and etc.
3-
version: 9.2.9
3+
version: 9.2.10
44
homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/
55
repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/
66
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/

flutter_quill_test/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 9.2.10
6+
* Update example screenshots
7+
* Refactor `Container` to `QuillContainer` with backward compatibility
8+
* A workaround fix in history feature
9+
510
## 9.2.9
611
* Refactor the type of `Delta().toJson()` to be more clear type
712

flutter_quill_test/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill_test
22
description: Test utilities for flutter_quill which includes methods to simplify interacting with the editor in test cases.
3-
version: 9.2.9
3+
version: 9.2.10
44
homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/
55
repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/
66
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/

lib/flutter_quill.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
library flutter_quill;
22

3-
import 'src/models/documents/nodes/container.dart';
4-
53
export '/src/widgets/raw_editor/quill_single_child_scroll_view.dart';
64
export 'src/extensions/quill_configurations_ext.dart';
75
export 'src/models/config/quill_configurations.dart';
@@ -39,5 +37,3 @@ export 'src/widgets/toolbar/buttons/alignment/select_alignment_button.dart';
3937
export 'src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart';
4038
export 'src/widgets/toolbar/simple_toolbar.dart';
4139
export 'src/widgets/utils/provider.dart';
42-
43-
typedef QuillContainer = Container;

lib/src/models/documents/nodes/block.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'node.dart';
1313
/// - Text Alignment
1414
/// - Text Direction
1515
/// - Code Block
16-
base class Block extends Container<Line?> {
16+
base class Block extends QuillContainer<Line?> {
1717
/// Creates new unmounted [Block].
1818
@override
1919
Node newInstance() => Block();
@@ -47,7 +47,7 @@ base class Block extends Container<Line?> {
4747
block.previous is Block &&
4848
prev!.style == block.style) {
4949
block
50-
..moveChildToNewParent(prev as Container<Node?>?)
50+
..moveChildToNewParent(prev as QuillContainer<Node?>?)
5151
..unlink();
5252
block = prev as Block;
5353
}

lib/src/models/documents/nodes/container.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import 'leaf.dart';
66
import 'line.dart';
77
import 'node.dart';
88

9+
@Deprecated('Please use QuillContainer instead')
10+
11+
/// For backward compatibility
12+
abstract base class Container<T extends Node?> extends QuillContainer<T> {}
13+
914
/// Container can accommodate other nodes.
1015
///
1116
/// Delegates insert, retain and delete operations to children nodes. For each
@@ -14,7 +19,7 @@ import 'node.dart';
1419
///
1520
/// Most of the operation handling logic is implemented by [Line]
1621
/// and [QuillText].
17-
abstract base class Container<T extends Node?> extends Node {
22+
abstract base class QuillContainer<T extends Node?> extends Node {
1823
final LinkedList<Node> _children = LinkedList<Node>();
1924

2025
/// List of children.
@@ -64,7 +69,7 @@ abstract base class Container<T extends Node?> extends Node {
6469
}
6570

6671
/// Moves children of this node to [newParent].
67-
void moveChildToNewParent(Container? newParent) {
72+
void moveChildToNewParent(QuillContainer? newParent) {
6873
if (isEmpty) {
6974
return;
7075
}
@@ -154,7 +159,7 @@ abstract base class Container<T extends Node?> extends Node {
154159
String toString() => _children.join('\n');
155160
}
156161

157-
/// Result of a child query in a [Container].
162+
/// Result of a child query in a [QuillContainer].
158163
class ChildQuery {
159164
ChildQuery(this.node, this.offset);
160165

@@ -163,7 +168,7 @@ class ChildQuery {
163168

164169
/// Starting offset within the child [node] which points at the same
165170
/// character in the document as the original offset passed to
166-
/// [Container.queryChild] method.
171+
/// [QuillContainer.queryChild] method.
167172
final int offset;
168173

169174
/// Returns `true` if there is no child node found, e.g. [node] is `null`.

0 commit comments

Comments
 (0)