BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies
This commit is contained in:
@@ -40,13 +40,13 @@ export class DeesInputWysiwyg extends DeesInputBase<string> {
|
||||
public static demo = demoFunc;
|
||||
|
||||
@property({ type: String })
|
||||
public value: string = '';
|
||||
accessor value: string = '';
|
||||
|
||||
@property({ type: String })
|
||||
public outputFormat: OutputFormat = 'html';
|
||||
accessor outputFormat: OutputFormat = 'html';
|
||||
|
||||
@state()
|
||||
public blocks: IBlock[] = [
|
||||
accessor blocks: IBlock[] = [
|
||||
{
|
||||
id: WysiwygShortcuts.generateBlockId(),
|
||||
type: 'paragraph',
|
||||
@@ -61,19 +61,19 @@ export class DeesInputWysiwyg extends DeesInputBase<string> {
|
||||
public slashMenu = DeesSlashMenu.getInstance();
|
||||
|
||||
@state()
|
||||
public draggedBlockId: string | null = null;
|
||||
accessor draggedBlockId: string | null = null;
|
||||
|
||||
@state()
|
||||
public dragOverBlockId: string | null = null;
|
||||
accessor dragOverBlockId: string | null = null;
|
||||
|
||||
@state()
|
||||
public dragOverPosition: 'before' | 'after' | null = null;
|
||||
accessor dragOverPosition: 'before' | 'after' | null = null;
|
||||
|
||||
// Formatting menu is now globally rendered
|
||||
public formattingMenu = DeesFormattingMenu.getInstance();
|
||||
|
||||
@state()
|
||||
private selectedText: string = '';
|
||||
accessor selectedText: string = '';
|
||||
|
||||
public editorContentRef: HTMLDivElement;
|
||||
public isComposing: boolean = false;
|
||||
|
||||
Reference in New Issue
Block a user