@plotdb/quill 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.cjs +12 -0
- package/package.json +2 -1
- package/scripts/babel-svg-inline-import.cjs +44 -0
- package/scripts/build +20 -0
- package/src/types.d.ts +6 -0
- package/webpack.common.cjs +69 -0
- package/webpack.config.cjs +42 -0
- package/blots/block.d.ts +0 -34
- package/blots/block.js +0 -182
- package/blots/block.js.map +0 -1
- package/blots/break.d.ts +0 -8
- package/blots/break.js +0 -21
- package/blots/break.js.map +0 -1
- package/blots/container.d.ts +0 -4
- package/blots/container.js +0 -4
- package/blots/container.js.map +0 -1
- package/blots/cursor.d.ts +0 -26
- package/blots/cursor.js +0 -170
- package/blots/cursor.js.map +0 -1
- package/blots/embed.d.ts +0 -18
- package/blots/embed.js +0 -72
- package/blots/embed.js.map +0 -1
- package/blots/inline.d.ts +0 -12
- package/blots/inline.js +0 -48
- package/blots/inline.js.map +0 -1
- package/blots/scroll.d.ts +0 -49
- package/blots/scroll.js +0 -349
- package/blots/scroll.js.map +0 -1
- package/blots/text.d.ts +0 -5
- package/blots/text.js +0 -16
- package/blots/text.js.map +0 -1
- package/core/composition.d.ts +0 -12
- package/core/composition.js +0 -44
- package/core/composition.js.map +0 -1
- package/core/editor.d.ts +0 -28
- package/core/editor.js +0 -404
- package/core/editor.js.map +0 -1
- package/core/emitter.d.ts +0 -33
- package/core/emitter.js +0 -78
- package/core/emitter.js.map +0 -1
- package/core/instances.d.ts +0 -3
- package/core/instances.js +0 -2
- package/core/instances.js.map +0 -1
- package/core/logger.d.ts +0 -7
- package/core/logger.js +0 -24
- package/core/logger.js.map +0 -1
- package/core/module.d.ts +0 -8
- package/core/module.js +0 -10
- package/core/module.js.map +0 -1
- package/core/quill.d.ts +0 -218
- package/core/quill.js +0 -630
- package/core/quill.js.map +0 -1
- package/core/selection.d.ts +0 -74
- package/core/selection.js +0 -374
- package/core/selection.js.map +0 -1
- package/core/theme.d.ts +0 -32
- package/core/theme.js +0 -28
- package/core/theme.js.map +0 -1
- package/core/utils/createRegistryWithFormats.d.ts +0 -5
- package/core/utils/createRegistryWithFormats.js +0 -29
- package/core/utils/createRegistryWithFormats.js.map +0 -1
- package/core/utils/scrollRectIntoView.d.ts +0 -11
- package/core/utils/scrollRectIntoView.js +0 -110
- package/core/utils/scrollRectIntoView.js.map +0 -1
- package/core.d.ts +0 -7
- package/core.js +0 -37
- package/core.js.map +0 -1
- package/dist/quill.bubble.css +0 -10
- package/dist/quill.bubble.css.map +0 -1
- package/dist/quill.core.css +0 -10
- package/dist/quill.core.css.map +0 -1
- package/dist/quill.core.js +0 -3
- package/dist/quill.core.js.LICENSE.txt +0 -7
- package/dist/quill.core.js.map +0 -1
- package/dist/quill.js +0 -3
- package/dist/quill.js.LICENSE.txt +0 -7
- package/dist/quill.js.map +0 -1
- package/dist/quill.snow.css +0 -10
- package/dist/quill.snow.css.map +0 -1
- package/formats/align.d.ts +0 -5
- package/formats/align.js +0 -10
- package/formats/align.js.map +0 -1
- package/formats/background.d.ts +0 -5
- package/formats/background.js +0 -10
- package/formats/background.js.map +0 -1
- package/formats/blockquote.d.ts +0 -6
- package/formats/blockquote.js +0 -7
- package/formats/blockquote.js.map +0 -1
- package/formats/bold.d.ts +0 -11
- package/formats/bold.js +0 -19
- package/formats/bold.js.map +0 -1
- package/formats/code.d.ts +0 -15
- package/formats/code.js +0 -44
- package/formats/code.js.map +0 -1
- package/formats/color.d.ts +0 -7
- package/formats/color.js +0 -18
- package/formats/color.js.map +0 -1
- package/formats/direction.d.ts +0 -5
- package/formats/direction.js +0 -10
- package/formats/direction.js.map +0 -1
- package/formats/font.d.ts +0 -7
- package/formats/font.js +0 -14
- package/formats/font.js.map +0 -1
- package/formats/formula.d.ts +0 -10
- package/formats/formula.js +0 -34
- package/formats/formula.js.map +0 -1
- package/formats/header.d.ts +0 -7
- package/formats/header.js +0 -10
- package/formats/header.js.map +0 -1
- package/formats/image.d.ts +0 -13
- package/formats/image.js +0 -44
- package/formats/image.js.map +0 -1
- package/formats/indent.d.ts +0 -8
- package/formats/indent.js +0 -30
- package/formats/indent.js.map +0 -1
- package/formats/italic.d.ts +0 -6
- package/formats/italic.js +0 -7
- package/formats/italic.js.map +0 -1
- package/formats/link.d.ts +0 -13
- package/formats/link.js +0 -36
- package/formats/link.js.map +0 -1
- package/formats/list.d.ts +0 -13
- package/formats/list.js +0 -50
- package/formats/list.js.map +0 -1
- package/formats/script.d.ts +0 -8
- package/formats/script.js +0 -21
- package/formats/script.js.map +0 -1
- package/formats/size.d.ts +0 -4
- package/formats/size.js +0 -11
- package/formats/size.js.map +0 -1
- package/formats/strike.d.ts +0 -6
- package/formats/strike.js +0 -7
- package/formats/strike.js.map +0 -1
- package/formats/table.d.ts +0 -45
- package/formats/table.js +0 -176
- package/formats/table.js.map +0 -1
- package/formats/underline.d.ts +0 -6
- package/formats/underline.js +0 -7
- package/formats/underline.js.map +0 -1
- package/formats/video.d.ts +0 -14
- package/formats/video.js +0 -49
- package/formats/video.js.map +0 -1
- package/modules/clipboard.d.ts +0 -43
- package/modules/clipboard.js +0 -477
- package/modules/clipboard.js.map +0 -1
- package/modules/history.d.ts +0 -36
- package/modules/history.js +0 -178
- package/modules/history.js.map +0 -1
- package/modules/input.d.ts +0 -10
- package/modules/input.js +0 -83
- package/modules/input.js.map +0 -1
- package/modules/keyboard.d.ts +0 -58
- package/modules/keyboard.js +0 -713
- package/modules/keyboard.js.map +0 -1
- package/modules/normalizeExternalHTML/index.d.ts +0 -2
- package/modules/normalizeExternalHTML/index.js +0 -12
- package/modules/normalizeExternalHTML/index.js.map +0 -1
- package/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -1
- package/modules/normalizeExternalHTML/normalizers/googleDocs.js +0 -24
- package/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +0 -1
- package/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -1
- package/modules/normalizeExternalHTML/normalizers/msWord.js +0 -87
- package/modules/normalizeExternalHTML/normalizers/msWord.js.map +0 -1
- package/modules/syntax.d.ts +0 -50
- package/modules/syntax.js +0 -332
- package/modules/syntax.js.map +0 -1
- package/modules/table.d.ts +0 -20
- package/modules/table.js +0 -125
- package/modules/table.js.map +0 -1
- package/modules/tableEmbed.d.ts +0 -27
- package/modules/tableEmbed.js +0 -209
- package/modules/tableEmbed.js.map +0 -1
- package/modules/toolbar.d.ts +0 -24
- package/modules/toolbar.js +0 -265
- package/modules/toolbar.js.map +0 -1
- package/modules/uiNode.d.ts +0 -19
- package/modules/uiNode.js +0 -95
- package/modules/uiNode.js.map +0 -1
- package/modules/uploader.d.ts +0 -15
- package/modules/uploader.js +0 -69
- package/modules/uploader.js.map +0 -1
- package/quill.d.ts +0 -5
- package/quill.js +0 -82
- package/quill.js.map +0 -1
- package/themes/base.d.ts +0 -35
- package/themes/base.js +0 -257
- package/themes/base.js.map +0 -1
- package/themes/bubble.d.ts +0 -18
- package/themes/bubble.js +0 -114
- package/themes/bubble.js.map +0 -1
- package/themes/snow.d.ts +0 -9
- package/themes/snow.js +0 -122
- package/themes/snow.js.map +0 -1
- package/types.d.js +0 -2
- package/types.d.js.map +0 -1
- package/ui/color-picker.d.ts +0 -7
- package/ui/color-picker.js +0 -30
- package/ui/color-picker.js.map +0 -1
- package/ui/icon-picker.d.ts +0 -7
- package/ui/icon-picker.js +0 -22
- package/ui/icon-picker.js.map +0 -1
- package/ui/icons.d.ts +0 -49
- package/ui/icons.js +0 -82
- package/ui/icons.js.map +0 -1
- package/ui/picker.d.ts +0 -16
- package/ui/picker.js +0 -171
- package/ui/picker.js.map +0 -1
- package/ui/tooltip.d.ts +0 -12
- package/ui/tooltip.js +0 -56
- package/ui/tooltip.js.map +0 -1
- /package/{assets → src/assets}/base.styl +0 -0
- /package/{assets → src/assets}/bubble/toolbar.styl +0 -0
- /package/{assets → src/assets}/bubble/tooltip.styl +0 -0
- /package/{assets → src/assets}/bubble.styl +0 -0
- /package/{assets → src/assets}/core.styl +0 -0
- /package/{assets → src/assets}/favicon.png +0 -0
- /package/{assets → src/assets}/icons/align-center.svg +0 -0
- /package/{assets → src/assets}/icons/align-justify.svg +0 -0
- /package/{assets → src/assets}/icons/align-left.svg +0 -0
- /package/{assets → src/assets}/icons/align-right.svg +0 -0
- /package/{assets → src/assets}/icons/attachment.svg +0 -0
- /package/{assets → src/assets}/icons/audio.svg +0 -0
- /package/{assets → src/assets}/icons/authorship.svg +0 -0
- /package/{assets → src/assets}/icons/background.svg +0 -0
- /package/{assets → src/assets}/icons/blockquote.svg +0 -0
- /package/{assets → src/assets}/icons/bold.svg +0 -0
- /package/{assets → src/assets}/icons/clean.svg +0 -0
- /package/{assets → src/assets}/icons/code.svg +0 -0
- /package/{assets → src/assets}/icons/color.svg +0 -0
- /package/{assets → src/assets}/icons/comment.svg +0 -0
- /package/{assets → src/assets}/icons/direction-ltr.svg +0 -0
- /package/{assets → src/assets}/icons/direction-rtl.svg +0 -0
- /package/{assets → src/assets}/icons/dropdown.svg +0 -0
- /package/{assets → src/assets}/icons/embed.svg +0 -0
- /package/{assets → src/assets}/icons/emoji.svg +0 -0
- /package/{assets → src/assets}/icons/float-center.svg +0 -0
- /package/{assets → src/assets}/icons/float-full.svg +0 -0
- /package/{assets → src/assets}/icons/float-left.svg +0 -0
- /package/{assets → src/assets}/icons/float-right.svg +0 -0
- /package/{assets → src/assets}/icons/font.svg +0 -0
- /package/{assets → src/assets}/icons/formula.svg +0 -0
- /package/{assets → src/assets}/icons/hashtag.svg +0 -0
- /package/{assets → src/assets}/icons/header-2.svg +0 -0
- /package/{assets → src/assets}/icons/header-3.svg +0 -0
- /package/{assets → src/assets}/icons/header-4.svg +0 -0
- /package/{assets → src/assets}/icons/header-5.svg +0 -0
- /package/{assets → src/assets}/icons/header-6.svg +0 -0
- /package/{assets → src/assets}/icons/header.svg +0 -0
- /package/{assets → src/assets}/icons/horizontal-rule.svg +0 -0
- /package/{assets → src/assets}/icons/image.svg +0 -0
- /package/{assets → src/assets}/icons/indent.svg +0 -0
- /package/{assets → src/assets}/icons/italic.svg +0 -0
- /package/{assets → src/assets}/icons/link.svg +0 -0
- /package/{assets → src/assets}/icons/list-bullet.svg +0 -0
- /package/{assets → src/assets}/icons/list-check.svg +0 -0
- /package/{assets → src/assets}/icons/list-ordered.svg +0 -0
- /package/{assets → src/assets}/icons/map.svg +0 -0
- /package/{assets → src/assets}/icons/mention.svg +0 -0
- /package/{assets → src/assets}/icons/more.svg +0 -0
- /package/{assets → src/assets}/icons/outdent.svg +0 -0
- /package/{assets → src/assets}/icons/redo.svg +0 -0
- /package/{assets → src/assets}/icons/size-decrease.svg +0 -0
- /package/{assets → src/assets}/icons/size-increase.svg +0 -0
- /package/{assets → src/assets}/icons/size.svg +0 -0
- /package/{assets → src/assets}/icons/spacing.svg +0 -0
- /package/{assets → src/assets}/icons/speech.svg +0 -0
- /package/{assets → src/assets}/icons/strike.svg +0 -0
- /package/{assets → src/assets}/icons/subscript.svg +0 -0
- /package/{assets → src/assets}/icons/superscript.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-all.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-bottom.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-left.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-none.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-outside.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-right.svg +0 -0
- /package/{assets → src/assets}/icons/table-border-top.svg +0 -0
- /package/{assets → src/assets}/icons/table-delete-cells.svg +0 -0
- /package/{assets → src/assets}/icons/table-delete-columns.svg +0 -0
- /package/{assets → src/assets}/icons/table-delete-rows.svg +0 -0
- /package/{assets → src/assets}/icons/table-insert-cells.svg +0 -0
- /package/{assets → src/assets}/icons/table-insert-columns.svg +0 -0
- /package/{assets → src/assets}/icons/table-insert-rows.svg +0 -0
- /package/{assets → src/assets}/icons/table-merge-cells.svg +0 -0
- /package/{assets → src/assets}/icons/table-unmerge-cells.svg +0 -0
- /package/{assets → src/assets}/icons/table.svg +0 -0
- /package/{assets → src/assets}/icons/underline.svg +0 -0
- /package/{assets → src/assets}/icons/undo.svg +0 -0
- /package/{assets → src/assets}/icons/video.svg +0 -0
- /package/{assets → src/assets}/snow/toolbar.styl +0 -0
- /package/{assets → src/assets}/snow/tooltip.styl +0 -0
- /package/{assets → src/assets}/snow.styl +0 -0
package/core/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["levels","level","debug","method","indexOf","_len","arguments","length","args","Array","_key","console","namespace","ns","reduce","logger","bind","newLevel"],"sources":["../../src/core/logger.ts"],"sourcesContent":["const levels = ['error', 'warn', 'log', 'info'] as const;\nexport type DebugLevel = (typeof levels)[number];\nlet level: DebugLevel | false = 'warn';\n\nfunction debug(method: DebugLevel, ...args: unknown[]) {\n if (level) {\n if (levels.indexOf(method) <= levels.indexOf(level)) {\n console[method](...args); // eslint-disable-line no-console\n }\n }\n}\n\nfunction namespace(\n ns: string,\n): Record<DebugLevel, (...args: unknown[]) => void> {\n return levels.reduce(\n (logger, method) => {\n logger[method] = debug.bind(console, method, ns);\n return logger;\n },\n {} as Record<DebugLevel, (...args: unknown[]) => void>,\n );\n}\n\nnamespace.level = (newLevel: DebugLevel | false) => {\n level = newLevel;\n};\ndebug.level = namespace.level;\n\nexport default namespace;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU;AAExD,IAAIC,KAAyB,GAAG,MAAM;AAEtC,SAASC,KAAKA,CAACC,MAAkB,EAAsB;EACrD,IAAIF,KAAK,EAAE;IACT,IAAID,MAAM,CAACI,OAAO,CAACD,MAAM,CAAC,IAAIH,MAAM,CAACI,OAAO,CAACH,KAAK,CAAC,EAAE;MAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAFnBC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;QAAJF,IAAI,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;MAAA;MAGpCC,OAAO,CAACR,MAAM,CAAC,CAAC,GAAGK,IAAI,CAAC,CAAC,CAAC;IAC5B;EACF;AACF;AAEA,SAASI,SAASA,CAChBC,EAAU,EACwC;EAClD,OAAOb,MAAM,CAACc,MAAM,CAClB,CAACC,MAAM,EAAEZ,MAAM,KAAK;IAClBY,MAAM,CAACZ,MAAM,CAAC,GAAGD,KAAK,CAACc,IAAI,CAACL,OAAO,EAAER,MAAM,EAAEU,EAAE,CAAC;IAChD,OAAOE,MAAM;EACf,CAAC,EACD,CAAC,CACH,CAAC;AACH;AAEAH,SAAS,CAACX,KAAK,GAAIgB,QAA4B,IAAK;EAClDhB,KAAK,GAAGgB,QAAQ;AAClB,CAAC;AACDf,KAAK,CAACD,KAAK,GAAGW,SAAS,CAACX,KAAK;AAE7B,eAAeW,SAAS","ignoreList":[]}
|
package/core/module.d.ts
DELETED
package/core/module.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
class Module {
|
|
2
|
-
static DEFAULTS = {};
|
|
3
|
-
constructor(quill) {
|
|
4
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
5
|
-
this.quill = quill;
|
|
6
|
-
this.options = options;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export default Module;
|
|
10
|
-
//# sourceMappingURL=module.js.map
|
package/core/module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","names":["Module","DEFAULTS","constructor","quill","options","arguments","length","undefined"],"sources":["../../src/core/module.ts"],"sourcesContent":["import type Quill from './quill.js';\n\nabstract class Module<T extends {} = {}> {\n static DEFAULTS = {};\n\n constructor(\n public quill: Quill,\n protected options: Partial<T> = {},\n ) {}\n}\n\nexport default Module;\n"],"mappings":"AAEA,MAAeA,MAAM,CAAoB;EACvC,OAAOC,QAAQ,GAAG,CAAC,CAAC;EAEpBC,WAAWA,CACFC,KAAY,EAEnB;IAAA,IADUC,OAAmB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IAAA,KAD3BF,KAAY,GAAZA,KAAY;IAAA,KACTC,OAAmB,GAAnBA,OAAmB;EAC5B;AACL;AAEA,eAAeJ,MAAM","ignoreList":[]}
|
package/core/quill.d.ts
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import * as Parchment from 'parchment';
|
|
2
|
-
import type { Op } from 'quill-delta';
|
|
3
|
-
import Delta from 'quill-delta';
|
|
4
|
-
import type { BlockEmbed } from '../blots/block.js';
|
|
5
|
-
import type Block from '../blots/block.js';
|
|
6
|
-
import type Scroll from '../blots/scroll.js';
|
|
7
|
-
import type Clipboard from '../modules/clipboard.js';
|
|
8
|
-
import type History from '../modules/history.js';
|
|
9
|
-
import type Keyboard from '../modules/keyboard.js';
|
|
10
|
-
import type Uploader from '../modules/uploader.js';
|
|
11
|
-
import Editor from './editor.js';
|
|
12
|
-
import Emitter from './emitter.js';
|
|
13
|
-
import type { EmitterSource } from './emitter.js';
|
|
14
|
-
import type { DebugLevel } from './logger.js';
|
|
15
|
-
import Module from './module.js';
|
|
16
|
-
import Selection, { Range } from './selection.js';
|
|
17
|
-
import type { Bounds } from './selection.js';
|
|
18
|
-
import Composition from './composition.js';
|
|
19
|
-
import Theme from './theme.js';
|
|
20
|
-
import type { ThemeConstructor } from './theme.js';
|
|
21
|
-
import type { Rect, ScrollRectIntoViewOptions } from './utils/scrollRectIntoView.js';
|
|
22
|
-
declare const globalRegistry: Parchment.Registry;
|
|
23
|
-
/**
|
|
24
|
-
* Options for initializing a Quill instance
|
|
25
|
-
*/
|
|
26
|
-
export interface QuillOptions {
|
|
27
|
-
theme?: string;
|
|
28
|
-
debug?: DebugLevel | boolean;
|
|
29
|
-
registry?: Parchment.Registry;
|
|
30
|
-
/**
|
|
31
|
-
* Whether to disable the editing
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
readOnly?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Placeholder text to display when the editor is empty
|
|
37
|
-
* @default ""
|
|
38
|
-
*/
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
bounds?: HTMLElement | string | null;
|
|
41
|
-
modules?: Record<string, unknown>;
|
|
42
|
-
/**
|
|
43
|
-
* A list of formats that are recognized and can exist within the editor contents.
|
|
44
|
-
* `null` means all formats are allowed.
|
|
45
|
-
* @default null
|
|
46
|
-
*/
|
|
47
|
-
formats?: string[] | null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Similar to QuillOptions, but with all properties expanded to their default values,
|
|
51
|
-
* and all selectors resolved to HTMLElements.
|
|
52
|
-
*/
|
|
53
|
-
export interface ExpandedQuillOptions extends Omit<QuillOptions, 'theme' | 'formats'> {
|
|
54
|
-
theme: ThemeConstructor;
|
|
55
|
-
registry: Parchment.Registry;
|
|
56
|
-
container: HTMLElement;
|
|
57
|
-
modules: Record<string, unknown>;
|
|
58
|
-
bounds?: HTMLElement | null;
|
|
59
|
-
readOnly: boolean;
|
|
60
|
-
}
|
|
61
|
-
declare class Quill {
|
|
62
|
-
static DEFAULTS: {
|
|
63
|
-
bounds: null;
|
|
64
|
-
modules: {
|
|
65
|
-
clipboard: boolean;
|
|
66
|
-
keyboard: boolean;
|
|
67
|
-
history: boolean;
|
|
68
|
-
uploader: boolean;
|
|
69
|
-
};
|
|
70
|
-
placeholder: string;
|
|
71
|
-
readOnly: false;
|
|
72
|
-
registry: Parchment.Registry;
|
|
73
|
-
theme: string;
|
|
74
|
-
};
|
|
75
|
-
static events: {
|
|
76
|
-
readonly EDITOR_CHANGE: "editor-change";
|
|
77
|
-
readonly SCROLL_BEFORE_UPDATE: "scroll-before-update";
|
|
78
|
-
readonly SCROLL_BLOT_MOUNT: "scroll-blot-mount";
|
|
79
|
-
readonly SCROLL_BLOT_UNMOUNT: "scroll-blot-unmount";
|
|
80
|
-
readonly SCROLL_OPTIMIZE: "scroll-optimize";
|
|
81
|
-
readonly SCROLL_UPDATE: "scroll-update";
|
|
82
|
-
readonly SCROLL_EMBED_UPDATE: "scroll-embed-update";
|
|
83
|
-
readonly SELECTION_CHANGE: "selection-change";
|
|
84
|
-
readonly TEXT_CHANGE: "text-change";
|
|
85
|
-
readonly COMPOSITION_BEFORE_START: "composition-before-start";
|
|
86
|
-
readonly COMPOSITION_START: "composition-start";
|
|
87
|
-
readonly COMPOSITION_BEFORE_END: "composition-before-end";
|
|
88
|
-
readonly COMPOSITION_END: "composition-end";
|
|
89
|
-
};
|
|
90
|
-
static sources: {
|
|
91
|
-
readonly API: "api";
|
|
92
|
-
readonly SILENT: "silent";
|
|
93
|
-
readonly USER: "user";
|
|
94
|
-
};
|
|
95
|
-
static version: string;
|
|
96
|
-
static imports: Record<string, unknown>;
|
|
97
|
-
static debug(limit: DebugLevel | boolean): void;
|
|
98
|
-
static find(node: Node, bubble?: boolean): Parchment.Blot | Quill | null;
|
|
99
|
-
static import(name: 'core/module'): typeof Module;
|
|
100
|
-
static import(name: `themes/${string}`): typeof Theme;
|
|
101
|
-
static import(name: 'parchment'): typeof Parchment;
|
|
102
|
-
static import(name: 'delta'): typeof Delta;
|
|
103
|
-
static import(name: string): unknown;
|
|
104
|
-
static register(targets: Record<string, Parchment.RegistryDefinition | Record<string, unknown> | Theme | Module | Function>, overwrite?: boolean): void;
|
|
105
|
-
static register(target: Parchment.RegistryDefinition, overwrite?: boolean): void;
|
|
106
|
-
static register(path: string, target: any, overwrite?: boolean): void;
|
|
107
|
-
container: HTMLElement;
|
|
108
|
-
root: HTMLDivElement;
|
|
109
|
-
scroll: Scroll;
|
|
110
|
-
emitter: Emitter;
|
|
111
|
-
protected allowReadOnlyEdits: boolean;
|
|
112
|
-
editor: Editor;
|
|
113
|
-
composition: Composition;
|
|
114
|
-
selection: Selection;
|
|
115
|
-
theme: Theme;
|
|
116
|
-
keyboard: Keyboard;
|
|
117
|
-
clipboard: Clipboard;
|
|
118
|
-
history: History;
|
|
119
|
-
uploader: Uploader;
|
|
120
|
-
options: ExpandedQuillOptions;
|
|
121
|
-
constructor(container: HTMLElement | string, options?: QuillOptions);
|
|
122
|
-
addContainer(container: string, refNode?: Node | null): HTMLDivElement;
|
|
123
|
-
addContainer(container: HTMLElement, refNode?: Node | null): HTMLElement;
|
|
124
|
-
blur(): void;
|
|
125
|
-
deleteText(range: Range, source?: EmitterSource): Delta;
|
|
126
|
-
deleteText(index: number, length: number, source?: EmitterSource): Delta;
|
|
127
|
-
disable(): void;
|
|
128
|
-
editReadOnly<T>(modifier: () => T): T;
|
|
129
|
-
enable(enabled?: boolean): void;
|
|
130
|
-
focus(options?: {
|
|
131
|
-
preventScroll?: boolean;
|
|
132
|
-
}): void;
|
|
133
|
-
format(name: string, value: unknown, source?: EmitterSource): Delta;
|
|
134
|
-
formatLine(index: number, length: number, formats: Record<string, unknown>, source?: EmitterSource): Delta;
|
|
135
|
-
formatLine(index: number, length: number, name: string, value?: unknown, source?: EmitterSource): Delta;
|
|
136
|
-
formatText(range: Range, name: string, value: unknown, source?: EmitterSource): Delta;
|
|
137
|
-
formatText(index: number, length: number, name: string, value: unknown, source?: EmitterSource): Delta;
|
|
138
|
-
formatText(index: number, length: number, formats: Record<string, unknown>, source?: EmitterSource): Delta;
|
|
139
|
-
getBounds(index: number | Range, length?: number): Bounds | null;
|
|
140
|
-
getContents(index?: number, length?: number): Delta;
|
|
141
|
-
getFormat(index?: number, length?: number): {
|
|
142
|
-
[format: string]: unknown;
|
|
143
|
-
};
|
|
144
|
-
getFormat(range?: Range): {
|
|
145
|
-
[format: string]: unknown;
|
|
146
|
-
};
|
|
147
|
-
getIndex(blot: Parchment.Blot): number;
|
|
148
|
-
getLength(): number;
|
|
149
|
-
getLeaf(index: number): [Parchment.LeafBlot | null, number];
|
|
150
|
-
getLine(index: number): [Block | BlockEmbed | null, number];
|
|
151
|
-
getLines(range: Range): (Block | BlockEmbed)[];
|
|
152
|
-
getLines(index?: number, length?: number): (Block | BlockEmbed)[];
|
|
153
|
-
getModule(name: string): unknown;
|
|
154
|
-
getSelection(focus: true): Range;
|
|
155
|
-
getSelection(focus?: boolean): Range | null;
|
|
156
|
-
getSemanticHTML(range: Range): string;
|
|
157
|
-
getSemanticHTML(index?: number, length?: number): string;
|
|
158
|
-
getText(range?: Range): string;
|
|
159
|
-
getText(index?: number, length?: number): string;
|
|
160
|
-
hasFocus(): boolean;
|
|
161
|
-
insertEmbed(index: number, embed: string, value: unknown, source?: EmitterSource): Delta;
|
|
162
|
-
insertText(index: number, text: string, source?: EmitterSource): Delta;
|
|
163
|
-
insertText(index: number, text: string, formats: Record<string, unknown>, source?: EmitterSource): Delta;
|
|
164
|
-
insertText(index: number, text: string, name: string, value: unknown, source?: EmitterSource): Delta;
|
|
165
|
-
isEnabled(): boolean;
|
|
166
|
-
off(...args: Parameters<(typeof Emitter)['prototype']['off']>): Emitter;
|
|
167
|
-
on(event: (typeof Emitter)['events']['TEXT_CHANGE'], handler: (delta: Delta, oldContent: Delta, source: EmitterSource) => void): Emitter;
|
|
168
|
-
on(event: (typeof Emitter)['events']['SELECTION_CHANGE'], handler: (range: Range, oldRange: Range, source: EmitterSource) => void): Emitter;
|
|
169
|
-
on(event: (typeof Emitter)['events']['EDITOR_CHANGE'], handler: (...args: [
|
|
170
|
-
(typeof Emitter)['events']['TEXT_CHANGE'],
|
|
171
|
-
Delta,
|
|
172
|
-
Delta,
|
|
173
|
-
EmitterSource
|
|
174
|
-
] | [
|
|
175
|
-
(typeof Emitter)['events']['SELECTION_CHANGE'],
|
|
176
|
-
Range,
|
|
177
|
-
Range,
|
|
178
|
-
EmitterSource
|
|
179
|
-
]) => void): Emitter;
|
|
180
|
-
on(event: string, ...args: unknown[]): Emitter;
|
|
181
|
-
once(...args: Parameters<(typeof Emitter)['prototype']['once']>): Emitter;
|
|
182
|
-
removeFormat(index: number, length: number, source?: EmitterSource): Delta;
|
|
183
|
-
scrollRectIntoView(rect: Rect, options?: ScrollRectIntoViewOptions): void;
|
|
184
|
-
/**
|
|
185
|
-
* @deprecated Use Quill#scrollSelectionIntoView() instead.
|
|
186
|
-
*/
|
|
187
|
-
scrollIntoView(): void;
|
|
188
|
-
/**
|
|
189
|
-
* Scroll the current selection into the visible area.
|
|
190
|
-
* If the selection is already visible, no scrolling will occur.
|
|
191
|
-
*/
|
|
192
|
-
scrollSelectionIntoView(options?: ScrollRectIntoViewOptions): void;
|
|
193
|
-
setContents(delta: Delta | Op[], source?: EmitterSource): Delta;
|
|
194
|
-
setSelection(range: Range | null, source?: EmitterSource): void;
|
|
195
|
-
setSelection(index: number, source?: EmitterSource): void;
|
|
196
|
-
setSelection(index: number, length?: number, source?: EmitterSource): void;
|
|
197
|
-
setSelection(index: number, source?: EmitterSource): void;
|
|
198
|
-
setText(text: string, source?: EmitterSource): Delta;
|
|
199
|
-
update(source?: EmitterSource): void;
|
|
200
|
-
updateContents(delta: Delta | Op[], source?: EmitterSource): Delta;
|
|
201
|
-
}
|
|
202
|
-
declare function expandConfig(containerOrSelector: HTMLElement | string, options: QuillOptions): ExpandedQuillOptions;
|
|
203
|
-
type NormalizedIndexLength = [
|
|
204
|
-
number,
|
|
205
|
-
number,
|
|
206
|
-
Record<string, unknown>,
|
|
207
|
-
EmitterSource
|
|
208
|
-
];
|
|
209
|
-
declare function overload(index: number, source?: EmitterSource): NormalizedIndexLength;
|
|
210
|
-
declare function overload(index: number, length: number, source?: EmitterSource): NormalizedIndexLength;
|
|
211
|
-
declare function overload(index: number, length: number, format: string, value: unknown, source?: EmitterSource): NormalizedIndexLength;
|
|
212
|
-
declare function overload(index: number, length: number, format: Record<string, unknown>, source?: EmitterSource): NormalizedIndexLength;
|
|
213
|
-
declare function overload(range: Range, source?: EmitterSource): NormalizedIndexLength;
|
|
214
|
-
declare function overload(range: Range, format: string, value: unknown, source?: EmitterSource): NormalizedIndexLength;
|
|
215
|
-
declare function overload(range: Range, format: Record<string, unknown>, source?: EmitterSource): NormalizedIndexLength;
|
|
216
|
-
export type { Bounds, DebugLevel, EmitterSource };
|
|
217
|
-
export { Parchment, Range };
|
|
218
|
-
export { globalRegistry, expandConfig, overload, Quill as default };
|