Skip to content

A platform for community discussion. Free, open, simple.

Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881)

dependabot[bot]e7d3c344d1b7
diff --git a/app/assets/javascripts/admin/addon/components/admin-penalty-post-action.gjs b/app/assets/javascripts/admin/addon/components/admin-penalty-post-action.gjs
index 5f5d8e920f2..c4dff3c5c37 100644
--- a/app/assets/javascripts/admin/addon/components/admin-penalty-post-action.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-penalty-post-action.gjs
@@ -1,7 +1,7 @@
import Component, { Textarea } from "@ember/component";
import { action } from "@ember/object";
import { equal } from "@ember/object/computed";
-import htmlSafe from "discourse/helpers/html-safe";
+import { htmlSafe } from "@ember/template";
import discourseComputed, { afterRender } from "discourse/lib/decorators";
import { i18n } from "discourse-i18n";
import ComboBox from "select-kit/components/combo-box";
diff --git a/app/assets/javascripts/admin/addon/components/admin-penalty-reason.gjs b/app/assets/javascripts/admin/addon/components/admin-penalty-reason.gjs
index d45cba9bb14..196d5801ac3 100644
--- a/app/assets/javascripts/admin/addon/components/admin-penalty-reason.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-penalty-reason.gjs
@@ -1,10 +1,10 @@
import Component, { Textarea } from "@ember/component";
import { action } from "@ember/object";
import { equal } from "@ember/object/computed";
+import { htmlSafe } from "@ember/template";
import { tagName } from "@ember-decorators/component";
import { eq } from "truth-helpers";
import TextField from "discourse/components/text-field";
-import htmlSafe from "discourse/helpers/html-safe";
import discourseComputed from "discourse/lib/decorators";
import { i18n } from "discourse-i18n";
import ComboBox from "select-kit/components/combo-box";
diff --git a/app/assets/javascripts/admin/addon/components/admin-penalty-similar-users.gjs b/app/assets/javascripts/admin/addon/components/admin-penalty-similar-users.gjs
index 702fe2d566d..8fd49f3fa9e 100644
--- a/app/assets/javascripts/admin/addon/components/admin-penalty-similar-users.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-penalty-similar-users.gjs
@@ -4,11 +4,11 @@ import { Input } from "@ember/component";
import { fn, get, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import { not } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import avatar from "discourse/helpers/avatar";
import formatDuration from "discourse/helpers/format-duration";
-import htmlSafe from "discourse/helpers/html-safe";
import number from "discourse/helpers/number";
import { ajax } from "discourse/lib/ajax";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/admin/addon/components/admin-report-storage-stats.gjs b/app/assets/javascripts/admin/addon/components/admin-report-storage-stats.gjs
index 7376984d7b6..50a4eab9780 100644
--- a/app/assets/javascripts/admin/addon/components/admin-report-storage-stats.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-report-storage-stats.gjs
@@ -1,9 +1,9 @@
import Component from "@ember/component";
import { alias } from "@ember/object/computed";
+import { htmlSafe } from "@ember/template";
import { classNames } from "@ember-decorators/component";
import icon from "discourse/helpers/d-icon";
import formatDate from "discourse/helpers/format-date";
-import htmlSafe from "discourse/helpers/html-safe";
import { setting } from "discourse/lib/computed";
import discourseComputed from "discourse/lib/decorators";
import getUrl from "discourse/lib/get-url";
diff --git a/app/assets/javascripts/admin/addon/components/admin-report-table-cell.gjs b/app/assets/javascripts/admin/addon/components/admin-report-table-cell.gjs
index 639f7acf34d..d89174fe7c4 100644
--- a/app/assets/javascripts/admin/addon/components/admin-report-table-cell.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-report-table-cell.gjs
@@ -1,12 +1,12 @@
import Component from "@ember/component";
import { alias } from "@ember/object/computed";
+import { htmlSafe } from "@ember/template";
import {
attributeBindings,
classNameBindings,
classNames,
tagName,
} from "@ember-decorators/component";
-import htmlSafe from "discourse/helpers/html-safe";
import discourseComputed from "discourse/lib/decorators";
@tagName("td")
diff --git a/app/assets/javascripts/admin/addon/components/admin-report-table-header.gjs b/app/assets/javascripts/admin/addon/components/admin-report-table-header.gjs
index ab53ff2e1dc..f6ee4ca5498 100644
--- a/app/assets/javascripts/admin/addon/components/admin-report-table-header.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-report-table-header.gjs
@@ -1,4 +1,5 @@
import Component from "@ember/component";
+import { htmlSafe } from "@ember/template";
import {
attributeBindings,
classNameBindings,
@@ -6,7 +7,6 @@ import {
tagName,
} from "@ember-decorators/component";
import DButton from "discourse/components/d-button";
-import htmlSafe from "discourse/helpers/html-safe";
import discourseComputed from "discourse/lib/decorators";
@tagName("th")
diff --git a/app/assets/javascripts/admin/addon/components/admin-theme-editor.gjs b/app/assets/javascripts/admin/addon/components/admin-theme-editor.gjs
index 003e36a58ff..464945f5b8e 100644
--- a/app/assets/javascripts/admin/addon/components/admin-theme-editor.gjs
+++ b/app/assets/javascripts/admin/addon/components/admin-theme-editor.gjs
@@ -6,10 +6,10 @@ import { action, computed } from "@ember/object";
import { LinkTo } from "@ember/routing";
import { next } from "@ember/runloop";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { gt, lte } from "truth-helpers";
import AceEditor from "discourse/components/ace-editor";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { fmt } from "discourse/lib/computed";
import discourseComputed from "discourse/lib/decorators";
import { isDocumentRTL } from "discourse/lib/text-direction";
diff --git a/app/assets/javascripts/admin/addon/components/changes-banner.gjs b/app/assets/javascripts/admin/addon/components/changes-banner.gjs
index d6a48c2a647..35657107050 100644
--- a/app/assets/javascripts/admin/addon/components/changes-banner.gjs
+++ b/app/assets/javascripts/admin/addon/components/changes-banner.gjs
@@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import { modifier } from "ember-modifier";
import DButton from "discourse/components/d-button";
-import htmlSafe from "discourse/helpers/html-safe";
export default class ChangesBanner extends Component {
@tracked isSaving = false;
diff --git a/app/assets/javascripts/admin/addon/components/modal/badge-preview.gjs b/app/assets/javascripts/admin/addon/components/modal/badge-preview.gjs
index 21ff268e687..d711e518146 100644
--- a/app/assets/javascripts/admin/addon/components/modal/badge-preview.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/badge-preview.gjs
@@ -1,7 +1,7 @@
import Component from "@glimmer/component";
+import { htmlSafe } from "@ember/template";
import DModal from "discourse/components/d-modal";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { escapeExpression } from "discourse/lib/utilities";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/admin/addon/components/modal/delete-posts-confirmation.gjs b/app/assets/javascripts/admin/addon/components/modal/delete-posts-confirmation.gjs
index 267acc4d55c..e5ceb034e10 100644
--- a/app/assets/javascripts/admin/addon/components/modal/delete-posts-confirmation.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/delete-posts-confirmation.gjs
@@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { Input } from "@ember/component";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class DeletePostsConfirmation extends Component {
diff --git a/app/assets/javascripts/admin/addon/components/modal/delete-user-posts-progress.gjs b/app/assets/javascripts/admin/addon/components/modal/delete-user-posts-progress.gjs
index 2bf5de7e78d..4bce55ff303 100644
--- a/app/assets/javascripts/admin/addon/components/modal/delete-user-posts-progress.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/delete-user-posts-progress.gjs
@@ -2,8 +2,8 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { concat } from "@ember/helper";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { extractError } from "discourse/lib/ajax-error";
import { i18n } from "discourse-i18n";
import AdminUser from "admin/models/admin-user";
diff --git a/app/assets/javascripts/admin/addon/components/modal/merge-users-confirmation.gjs b/app/assets/javascripts/admin/addon/components/modal/merge-users-confirmation.gjs
index c13d2e17509..345572c70e5 100644
--- a/app/assets/javascripts/admin/addon/components/modal/merge-users-confirmation.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/merge-users-confirmation.gjs
@@ -2,9 +2,9 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { Input } from "@ember/component";
import { fn } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class MergeUsersConfirmation extends Component {
diff --git a/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.gjs b/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.gjs
index 8eab12d66d1..bcca295f71f 100644
--- a/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.gjs
@@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { fn, get, hash } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import EmailGroupUserChooser from "select-kit/components/email-group-user-chooser";
diff --git a/app/assets/javascripts/admin/addon/components/modal/penalize-user.gjs b/app/assets/javascripts/admin/addon/components/modal/penalize-user.gjs
index 41e0ea3ca6b..d0061c3effa 100644
--- a/app/assets/javascripts/admin/addon/components/modal/penalize-user.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/penalize-user.gjs
@@ -3,12 +3,12 @@ import { tracked } from "@glimmer/tracking";
import { fn } from "@ember/helper";
import { action } from "@ember/object";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { isEmpty } from "@ember/utils";
import { eq } from "truth-helpers";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
import FutureDateInput from "discourse/components/future-date-input";
-import htmlSafe from "discourse/helpers/html-safe";
import { extractError } from "discourse/lib/ajax-error";
import I18n, { i18n } from "discourse-i18n";
import AdminPenaltyPostAction from "admin/components/admin-penalty-post-action";
diff --git a/app/assets/javascripts/admin/addon/components/modal/site-setting-default-categories.gjs b/app/assets/javascripts/admin/addon/components/modal/site-setting-default-categories.gjs
index 2266336ce79..9a58d5ad21b 100644
--- a/app/assets/javascripts/admin/addon/components/modal/site-setting-default-categories.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/site-setting-default-categories.gjs
@@ -1,8 +1,8 @@
import Component from "@glimmer/component";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class SiteSettingDefaultCategories extends Component {
diff --git a/app/assets/javascripts/admin/addon/components/modal/staff-action-log-change.gjs b/app/assets/javascripts/admin/addon/components/modal/staff-action-log-change.gjs
index 328d298220b..93ec60d5c09 100644
--- a/app/assets/javascripts/admin/addon/components/modal/staff-action-log-change.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/staff-action-log-change.gjs
@@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { ajax } from "discourse/lib/ajax";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/admin/addon/components/modal/start-backup.gjs b/app/assets/javascripts/admin/addon/components/modal/start-backup.gjs
index 470cc7104fb..40404c73dc5 100644
--- a/app/assets/javascripts/admin/addon/components/modal/start-backup.gjs
+++ b/app/assets/javascripts/admin/addon/components/modal/start-backup.gjs
@@ -3,9 +3,9 @@ import { tracked } from "@glimmer/tracking";
import { Input } from "@ember/component";
import { action } from "@ember/object";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class StartBackup extends Component {
diff --git a/app/assets/javascripts/admin/addon/components/silence-details.gjs b/app/assets/javascripts/admin/addon/components/silence-details.gjs
index 9f9e1780386..f4088afd8b9 100644
--- a/app/assets/javascripts/admin/addon/components/silence-details.gjs
+++ b/app/assets/javascripts/admin/addon/components/silence-details.gjs
@@ -1,7 +1,7 @@
import Component, { Textarea } from "@ember/component";
+import { htmlSafe } from "@ember/template";
import { tagName } from "@ember-decorators/component";
import TextField from "discourse/components/text-field";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
@tagName("")
diff --git a/app/assets/javascripts/admin/addon/templates/backups-index.gjs b/app/assets/javascripts/admin/addon/templates/backups-index.gjs
index 7eb3a148367..0301abddb44 100644
--- a/app/assets/javascripts/admin/addon/templates/backups-index.gjs
+++ b/app/assets/javascripts/admin/addon/templates/backups-index.gjs
@@ -1,10 +1,10 @@
import { fn } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import DPageSubheader from "discourse/components/d-page-subheader";
import DropdownMenu from "discourse/components/dropdown-menu";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import routeAction from "discourse/helpers/route-action";
import { i18n } from "discourse-i18n";
import UppyBackupUploader from "admin/components/uppy-backup-uploader";
diff --git a/app/assets/javascripts/admin/addon/templates/customize-colors.gjs b/app/assets/javascripts/admin/addon/templates/customize-colors.gjs
index f5cbf86b1d5..473dcdba73b 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-colors.gjs
+++ b/app/assets/javascripts/admin/addon/templates/customize-colors.gjs
@@ -8,8 +8,8 @@ import DPageSubheader from "discourse/components/d-page-subheader";
import DSelect from "discourse/components/d-select";
import FilterInput from "discourse/components/filter-input";
import PluginOutlet from "discourse/components/plugin-outlet";
-import getUrl from "discourse/helpers/get-url";
import lazyHash from "discourse/helpers/lazy-hash";
+import getUrl from "discourse/lib/get-url";
import { i18n } from "discourse-i18n";
import ColorPaletteListItem from "admin/components/color-palette-list-item";
diff --git a/app/assets/javascripts/admin/addon/templates/customize-themes-show.gjs b/app/assets/javascripts/admin/addon/templates/customize-themes-show.gjs
index ef73e30cb3a..13a8e645cb8 100644
--- a/app/assets/javascripts/admin/addon/templates/customize-themes-show.gjs
+++ b/app/assets/javascripts/admin/addon/templates/customize-themes-show.gjs
@@ -1,4 +1,5 @@
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import DPageHeader from "discourse/components/d-page-header";
@@ -9,7 +10,6 @@ import UserLink from "discourse/components/user-link";
import avatar from "discourse/helpers/avatar";
import icon from "discourse/helpers/d-icon";
import formatDate from "discourse/helpers/format-date";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard-new-features.gjs b/app/assets/javascripts/admin/addon/templates/dashboard-new-features.gjs
index 6283fd7e7a4..900f1f2251b 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard-new-features.gjs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard-new-features.gjs
@@ -1,6 +1,6 @@
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import DashboardNewFeatures from "admin/components/dashboard-new-features";
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_general.gjs b/app/assets/javascripts/admin/addon/templates/dashboard_general.gjs
index 6970145cf63..5a81ef41c46 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_general.gjs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_general.gjs
@@ -1,11 +1,11 @@
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSection from "discourse/components/conditional-loading-section";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import PluginOutlet from "discourse/components/plugin-outlet";
import basePath from "discourse/helpers/base-path";
import formatDate from "discourse/helpers/format-date";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import getUrl from "discourse/lib/get-url";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/admin/addon/templates/email-advanced-test.gjs b/app/assets/javascripts/admin/addon/templates/email-advanced-test.gjs
index 06b3f06e333..001be0e357b 100644
--- a/app/assets/javascripts/admin/addon/templates/email-advanced-test.gjs
+++ b/app/assets/javascripts/admin/addon/templates/email-advanced-test.gjs
@@ -1,11 +1,11 @@
/* eslint-disable ember/no-test-import-export */
import { Textarea } from "@ember/component";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import DButton from "discourse/components/d-button";
import DPageSubheader from "discourse/components/d-page-subheader";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default RouteTemplate(
diff --git a/app/assets/javascripts/admin/addon/templates/embedding-index.gjs b/app/assets/javascripts/admin/addon/templates/embedding-index.gjs
index 04a0caec66c..dd601682c23 100644
--- a/app/assets/javascripts/admin/addon/templates/embedding-index.gjs
+++ b/app/assets/javascripts/admin/addon/templates/embedding-index.gjs
@@ -1,6 +1,6 @@
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import PluginOutlet from "discourse/components/plugin-outlet";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
import AdminConfigAreaCard from "admin/components/admin-config-area-card";
diff --git a/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.gjs b/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.gjs
index 4fd230a4768..8d7b9fdec06 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.gjs
+++ b/app/assets/javascripts/admin/addon/templates/logs/staff-action-logs.gjs
@@ -1,6 +1,7 @@
import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import DButton from "discourse/components/d-button";
@@ -8,7 +9,6 @@ import LoadMore from "discourse/components/load-more";
import ageWithTooltip from "discourse/helpers/age-with-tooltip";
import avatar from "discourse/helpers/avatar";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import StaffActions from "admin/components/staff-actions";
import ComboBox from "select-kit/components/combo-box";
diff --git a/app/assets/javascripts/admin/addon/templates/search-logs-term.gjs b/app/assets/javascripts/admin/addon/templates/search-logs-term.gjs
index fffe2233f42..aef18254a11 100644
--- a/app/assets/javascripts/admin/addon/templates/search-logs-term.gjs
+++ b/app/assets/javascripts/admin/addon/templates/search-logs-term.gjs
@@ -1,5 +1,6 @@
import { fn, hash } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import HighlightSearch from "discourse/components/highlight-search";
@@ -8,7 +9,6 @@ import ageWithTooltip from "discourse/helpers/age-with-tooltip";
import avatar from "discourse/helpers/avatar";
import categoryLink from "discourse/helpers/category-link";
import discourseTag from "discourse/helpers/discourse-tag";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import Chart from "admin/components/chart";
import ComboBox from "select-kit/components/combo-box";
diff --git a/app/assets/javascripts/admin/addon/templates/user-index.gjs b/app/assets/javascripts/admin/addon/templates/user-index.gjs
index 5a6da615797..1b63203c7b3 100644
--- a/app/assets/javascripts/admin/addon/templates/user-index.gjs
+++ b/app/assets/javascripts/admin/addon/templates/user-index.gjs
@@ -1,5 +1,6 @@
import { fn, hash } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { and, gt } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
@@ -9,7 +10,6 @@ import avatar from "discourse/helpers/avatar";
import icon from "discourse/helpers/d-icon";
import formatDate from "discourse/helpers/format-date";
import formatDuration from "discourse/helpers/format-duration";
-import htmlSafe from "discourse/helpers/html-safe";
import i18nYesNo from "discourse/helpers/i18n-yes-no";
import lazyHash from "discourse/helpers/lazy-hash";
import routeAction from "discourse/helpers/route-action";
diff --git a/app/assets/javascripts/admin/addon/templates/users-list-show.gjs b/app/assets/javascripts/admin/addon/templates/users-list-show.gjs
index fdd12ccf4cd..5d080c4d78e 100644
--- a/app/assets/javascripts/admin/addon/templates/users-list-show.gjs
+++ b/app/assets/javascripts/admin/addon/templates/users-list-show.gjs
@@ -1,6 +1,7 @@
import { concat, fn, get } from "@ember/helper";
import { on } from "@ember/modifier";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { eq, not, or } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
@@ -15,7 +16,6 @@ import avatar from "discourse/helpers/avatar";
import concatClass from "discourse/helpers/concat-class";
import icon from "discourse/helpers/d-icon";
import formatDuration from "discourse/helpers/format-duration";
-import htmlSafe from "discourse/helpers/html-safe";
import i18nYesNo from "discourse/helpers/i18n-yes-no";
import lazyHash from "discourse/helpers/lazy-hash";
import number from "discourse/helpers/number";
diff --git a/app/assets/javascripts/admin/addon/templates/watched-words-action.gjs b/app/assets/javascripts/admin/addon/templates/watched-words-action.gjs
index 0d1397723ec..08e0c67b1af 100644
--- a/app/assets/javascripts/admin/addon/templates/watched-words-action.gjs
+++ b/app/assets/javascripts/admin/addon/templates/watched-words-action.gjs
@@ -1,8 +1,8 @@
import { Input } from "@ember/component";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import basePath from "discourse/helpers/base-path";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import AdminWatchedWord from "admin/components/admin-watched-word";
import WatchedWordForm from "admin/components/watched-word-form";
diff --git a/app/assets/javascripts/discourse/app/components/bookmark-list.gjs b/app/assets/javascripts/discourse/app/components/bookmark-list.gjs
index d6a8f439454..0ea8fd7fcb4 100644
--- a/app/assets/javascripts/discourse/app/components/bookmark-list.gjs
+++ b/app/assets/javascripts/discourse/app/components/bookmark-list.gjs
@@ -3,6 +3,7 @@ import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { dependentKeyCompat } from "@ember/object/compat";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { classNames } from "@ember-decorators/component";
import { Promise } from "rsvp";
import { and } from "truth-helpers";
@@ -21,7 +22,6 @@ import concatClass from "discourse/helpers/concat-class";
import icon from "discourse/helpers/d-icon";
import discourseTags from "discourse/helpers/discourse-tags";
import formatDate from "discourse/helpers/format-date";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import topicLink from "discourse/helpers/topic-link";
import { ajax } from "discourse/lib/ajax";
diff --git a/app/assets/javascripts/discourse/app/components/composer-container.gjs b/app/assets/javascripts/discourse/app/components/composer-container.gjs
index abd34541a0b..118b8db9834 100644
--- a/app/assets/javascripts/discourse/app/components/composer-container.gjs
+++ b/app/assets/javascripts/discourse/app/components/composer-container.gjs
@@ -4,6 +4,7 @@ import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { cancel } from "@ember/runloop";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { and, or } from "truth-helpers";
import ComposerActionTitle from "discourse/components/composer-action-title";
import ComposerBody from "discourse/components/composer-body";
@@ -23,7 +24,6 @@ import avatar from "discourse/helpers/avatar";
import concatClass from "discourse/helpers/concat-class";
import icon from "discourse/helpers/d-icon";
import htmlClass from "discourse/helpers/html-class";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import loadingSpinner from "discourse/helpers/loading-spinner";
import discourseDebounce from "discourse/lib/debounce";
diff --git a/app/assets/javascripts/discourse/app/components/discovery/topics.gjs b/app/assets/javascripts/discourse/app/components/discovery/topics.gjs
index 03ab9d8bd57..245424269dd 100644
--- a/app/assets/javascripts/discourse/app/components/discovery/topics.gjs
+++ b/app/assets/javascripts/discourse/app/components/discovery/topics.gjs
@@ -4,6 +4,7 @@ import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { not, or } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import CountI18n from "discourse/components/count-i18n";
@@ -19,7 +20,6 @@ import TopicDismissButtons from "discourse/components/topic-dismiss-buttons";
import List from "discourse/components/topic-list/list";
import basePath from "discourse/helpers/base-path";
import hideApplicationFooter from "discourse/helpers/hide-application-footer";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import loadingSpinner from "discourse/helpers/loading-spinner";
import { popupAjaxError } from "discourse/lib/ajax-error";
diff --git a/app/assets/javascripts/discourse/app/components/edit-category-settings.gjs b/app/assets/javascripts/discourse/app/components/edit-category-settings.gjs
index 1ce6d6448a0..b6d84b6e97a 100644
--- a/app/assets/javascripts/discourse/app/components/edit-category-settings.gjs
+++ b/app/assets/javascripts/discourse/app/components/edit-category-settings.gjs
@@ -3,12 +3,12 @@ import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { and, empty } from "@ember/object/computed";
+import { htmlSafe } from "@ember/template";
import { buildCategoryPanel } from "discourse/components/edit-category-panel";
import PluginOutlet from "discourse/components/plugin-outlet";
import RelativeTimePicker from "discourse/components/relative-time-picker";
import TextField from "discourse/components/text-field";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import withEventValue from "discourse/helpers/with-event-value";
import { setting } from "discourse/lib/computed";
diff --git a/app/assets/javascripts/discourse/app/components/empty-topic-filter.gjs b/app/assets/javascripts/discourse/app/components/empty-topic-filter.gjs
index dda84e49c0a..b87c5e243e5 100644
--- a/app/assets/javascripts/discourse/app/components/empty-topic-filter.gjs
+++ b/app/assets/javascripts/discourse/app/components/empty-topic-filter.gjs
@@ -1,9 +1,9 @@
import Component from "@glimmer/component";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import EmptyState from "discourse/components/empty-state";
import SvgDocumentsCheckmark from "discourse/components/svg/documents-checkmark";
import basePath from "discourse/helpers/base-path";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class EmptyTopicFilter extends Component {
diff --git a/app/assets/javascripts/discourse/app/components/group-card.gjs b/app/assets/javascripts/discourse/app/components/group-card.gjs
index df554ff6929..ea1a6aab1b5 100644
--- a/app/assets/javascripts/discourse/app/components/group-card.gjs
+++ b/app/assets/javascripts/discourse/app/components/group-card.gjs
@@ -1,10 +1,10 @@
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import AvatarFlair from "discourse/components/avatar-flair";
import GroupInfo from "discourse/components/group-info";
import GroupMembershipButton from "discourse/components/group-membership-button";
import PluginOutlet from "discourse/components/plugin-outlet";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import routeAction from "discourse/helpers/route-action";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/app/components/invite-panel.gjs b/app/assets/javascripts/discourse/app/components/invite-panel.gjs
index d966090e1c6..a7894fb246c 100644
--- a/app/assets/javascripts/discourse/app/components/invite-panel.gjs
+++ b/app/assets/javascripts/discourse/app/components/invite-panel.gjs
@@ -3,12 +3,12 @@ import { fn, hash } from "@ember/helper";
import EmberObject, { action } from "@ember/object";
import { alias, and, equal, readOnly } from "@ember/object/computed";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { isEmpty } from "@ember/utils";
import DButton from "discourse/components/d-button";
import DiscourseLinkedText from "discourse/components/discourse-linked-text";
import GeneratedInviteLink from "discourse/components/generated-invite-link";
import TextField from "discourse/components/text-field";
-import htmlSafe from "discourse/helpers/html-safe";
import { computedI18n } from "discourse/lib/computed";
import discourseComputed from "discourse/lib/decorators";
import { getNativeContact } from "discourse/lib/pwa-utils";
diff --git a/app/assets/javascripts/discourse/app/components/modal/bookmark.gjs b/app/assets/javascripts/discourse/app/components/modal/bookmark.gjs
index f63ac0b1f44..9415e69f709 100644
--- a/app/assets/javascripts/discourse/app/components/modal/bookmark.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/bookmark.gjs
@@ -6,6 +6,7 @@ import { action } from "@ember/object";
import { and, notEmpty } from "@ember/object/computed";
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import ItsATrap from "@discourse/itsatrap";
import { Promise } from "rsvp";
import DButton from "discourse/components/d-button";
@@ -16,7 +17,6 @@ import DModalCancel from "discourse/components/d-modal-cancel";
import TimeShortcutPicker from "discourse/components/time-shortcut-picker";
import basePath from "discourse/helpers/base-path";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { extractError } from "discourse/lib/ajax-error";
import { formattedReminderTime } from "discourse/lib/bookmark";
import KeyboardShortcuts from "discourse/lib/keyboard-shortcuts";
diff --git a/app/assets/javascripts/discourse/app/components/modal/change-owner.gjs b/app/assets/javascripts/discourse/app/components/modal/change-owner.gjs
index 21261b0714a..6c308825ec3 100644
--- a/app/assets/javascripts/discourse/app/components/modal/change-owner.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/change-owner.gjs
@@ -3,10 +3,10 @@ import { tracked } from "@glimmer/tracking";
import { hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import { isEmpty } from "@ember/utils";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
-import htmlSafe from "discourse/helpers/html-safe";
import DiscourseURL from "discourse/lib/url";
import Topic from "discourse/models/topic";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/app/components/modal/history/revisions.gjs b/app/assets/javascripts/discourse/app/components/modal/history/revisions.gjs
index 4eb0110a7e1..f864990b0e1 100644
--- a/app/assets/javascripts/discourse/app/components/modal/history/revisions.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/history/revisions.gjs
@@ -2,13 +2,13 @@ import Component from "@ember/component";
import EmberObject from "@ember/object";
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import didUpdate from "@ember/render-modifiers/modifiers/did-update";
+import { htmlSafe } from "@ember/template";
import { and, eq, not, or } from "truth-helpers";
import LinksRedirect from "discourse/components/links-redirect";
import PluginOutlet from "discourse/components/plugin-outlet";
import Avatar from "discourse/helpers/bound-avatar-template";
import icon from "discourse/helpers/d-icon";
import discourseTags from "discourse/helpers/discourse-tags";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/app/components/modal/move-to-topic.gjs b/app/assets/javascripts/discourse/app/components/modal/move-to-topic.gjs
index 81c836adfd3..657bfe078c3 100644
--- a/app/assets/javascripts/discourse/app/components/modal/move-to-topic.gjs
+++ b/app/assets/javascripts/discourse/app/components/modal/move-to-topic.gjs
@@ -4,6 +4,7 @@ import { Input } from "@ember/component";
import { fn } from "@ember/helper";
import { action } from "@ember/object";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { isEmpty } from "@ember/utils";
import ChooseMessage from "discourse/components/choose-message";
import ChooseTopic from "discourse/components/choose-topic";
@@ -12,7 +13,6 @@ import DModal from "discourse/components/d-modal";
import PluginOutlet from "discourse/components/plugin-outlet";
import RadioButton from "discourse/components/radio-button";
import TextField from "discourse/components/text-field";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { applyValueTransformer } from "discourse/lib/transformer";
import DiscourseURL from "discourse/lib/url";
diff --git a/app/assets/javascripts/discourse/app/components/reviewable-item.gjs b/app/assets/javascripts/discourse/app/components/reviewable-item.gjs
index d39521ee239..e5531a3f7a2 100644
--- a/app/assets/javascripts/discourse/app/components/reviewable-item.gjs
+++ b/app/assets/javascripts/discourse/app/components/reviewable-item.gjs
@@ -8,6 +8,7 @@ import { getOwner } from "@ember/owner";
import { LinkTo } from "@ember/routing";
import { service } from "@ember/service";
import { classify, dasherize } from "@ember/string";
+import { htmlSafe } from "@ember/template";
import { tagName } from "@ember-decorators/component";
import DButton from "discourse/components/d-button";
import ExplainReviewableModal from "discourse/components/modal/explain-reviewable";
@@ -23,7 +24,6 @@ import concatClass from "discourse/helpers/concat-class";
import icon from "discourse/helpers/d-icon";
import dasherizeHelper from "discourse/helpers/dasherize";
import editableValue from "discourse/helpers/editable-value";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import reviewableStatus from "discourse/helpers/reviewable-status";
import { ajax } from "discourse/lib/ajax";
diff --git a/app/assets/javascripts/discourse/app/components/user-fields/dropdown.gjs b/app/assets/javascripts/discourse/app/components/user-fields/dropdown.gjs
index 8517ff0ccc2..09eb31554cb 100644
--- a/app/assets/javascripts/discourse/app/components/user-fields/dropdown.gjs
+++ b/app/assets/javascripts/discourse/app/components/user-fields/dropdown.gjs
@@ -1,6 +1,6 @@
import { concat, fn, hash } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import InputTip from "discourse/components/input-tip";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import ComboBox from "select-kit/components/combo-box";
import UserFieldBase from "./base";
diff --git a/app/assets/javascripts/discourse/app/components/user-fields/multiselect.gjs b/app/assets/javascripts/discourse/app/components/user-fields/multiselect.gjs
index f103faff25c..8f3e9f74ffa 100644
--- a/app/assets/javascripts/discourse/app/components/user-fields/multiselect.gjs
+++ b/app/assets/javascripts/discourse/app/components/user-fields/multiselect.gjs
@@ -1,6 +1,6 @@
import { concat, fn, hash } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import InputTip from "discourse/components/input-tip";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import MultiSelect from "select-kit/components/multi-select";
import UserFieldBase from "./base";
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js b/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js
index 5df255dec5b..de2089b59e2 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/animated-images-pause-on-click.js
@@ -34,7 +34,7 @@ function animatedImgs() {
export default {
initialize() {
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
function _cleanUp() {
Object.values(_gifClickHandlers || {}).forEach((handler) => {
handler.removeEventListener("click", _handleEvent);
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/codeblock-buttons.js b/app/assets/javascripts/discourse/app/instance-initializers/codeblock-buttons.js
index aeaeb837f4b..913b9ea648d 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/codeblock-buttons.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/codeblock-buttons.js
@@ -8,7 +8,7 @@ export default {
initialize(owner) {
const siteSettings = owner.lookup("service:site-settings");
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
function _cleanUp() {
_codeblockButtons.forEach((cb) => cb.cleanup());
_codeblockButtons.length = 0;
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/enable-emoji.js b/app/assets/javascripts/discourse/app/instance-initializers/enable-emoji.js
index b96f407d0f4..fa55de4f5a9 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/enable-emoji.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/enable-emoji.js
@@ -11,7 +11,7 @@ export default {
return;
}
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.onToolbarCreate((toolbar) => {
toolbar.addButton({
id: "emoji",
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/hashtag-post-decorations.js b/app/assets/javascripts/discourse/app/instance-initializers/hashtag-post-decorations.js
index dd54a16d073..2ca4ee6d9e6 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/hashtag-post-decorations.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/hashtag-post-decorations.js
@@ -7,7 +7,7 @@ export default {
initialize(owner) {
const site = owner.lookup("service:site");
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
api.decorateCookedElement((post) => decorateHashtags(post, site));
});
},
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/highlight-users.js b/app/assets/javascripts/discourse/app/instance-initializers/highlight-users.js
index 56c7f43d25a..0babc50f27d 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/highlight-users.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/highlight-users.js
@@ -2,7 +2,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
export default {
initialize() {
- withPluginApi("1.36.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("mentions-class", ({ value, context }) => {
const { user } = context;
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/image-aspect-ratio.js b/app/assets/javascripts/discourse/app/instance-initializers/image-aspect-ratio.js
index d5985024c1f..dedd80abef3 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/image-aspect-ratio.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/image-aspect-ratio.js
@@ -46,6 +46,6 @@ export default {
},
initialize() {
- withPluginApi("1.2.0", this.initWithApi);
+ withPluginApi(this.initWithApi);
},
};
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/more-topics-tabs.gjs b/app/assets/javascripts/discourse/app/instance-initializers/more-topics-tabs.gjs
index baf0502f8fb..cb54d12d66c 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/more-topics-tabs.gjs
+++ b/app/assets/javascripts/discourse/app/instance-initializers/more-topics-tabs.gjs
@@ -5,7 +5,7 @@ import { i18n } from "discourse-i18n";
export default {
initialize() {
- withPluginApi("1.37.2", (api) => {
+ withPluginApi((api) => {
api.registerMoreTopicsTab({
id: "related-messages",
name: i18n("related_messages.pill"),
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/onebox-decorators.js b/app/assets/javascripts/discourse/app/instance-initializers/onebox-decorators.js
index bf88e37c970..099ff3555d5 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/onebox-decorators.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/onebox-decorators.js
@@ -39,7 +39,7 @@ function _cleanUp() {
export default {
initialize() {
- withPluginApi("0.8.42", (api) => {
+ withPluginApi((api) => {
api.decorateCookedElement((element) => {
decorateGithubOneboxBody(element);
});
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/post-decorations.js b/app/assets/javascripts/discourse/app/instance-initializers/post-decorations.js
index 9fced0d766a..ff038e88a21 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/post-decorations.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/post-decorations.js
@@ -17,7 +17,7 @@ import { i18n } from "discourse-i18n";
export default {
initialize(owner) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
const siteSettings = owner.lookup("service:site-settings");
const session = owner.lookup("service:session");
const site = owner.lookup("service:site");
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/register-hashtag-types.js b/app/assets/javascripts/discourse/app/instance-initializers/register-hashtag-types.js
index 8494cadb45b..1316a427490 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/register-hashtag-types.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/register-hashtag-types.js
@@ -6,7 +6,7 @@ export default {
before: "hashtag-css-generator",
initialize(owner) {
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
api.registerHashtagType("category", new CategoryHashtagType(owner));
api.registerHashtagType("tag", new TagHashtagType(owner));
});
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/video-placeholder.js b/app/assets/javascripts/discourse/app/instance-initializers/video-placeholder.js
index 9d514257e38..5af1ac9fd8e 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/video-placeholder.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/video-placeholder.js
@@ -7,7 +7,7 @@ import { i18n } from "discourse-i18n";
export default {
initialize(owner) {
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
function handleVideoPlaceholderClick(helper, event) {
const parentDiv = event.target.closest(".video-placeholder-container");
const wrapper = parentDiv.querySelector(".video-placeholder-wrapper");
diff --git a/app/assets/javascripts/discourse/app/static/dev-tools/entrypoint.js b/app/assets/javascripts/discourse/app/static/dev-tools/entrypoint.js
index 0c97be96e7e..6f9758dd2ee 100644
--- a/app/assets/javascripts/discourse/app/static/dev-tools/entrypoint.js
+++ b/app/assets/javascripts/discourse/app/static/dev-tools/entrypoint.js
@@ -6,7 +6,7 @@ import Toolbar from "./toolbar";
export function init() {
patchConnectors();
- withPluginApi("0.8", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet("above-site-header", Toolbar);
});
}
diff --git a/app/assets/javascripts/discourse/app/templates/edit-category-tabs.gjs b/app/assets/javascripts/discourse/app/templates/edit-category-tabs.gjs
index 8324bf0f488..e63e4a2f35c 100644
--- a/app/assets/javascripts/discourse/app/templates/edit-category-tabs.gjs
+++ b/app/assets/javascripts/discourse/app/templates/edit-category-tabs.gjs
@@ -1,12 +1,12 @@
import { fn } from "@ember/helper";
import { getOwner } from "@ember/owner";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { and, not } from "truth-helpers";
import BreadCrumbs from "discourse/components/bread-crumbs";
import DButton from "discourse/components/d-button";
import EditCategoryTab from "discourse/components/edit-category-tab";
import Form from "discourse/components/form";
-import htmlSafe from "discourse/helpers/html-safe";
function lookupComponent(context, name) {
return getOwner(context).resolveRegistration(`component:${name}`);
diff --git a/app/assets/javascripts/discourse/app/templates/full-page-search.gjs b/app/assets/javascripts/discourse/app/templates/full-page-search.gjs
index 0038f9355f5..c2285745c5b 100644
--- a/app/assets/javascripts/discourse/app/templates/full-page-search.gjs
+++ b/app/assets/javascripts/discourse/app/templates/full-page-search.gjs
@@ -1,6 +1,7 @@
import { Input } from "@ember/component";
import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { or } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
@@ -17,7 +18,6 @@ import avatar from "discourse/helpers/avatar";
import bodyClass from "discourse/helpers/body-class";
import categoryLink from "discourse/helpers/category-link";
import hideApplicationFooter from "discourse/helpers/hide-application-footer";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import loadingSpinner from "discourse/helpers/loading-spinner";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/app/templates/preferences/emails.gjs b/app/assets/javascripts/discourse/app/templates/preferences/emails.gjs
index af31392c71e..71faadd2112 100644
--- a/app/assets/javascripts/discourse/app/templates/preferences/emails.gjs
+++ b/app/assets/javascripts/discourse/app/templates/preferences/emails.gjs
@@ -1,9 +1,9 @@
import { fn, hash } from "@ember/helper";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import PluginOutlet from "discourse/components/plugin-outlet";
import PreferenceCheckbox from "discourse/components/preference-checkbox";
import SaveControls from "discourse/components/save-controls";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
import ComboBox from "select-kit/components/combo-box";
diff --git a/app/assets/javascripts/discourse/app/templates/preferences/profile.gjs b/app/assets/javascripts/discourse/app/templates/preferences/profile.gjs
index 39a1d290120..d04cf591344 100644
--- a/app/assets/javascripts/discourse/app/templates/preferences/profile.gjs
+++ b/app/assets/javascripts/discourse/app/templates/preferences/profile.gjs
@@ -1,6 +1,7 @@
import { Input } from "@ember/component";
import { array, fn } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import DEditor from "discourse/components/d-editor";
@@ -9,7 +10,6 @@ import PreferenceCheckbox from "discourse/components/preference-checkbox";
import SaveControls from "discourse/components/save-controls";
import UppyImageUploader from "discourse/components/uppy-image-uploader";
import UserField from "discourse/components/user-field";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import replaceEmoji from "discourse/helpers/replace-emoji";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/app/templates/review-index.gjs b/app/assets/javascripts/discourse/app/templates/review-index.gjs
index 7f98c5dee4e..6802932aca4 100644
--- a/app/assets/javascripts/discourse/app/templates/review-index.gjs
+++ b/app/assets/javascripts/discourse/app/templates/review-index.gjs
@@ -1,5 +1,6 @@
import { fn, hash } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { eq } from "truth-helpers";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
@@ -9,7 +10,6 @@ import LoadMore from "discourse/components/load-more";
import PluginOutlet from "discourse/components/plugin-outlet";
import ReviewableItem from "discourse/components/reviewable-item";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
import CategoryChooser from "select-kit/components/category-chooser";
diff --git a/app/assets/javascripts/discourse/app/templates/topic.gjs b/app/assets/javascripts/discourse/app/templates/topic.gjs
index f4931c2c315..8477466d089 100644
--- a/app/assets/javascripts/discourse/app/templates/topic.gjs
+++ b/app/assets/javascripts/discourse/app/templates/topic.gjs
@@ -2,6 +2,7 @@ import { array, concat, fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { getProperties } from "@ember/object";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import { and, eq } from "truth-helpers";
import AddCategoryTagClasses from "discourse/components/add-category-tag-classes";
@@ -40,7 +41,6 @@ import ageWithTooltip from "discourse/helpers/age-with-tooltip";
import bodyClass from "discourse/helpers/body-class";
import icon from "discourse/helpers/d-icon";
import hideApplicationFooter from "discourse/helpers/hide-application-footer";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import routeAction from "discourse/helpers/route-action";
import autoFocus from "discourse/modifiers/auto-focus";
diff --git a/app/assets/javascripts/discourse/app/templates/user.gjs b/app/assets/javascripts/discourse/app/templates/user.gjs
index 8ac365e2013..bc05842efc3 100644
--- a/app/assets/javascripts/discourse/app/templates/user.gjs
+++ b/app/assets/javascripts/discourse/app/templates/user.gjs
@@ -1,5 +1,6 @@
import { array, concat, fn, hash } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import HtmlWithLinks from "discourse/components/html-with-links";
@@ -9,7 +10,6 @@ import UserProfileAvatar from "discourse/components/user-profile-avatar";
import UserStatusMessage from "discourse/components/user-status-message";
import icon from "discourse/helpers/d-icon";
import formatUsername from "discourse/helpers/format-username";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import replaceEmoji from "discourse/helpers/replace-emoji";
import routeAction from "discourse/helpers/route-action";
diff --git a/app/assets/javascripts/discourse/app/templates/users.gjs b/app/assets/javascripts/discourse/app/templates/users.gjs
index 2c6e0d7dba9..5d2d51e62de 100644
--- a/app/assets/javascripts/discourse/app/templates/users.gjs
+++ b/app/assets/javascripts/discourse/app/templates/users.gjs
@@ -1,6 +1,7 @@
import { Input } from "@ember/component";
import { fn, hash } from "@ember/helper";
import { on } from "@ember/modifier";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import DButton from "discourse/components/d-button";
@@ -11,7 +12,6 @@ import PluginOutlet from "discourse/components/plugin-outlet";
import basePath from "discourse/helpers/base-path";
import bodyClass from "discourse/helpers/body-class";
import hideApplicationFooter from "discourse/helpers/hide-application-footer";
-import htmlSafe from "discourse/helpers/html-safe";
import lazyHash from "discourse/helpers/lazy-hash";
import withEventValue from "discourse/helpers/with-event-value";
import { i18n } from "discourse-i18n";
diff --git a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-components-config-area-test.gjs b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-components-config-area-test.gjs
index 1da77b87d3f..94c2aac4da1 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-components-config-area-test.gjs
+++ b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-components-config-area-test.gjs
@@ -13,7 +13,7 @@ acceptance("Admin - Config areas - Components", function (needs) {
});
test("admin-config-area-components-new-button plugin outlet", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet(
"admin-config-area-components-new-button",
<template>
@@ -38,7 +38,7 @@ acceptance("Admin - Config areas - Components", function (needs) {
});
test("admin-config-area-components-empty-list-bottom plugin outlet", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet(
"admin-config-area-components-empty-list-bottom",
<template>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-config-area-test.gjs b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-config-area-test.gjs
index 7fe687a24dc..79671017ea7 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-config-area-test.gjs
+++ b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-config-area-test.gjs
@@ -13,7 +13,7 @@ acceptance("Admin - Config areas - Themes", function (needs) {
});
test("admin-themes-grid-additional-cards plugin outlet", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet(
"admin-themes-grid-additional-cards",
<template>
@@ -36,7 +36,7 @@ acceptance("Admin - Config areas - Themes", function (needs) {
});
test("admin-config-area-themes-new-button plugin outlet", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet(
"admin-config-area-themes-new-button",
<template>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-show-test.gjs b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-show-test.gjs
index f09dc13cc57..5f37d3e7b92 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-show-test.gjs
+++ b/app/assets/javascripts/discourse/tests/acceptance/admin-customize-themes-show-test.gjs
@@ -80,7 +80,7 @@ acceptance("Admin - Customize - Themes - Show", function (needs) {
});
test("admin-customize-theme-included-components-setting plugin outlet", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.renderInOutlet(
"admin-customize-theme-included-components-setting",
<template>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/admin-sidebar-section-test.js b/app/assets/javascripts/discourse/tests/acceptance/admin-sidebar-section-test.js
index 6c66d251869..841235a1a2c 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/admin-sidebar-section-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/admin-sidebar-section-test.js
@@ -111,7 +111,7 @@ acceptance("Admin Sidebar - Sections - Plugin API", function (needs) {
});
needs.hooks.beforeEach(() => {
- withPluginApi("1.24.0", (api) => {
+ withPluginApi((api) => {
api.addAdminSidebarSectionLink("root", {
name: "test_section_link",
label: "admin.plugins.title",
@@ -236,7 +236,7 @@ acceptance(
_locale = I18n.locale;
I18n.locale = "fr_FOO";
- withPluginApi("1.24.0", (api) => {
+ withPluginApi((api) => {
api.addAdminSidebarSectionLink("root", {
name: "test_section_link",
label: "admin.plugins.title",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/auth-complete-test.js b/app/assets/javascripts/discourse/tests/acceptance/auth-complete-test.js
index 75a3119ef0d..e08387707e2 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/auth-complete-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/auth-complete-test.js
@@ -44,7 +44,7 @@ acceptance("Auth Complete", function (needs) {
});
test("Callback added using addBeforeAuthCompleteCallback", async function (assert) {
- withPluginApi("1.11.0", (api) => {
+ withPluginApi((api) => {
api.addBeforeAuthCompleteCallback(() => {
api.container
.lookup("service:router")
diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-image-preview-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-image-preview-test.js
index 767650b9468..1e20a27ae8a 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/composer-image-preview-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/composer-image-preview-test.js
@@ -360,7 +360,7 @@ acceptance("Composer - Image Preview - Plugin API", function (needs) {
});
needs.hooks.beforeEach(() => {
- withPluginApi("1.25.0", (api) => {
+ withPluginApi((api) => {
api.addComposerImageWrapperButton(
"My Custom Button",
"custom-button-class",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js
index 37350ccb1a0..764edbddb46 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js
@@ -1014,7 +1014,7 @@ import { i18n } from "discourse-i18n";
});
test("modified placeholder with composer-editor-reply-placeholder is rendered", async function (assert) {
- withPluginApi("0.8.14", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"composer-editor-reply-placeholder",
() => {
@@ -1164,7 +1164,7 @@ import { i18n } from "discourse-i18n";
}
needs.hooks.beforeEach(() => {
- withPluginApi("0.8.14", (api) => {
+ withPluginApi((api) => {
api.customizeComposerText({
actionTitle(model) {
if (customComposerAction(model)) {
@@ -1208,7 +1208,7 @@ import { i18n } from "discourse-i18n";
});
needs.hooks.beforeEach(() => {
- withPluginApi("1.5.0", (api) => {
+ withPluginApi((api) => {
api.addComposerSaveErrorCallback((error) => {
if (error.match(/PLUGIN_XYZ ERROR/)) {
// handle error
@@ -1479,7 +1479,7 @@ import { i18n } from "discourse-i18n";
});
test("buttons can support a shortcut", async function (assert) {
- withPluginApi("0", (api) => {
+ withPluginApi((api) => {
api.addComposerToolbarPopupMenuOption({
action: (toolbarEvent) => {
toolbarEvent.applySurround("**", "**");
@@ -1561,7 +1561,7 @@ import { i18n } from "discourse-i18n";
});
test("buttons can support a shortcut that triggers a custom action", async function (assert) {
- withPluginApi("1.37.1", (api) => {
+ withPluginApi((api) => {
api.onToolbarCreate((toolbar) => {
toolbar.addButton({
id: "smile",
@@ -1647,7 +1647,7 @@ import { i18n } from "discourse-i18n";
});
test("buttons can be added conditionally", async function (assert) {
- withPluginApi("0", (api) => {
+ withPluginApi((api) => {
api.addComposerToolbarPopupMenuOption({
action: (toolbarEvent) => {
toolbarEvent.applySurround("**", "**");
diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-uploads-uppy-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-uploads-uppy-test.js
index 2aaec3987ad..6ca4ed0d224 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/composer-uploads-uppy-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/composer-uploads-uppy-test.js
@@ -576,7 +576,7 @@ acceptance("Uppy Composer Attachment - Upload Handler", function (needs) {
allow_uncategorized_topics: true,
});
needs.hooks.beforeEach(() => {
- withPluginApi("0.8.14", (api) => {
+ withPluginApi((api) => {
api.addComposerUploadHandler(["png"], (files) => {
const file = files[0];
const isNativeFile = file instanceof File ? "WAS" : "WAS NOT";
diff --git a/app/assets/javascripts/discourse/tests/acceptance/create-account-user-fields-test.js b/app/assets/javascripts/discourse/tests/acceptance/create-account-user-fields-test.js
index d7c8fc6de35..aac1c1f0a86 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/create-account-user-fields-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/create-account-user-fields-test.js
@@ -9,7 +9,7 @@ const CUSTOM_VALIDATION_REASON = "bad choice";
acceptance("Create Account - User Fields", function (needs) {
needs.hooks.beforeEach(function () {
- withPluginApi("1.33.0", (api) => {
+ withPluginApi((api) => {
api.addCustomUserFieldValidationCallback((userField) => {
if (userField.field.id === 37 && userField.value !== "red") {
return EmberObject.create({
diff --git a/app/assets/javascripts/discourse/tests/acceptance/header-api-test.gjs b/app/assets/javascripts/discourse/tests/acceptance/header-api-test.gjs
index 628fb2a05fa..91d284ce02e 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/header-api-test.gjs
+++ b/app/assets/javascripts/discourse/tests/acceptance/header-api-test.gjs
@@ -13,7 +13,7 @@ acceptance("Header API - anonymous", function (needs) {
});
test("can add buttons to the header", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerButtons.add(
"test",
<template>
@@ -27,7 +27,7 @@ acceptance("Header API - anonymous", function (needs) {
});
test("buttons are positioned to the left of the auth buttons by default", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerButtons.add(
"test",
<template>
@@ -47,7 +47,7 @@ acceptance("Header API - anonymous", function (needs) {
});
test("can add icons to the header", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerIcons.add(
"test",
<template>
@@ -61,7 +61,7 @@ acceptance("Header API - anonymous", function (needs) {
});
test("icons are positioned to the left of search icon by default", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerIcons.add(
"test",
<template>
@@ -85,7 +85,7 @@ acceptance("Glimmer Header API - authenticated", function (needs) {
needs.user({ groups: AUTO_GROUPS.everyone });
test("can add buttons to the header", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerButtons.add(
"test",
<template>
@@ -99,7 +99,7 @@ acceptance("Glimmer Header API - authenticated", function (needs) {
});
test("buttons can be repositioned", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerButtons.add(
"test1",
<template>
@@ -127,7 +127,7 @@ acceptance("Glimmer Header API - authenticated", function (needs) {
});
test("can add icons to the header", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerIcons.add(
"test",
<template>
@@ -141,7 +141,7 @@ acceptance("Glimmer Header API - authenticated", function (needs) {
});
test("icons can be repositioned", async function (assert) {
- withPluginApi("1.29.0", (api) => {
+ withPluginApi((api) => {
api.headerIcons.add(
"test1",
<template>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/modal/move-to-topic-test.js b/app/assets/javascripts/discourse/tests/acceptance/modal/move-to-topic-test.js
index 662aeac3c9b..c75578299b5 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/modal/move-to-topic-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/modal/move-to-topic-test.js
@@ -11,7 +11,7 @@ acceptance("Modal - move-to-topic", function (needs) {
needs.user({ admin: true });
test("Transformer can modify merge/move options sent in request", async function (assert) {
- withPluginApi("1.24.0", (api) => {
+ withPluginApi((api) => {
["move-to-topic-merge-options", "move-to-topic-move-options"].forEach(
(transformerName) => {
api.registerValueTransformer(transformerName, (transformer) => {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js b/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js
index 5e3b1b7e248..3bd4cc8e19e 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js
@@ -9,7 +9,7 @@ acceptance("Plugin Keyboard Shortcuts - Logged In", function (needs) {
needs.user();
test("a plugin can add a keyboard shortcut", async function (assert) {
- withPluginApi("0.8.38", (api) => {
+ withPluginApi((api) => {
api.addKeyboardShortcut("]", () => {
document.querySelector("#qunit-fixture").innerHTML =
`<div id="added-element">Test adding plugin shortcut</div>`;
@@ -28,7 +28,7 @@ acceptance("Plugin Keyboard Shortcuts - Logged In", function (needs) {
acceptance("Plugin Keyboard Shortcuts - Anonymous", function () {
test("a plugin can add a keyboard shortcut with an option", async function (assert) {
let spy = sinon.spy(KeyboardShortcuts, "_bindToPath");
- withPluginApi("0.8.38", (api) => {
+ withPluginApi((api) => {
api.addKeyboardShortcut("]", () => {}, {
anonymous: true,
path: "test-path",
@@ -42,7 +42,7 @@ acceptance("Plugin Keyboard Shortcuts - Anonymous", function () {
});
test("a plugin can add a shortcut and create a new category in the shortcut help modal", async function (assert) {
- withPluginApi("0.8.38", (api) => {
+ withPluginApi((api) => {
api.addKeyboardShortcut("meta+]", () => {}, {
help: {
category: "new_category",
@@ -72,7 +72,7 @@ acceptance("Plugin Keyboard Shortcuts - Anonymous", function () {
await click(".modal-close");
- withPluginApi("0.8.38", (api) => {
+ withPluginApi((api) => {
api.addKeyboardShortcut("meta+]", () => {}, {
help: {
category: "application",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/search-test.js b/app/assets/javascripts/discourse/tests/acceptance/search-test.js
index de34d7e12d6..0288e161271 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/search-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/search-test.js
@@ -679,7 +679,7 @@ acceptance("Search - Authenticated", function (needs) {
await visit("/");
await click("#search-button");
- withPluginApi("1.20.0", (api) => {
+ withPluginApi((api) => {
api.addSearchMenuAssistantSelectCallback((args) => {
if (args.usage === "recent-search") {
args.searchTermChanged("hijacked!");
diff --git a/app/assets/javascripts/discourse/tests/acceptance/sidebar-user-community-section-test.js b/app/assets/javascripts/discourse/tests/acceptance/sidebar-user-community-section-test.js
index e8f26f20802..00b74ff173e 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/sidebar-user-community-section-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/sidebar-user-community-section-test.js
@@ -981,7 +981,7 @@ acceptance("Sidebar - Logged on user - Community Section", function (needs) {
});
test("adding section link via plugin API with Object", async function (assert) {
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
api.addCommunitySectionLink({
name: "unread",
route: "discovery.unread",
@@ -1023,7 +1023,7 @@ acceptance("Sidebar - Logged on user - Community Section", function (needs) {
test("adding section link via plugin API with callback function", async function (assert) {
let teardownCalled = false;
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
api.addCommunitySectionLink((baseSectionLink) => {
return class CustomSectionLink extends baseSectionLink {
get name() {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/tags-test.js b/app/assets/javascripts/discourse/tests/acceptance/tags-test.js
index 177459f7c20..b2d31f26fc7 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/tags-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/tags-test.js
@@ -730,7 +730,7 @@ acceptance("Tag separator customization", function (needs) {
});
test("applying a value transformation for custom tag separator", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("tag-separator", () => {
return " | ";
});
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-admin-menu-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-admin-menu-test.js
index 45343c52c09..d24746cae1a 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-admin-menu-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-admin-menu-test.js
@@ -46,7 +46,7 @@ acceptance("Topic - Admin Menu", function (needs) {
updateCurrentUser({ admin: true });
this.set("actionCalled", false);
- withPluginApi("1.31.0", (api) => {
+ withPluginApi((api) => {
api.addTopicAdminMenuButton(() => {
return {
className: "extra-button",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-mobile-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-mobile-test.js
index 95dbd82c616..e32ac63f259 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-mobile-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-mobile-test.js
@@ -12,7 +12,7 @@ acceptance(
test("adds topic footer button as a dropdown through API", async function (assert) {
const done = assert.async();
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterButton({
id: "foo",
icon: "gear",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-test.js
index 76090791d5b..df7bcb347e1 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-button-api-test.js
@@ -10,7 +10,7 @@ acceptance(
test("adds topic footer button through API", async function (assert) {
const done = assert.async();
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterButton({
id: "my-button",
icon: "gear",
@@ -28,7 +28,7 @@ acceptance(
});
test("doesn't show footer button if anonymousOnly is true", async function (assert) {
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterButton({
id: "my-button",
icon: "gear",
@@ -48,7 +48,7 @@ acceptance(
function () {
test("adds topic footer button through API", async function (assert) {
const done = assert.async();
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterButton({
id: "my-button",
icon: "gear",
@@ -67,7 +67,7 @@ acceptance(
});
test("doesn't show footer button if anonymousOnly is false/unset", async function (assert) {
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterButton({
id: "my-button",
icon: "gear",
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-dropdown-api-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-dropdown-api-test.js
index 9c40e8b6900..85ef8a0b2c4 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-footer-dropdown-api-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-footer-dropdown-api-test.js
@@ -11,7 +11,7 @@ acceptance(
test("adds topic footer dropdown through API", async function (assert) {
const done = assert.async();
- withPluginApi("0.13.1", (api) => {
+ withPluginApi((api) => {
api.registerTopicFooterDropdown({
id: "my-button",
content() {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-list-plugin-api-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-list-plugin-api-test.js
index 6ebee2adbff..68b85334a04 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-list-plugin-api-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-list-plugin-api-test.js
@@ -11,7 +11,7 @@ acceptance("Topic list plugin API", function () {
test("Overrides lastUnreadUrl", async function (assert) {
try {
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
api.registerCustomLastUnreadUrlCallback(customLastUnreadUrl);
});
diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-post-decorate-cooked-test.gjs b/app/assets/javascripts/discourse/tests/acceptance/topic-post-decorate-cooked-test.gjs
index 6b0b4002e12..a937ea9d94e 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/topic-post-decorate-cooked-test.gjs
+++ b/app/assets/javascripts/discourse/tests/acceptance/topic-post-decorate-cooked-test.gjs
@@ -34,7 +34,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
DemoComponent
);
- withPluginApi(0, (api) => {
+ withPluginApi((api) => {
api.decorateCookedElement(
(cooked, helper) => {
if (helper.getModel().post_number !== 1) {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/category-description-text-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/category-description-text-test.js
index 9a447fdc215..3c32d61d85f 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/category-description-text-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/category-description-text-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("category-description-text transformer", function () {
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"category-description-text",
({ value, context }) =>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/category-display-name-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/category-display-name-test.js
index df1f8634f61..f4252d60377 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/category-display-name-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/category-display-name-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("category-display-name transformer", function () {
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"category-display-name",
({ value, context }) =>
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/composer-service-cant-submit-post-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/composer-service-cant-submit-post-test.js
index 5da03a6b0d0..beeeb246bd2 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/composer-service-cant-submit-post-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/composer-service-cant-submit-post-test.js
@@ -10,7 +10,7 @@ acceptance("composer-service-cannot-submit-post transformer", function (needs) {
});
test("applying a value transformation - disable submit", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"composer-service-cannot-submit-post",
() => {
@@ -28,7 +28,7 @@ acceptance("composer-service-cannot-submit-post transformer", function (needs) {
});
test("applying a value transformation - allow submission", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"composer-service-cannot-submit-post",
({ value }) => {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/header-notifications-avatar-size-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/header-notifications-avatar-size-test.js
index 34d3d8fdc85..463b755eabf 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/header-notifications-avatar-size-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/header-notifications-avatar-size-test.js
@@ -7,7 +7,7 @@ acceptance("header-notifications-avatar-size transformer", function (needs) {
needs.user();
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"header-notifications-avatar-size",
() => "huge"
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-href-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-href-test.js
index 6788c818511..b5a0cb3510d 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-href-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-href-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("home-logo-href transformer", function () {
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"home-logo-href",
({ value }) => value + "transformed"
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-image-url-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-image-url-test.js
index f439988663a..416c2ae1ef1 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-image-url-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-image-url-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("home-logo-image-url transformer", function () {
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"home-logo-image-url",
({ value }) => "/transformed" + value
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-minimized-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-minimized-test.js
index 5dca3ae3353..f2d312d8dcb 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-minimized-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/home-logo-minimized-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("home-logo-minimized transformer", function () {
test("can force minimize the logo", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("home-logo-minimized", () => true);
});
@@ -14,7 +14,7 @@ acceptance("home-logo-minimized transformer", function () {
});
test("can force un-minimize the logo", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("home-logo-minimized", () => false);
});
diff --git a/app/assets/javascripts/discourse/tests/acceptance/transformers/text-color-test.js b/app/assets/javascripts/discourse/tests/acceptance/transformers/text-color-test.js
index 3950a5ef9a5..ae4a43cee1a 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/transformers/text-color-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/transformers/text-color-test.js
@@ -5,7 +5,7 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("category-text-color transformer", function () {
test("applying a value transformation", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("category-text-color", () => "FF0000");
});
diff --git a/app/assets/javascripts/discourse/tests/acceptance/user-menu-test.js b/app/assets/javascripts/discourse/tests/acceptance/user-menu-test.js
index a662cb5dec7..76662adf1d2 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/user-menu-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/user-menu-test.js
@@ -149,7 +149,7 @@ acceptance("User menu", function (needs) {
test("tabs have title attributes", async function (assert) {
updateCurrentUser({ reviewable_count: 1 });
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerUserMenuTab((UserMenuTab) => {
return class extends UserMenuTab {
get id() {
@@ -217,7 +217,7 @@ acceptance("User menu", function (needs) {
test("tabs added via the plugin API", async function (assert) {
updateCurrentUser({ reviewable_count: 1 });
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerUserMenuTab((UserMenuTab) => {
return class extends UserMenuTab {
get id() {
@@ -329,7 +329,7 @@ acceptance("User menu", function (needs) {
});
test("notifications tab applies model transformations registered by plugins", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerModelTransformer("notification", (notifications) => {
notifications.forEach((notification, index) => {
if (notification.fancy_title) {
@@ -354,7 +354,7 @@ acceptance("User menu", function (needs) {
});
test("bookmarks tab applies model transformations registered by plugins", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerModelTransformer("bookmark", (bookmarks) => {
bookmarks.forEach((bookmark) => {
if (bookmark.title) {
@@ -374,7 +374,7 @@ acceptance("User menu", function (needs) {
});
test("messages tab applies model transformations registered by plugins", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerModelTransformer("topic", (topics) => {
topics.forEach((topic) => {
topic.fancy_title = `pluginTransformer#1 ${topic.fancy_title}`;
@@ -654,7 +654,7 @@ acceptance("User menu", function (needs) {
});
test("Extra items added to profile tab via plugin API are rendered properly", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.addQuickAccessProfileItem({
className: "test-1-item",
icon: "wrench",
@@ -698,7 +698,7 @@ acceptance("User menu", function (needs) {
test("the active tab can be clicked again to navigate to a page", async function (assert) {
updateCurrentUser({ reviewable_count: 1 });
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerUserMenuTab((UserMenuTab) => {
return class extends UserMenuTab {
get id() {
diff --git a/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js b/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js
index b37e498c008..72cc4be3b56 100644
--- a/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js
+++ b/app/assets/javascripts/discourse/tests/acceptance/user-private-messages-test.js
@@ -664,7 +664,7 @@ acceptance(
test("addUserMessagesNavigationDropdownRow plugin api", async function (assert) {
try {
- withPluginApi("1.5.0", (api) => {
+ withPluginApi((api) => {
api.addUserMessagesNavigationDropdownRow(
"preferences",
"test nav",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/about-page-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/about-page-test.gjs
index c505bf4627d..7e77518ff06 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/about-page-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/about-page-test.gjs
@@ -27,7 +27,7 @@ module("Integration | Component | about-page", function (hooks) {
setupRenderingTest(hooks);
test("custom site activities registered via the plugin API", async function (assert) {
- withPluginApi("1.37.0", (api) => {
+ withPluginApi((api) => {
api.addAboutPageActivity("my_custom_activity", (periods) => {
return {
icon: "eye",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/d-editor-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/d-editor-test.gjs
index a5e1a31ffa3..a86a43d4fd3 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/d-editor-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/d-editor-test.gjs
@@ -805,7 +805,7 @@ third line`
test("toolbar event supports replaceText", async function (assert) {
const self = this;
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.onToolbarCreate((toolbar) => {
toolbar.addButton({
id: "replace-text",
@@ -876,7 +876,7 @@ third line`
});
test("Toolbar buttons are only rendered when condition is met", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.onToolbarCreate((toolbar) => {
toolbar.addButton({
id: "shown",
@@ -1487,7 +1487,7 @@ module("Integration | Component | d-editor | rich editor", function (hooks) {
const initialValue = "Hello\n\n* world\n* am am here $";
- withPluginApi("2.1.0", (api) => {
+ withPluginApi((api) => {
api.onToolbarCreate((toolbar) => {
toolbar.addButton({
id: "replace-text",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/home-logo-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/home-logo-test.gjs
index 1bc5d227788..0ddfe0788f2 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/home-logo-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/home-logo-test.gjs
@@ -182,7 +182,7 @@ module("Integration | Component | home-logo", function (hooks) {
});
test("api.registerHomeLogoHrefCallback can be used to change the logo href url", async function (assert) {
- withPluginApi("1.32.0", (api) => {
+ withPluginApi((api) => {
api.registerHomeLogoHrefCallback(() => "https://example.com");
});
diff --git a/app/assets/javascripts/discourse/tests/integration/components/latest-topic-list-item-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/latest-topic-list-item-test.gjs
index 30c41eb6151..3774278bdbd 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/latest-topic-list-item-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/latest-topic-list-item-test.gjs
@@ -8,7 +8,7 @@ module("Integration | Component | latest-topic-list-item", function (hooks) {
setupRenderingTest(hooks);
test("latest-topic-list-item-class value transformer", async function (assert) {
- withPluginApi("1.39.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"latest-topic-list-item-class",
({ value, context }) => {
diff --git a/app/assets/javascripts/discourse/tests/integration/components/plugin-outlet-decorator-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/plugin-outlet-decorator-test.gjs
index 32b9ad7230f..c314d7ad75d 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/plugin-outlet-decorator-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/plugin-outlet-decorator-test.gjs
@@ -17,7 +17,7 @@ module("Plugin Outlet - Decorator", function (hooks) {
registerTemporaryModule(`${PREFIX}/my-outlet-name/foo`, hbs`FOO`);
registerTemporaryModule(`${PREFIX}/my-outlet-name/bar`, hbs`BAR`);
- withPluginApi("0.8.38", (api) => {
+ withPluginApi((api) => {
withSilencedDeprecations("discourse.decorate-plugin-outlet", () => {
api.decoratePluginOutlet(
"my-outlet-name",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/post/menu/buttons/flag-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/post/menu/buttons/flag-test.gjs
index 48b98b682dd..a4cf120eaed 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/post/menu/buttons/flag-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/post/menu/buttons/flag-test.gjs
@@ -36,7 +36,7 @@ module("Integration | Component | Post Menu Flag Button", function (hooks) {
});
test("shouldRender returns false when 'flag-button-render-decision' transformer returns false", function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("flag-button-render-decision", () => false);
});
assert.false(
@@ -46,7 +46,7 @@ module("Integration | Component | Post Menu Flag Button", function (hooks) {
});
test("'flag-button-disabled-state' transformer to true causes DButton to be disabled", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("flag-button-render-decision", () => true); // Ensure component renders
api.registerValueTransformer("flag-button-disabled-state", () => true);
});
@@ -63,7 +63,7 @@ module("Integration | Component | Post Menu Flag Button", function (hooks) {
test("'flag-button-dynamic-class' transformer applies the given style", async function (assert) {
const testClass = "my-special-flag-style";
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("flag-button-render-decision", () => true); // Ensure component renders
api.registerValueTransformer(
"flag-button-dynamic-class",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/prosemirror-editor-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/prosemirror-editor-test.gjs
index a337d735033..26ac90c9e72 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/prosemirror-editor-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/prosemirror-editor-test.gjs
@@ -62,7 +62,7 @@ module("Integration | Component | prosemirror-editor", function (hooks) {
test("supports registered nodeSpec/parser/serializer", async function (assert) {
this.siteSettings.rich_editor = true;
- withPluginApi("2.1.0", (api) => {
+ withPluginApi((api) => {
// Multiple parsers can be registered for the same node type
api.registerRichEditorExtension({
parse: { wrap_open() {}, wrap_close() {} },
@@ -116,7 +116,7 @@ module("Integration | Component | prosemirror-editor", function (hooks) {
test("supports registered markSpec/parser/serializer", async function (assert) {
this.siteSettings.rich_editor = true;
- withPluginApi("2.1.0", (api) => {
+ withPluginApi((api) => {
api.registerRichEditorExtension({
// just for testing purpose - our actual hashtag is a node, not a mark
markSpec: {
@@ -155,7 +155,7 @@ module("Integration | Component | prosemirror-editor", function (hooks) {
const state = {};
- withPluginApi("2.1.0", (api) => {
+ withPluginApi((api) => {
api.registerRichEditorExtension({
nodeViews: {
paragraph: class CustomNodeView {
@@ -185,7 +185,7 @@ module("Integration | Component | prosemirror-editor", function (hooks) {
const state = {};
- withPluginApi("2.1.0", (api) => {
+ withPluginApi((api) => {
// plugins can be an array
api.registerRichEditorExtension({
plugins: [
diff --git a/app/assets/javascripts/discourse/tests/integration/components/select-kit/api-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/select-kit/api-test.gjs
index 2686704e025..a42ec3096ae 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/select-kit/api-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/select-kit/api-test.gjs
@@ -29,7 +29,7 @@ module("Integration | Component | select-kit/api", function (hooks) {
setDefaultState(this, null, { content: DEFAULT_CONTENT });
- withPluginApi("0.8.43", (api) => {
+ withPluginApi((api) => {
api.modifySelectKit("combo-box").appendContent(() => {
return {
id: "alpaca",
@@ -71,7 +71,7 @@ module("Integration | Component | select-kit/api", function (hooks) {
setDefaultState(this, null, { content: DEFAULT_CONTENT });
- withPluginApi("0.8.43", (api) => {
+ withPluginApi((api) => {
api.modifySelectKit("combo-box").prependContent(() => {
return {
id: "alpaca",
@@ -113,7 +113,7 @@ module("Integration | Component | select-kit/api", function (hooks) {
setDefaultState(this, null, { content: DEFAULT_CONTENT });
- withPluginApi("0.8.43", (api) => {
+ withPluginApi((api) => {
api.modifySelectKit("combo-box").onChange((component, value, item) => {
document.querySelector("#test").innerText = item.name;
});
@@ -140,7 +140,7 @@ module("Integration | Component | select-kit/api", function (hooks) {
setDefaultState(this, null, { content: DEFAULT_CONTENT });
- withPluginApi("0.8.43", (api) => {
+ withPluginApi((api) => {
api.modifySelectKit("combo-box").replaceContent(() => {
return {
id: "alpaca",
diff --git a/app/assets/javascripts/discourse/tests/integration/components/topic-list-item-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/topic-list-item-test.gjs
index 89330570bc3..66516434064 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/topic-list-item-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/topic-list-item-test.gjs
@@ -35,7 +35,7 @@ module("Integration | Component | topic-list-item", function (hooks) {
});
test("topic-list-item-class value transformer", async function (assert) {
- withPluginApi("1.39.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"topic-list-item-class",
({ value, context }) => {
diff --git a/app/assets/javascripts/discourse/tests/integration/components/user-menu/menu-item-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/user-menu/menu-item-test.gjs
index af602322700..68007183d1a 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/user-menu/menu-item-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/user-menu/menu-item-test.gjs
@@ -261,7 +261,7 @@ module(
});
test("various aspects can be customized according to the notification's render director", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerNotificationTypeRenderer(
"linked",
(NotificationTypeBase) => {
@@ -352,7 +352,7 @@ module(
});
test("description can be omitted", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerNotificationTypeRenderer(
"linked",
(NotificationTypeBase) => {
@@ -389,7 +389,7 @@ module(
});
test("label can be omitted", async function (assert) {
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.registerNotificationTypeRenderer(
"linked",
(NotificationTypeBase) => {
diff --git a/app/assets/javascripts/discourse/tests/integration/components/widgets/post-small-action-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/widgets/post-small-action-test.gjs
index 67c99469390..b775d343b00 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/widgets/post-small-action-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/widgets/post-small-action-test.gjs
@@ -119,7 +119,7 @@ module(
test("`addGroupPostSmallActionCode` plugin api", async function (assert) {
const self = this;
- withPluginApi("1.6.0", (api) => {
+ withPluginApi((api) => {
api.addGroupPostSmallActionCode("some_code");
});
@@ -156,7 +156,7 @@ module(
const self = this;
withSilencedDeprecations(POST_STREAM_DEPRECATION_OPTIONS.id, () => {
- withPluginApi("1.6.0", (api) => {
+ withPluginApi((api) => {
api.addPostSmallActionClassesCallback((postAttrs) => {
if (postAttrs.canRecover) {
return ["abcde"];
diff --git a/app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.gjs
index c23f100aac9..17f058dd4fe 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.gjs
@@ -42,7 +42,7 @@ function postStreamTest(name, attrs) {
postStreamTest("extensibility", {
posts() {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"post-menu-buttons",
({ value: dag, context: { post, firstButtonKey } }) => {
diff --git a/app/assets/javascripts/discourse/tests/integration/components/widgets/widget-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/widgets/widget-test.gjs
index 76ff915404e..5e7acce777e 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/widgets/widget-test.gjs
+++ b/app/assets/javascripts/discourse/tests/integration/components/widgets/widget-test.gjs
@@ -391,7 +391,7 @@ module("Integration | Component | Widget | base", function (hooks) {
template: widgetHbs`main content`,
});
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.decorateWidget("decorate-test:before", (dec) => {
return dec.h("b", "before");
});
@@ -427,7 +427,7 @@ module("Integration | Component | Widget | base", function (hooks) {
settings: { age: 36 },
});
- withPluginApi("0.1", (api) => {
+ withPluginApi((api) => {
api.changeWidgetSetting("ov-settings-test", "age", 37);
});
diff --git a/app/assets/javascripts/discourse/tests/unit/components/post-menu-test.gjs b/app/assets/javascripts/discourse/tests/unit/components/post-menu-test.gjs
index 6afa304b1cd..841d715f67d 100644
--- a/app/assets/javascripts/discourse/tests/unit/components/post-menu-test.gjs
+++ b/app/assets/javascripts/discourse/tests/unit/components/post-menu-test.gjs
@@ -53,7 +53,7 @@ module("Unit | Component | post-menu", function (hooks) {
});
test("post-menu-toggle-like-action behavior transformer", async function (assert) {
- withPluginApi("2.0.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer("post-menu-toggle-like-action", () => {
assert.step("transformer called");
});
diff --git a/app/assets/javascripts/discourse/tests/unit/controllers/full-page-search-test.js b/app/assets/javascripts/discourse/tests/unit/controllers/full-page-search-test.js
index f10e3c15293..bc4cedc01d7 100644
--- a/app/assets/javascripts/discourse/tests/unit/controllers/full-page-search-test.js
+++ b/app/assets/javascripts/discourse/tests/unit/controllers/full-page-search-test.js
@@ -6,7 +6,7 @@ module("Unit | Controller | full-page-search", function (hooks) {
setupTest(hooks);
test("full-page-search-load-more behavior transformer", function (assert) {
- withPluginApi("2.0.0", (api) => {
+ withPluginApi((api) => {
const controller = this.owner.lookup("controller:full-page-search");
controller.model = {
grouped_search_result: { more_full_page_results: true },
diff --git a/app/assets/javascripts/discourse/tests/unit/lib/plugin-api-test.js b/app/assets/javascripts/discourse/tests/unit/lib/plugin-api-test.js
index 60c22d78699..920217365d4 100644
--- a/app/assets/javascripts/discourse/tests/unit/lib/plugin-api-test.js
+++ b/app/assets/javascripts/discourse/tests/unit/lib/plugin-api-test.js
@@ -19,7 +19,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
getOwner(this).register("test-thingy:main", TestThingy);
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass("test-thingy:main", {
pluginId: "plugin-api-test",
@@ -43,7 +43,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
getOwner(this).register("native-test-thingy:main", NativeTestThingy);
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass("native-test-thingy:main", {
pluginId: "plugin-api-test",
@@ -72,7 +72,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
instantiate: false,
});
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass("class-test-thingy:main", {
pluginId: "plugin-api-test",
@@ -102,7 +102,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
// https://github.com/emberjs/ember.js/blob/36505f1b42/packages/%40ember/-internals/runtime/lib/system/core_object.js#L1144-L1163
// Which in turn invokes `factory.proto()`.
// This puts things in a state which will trigger https://github.com/emberjs/ember.js/issues/18860 when a native getter is overridden.
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass("test-class:main", {
pluginId: "plugin-api-test",
@@ -135,7 +135,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
getOwner(this).register("test-thingy:main", TestThingy);
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass(
"test-thingy:main",
(Superclass) =>
@@ -189,7 +189,7 @@ module("Unit | Utility | plugin-api", function (hooks) {
getOwner(this).register("test-thingy:main", TestThingy);
const fakeInit = () => {
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.modifyClass("test-thingy:main", {
someMethod() {
return `${this._super()} reopened`;
diff --git a/app/assets/javascripts/discourse/tests/unit/lib/transformer-test.js b/app/assets/javascripts/discourse/tests/unit/lib/transformer-test.js
index fb37764571f..959af645300 100644
--- a/app/assets/javascripts/discourse/tests/unit/lib/transformer-test.js
+++ b/app/assets/javascripts/discourse/tests/unit/lib/transformer-test.js
@@ -41,7 +41,7 @@ module("Unit | Utility | transformers", function (hooks) {
assert.throws(
() =>
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName("whatever");
}),
/addValueTransformerName was called when the system is no longer accepting new names to be added/
@@ -51,7 +51,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("warns if name is already registered", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName("home-logo-href"); // existing core transformer
// testing warning about core transformers
@@ -83,7 +83,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("adds a new transformer name", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
assert.false(
transformerWasAdded(
"a-new-plugin-transformer",
@@ -117,7 +117,7 @@ module("Unit | Utility | transformers", function (hooks) {
assert.throws(
() =>
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("whatever", () => "foo"); // the name doesn't really matter at this point
}),
/was called while the system was still accepting new transformer names/
@@ -125,7 +125,7 @@ module("Unit | Utility | transformers", function (hooks) {
});
test("warns if transformer is unknown", function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
const result = api.registerValueTransformer("whatever", () => "foo");
assert.false(
result,
@@ -144,7 +144,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("raises an exception if the callback parameter is not a function", function (assert) {
assert.throws(
() =>
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("home-logo-href", "foo");
}),
/api.registerValueTransformer requires the callback argument to be a function/
@@ -154,7 +154,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("registering a new transformer works", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName("test-transformer");
acceptTransformerRegistrations();
@@ -189,7 +189,7 @@ module("Unit | Utility | transformers", function (hooks) {
acceptNewTransformerNames();
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName("test-value1-transformer");
api.addValueTransformerName("test-value2-transformer");
});
@@ -354,7 +354,7 @@ module("Unit | Utility | transformers", function (hooks) {
"returns the default values when there are no transformers registered"
);
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("test-value1-transformer", ({ value }) => {
return value * 10;
});
@@ -393,7 +393,7 @@ module("Unit | Utility | transformers", function (hooks) {
const testObject1 = new Testable(1);
const testObject2 = new Testable(2);
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("test-value1-transformer", () => {
throw new Error("sabotaged");
});
@@ -436,7 +436,7 @@ module("Unit | Utility | transformers", function (hooks) {
"dispatches an event to display a message do admins when an exception is caught in a transformer"
);
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("test-value1-transformer", () => {
return 0;
});
@@ -452,7 +452,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("the transformer callback can receive an optional context object", function (assert) {
let expectedContext = null;
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"test-value1-transformer",
// eslint-disable-next-line no-unused-vars
@@ -495,7 +495,7 @@ module("Unit | Utility | transformers", function (hooks) {
`initially the sequence contains only the element "r"`
);
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer("test-value1-transformer", ({ value }) => {
return ["r", ...value];
});
@@ -521,14 +521,14 @@ module("Unit | Utility | transformers", function (hooks) {
module("applyMutableValueTransformer", function (innerHooks) {
innerHooks.beforeEach(function () {
acceptNewTransformerNames();
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName("test-mutable-transformer");
});
acceptTransformerRegistrations();
});
test("mutates the value as expected", function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"test-mutable-transformer",
({ value }) => {
@@ -564,7 +564,7 @@ module("Unit | Utility | transformers", function (hooks) {
assert.throws(
() =>
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.addBehaviorTransformerName("whatever");
}),
/addBehaviorTransformerName was called when the system is no longer accepting new names to be added/
@@ -574,7 +574,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("warns if name is already registered", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.addBehaviorTransformerName("home-logo-href"); // existing core transformer
// testing warning about core transformers
@@ -606,7 +606,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("adds a new transformer name", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
assert.false(
transformerWasAdded(
"a-new-plugin-transformer",
@@ -640,7 +640,7 @@ module("Unit | Utility | transformers", function (hooks) {
assert.throws(
() =>
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer("whatever", () => "foo"); // the name doesn't really matter at this point
}),
/was called while the system was still accepting new transformer names/
@@ -648,7 +648,7 @@ module("Unit | Utility | transformers", function (hooks) {
});
test("warns if transformer is unknown ans returns false", function (assert) {
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
const result = api.registerBehaviorTransformer("whatever", () => "foo");
assert.false(
result,
@@ -667,7 +667,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("raises an exception if the callback parameter is not a function", function (assert) {
assert.throws(
() =>
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"discovery-topic-list-load-more",
"foo"
@@ -680,7 +680,7 @@ module("Unit | Utility | transformers", function (hooks) {
test("registering a new transformer works", function (assert) {
acceptNewTransformerNames();
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.addBehaviorTransformerName("test-transformer");
acceptTransformerRegistrations();
@@ -729,7 +729,7 @@ module("Unit | Utility | transformers", function (hooks) {
acceptNewTransformerNames();
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.addBehaviorTransformerName("test-behavior1-transformer");
api.addBehaviorTransformerName("test-behavior2-transformer");
});
@@ -920,7 +920,7 @@ module("Unit | Utility | transformers", function (hooks) {
"the default behavior doubles the value"
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context }) => {
@@ -989,7 +989,7 @@ module("Unit | Utility | transformers", function (hooks) {
const testObject = new Testable();
assert.strictEqual(testObject.value, null, "initially the value is null");
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context, next }) => {
@@ -1061,7 +1061,7 @@ module("Unit | Utility | transformers", function (hooks) {
"the value is changed after the async behavior"
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
async ({ context, next }) => {
@@ -1118,7 +1118,7 @@ module("Unit | Utility | transformers", function (hooks) {
const testObject1 = new Testable(1);
const testObject2 = new Testable(2);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer("test-behavior1-transformer", () => {
throw new Error("sabotaged");
});
@@ -1165,7 +1165,7 @@ module("Unit | Utility | transformers", function (hooks) {
"dispatches an event to display a message do admins when an exception is caught in a transformer"
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context }) => {
@@ -1188,7 +1188,7 @@ module("Unit | Utility | transformers", function (hooks) {
let behavior = null;
let expectedContext = null;
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context }) => {
@@ -1250,7 +1250,7 @@ module("Unit | Utility | transformers", function (hooks) {
`initially buildValue value only generates "!"`
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context, next }) => {
@@ -1314,7 +1314,7 @@ module("Unit | Utility | transformers", function (hooks) {
`initially buildValue value only generates "!"`
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context }) => {
@@ -1373,7 +1373,7 @@ module("Unit | Utility | transformers", function (hooks) {
`initially buildValue value only generates "!"`
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ context, next }) => {
@@ -1440,7 +1440,7 @@ module("Unit | Utility | transformers", function (hooks) {
`initially buildValue value only generates "!"`
);
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.registerBehaviorTransformer(
"test-behavior1-transformer",
({ next, context }) => {
diff --git a/app/assets/javascripts/discourse/tests/unit/models/post-test.js b/app/assets/javascripts/discourse/tests/unit/models/post-test.js
index ab5993ca65e..eec76caf7ba 100644
--- a/app/assets/javascripts/discourse/tests/unit/models/post-test.js
+++ b/app/assets/javascripts/discourse/tests/unit/models/post-test.js
@@ -33,7 +33,7 @@ module("Unit | Model | post", function (hooks) {
});
test("updateFromPost", function (assert) {
- withPluginApi("1.39.0", (api) => {
+ withPluginApi((api) => {
api.addTrackedPostProperties("plugin_property", "other_plugin_property");
});
diff --git a/package.json b/package.json
index 5bfda8cd3f9..5a252039cc4 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"license": "GPL-2.0-only",
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.28.0",
- "@discourse/lint-configs": "^2.22.0",
+ "@discourse/lint-configs": "^2.30.0",
"@discourse/moment-timezone-names-translations": "^1.0.0",
"@fortawesome/fontawesome-free": "6.7.2",
"@glint/core": "1.4.1-unstable.34c4510",
@@ -20,9 +20,9 @@
"chrome-launcher": "^1.2.0",
"chrome-remote-interface": "^0.33.3",
"concurrently": "^9.2.0",
- "ember-template-lint": "7.7.0",
+ "ember-template-lint": "7.9.1",
"esbuild": "^0.25.8",
- "eslint": "9.27.0",
+ "eslint": "9.32.0",
"jsdoc": "^4.0.4",
"lefthook": "^1.12.2",
"licensee": "^11.1.1",
@@ -35,7 +35,7 @@
"prettier": "3.5.3",
"puppeteer-core": "^24.14.0",
"squoosh": "https://codeload.github.com/discourse/squoosh/tar.gz/dc9649d",
- "stylelint": "16.19.1",
+ "stylelint": "16.22.0",
"terser": "^5.43.1",
"typescript": "5.6.x"
},
diff --git a/plugins/automation/admin/assets/javascripts/admin/components/form-error.gjs b/plugins/automation/admin/assets/javascripts/admin/components/form-error.gjs
index d929f464ea5..ea913118a9b 100644
--- a/plugins/automation/admin/assets/javascripts/admin/components/form-error.gjs
+++ b/plugins/automation/admin/assets/javascripts/admin/components/form-error.gjs
@@ -1,4 +1,4 @@
-import htmlSafe from "discourse/helpers/html-safe";
+import { htmlSafe } from "@ember/template";
const FormError = <template>
{{#if @error}}
diff --git a/plugins/automation/admin/assets/javascripts/admin/initializers/discourse-automation.js b/plugins/automation/admin/assets/javascripts/admin/initializers/discourse-automation.js
index 1887699ef1e..6e4263e2617 100644
--- a/plugins/automation/admin/assets/javascripts/admin/initializers/discourse-automation.js
+++ b/plugins/automation/admin/assets/javascripts/admin/initializers/discourse-automation.js
@@ -79,6 +79,6 @@ export default {
name: "discourse-automation",
initialize() {
- withPluginApi("0.8.24", _initializeDiscourseAutomation);
+ withPluginApi(_initializeDiscourseAutomation);
},
};
diff --git a/plugins/automation/assets/javascripts/discourse/initializers/automation-admin-plugin-configuration-nav.js b/plugins/automation/assets/javascripts/discourse/initializers/automation-admin-plugin-configuration-nav.js
index be63fa92cae..72575ac8b0a 100644
--- a/plugins/automation/assets/javascripts/discourse/initializers/automation-admin-plugin-configuration-nav.js
+++ b/plugins/automation/assets/javascripts/discourse/initializers/automation-admin-plugin-configuration-nav.js
@@ -9,7 +9,7 @@ export default {
return;
}
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.addAdminPluginConfigurationNav("automation", [
{
label: "discourse_automation.title",
diff --git a/plugins/chat/admin/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js b/plugins/chat/admin/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js
index a19a37e03e1..58d116566ce 100644
--- a/plugins/chat/admin/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js
+++ b/plugins/chat/admin/assets/javascripts/discourse/initializers/chat-admin-plugin-configuration-nav.js
@@ -10,7 +10,7 @@ export default {
return;
}
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.addAdminPluginConfigurationNav("chat", [
{
label: "chat.incoming_webhooks.title",
diff --git a/plugins/chat/assets/javascripts/discourse/components/user-menu/chat-notifications-list-empty-state.gjs b/plugins/chat/assets/javascripts/discourse/components/user-menu/chat-notifications-list-empty-state.gjs
index 3e822f2646f..bc549f28a18 100644
--- a/plugins/chat/assets/javascripts/discourse/components/user-menu/chat-notifications-list-empty-state.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/user-menu/chat-notifications-list-empty-state.gjs
@@ -1,5 +1,5 @@
+import { htmlSafe } from "@ember/template";
import EmptyState from "discourse/components/empty-state";
-import htmlSafe from "discourse/helpers/html-safe";
import getUrl from "discourse/lib/get-url";
import { i18n } from "discourse-i18n";
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-audio.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-audio.js
index cc3bf623c2c..9d74ccfaf67 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-audio.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-audio.js
@@ -20,7 +20,7 @@ export default {
return await isPrimaryTab();
};
- withPluginApi("0.12.1", (api) => {
+ withPluginApi((api) => {
api.registerDesktopNotificationHandler((data, siteSettings, user) => {
const indicatorType = user.user_option.chat_header_indicator_preference;
const isMention = data.notification_type === MENTION;
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js
index 30b6be84453..8bcd4cdf8d8 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js
@@ -126,9 +126,7 @@ export default {
initialize(container) {
if (container.lookup("service:chat").userCanChat) {
- withPluginApi("0.8.42", (api) =>
- this.initializeWithPluginApi(api, container)
- );
+ withPluginApi((api) => this.initializeWithPluginApi(api, container));
}
},
};
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js
index c54e4870dd3..66edac8a8bb 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-keyboard-shortcuts.js
@@ -138,7 +138,7 @@ export default {
}
};
- withPluginApi("0.12.1", (api) => {
+ withPluginApi((api) => {
api.addKeyboardShortcut(
`${PLATFORM_KEY_MODIFIER}+k`,
openQuickChannelSelector,
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-plugin-decorators.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-plugin-decorators.js
index 8a19448af3d..58e6bd9bafe 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-plugin-decorators.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-plugin-decorators.js
@@ -39,7 +39,7 @@ export default {
initialize(container) {
if (container.lookup("service:chat").userCanChat) {
const siteSettings = container.lookup("service:site-settings");
- withPluginApi("0.8.42", (api) => {
+ withPluginApi((api) => {
this.initializeWithPluginApi(api, siteSettings);
});
}
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-setup.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-setup.js
index 02509dbe641..a4744a2fd86 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-setup.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-setup.js
@@ -31,7 +31,7 @@ class ChatSetupInit {
setOwner(this, owner);
this.appEvents.on("discourse:focus-changed", this, "_handleFocusChanged");
- withPluginApi("0.12.1", (api) => {
+ withPluginApi((api) => {
api.addAboutPageActivity("chat_messages", (periods) => {
const count = periods["7_days"];
if (count) {
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js
index 2712ce95bc6..57609db770b 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js
@@ -28,7 +28,7 @@ export default {
this.siteSettings = container.lookup("service:site-settings");
this.currentUser = container.lookup("service:current-user");
- withPluginApi("1.8.0", (api) => {
+ withPluginApi((api) => {
const chatStateManager = container.lookup("service:chat-state-manager");
api.addSidebarPanel(
@@ -47,7 +47,7 @@ export default {
initSidebarState(api, api.getCurrentUser());
});
- withPluginApi("1.3.0", (api) => {
+ withPluginApi((api) => {
const chatChannelsManager = container.lookup(
"service:chat-channels-manager"
);
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-user-menu.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-user-menu.js
index 5c34ce5b00a..00cc6c796f2 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-user-menu.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-user-menu.js
@@ -7,7 +7,7 @@ import slugifyChannel from "discourse/plugins/chat/discourse/lib/slugify-channel
export default {
name: "chat-user-menu",
initialize(container) {
- withPluginApi("1.3.0", (api) => {
+ withPluginApi((api) => {
const chat = container.lookup("service:chat");
if (!chat.userCanChat) {
diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-user-options.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-user-options.js
index b63da14b9c8..a76734b9ded 100644
--- a/plugins/chat/assets/javascripts/discourse/initializers/chat-user-options.js
+++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-user-options.js
@@ -16,7 +16,7 @@ export default {
name: "chat-user-options",
initialize(container) {
- withPluginApi("0.11.0", (api) => {
+ withPluginApi((api) => {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.chat_enabled) {
api.addSaveableUserOptionField(CHAT_ENABLED_FIELD);
diff --git a/plugins/chat/assets/javascripts/discourse/pre-initializers/chat-plugin-api.js b/plugins/chat/assets/javascripts/discourse/pre-initializers/chat-plugin-api.js
index 2049ace308b..71095f2da65 100644
--- a/plugins/chat/assets/javascripts/discourse/pre-initializers/chat-plugin-api.js
+++ b/plugins/chat/assets/javascripts/discourse/pre-initializers/chat-plugin-api.js
@@ -129,7 +129,7 @@ export default {
after: "inject-discourse-objects",
initialize() {
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
const apiPrototype = Object.getPrototypeOf(api);
if (!apiPrototype.hasOwnProperty("decorateChatMessage")) {
diff --git a/plugins/chat/assets/javascripts/discourse/routes/chat.js b/plugins/chat/assets/javascripts/discourse/routes/chat.js
index d2c9117df48..9dac94e7b2e 100644
--- a/plugins/chat/assets/javascripts/discourse/routes/chat.js
+++ b/plugins/chat/assets/javascripts/discourse/routes/chat.js
@@ -54,7 +54,7 @@ export default class ChatRoute extends DiscourseRoute {
}
activate() {
- withPluginApi("1.8.0", (api) => {
+ withPluginApi((api) => {
api.setSidebarPanel(CHAT_PANEL);
const chatSeparateSidebarMode = getUserChatSeparateSidebarMode(
@@ -80,7 +80,7 @@ export default class ChatRoute extends DiscourseRoute {
}
deactivate(transition) {
- withPluginApi("1.8.0", (api) => {
+ withPluginApi((api) => {
initSidebarState(api, this.currentUser);
});
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js b/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js
index baf399f2116..7fc0143a62a 100644
--- a/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js
+++ b/plugins/chat/assets/javascripts/discourse/services/chat-state-manager.js
@@ -62,7 +62,7 @@ export default class ChatStateManager extends Service {
}
didOpenDrawer(url = null) {
- withPluginApi("1.8.0", (api) => {
+ withPluginApi((api) => {
if (
api.getSidebarPanel()?.key === MAIN_PANEL ||
api.getSidebarPanel()?.key === CHAT_PANEL
@@ -88,7 +88,7 @@ export default class ChatStateManager extends Service {
}
didCloseDrawer() {
- withPluginApi("1.8.0", (api) => {
+ withPluginApi((api) => {
if (
api.getSidebarPanel()?.key === MAIN_PANEL ||
api.getSidebarPanel()?.key === CHAT_PANEL
diff --git a/plugins/chat/test/javascripts/unit/lib/chat-audio-test.js b/plugins/chat/test/javascripts/unit/lib/chat-audio-test.js
index 49b82f66f8f..ab3c7d3a655 100644
--- a/plugins/chat/test/javascripts/unit/lib/chat-audio-test.js
+++ b/plugins/chat/test/javascripts/unit/lib/chat-audio-test.js
@@ -23,7 +23,7 @@ module("Discourse Chat | Unit | chat-audio", function (hooks) {
this.currentUser.user_option.has_chat_enabled = true;
this.currentUser.user_option.chat_header_indicator_preference = "all_new";
- withPluginApi("0.12.1", async (api) => {
+ withPluginApi(async (api) => {
this.stub = sinon.spy(api, "registerDesktopNotificationHandler");
chatAudioInitializer.initialize(getOwner(this));
diff --git a/plugins/chat/test/javascripts/unit/utility/plugin-api-test.js b/plugins/chat/test/javascripts/unit/utility/plugin-api-test.js
index 077f2698c1e..b46feaf1460 100644
--- a/plugins/chat/test/javascripts/unit/utility/plugin-api-test.js
+++ b/plugins/chat/test/javascripts/unit/utility/plugin-api-test.js
@@ -21,13 +21,13 @@ module("Chat | Unit | Utility | plugin-api", function (hooks) {
return [200, {}, {}];
});
- withPluginApi("1.1.0", async (api) => {
+ withPluginApi(async (api) => {
await api.sendChatMessage(1, { message: "hello", threadId: 2 });
});
});
test("#removeChatComposerSecondaryActions", async function (assert) {
- withPluginApi("1.1.0", async (api) => {
+ withPluginApi(async (api) => {
// assert that the api method is defined
assert.strictEqual(
typeof api.removeChatComposerSecondaryActions,
diff --git a/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs b/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs
index 87eb35ce020..a3bc49ee390 100644
--- a/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs
+++ b/plugins/discourse-adplugin/assets/javascripts/discourse/components/house-ad.gjs
@@ -1,10 +1,10 @@
+import { htmlSafe } from "@ember/template";
import { isBlank } from "@ember/utils";
import {
attributeBindings,
classNameBindings,
classNames,
} from "@ember-decorators/component";
-import htmlSafe from "discourse/helpers/html-safe";
import discourseComputed from "discourse/lib/decorators";
import AdComponent from "./ad-component";
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs
index 1c0b97ea548..fbfb8d5bfaf 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-chat-message.gjs
@@ -1,10 +1,10 @@
import Component from "@glimmer/component";
import { array } from "@ember/helper";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import { or } from "truth-helpers";
import ReviewableCreatedBy from "discourse/components/reviewable-created-by";
import ReviewablePostHeader from "discourse/components/reviewable-post-header";
-import htmlSafe from "discourse/helpers/html-safe";
import ChatChannelTitle from "discourse/plugins/chat/discourse/components/chat-channel-title";
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";
import ModelAccuracies from "./model-accuracies";
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs
index 20f285c6cdb..c4bdf046f65 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/reviewable-ai-post.gjs
@@ -1,8 +1,8 @@
+import { htmlSafe } from "@ember/template";
import ReviewableCreatedBy from "discourse/components/reviewable-created-by";
import ReviewablePostEdits from "discourse/components/reviewable-post-edits";
import ReviewablePostHeader from "discourse/components/reviewable-post-header";
import ReviewableTopicLink from "discourse/components/reviewable-topic-link";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import ModelAccuracies from "./model-accuracies";
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/admin-plugin-configuration-nav.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/admin-plugin-configuration-nav.js
index d0669dc2706..6ca8fb8638f 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/admin-plugin-configuration-nav.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/admin-plugin-configuration-nav.js
@@ -9,7 +9,7 @@ export default {
return;
}
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.addAdminPluginConfigurationNav("discourse-ai", [
{
label: "discourse_ai.features.short_title",
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-artifacts.gjs b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-artifacts.gjs
index 01d8885f9c1..2c2566d7ef3 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-artifacts.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-artifacts.gjs
@@ -70,6 +70,6 @@ function initializeAiArtifacts(api) {
export default {
name: "ai-artifact",
initialize() {
- withPluginApi("0.8.7", initializeAiArtifacts);
+ withPluginApi(initializeAiArtifacts);
},
};
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-chat-summarization.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-chat-summarization.js
index c66d5d1fabc..a569db3e39d 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-chat-summarization.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-chat-summarization.js
@@ -1,7 +1,7 @@
import { apiInitializer } from "discourse/lib/api";
import ChatModalChannelSummary from "../components/modal/chat-modal-channel-summary";
-export default apiInitializer("1.34.0", (api) => {
+export default apiInitializer((api) => {
const siteSettings = api.container.lookup("service:site-settings");
const currentUser = api.getCurrentUser();
const chatService = api.container.lookup("service:chat");
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-gist-topic-list-class.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-gist-topic-list-class.js
index 543a89f5c6e..c42f2254682 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-gist-topic-list-class.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-gist-topic-list-class.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("1.15.0", (api) => {
+export default apiInitializer((api) => {
const gistService = api.container.lookup("service:gists");
api.registerValueTransformer(
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-helper.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-helper.js
index 41bd15ccf38..531becc13a1 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-helper.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-helper.js
@@ -84,7 +84,7 @@ export default {
name: "discourse-ai-helper",
initialize() {
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
initializeAiHelperTrigger(api);
});
},
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-semantic-search.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-semantic-search.js
index e145ad88654..cfc556766c0 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-semantic-search.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-semantic-search.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("1.15.0", (api) => {
+export default apiInitializer((api) => {
api.modifyClass("component:search-result-entry", {
pluginId: "discourse-ai",
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-sentiment-admin-nav.js b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-sentiment-admin-nav.js
index 9bf45633e8d..5fc07483c8c 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-sentiment-admin-nav.js
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-sentiment-admin-nav.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("1.15.0", (api) => {
+export default apiInitializer((api) => {
const currentUser = api.getCurrentUser();
if (
diff --git a/plugins/discourse-ai/assets/javascripts/discourse/initializers/related-topics.gjs b/plugins/discourse-ai/assets/javascripts/discourse/initializers/related-topics.gjs
index 3442af9be27..fdbd02462a7 100644
--- a/plugins/discourse-ai/assets/javascripts/discourse/initializers/related-topics.gjs
+++ b/plugins/discourse-ai/assets/javascripts/discourse/initializers/related-topics.gjs
@@ -33,7 +33,7 @@ export default {
return;
}
- withPluginApi("1.37.2", (api) => {
+ withPluginApi((api) => {
api.registerMoreTopicsTab({
id: "related-topics",
name: i18n("discourse_ai.related_topics.pill"),
diff --git a/plugins/discourse-assign/assets/javascripts/discourse/components/user-menu/assigns-list-empty-state.gjs b/plugins/discourse-assign/assets/javascripts/discourse/components/user-menu/assigns-list-empty-state.gjs
index ae1c69ccea9..5505e56621d 100644
--- a/plugins/discourse-assign/assets/javascripts/discourse/components/user-menu/assigns-list-empty-state.gjs
+++ b/plugins/discourse-assign/assets/javascripts/discourse/components/user-menu/assigns-list-empty-state.gjs
@@ -1,5 +1,5 @@
+import { htmlSafe } from "@ember/template";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import getUrl from "discourse/lib/get-url";
import { i18n } from "discourse-i18n";
diff --git a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-extend-user-messages.js b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-extend-user-messages.js
index a758906a12d..f813ec324e3 100644
--- a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-extend-user-messages.js
+++ b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-extend-user-messages.js
@@ -5,7 +5,7 @@ export default {
name: "assign-extend-user-messages",
initialize(container) {
- withPluginApi("1.5.0", (api) => {
+ withPluginApi((api) => {
const currentUser = container.lookup("service:current-user");
if (currentUser?.can_assign && api.addUserMessagesNavigationDropdownRow) {
diff --git a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-user-menu.js b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-user-menu.js
index f4c5a1602c7..489f4c5ef16 100644
--- a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-user-menu.js
+++ b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assign-user-menu.js
@@ -8,7 +8,7 @@ export default {
name: "assign-user-menu",
initialize(container) {
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
const siteSettings = container.lookup("service:site-settings");
if (!siteSettings.assign_enabled) {
return;
diff --git a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assignment-list-actions.gjs b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assignment-list-actions.gjs
index 7f51e09dfa9..c909869f852 100644
--- a/plugins/discourse-assign/assets/javascripts/discourse/initializers/assignment-list-actions.gjs
+++ b/plugins/discourse-assign/assets/javascripts/discourse/initializers/assignment-list-actions.gjs
@@ -15,7 +15,7 @@ export default {
initialize(container) {
const router = container.lookup("service:router");
- withPluginApi("1.39.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"topic-list-columns",
({ value: columns }) => {
diff --git a/plugins/discourse-assign/assets/javascripts/discourse/initializers/extend-for-assigns.js b/plugins/discourse-assign/assets/javascripts/discourse/initializers/extend-for-assigns.js
index 6e1c50fe93c..734f223db02 100644
--- a/plugins/discourse-assign/assets/javascripts/discourse/initializers/extend-for-assigns.js
+++ b/plugins/discourse-assign/assets/javascripts/discourse/initializers/extend-for-assigns.js
@@ -869,7 +869,7 @@ export default {
return;
}
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
const currentUser = container.lookup("service:current-user");
if (currentUser?.can_assign) {
api.modifyClass(
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-event-ui-builder.js b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-event-ui-builder.js
index deaf65d8122..41e230e579f 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-event-ui-builder.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-event-ui-builder.js
@@ -45,7 +45,7 @@ export default {
initialize(container) {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.discourse_post_event_enabled) {
- withPluginApi("0.8.7", initializeEventBuilder);
+ withPluginApi(initializeEventBuilder);
}
},
};
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-upcoming-events-to-sidebar.js b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-upcoming-events-to-sidebar.js
index fa353030b78..cea0ca22553 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-upcoming-events-to-sidebar.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/add-upcoming-events-to-sidebar.js
@@ -10,7 +10,7 @@ export default {
siteSettings.discourse_post_event_enabled &&
siteSettings.sidebar_show_upcoming_events
) {
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
api.addCommunitySectionLink((baseSectionLink) => {
return class UpcomingEventsSectionLink extends baseSectionLink {
name = "upcoming-events";
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/disable-sort.js b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/disable-sort.js
index e0af2dee373..bf5e67b232b 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/disable-sort.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/disable-sort.js
@@ -4,7 +4,7 @@ export default {
name: "disable-sort",
initialize(container) {
- withPluginApi("0.8", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"topic-list-header-sortable-column",
({ value, context }) => {
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-calendar.js b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-calendar.js
index d86e29eefed..3d6ee20f28a 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-calendar.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-calendar.js
@@ -1037,7 +1037,7 @@ export default {
initialize(container) {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.calendar_enabled) {
- withPluginApi("0.8.22", initializeDiscourseCalendar);
+ withPluginApi(initializeDiscourseCalendar);
}
},
};
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-post-event-decorator.gjs b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-post-event-decorator.gjs
index f7ec4773643..9e6f3aca0a8 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-post-event-decorator.gjs
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/initializers/discourse-post-event-decorator.gjs
@@ -153,7 +153,7 @@ export default {
initialize(container) {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.discourse_post_event_enabled) {
- withPluginApi("0.8.7", initializeDiscoursePostEventDecorator);
+ withPluginApi(initializeDiscoursePostEventDecorator);
}
},
};
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/rich-editor-extension.js b/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/rich-editor-extension.js
index 7131e49ff06..bc2d2f708f3 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/rich-editor-extension.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/rich-editor-extension.js
@@ -98,7 +98,7 @@ const extension = {
export default {
initialize() {
- withPluginApi("2.1.1", (api) => {
+ withPluginApi((api) => {
api.registerRichEditorExtension(extension);
});
},
diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/transformers.js b/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/transformers.js
index 76c0dc18145..4af83e77ee6 100644
--- a/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/transformers.js
+++ b/plugins/discourse-calendar/assets/javascripts/discourse/pre-initializers/transformers.js
@@ -3,7 +3,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
export default {
before: "freeze-valid-transformers",
initialize() {
- withPluginApi("1.33.0", (api) => {
+ withPluginApi((api) => {
api.addValueTransformerName(
"discourse-calendar-event-more-menu-should-show-participants"
);
diff --git a/plugins/discourse-calendar/test/javascripts/integration/components/more-menu-test.gjs b/plugins/discourse-calendar/test/javascripts/integration/components/more-menu-test.gjs
index 621f0ddcb62..da0771f5861 100644
--- a/plugins/discourse-calendar/test/javascripts/integration/components/more-menu-test.gjs
+++ b/plugins/discourse-calendar/test/javascripts/integration/components/more-menu-test.gjs
@@ -25,7 +25,7 @@ module("Integration | Component | MoreMenu", function (hooks) {
});
test("value transformer works", async function (assert) {
- withPluginApi("1.34.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"discourse-calendar-event-more-menu-should-show-participants",
() => {
diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/html.gjs b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/html.gjs
index 8f595a078f1..e2166ca4295 100644
--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/html.gjs
+++ b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/html.gjs
@@ -1,4 +1,4 @@
-import htmlSafe from "discourse/helpers/html-safe";
+import { htmlSafe } from "@ember/template";
const Html = <template>{{htmlSafe @ctx.value}}</template>;
diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/post.gjs b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/post.gjs
index b9419d219db..b2f2e6106c9 100644
--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/post.gjs
+++ b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/post.gjs
@@ -1,5 +1,5 @@
+import { htmlSafe } from "@ember/template";
import avatar from "discourse/helpers/avatar";
-import htmlSafe from "discourse/helpers/html-safe";
const Post = <template>
{{#if @ctx.post}}
diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/topic.gjs b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/topic.gjs
index 52402e40771..308e7e0cbdf 100644
--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/topic.gjs
+++ b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/topic.gjs
@@ -1,4 +1,4 @@
-import htmlSafe from "discourse/helpers/html-safe";
+import { htmlSafe } from "@ember/template";
const Topic = <template>
{{#if @ctx.topic}}
diff --git a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js
index fd2ef6da623..a86037027b2 100644
--- a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js
+++ b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js
@@ -28,6 +28,6 @@ export default {
name: "apply-details",
initialize() {
- withPluginApi("1.14.0", initializeDetails);
+ withPluginApi(initializeDetails);
},
};
diff --git a/plugins/discourse-gamification/assets/javascripts/initializers/admin-plugin-configuration-nav.js b/plugins/discourse-gamification/assets/javascripts/initializers/admin-plugin-configuration-nav.js
index 28c3906d3ff..002d6f94192 100644
--- a/plugins/discourse-gamification/assets/javascripts/initializers/admin-plugin-configuration-nav.js
+++ b/plugins/discourse-gamification/assets/javascripts/initializers/admin-plugin-configuration-nav.js
@@ -9,7 +9,7 @@ export default {
return;
}
- withPluginApi("1.1.0", (api) => {
+ withPluginApi((api) => {
api.addAdminPluginConfigurationNav("discourse-gamification", [
{
label: "gamification.leaderboard.title",
diff --git a/plugins/discourse-graphviz/assets/javascripts/initializers/discourse-graphviz.js b/plugins/discourse-graphviz/assets/javascripts/initializers/discourse-graphviz.js
index fb891e77498..9a1d34b2801 100644
--- a/plugins/discourse-graphviz/assets/javascripts/initializers/discourse-graphviz.js
+++ b/plugins/discourse-graphviz/assets/javascripts/initializers/discourse-graphviz.js
@@ -51,7 +51,7 @@ export default {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.discourse_graphviz_enabled) {
- withPluginApi("0.8.22", (api) => {
+ withPluginApi((api) => {
api.decorateCooked(
($elem) => {
const $graphviz = $elem.find(".graphviz");
diff --git a/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js b/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
index 771dc26df2a..04c59b1bcf7 100644
--- a/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
+++ b/plugins/discourse-hcaptcha/assets/javascripts/pre-initializers/h-captcha.js
@@ -53,6 +53,6 @@ export default {
before: "inject-discourse-objects",
initialize(container) {
- withPluginApi("1.9.0", (api) => initializeHCaptcha(api, container));
+ withPluginApi((api) => initializeHCaptcha(api, container));
},
};
diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs b/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs
index 66820821b25..f2c05f0ea8f 100644
--- a/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs
+++ b/plugins/discourse-local-dates/assets/javascripts/discourse/components/modal/local-dates-create.gjs
@@ -4,13 +4,13 @@ import { on } from "@ember/modifier";
import EmberObject, { action } from "@ember/object";
import { notEmpty } from "@ember/object/computed";
import { schedule } from "@ember/runloop";
+import { htmlSafe } from "@ember/template";
import { observes } from "@ember-decorators/object";
import CalendarDateTimeInput from "discourse/components/calendar-date-time-input";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
import TextField from "discourse/components/text-field";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { propertyNotEqual } from "discourse/lib/computed";
import computed, { debounce } from "discourse/lib/decorators";
import { INPUT_DELAY } from "discourse/lib/environment";
diff --git a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js
index 135a5a7d8fd..4689e422f4e 100644
--- a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js
+++ b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js
@@ -345,7 +345,7 @@ class LocalDatesInit {
window.addEventListener("click", this.showDatePopover, { passive: true });
if (this.siteSettings.discourse_local_dates_enabled) {
- withPluginApi("0.8.8", initializeDiscourseLocalDates);
+ withPluginApi(initializeDiscourseLocalDates);
}
}
diff --git a/plugins/discourse-lti/assets/javascripts/discourse-lti/api-initializers/hide-lti-login-button.js b/plugins/discourse-lti/assets/javascripts/discourse-lti/api-initializers/hide-lti-login-button.js
index 458f74729f6..bd0220423fb 100644
--- a/plugins/discourse-lti/assets/javascripts/discourse-lti/api-initializers/hide-lti-login-button.js
+++ b/plugins/discourse-lti/assets/javascripts/discourse-lti/api-initializers/hide-lti-login-button.js
@@ -2,7 +2,7 @@ import { apiInitializer } from "discourse/lib/api";
import discourseComputed from "discourse/lib/decorators";
import { findAll } from "discourse/models/login-method";
-export default apiInitializer("0.8", (api) => {
+export default apiInitializer((api) => {
// LTI login must be initiated by the IdP
// Hide the LTI login button on the client side:
api.modifyClass(
diff --git a/plugins/discourse-math/assets/javascripts/initializers/discourse-math-katex.js b/plugins/discourse-math/assets/javascripts/initializers/discourse-math-katex.js
index 6d26ab78026..121f31b592b 100644
--- a/plugins/discourse-math/assets/javascripts/initializers/discourse-math-katex.js
+++ b/plugins/discourse-math/assets/javascripts/initializers/discourse-math-katex.js
@@ -89,7 +89,7 @@ export default {
siteSettings.discourse_math_enabled &&
siteSettings.discourse_math_provider === "katex"
) {
- withPluginApi("0.5", function (api) {
+ withPluginApi(function (api) {
initializeMath(api);
});
}
diff --git a/plugins/discourse-math/assets/javascripts/initializers/discourse-math-mathjax.js b/plugins/discourse-math/assets/javascripts/initializers/discourse-math-mathjax.js
index 1dc6071eb10..50b894252de 100644
--- a/plugins/discourse-math/assets/javascripts/initializers/discourse-math-mathjax.js
+++ b/plugins/discourse-math/assets/javascripts/initializers/discourse-math-mathjax.js
@@ -144,7 +144,7 @@ export default {
siteSettings.discourse_math_enabled &&
siteSettings.discourse_math_provider === "mathjax"
) {
- withPluginApi("0.5", function (api) {
+ withPluginApi(function (api) {
initializeMath(api, discourse_math_opts);
});
}
diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs
index ce83823929c..03256611cd0 100644
--- a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs
+++ b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/admin-user-details/patreon.gjs
@@ -1,9 +1,9 @@
import Component from "@ember/component";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import { classNames, tagName } from "@ember-decorators/component";
import DButton from "discourse/components/d-button";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { ajax } from "discourse/lib/ajax";
import { userPath } from "discourse/lib/url";
import { i18n } from "discourse-i18n";
diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs
index c7afc9cbb5b..5075c582fa2 100644
--- a/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs
+++ b/plugins/discourse-patreon/assets/javascripts/discourse/connectors/topic-above-footer-buttons/patreon.gjs
@@ -1,10 +1,10 @@
import Component from "@ember/component";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
+import { htmlSafe } from "@ember/template";
import { classNames, tagName } from "@ember-decorators/component";
import $ from "jquery";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import cookie from "discourse/lib/cookie";
import { i18n } from "discourse-i18n";
diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/initializers/patreon.js b/plugins/discourse-patreon/assets/javascripts/discourse/initializers/patreon.js
index 3d6dd27e038..5b6ae03fb46 100644
--- a/plugins/discourse-patreon/assets/javascripts/discourse/initializers/patreon.js
+++ b/plugins/discourse-patreon/assets/javascripts/discourse/initializers/patreon.js
@@ -22,6 +22,6 @@ function initWithApi(api) {
export default {
name: "patreon",
initialize() {
- withPluginApi("0.8", initWithApi);
+ withPluginApi(initWithApi);
},
};
diff --git a/plugins/discourse-patreon/assets/javascripts/discourse/templates/admin/plugins-patreon.gjs b/plugins/discourse-patreon/assets/javascripts/discourse/templates/admin/plugins-patreon.gjs
index 38b63a033d3..23936abd437 100644
--- a/plugins/discourse-patreon/assets/javascripts/discourse/templates/admin/plugins-patreon.gjs
+++ b/plugins/discourse-patreon/assets/javascripts/discourse/templates/admin/plugins-patreon.gjs
@@ -1,7 +1,7 @@
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
import formatDate from "discourse/helpers/format-date";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import ComboBox from "select-kit/components/combo-box";
import ListSetting from "select-kit/components/list-setting";
diff --git a/plugins/discourse-policy/assets/javascripts/discourse/initializers/add-policy-builder.js b/plugins/discourse-policy/assets/javascripts/discourse/initializers/add-policy-builder.js
index 1c922cb8213..2206015f327 100644
--- a/plugins/discourse-policy/assets/javascripts/discourse/initializers/add-policy-builder.js
+++ b/plugins/discourse-policy/assets/javascripts/discourse/initializers/add-policy-builder.js
@@ -32,7 +32,7 @@ export default {
initialize(container) {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.policy_enabled) {
- withPluginApi("1.13.0", (api) => initializePolicyBuilder(api, container));
+ withPluginApi((api) => initializePolicyBuilder(api, container));
}
},
};
diff --git a/plugins/discourse-policy/assets/javascripts/discourse/initializers/extend-for-policy.gjs b/plugins/discourse-policy/assets/javascripts/discourse/initializers/extend-for-policy.gjs
index c0f214a5d12..a7e3a8bd586 100644
--- a/plugins/discourse-policy/assets/javascripts/discourse/initializers/extend-for-policy.gjs
+++ b/plugins/discourse-policy/assets/javascripts/discourse/initializers/extend-for-policy.gjs
@@ -85,7 +85,7 @@ export default {
name: "extend-for-policy",
initialize() {
- withPluginApi("0.8.7", function (api) {
+ withPluginApi(function (api) {
api.decorateCookedElement(attachPolicy, {
onlyStream: false,
id: "discourse-policy",
diff --git a/plugins/discourse-policy/assets/javascripts/pre-initializers/policy-user-options.js b/plugins/discourse-policy/assets/javascripts/pre-initializers/policy-user-options.js
index 269e1d9d511..bacdef7fe0e 100644
--- a/plugins/discourse-policy/assets/javascripts/pre-initializers/policy-user-options.js
+++ b/plugins/discourse-policy/assets/javascripts/pre-initializers/policy-user-options.js
@@ -7,7 +7,7 @@ export default {
name: "policy-user-options",
initialize(container) {
- withPluginApi("0.8.7", (api) => {
+ withPluginApi((api) => {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.policy_enabled) {
api.addSaveableUserOptionField(SEND_EMAIL_NOTIFICATIONS_FIELD);
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment.gjs
index 47f51247e55..5c6defb3452 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment.gjs
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment.gjs
@@ -2,9 +2,9 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import formatDate from "discourse/helpers/format-date";
import formatUsername from "discourse/helpers/format-username";
-import htmlSafe from "discourse/helpers/html-safe";
import routeAction from "discourse/helpers/route-action";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs
index d81dbd50631..0730bb2fde1 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/components/reviewable-post-voting-comment.gjs
@@ -3,11 +3,11 @@ import { tracked } from "@glimmer/tracking";
import { array } from "@ember/helper";
import { LinkTo } from "@ember/routing";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { or } from "truth-helpers";
import ReviewableCreatedBy from "discourse/components/reviewable-created-by";
import ReviewablePostHeader from "discourse/components/reviewable-post-header";
import categoryBadge from "discourse/helpers/category-badge";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default class ReviewablePostVotingComment extends Component {
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/custom-post-message-callbacks.js b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/custom-post-message-callbacks.js
index 6dadca14b54..972b1e7925d 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/custom-post-message-callbacks.js
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/custom-post-message-callbacks.js
@@ -9,7 +9,7 @@ export default {
return;
}
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
api.registerCustomPostMessageCallback(
"post_voting_post_comment_edited",
(topicController, message) => {
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/extend-composer-actions.js b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/extend-composer-actions.js
index b7c1b54fdc5..820167ac540 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/extend-composer-actions.js
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/extend-composer-actions.js
@@ -13,7 +13,7 @@ export default {
return;
}
- withPluginApi("0.13.0", (api) => {
+ withPluginApi((api) => {
api.serializeOnCreate("create_as_post_voting", "createAsPostVoting");
api.serializeOnCreate(
"only_post_voting_in_this_category",
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-edits.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-edits.gjs
index 4d6f287fcdf..e4060d4eaa8 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-edits.gjs
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-edits.gjs
@@ -259,7 +259,7 @@ export default {
return;
}
- withPluginApi("1.13.0", (api) => {
+ withPluginApi((api) => {
initPlugin(api, container);
});
},
diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-icon.js b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-icon.js
index d528534aabd..e462bc02449 100644
--- a/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-icon.js
+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/initializers/post-voting-icon.js
@@ -12,7 +12,7 @@ export default {
return;
}
- withPluginApi("1.18.0", (api) => {
+ withPluginApi((api) => {
api.registerNotificationTypeRenderer(
"question_answer_user_commented",
(NotificationTypeBase) => {
diff --git a/plugins/discourse-presence/assets/javascripts/discourse/connectors/topic-above-footer-buttons/presence.gjs b/plugins/discourse-presence/assets/javascripts/discourse/connectors/topic-above-footer-buttons/presence.gjs
index bc321e92461..c12c0831bfb 100644
--- a/plugins/discourse-presence/assets/javascripts/discourse/connectors/topic-above-footer-buttons/presence.gjs
+++ b/plugins/discourse-presence/assets/javascripts/discourse/connectors/topic-above-footer-buttons/presence.gjs
@@ -1,6 +1,6 @@
import Component from "@glimmer/component";
import { concat } from "@ember/helper";
-import htmlSafe from "discourse/helpers/html-safe";
+import { htmlSafe } from "@ember/template";
import { translateSize } from "discourse/lib/avatar-utils";
import TopicPresenceDisplay from "discourse/plugins/discourse-presence/discourse/components/topic-presence-display";
diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/initializers/discourse-reactions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/initializers/discourse-reactions.gjs
index 9ddc84271f1..0edfe792f13 100644
--- a/plugins/discourse-reactions/assets/javascripts/discourse/initializers/discourse-reactions.gjs
+++ b/plugins/discourse-reactions/assets/javascripts/discourse/initializers/discourse-reactions.gjs
@@ -209,7 +209,7 @@ export default {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.discourse_reactions_enabled) {
- withPluginApi("1.34.0", initializeDiscourseReactions);
+ withPluginApi(initializeDiscourseReactions);
}
},
diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs
index 86d069cd6c5..0783eec5681 100644
--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs
+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/campaign-banner.gjs
@@ -5,13 +5,13 @@ import { equal } from "@ember/object/computed";
import { LinkTo } from "@ember/routing";
import { later } from "@ember/runloop";
import { service } from "@ember/service";
+import { htmlSafe } from "@ember/template";
import { classNameBindings } from "@ember-decorators/component";
import { observes } from "@ember-decorators/object";
import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
import DButton from "discourse/components/d-button";
import avatar from "discourse/helpers/avatar";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { ajax } from "discourse/lib/ajax";
import { setting } from "discourse/lib/computed";
import discourseComputed from "discourse/lib/decorators";
diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs
index 0bf3a21c6f9..2cb05d86238 100644
--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs
+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/components/product-item.gjs
@@ -1,7 +1,7 @@
import Component from "@ember/component";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import { classNames } from "@ember-decorators/component";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
@classNames("product")
diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/initializers/setup-subscriptions.js b/plugins/discourse-subscriptions/assets/javascripts/discourse/initializers/setup-subscriptions.js
index 0efc4c4bf3c..93c9e7fe690 100644
--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/initializers/setup-subscriptions.js
+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/initializers/setup-subscriptions.js
@@ -4,7 +4,7 @@ import { i18n } from "discourse-i18n";
export default {
name: "setup-subscriptions",
initialize(container) {
- withPluginApi("0.8.11", (api) => {
+ withPluginApi((api) => {
const siteSettings = container.lookup("service:site-settings");
const isNavLinkEnabled =
siteSettings.discourse_subscriptions_extra_nav_subscribe;
diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-dashboard.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-dashboard.gjs
index 4e5cba0a084..1c898381afb 100644
--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-dashboard.gjs
+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-dashboard.gjs
@@ -1,10 +1,10 @@
import { array, fn } from "@ember/helper";
import { on } from "@ember/modifier";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import LoadMore from "discourse/components/load-more";
import formatDuration from "discourse/helpers/format-duration";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
export default RouteTemplate(
diff --git a/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/subscribe/show.gjs b/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/subscribe/show.gjs
index 1c52936657c..277cd23e3d0 100644
--- a/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/subscribe/show.gjs
+++ b/plugins/discourse-subscriptions/assets/javascripts/discourse/templates/subscribe/show.gjs
@@ -1,8 +1,8 @@
import { Input } from "@ember/component";
import { LinkTo } from "@ember/routing";
+import { htmlSafe } from "@ember/template";
import RouteTemplate from "ember-route-template";
import DButton from "discourse/components/d-button";
-import htmlSafe from "discourse/helpers/html-safe";
import loadingSpinner from "discourse/helpers/loading-spinner";
import { i18n } from "discourse-i18n";
import LoginRequired from "../../components/login-required";
diff --git a/plugins/discourse-templates/assets/javascripts/discourse/initializers/d-templates.js b/plugins/discourse-templates/assets/javascripts/discourse/initializers/d-templates.js
index 5ee286f3c3e..a4b7135983c 100644
--- a/plugins/discourse-templates/assets/javascripts/discourse/initializers/d-templates.js
+++ b/plugins/discourse-templates/assets/javascripts/discourse/initializers/d-templates.js
@@ -15,7 +15,7 @@ export default {
siteSettings.discourse_templates_enabled &&
currentUser?.can_use_templates
) {
- withPluginApi("1.13.0", (api) => {
+ withPluginApi((api) => {
addOptionsMenuItem(api);
addKeyboardShortcut(api, container);
addChatIntegration(api, container);
diff --git a/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js b/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js
index 9476cacae73..4dcfb238d9d 100644
--- a/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js
+++ b/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/extend-category-for-voting.js
@@ -61,7 +61,7 @@ export default {
before: "inject-discourse-objects",
initialize() {
- withPluginApi("0.8.4", (api) => initialize(api));
- withPluginApi("0.8.30", (api) => api.addCategorySortCriteria("votes"));
+ withPluginApi((api) => initialize(api));
+ withPluginApi((api) => api.addCategorySortCriteria("votes"));
},
};
diff --git a/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/transformers.js b/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/transformers.js
index f372a9e9990..c35c17a112f 100644
--- a/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/transformers.js
+++ b/plugins/discourse-topic-voting/assets/javascripts/discourse/pre-initializers/transformers.js
@@ -5,7 +5,7 @@ export default {
before: "freeze-valid-transformers",
initialize() {
- withPluginApi("1.35.0", (api) => {
+ withPluginApi((api) => {
api.addBehaviorTransformerName("topic-vote-button-click");
});
},
diff --git a/plugins/footnote/assets/javascripts/initializers/inline-footnotes.js b/plugins/footnote/assets/javascripts/initializers/inline-footnotes.js
index 7d493dc0b42..934ad5d5815 100644
--- a/plugins/footnote/assets/javascripts/initializers/inline-footnotes.js
+++ b/plugins/footnote/assets/javascripts/initializers/inline-footnotes.js
@@ -115,7 +115,7 @@ export default {
document.body.append(buildTooltip());
window.addEventListener("click", footnoteEventHandler, true);
- withPluginApi("0.8.9", (api) => {
+ withPluginApi((api) => {
api.decorateCookedElement((elem) => applyInlineFootnotes(elem), {
onlyStream: true,
id: "inline-footnotes",
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll-results-standard.gjs b/plugins/poll/assets/javascripts/discourse/components/poll-results-standard.gjs
index 5de41c2b25c..50d2ad35ba4 100644
--- a/plugins/poll/assets/javascripts/discourse/components/poll-results-standard.gjs
+++ b/plugins/poll/assets/javascripts/discourse/components/poll-results-standard.gjs
@@ -44,11 +44,11 @@ export default class PollResultsStandardComponent extends Component {
option.percentage = per;
option.chosen = chosen;
let voters = this.args.isPublic
- ? this.args.voters?.[option.id]?.voters ?? []
+ ? (this.args.voters?.[option.id]?.voters ?? [])
: [];
option.voters = [...voters];
option.loading = this.args.isPublic
- ? this.args.voters?.[option.id]?.loading ?? false
+ ? (this.args.voters?.[option.id]?.loading ?? false)
: false;
});
diff --git a/plugins/poll/assets/javascripts/discourse/initializers/add-poll-ui-builder.js b/plugins/poll/assets/javascripts/discourse/initializers/add-poll-ui-builder.js
index e23b37499fa..3a5441d7ab3 100644
--- a/plugins/poll/assets/javascripts/discourse/initializers/add-poll-ui-builder.js
+++ b/plugins/poll/assets/javascripts/discourse/initializers/add-poll-ui-builder.js
@@ -30,6 +30,6 @@ export default {
name: "add-poll-ui-builder",
initialize() {
- withPluginApi("1.14.0", initializePollUIBuilder);
+ withPluginApi(initializePollUIBuilder);
},
};
diff --git a/plugins/poll/assets/javascripts/discourse/initializers/extend-for-poll.gjs b/plugins/poll/assets/javascripts/discourse/initializers/extend-for-poll.gjs
index 4962c1e051a..79582cbc0f1 100644
--- a/plugins/poll/assets/javascripts/discourse/initializers/extend-for-poll.gjs
+++ b/plugins/poll/assets/javascripts/discourse/initializers/extend-for-poll.gjs
@@ -121,6 +121,6 @@ export default {
name: "extend-for-poll",
initialize() {
- withPluginApi("0.8.7", initializePolls);
+ withPluginApi(initializePolls);
},
};
diff --git a/plugins/spoiler-alert/assets/javascripts/initializers/spoiler-alert.js b/plugins/spoiler-alert/assets/javascripts/initializers/spoiler-alert.js
index 92a0a694050..ca596948e7b 100644
--- a/plugins/spoiler-alert/assets/javascripts/initializers/spoiler-alert.js
+++ b/plugins/spoiler-alert/assets/javascripts/initializers/spoiler-alert.js
@@ -56,7 +56,7 @@ export default {
const siteSettings = container.lookup("service:site-settings");
if (siteSettings.spoiler_enabled) {
- withPluginApi("1.15.0", initializeSpoiler);
+ withPluginApi(initializeSpoiler);
}
},
};
diff --git a/plugins/spoiler-alert/test/javascripts/unit/lib/to-markdown-test.js b/plugins/spoiler-alert/test/javascripts/unit/lib/to-markdown-test.js
index 895150a9685..78453b45255 100644
--- a/plugins/spoiler-alert/test/javascripts/unit/lib/to-markdown-test.js
+++ b/plugins/spoiler-alert/test/javascripts/unit/lib/to-markdown-test.js
@@ -5,7 +5,7 @@ import { initializeSpoiler } from "discourse/plugins/spoiler-alert/initializers/
module("Spoiler Alert | Unit | to-markdown", function (hooks) {
hooks.beforeEach(function () {
- withPluginApi("0.5", initializeSpoiler);
+ withPluginApi(initializeSpoiler);
});
test("handles spoiler tags", function (assert) {
diff --git a/plugins/styleguide/assets/javascripts/discourse/components/sections/organisms/user-about.gjs b/plugins/styleguide/assets/javascripts/discourse/components/sections/organisms/user-about.gjs
index 0abc2ebebbe..4261bfb38d8 100644
--- a/plugins/styleguide/assets/javascripts/discourse/components/sections/organisms/user-about.gjs
+++ b/plugins/styleguide/assets/javascripts/discourse/components/sections/organisms/user-about.gjs
@@ -1,8 +1,8 @@
+import { htmlSafe } from "@ember/template";
import DButton from "discourse/components/d-button";
import ageWithTooltip from "discourse/helpers/age-with-tooltip";
import boundAvatar from "discourse/helpers/bound-avatar";
import icon from "discourse/helpers/d-icon";
-import htmlSafe from "discourse/helpers/html-safe";
import { i18n } from "discourse-i18n";
import StyleguideExample from "discourse/plugins/styleguide/discourse/components/styleguide-example";
diff --git a/plugins/styleguide/assets/javascripts/discourse/pre-initializers/styleguide-plugin-api.js b/plugins/styleguide/assets/javascripts/discourse/pre-initializers/styleguide-plugin-api.js
index 3873ab5e961..801ba2ca027 100644
--- a/plugins/styleguide/assets/javascripts/discourse/pre-initializers/styleguide-plugin-api.js
+++ b/plugins/styleguide/assets/javascripts/discourse/pre-initializers/styleguide-plugin-api.js
@@ -27,7 +27,7 @@ export default {
before: "inject-discourse-objects",
initialize() {
- withPluginApi("1.2.0", (api) => {
+ withPluginApi((api) => {
const apiPrototype = Object.getPrototypeOf(api);
if (!apiPrototype.hasOwnProperty("addStyleguideSection")) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ba3073bfa43..4dfe3854595 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -32,8 +32,8 @@ importers:
specifier: ^7.28.0
version: 7.28.0(@babel/[email protected])
'@discourse/lint-configs':
- specifier: ^2.22.0
+ specifier: ^2.30.0
'@discourse/moment-timezone-names-translations':
specifier: ^1.0.0
version: 1.0.0
@@ -74,14 +74,14 @@ importers:
specifier: ^9.2.0
version: 9.2.0
ember-template-lint:
- specifier: 7.7.0
- version: 7.7.0(@babel/[email protected])
+ specifier: 7.9.1
+ version: 7.9.1
esbuild:
specifier: ^0.25.8
version: 0.25.8
eslint:
- specifier: 9.27.0
- version: 9.27.0
+ specifier: 9.32.0
+ version: 9.32.0
jsdoc:
specifier: ^4.0.4
version: 4.0.4
@@ -96,10 +96,10 @@ importers:
version: 2.6.3([email protected])
lint-to-the-future-ember-template:
specifier: ^3.1.0
- version: 3.1.0([email protected](@babel/[email protected]))
+ version: 3.1.0([email protected])
lint-to-the-future-eslint:
specifier: ^3.1.0
- version: 3.1.0([email protected])
+ version: 3.1.0([email protected])
magnific-popup:
specifier: 1.1.0
version: 1.1.0
@@ -119,8 +119,8 @@ importers:
specifier: https://codeload.github.com/discourse/squoosh/tar.gz/dc9649d
version: https://codeload.github.com/discourse/squoosh/tar.gz/dc9649d
stylelint:
- specifier: 16.19.1
- version: 16.19.1([email protected])
+ specifier: 16.22.0
+ version: 16.22.0([email protected])
terser:
specifier: ^5.43.1
version: 5.43.1
@@ -1149,8 +1149,8 @@ packages:
resolution: {integrity: sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-q8rjOuadH0V6Zo4XLMkJ3RMQ9MSBqwaDByyYB0izsYdaIWGNLmEblbCOf1vyFHICcg16CD7Fsi51vcQnYxmt6Q==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-N4ntErOlKvcbTt01rr5wj3y55xnIdx1ymrfIr8C2WnM1Y9glFgWaGDEULJIazOX3XM9NRzhfJ6zZnQ1sBNWU+w==}
engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0}
peerDependencies:
'@babel/core': ^7.11.0
@@ -1761,12 +1761,12 @@ packages:
resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
engines: {node: '>=18'}
- '@csstools/[email protected]':
- resolution: {integrity: sha512-EUos465uvVvMJehckATTlNqGj4UJWkTmdWuDMjqvSUkjGpmOyFZBVwb4knxCm/k2GMTXY+c/5RkdndzFYWeX5A==}
+ '@csstools/[email protected]':
+ resolution: {integrity: sha512-HAYH7d3TLRHDOUQK4mZKf9k9Ph/m8Akstg66ywKR4SFAigjs3yBiUeZtFxywiTm5moZMAp/5W/ZuFnNXXYLuuQ==}
engines: {node: '>=18'}
peerDependencies:
- '@csstools/css-parser-algorithms': ^3.0.4
- '@csstools/css-tokenizer': ^3.0.3
+ '@csstools/css-parser-algorithms': ^3.0.5
+ '@csstools/css-tokenizer': ^3.0.4
'@csstools/[email protected]':
resolution: {integrity: sha512-1tCZH5bla0EAkFAI2r0H33CDnIBeLUaJh1p+hvvsylJ4svsv2wOmJjJn+OXwUZLXef37GYbRIVKX+X+g6m+3CQ==}
@@ -1798,13 +1798,13 @@ packages:
'@discourse/[email protected]':
resolution: {integrity: sha512-Jn1gdiyHMGUsmUfLFf4Q7VnTAv0l7NePbegU6pKhKHEmbzV3FosGxq30fTOYgVyTS1bxqGjlA6LvQttJpv3ROw==}
- '@discourse/[email protected]':
- resolution: {integrity: sha512-nf4dTdFNkfsz18Fi9ZKwd8Yx+srqJ+Zu2lEqHZcq482CahTEqmbC7AI4yYzJmbJU5wBSra1HrQN5W10JaEDkHA==}
+ '@discourse/[email protected]':
+ resolution: {integrity: sha512-XkDBlsEwHdbtl80jgb/n5EhnxLRoMq8KPUbjGn2BYfZ+OgOXutORW4shE9nIp5yz7CeAmByjKMFOi7JRezZaww==}
peerDependencies:
- ember-template-lint: 7.7.0
- eslint: 9.27.0
- prettier: 3.5.3
- stylelint: 16.19.1
+ ember-template-lint: 7.9.1
+ eslint: 9.32.0
+ prettier: 3.6.2
+ stylelint: 16.22.0
'@discourse/[email protected]':
resolution: {integrity: sha512-4xr1QWQ0nzmFa2ZXQgWZA+dtE/BU2ePA+qkJWPFzNpq4ZnQi8MmMMAS2285t3rc2ySMBQqYaAArmcSUiufUgRA==}
@@ -2108,32 +2108,32 @@ packages:
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-+GPzk8PlG0sPpzdU5ZvIRMPidzAnZDl/s9L+y13iodqvb8leL53bTannOrQ/Im7UkpsmFU5Ily5U60LWixnmLg==}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/[email protected]':
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-G5JD9Tu5HJEu4z2Uo4aHY2sLV64B7CDMXxFzqzjl3NKd6RVzSXNoE80jk7Y0lJkTTkjiIhBAqmlYwjuBY3tvpA==}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/[email protected]':
resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-0J+zgWxHN+xXONWIyPWKFMgVuJoZuGiIFu8yxk7RJjxkzpGmyja5wRFqZIVtjDVOQpV+Rw0iOAjYPE2eQyjr0w==}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@faker-js/[email protected]':
@@ -2194,9 +2194,6 @@ packages:
'@glimmer/[email protected]':
resolution: {integrity: sha512-JKF/a9I9jw6fGoz8kA7LEQslrwJ5jms5CXhu/aqkBWk+PmZ6pTl8mlb/eJ/5ujBGTiQzBhy5AIWF712iA+4/mw==}
- '@glimmer/[email protected]':
- resolution: {integrity: sha512-8Oy9Wg5IZxMEeAnVmzD2NkObf89BeHoFSzJgJROE/deutd3rxg83mvlOez4zBBGYwnTb+VGU2LYRpet92egJjA==}
-
'@glimmer/[email protected]':
resolution: {integrity: sha512-tvlK5pt6oSe3furJ1KsO9vG/KmF9S98HLrcR48XbfwXlkuxvUeS94cdQId4GCN5naeX4OC4xm6eEjZWdc2s+jw==}
@@ -2227,9 +2224,6 @@ packages:
'@glimmer/[email protected]':
resolution: {integrity: sha512-fkquujQ11lsGCWl/+XpZW2E7bjHj/g6/Ht292A7pSoANBD8Bz/gPYiPM+XuMwes9MApEsTEMjV4EXlyk2/Cirg==}
- '@glimmer/[email protected]':
- resolution: {integrity: sha512-lV+p/aWPVC8vUjmlvYVU7WQJsLh319SdXuAWoX/SE3pq340BJlAJiEcAc6q52y9JNhT57gMwtjMX96W5Xcx/qw==}
-
'@glimmer/[email protected]':
resolution: {integrity: sha512-Ud4LE689mEXL6BJnJx0ZPt2dt/A540C+TAnBFXHpcAjROz5gT337RN+tgajwudEUqpufExhcPSMGzs1pvWYCJg==}
@@ -2269,9 +2263,6 @@ packages:
'@glimmer/[email protected]':
resolution: {integrity: sha512-i01plR0EgFVz69GDrEuFgq1NheIjZcyTy3c7q+w7d096ddPVeVcRzU3LKaqCfovvLJ+6lJx40j45ecycASUUyw==}
- '@glimmer/[email protected]':
- resolution: {integrity: sha512-RTBV4TokUB0vI31UC7ikpV7lOYpWUlyqaKV//pRC4pexYMlmqnVhkFrdiimB/R1XyNdUOQUmnIAcdic39NkbhQ==}
-
'@glimmer/[email protected]':
resolution: {integrity: sha512-HKrMYeW0YhiksSeKYqX2chUR/rz82j12DcY7p2dORQlTV3qlAfiE5zRTJH1KRA1X3ZMf7DI2/GOzkXwYp0o+3Q==}
@@ -2438,8 +2429,8 @@ packages:
'@jspreadsheet/[email protected]':
resolution: {integrity: sha512-PDQYf9REQA53I7tVYkvkeyQxrd5jcjUeHgItYnRpjN2QiIQwawSqBDtGGEVQTSboTG+JwgGCuhvOpj7FxeKwew==}
- resolution: {integrity: sha512-qnEovoOp5Np2JDGonIDL6Ayihw0RhnRh6vxPuHo4RDn1UOzwEo4AeIfpL6UGIrsceWrCMiVPgwRjbHu4vYFc3g==}
+ resolution: {integrity: sha512-RlDgexML7Z63Q8BSaqhXdCYNBy/JQnqYIwxofUrNLGCblOMHp+xux2Q8nLMLlPpgHQPoU0Do8Z6btCpRBEqZ8g==}
'@lint-todo/[email protected]':
resolution: {integrity: sha512-F5z53uvRIF4dYfFfJP3a2Cqg+4P1dgJchJsFnsZE0eZp0LK8X7g2J0CsJHRgns+skpXOlM7n5vFGwkWCWj8qJg==}
@@ -3245,10 +3236,6 @@ packages:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
- resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==}
engines: {node: '>=0.10.0'}
@@ -3572,8 +3559,8 @@ packages:
resolution: {integrity: sha512-chUsBxGRtuElD6fmw1gHLpvnKdVLK302peeFa9ZqAEk8TyzZ3fygLyUEDDPTJvL9+Bor0dIwn6ePOsRM2y0zQQ==}
- resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
+ resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
@@ -3761,8 +3748,8 @@ packages:
resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-8D5htMCxPDUULux9gFzv30f04Xo3wCnik0oOxKoRTPIBoqA7HtOcJ87uBhQTs3jCfZZTrUBGsYIZOgE0ZRgMAg==}
+ resolution: {integrity: sha512-M6p10iJ/VT0wT7TLIGUnm958oVrU2cUK8pQAVU21Zu7h8rbk/PeRtRWrvHJBql97Bhzk3g1N6+2VKC+Rjxna9Q==}
resolution: {integrity: sha512-Quw8a6y8CPmRd6eU+mwypktYCwUcf8yVFIRbNZ6tPQEckX9yd+EBVEPC/GSZZrMWH9e7Vz4pT7XhpmyApRByLQ==}
@@ -3965,10 +3952,6 @@ packages:
resolution: {integrity: sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==}
engines: {node: '>=0.1.90'}
- resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==}
- engines: {node: '>=0.1.90'}
-
resolution: {integrity: sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==}
@@ -3990,10 +3973,6 @@ packages:
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
engines: {node: '>= 10'}
- resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
- engines: {node: '>= 12'}
-
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
engines: {node: ^12.20.0 || >=14}
@@ -4222,10 +4201,6 @@ packages:
resolution: {integrity: sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-uBAmklAxqmem7WX/F7YA4eWBTegGLJ93MOPSJaJliAuzTNgF3u/H9YLlJ6Nae9/FwV+037OuXc75hvcmub1qww==}
- engines: {node: '>= 18'}
-
resolution: {integrity: sha512-htLIdtfhhKW2fHlFLnZH7GFzHSdSpHhDLrWVswkNiiPMZ5uXq5JfrGboQKFhNQuAAFF8VNB2EYUj3MsdJrKKpg==}
@@ -4373,9 +4348,6 @@ packages:
resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}
-
resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}
peerDependencies:
@@ -4686,8 +4658,8 @@ packages:
resolution: {integrity: sha512-SB9NcZ27OtoUk+gfalsc3QU17+54OoqR668qHcuvHByk4KAhGxCKlkm9EBlKJcGr7yceOOAJqohTcCEBqfRw9g==}
engines: {node: '>= 0.10.0'}
- resolution: {integrity: sha512-IW4/3cEiFp49M2LiKyzi7VcT1egogOe8UxQ9eUKTooenC7Q4qNhzTD6rOZ8j51m8iJC+8hCzjbNCa3K4CN0Hhg==}
+ resolution: {integrity: sha512-QOmqeY53LIMc3/FgMnvt/KY/JhtyOZchda+VLJe994muhsS76EQ1lJaqv6lntq9Pc2R8coqiBKVfqlD0DeqnGg==}
engines: {node: '>=16.0.0'}
peerDependencies:
'@babel/core': ^7.23.6
@@ -4752,16 +4724,11 @@ packages:
resolution: {integrity: sha512-jZ5D6KLKU8up/AynZltmKh4lkXBPgTGSPgomprI/55XvIVqn42UNUpEz7ra/mO3QiGODDZOUesbggPe49i38sQ==}
engines: {node: 16.* || >= 18}
- resolution: {integrity: sha512-KVQNeCdZHglpMm0YY4itu18xzw+IYeLLceWlL9tplCNcsQLSDYynyOvkzuQQH+y4JYN7aFnlxlxSGPyCOpBLZg==}
+ resolution: {integrity: sha512-uh5WU2sJKkQgDgIQovwv1D0fw2/RJnmyAHqIhaTYk68CfKQ/O5v31c1iXNu71qv3xeONi3QPl/rBW0EMdIFXWA==}
engines: {node: ^18.18.0 || >= 20.9.0}
hasBin: true
- resolution: {integrity: sha512-VnRN8FzEHQnw/5rCv6Wnq8MVYXbGQbFY+rEufvWV+FO/IsxMahGEud4MYWtTA2q8iG+qJFrDQefNvQ//7MI7Qw==}
- engines: {node: 12.* || 14.* || >= 16.*}
- hasBin: true
-
resolution: {integrity: sha512-mIgjzv5PE+z64p1+o8eYkLHqkJY1g4BD93vgfE+ZTAvarIsJxGO8WmmZ7xCkmCM0xB4Idf0duR7IhLRsTg/81w==}
engines: {node: 18.* || 20.* || >= 22.*}
@@ -4906,14 +4873,11 @@ packages:
engines: {node: '>=6.0'}
hasBin: true
- resolution: {integrity: sha512-Uk/TVLt6Nf6Xoz7C1iYuZjOSdJxe5aaauGRke8JhKeJwD66Y61/pY2FjtLP04Ooq9PwV34bzrkKkU2UZ5FtDRA==}
-
resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
- resolution: {integrity: sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==}
+ resolution: {integrity: sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==}
engines: {node: '>=4'}
peerDependencies:
'@typescript-eslint/parser': '*'
@@ -4943,8 +4907,8 @@ packages:
'@babel/eslint-parser':
optional: true
- resolution: {integrity: sha512-DBUzsaKWDVXsujAZPpRir0O7owdlCoVzZmtaJm7g7iQeSrNtcRWI7AItsTqKSsws1XeAySH0sPsQItMdDCb9Fg==}
+ resolution: {integrity: sha512-QkKzUzmWjSjscJLNYlkPv1ug5B5/Ec/7/MEEjDZxthzHO9VhnyMZ0shwvCztLTvB5D7LO67E7Zmpwb4YyBoFMA==}
engines: {node: 18.* || 20.* || >= 21}
peerDependencies:
'@typescript-eslint/parser': '*'
@@ -4953,8 +4917,8 @@ packages:
'@typescript-eslint/parser':
optional: true
- resolution: {integrity: sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==}
+ resolution: {integrity: sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==}
engines: {node: '>=4'}
peerDependencies:
'@typescript-eslint/parser': '*'
@@ -4963,8 +4927,8 @@ packages:
'@typescript-eslint/parser':
optional: true
- resolution: {integrity: sha512-2gDQdHlQW8GVXD7YYkO8vbm9Ldc60JeGMuQN5QlD48OeZ8znBvvoHWZZMeXjvoDPReGaLEvyuWrDtrI8bDbcqw==}
+ resolution: {integrity: sha512-qr7RJCYImKQjB+39q4q46i1l7p1V3joHzBE5CAYfxn5tfVFjrnjn/tw7q/kDyweU9kAIcLul0Dx/KWVUCb3BgA==}
engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0}
@@ -4986,8 +4950,8 @@ packages:
resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- resolution: {integrity: sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==}
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -5004,12 +4968,12 @@ packages:
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- resolution: {integrity: sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==}
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- resolution: {integrity: sha512-ixRawFQuMB9DZ7fjU3iGGganFDp3+45bPOdaRurcFHSXO1e/sYwUX/FtQZpLZJR6SjMoJH8hR2pPEAfDyCoU2Q==}
+ resolution: {integrity: sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true
peerDependencies:
@@ -5022,8 +4986,8 @@ packages:
resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==}
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -5233,8 +5197,8 @@ packages:
resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-Et/ex6smi3wOOB+n5mek+Grf7P2AxZR5ueqRUvAAn4qkyatXi3cUC1cuQXVkX0VlzBVsN4BkWJFmY/fYiRTdww==}
+ resolution: {integrity: sha512-D+w75Ub8T55yor7fPgN06rkCAUbAYw2vpxJmmjv/GDAcvCnv9g7IvHhIZoxzRZThrXPFI2maeY24pPbtyYU7Lg==}
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
@@ -5302,10 +5266,6 @@ packages:
resolution: {integrity: sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- resolution: {integrity: sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==}
@@ -5335,8 +5295,8 @@ packages:
resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
engines: {node: '>=16'}
- resolution: {integrity: sha512-DUqiKkTlAfhtl7g78IuwqYM+YqvT+as0mY+EVk6mfimy19U79pJCzDZQsnqk3Ou/T6hFXWLGbwbADzD/c8Tydg==}
+ resolution: {integrity: sha512-U+HqqpZPPXP5d24bWuRzjGqVqUcw64k4nZAbruniDwdRg0H10tvN7H6ku1tjhA4rg5B9GS3siEvwO2qjJJ6f8Q==}
resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
@@ -5469,10 +5429,6 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
- resolution: {integrity: sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -5602,8 +5558,8 @@ packages:
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-O+7l9tPdHCU320IigZZPj5zmRCFG9xHmx9cU8FqU2Rp+JN714seHV+2S9+JslCpY4gJwU2vOGox0wzgae/MCEg==}
+ resolution: {integrity: sha512-bqWEnJ1Nt3neqx2q5SFfGS8r/ahumIakg3HcwtNlrVlwXIeNumWn/c7Pn/wKzGhf6SaW6H6uWXLqC30STCMchQ==}
engines: {node: '>=18'}
@@ -5720,8 +5676,8 @@ packages:
resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-2yEEGqphImtKIe1NXWEhu6yD3hlFR4Mxk4Mtp3XEyScpSt4pQ4ymmXA1zzxZpj99QkFK+nN0nzjeb2+RUi/6CQ==}
+ resolution: {integrity: sha512-aDdIN3GyU5I6wextPplYdfmWCo+aLmjjVbntmX6HLD5RCi/xKsivYEBhnRD+d9224zFf008ZpLMPlWF0ZodYZw==}
resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==}
@@ -5815,8 +5771,8 @@ packages:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
- resolution: {integrity: sha512-gJzzk+PQNznz8ysRrC0aOkBNVRBDtE1n53IqyqEf3PXrYwomFs5q4pGMizBMJF+ykh03insJ27hB8gSrD2Hn8A==}
+ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
engines: {node: '>= 4'}
@@ -6317,8 +6273,8 @@ packages:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
- resolution: {integrity: sha512-Rwu4+nXI9fqcxiEHtbkvoes2X+QfkTRo1TMkPfwzipGsJlJO/z69vqB4FNl9xJ3xCpAcbkvmEabZfPzrwN3+gQ==}
+ resolution: {integrity: sha512-TMckyVjEoacG5IteUpUrOBsFORtheqziVyyY2dLUwg1jwTb8u48LX4TgmtogkNl9Y9unaEJ1luj10fGyjMGFOQ==}
resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==}
@@ -6338,16 +6294,12 @@ packages:
resolution: {integrity: sha512-A+9jP+IUmuQsNdsLdcg6Yt7voiMF/D4K83ew0OpJtpu+l34ef7LaohWV0Rc6KNvzw6ZDizkqfyB5JznZnzuKQA==}
+ resolution: {integrity: sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ==}
+
resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==}
- resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}
-
- resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
- engines: {node: '>=0.10'}
-
resolution: {integrity: sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==}
engines: {node: '>=8'}
@@ -6646,8 +6598,8 @@ packages:
resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==}
- resolution: {integrity: sha512-+ZKPQezM5vYJIkCxaC+4DTnRrVZR1CgsKLu5zsQERQx6Tea8Y+wMx5A24rq8A8NepCeatIQufVAekKNgiBMsGQ==}
+ resolution: {integrity: sha512-786vq1+4079JSeu2XdcDjrhi/Ry7BWtjDl9WtGPWLiIHb2T66GvIVflZTBoSNZ5JqTtJGYEVMuFA/lbQlMOyDQ==}
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
@@ -7501,8 +7453,8 @@ packages:
resolution: {integrity: sha512-jkPAvt1BfRi0RKamweJdEcnjkeu7Es8yix3bJ+KgBC5VpG/Ln4JE3hYN6vJym4qprm8Xo5adhWpm3HCoft1dOw==}
- resolution: {integrity: sha512-G9lbK3wmryIBSzqBKKoy254v7hIjqzqYpqWxi9NvOxcxNtwLyrC1u9NLJJFm+x9blzqHQOzKGOseVnbLtEwEbg==}
+ resolution: {integrity: sha512-Ium+m2zHSZKzRFt1Shn+sv8j1BzfFWP3E0tZeKTKP1U7v/tMyLuQNBRyRCJ7REdKc9bWkIJG/hCSf0CKqCVU1w==}
engines: {node: 18.* || >= 20}
peerDependencies:
prettier: '>= 3.0.0'
@@ -8452,14 +8404,14 @@ packages:
peerDependencies:
stylelint: ^16.18.0
- resolution: {integrity: sha512-U7CKhi1YNkM1pXUXl/GMUXi8xKdhl4Ayxdyceie1nZ1XNIdaUgMV6OArpooWcDzEggwgYD0HP/xIgVJo9a655w==}
+ resolution: {integrity: sha512-UJUfBFIvXfly8WKIgmqfmkGKPilKB4L5j38JfsDd+OCg2GBdU0vGUV08Uw82tsRZzd4TbsUURVVNGeOhJVF7pA==}
engines: {node: '>=18.12.0'}
peerDependencies:
stylelint: ^16.0.2
- resolution: {integrity: sha512-C1SlPZNMKl+d/C867ZdCRthrS+6KuZ3AoGW113RZCOL0M8xOGpgx7G70wq7lFvqvm4dcfdGFVLB/mNaLFChRKw==}
+ resolution: {integrity: sha512-SVEMTdjKNV4ollUrIY9ordZ36zHv2/PHzPjfPMau370MlL2VYXeLgSNMMiEbLGRO8RmD2R8/BVUeF2DfnfkC0w==}
engines: {node: '>=18.12.0'}
hasBin: true
@@ -8638,10 +8590,6 @@ packages:
resolution: {integrity: sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==}
- engines: {node: '>=14.14'}
-
resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}
@@ -8832,10 +8780,6 @@ packages:
resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}
engines: {node: '>=18'}
@@ -8913,9 +8857,6 @@ packages:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
hasBin: true
- resolution: {integrity: sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw==}
-
resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}
@@ -9373,11 +9314,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/core': 7.28.0([email protected])
'@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1
- eslint: 9.27.0
+ eslint: 9.32.0
eslint-visitor-keys: 2.1.0
semver: 6.3.1
@@ -10137,7 +10078,7 @@ snapshots:
'@csstools/[email protected]': {}
- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
dependencies:
'@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
'@csstools/css-tokenizer': 3.0.4
@@ -10171,26 +10112,26 @@ snapshots:
'@discourse/[email protected]': {}
dependencies:
'@babel/core': 7.28.0([email protected])
- '@babel/eslint-parser': 7.27.1(@babel/[email protected])([email protected])
+ '@babel/eslint-parser': 7.28.0(@babel/[email protected])([email protected])
'@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])
- ember-template-lint: 7.7.0(@babel/[email protected])
- eslint: 9.27.0
- eslint-plugin-decorator-position: 6.0.0(@babel/[email protected](@babel/[email protected])([email protected]))([email protected])
- eslint-plugin-ember: 12.5.0(@babel/[email protected])([email protected])
- eslint-plugin-import: 2.31.0([email protected])
- eslint-plugin-qunit: 8.1.2([email protected])
- eslint-plugin-simple-import-sort: 12.1.1([email protected])
- eslint-plugin-sort-class-members: 1.21.0([email protected])
- globals: 16.2.0
+ ember-template-lint: 7.9.1
+ eslint: 9.32.0
+ eslint-plugin-decorator-position: 6.0.0(@babel/[email protected](@babel/[email protected])([email protected]))([email protected])
+ eslint-plugin-ember: 12.7.0(@babel/[email protected])([email protected])
+ eslint-plugin-import: 2.32.0([email protected])
+ eslint-plugin-qunit: 8.2.5([email protected])
+ eslint-plugin-simple-import-sort: 12.1.1([email protected])
+ eslint-plugin-sort-class-members: 1.21.0([email protected])
+ globals: 16.3.0
prettier: 3.5.3
- prettier-plugin-ember-template-tag: 2.0.5([email protected])
- stylelint: 16.19.1([email protected])
- stylelint-config-standard: 38.0.0([email protected]([email protected]))
- stylelint-config-standard-scss: 15.0.1([email protected])([email protected]([email protected]))
- stylelint-scss: 6.12.0([email protected]([email protected]))
+ prettier-plugin-ember-template-tag: 2.1.0([email protected])
+ stylelint: 16.22.0([email protected])
+ stylelint-config-standard: 38.0.0([email protected]([email protected]))
+ stylelint-config-standard-scss: 15.0.1([email protected])([email protected]([email protected]))
+ stylelint-scss: 6.12.1([email protected]([email protected]))
typescript: 5.8.3
transitivePeerDependencies:
- '@typescript-eslint/parser'
@@ -10587,14 +10528,14 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@eslint-community/[email protected]([email protected])':
+ '@eslint-community/[email protected]([email protected])':
dependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
eslint-visitor-keys: 3.4.3
'@eslint-community/[email protected]': {}
- '@eslint/[email protected]':
+ '@eslint/[email protected]':
dependencies:
'@eslint/object-schema': 2.1.6
debug: 4.4.1([email protected])
@@ -10602,9 +10543,9 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@eslint/[email protected]': {}
+ '@eslint/[email protected]': {}
- '@eslint/[email protected]':
+ '@eslint/[email protected]':
dependencies:
'@types/json-schema': 7.0.15
@@ -10612,7 +10553,7 @@ snapshots:
dependencies:
ajv: 6.12.6
debug: 4.4.1([email protected])
- espree: 10.3.0
+ espree: 10.4.0
globals: 14.0.0
ignore: 5.3.2
import-fresh: 3.3.1
@@ -10622,13 +10563,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@eslint/[email protected]': {}
+ '@eslint/[email protected]': {}
'@eslint/[email protected]': {}
- '@eslint/[email protected]':
+ '@eslint/[email protected]':
dependencies:
- '@eslint/core': 0.14.0
+ '@eslint/core': 0.15.1
levn: 0.4.1
'@faker-js/[email protected]': {}
@@ -10713,10 +10654,6 @@ snapshots:
'@glimmer/[email protected]': {}
- '@glimmer/[email protected]':
- dependencies:
- '@glimmer/env': 0.1.7
-
'@glimmer/[email protected]': {}
'@glimmer/[email protected]':
@@ -10783,14 +10720,6 @@ snapshots:
'@glimmer/vm': 0.92.3
'@glimmer/wire-format': 0.92.3
- '@glimmer/[email protected]':
- dependencies:
- '@glimmer/env': 0.1.7
- '@glimmer/global-context': 0.84.3
- '@glimmer/interfaces': 0.84.3
- '@glimmer/util': 0.84.3
- '@glimmer/validator': 0.84.3
-
'@glimmer/[email protected]':
dependencies:
'@glimmer/env': 0.1.7
@@ -10874,11 +10803,6 @@ snapshots:
'@glimmer/[email protected]': {}
- '@glimmer/[email protected]':
- dependencies:
- '@glimmer/env': 0.1.7
- '@glimmer/global-context': 0.84.3
-
'@glimmer/[email protected]':
dependencies:
'@glimmer/env': 0.1.7
@@ -11032,9 +10956,7 @@ snapshots:
'@jspreadsheet/[email protected]': {}
- dependencies:
- buffer: 6.0.3
+ '@keyv/[email protected]': {}
'@lint-todo/[email protected]':
dependencies:
@@ -11953,8 +11875,6 @@ snapshots:
-
@@ -12340,7 +12260,7 @@ snapshots:
raw-body: 1.1.7
safe-json-parse: 1.0.1
dependencies:
balanced-match: 1.0.2
concat-map: 0.0.1
@@ -12803,10 +12723,10 @@ snapshots:
union-value: 1.0.1
unset-value: 1.0.0
dependencies:
- hookified: 1.9.0
- keyv: 5.3.3
+ hookified: 1.11.0
+ keyv: 5.4.0
dependencies:
@@ -13002,8 +12922,6 @@ snapshots:
-
dependencies:
color: 3.2.1
@@ -13021,8 +12939,6 @@ snapshots:
-
@@ -13110,10 +13026,6 @@ snapshots:
dependencies:
safe-buffer: 5.2.1
- dependencies:
- content-tag: 3.1.3
-
@@ -13254,8 +13166,6 @@ snapshots:
es-errors: 1.3.0
is-data-view: 1.0.2
-
dependencies:
ms: 2.0.0
@@ -13896,11 +13806,11 @@ snapshots:
dependencies:
'@babel/core': 7.28.0([email protected])
- '@babel/eslint-parser': 7.27.1(@babel/[email protected])([email protected])
- '@glimmer/syntax': 0.92.3
+ '@babel/eslint-parser': 7.28.0(@babel/[email protected])([email protected])
+ '@glimmer/syntax': 0.93.1
content-tag: 2.0.3
eslint-scope: 7.2.2
html-tags: 3.3.1
@@ -14052,51 +13962,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- '@babel/generator': 7.28.0
- '@babel/parser': 7.28.0
- '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])
- '@babel/plugin-transform-typescript': 7.27.1(@babel/[email protected])
- '@babel/traverse': 7.28.0([email protected])
'@lint-todo/utils': 13.1.1
- aria-query: 5.3.2
- chalk: 5.4.1
- ci-info: 4.2.0
content-tag: 3.1.3
- content-tag-utils: 0.3.1
- date-fns: 3.6.0
- ember-template-recast: 6.1.5
- eslint-formatter-kakoune: 1.0.0
- find-up: 7.0.0
- fuse.js: 7.1.0
- get-stdin: 9.0.0
- globby: 14.1.0
- is-glob: 4.0.3
- language-tags: 1.0.9
- micromatch: 4.0.8
- resolve: 1.22.10
- v8-compile-cache: 2.4.0
- yargs: 17.7.2
- transitivePeerDependencies:
- - '@babel/core'
- - supports-color
-
- dependencies:
- '@glimmer/reference': 0.84.3
- '@glimmer/syntax': 0.84.3
- '@glimmer/validator': 0.84.3
- async-promise-queue: 1.0.5
- colors: 1.4.0
- commander: 8.3.0
- globby: 11.1.0
- ora: 5.4.1
- slash: 3.0.0
- tmp: 0.2.3
- workerpool: 6.5.1
- transitivePeerDependencies:
- - supports-color
dependencies:
@@ -14330,8 +14199,6 @@ snapshots:
optionalDependencies:
source-map: 0.6.1
-
dependencies:
debug: 3.2.7
@@ -14340,36 +14207,36 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
eslint-import-resolver-node: 0.3.9
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/core': 7.28.0([email protected])
'@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])
'@ember-data/rfc395-data': 0.0.4
ember-rfc176-data: 0.3.18
- eslint: 9.27.0
+ eslint: 9.32.0
snake-case: 3.0.4
optionalDependencies:
- '@babel/eslint-parser': 7.27.1(@babel/[email protected])([email protected])
+ '@babel/eslint-parser': 7.28.0(@babel/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
'@ember-data/rfc395-data': 0.0.4
css-tree: 3.1.0
- ember-eslint-parser: 0.5.9(@babel/[email protected])([email protected])
+ ember-eslint-parser: 0.5.10(@babel/[email protected])([email protected])
ember-rfc176-data: 0.3.18
- eslint: 9.27.0
- eslint-utils: 3.0.0([email protected])
+ eslint: 9.32.0
+ eslint-utils: 3.0.0([email protected])
estraverse: 5.3.0
lodash.camelcase: 4.3.0
lodash.kebabcase: 4.1.1
@@ -14378,7 +14245,7 @@ snapshots:
transitivePeerDependencies:
- '@babel/core'
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9
@@ -14387,9 +14254,9 @@ snapshots:
array.prototype.flatmap: 1.3.3
debug: 3.2.7
doctrine: 2.1.0
- eslint: 9.27.0
+ eslint: 9.32.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.12.0([email protected])([email protected])
+ eslint-module-utils: 2.12.1([email protected])([email protected])
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -14405,20 +14272,20 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
dependencies:
- eslint-utils: 3.0.0([email protected])
+ eslint-utils: 3.0.0([email protected])
requireindex: 1.2.0
transitivePeerDependencies:
- eslint
dependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
dependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
dependencies:
@@ -14430,32 +14297,32 @@ snapshots:
esrecurse: 4.3.0
estraverse: 5.3.0
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
dependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
eslint-visitor-keys: 2.1.0
dependencies:
- '@eslint-community/eslint-utils': 4.7.0([email protected])
+ '@eslint-community/eslint-utils': 4.7.0([email protected])
'@eslint-community/regexpp': 4.12.1
- '@eslint/config-array': 0.20.0
- '@eslint/config-helpers': 0.2.2
- '@eslint/core': 0.14.0
+ '@eslint/config-array': 0.21.0
+ '@eslint/config-helpers': 0.3.0
+ '@eslint/core': 0.15.1
'@eslint/eslintrc': 3.3.1
- '@eslint/js': 9.27.0
- '@eslint/plugin-kit': 0.3.1
+ '@eslint/js': 9.32.0
+ '@eslint/plugin-kit': 0.3.4
'@humanfs/node': 0.16.6
'@humanwhocodes/module-importer': 1.0.1
'@humanwhocodes/retry': 0.4.3
@@ -14466,9 +14333,9 @@ snapshots:
cross-spawn: 7.0.6
debug: 4.4.1([email protected])
escape-string-regexp: 4.0.0
- eslint-scope: 8.3.0
- eslint-visitor-keys: 4.2.0
- espree: 10.3.0
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
esquery: 1.6.0
esutils: 2.0.3
fast-deep-equal: 3.1.3
@@ -14488,11 +14355,11 @@ snapshots:
dependencies:
acorn: 8.15.0
acorn-jsx: 5.3.2([email protected])
- eslint-visitor-keys: 4.2.0
+ eslint-visitor-keys: 4.2.1
@@ -14799,9 +14666,9 @@ snapshots:
dependencies:
escape-string-regexp: 1.0.5
dependencies:
- flat-cache: 6.1.9
+ flat-cache: 6.1.12
dependencies:
@@ -14901,12 +14768,6 @@ snapshots:
locate-path: 7.2.0
path-exists: 5.0.0
- dependencies:
- locate-path: 7.2.0
- path-exists: 5.0.0
- unicorn-magic: 0.1.0
-
dependencies:
micromatch: 4.0.8
@@ -14959,11 +14820,11 @@ snapshots:
flatted: 3.3.3
keyv: 4.5.4
dependencies:
- cacheable: 1.9.0
+ cacheable: 1.10.3
flatted: 3.3.3
- hookified: 1.9.0
+ hookified: 1.11.0
@@ -15125,8 +14986,6 @@ snapshots:
-
dependencies:
aproba: 2.0.0
@@ -15309,7 +15168,7 @@ snapshots:
dependencies:
@@ -15331,7 +15190,7 @@ snapshots:
dependencies:
'@sindresorhus/merge-streams': 2.3.0
fast-glob: 3.3.3
- ignore: 7.0.4
+ ignore: 7.0.5
path-type: 6.0.0
slash: 5.1.0
unicorn-magic: 0.3.0
@@ -15444,7 +15303,7 @@ snapshots:
dependencies:
parse-passwd: 1.0.0
dependencies:
@@ -15535,7 +15394,7 @@ snapshots:
@@ -16044,9 +15903,9 @@ snapshots:
dependencies:
json-buffer: 3.0.1
dependencies:
- '@keyv/serialize': 1.0.3
+ '@keyv/serialize': 1.1.0
dependencies:
@@ -16064,13 +15923,9 @@ snapshots:
-
- dependencies:
- language-subtag-registry: 0.3.23
dependencies:
@@ -16159,18 +16014,18 @@ snapshots:
dependencies:
uc.micro: 2.1.0
dependencies:
content-tag: 3.1.3
debug: 4.4.1([email protected])
- ember-template-lint: 7.7.0(@babel/[email protected])
+ ember-template-lint: 7.9.1
globby: 14.1.0
transitivePeerDependencies:
- supports-color
dependencies:
- eslint: 9.27.0
+ eslint: 9.32.0
globby: 14.1.0
import-cwd: 3.0.0
@@ -16393,7 +16248,7 @@ snapshots:
@@ -16504,7 +16359,7 @@ snapshots:
dependencies:
- brace-expansion: 1.1.11
+ brace-expansion: 1.1.12
dependencies:
@@ -17243,10 +17098,10 @@ snapshots:
fake-xml-http-request: 2.1.2
route-recognizer: 0.3.4
dependencies:
'@babel/core': 7.28.0([email protected])
- content-tag: 3.1.3
+ content-tag: 4.0.0
prettier: 3.5.3
transitivePeerDependencies:
- supports-color
@@ -18353,49 +18208,49 @@ snapshots:
dependencies:
postcss-scss: 4.0.9([email protected])
- stylelint: 16.19.1([email protected])
- stylelint-config-recommended: 16.0.0([email protected]([email protected]))
- stylelint-scss: 6.12.0([email protected]([email protected]))
+ stylelint: 16.22.0([email protected])
+ stylelint-config-recommended: 16.0.0([email protected]([email protected]))
+ stylelint-scss: 6.12.1([email protected]([email protected]))
optionalDependencies:
postcss: 8.5.6
dependencies:
- stylelint: 16.19.1([email protected])
+ stylelint: 16.22.0([email protected])
dependencies:
- stylelint: 16.19.1([email protected])
- stylelint-config-recommended-scss: 15.0.1([email protected])([email protected]([email protected]))
- stylelint-config-standard: 38.0.0([email protected]([email protected]))
+ stylelint: 16.22.0([email protected])
+ stylelint-config-recommended-scss: 15.0.1([email protected])([email protected]([email protected]))
+ stylelint-config-standard: 38.0.0([email protected]([email protected]))
optionalDependencies:
postcss: 8.5.6
dependencies:
- stylelint: 16.19.1([email protected])
- stylelint-config-recommended: 16.0.0([email protected]([email protected]))
+ stylelint: 16.22.0([email protected])
+ stylelint-config-recommended: 16.0.0([email protected]([email protected]))
dependencies:
css-tree: 3.1.0
is-plain-object: 5.0.0
known-css-properties: 0.36.0
- mdn-data: 2.21.0
+ mdn-data: 2.23.0
postcss-media-query-parser: 0.2.3
postcss-resolve-nested-selector: 0.1.6
postcss-selector-parser: 7.1.0
postcss-value-parser: 4.2.0
- stylelint: 16.19.1([email protected])
+ stylelint: 16.22.0([email protected])
dependencies:
'@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
'@csstools/css-tokenizer': 3.0.4
- '@csstools/media-query-list-parser': 4.0.2(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
+ '@csstools/media-query-list-parser': 4.0.3(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
'@csstools/selector-specificity': 5.0.0([email protected])
'@dual-bundle/import-meta-resolve': 4.1.0
balanced-match: 2.0.0
@@ -18406,15 +18261,15 @@ snapshots:
debug: 4.4.1([email protected])
fast-glob: 3.3.3
fastest-levenshtein: 1.0.16
- file-entry-cache: 10.1.0
+ file-entry-cache: 10.1.3
global-modules: 2.0.0
globby: 11.1.0
globjoin: 0.1.4
html-tags: 3.3.1
- ignore: 7.0.4
+ ignore: 7.0.5
imurmurhash: 0.1.4
is-plain-object: 5.0.0
- known-css-properties: 0.36.0
+ known-css-properties: 0.37.0
mathml-tag-names: 2.1.3
meow: 13.2.0
micromatch: 4.0.8
@@ -18722,8 +18577,6 @@ snapshots:
dependencies:
rimraf: 2.7.1
-
@@ -18922,8 +18775,6 @@ snapshots:
-
@@ -18993,8 +18844,6 @@ snapshots:
-
dependencies:
spdx-correct: 3.2.0
diff --git a/themes/horizon/javascripts/discourse/api-initializers/composer-peek-toggle-connector.js b/themes/horizon/javascripts/discourse/api-initializers/composer-peek-toggle-connector.js
index 37f4a1e473f..09de65e5d16 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/composer-peek-toggle-connector.js
+++ b/themes/horizon/javascripts/discourse/api-initializers/composer-peek-toggle-connector.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
import ComposerPeekModeToggle from "../components/composer-peek-mode-toggle";
-export default apiInitializer("1.8.0", (api) => {
+export default apiInitializer((api) => {
api.renderInOutlet("before-composer-toggles", ComposerPeekModeToggle);
});
diff --git a/themes/horizon/javascripts/discourse/api-initializers/full-width-logo-behavior.js b/themes/horizon/javascripts/discourse/api-initializers/full-width-logo-behavior.js
index 0130f280528..82c406d8597 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/full-width-logo-behavior.js
+++ b/themes/horizon/javascripts/discourse/api-initializers/full-width-logo-behavior.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("0.8", (api) => {
+export default apiInitializer((api) => {
document.body.classList.add("full-width-enabled");
// When the sidebar is visible, force the HomeLogo to be in an 'un-minimized' state.
diff --git a/themes/horizon/javascripts/discourse/api-initializers/hamburger-click-outside-transformer.js b/themes/horizon/javascripts/discourse/api-initializers/hamburger-click-outside-transformer.js
index 8aa1f9a54a5..bedeb042fc1 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/hamburger-click-outside-transformer.js
+++ b/themes/horizon/javascripts/discourse/api-initializers/hamburger-click-outside-transformer.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("0.8", (api) => {
+export default apiInitializer((api) => {
api.registerValueTransformer(
"hamburger-dropdown-click-outside-exceptions",
({ value }) => {
diff --git a/themes/horizon/javascripts/discourse/api-initializers/horizon.gjs b/themes/horizon/javascripts/discourse/api-initializers/horizon.gjs
index 20db3c600a8..344e5ffb2fd 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/horizon.gjs
+++ b/themes/horizon/javascripts/discourse/api-initializers/horizon.gjs
@@ -2,7 +2,7 @@ import { apiInitializer } from "discourse/lib/api";
import ExperimentalScreen from "../components/experimental-screen";
import UserColorPaletteSelector from "../components/user-color-palette-selector";
-export default apiInitializer("1.8.0", (api) => {
+export default apiInitializer((api) => {
api.renderInOutlet("above-main-container", ExperimentalScreen);
api.renderInOutlet("sidebar-footer-actions", UserColorPaletteSelector);
});
diff --git a/themes/horizon/javascripts/discourse/api-initializers/reposition-bulk-select.js b/themes/horizon/javascripts/discourse/api-initializers/reposition-bulk-select.js
index ce989944185..5d4d68dc6a1 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/reposition-bulk-select.js
+++ b/themes/horizon/javascripts/discourse/api-initializers/reposition-bulk-select.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
-export default apiInitializer("0.8.0", (api) => {
+export default apiInitializer((api) => {
api.registerValueTransformer("bulk-select-in-nav-controls", () => {
return true;
});
diff --git a/themes/horizon/javascripts/discourse/api-initializers/sidebar-new-topic-button-connector.js b/themes/horizon/javascripts/discourse/api-initializers/sidebar-new-topic-button-connector.js
index 67b78e6906c..96447a5d579 100644
--- a/themes/horizon/javascripts/discourse/api-initializers/sidebar-new-topic-button-connector.js
+++ b/themes/horizon/javascripts/discourse/api-initializers/sidebar-new-topic-button-connector.js
@@ -1,6 +1,6 @@
import { apiInitializer } from "discourse/lib/api";
import SidebarNewTopicButton from "../components/sidebar-new-topic-button";
-export default apiInitializer("1.8.0", (api) => {
+export default apiInitializer((api) => {
api.renderInOutlet("before-sidebar-sections", SidebarNewTopicButton);
});
diff --git a/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs b/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs
index 2bab29584d5..e591f170408 100644
--- a/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs
+++ b/themes/horizon/javascripts/discourse/initializers/topic-list-columns.gjs
@@ -40,7 +40,7 @@ export default {
initialize(container) {
const router = container.lookup("service:router");
- withPluginApi("1.39.0", (api) => {
+ withPluginApi((api) => {
api.registerValueTransformer(
"topic-list-columns",
({ value: columns }) => {