@yagolive/event-kit 1.0.2 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## @1.0.3 (2026-05-27)
4
+
5
+ ### 修改
6
+
7
+ - **AgencyInfo 字段扩展**: 为 `AgencyInvite.AgencyInfo` 内部类新增 `ownerAvatar` 字段
8
+ - 新增 `ownerAvatar?: string`(工会长头像 URL)
9
+ - JS: `AgencyInfo` 类新增 `getOwnerAvatar()` / `setOwnerAvatar(ownerAvatar)` 方法
10
+ - Java: `AgencyInfo` 类新增 `getOwnerAvatar()` / `setOwnerAvatar(String ownerAvatar)` 方法
11
+ - `toMap()` 方法同步新增 `ownerAvatar` 字段处理
12
+
13
+ ### Action 类型完整列表
14
+
15
+ | 类型 | 字段 | 说明 |
16
+ |------|------|------|
17
+ | jump | path: string, text?: string | 页面跳转 |
18
+ | navigate | screen: string, params?: Record, text?: string | 导航到指定屏幕 |
19
+ | replace | screen: string, params?: Record, text?: string | 替换当前页面 |
20
+ | goback | text?: string | 返回上一页 |
21
+ | enter_room | id?: number, match?: string, callbacks?: Record, useReplace?: boolean, text?: string | 进入房间 |
22
+ | live_detect | text?: string | 活体检测 |
23
+ | onelink | url: string, share?: boolean, text?: string | 分享链接 |
24
+ | agency_invite | id: number, type: string, title?: string, message?: string, agencyInfo?: AgencyInfo, accepted?: boolean, text?: string | 工会邀请 |
25
+
26
+ ### AgencyInfo 字段
27
+
28
+ | 字段 | 类型 | 说明 |
29
+ |------|------|------|
30
+ | id | string | 工会ID |
31
+ | name | string | 工会名称 |
32
+ | ownerId | string | 工会长用户ID |
33
+ | ownerName | string | 工会长名称 |
34
+ | ownerAvatar | string | 工会长头像URL |
35
+
36
+ ---
37
+
3
38
  ## @1.0.2 (2026-05-26)
4
39
 
5
40
  ### 新增
package/README.md CHANGED
@@ -666,6 +666,7 @@ Onelink Action 数据。
666
666
  | `setName(name)` | name: string | 设置工会名称,返回 this |
667
667
  | `setOwnerId(ownerId)` | ownerId: string | 设置工会长 ID,返回 this |
668
668
  | `setOwnerName(ownerName)` | ownerName: string | 设置工会长名称,返回 this |
669
+ | `setOwnerAvatar(ownerAvatar)` | ownerAvatar: string | 设置工会长头像 URL,返回 this |
669
670
 
670
671
  ### Action
671
672
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * YAGO Event Kit - Action Bridge (Full)
3
- * @version 1.0.2
3
+ * @version 1.0.3
4
4
  *
5
5
  * Generated by build script - do not edit manually.
6
6
  * Supports: Browser script tag, CommonJS, AMD
@@ -365,6 +365,7 @@ var AgencyInfo = class {
365
365
  this.name = null;
366
366
  this.ownerId = null;
367
367
  this.ownerName = null;
368
+ this.ownerAvatar = null;
368
369
  }
