From 320deeceacda052549991ec03f88a7a89328ef2d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 1 Oct 2025 00:57:47 +0200 Subject: [PATCH] chore(dialogs)!: remove deprecated `setHTML` method Signed-off-by: Ferdinand Thiessen --- CHANGELOG.md | 1 + lib/dialogs.ts | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2991fe0d..27bde2727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ For Vue 3 apps nothing changed, meaning the app and this library will share the * This package now uses Vue 3 internally. * The deprecated FilePicker component export was removed to allow using this library in Vue 2 and Vue 3 apps. * The deprecated `Dialog.hide` method was removed, instead await the returned promise and wait for the user interaction. +* The deprecated `Dialog.setHTML` method was removed. If you need custom HTML content use `NcDialog` from `@nextcloud/vue`. * The `spawnDialog` helper method was removed, instead use the function provided by `@nextcloud/vue` ```diff - import { spawnDialog } from '@nextcloud/dialogs' diff --git a/lib/dialogs.ts b/lib/dialogs.ts index ab08458dd..95e5fecec 100644 --- a/lib/dialogs.ts +++ b/lib/dialogs.ts @@ -20,9 +20,6 @@ export class Dialog { #buttons: IDialogButton[] #severity?: IDialogSeverity - /** @deprecated */ - #html?: string - constructor( name: string, text: string, @@ -33,16 +30,6 @@ export class Dialog { this.#text = text this.#buttons = buttons this.#severity = severity - this.#html = undefined - } - - /** - * @deprecated DO NOT USE! It will be removed in the near future! - * @param html HTML content - */ - setHTML(html: string) { - this.#html = html - return this } /** @@ -58,7 +45,6 @@ export class Dialog { name: this.#name, text: this.#text, severity: this.#severity, - html: this.#html, }, ) if (!result) {