@ezuikit/player-theme 2.1.3-beta.1 → 2.1.4-beta.1

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 v2.1.3-beta.1
3
- * Copyright (c) 2026-03-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.4-beta.1
3
+ * Copyright (c) 2026-03-30 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  /**
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.3-beta.1
3
- * Copyright (c) 2026-03-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.4-beta.1
3
+ * Copyright (c) 2026-03-30 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -8315,12 +8315,12 @@ function _ts_generator$3(thisArg, body) {
8315
8315
  };
8316
8316
  }
8317
8317
  }
8318
- /**
8319
- * 语音广播控件
8320
- *
8321
- * 用于触发语音广播功能的按钮控件
8322
- *
8323
- * @category Control
8318
+ /**
8319
+ * 语音广播控件
8320
+ *
8321
+ * 用于触发语音广播功能的按钮控件
8322
+ *
8323
+ * @category Control
8324
8324
  */ var Broadcast = /*#__PURE__*/ function(Control) {
8325
8325
  _inherits$b(Broadcast, Control);
8326
8326
  function Broadcast(options) {
@@ -8338,6 +8338,11 @@ function _ts_generator$3(thisArg, body) {
8338
8338
  _this._render();
8339
8339
  }
8340
8340
  });
8341
+ if (options.sdkType === "base") {
8342
+ _this.$container.style.removeProperty("display");
8343
+ } else {
8344
+ _this.$container.style.display = "none";
8345
+ }
8341
8346
  return _this;
8342
8347
  }
8343
8348
  var _proto = Broadcast.prototype;
@@ -8355,16 +8360,16 @@ function _ts_generator$3(thisArg, body) {
8355
8360
  Control.prototype.reset.call(this, hide);
8356
8361
  }
8357
8362
  };
8358
- /**
8359
- * 销毁语音广播控件
8363
+ /**
8364
+ * 销毁语音广播控件
8360
8365
  */ _proto.destroy = function destroy() {
8361
8366
  if (this.active) {
8362
8367
  this.reset();
8363
8368
  }
8364
8369
  Control.prototype.destroy.call(this);
8365
8370
  };
8366
- /**
8367
- * 点击 Control 会触发
8371
+ /**
8372
+ * 点击 Control 会触发
8368
8373
  */ _proto._onControlClick = function _onControlClick(e) {
8369
8374
  var _this = this, _superprop_get__onControlClick = function() {
8370
8375
  return Control.prototype._onControlClick;
@@ -8540,12 +8545,12 @@ function _ts_generator$2(thisArg, body) {
8540
8545
  };
8541
8546
  }
8542
8547
  }
8543
- /**
8544
- * AI对话框控件
8545
- *
8546
- * 用于触发AI对话框功能的按钮控件
8547
- *
8548
- * @category Control
8548
+ /**
8549
+ * AI对话框控件
8550
+ *
8551
+ * 用于触发AI对话框功能的按钮控件
8552
+ *
8553
+ * @category Control
8549
8554
  */ var AIChat = /*#__PURE__*/ function(Control) {
8550
8555
  _inherits$a(AIChat, Control);
8551
8556
  function AIChat(options) {
@@ -8556,14 +8561,17 @@ function _ts_generator$2(thisArg, body) {
8556
8561
  classNameSuffix: 'aichat'
8557
8562
  })) || this;
8558
8563
  _this._options = options;
8559
- if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
8560
- _this._render();
8561
- _this.on(EVENTS.aichatChange, function(active) {
8562
- if (_this.active !== active) {
8563
- _this.active = active;
8564
- _this._render();
8565
- }
8566
- });
8564
+ _this._render();
8565
+ _this.on(EVENTS.aichatChange, function(active) {
8566
+ if (_this.active !== active) {
8567
+ _this.active = active;
8568
+ _this._render();
8569
+ }
8570
+ });
8571
+ if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud" && options.sdkType === "base") {
8572
+ _this.$container.style.removeProperty("display");
8573
+ } else {
8574
+ _this.$container.style.display = "none";
8567
8575
  }
