@tinyweb_dev/oe-meeting-react 0.3.1 → 0.3.2

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.
@@ -77,8 +77,10 @@ Response mẫu:
77
77
  }
78
78
  ```
79
79
 
80
- API idempotent theo `slug`: gọi lại cùng slug trả về phòng đã tồn tại. OE.School
81
- nên lưu `room.id` và `room.slug` vào bản ghi buổi học sau lần tạo đầu tiên.
80
+ API idempotent theo `slug`: gọi lại cùng slug trả về phòng đã tồn tại, kể cả
81
+ khi hai request đua nhau (một bên thua unique constraint rồi đọc lại hàng
82
+ thắng). OE.School nên lưu `room.id` và `room.slug` vào bản ghi buổi học sau
83
+ lần tạo đầu tiên.
82
84
 
83
85
  Khuyến nghị slug:
84
86
 
@@ -178,7 +178,7 @@ interface EmbedEventEnvelope<TPayload> {
178
178
  | `PARTICIPANT_JOINED` | `identity`, `name?`, `participantCount` | Đã emit |
179
179
  | `PARTICIPANT_LEFT` | `identity`, `participantCount` | Đã emit |
180
180
  | `ERROR` | `code`, `message` | Đã emit |
181
- | `ENDED` | `roomSlug`, `endedAt` | Đã emit khi phòng đóng hoặc người cuối rời |
181
+ | `ENDED` | `roomSlug`, `endedAt` | Đã emit khi phòng đóng hoặc người cuối rời; không emit khi `DUPLICATE_IDENTITY` |
182
182
  | `STAGE_CHANGED` | `url` (`string` \| `null`), `title?`, `tool?`, `openedBy?` | Đã emit |
183
183
  | `TRANSCRIPT_STARTED` | `roomSlug`, `outcome`, `transcriptId` (`string` \| `null`), `status` (`string` \| `null`) | Đã emit khi bật `autoTranscribe` |
184
184
  | `RECORDING_STARTED` | `roomSlug`, `outcome`, `recordingId` (`string` \| `null`), `status` (`string` \| `null`) | Đã emit khi bật `autoRecord` |
@@ -245,6 +245,10 @@ tiếp tục), còn `ENDED` là tín hiệu buổi họp đã đóng. Embed phá
245
245
  - Người vừa disconnect là human cuối cùng còn lại (agent transcriber không
246
246
  được tính).
247
247
 
248
+ Không phát `ENDED` khi lý do là `DUPLICATE_IDENTITY`: tab cũ bị đá vì cùng
249
+ người vừa join client khác. Phòng, recording và transcript vẫn chạy trên
250
+ kết nối mới. Tab bị đá vẫn nhận `LEFT`.
251
+
248
252
  Emit `ENDED` trước `LEFT` để trang cha vẫn nhận được nếu nó unmount iframe
249
253
  ngay khi `onLeft`.
250
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinyweb_dev/oe-meeting-react",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "React SDK to embed OE Meeting rooms via iframe and postMessage",
5
5
  "publishConfig": {
6
6
  "access": "public"