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

Move quill delta #1578

Merged
merged 88 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
35a9502
1
Dec 5, 2023
7207dbf
2
Dec 5, 2023
798d907
2+
Dec 5, 2023
09fc229
2++
Dec 5, 2023
2c87552
2+++
Dec 5, 2023
d464443
2++++
Dec 5, 2023
2406cf0
Remove s.yaml file
Dec 5, 2023
309655e
2+++++
Dec 5, 2023
e3a706c
2++++++
Dec 5, 2023
8d6a180
2+++++++
Dec 5, 2023
086dcb7
2++++++++
Dec 5, 2023
4a6bc16
Update the version
Dec 5, 2023
6fa840b
2+++++++++
Dec 5, 2023
44d2d40
2++++++++++
Dec 5, 2023
c9ac8cc
2+++++++++++
Dec 5, 2023
331f9c7
An attemp to fix CI Failure
Dec 5, 2023
dc94460
An attemp to fix CI Failure
Dec 5, 2023
70d0fd2
An attemp to fix CI Failure
Dec 5, 2023
b513bf2
Add development notes
Dec 5, 2023
b074484
3
Dec 5, 2023
08e55ab
Rename button files
Dec 5, 2023
913c33c
Dropdown QuillToolbarSelectHeaderStyleButton
Dec 5, 2023
4b4c148
Organize files
Dec 5, 2023
0d39d9d
3
Dec 5, 2023
d67bd71
3+
Dec 5, 2023
ec38dee
3++
Dec 5, 2023
8d3215f
Fix tests
Dec 5, 2023
2cb886b
Fix analysis warrning
Dec 5, 2023
daa597f
Replace pasteboard with super_cliboard
Dec 5, 2023
026b58a
3+++
Dec 5, 2023
59ada7f
Update version
Dec 5, 2023
8792025
3++++
Dec 5, 2023
5afa35e
Regenerate versions
Dec 5, 2023
25435c9
3+++++
Dec 6, 2023
0c4c6cd
Prepare 9.0.0-dev-4
Dec 6, 2023
9727fea
4
Dec 6, 2023
8daccae
Fix analysis warrnings
Dec 6, 2023
90645f1
Fix tests
Dec 6, 2023
d7ef182
Fix import warrnings
Dec 6, 2023
c5c8083
4+
Dec 6, 2023
21a192f
4++
Dec 6, 2023
9be1a55
Prepare for release dev 6
Dec 6, 2023
1705bff
Prepare for release dev 5
Dec 6, 2023
ec2d28c
Bug fixes
Dec 6, 2023
5e6115d
Bug fixes
Dec 6, 2023
3be21fb
Prepare dev version 6
Dec 6, 2023
6066f2f
Link pattern bug fixes
Dec 7, 2023
64ea5ef
Prepare dev version 7
Dec 7, 2023
5fcda94
5
Dec 7, 2023
70d5fe0
Fix analysis issues
Dec 7, 2023
748c58c
Prepare dev version 8
Dec 7, 2023
1174f1e
Update CHANGELOG.md
Dec 7, 2023
f0fa2d1
Update CHANGELOG.md
Dec 7, 2023
1aab0c7
Update doc and README.md
Dec 7, 2023
6c5bd5d
Update main workflow name
Dec 7, 2023
67adb19
Improves the new logic of pasting HTML contents into the Editor
Dec 7, 2023
af5ac58
Cleanup code
Dec 7, 2023
fb65d0c
Merge remote-tracking branch 'upstream/master' into dev
Dec 7, 2023
0be81a7
Add new todo
Dec 7, 2023
615a0a2
Update font family button to material 3
Dec 7, 2023
2283d8b
Improve font family button
Dec 7, 2023
f8fc9d8
Fix analysis warrnings
Dec 7, 2023
03610e9
Improve font size button
Dec 7, 2023
7266ed9
Update workflows
Dec 7, 2023
94235df
Fix analysis warrning
Dec 7, 2023
3218ee0
Fix a typo
Dec 7, 2023
6896b30
Merge remote-tracking branch 'upstream/master' into dev
Dec 8, 2023
a1e73a5
Update simple toolbar
Dec 8, 2023
12527e8
fix delta from cliboard compose
Dec 8, 2023
d657731
Fix analysis warrning
Dec 8, 2023
59d436d
Fix a bug of the improved pasting HTML contents contents into the editor
Dec 8, 2023
409360a
Update workflows
Dec 8, 2023
343dc4c
Prepare to publish new version
Dec 8, 2023
675deab
Update build.yml
Dec 8, 2023
a3ec1b9
Update build.yml
Dec 8, 2023
b9d9260
Prepare for release
Dec 8, 2023
a8f5dad
An attemp to fix CI failures
Dec 8, 2023
b8f4af9
Prepare for new version 11
Dec 8, 2023
063390b
An attemp to fix CI build failures
Dec 8, 2023
0e278e3
Update pubspec.yaml
Dec 8, 2023
c75e984
Update pubspec.yaml and update build.yml
Dec 8, 2023
34030f1
Disable windows build
Dec 8, 2023
cb04c3b
Update build.yml
Dec 8, 2023
bb13cd5
9.0.0-dev-11
Dec 8, 2023
0fd1125
Update build.yml to avoid duplications
Dec 8, 2023
34b8755
Add bug todo fix
Dec 8, 2023
6bbf680
Add a bug todo
Dec 8, 2023
4df6b26
Split quill delta into seperate package
Dec 8, 2023
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
65 changes: 60 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Build the example