8568
8576
  return _this;
8569
8577
  }
@@ -8582,16 +8590,16 @@ function _ts_generator$2(thisArg, body) {
8582
8590
  Control.prototype.reset.call(this, hide);
8583
8591
  }
8584
8592
  };
8585
- /**
8586
- * 销毁AI对话框控件
8593
+ /**
8594
+ * 销毁AI对话框控件
8587
8595
  */ _proto.destroy = function destroy() {
8588
8596
  if (this.active) {
8589
8597
  this.reset();
8590
8598
  }
8591
8599
  Control.prototype.destroy.call(this);
8592
8600
  };
8593
- /**
8594
- * 点击 Control 会触发
8601
+ /**
8602
+ * 点击 Control 会触发
8595
8603
  */ _proto._onControlClick = function _onControlClick(e) {
8596
8604
  var _this = this, _superprop_get__onControlClick = function() {
8597
8605
  return Control.prototype._onControlClick;
@@ -10204,7 +10212,8 @@ function _renderControls(theme, $container, btnList, props) {
10204
10212
  channelNo: theme.urlInfo.channelNo,
10205
10213
  urlInfo: theme.urlInfo
10206
10214
  } : {}, {
10207
- PLAY_TYPE: theme.options.type
10215
+ PLAY_TYPE: theme.options.type,
10216
+ sdkType: theme.options.sdkType
10208
10217
  }, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
10209
10218
  props: props
10210
10219
  }));
@@ -11995,7 +12004,7 @@ var THEME_DEFAULT_OPTIONS = {
11995
12004
  zh: zh,
11996
12005
  en: en
11997
12006
  };
11998
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.3-beta.1';
12007
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.4-beta.1';
11999
12008
 
12000
12009
  exports.Control = Control;
12001
12010
  exports.EVENTS = EVENTS;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.3-beta.1
3
- * Copyright (c) 2026-03-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.4-beta.1
3
+ * Copyright (c) 2026-03-30 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -8313,12 +8313,12 @@ function _ts_generator$3(thisArg, body) {
8313
8313
  };
8314
8314
  }
8315
8315
  }
8316
- /**
8317
- * 语音广播控件
8318
- *
8319
- * 用于触发语音广播功能的按钮控件
8320
- *
8321
- * @category Control
8316
+ /**
8317
+ * 语音广播控件
8318
+ *
8319
+ * 用于触发语音广播功能的按钮控件
8320
+ *
8321
+ * @category Control
8322
8322
  */ var Broadcast = /*#__PURE__*/ function(Control) {
8323
8323
  _inherits$b(Broadcast, Control);
8324
8324
  function Broadcast(options) {
@@ -8336,6 +8336,11 @@ function _ts_generator$3(thisArg, body) {
8336
8336
  _this._render();
8337
8337
  }
8338
8338
  });
8339
+ if (options.sdkType === "base") {
8340
+ _this.$container.style.removeProperty("display");
8341
+ } else {
8342
+ _this.$container.style.display = "none";
8343
+ }
8339
8344
  return _this;
8340
8345
  }
8341
8346
  var _proto = Broadcast.prototype;
@@ -8353,16 +8358,16 @@ function _ts_generator$3(thisArg, body) {
8353
8358
  Control.prototype.reset.call(this, hide);
8354
8359
  }
8355
8360
  };
8356
- /**
8357
- * 销毁语音广播控件
8361
+ /**
8362
+ * 销毁语音广播控件
8358
8363
  */ _proto.destroy = function destroy() {
8359
8364
  if (this.active) {
8360
8365
  this.reset();
8361
8366
  }
8362
8367
  Control.prototype.destroy.call(this);
8363
8368
  };