369
370
  getId() {
370
371
  return this.id;
@@ -394,12 +395,20 @@ var AgencyInfo = class {
394
395
  this.ownerName = ownerName;
395
396
  return this;
396
397
  }
398
+ getOwnerAvatar() {
399
+ return this.ownerAvatar;
400
+ }
401
+ setOwnerAvatar(ownerAvatar) {
402
+ this.ownerAvatar = ownerAvatar;
403
+ return this;
404
+ }
397
405
  toMap() {
398
406
  const map = {};
399
407
  if (this.id != null) map.id = this.id;
400
408
  if (this.name != null) map.name = this.name;
401
409
  if (this.ownerId != null) map.ownerId = this.ownerId;
402
410
  if (this.ownerName != null) map.ownerName = this.ownerName;
411
+ if (this.ownerAvatar != null) map.ownerAvatar = this.ownerAvatar;
403
412
  return map;
404
413
  }
405
414
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * YAGO Event Kit - Action Creator (Core Only)
3
- * @version 1.0.2
3
+ * @version 1.0.3
4
4
  *
5
5
  * Generated by build script - do not edit manually.
6
6
  * Supports: Browser script tag, CommonJS, AMD
@@ -365,6 +365,7 @@ var AgencyInfo = class {
365
365
  this.name = null;
366
366
  this.ownerId = null;
367
367
  this.ownerName = null;
368
+ this.ownerAvatar = null;
368
369
  }
369
370
  getId() {
370
371
  return this.id;
@@ -394,12 +395,20 @@ var AgencyInfo = class {
394
395
  this.ownerName = ownerName;
395
396
  return this;
396
397
  }
398
+ getOwnerAvatar() {
399
+ return this.ownerAvatar;
400
+ }
401
+ setOwnerAvatar(ownerAvatar) {
402
+ this.ownerAvatar = ownerAvatar;
403
+ return this;
404
+ }
397
405
  toMap() {
398
406
  const map = {};
399
407
  if (this.id != null) map.id = this.id;
400
408
  if (this.name != null) map.name = this.name;
401
409
  if (this.ownerId != null) map.ownerId = this.ownerId;
402
410
  if (this.ownerName != null) map.ownerName = this.ownerName;
411
+ if (this.ownerAvatar != null) map.ownerAvatar = this.ownerAvatar;
403
412
  return map;
404
413
  }
405
414
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yagolive/event-kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "YAGO Event Kit - 跨环境 Action 创建与通信工具库,支持浏览器、React、Vue",
5
5
  "main": "src/index.js",
6
6
  "browser": "build/js/action_bridge.umd.js",
@@ -72,6 +72,7 @@
72
72
  }
73
73
  },
74
74
  "scripts": {
75
+ "dev": "node scripts/build.js --watch && npx serve .",
75
76
  "build": "node scripts/build.js",
76
77
  "build:core": "node scripts/build.js --core",
77
78
  "build:bridge": "node scripts/build.js --bridge",
@@ -136,6 +136,7 @@ export class AgencyInfo {
136
136
  name: string | null;
137
137
  ownerId: string | null;
138
138
  ownerName: string | null;
139
+ ownerAvatar: string | null;
139
140
  getId(): string | null;
140
141
  setId(id: string): this;
141
142
  getName(): string | null;
@@ -144,6 +145,8 @@ export class AgencyInfo {
144
145
  setOwnerId(ownerId: string): this;
145
146
  getOwnerName(): string | null;
146
147
  setOwnerName(ownerName: string): this;
148
+ getOwnerAvatar(): string | null;
149
+ setOwnerAvatar(ownerAvatar: string): this;
147
150
  toMap(): Record<string, any>;
148
151
  }
149
152
 
@@ -1,9 +1,10 @@
1
1
  class AgencyInfo {
2
- constructor() { this.id = null; this.name = null; this.ownerId = null; this.ownerName = null; }
2
+ constructor() { this.id = null; this.name = null; this.ownerId = null; this.ownerName = null; this.ownerAvatar = null; }
3
3
  getId() { return this.id; } setId(id) { this.id = id; return this; }
4
4
  getName() { return this.name; } setName(name) { this.name = name; return this; }
5
5
  getOwnerId() { return this.ownerId; } setOwnerId(ownerId) { this.ownerId = ownerId; return this; }
6
6
  getOwnerName() { return this.ownerName; } setOwnerName(ownerName) { this.ownerName = ownerName; return this; }
7
+ getOwnerAvatar() { return this.ownerAvatar; } setOwnerAvatar(ownerAvatar) { this.ownerAvatar = ownerAvatar; return this; }
7
8
 
8
9
  toMap() {
9
10
  const map = {};
@@ -11,6 +12,7 @@ class AgencyInfo {
11
12
  if (this.name != null) map.name = this.name;
12
13
  if (this.ownerId != null) map.ownerId = this.ownerId;
13
14
  if (this.ownerName != null) map.ownerName = this.ownerName;
15
+ if (this.ownerAvatar != null) map.ownerAvatar = this.ownerAvatar;
14
16
  return map;
15
17
  }
16
18
  }