BREAKING CHANGE(decorators): Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies

This commit is contained in:
2025-11-17 13:27:11 +00:00
parent 70c29c778c
commit 92f69e2aa6
75 changed files with 2142 additions and 1901 deletions

View File

@@ -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;