8364
- /**
8365
- * 点击 Control 会触发
8369
+ /**
8370
+ * 点击 Control 会触发
8366
8371
  */ _proto._onControlClick = function _onControlClick(e) {
8367
8372
  var _this = this, _superprop_get__onControlClick = function() {
8368
8373
  return Control.prototype._onControlClick;
@@ -8538,12 +8543,12 @@ function _ts_generator$2(thisArg, body) {
8538
8543
  };
8539
8544
  }
8540
8545
  }
8541
- /**
8542
- * AI对话框控件
8543
- *
8544
- * 用于触发AI对话框功能的按钮控件
8545
- *
8546
- * @category Control
8546
+ /**
8547
+ * AI对话框控件
8548
+ *
8549
+ * 用于触发AI对话框功能的按钮控件
8550
+ *
8551
+ * @category Control
8547
8552
  */ var AIChat = /*#__PURE__*/ function(Control) {
8548
8553
  _inherits$a(AIChat, Control);
8549
8554
  function AIChat(options) {
@@ -8554,14 +8559,17 @@ function _ts_generator$2(thisArg, body) {
8554
8559
  classNameSuffix: 'aichat'
8555
8560
  })) || this;
8556
8561
  _this._options = options;
8557
- if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
8558
- _this._render();
8559
- _this.on(EVENTS.aichatChange, function(active) {
8560
- if (_this.active !== active) {
8561
- _this.active = active;
8562
- _this._render();
8563
- }
8564
- });
8562
+ _this._render();
8563
+ _this.on(EVENTS.aichatChange, function(active) {
8564
+ if (_this.active !== active) {
8565
+ _this.active = active;
8566
+ _this._render();
8567
+ }
8568
+ });
8569
+ if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud" && options.sdkType === "base") {
8570
+ _this.$container.style.removeProperty("display");
8571
+ } else {
8572
+ _this.$container.style.display = "none";
8565
8573
  }
8566
8574
  return _this;
8567
8575
  }
@@ -8580,16 +8588,16 @@ function _ts_generator$2(thisArg, body) {
8580
8588
  Control.prototype.reset.call(this, hide);
8581
8589
  }
8582
8590
  };
8583
- /**
8584
- * 销毁AI对话框控件
8591
+ /**
8592
+ * 销毁AI对话框控件
8585
8593
  */ _proto.destroy = function destroy() {
8586
8594
  if (this.active) {
8587
8595
  this.reset();
8588
8596
  }
8589
8597
  Control.prototype.destroy.call(this);
8590
8598
  };
8591
- /**
8592
- * 点击 Control 会触发
8599
+ /**
8600
+ * 点击 Control 会触发
8593
8601
  */ _proto._onControlClick = function _onControlClick(e) {
8594
8602
  var _this = this, _superprop_get__onControlClick = function() {
8595
8603
  return Control.prototype._onControlClick;
@@ -10202,7 +10210,8 @@ function _renderControls(theme, $container, btnList, props) {
10202
10210
  channelNo: theme.urlInfo.channelNo,
10203
10211
  urlInfo: theme.urlInfo
10204
10212
  } : {}, {
10205
- PLAY_TYPE: theme.options.type
10213
+ PLAY_TYPE: theme.options.type,
10214
+ sdkType: theme.options.sdkType
10206
10215
  }, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
10207
10216
  props: props
10208
10217
  }));
@@ -11993,6 +12002,6 @@ var THEME_DEFAULT_OPTIONS = {
11993
12002
  zh: zh,
11994
12003
  en: en
11995
12004
  };
11996
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.3-beta.1';
12005
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.4-beta.1';
11997
12006
 
11998
12007
  export { 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 v2.1.3-beta.1
3
- * Copyright (c) 2026-03-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.4-beta.1
3
+ * Copyright (c) 2026-03-30 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -9957,12 +9957,12 @@
9957
9957
  };
9958
9958
  }
9959
9959
  }
