@tectra-ng/editor 0.0.1 → 0.1.5

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.
@@ -0,0 +1,676 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Command, EditorState, Plugin, PluginKey } from "prosemirror-state";
3
+ import { TxPassThroughOptions, TxTranslations } from "@tectra-ng/core/config";
4
+ import { TxIconSet } from "@tectra-ng/icons";
5
+ import { Node, Schema } from "prosemirror-model";
6
+ import { ConnectedPosition } from "@angular/cdk/overlay";
7
+ import { TxFormControlBase } from "@tectra-ng/core/forms";
8
+ import { TxEditorFormat } from "@tectra-ng/editor/content";
9
+ import { TectraDeepPartial } from "@tectra-ng/themes";
10
+ import { TxMenuItem } from "@tectra-ng/ui/menu";
11
+ import { EditorView } from "prosemirror-view";
12
+ export type TxEditorTool = 'undo' | 'redo' | 'blockStyle' | 'fontSize' | 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'subscript' | 'superscript' | 'textColor' | 'highlight' | 'bulletList' | 'orderedList' | 'taskList' | 'outdent' | 'indent' | 'align' | 'link' | 'image' | 'video' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'clearFormatting' | 'table' | 'callout';
13
+ export type TxEditorToolbarPreset = 'full' | 'compact' | 'minimal' | 'none';
14
+ export type TxEditorToolbar = TxEditorToolbarPreset | readonly (readonly TxEditorTool[])[];
15
+ export type TxEditorHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
16
+ export type TxEditorAlign = 'left' | 'center' | 'right' | 'justify';
17
+ export type TxEditorPart = 'root' | 'toolbar' | 'tool' | 'content' | 'footer' | 'bubble' | 'suggestions';
18
+ export interface TxEditorColor {
19
+ label: string;
20
+ value: string;
21
+ }
22
+ export interface TxEditorMentionItem {
23
+ id: string;
24
+ label: string;
25
+ description?: string;
26
+ avatar?: string;
27
+ }
28
+ export type TxEditorMentionSource = (query: string) => readonly TxEditorMentionItem[] | Promise<readonly TxEditorMentionItem[]>;
29
+ export type TxEditorImageUpload = (file: File) => Promise<string>;
30
+ export interface TxEditorImageRejection {
31
+ file: File;
32
+ reason: 'type' | 'size';
33
+ message: string;
34
+ }
35
+ export interface TxEditorSelection {
36
+ from: number;
37
+ to: number;
38
+ empty: boolean;
39
+ text: string;
40
+ }
41
+ export interface TxEditorTextChange {
42
+ html: string;
43
+ text: string;
44
+ }
45
+ export interface TxEditorAiAction {
46
+ id: string;
47
+ label: string;
48
+ icon?: string;
49
+ }
50
+ export interface TxEditorAiRequest {
51
+ action: TxEditorAiAction;
52
+ text: string;
53
+ html: string;
54
+ replace: (content: string | AsyncIterable<string>) => Promise<void>;
55
+ }
56
+ export declare class TxEditorToolbarEnd {
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxEditorToolbarEnd, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TxEditorToolbarEnd, "[txEditorToolbarEnd]", never, {}, {}, never, never, true, never>;
59
+ }
60
+ export interface TxEditorToolSpec {
61
+ icon: string;
62
+ label: keyof TxTranslations;
63
+ shortcut?: string;
64
+ command?: Command;
65
+ active?: (state: EditorState) => boolean;
66
+ }
67
+ export declare const TX_EDITOR_TOOLBARS: Record<Exclude<TxEditorToolbarPreset, 'none'>, readonly (readonly TxEditorTool[])[]>;
68
+ export declare const TX_EDITOR_TOOLS: Record<TxEditorTool, TxEditorToolSpec>;
69
+ export declare const TX_EDITOR_ALIGN_ICONS: {
70
+ readonly left: "align-left";
71
+ readonly center: "align-center";
72
+ readonly right: "align-right";
73
+ readonly justify: "align-justify";
74
+ };
75
+ export declare const TX_EDITOR_FONT_SIZES: readonly [{
76
+ readonly label: "editorSizeSmall";
77
+ readonly value: "0.75em";
78
+ }, {
79
+ readonly label: "editorSizeNormal";
80
+ readonly value: null;
81
+ }, {
82
+ readonly label: "editorSizeLarge";
83
+ readonly value: "1.5em";
84
+ }, {
85
+ readonly label: "editorSizeHuge";
86
+ readonly value: "2.5em";
87
+ }];
88
+ export declare const TX_EDITOR_TEXT_COLORS: readonly TxEditorColor[];
89
+ export declare const TX_EDITOR_HIGHLIGHT_COLORS: readonly TxEditorColor[];
90
+ export declare function shortcutLabel(shortcut: string, mac: boolean): string;
91
+ export declare const TX_EDITOR_ICONS: TxIconSet;
92
+ export declare const INDENT_STEP_EM = 3;
93
+ export declare const MAX_INDENT = 8;
94
+ export interface TxBlockAttrs {
95
+ align: string | null;
96
+ indent: number;
97
+ dir: string | null;
98
+ }
99
+ export declare function toVideoEmbed(value: string): string | null;
100
+ export declare const CALLOUT_TONES: string[];
101
+ export declare const txEditorSchema: Schema<string, string>;
102
+ export type TxEditorSchema = typeof txEditorSchema;
103
+ interface TxAiRange {
104
+ from: number;
105
+ to: number;
106
+ done: boolean;
107
+ }
108
+ declare const aiKey: PluginKey<TxAiRange | null>;
109
+ declare function aiPlugin(): Plugin<TxAiRange | null>;
110
+ declare function textLength(doc: Node): number;
111
+ declare function placeholderPlugin(text: () => string): Plugin;
112
+ declare function maxLengthPlugin(limit: () => number | undefined): Plugin;
113
+ declare function normalizeHref(value: string): string;
114
+ declare function autolinkPlugin(target: () => string | null): Plugin;
115
+ type TxSuggestionKind = 'mention' | 'slash' | 'emoji';
116
+ interface TxSuggestionTrigger {
117
+ kind: TxSuggestionKind;
118
+ char: string;
119
+ minLength: number;
120
+ }
121
+ interface TxSuggestionMatch {
122
+ kind: TxSuggestionKind;
123
+ from: number;
124
+ to: number;
125
+ query: string;
126
+ }
127
+ interface TxSuggestionHandlers {
128
+ change: (match: TxSuggestionMatch | null, view: EditorView) => void;
129
+ keydown: (event: KeyboardEvent) => boolean;
130
+ }
131
+ declare const suggestionKey: PluginKey<{
132
+ dismissedAt: number | null;
133
+ }>;
134
+ declare function findSuggestion(state: EditorState, triggers: readonly TxSuggestionTrigger[]): TxSuggestionMatch | null;
135
+ declare function suggestionPlugin(triggers: () => readonly TxSuggestionTrigger[], handlers: TxSuggestionHandlers): Plugin;
136
+ declare function selectionText(state: EditorState): string;
137
+ interface TxEditorEmoji {
138
+ name: string;
139
+ char: string;
140
+ aliases?: readonly string[];
141
+ }
142
+ declare const TX_EDITOR_EMOJI: readonly TxEditorEmoji[];
143
+ declare function matchEmoji(query: string, limit?: number): TxEditorEmoji[];
144
+ type TxEditorSlashCommand = 'paragraph' | 'heading1' | 'heading2' | 'heading3' | 'bulletList' | 'orderedList' | 'taskList' | 'blockquote' | 'codeBlock' | 'callout' | 'table' | 'divider' | 'image' | 'video';
145
+ interface TxEditorSlashItem {
146
+ id: TxEditorSlashCommand;
147
+ label: keyof TxTranslations;
148
+ level?: number;
149
+ icon: string;
150
+ keywords: readonly string[];
151
+ shortcut?: string;
152
+ }
153
+ declare const TX_EDITOR_SLASH_ITEMS: readonly TxEditorSlashItem[];
154
+ declare function matchSlashItems(items: readonly TxEditorSlashItem[], query: string, label: (item: TxEditorSlashItem) => string): TxEditorSlashItem[];
155
+ export interface TxEditorSuggestionOption {
156
+ id: string;
157
+ label: string;
158
+ description?: string;
159
+ avatar?: string;
160
+ icon?: string;
161
+ glyph?: string;
162
+ shortcut?: string;
163
+ value: TxEditorMentionItem | TxEditorSlashItem | TxEditorEmoji;
164
+ }
165
+ interface TxToolView {
166
+ tool: TxEditorTool;
167
+ index: number;
168
+ }
169
+ interface TxAnchorBox {
170
+ left: number;
171
+ top: number;
172
+ width: number;
173
+ height: number;
174
+ }
175
+ type TxEditorPopover = 'link' | 'textColor' | 'highlight' | 'video';
176
+ export declare class TxEditor extends TxFormControlBase<string> {
177
+ private document;
178
+ private host;
179
+ private destroyRef;
180
+ private injector;
181
+ private localeService;
182
+ readonly html: import("@angular/core").ModelSignal<string>;
183
+ readonly format: import("@angular/core").InputSignal<TxEditorFormat>;
184
+ readonly toolbar: import("@angular/core").InputSignal<TxEditorToolbar>;
185
+ readonly headingLevels: import("@angular/core").InputSignal<readonly TxEditorHeadingLevel[] | undefined>;
186
+ readonly placeholder: import("@angular/core").InputSignal<string>;
187
+ readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
188
+ readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
189
+ readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
190
+ readonly height: import("@angular/core").InputSignal<string | undefined>;
191
+ readonly minHeight: import("@angular/core").InputSignal<string | undefined>;
192
+ readonly maxHeight: import("@angular/core").InputSignal<string | undefined>;
193
+ readonly maxLength: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
194
+ readonly showCount: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
195
+ readonly linkTarget: import("@angular/core").InputSignal<"_blank" | "_self">;
196
+ readonly textColors: import("@angular/core").InputSignal<readonly TxEditorColor[]>;
197
+ readonly highlightColors: import("@angular/core").InputSignal<readonly TxEditorColor[]>;
198
+ readonly imageUpload: import("@angular/core").InputSignal<TxEditorImageUpload | undefined>;
199
+ readonly maxImageSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
200
+ readonly mentions: import("@angular/core").InputSignal<TxEditorMentionSource | undefined>;
201
+ readonly mentionTrigger: import("@angular/core").InputSignal<string>;
202
+ readonly slashMenu: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
203
+ readonly emoji: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
204
+ readonly typography: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
205
+ readonly draftKey: import("@angular/core").InputSignal<string | undefined>;
206
+ readonly selectionMenu: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
207
+ readonly ai: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
208
+ readonly aiLabel: import("@angular/core").InputSignal<string | undefined>;
209
+ readonly aiActions: import("@angular/core").InputSignal<readonly TxEditorAiAction[]>;
210
+ readonly fullView: import("@angular/core").ModelSignal<boolean>;
211
+ readonly fullViewButton: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
212
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
213
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string | undefined>;
214
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
215
+ root: {
216
+ borderRadius: string;
217
+ background: string;
218
+ transitionDuration: string;
219
+ easing: string;
220
+ };
221
+ toolbar: {
222
+ padding: string;
223
+ gap: string;
224
+ background: string;
225
+ borderColor: string;
226
+ separatorColor: string;
227
+ separatorHeight: string;
228
+ separatorSpacing: string;
229
+ };
230
+ tool: {
231
+ size: string;
232
+ borderRadius: string;
233
+ iconSize: string;
234
+ color: string;
235
+ hoverBackground: string;
236
+ hoverColor: string;
237
+ activeBackground: string;
238
+ activeColor: string;
239
+ disabledOpacity: string;
240
+ labelFontSize: string;
241
+ labelFontWeight: string;
242
+ labelPadding: string;
243
+ focusRingWidth: string;
244
+ focusRingColor: string;
245
+ };
246
+ ai: {
247
+ background: string;
248
+ hoverBackground: string;
249
+ color: string;
250
+ animationDuration: string;
251
+ };
252
+ content: {
253
+ padding: string;
254
+ minHeight: string;
255
+ placeholderColor: string;
256
+ };
257
+ footer: {
258
+ padding: string;
259
+ color: string;
260
+ fontSize: string;
261
+ limitColor: string;
262
+ };
263
+ image: {
264
+ handleWidth: string;
265
+ handleHeight: string;
266
+ handleBackground: string;
267
+ handleBorderColor: string;
268
+ handleShadow: string;
269
+ dropCursorColor: string;
270
+ };
271
+ bubble: {
272
+ padding: string;
273
+ gap: string;
274
+ borderRadius: string;
275
+ background: string;
276
+ borderColor: string;
277
+ shadow: string;
278
+ offset: string;
279
+ linkMaxWidth: string;
280
+ };
281
+ popover: {
282
+ padding: string;
283
+ gap: string;
284
+ width: string;
285
+ };
286
+ swatch: {
287
+ size: string;
288
+ gap: string;
289
+ borderRadius: string;
290
+ ring: string;
291
+ selectedRing: string;
292
+ };
293
+ suggestion: {
294
+ width: string;
295
+ maxHeight: string;
296
+ padding: string;
297
+ itemPadding: string;
298
+ itemGap: string;
299
+ itemRadius: string;
300
+ itemFocusBackground: string;
301
+ avatarSize: string;
302
+ secondaryColor: string;
303
+ };
304
+ }> | undefined>;
305
+ readonly pt: import("@angular/core").InputSignal<Partial<Record<TxEditorPart, import("@tectra-ng/core/config").TxPassThroughValue<TxEditor>>> | undefined>;
306
+ readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
307
+ readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
308
+ readonly textChange: import("@angular/core").OutputEmitterRef<TxEditorTextChange>;
309
+ readonly selectionChange: import("@angular/core").OutputEmitterRef<TxEditorSelection>;
310
+ readonly focused: import("@angular/core").OutputEmitterRef<void>;
311
+ readonly blurred: import("@angular/core").OutputEmitterRef<void>;
312
+ readonly ready: import("@angular/core").OutputEmitterRef<EditorView>;
313
+ readonly aiRequested: import("@angular/core").OutputEmitterRef<string>;
314
+ readonly aiAction: import("@angular/core").OutputEmitterRef<TxEditorAiRequest>;
315
+ readonly imageRejected: import("@angular/core").OutputEmitterRef<TxEditorImageRejection>;
316
+ readonly mentionSelected: import("@angular/core").OutputEmitterRef<TxEditorMentionItem>;
317
+ readonly draftRestored: import("@angular/core").OutputEmitterRef<string>;
318
+ readonly translations: import("@angular/core").Signal<TxTranslations>;
319
+ readonly isUnstyled: import("@angular/core").Signal<boolean>;
320
+ readonly isInvalid: import("@angular/core").Signal<boolean>;
321
+ readonly passThrough: import("@angular/core").Signal<Partial<Record<TxEditorPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
322
+ protected readonly toolbarEnd: import("@angular/core").Signal<TxEditorToolbarEnd | undefined>;
323
+ private readonly mount;
324
+ private readonly frame;
325
+ private readonly fullHost;
326
+ private readonly toolbarElement;
327
+ private readonly imageInput;
328
+ private readonly bubbleAnchor;
329
+ private readonly suggestAnchor;
330
+ private readonly popover;
331
+ private readonly blockMenuRef;
332
+ private readonly alignMenuRef;
333
+ private readonly sizeMenuRef;
334
+ private readonly aiMenuRef;
335
+ private readonly bubbleOverlay;
336
+ private readonly suggestOverlay;
337
+ protected readonly id: string;
338
+ protected readonly mac: boolean;
339
+ protected readonly version: import("@angular/core").WritableSignal<number>;
340
+ protected readonly hasFocus: import("@angular/core").WritableSignal<boolean>;
341
+ protected readonly pointerDown: import("@angular/core").WritableSignal<boolean>;
342
+ protected readonly bubbleBox: import("@angular/core").WritableSignal<TxAnchorBox>;
343
+ protected readonly suggestBox: import("@angular/core").WritableSignal<TxAnchorBox>;
344
+ protected readonly suggestion: import("@angular/core").WritableSignal<TxSuggestionMatch | null>;
345
+ protected readonly suggestionItems: import("@angular/core").WritableSignal<readonly TxEditorSuggestionOption[]>;
346
+ protected readonly suggestionIndex: import("@angular/core").WritableSignal<number>;
347
+ protected readonly popoverKind: import("@angular/core").WritableSignal<TxEditorPopover | null>;
348
+ protected readonly popoverOpen: import("@angular/core").WritableSignal<boolean>;
349
+ protected readonly linkDraft: import("@angular/core").WritableSignal<string>;
350
+ protected readonly videoDraft: import("@angular/core").WritableSignal<string>;
351
+ protected readonly focusIndex: import("@angular/core").WritableSignal<number>;
352
+ protected readonly placeholderHeight: import("@angular/core").WritableSignal<number | null>;
353
+ protected readonly bubbleTools: readonly TxEditorTool[];
354
+ protected readonly scrollStrategy: import("@angular/cdk/overlay").ScrollStrategy;
355
+ private readonly abovePositions;
356
+ private readonly belowPositions;
357
+ protected readonly bubblePositions: import("@angular/core").Signal<ConnectedPosition[]>;
358
+ protected readonly suggestPositions: ConnectedPosition[];
359
+ readonly isDisabled: import("@angular/core").Signal<boolean>;
360
+ readonly editable: import("@angular/core").Signal<boolean>;
361
+ protected readonly groups: import("@angular/core").Signal<TxToolView[][]>;
362
+ protected readonly toolCount: import("@angular/core").Signal<number>;
363
+ protected readonly showFullViewButton: import("@angular/core").Signal<boolean>;
364
+ protected readonly levels: import("@angular/core").Signal<readonly TxEditorHeadingLevel[]>;
365
+ protected readonly state: import("@angular/core").Signal<{
366
+ active: Record<TxEditorTool, boolean>;
367
+ canUndo: boolean;
368
+ canRedo: boolean;
369
+ block: number;
370
+ align: TxEditorAlign;
371
+ color: string | null;
372
+ background: string | null;
373
+ fontSize: string | null;
374
+ inCode: boolean;
375
+ table: boolean;
376
+ ai: TxAiRange | null | undefined;
377
+ headerRow: boolean;
378
+ empty: boolean;
379
+ link: {
380
+ from: number;
381
+ to: number;
382
+ href: string;
383
+ } | null;
384
+ count: number;
385
+ } | null>;
386
+ protected readonly blockLabel: import("@angular/core").Signal<string>;
387
+ protected readonly blockMenu: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
388
+ protected readonly alignMenu: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
389
+ protected readonly aiMenu: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
390
+ protected readonly sizeMenu: import("@angular/core").Signal<TxMenuItem<unknown>[]>;
391
+ protected readonly countLabel: import("@angular/core").Signal<string>;
392
+ protected readonly showBubble: import("@angular/core").Signal<boolean>;
393
+ protected readonly activeSuggestion: import("@angular/core").Signal<TxEditorSuggestionOption>;
394
+ protected readonly showSuggestions: import("@angular/core").Signal<boolean>;
395
+ protected readonly suggestionLabel: import("@angular/core").Signal<string>;
396
+ private readonly triggers;
397
+ protected readonly contentStyle: import("@angular/core").Signal<{
398
+ height: string | null;
399
+ minHeight: string | null;
400
+ maxHeight: string | null;
401
+ }>;
402
+ readonly hostStyle: import("@angular/core").Signal<{
403
+ [x: string]: string;
404
+ }>;
405
+ private view;
406
+ private lastValue;
407
+ private suggestionRequest;
408
+ private popoverRange;
409
+ private frameMarker;
410
+ private aiOriginal;
411
+ private draftTimer;
412
+ constructor();
413
+ writeValue(value: string | null): void;
414
+ focus(): void;
415
+ clear(): void;
416
+ getHtml(): string;
417
+ getText(): string;
418
+ insertHtml(html: string): void;
419
+ get editorView(): EditorView | null;
420
+ protected toolLabel(tool: TxEditorTool): string;
421
+ protected toolName(tool: TxEditorTool): string;
422
+ protected toolIcon(tool: TxEditorTool): string;
423
+ protected toolDisabled(tool: TxEditorTool): boolean;
424
+ protected onToolClick(event: MouseEvent, tool: TxEditorTool, index: number): void;
425
+ protected onToolbarKeydown(event: KeyboardEvent): void;
426
+ protected toggleFullView(): void;
427
+ protected requestAi(): void;
428
+ protected unmountFullView(): void;
429
+ protected onFullViewOpened(): void;
430
+ private mountFullView;
431
+ protected openLink(target?: Element | null): void;
432
+ protected applyLink(): void;
433
+ protected removeLink(): void;
434
+ protected openCurrentLink(): void;
435
+ protected applyColor(kind: 'textColor' | 'highlight', value: string | null): void;
436
+ protected applyVideo(): void;
437
+ protected closePopover(): void;
438
+ protected onPopoverClosed(): void;
439
+ protected onImagePicked(event: Event): void;
440
+ protected pickSuggestion(option: TxEditorSuggestionOption): void;
441
+ protected openAiMenu(event: MouseEvent): void;
442
+ protected keepAi(): void;
443
+ protected discardAi(): void;
444
+ private requestAiAction;
445
+ private replaceAi;
446
+ private writeAi;
447
+ protected tableAction(action: 'rowAbove' | 'rowBelow' | 'columnLeft' | 'columnRight' | 'deleteRow' | 'deleteColumn' | 'header' | 'delete'): void;
448
+ private runSlash;
449
+ protected colorLabel(color: TxEditorColor): string;
450
+ protected initials(label: string): string;
451
+ protected isMenuTool(tool: TxEditorTool): boolean;
452
+ protected isPopoverTool(tool: TxEditorTool): boolean;
453
+ protected isToggleTool(tool: TxEditorTool): boolean;
454
+ protected popoverLabel(): string;
455
+ protected optionId(index: number): string;
456
+ protected run(command: Command): void;
457
+ protected keepFocus(event: MouseEvent): void;
458
+ private openPopover;
459
+ private createView;
460
+ private onTransaction;
461
+ private emitValue;
462
+ private serialize;
463
+ private applyExternal;
464
+ private setContent;
465
+ private refreshBubble;
466
+ private onSuggestion;
467
+ private loadSuggestions;
468
+ private onSuggestionKey;
469
+ private syncActiveDescendant;
470
+ private pasteLink;
471
+ clearDraft(): void;
472
+ private storage;
473
+ private saveDraft;
474
+ private restoreDraft;
475
+ private handleFiles;
476
+ private insertImage;
477
+ private readAsDataUrl;
478
+ static ɵfac: i0.ɵɵFactoryDeclaration<TxEditor, never>;
479
+ static ɵcmp: i0.ɵɵComponentDeclaration<TxEditor, "tx-editor", never, {
480
+ "html": {
481
+ "alias": "html";
482
+ "required": false;
483
+ "isSignal": true;
484
+ };
485
+ "format": {
486
+ "alias": "format";
487
+ "required": false;
488
+ "isSignal": true;
489
+ };
490
+ "toolbar": {
491
+ "alias": "toolbar";
492
+ "required": false;
493
+ "isSignal": true;
494
+ };
495
+ "headingLevels": {
496
+ "alias": "headingLevels";
497
+ "required": false;
498
+ "isSignal": true;
499
+ };
500
+ "placeholder": {
501
+ "alias": "placeholder";
502
+ "required": false;
503
+ "isSignal": true;
504
+ };
505
+ "readonly": {
506
+ "alias": "readonly";
507
+ "required": false;
508
+ "isSignal": true;
509
+ };
510
+ "disabledInput": {
511
+ "alias": "disabled";
512
+ "required": false;
513
+ "isSignal": true;
514
+ };
515
+ "invalid": {
516
+ "alias": "invalid";
517
+ "required": false;
518
+ "isSignal": true;
519
+ };
520
+ "height": {
521
+ "alias": "height";
522
+ "required": false;
523
+ "isSignal": true;
524
+ };
525
+ "minHeight": {
526
+ "alias": "minHeight";
527
+ "required": false;
528
+ "isSignal": true;
529
+ };
530
+ "maxHeight": {
531
+ "alias": "maxHeight";
532
+ "required": false;
533
+ "isSignal": true;
534
+ };
535
+ "maxLength": {
536
+ "alias": "maxLength";
537
+ "required": false;
538
+ "isSignal": true;
539
+ };
540
+ "showCount": {
541
+ "alias": "showCount";
542
+ "required": false;
543
+ "isSignal": true;
544
+ };
545
+ "linkTarget": {
546
+ "alias": "linkTarget";
547
+ "required": false;
548
+ "isSignal": true;
549
+ };
550
+ "textColors": {
551
+ "alias": "textColors";
552
+ "required": false;
553
+ "isSignal": true;
554
+ };
555
+ "highlightColors": {
556
+ "alias": "highlightColors";
557
+ "required": false;
558
+ "isSignal": true;
559
+ };
560
+ "imageUpload": {
561
+ "alias": "imageUpload";
562
+ "required": false;
563
+ "isSignal": true;
564
+ };
565
+ "maxImageSize": {
566
+ "alias": "maxImageSize";
567
+ "required": false;
568
+ "isSignal": true;
569
+ };
570
+ "mentions": {
571
+ "alias": "mentions";
572
+ "required": false;
573
+ "isSignal": true;
574
+ };
575
+ "mentionTrigger": {
576
+ "alias": "mentionTrigger";
577
+ "required": false;
578
+ "isSignal": true;
579
+ };
580
+ "slashMenu": {
581
+ "alias": "slashMenu";
582
+ "required": false;
583
+ "isSignal": true;
584
+ };
585
+ "emoji": {
586
+ "alias": "emoji";
587
+ "required": false;
588
+ "isSignal": true;
589
+ };
590
+ "typography": {
591
+ "alias": "typography";
592
+ "required": false;
593
+ "isSignal": true;
594
+ };
595
+ "draftKey": {
596
+ "alias": "draftKey";
597
+ "required": false;
598
+ "isSignal": true;
599
+ };
600
+ "selectionMenu": {
601
+ "alias": "selectionMenu";
602
+ "required": false;
603
+ "isSignal": true;
604
+ };
605
+ "ai": {
606
+ "alias": "ai";
607
+ "required": false;
608
+ "isSignal": true;
609
+ };
610
+ "aiLabel": {
611
+ "alias": "aiLabel";
612
+ "required": false;
613
+ "isSignal": true;
614
+ };
615
+ "aiActions": {
616
+ "alias": "aiActions";
617
+ "required": false;
618
+ "isSignal": true;
619
+ };
620
+ "fullView": {
621
+ "alias": "fullView";
622
+ "required": false;
623
+ "isSignal": true;
624
+ };
625
+ "fullViewButton": {
626
+ "alias": "fullViewButton";
627
+ "required": false;
628
+ "isSignal": true;
629
+ };
630
+ "ariaLabel": {
631
+ "alias": "ariaLabel";
632
+ "required": false;
633
+ "isSignal": true;
634
+ };
635
+ "ariaLabelledBy": {
636
+ "alias": "ariaLabelledBy";
637
+ "required": false;
638
+ "isSignal": true;
639
+ };
640
+ "dt": {
641
+ "alias": "dt";
642
+ "required": false;
643
+ "isSignal": true;
644
+ };
645
+ "pt": {
646
+ "alias": "pt";
647
+ "required": false;
648
+ "isSignal": true;
649
+ };
650
+ "ptOptions": {
651
+ "alias": "ptOptions";
652
+ "required": false;
653
+ "isSignal": true;
654
+ };
655
+ "unstyled": {
656
+ "alias": "unstyled";
657
+ "required": false;
658
+ "isSignal": true;
659
+ };
660
+ }, {
661
+ "html": "htmlChange";
662
+ "fullView": "fullViewChange";
663
+ "textChange": "textChange";
664
+ "selectionChange": "selectionChange";
665
+ "focused": "focused";
666
+ "blurred": "blurred";
667
+ "ready": "ready";
668
+ "aiRequested": "aiRequested";
669
+ "aiAction": "aiAction";
670
+ "imageRejected": "imageRejected";
671
+ "mentionSelected": "mentionSelected";
672
+ "draftRestored": "draftRestored";
673
+ }, ["toolbarEnd"], ["[txEditorToolbarEnd]"], true, never>;
674
+ }
675
+ export {};
676
+ //# sourceMappingURL=tectra-ng-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-editor.d.ts","names":[],"sources":["../../../../packages/editor/src/editor.types.ts","../../../../packages/editor/src/editor.slots.ts","../../../../packages/editor/src/editor.toolbar.ts","../../../../packages/editor/src/engine/schema.ts","../../../../packages/editor/src/engine/ai.ts","../../../../packages/editor/src/engine/plugins.ts","../../../../packages/editor/src/editor.emoji.ts","../../../../packages/editor/src/editor.slash.ts","../../../../packages/editor/src/editor.component.ts"],"mappings":";;;;;;;;;;;YAAY;YA8BA;YAEA,kBAAkB,2CAA2C;YAE7D;YAEA;YAEA;iBAEK;EACf;EACA;;iBAGe;EACf;EACA;EACA;EACA;;YAGU,yBAAyB,2BAA2B,wBAAwB,iBAAiB;YAE7F,uBAAuB,MAAM,SAAS;iBAEjC;EACf,MAAM;EACN;EACA;;iBAGe;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe;EACf,QAAQ;EACR;EACA;EACA,UAAU,kBAAkB,0BAA0B;;qBCjF3C;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;iBCQI;EACf;EACA,aAAa;EACb;EACA,UAAU;EACV,UAAU,OAAO;;qBAGN,oBAAoB,OAAO,QAAQ,mDAAmD;qBAetF,iBAAiB,OAAO,cAAc;qBAyCtC;;;;;;qBAEA;;;;;;;;;;;;;qBAOA,gCAAgC;qBAYhC,qCAAqC;wBAYlC,cAAc,kBAAkB;qBAOnC,iBAAiB;qBC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