Skip to content

Commit

Permalink
Move quill delta (#1578)
Browse files Browse the repository at this point in the history
* Split quill delta into separate package
  • Loading branch information
EchoEllet authored Dec 8, 2023
1 parent 36851c5 commit 1d58185
Show file tree
Hide file tree
Showing 57 changed files with 2,095 additions and 1,051 deletions.
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

0 comments on commit 1d58185

Please sign in to comment.