9960
- /**
9961
- * 语音广播控件
9962
- *
9963
- * 用于触发语音广播功能的按钮控件
9964
- *
9965
- * @category Control
9960
+ /**
9961
+ * 语音广播控件
9962
+ *
9963
+ * 用于触发语音广播功能的按钮控件
9964
+ *
9965
+ * @category Control
9966
9966
  */ var Broadcast = /*#__PURE__*/ function(Control) {
9967
9967
  _inherits$b(Broadcast, Control);
9968
9968
  function Broadcast(options) {
@@ -9980,6 +9980,11 @@
9980
9980
  _this._render();
9981
9981
  }
9982
9982
  });
9983
+ if (options.sdkType === "base") {
9984
+ _this.$container.style.removeProperty("display");
9985
+ } else {
9986
+ _this.$container.style.display = "none";
9987
+ }
9983
9988
  return _this;
9984
9989
  }
9985
9990
  var _proto = Broadcast.prototype;
@@ -9997,16 +10002,16 @@
9997
10002
  Control.prototype.reset.call(this, hide);
9998
10003
  }
9999
10004
  };
10000
- /**
10001
- * 销毁语音广播控件
10005
+ /**
10006
+ * 销毁语音广播控件
10002
10007
  */ _proto.destroy = function destroy() {
10003
10008
  if (this.active) {
10004
10009
  this.reset();
10005
10010
  }
10006
10011
  Control.prototype.destroy.call(this);
10007
10012
  };
10008
- /**
10009
- * 点击 Control 会触发
10013
+ /**
10014
+ * 点击 Control 会触发
10010
10015
  */ _proto._onControlClick = function _onControlClick(e) {
10011
10016
  var _this = this, _superprop_get__onControlClick = function() {
10012
10017
  return Control.prototype._onControlClick;
@@ -10182,12 +10187,12 @@
10182
10187
  };
10183
10188
  }
10184
10189
  }
10185
- /**
10186
- * AI对话框控件
10187
- *
10188
- * 用于触发AI对话框功能的按钮控件
10189
- *
10190
- * @category Control
10190
+ /**
10191
+ * AI对话框控件
10192
+ *
10193
+ * 用于触发AI对话框功能的按钮控件
10194
+ *
10195
+ * @category Control
10191
10196
  */ var AIChat = /*#__PURE__*/ function(Control) {
10192
10197
  _inherits$a(AIChat, Control);
10193
10198
  function AIChat(options) {
@@ -10198,14 +10203,17 @@
10198
10203
  classNameSuffix: 'aichat'
10199
10204
  })) || this;
10200
10205
  _this._options = options;
10201
- if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud") {
10202
- _this._render();
10203
- _this.on(EVENTS.aichatChange, function(active) {
10204
- if (_this.active !== active) {
10205
- _this.active = active;
10206
- _this._render();
10207
- }
10208
- });
10206
+ _this._render();
10207
+ _this.on(EVENTS.aichatChange, function(active) {
10208
+ if (_this.active !== active) {
10209
+ _this.active = active;
10210
+ _this._render();
10211
+ }
10212
+ });
10213
+ if (options.urlInfo.search === "" && options.urlInfo.recType === "cloud" && options.sdkType === "base") {
10214
+ _this.$container.style.removeProperty("display");
10215
+ } else {
10216
+ _this.$container.style.display = "none";
10209
10217
  }
10210
10218
  return _this;
10211
10219
  }
@@ -10224,16 +10232,16 @@
10224
10232
  Control.prototype.reset.call(this, hide);
10225
10233
  }
10226
10234
  };
10227
- /**
10228
- * 销毁AI对话框控件
10235
+ /**
10236
+ * 销毁AI对话框控件
10229
10237
  */ _proto.destroy = function destroy() {
10230
10238
  if (this.active) {
10231
10239
  this.reset();
10232
10240
  }
10233
10241
  Control.prototype.destroy.call(this);
10234
10242
  };
