From c8b4d3fd2d387c6c79fb95963da460f5c7b5f609 Mon Sep 17 00:00:00 2001 From: hoavm Date: Wed, 2 Oct 2024 14:45:42 +0700 Subject: [PATCH] minor fix --- packages/quill/package.json | 2 +- packages/quill/src/quill.ts | 13 +++---------- packages/quill/test/types/quill.test-d.ts | 3 ++- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/quill/package.json b/packages/quill/package.json index 93d79b25e0..dddecfdb46 100644 --- a/packages/quill/package.json +++ b/packages/quill/package.json @@ -1,6 +1,6 @@ { "name": "hoavm-quill", - "version": "2.0.2-alpha1.18", + "version": "2.0.2-alpha1.20", "description": "Your powerful, rich text editor", "author": "Jason Chen ", "homepage": "https://quilljs.com", diff --git a/packages/quill/src/quill.ts b/packages/quill/src/quill.ts index 0366c68512..80a5a06658 100644 --- a/packages/quill/src/quill.ts +++ b/packages/quill/src/quill.ts @@ -1,4 +1,4 @@ -import Quill from './core.js'; +import Quill, { Parchment, Range } from './core.js'; import type { Bounds, DebugLevel, @@ -117,15 +117,7 @@ Quill.register( true, ); -export { - AttributeMap, - Delta, - Module, - Op, - OpIterator, - Parchment, - Range, -} from './core.js'; +export { Module } from './core.js'; export type { Bounds, DebugLevel, @@ -133,5 +125,6 @@ export type { ExpandedQuillOptions, QuillOptions, }; +export { Parchment, Range }; export default Quill; diff --git a/packages/quill/test/types/quill.test-d.ts b/packages/quill/test/types/quill.test-d.ts index a46bc216d2..1a2ca74040 100644 --- a/packages/quill/test/types/quill.test-d.ts +++ b/packages/quill/test/types/quill.test-d.ts @@ -1,6 +1,7 @@ import { assertType, expectTypeOf } from 'vitest'; -import Quill, { Delta } from '../../src/quill.js'; +import Quill from '../../src/quill.js'; import type { EmitterSource, Parchment, Range } from '../../src/quill.js'; +import Delta from 'quill-delta'; import type { default as Block, BlockEmbed } from '../../src/blots/block.js'; import SnowTheme from '../../src/themes/snow.js'; import { LeafBlot } from 'parchment';