Mark the existing popover implementation as deprecated
authorAlexander Ebert <ebert@woltlab.com>
Thu, 25 Jan 2024 11:37:01 +0000 (12:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 25 Jan 2024 15:29:59 +0000 (16:29 +0100)
ts/WoltLabSuite/Core/Controller/Popover.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js

index 619c09e5e1d797f8135c7e751e9eb5e1b91056ab..cb72e33b4cddc90a35c1a92c0cc5d151d5add98a 100644 (file)
@@ -4,6 +4,7 @@
  * @author  Alexander Ebert
  * @copyright  2001-2019 WoltLab GmbH
  * @license  GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @deprecated 6.1 Use `WoltLabSuite/Core/Component/Popover` instead
  */
 
 import * as Ajax from "../Ajax";
@@ -474,6 +475,8 @@ function getControllerPopover(): ControllerPopover {
  *             popover.setContent('com.example.bar.foo', objectId, htmlTemplateString);
  *     }
  * });
+ * 
+ * @deprecated 6.1 Use `WoltLabSuite/Core/Component/Popover` instead
  */
 export function init(options: PopoverOptions): void {
   getControllerPopover().init(options);
index 0dc255921dca6c407ea531cfea28c19af3308ec0..a2d0154d1fe11c79bfa505b893258d0e2830c002 100644 (file)
@@ -4,6 +4,7 @@
  * @author  Alexander Ebert
  * @copyright  2001-2019 WoltLab GmbH
  * @license  GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @deprecated 6.1 Use `WoltLabSuite/Core/Component/Popover` instead
  */
 define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../Dom/Util", "../Environment", "../Ui/Alignment"], function (require, exports, tslib_1, Ajax, Listener_1, Util_1, Environment, UiAlignment) {
     "use strict";
@@ -358,6 +359,8 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../
      *                 popover.setContent('com.example.bar.foo', objectId, htmlTemplateString);
      *         }
      * });
+     *
+     * @deprecated 6.1 Use `WoltLabSuite/Core/Component/Popover` instead
      */
     function init(options) {
         getControllerPopover().init(options);