10235
- /**
10236
- * 点击 Control 会触发
10243
+ /**
10244
+ * 点击 Control 会触发
10237
10245
  */ _proto._onControlClick = function _onControlClick(e) {
10238
10246
  var _this = this, _superprop_get__onControlClick = function() {
10239
10247
  return Control.prototype._onControlClick;
@@ -12356,7 +12364,8 @@
12356
12364
  channelNo: theme.urlInfo.channelNo,
12357
12365
  urlInfo: theme.urlInfo
12358
12366
  } : {}, {
12359
- PLAY_TYPE: theme.options.type
12367
+ PLAY_TYPE: theme.options.type,
12368
+ sdkType: theme.options.sdkType
12360
12369
  }, ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["" + item.iconId + "Options"]) || {}, {
12361
12370
  props: props
12362
12371
  }));
@@ -14147,7 +14156,7 @@
14147
14156
  zh: zh,
14148
14157
  en: en
14149
14158
  };
14150
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.3-beta.1';
14159
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.4-beta.1';
14151
14160
 
14152
14161
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14153
14162
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.3-beta.1
3
- * Copyright (c) 2026-03-20 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.4-beta.1
3
+ * Copyright (c) 2026-03-30 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
package/package.json CHANGED
@@ -1,41 +1,48 @@
1
- {
2
- "name": "@ezuikit/player-theme",
3
- "version": "2.1.3-beta.1",
4
- "description": "player theme",
5
- "title": "theme",
6
- "main": "dist/index.js",
7
- "types": "dist/types/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "keywords": [
12
- "player",
13
- "theme",
14
- "ezuikit",
15
- "ezviz",
16
- "ui"
17
- ],
18
- "author": "Ezviz-OpenBiz",
19
- "license": "MIT",
20
- "dependencies": {
21
- "@ezuikit/utils-i18n": "2.0.0",
22
- "@ezuikit/utils-logger": "2.0.0",
23
- "@ezuikit/utils-tools": "2.0.3",
24
- "@ezuikit/control-date-picker": "1.0.5",
25
- "@ezuikit/control-time-line": "1.0.7",
26
- "@juggle/resize-observer": "^3.4.0",
27
- "@skax/delegate": "4.0.2",
28
- "@skax/picker": "1.1.7",
29
- "deepmerge": "^4.3.1",
30
- "eventemitter3": "^5.0.1",
31
- "screenfull": "5.2.0"
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme.git"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme/issues"
39
- },
40
- "homepage": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme#readme"
41
- }
1
+ {
2
+ "name": "@ezuikit/player-theme",
3
+ "version": "2.1.4-beta.1",
4
+ "description": "player theme",
5
+ "title": "theme",
6
+ "main": "dist/index.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "scripts": {
9
+ "dev": "cross-env NODE_ENV=development rollup --config rollup.config.mjs --watch",
10
+ "build": "npm run clean && cross-env NODE_ENV=production rollup --config rollup.config.mjs",
11
+ "clean": "rimraf docs dist coverage",
12
+ "types": "tsc src/index.ts --emitDeclarationOnly --declaration --declarationDir dist/types --esModuleInterop",
13
+ "docs": "typedoc --tsconfig typedoc.config.js"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "keywords": [
19
+ "player",
20
+ "theme",
21
+ "ezuikit",
22
+ "ezviz",
23
+ "ui"
24
+ ],
25
+ "author": "Ezviz-OpenBiz",
26
+ "license": "MIT",
27
+ "dependencies": {
28
+ "@ezuikit/utils-i18n": "2.0.0",
29
+ "@ezuikit/utils-logger": "2.0.0",
30
+ "@ezuikit/utils-tools": "2.0.3",
31
+ "@ezuikit/control-date-picker": "1.0.5",
32
+ "@ezuikit/control-time-line": "1.0.7",
33
+ "@juggle/resize-observer": "^3.4.0",
34
+ "@skax/delegate": "4.0.2",
35
+ "@skax/picker": "1.1.7",
36
+ "deepmerge": "^4.3.1",
37
+ "eventemitter3": "^5.0.1",
38
+ "screenfull": "5.2.0"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme.git"
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme/issues"
46
+ },
47
+ "homepage": "https://github.com/Ezviz-OpenBiz/EZUIKit-player-theme#readme"
48
+ }