lecodes-sdk 2.2.6 → 2.2.8
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/global.d.ts +40 -0
- package/dist/types/inject.d.ts +2 -0
- package/dist/types/plugin.d.ts +5 -0
- package/dist/types/plugins/gen/browser/sdk/browser.Browser.gen.d.ts +27 -0
- package/dist/types/plugins/gen/browser/sdk/browser.WebView.gen.d.ts +61 -0
- package/dist/types/plugins/gen/browser/sdk/browser.d.ts +71 -0
- package/dist/types/plugins/gen/webrtc/sdk/webrtc.RtcMedia.gen.d.ts +55 -0
- package/dist/types/plugins/gen/webrtc/sdk/webrtc.RtcPeerConnection.gen.d.ts +121 -0
- package/dist/types/plugins/gen/webrtc/sdk/webrtc.RtcVideo.gen.d.ts +25 -0
- package/dist/types/plugins/gen/webrtc/sdk/webrtc.d.ts +328 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types.json +1 -1
- package/package.json +1 -1
- package/src/chisel.ts +2 -2
- package/src/inject.ts +8 -0
- package/src/plugin.ts +13 -0
- package/src/plugins/gen/browser/contract.d.ts +108 -0
- package/src/plugins/gen/browser/sdk/browser.Browser.gen.ts +48 -0
- package/src/plugins/gen/browser/sdk/browser.WebView.gen.ts +96 -0
- package/src/plugins/gen/browser/sdk/browser.ts +218 -0
- package/src/plugins/gen/webrtc/contract.d.ts +342 -0
- package/src/plugins/gen/webrtc/sdk/webrtc.RtcMedia.gen.ts +86 -0
- package/src/plugins/gen/webrtc/sdk/webrtc.RtcPeerConnection.gen.ts +184 -0
- package/src/plugins/gen/webrtc/sdk/webrtc.RtcVideo.gen.ts +48 -0
- package/src/plugins/gen/webrtc/sdk/webrtc.ts +760 -0
- package/src/runtime/appEvents.ts +9 -0
- package/src/version.ts +1 -1
package/src/runtime/appEvents.ts
CHANGED
|
@@ -14,6 +14,15 @@ const dispatch = (event: string, data?: string): void => {
|
|
|
14
14
|
if (arr) for (const cb of arr.slice()) cb(data)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/** @internal The dispatcher the host is handed — what a test fires an app event through. */
|
|
18
|
+
export const _dispatchAppEvent = dispatch
|
|
19
|
+
/** @internal Forget every listener and the host registration — a test file that subscribed
|
|
20
|
+
* gives the slot back, so the next file's first subscription registers with ITS host stub. */
|
|
21
|
+
export const _resetAppEvents = (): void => {
|
|
22
|
+
for (const key of Object.keys(listeners)) delete listeners[key]
|
|
23
|
+
registered = false
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
export const appEventsOn = (event: string, cb: AppEventCallback): void => {
|
|
18
27
|
;(listeners[event] ??= []).push(cb)
|
|
19
28
|
if (!registered) {
|
package/src/version.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// same manifest). Its MAJOR is the bundle ↔ runtime contract: a bundle's `// sdk:` header line
|
|
5
5
|
// and a host's embedded version must agree on the major for the host to run the bundle; minor
|
|
6
6
|
// and patch never gate anything (features are detected, never versioned).
|
|
7
|
-
export const SDK_VERSION = "2.2.
|
|
7
|
+
export const SDK_VERSION = "2.2.8"
|
|
8
8
|
|
|
9
9
|
/** The major of a semver string, or null when it is not one. */
|
|
10
10
|
export const sdkMajor = (version: string | null | undefined): number | null => {
|