@netless/window-manager 0.4.66-beta.0 → 0.4.66
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/index.d.ts +2 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -73
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/App/AppContext.ts +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@netless/window-manager",
|
3
|
-
"version": "0.4.66
|
3
|
+
"version": "0.4.66",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.mjs",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"video.js": ">=7"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@netless/app-docs-viewer": "^0.2.
|
36
|
+
"@netless/app-docs-viewer": "^0.2.17",
|
37
37
|
"@netless/app-media-player": "0.1.0-beta.5",
|
38
38
|
"@rollup/plugin-commonjs": "^20.0.0",
|
39
39
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
package/src/App/AppContext.ts
CHANGED
@@ -264,6 +264,6 @@ export class AppContext<TAttributes extends {} = any, TMagixEventPayloads = any,
|
|
264
264
|
|
265
265
|
/** Dispatch a local event to `manager.onAppEvent()`. */
|
266
266
|
public dispatchAppEvent(type: string, value?: any): void {
|
267
|
-
internalEmitter.emit(`custom-${this.kind}` as any, {
|
267
|
+
internalEmitter.emit(`custom-${this.kind}` as any, { kind: this.kind, appId: this.appId, type, value });
|
268
268
|
}
|
269
269
|
}
|
package/src/index.ts
CHANGED
@@ -617,7 +617,7 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
|
|
617
617
|
*
|
618
618
|
* 返回一个用于撤销此监听的函数
|
619
619
|
*/
|
620
|
-
public onAppEvent(kind: string, listener: (args: {
|
620
|
+
public onAppEvent(kind: string, listener: (args: { kind: string, appId: string, type: string, value: any }) => void): () => void {
|
621
621
|
return internalEmitter.on(`custom-${kind}` as any, listener);
|
622
622
|
}
|
623
623
|
|