on:
pull_request:
branches: [master]
push:
paths:
- 'pubspec.yaml'

jobs:
tests:
build_linux:
name: Build Linux and Web Apps
runs-on: ubuntu-latest

steps:
Expand All @@ -17,10 +19,10 @@ jobs:

- name: Check flutter version
run: flutter --version

- name: Enable Local Dev
run: ./scripts/enable_local_dev.sh

- name: Install dependencies
run: flutter pub get

Expand All @@ -34,3 +36,56 @@ jobs:
- name: Flutter build Linux
run: flutter build linux --release --verbose --dart-define=CI=true
working-directory: ./example

# build_windows:
# name: Build Windows App
# runs-on: windows-latest

# steps:
# - uses: actions/checkout@v4
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# cache: true

# - name: Check flutter version
# run: flutter --version

# # Sh scripts is not supported on windows
# - name: Enable Local Dev
# run: ./scripts/enable_local_dev.sh

# - name: Install dependencies
# run: flutter pub get

# - name: Flutter build windows
# run: flutter build windows --release --verbose --dart-define=CI=true
# working-directory: ./example

# build_macOS:
# name: Build macOS App
# runs-on: macos-latest

# steps:
# - uses: actions/checkout@v4
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# cache: true

# - name: Check flutter version
# run: flutter --version

# - name: Enable Local Dev
# run: ./scripts/enable_local_dev.sh

# - name: Install dependencies
# run: flutter pub get

# - name: Flutter build macOS
# run: flutter build macos --release --verbose --dart-define=CI=true
# working-directory: ./example

# - name: Flutter build iOS
# run: flutter build ios --release --verbose --dart-define=CI=true
# working-directory: ./example
17 changes: 3 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI Tests

on:
push:
branches: [master]
branches: [master, dev]
pull_request:
branches: [master]
branches: [master, dev]

jobs:
tests:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
run: flutter pub get -C flutter_quill_test

- name: Install quill_html_converter dependencies
run: flutter pub get -C packages/quill_html_converter
run: flutter pub get -C quill_html_converter

- name: Run flutter analysis
run: flutter analyze
Expand All @@ -49,14 +49,3 @@ jobs:

- name: Run flutter tests
run: flutter test

# - name: Flutter build Web
# run: flutter build web --release --verbose --dart-define=CI=true
# working-directory: ./example

# - name: Install flutter Linux prerequisites
# run: sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev -y

# - name: Flutter build Linux
# run: flutter build linux --release --verbose --dart-define=CI=true
# working-directory: ./example
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:

- name: Publish quill_html_converter
run: flutter pub publish --force
working-directory: ./packages/quill_html_converter/
working-directory: ./quill_html_converter/
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,5 @@ pubspec.lock
# For local development
pubspec_overrides.yaml

old_example

# A directory where you put all of your local things that you don't want to push
.flutter-quill
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

## 9.0.0-dev-11
* Test new GitHub workflows

## 9.0.0-dev-10
* Fix a bug of the improved pasting HTML contents contents into the editor

## 9.0.0-dev-9
* Improves the new logic of pasting HTML contents into the Editor
* Update `README.md` and the doc
* Dispose the `QuillToolbarSelectHeaderStyleButton` state listener in `dispose`
* Upgrade the font family button to material 3
* Rework the font family and font size functionalities to change the font once and type all over the editor

## 9.0.0-dev-8
* Better support for pasting HTML contents from external websites to the editor
* The experimental support of converting the HTML from `quill_html_converter` is now built-in in the `flutter_quill` and removed from there (Breaking change for `quill_html_converter`)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ it to other formats such as HTML to publish it, or send an email.

You have two options:

1. Using [quill_html_converter](./packages/quill_html_converter/) to convert to HTML, the package can convert the Quill delta to HTML well
1. Using [quill_html_converter](./quill_html_converter/) to convert to HTML, the package can convert the Quill delta to HTML well
(it uses [vsc_quill_delta_to_html](https://pub.dev/packages/vsc_quill_delta_to_html)), it just a handy extension to do it more quickly
1. Another option is to use
[vsc_quill_delta_to_html](https://pub.dev/packages/vsc_quill_delta_to_html) to convert your document
Expand Down
7 changes: 7 additions & 0 deletions dart_quill_delta/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/

# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
3 changes: 3 additions & 0 deletions dart_quill_delta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* Initial version.
File renamed without changes.
2 changes: 2 additions & 0 deletions dart_quill_delta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dart Quill Delta
A port of [quill-js-delta](https://github.com/quilljs/delta/) from typescript to dart
30 changes: 30 additions & 0 deletions dart_quill_delta/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
1 change: 1 addition & 0 deletions dart_quill_delta/example/dart_quill_delta_example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void main() {}
5 changes: 5 additions & 0 deletions dart_quill_delta/lib/dart_quill_delta.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
library;

export './src/delta/delta.dart';
export './src/delta/delta_iterator.dart';
export './src/operation/operation.dart';
Loading
Loading