@ezuikit/player-theme 2.1.2-beta.1 → 2.1.2-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/style.css CHANGED
@@ -19,6 +19,7 @@ body.ezplayer-body-mobile-noscroll{background-color:#000!important;height:100vh;
19
19
  .ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-plus{padding-bottom:0}.ezplayer-mini-height .ezplayer-progress-minus{padding-top:0}.ezplayer-zoom-panel{bottom:0;display:inline-flex;flex-direction:column;height:100%;justify-content:flex-end;left:20px;padding-bottom:calc(var(--ezplayer-footer-height, 80px) + 20px);padding-top:10%;pointer-events:none;position:absolute;top:0;z-index:23}.ezplayer-zoom-panel .ezplayer-progress{height:200px;max-height:95%;pointer-events:auto}.ezplayer-mobile .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-mobile-footer-height, 54px) + 10px);padding-top:5%}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-zoom-panel{padding-bottom:var(--ezplayer-mobile-fullscreen-footer-height,110px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}
20
20
  .ezplayer-icon-talk-growth-dot1,.ezplayer-icon-talk-growth-dot2,.ezplayer-icon-talk-growth-dot3,.ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-default-color,#fff)}.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot1,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-low .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-active-color,#407aff)}
21
21
  .ezplayer-control-broadcast.ezplayer-active .ezplayer-icon-record-circle{color:var(--ezplayer-active-color,#407aff)}
22
+ .ezplayer-control-aichat.ezplayer-active .ezplayer-icon-aichat{color:var(--ezplayer-active-color,#407aff)}
22
23
  .ezplayer-record-timer{align-items:center;background-color:#ff4c5c;border-radius:24px;color:#fff;display:inline-flex;flex-direction:row;left:50%;padding:2px 6px;position:absolute;top:60px;transform:translateX(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:3}.ezplayer-record-timer .ezplayer-icon-record-circle{font-size:14px}.ezplayer-record-timer-time{font-weight:400;letter-spacing:1px;line-height:20px;margin-left:2px}
23
24
  .ezplayer-select-definition .ezplayer-select-panel{width:100px}.ezplayer-control-definition .ezplayer-select-btn{width:75px}
24
25
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.2-beta.1
3
- * Copyright (c) 2026-02-09 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.2-beta.3
3
+ * Copyright (c) 2026-03-10 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -89,6 +89,8 @@ declare const EVENTS: {
89
89
  readonly talkVolumeChange: "talkVolumeChange";
90
90
  /** 语音广播状态变化 */
91
91
  readonly broadcastChange: "broadcastChange";
92
+ /** AI对话框状态变化 */
93
+ readonly aichatChange: "aichatChange";
92
94
  /** 动态切换日志配置 */
93
95
  readonly setLoggerOptions: "setLoggerOptions";
94
96
  readonly records: "records";
@@ -167,6 +169,10 @@ declare const EVENTS: {
167
169
  readonly broadcastChange: "Control.broadcastChange";
168
170
  /** 语音广播控件销毁 */
169
171
  readonly broadcastDestroy: "Control.broadcastDestroy";
172
+ /** AI对话框状态变化 */
173
+ readonly aichatChange: "Control.aichatChange";
174
+ /** AI对话框控件销毁 */
175
+ readonly aichatDestroy: "Control.aichatDestroy";
170
176
  /** 缩放比例改变 */
171
177
  readonly zoomChange: "Control.zoomChange";
172
178
  /** 音量调节面板 展示隐藏变换 */
@@ -942,6 +948,8 @@ type ControlType =
942
948
  | 'talk'
943
949
  /** 语音广播 */
944
950
  | 'broadcast'
951
+ /** AI对话 */
952
+ | 'aiChat'
945
953
  /** 电子放大 */
946
954
  | 'zoom'
947
955
  /** 清晰度, 兼容 hd */
@@ -1430,13 +1438,10 @@ declare class Theme extends EventEmitter {
1430
1438
  readonly talkingChange: "talkingChange";
1431
1439
  readonly talkVolumeChange: "talkVolumeChange";
1432
1440
  readonly broadcastChange: "broadcastChange";
1433
- readonly setLoggerOptions: "setLoggerOptions"; /**
1434
- * 更多控件(footer more)
1435
- * @since 0.0.1
1436
- * @private
1437
- */
1441
+ readonly aichatChange: "aichatChange";
1442
+ readonly setLoggerOptions: "setLoggerOptions";
1438
1443
  readonly records: "records";
1439
- readonly ptzSpeedChange: "ptzSpeedChange";
1444
+ readonly ptzSpeedChange: "ptzSpeedChange"; /** 头部控件 @since 0.0.1 @private */
1440
1445
  readonly setVideoLevelList: "setVideoLevelList";
1441
1446
  readonly currentVideoLevel: "currentVideoLevel";
1442
1447
  readonly currentVideoLevelAuto: "currentVideoLevelAuto";
@@ -1455,7 +1460,6 @@ declare class Theme extends EventEmitter {
1455
1460
  readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
1456
1461
  readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
1457
1462
  readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
1458
- /** 电子放大倍数 @private */
1459
1463
  readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
1460
1464
  readonly deviceDestroy: "Control.deviceDestroy";
1461
1465
  readonly recTypeChange: "Control.recTypeChange";
@@ -1464,6 +1468,9 @@ declare class Theme extends EventEmitter {
1464
1468
  readonly definitionList: "Control.definitionList";
1465
1469
  readonly definitionPanelOpenChange: "Control.definitionPanelOpenChange";
1466
1470
  readonly definitionDestroy: "Control.definitionDestroy";
1471
+ /**
1472
+ * 录像回放的月份列表 @private
1473
+ */
1467
1474
  readonly speedChange: "Control.speedChange";
1468
1475
  readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
1469
1476
  readonly speedDestroy: "Control.speedDestroy";
@@ -1478,6 +1485,8 @@ declare class Theme extends EventEmitter {
1478
1485
  readonly talkDestroy: "Control.talkDestroy";
1479
1486
  readonly broadcastChange: "Control.broadcastChange";
1480
1487
  readonly broadcastDestroy: "Control.broadcastDestroy";
1488
+ readonly aichatChange: "Control.aichatChange";
1489
+ readonly aichatDestroy: "Control.aichatDestroy";
1481
1490
  readonly zoomChange: "Control.zoomChange";
1482
1491
  readonly zoomPanelOpenChange: "Control.zoomPanelOpenChange";
1483
1492
  readonly zoomDestroy: "Control.zoomDestroy";
@@ -1699,6 +1708,7 @@ declare class Theme extends EventEmitter {
1699
1708
  BTN_CAPTURE: string;
1700
1709
  BTN_TALK: string;
1701
1710
  BTN_BROADCAST: string;
1711
+ BTN_AICHAT: string;
1702
1712
  BTN_ZOOM: string;
1703
1713
  BTN_3D_ZOOM: string;
1704
1714
  BTN_PTZ: string;
@@ -1717,6 +1727,7 @@ declare class Theme extends EventEmitter {
1717
1727
  DEVICE_ID: string;
1718
1728
  CAPTURE_SUCCESS: string;
1719
1729
  CAPTURE_FAILED: string;
1730
+ /** resizeObserver 监听销毁 */
1720
1731
  START_RECORD_SUCCESS: string;
1721
1732
  START_RECORD_FAILED: string;
1722
1733
  STOP_RECORD_SUCCESS: string;
@@ -1726,7 +1737,7 @@ declare class Theme extends EventEmitter {
1726
1737
  OPEN_SOUND: string;
1727
1738
  CLOSE_SOUND: string;
1728
1739
  SOUND_OPENED: string;
1729
- ZOOM: string; /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */
1740
+ ZOOM: string;
1730
1741
  START_ZOOM: string;
1731
1742
  CLOSE_ZOOM: string;
1732
1743
  ZOOM_ADD: string;
@@ -1735,10 +1746,10 @@ declare class Theme extends EventEmitter {
1735
1746
  ZOOM_SUB_MIN: string;
1736
1747
  ZOOM_LIMIT_MAX: string;
1737
1748
  ZOOM_LIMIT_MIN: string;
1738
- ZOOM_NOT_ENABLED: string; /** 音量 */
1749
+ ZOOM_NOT_ENABLED: string;
1739
1750
  '3D_ZOOM': string;
1740
1751
  '3D_ZOOM_DISABLE': string;
1741
- '3D_ZOOM_FAILED': string;
1752
+ '3D_ZOOM_FAILED': string; /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */
1742
1753
  START_3D_ZOOM: string;
1743
1754
  CLOSE_3D_ZOOM: string;
1744
1755
  DEVICE_NOT_SUPPORT_3D_ZOOM: string;
@@ -1753,14 +1764,7 @@ declare class Theme extends EventEmitter {
1753
1764
  WEB_FULLSCREEN_EXIT: string;
1754
1765
  DESTROY: string;
1755
1766
  GET_CAPACITY: string;
1756
- GET_PTZ_STATUS: string; /**
1757
- // * 记录回放的月份
1758
- // *
1759
- // * key: {序列号}_{通道号}_{rec | cloud | cloudRecord} 比如:BC7799091_1_rec BC7799091_1_cloud BC7799091_1_cloudRecord
1760
- // *
1761
- // * value: 月份列表 比如 ["2025-12-01", "2025-12-02"]
1762
- // * @private
1763
- // */
1767
+ GET_PTZ_STATUS: string;
1764
1768
  /**
1765
1769
  * 录像回放的月份列表 @private
1766
1770
  */
@@ -1769,6 +1773,9 @@ declare class Theme extends EventEmitter {
1769
1773
  OPTION_PTZ_FAILED: string;
1770
1774
  MOBILE_PTZ_TIPS: string;
1771
1775
  PTZ_FAST: string;
1776
+ /**
1777
+ * 录像回放的月份列表 @private
1778
+ */
1772
1779
  PTZ_MID: string;
1773
1780
  PTZ_SLOW: string;
1774
1781
  PTZ_SPEED: string;
@@ -1986,6 +1993,7 @@ declare class Theme extends EventEmitter {
1986
1993
  */
1987
1994
  BTN_TALK: string;
1988
1995
  BTN_BROADCAST: string;
1996
+ BTN_AICHAT: string;
1989
1997
  BTN_ZOOM: string;
1990
1998
  BTN_3D_ZOOM: string;
1991
1999
  BTN_PTZ: string;
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "2.1.2-beta.1",
3
+ "version": "2.1.2-beta.3",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",
7
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
+ },
8
15
  "files": [
9
16
  "dist"
10
17
  ],