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) {