@qalma/editor 0.0.1-alpha.0
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/README.md +45 -0
- package/fesm2022/qalma-editor.mjs +3228 -0
- package/fesm2022/qalma-editor.mjs.map +1 -0
- package/package.json +52 -0
- package/types/qalma-editor.d.ts +274 -0
- package/types/qalma-editor.d.ts.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qalma/editor",
|
|
3
|
+
"version": "0.0.1-alpha.0",
|
|
4
|
+
"description": "Angular-first headless rich text editor toolkit built on ProseMirror.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/cdskill/angular-rte.git",
|
|
10
|
+
"directory": "libs/editor"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/cdskill/angular-rte/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/cdskill/angular-rte#readme",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"angular",
|
|
18
|
+
"editor",
|
|
19
|
+
"headless",
|
|
20
|
+
"prosemirror",
|
|
21
|
+
"rich-text"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"tag": "alpha"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/core": ">=21.0.0 <22.0.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"prosemirror-commands": "^1.7.1",
|
|
32
|
+
"prosemirror-history": "^1.5.0",
|
|
33
|
+
"prosemirror-keymap": "^1.2.3",
|
|
34
|
+
"prosemirror-model": "^1.25.7",
|
|
35
|
+
"prosemirror-schema-list": "^1.5.1",
|
|
36
|
+
"prosemirror-state": "^1.4.4",
|
|
37
|
+
"prosemirror-view": "^1.41.8",
|
|
38
|
+
"tslib": "^2.3.0"
|
|
39
|
+
},
|
|
40
|
+
"module": "fesm2022/qalma-editor.mjs",
|
|
41
|
+
"typings": "types/qalma-editor.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
"./package.json": {
|
|
44
|
+
"default": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
".": {
|
|
47
|
+
"types": "./types/qalma-editor.d.ts",
|
|
48
|
+
"default": "./fesm2022/qalma-editor.mjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"type": "module"
|
|
52
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { NodeSpec, MarkSpec, Schema } from 'prosemirror-model';
|
|
4
|
+
import { Command, EditorState, Plugin } from 'prosemirror-state';
|
|
5
|
+
import * as _qalma_editor from '@qalma/editor';
|
|
6
|
+
|
|
7
|
+
declare class QalmaCommand {
|
|
8
|
+
readonly command: i0.InputSignal<string>;
|
|
9
|
+
readonly qalmaCommandValue: i0.InputSignal<unknown>;
|
|
10
|
+
private readonly context;
|
|
11
|
+
private readonly editor;
|
|
12
|
+
protected readonly active: i0.Signal<boolean>;
|
|
13
|
+
protected readonly disabled: i0.Signal<boolean>;
|
|
14
|
+
protected readonly ariaPressed: i0.Signal<string | null>;
|
|
15
|
+
protected execute(): void;
|
|
16
|
+
protected preserveSelection(event: MouseEvent): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QalmaCommand, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<QalmaCommand, "button[qalmaCommand]", never, { "command": { "alias": "qalmaCommand"; "required": true; "isSignal": true; }; "qalmaCommandValue": { "alias": "qalmaCommandValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class QalmaContent {
|
|
22
|
+
private readonly context;
|
|
23
|
+
private readonly destroyRef;
|
|
24
|
+
private readonly editorHost;
|
|
25
|
+
private mountedHost?;
|
|
26
|
+
constructor();
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QalmaContent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QalmaContent, "qalma-content", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type QalmaStateQuery = (state: EditorState) => boolean;
|
|
32
|
+
type QalmaQuery<TValue = unknown> = (state: EditorState) => TValue;
|
|
33
|
+
type QalmaCommandValue = unknown;
|
|
34
|
+
type QalmaCommandHandler = (state: Parameters<Command>[0], dispatch?: Parameters<Command>[1], view?: Parameters<Command>[2], value?: QalmaCommandValue) => boolean;
|
|
35
|
+
interface QalmaPlugin {
|
|
36
|
+
key: string;
|
|
37
|
+
nodes?: Record<string, NodeSpec>;
|
|
38
|
+
extendNodes?: (nodes: Readonly<Record<string, NodeSpec>>) => Record<string, NodeSpec>;
|
|
39
|
+
marks?: Record<string, MarkSpec>;
|
|
40
|
+
commands?: (schema: Schema) => Record<string, QalmaCommandHandler>;
|
|
41
|
+
commandStates?: (schema: Schema) => Record<string, QalmaStateQuery>;
|
|
42
|
+
queries?: (schema: Schema) => Record<string, QalmaQuery>;
|
|
43
|
+
shortcuts?: (schema: Schema) => Record<string, Command>;
|
|
44
|
+
prosemirrorPlugins?: (schema: Schema) => Plugin[];
|
|
45
|
+
}
|
|
46
|
+
interface ConfigurableQalmaPlugin<TOptions extends object> extends QalmaPlugin {
|
|
47
|
+
readonly options: Readonly<TOptions>;
|
|
48
|
+
configure(options?: Partial<TOptions>): ConfigurableQalmaPlugin<TOptions>;
|
|
49
|
+
}
|
|
50
|
+
declare function createQalmaPlugin(plugin: QalmaPlugin): QalmaPlugin;
|
|
51
|
+
declare function createConfigurableQalmaPlugin<TOptions extends object>(defaultOptions: Readonly<TOptions>, createPlugin: (options: Readonly<TOptions>) => QalmaPlugin, options?: Partial<TOptions>): ConfigurableQalmaPlugin<TOptions>;
|
|
52
|
+
|
|
53
|
+
interface QalmaEditorOptions {
|
|
54
|
+
content?: string;
|
|
55
|
+
editable?: boolean;
|
|
56
|
+
plugins?: readonly QalmaPlugin[];
|
|
57
|
+
}
|
|
58
|
+
declare class QalmaEditorController {
|
|
59
|
+
readonly html: Signal<string>;
|
|
60
|
+
readonly editable: Signal<boolean>;
|
|
61
|
+
private readonly plugins;
|
|
62
|
+
private readonly schema;
|
|
63
|
+
private readonly htmlState;
|
|
64
|
+
private readonly editableState;
|
|
65
|
+
private readonly viewVersion;
|
|
66
|
+
private readonly commands;
|
|
67
|
+
private readonly commandStates;
|
|
68
|
+
private readonly queries;
|
|
69
|
+
private editorState?;
|
|
70
|
+
private editorView?;
|
|
71
|
+
private host?;
|
|
72
|
+
constructor(options?: QalmaEditorOptions);
|
|
73
|
+
mount(host: HTMLElement): void;
|
|
74
|
+
unmount(host?: HTMLElement): void;
|
|
75
|
+
execute(commandName: string, value?: QalmaCommandValue): boolean;
|
|
76
|
+
canExecute(commandName: string, value?: QalmaCommandValue): boolean;
|
|
77
|
+
hasCommandState(commandName: string): boolean;
|
|
78
|
+
isCommandActive(commandName: string): boolean;
|
|
79
|
+
hasQuery(queryName: string): boolean;
|
|
80
|
+
query<TValue = unknown>(queryName: string): TValue | null;
|
|
81
|
+
setHtml(html: string): void;
|
|
82
|
+
setEditable(editable: boolean): void;
|
|
83
|
+
focus(): void;
|
|
84
|
+
private dispatchTransaction;
|
|
85
|
+
private syncHtmlFromEditorState;
|
|
86
|
+
private bumpViewVersion;
|
|
87
|
+
private createEditorAttributes;
|
|
88
|
+
}
|
|
89
|
+
declare function createQalmaEditor(options?: QalmaEditorOptions): QalmaEditorController;
|
|
90
|
+
|
|
91
|
+
interface QalmaEditorContext {
|
|
92
|
+
readonly editor: Signal<QalmaEditorController>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class QalmaEditor implements QalmaEditorContext {
|
|
96
|
+
readonly editor: i0.InputSignal<QalmaEditorController>;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QalmaEditor, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QalmaEditor, "qalma-editor", never, { "editor": { "alias": "editor"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class QalmaToolbar {
|
|
102
|
+
readonly label: i0.InputSignal<string>;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QalmaToolbar, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QalmaToolbar, "qalma-toolbar", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare const BlockquotePlugin: QalmaPlugin;
|
|
108
|
+
declare const BlockquoteKit: readonly QalmaPlugin[];
|
|
109
|
+
|
|
110
|
+
declare const ClearFormattingPlugin: QalmaPlugin;
|
|
111
|
+
declare const ClearFormattingKit: readonly QalmaPlugin[];
|
|
112
|
+
|
|
113
|
+
interface CodeBlockPluginOptions {
|
|
114
|
+
languages: readonly string[];
|
|
115
|
+
defaultLanguage: string;
|
|
116
|
+
languageClassPrefix: string;
|
|
117
|
+
indentText: string;
|
|
118
|
+
}
|
|
119
|
+
declare const CODE_BLOCK_PLUGIN_DEFAULT_OPTIONS: Readonly<CodeBlockPluginOptions>;
|
|
120
|
+
declare const CodeBlockPlugin: _qalma_editor.ConfigurableQalmaPlugin<CodeBlockPluginOptions>;
|
|
121
|
+
declare const CodeBlockKit: readonly QalmaPlugin[];
|
|
122
|
+
|
|
123
|
+
type ColorCommandValue = string;
|
|
124
|
+
declare const ColorPlugin: QalmaPlugin;
|
|
125
|
+
declare const ColorKit: readonly QalmaPlugin[];
|
|
126
|
+
|
|
127
|
+
declare const HardBreakPlugin: QalmaPlugin;
|
|
128
|
+
declare const HardBreakKit: readonly QalmaPlugin[];
|
|
129
|
+
|
|
130
|
+
type HighlightCommandValue = string;
|
|
131
|
+
interface HighlightPluginOptions {
|
|
132
|
+
defaultColor: string;
|
|
133
|
+
}
|
|
134
|
+
declare const HIGHLIGHT_PLUGIN_DEFAULT_OPTIONS: Readonly<HighlightPluginOptions>;
|
|
135
|
+
declare const HighlightPlugin: _qalma_editor.ConfigurableQalmaPlugin<HighlightPluginOptions>;
|
|
136
|
+
declare const HighlightKit: readonly QalmaPlugin[];
|
|
137
|
+
|
|
138
|
+
interface HistoryPluginOptions {
|
|
139
|
+
depth: number;
|
|
140
|
+
newGroupDelay: number;
|
|
141
|
+
}
|
|
142
|
+
declare const HISTORY_PLUGIN_DEFAULT_OPTIONS: Readonly<HistoryPluginOptions>;
|
|
143
|
+
declare const HistoryPlugin: _qalma_editor.ConfigurableQalmaPlugin<HistoryPluginOptions>;
|
|
144
|
+
|
|
145
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
146
|
+
interface HeadingsPluginOptions {
|
|
147
|
+
levels: readonly HeadingLevel[];
|
|
148
|
+
}
|
|
149
|
+
declare const HEADING_LEVELS: readonly HeadingLevel[];
|
|
150
|
+
declare const HEADINGS_PLUGIN_DEFAULT_OPTIONS: Readonly<HeadingsPluginOptions>;
|
|
151
|
+
declare const HeadingsPlugin: _qalma_editor.ConfigurableQalmaPlugin<HeadingsPluginOptions>;
|
|
152
|
+
declare const HeadingsKit: readonly QalmaPlugin[];
|
|
153
|
+
|
|
154
|
+
interface ImageCommandValue {
|
|
155
|
+
src: string;
|
|
156
|
+
alt?: string | null;
|
|
157
|
+
title?: string | null;
|
|
158
|
+
previewSrc?: string | null;
|
|
159
|
+
}
|
|
160
|
+
type ImageUpdateCommandValue = Partial<ImageCommandValue>;
|
|
161
|
+
interface ImageState {
|
|
162
|
+
from: number;
|
|
163
|
+
to: number;
|
|
164
|
+
src: string;
|
|
165
|
+
alt: string;
|
|
166
|
+
title: string | null;
|
|
167
|
+
previewSrc: string | null;
|
|
168
|
+
}
|
|
169
|
+
interface ImagePluginOptions {
|
|
170
|
+
allowedProtocols: readonly string[];
|
|
171
|
+
allowRelativeImages: boolean;
|
|
172
|
+
defaultAlt: string;
|
|
173
|
+
}
|
|
174
|
+
declare const IMAGE_PLUGIN_DEFAULT_OPTIONS: Readonly<ImagePluginOptions>;
|
|
175
|
+
declare const ImagePlugin: _qalma_editor.ConfigurableQalmaPlugin<ImagePluginOptions>;
|
|
176
|
+
declare const ImageKit: readonly QalmaPlugin[];
|
|
177
|
+
|
|
178
|
+
interface LinkCommandValue {
|
|
179
|
+
href: string;
|
|
180
|
+
target?: '_blank' | null;
|
|
181
|
+
rel?: string | null;
|
|
182
|
+
}
|
|
183
|
+
type LinkCommandInput = string | LinkCommandValue;
|
|
184
|
+
interface LinkState extends LinkCommandValue {
|
|
185
|
+
from: number;
|
|
186
|
+
to: number;
|
|
187
|
+
text: string;
|
|
188
|
+
}
|
|
189
|
+
interface LinkElementTarget {
|
|
190
|
+
element: HTMLAnchorElement;
|
|
191
|
+
}
|
|
192
|
+
interface LinkRangeTarget {
|
|
193
|
+
from: number;
|
|
194
|
+
to: number;
|
|
195
|
+
}
|
|
196
|
+
type LinkSelectionTarget = LinkElementTarget | LinkRangeTarget;
|
|
197
|
+
interface LinkPluginOptions {
|
|
198
|
+
allowedProtocols: readonly string[];
|
|
199
|
+
allowRelativeLinks: boolean;
|
|
200
|
+
defaultTarget: '_blank' | null;
|
|
201
|
+
defaultRel: string | null;
|
|
202
|
+
}
|
|
203
|
+
declare const LINK_PLUGIN_DEFAULT_OPTIONS: Readonly<LinkPluginOptions>;
|
|
204
|
+
declare const LinkPlugin: _qalma_editor.ConfigurableQalmaPlugin<LinkPluginOptions>;
|
|
205
|
+
|
|
206
|
+
declare const ListsPlugin: QalmaPlugin;
|
|
207
|
+
declare const ListsKit: readonly QalmaPlugin[];
|
|
208
|
+
|
|
209
|
+
interface MentionCommandValue {
|
|
210
|
+
id: string;
|
|
211
|
+
label: string;
|
|
212
|
+
trigger?: string;
|
|
213
|
+
}
|
|
214
|
+
interface MentionState {
|
|
215
|
+
from: number;
|
|
216
|
+
to: number;
|
|
217
|
+
query: string;
|
|
218
|
+
trigger: string;
|
|
219
|
+
}
|
|
220
|
+
interface MentionPluginOptions {
|
|
221
|
+
trigger: string;
|
|
222
|
+
minQueryLength: number;
|
|
223
|
+
maxQueryLength: number;
|
|
224
|
+
appendSpaceOnInsert: boolean;
|
|
225
|
+
}
|
|
226
|
+
declare const MENTION_PLUGIN_DEFAULT_OPTIONS: Readonly<MentionPluginOptions>;
|
|
227
|
+
declare const MentionPlugin: _qalma_editor.ConfigurableQalmaPlugin<MentionPluginOptions>;
|
|
228
|
+
declare const MentionKit: readonly QalmaPlugin[];
|
|
229
|
+
|
|
230
|
+
interface PasteRulesPluginOptions {
|
|
231
|
+
autolink: boolean;
|
|
232
|
+
allowedProtocols: readonly string[];
|
|
233
|
+
allowRelativeLinks: boolean;
|
|
234
|
+
cleanHtml: boolean;
|
|
235
|
+
defaultProtocol: 'http' | 'https';
|
|
236
|
+
}
|
|
237
|
+
declare const PASTE_RULES_PLUGIN_DEFAULT_OPTIONS: Readonly<PasteRulesPluginOptions>;
|
|
238
|
+
declare const PasteRulesPlugin: _qalma_editor.ConfigurableQalmaPlugin<PasteRulesPluginOptions>;
|
|
239
|
+
|
|
240
|
+
interface PlaceholderPluginOptions {
|
|
241
|
+
placeholder: string;
|
|
242
|
+
className: string;
|
|
243
|
+
}
|
|
244
|
+
declare const PLACEHOLDER_PLUGIN_DEFAULT_OPTIONS: Readonly<PlaceholderPluginOptions>;
|
|
245
|
+
declare const PlaceholderPlugin: _qalma_editor.ConfigurableQalmaPlugin<PlaceholderPluginOptions>;
|
|
246
|
+
declare const PlaceholderKit: readonly QalmaPlugin[];
|
|
247
|
+
|
|
248
|
+
declare const SubscriptSuperscriptPlugin: QalmaPlugin;
|
|
249
|
+
declare const SubscriptSuperscriptKit: readonly QalmaPlugin[];
|
|
250
|
+
|
|
251
|
+
type TextAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
252
|
+
type TextAlignNode = 'paragraph' | 'heading' | 'listItem' | 'blockquote';
|
|
253
|
+
interface TextAlignPluginOptions {
|
|
254
|
+
alignments: readonly TextAlignment[];
|
|
255
|
+
nodes: readonly TextAlignNode[];
|
|
256
|
+
}
|
|
257
|
+
declare const TEXT_ALIGNMENTS: readonly TextAlignment[];
|
|
258
|
+
declare const TEXT_ALIGN_NODES: readonly TextAlignNode[];
|
|
259
|
+
declare const TEXT_ALIGN_PLUGIN_DEFAULT_OPTIONS: Readonly<TextAlignPluginOptions>;
|
|
260
|
+
declare const TextAlignPlugin: _qalma_editor.ConfigurableQalmaPlugin<TextAlignPluginOptions>;
|
|
261
|
+
declare const TextAlignKit: readonly QalmaPlugin[];
|
|
262
|
+
|
|
263
|
+
declare const BoldPlugin: QalmaPlugin;
|
|
264
|
+
declare const ItalicPlugin: QalmaPlugin;
|
|
265
|
+
declare const UnderlinePlugin: QalmaPlugin;
|
|
266
|
+
declare const StrikePlugin: QalmaPlugin;
|
|
267
|
+
declare const TextFormattingKit: readonly QalmaPlugin[];
|
|
268
|
+
|
|
269
|
+
declare const TrailingParagraphPlugin: QalmaPlugin;
|
|
270
|
+
declare const TrailingParagraphKit: readonly QalmaPlugin[];
|
|
271
|
+
|
|
272
|
+
export { BlockquoteKit, BlockquotePlugin, BoldPlugin, CODE_BLOCK_PLUGIN_DEFAULT_OPTIONS, ClearFormattingKit, ClearFormattingPlugin, CodeBlockKit, CodeBlockPlugin, ColorKit, ColorPlugin, HEADINGS_PLUGIN_DEFAULT_OPTIONS, HEADING_LEVELS, HIGHLIGHT_PLUGIN_DEFAULT_OPTIONS, HISTORY_PLUGIN_DEFAULT_OPTIONS, HardBreakKit, HardBreakPlugin, HeadingsKit, HeadingsPlugin, HighlightKit, HighlightPlugin, HistoryPlugin, IMAGE_PLUGIN_DEFAULT_OPTIONS, ImageKit, ImagePlugin, ItalicPlugin, LINK_PLUGIN_DEFAULT_OPTIONS, LinkPlugin, ListsKit, ListsPlugin, MENTION_PLUGIN_DEFAULT_OPTIONS, MentionKit, MentionPlugin, PASTE_RULES_PLUGIN_DEFAULT_OPTIONS, PLACEHOLDER_PLUGIN_DEFAULT_OPTIONS, PasteRulesPlugin, PlaceholderKit, PlaceholderPlugin, QalmaCommand, QalmaContent, QalmaEditor, QalmaEditorController, QalmaToolbar, StrikePlugin, SubscriptSuperscriptKit, SubscriptSuperscriptPlugin, TEXT_ALIGNMENTS, TEXT_ALIGN_NODES, TEXT_ALIGN_PLUGIN_DEFAULT_OPTIONS, TextAlignKit, TextAlignPlugin, TextFormattingKit, TrailingParagraphKit, TrailingParagraphPlugin, UnderlinePlugin, createConfigurableQalmaPlugin, createQalmaEditor, createQalmaPlugin };
|
|
273
|
+
export type { CodeBlockPluginOptions, ColorCommandValue, ConfigurableQalmaPlugin, HeadingLevel, HeadingsPluginOptions, HighlightCommandValue, HighlightPluginOptions, HistoryPluginOptions, ImageCommandValue, ImagePluginOptions, ImageState, ImageUpdateCommandValue, LinkCommandInput, LinkCommandValue, LinkElementTarget, LinkPluginOptions, LinkRangeTarget, LinkSelectionTarget, LinkState, MentionCommandValue, MentionPluginOptions, MentionState, PasteRulesPluginOptions, PlaceholderPluginOptions, QalmaCommandHandler, QalmaCommandValue, QalmaEditorOptions, QalmaPlugin, QalmaQuery, QalmaStateQuery, TextAlignNode, TextAlignPluginOptions, TextAlignment };
|
|
274
|
+
//# sourceMappingURL=qalma-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qalma-editor.d.ts","sources":["../../../../libs/editor/src/lib/editor/command.ts","../../../../libs/editor/src/lib/editor/content.ts","../../../../libs/editor/src/lib/plugins/qalma-plugin.ts","../../../../libs/editor/src/lib/editor/qalma-editor-controller.ts","../../../../libs/editor/src/lib/editor/editor-context.ts","../../../../libs/editor/src/lib/editor/editor.ts","../../../../libs/editor/src/lib/editor/toolbar.ts","../../../../libs/editor/src/lib/plugins/blockquote.ts","../../../../libs/editor/src/lib/plugins/clear-formatting.ts","../../../../libs/editor/src/lib/plugins/code-block.ts","../../../../libs/editor/src/lib/plugins/color.ts","../../../../libs/editor/src/lib/plugins/hard-break.ts","../../../../libs/editor/src/lib/plugins/highlight.ts","../../../../libs/editor/src/lib/plugins/history.ts","../../../../libs/editor/src/lib/plugins/headings.ts","../../../../libs/editor/src/lib/plugins/image.ts","../../../../libs/editor/src/lib/plugins/link.ts","../../../../libs/editor/src/lib/plugins/lists.ts","../../../../libs/editor/src/lib/plugins/mention.ts","../../../../libs/editor/src/lib/plugins/paste-rules.ts","../../../../libs/editor/src/lib/plugins/placeholder.ts","../../../../libs/editor/src/lib/plugins/subscript-superscript.ts","../../../../libs/editor/src/lib/plugins/text-align.ts","../../../../libs/editor/src/lib/plugins/text-formatting.ts","../../../../libs/editor/src/lib/plugins/trailing-paragraph.ts"],"mappings":";;;;;;AAIA,cAUa,YAAY;sBACPA,EAAA,CAAA,WAAA;gCACUA,EAAA,CAAA,WAAA;AAE1B;AACA;AAEA,+BAAyBA,EAAA,CAAA,MAAA;AAGzB,iCAA2BA,EAAA,CAAA,MAAA;AAI3B,oCAA8BA,EAAA,CAAA,MAAA;;AAU9B,uCAAmC,UAAU;yCAxBlC,YAAY;2CAAZ,YAAY;AA2BxB;;AC7BD,cASa,YAAY;AACvB;AACA;AAEA;;;yCAJW,YAAY;2CAAZ,YAAY;AAuBxB;;ACrCK,KAAM,eAAe,WAAW,WAAW;AAC3C,KAAM,UAAU,6BAA6B,WAAW;AACxD,KAAM,iBAAiB;KACjB,mBAAmB,WACtB,UAAU,CAAC,OAAO,iBACd,UAAU,CAAC,OAAO,aACtB,UAAU,CAAC,OAAO,cACjB,iBAAiB;UAGV,WAAW;;YAElB,MAAM,SAAS,QAAQ;0BAEtB,QAAQ,CAAC,MAAM,SAAS,QAAQ,OACpC,MAAM,SAAS,QAAQ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