@ezuikit/player-theme 2.1.2-beta.4 → 2.1.2-beta.6

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,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.4
2
+ * @ezuikit/player-theme v2.1.2-beta.6
3
3
  * Copyright (c) 2026-03-12 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.4
2
+ * @ezuikit/player-theme v2.1.2-beta.6
3
3
  * Copyright (c) 2026-03-12 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -8519,15 +8519,13 @@ function _ts_generator$2(thisArg, body) {
8519
8519
  classNameSuffix: 'aichat'
8520
8520
  })) || this;
8521
8521
  _this._options = options;
8522
- if (options.urlInfo.searchParams.busType !== '7' && options.urlInfo.recType === "cloud") {
8523
- _this._render();
8524
- _this.on(EVENTS.aichatChange, function(active) {
8525
- if (_this.active !== active) {
8526
- _this.active = active;
8527
- _this._render();
8528
- }
8529
- });
8530
- }
8522
+ _this._render();
8523
+ _this.on(EVENTS.aichatChange, function(active) {
8524
+ if (_this.active !== active) {
8525
+ _this.active = active;
8526
+ _this._render();
8527
+ }
8528
+ });
8531
8529
  return _this;
8532
8530
  }
8533
8531
  var _proto = AIChat.prototype;
@@ -8536,6 +8534,9 @@ function _ts_generator$2(thisArg, body) {
8536
8534
  this.$container.innerHTML = IconComponents.aiChat({
8537
8535
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
8538
8536
  });
8537
+ if (this._options.urlInfo.searchParams.busType !== '7' && this._options.urlInfo.recType === "cloud") ; else {
8538
+ this.$container.style.display = 'none';
8539
+ }
8539
8540
  };
8540
8541
  _proto.reset = function reset(hide) {
8541
8542
  if (this.active) {
@@ -8553,6 +8554,11 @@ function _ts_generator$2(thisArg, body) {
8553
8554
  }
8554
8555
  Control.prototype.destroy.call(this);
8555
8556
  };
8557
+ _proto.updateOptions = function updateOptions(options) {
8558
+ this._options = deepmerge(this._options, options, {
8559
+ clone: false
8560
+ });
8561
+ };
8556
8562
  /**
8557
8563
  * 点击 Control 会触发
8558
8564
  */ _proto._onControlClick = function _onControlClick(e) {
@@ -11952,7 +11958,7 @@ var THEME_DEFAULT_OPTIONS = {
11952
11958
  zh: zh,
11953
11959
  en: en
11954
11960
  };
11955
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.4';
11961
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.6';
11956
11962
 
11957
11963
  exports.Control = Control;
11958
11964
  exports.EVENTS = EVENTS;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.4
2
+ * @ezuikit/player-theme v2.1.2-beta.6
3
3
  * Copyright (c) 2026-03-12 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -8517,15 +8517,13 @@ function _ts_generator$2(thisArg, body) {
8517
8517
  classNameSuffix: 'aichat'
8518
8518
  })) || this;
8519
8519
  _this._options = options;
8520
- if (options.urlInfo.searchParams.busType !== '7' && options.urlInfo.recType === "cloud") {
8521
- _this._render();
8522
- _this.on(EVENTS.aichatChange, function(active) {
8523
- if (_this.active !== active) {
8524
- _this.active = active;
8525
- _this._render();
8526
- }
8527
- });
8528
- }
8520
+ _this._render();
8521
+ _this.on(EVENTS.aichatChange, function(active) {
8522
+ if (_this.active !== active) {
8523
+ _this.active = active;
8524
+ _this._render();
8525
+ }
8526
+ });
8529
8527
  return _this;
8530
8528
  }
8531
8529
  var _proto = AIChat.prototype;
@@ -8534,6 +8532,9 @@ function _ts_generator$2(thisArg, body) {
8534
8532
  this.$container.innerHTML = IconComponents.aiChat({
8535
8533
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
8536
8534
  });
8535
+ if (this._options.urlInfo.searchParams.busType !== '7' && this._options.urlInfo.recType === "cloud") ; else {
8536
+ this.$container.style.display = 'none';
8537
+ }
8537
8538
  };
8538
8539
  _proto.reset = function reset(hide) {
8539
8540
  if (this.active) {
@@ -8551,6 +8552,11 @@ function _ts_generator$2(thisArg, body) {
8551
8552
  }
8552
8553
  Control.prototype.destroy.call(this);
8553
8554
  };
8555
+ _proto.updateOptions = function updateOptions(options) {
8556
+ this._options = deepmerge(this._options, options, {
8557
+ clone: false
8558
+ });
8559
+ };
8554
8560
  /**
8555
8561
  * 点击 Control 会触发
8556
8562
  */ _proto._onControlClick = function _onControlClick(e) {
@@ -11950,6 +11956,6 @@ var THEME_DEFAULT_OPTIONS = {
11950
11956
  zh: zh,
11951
11957
  en: en
11952
11958
  };
11953
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.4';
11959
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.6';
11954
11960
 
11955
11961
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.4
2
+ * @ezuikit/player-theme v2.1.2-beta.6
3
3
  * Copyright (c) 2026-03-12 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -10161,15 +10161,13 @@
10161
10161
  classNameSuffix: 'aichat'
10162
10162
  })) || this;
10163
10163
  _this._options = options;
10164
- if (options.urlInfo.searchParams.busType !== '7' && options.urlInfo.recType === "cloud") {
10165
- _this._render();
10166
- _this.on(EVENTS.aichatChange, function(active) {
10167
- if (_this.active !== active) {
10168
- _this.active = active;
10169
- _this._render();
10170
- }
10171
- });
10172
- }
10164
+ _this._render();
10165
+ _this.on(EVENTS.aichatChange, function(active) {
10166
+ if (_this.active !== active) {
10167
+ _this.active = active;
10168
+ _this._render();
10169
+ }
10170
+ });
10173
10171
  return _this;
10174
10172
  }
10175
10173
  var _proto = AIChat.prototype;
@@ -10178,6 +10176,9 @@
10178
10176
  this.$container.innerHTML = IconComponents.aiChat({
10179
10177
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
10180
10178
  });
10179
+ if (this._options.urlInfo.searchParams.busType !== '7' && this._options.urlInfo.recType === "cloud") ; else {
10180
+ this.$container.style.display = 'none';
10181
+ }
10181
10182
  };
10182
10183
  _proto.reset = function reset(hide) {
10183
10184
  if (this.active) {
@@ -10195,6 +10196,11 @@
10195
10196
  }
10196
10197
  Control.prototype.destroy.call(this);
10197
10198
  };
10199
+ _proto.updateOptions = function updateOptions(options) {
10200
+ this._options = deepmerge(this._options, options, {
10201
+ clone: false
10202
+ });
10203
+ };
10198
10204
  /**
10199
10205
  * 点击 Control 会触发
10200
10206
  */ _proto._onControlClick = function _onControlClick(e) {
@@ -14104,7 +14110,7 @@
14104
14110
  zh: zh,
14105
14111
  en: en
14106
14112
  };
14107
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.4';
14113
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.2-beta.6';
14108
14114
 
14109
14115
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14110
14116
 
package/dist/style.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.4
2
+ * @ezuikit/player-theme v2.1.2-beta.6
3
3
  * Copyright (c) 2026-03-12 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "2.1.2-beta.4",
3
+ "version": "2.1.2-beta.6",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",