@ezuikit/player-theme 3.1.8-beta.2 → 3.1.8-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/constant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.8-beta.2
3
- * Copyright (c) 2026-10-10 15:37:05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.3
3
+ * Copyright (c) 2026-10-10 18:47:13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  function _extends() {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.8-beta.2
3
- * Copyright (c) 2026-10-10 15:37:05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.3
3
+ * Copyright (c) 2026-10-10 18:47:13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -661,6 +661,7 @@ var LOADING_DEFAULT_OPTIONS = {};
661
661
  var _proto = Loading.prototype;
662
662
  _proto._html = function _html() {
663
663
  if (typeof this._options.render === 'function') {
664
+ // 自定义节点安全由开发者自己保障
664
665
  this.$container.innerHTML = this._options.render();
665
666
  } else {
666
667
  var _this_locale;
@@ -1111,7 +1112,7 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1111
1112
  * @param {number=} duration 认自动关闭延时,单位秒, 默认 0 不关闭, 需手动 调用 hide()
1112
1113
  */ _proto.error = function error(msg, duration) {
1113
1114
  if (duration === void 0) duration = 0;
1114
- this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS + '-message-msg">' + (msg || '') + "</div>", duration, 'error');
1115
+ this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS + '-message-msg">' + (escapeHtml(msg) || '') + "</div>", duration, 'error');
1115
1116
  };
1116
1117
  _proto._toast = function _toast(msg, type, duration) {
1117
1118
  var _this = this;
@@ -1157,7 +1158,7 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1157
1158
  //
1158
1159
  this.$container.innerHTML = this.options.render(msg, duration, type);
1159
1160
  } else {
1160
- this.$container.innerHTML = '<div class="' + PREFIX_CLASS + "-message-content " + PREFIX_CLASS + "-message-" + type + '">' + escapeHtml(msg) + "</div>";
1161
+ this.$container.innerHTML = '<div class="' + PREFIX_CLASS + "-message-content " + PREFIX_CLASS + "-message-" + type + '">' + msg + "</div>";
1161
1162
  }
1162
1163
  //
1163
1164
  this.$container.style.display = 'flex';
@@ -12448,7 +12449,7 @@ var THEME_DEFAULT_OPTIONS = {
12448
12449
  zh: zh,
12449
12450
  en: en
12450
12451
  };
12451
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.2';
12452
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.3';
12452
12453
 
12453
12454
  exports.CONTROL_INIT_EVENTS = CONTROL_INIT_EVENTS;
12454
12455
  exports.Control = Control;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.8-beta.2
3
- * Copyright (c) 2026-10-10 15:37:05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.3
3
+ * Copyright (c) 2026-10-10 18:47:13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -659,6 +659,7 @@ var LOADING_DEFAULT_OPTIONS = {};
659
659
  var _proto = Loading.prototype;
660
660
  _proto._html = function _html() {
661
661
  if (typeof this._options.render === 'function') {
662
+ // 自定义节点安全由开发者自己保障
662
663
  this.$container.innerHTML = this._options.render();
663
664
  } else {
664
665
  var _this_locale;
@@ -1109,7 +1110,7 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1109
1110
  * @param {number=} duration 认自动关闭延时,单位秒, 默认 0 不关闭, 需手动 调用 hide()
1110
1111
  */ _proto.error = function error(msg, duration) {
1111
1112
  if (duration === void 0) duration = 0;
1112
- this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS + '-message-msg">' + (msg || '') + "</div>", duration, 'error');
1113
+ this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS + '-message-msg">' + (escapeHtml(msg) || '') + "</div>", duration, 'error');
1113
1114
  };
1114
1115
  _proto._toast = function _toast(msg, type, duration) {
1115
1116
  var _this = this;
@@ -1155,7 +1156,7 @@ var MESSAGE_DEFAULT_OPTIONS = {};
1155
1156
  //
1156
1157
  this.$container.innerHTML = this.options.render(msg, duration, type);
1157
1158
  } else {
1158
- this.$container.innerHTML = '<div class="' + PREFIX_CLASS + "-message-content " + PREFIX_CLASS + "-message-" + type + '">' + escapeHtml(msg) + "</div>";
1159
+ this.$container.innerHTML = '<div class="' + PREFIX_CLASS + "-message-content " + PREFIX_CLASS + "-message-" + type + '">' + msg + "</div>";
1159
1160
  }
1160
1161
  //
1161
1162
  this.$container.style.display = 'flex';
@@ -12446,6 +12447,6 @@ var THEME_DEFAULT_OPTIONS = {
12446
12447
  zh: zh,
12447
12448
  en: en
12448
12449
  };
12449
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.2';
12450
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.3';
12450
12451
 
12451
12452
  export { CONTROL_INIT_EVENTS, Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.8-beta.2
3
- * Copyright (c) 2026-10-10 15:37:05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.3
3
+ * Copyright (c) 2026-10-10 18:47:13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -1006,6 +1006,7 @@
1006
1006
  var _proto = Loading.prototype;
1007
1007
  _proto._html = function _html() {
1008
1008
  if (typeof this._options.render === 'function') {
1009
+ // 自定义节点安全由开发者自己保障
1009
1010
  this.$container.innerHTML = this._options.render();
1010
1011
  } else {
1011
1012
  var _this_locale;
@@ -1456,7 +1457,7 @@
1456
1457
  * @param {number=} duration 认自动关闭延时,单位秒, 默认 0 不关闭, 需手动 调用 hide()
1457
1458
  */ _proto.error = function error(msg, duration) {
1458
1459
  if (duration === void 0) duration = 0;
1459
- this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS$1 + '-message-msg">' + (msg || '') + "</div>", duration, 'error');
1460
+ this._show(this._getIcon('error') + '<div class="' + PREFIX_CLASS$1 + '-message-msg">' + (escapeHtml(msg) || '') + "</div>", duration, 'error');
1460
1461
  };
1461
1462
  _proto._toast = function _toast(msg, type, duration) {
1462
1463
  var _this = this;
@@ -1502,7 +1503,7 @@
1502
1503
  //
1503
1504
  this.$container.innerHTML = this.options.render(msg, duration, type);
1504
1505
  } else {
1505
- this.$container.innerHTML = '<div class="' + PREFIX_CLASS$1 + "-message-content " + PREFIX_CLASS$1 + "-message-" + type + '">' + escapeHtml(msg) + "</div>";
1506
+ this.$container.innerHTML = '<div class="' + PREFIX_CLASS$1 + "-message-content " + PREFIX_CLASS$1 + "-message-" + type + '">' + msg + "</div>";
1506
1507
  }
1507
1508
  //
1508
1509
  this.$container.style.display = 'flex';
@@ -14447,7 +14448,7 @@
14447
14448
  zh: zh,
14448
14449
  en: en
14449
14450
  };
14450
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.2';
14451
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.3';
14451
14452
 
14452
14453
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14453
14454
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.8-beta.2
3
- * Copyright (c) 2026-10-10 15:37:05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.3
3
+ * Copyright (c) 2026-10-10 18:47:13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "3.1.8-beta.2",
3
+ "version": "3.1.8-beta.3",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.cjs",