@netless/window-manager 1.0.0-canary.51 → 1.0.0-canary.52
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.cjs.js +3 -3
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
- package/src/AppManager.ts +2 -2
- package/src/BoxManager.ts +1 -1
package/dist/index.cjs.js
CHANGED
@@ -2756,8 +2756,8 @@ class AppManager {
|
|
2756
2756
|
this.onBoxMove = (payload) => {
|
2757
2757
|
this.dispatchInternalEvent(Events.AppMove, payload);
|
2758
2758
|
this.store.updateAppState(payload.appId, AppAttributes.Position, {
|
2759
|
-
x: payload.x,
|
2760
|
-
y: payload.y
|
2759
|
+
x: isNaN(payload.x) ? 0 : payload.x,
|
2760
|
+
y: isNaN(payload.y) ? 0 : payload.y
|
2761
2761
|
});
|
2762
2762
|
};
|
2763
2763
|
this.onBoxResize = (payload) => {
|
@@ -11688,7 +11688,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
11688
11688
|
const _WindowManager = class extends whiteWebSdk.InvisiblePlugin {
|
11689
11689
|
constructor(context) {
|
11690
11690
|
super(context);
|
11691
|
-
this.version = "1.0.0-canary.
|
11691
|
+
this.version = "1.0.0-canary.52";
|
11692
11692
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.1.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.3.3", "@netless/app-plyr": "0.2.2", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vite-plugin-dts": "^1.2.1", "vitest": "^0.18.0", "white-web-sdk": "2.16.26" } };
|
11693
11693
|
this.emitter = callbacks;
|
11694
11694
|
this.viewMode = whiteWebSdk.ViewMode.Broadcaster;
|
package/dist/index.es.js
CHANGED
@@ -2749,8 +2749,8 @@ class AppManager {
|
|
2749
2749
|
this.onBoxMove = (payload) => {
|
2750
2750
|
this.dispatchInternalEvent(Events.AppMove, payload);
|
2751
2751
|
this.store.updateAppState(payload.appId, AppAttributes.Position, {
|
2752
|
-
x: payload.x,
|
2753
|
-
y: payload.y
|
2752
|
+
x: isNaN(payload.x) ? 0 : payload.x,
|
2753
|
+
y: isNaN(payload.y) ? 0 : payload.y
|
2754
2754
|
});
|
2755
2755
|
};
|
2756
2756
|
this.onBoxResize = (payload) => {
|
@@ -11681,7 +11681,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
11681
11681
|
const _WindowManager = class extends InvisiblePlugin {
|
11682
11682
|
constructor(context) {
|
11683
11683
|
super(context);
|
11684
|
-
this.version = "1.0.0-canary.
|
11684
|
+
this.version = "1.0.0-canary.52";
|
11685
11685
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.1.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.3.3", "@netless/app-plyr": "0.2.2", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vite-plugin-dts": "^1.2.1", "vitest": "^0.18.0", "white-web-sdk": "2.16.26" } };
|
11686
11686
|
this.emitter = callbacks;
|
11687
11687
|
this.viewMode = ViewMode.Broadcaster;
|
package/dist/index.umd.js
CHANGED
@@ -2750,8 +2750,8 @@ var __objRest = (source, exclude) => {
|
|
2750
2750
|
this.onBoxMove = (payload) => {
|
2751
2751
|
this.dispatchInternalEvent(Events.AppMove, payload);
|
2752
2752
|
this.store.updateAppState(payload.appId, AppAttributes.Position, {
|
2753
|
-
x: payload.x,
|
2754
|
-
y: payload.y
|
2753
|
+
x: isNaN(payload.x) ? 0 : payload.x,
|
2754
|
+
y: isNaN(payload.y) ? 0 : payload.y
|
2755
2755
|
});
|
2756
2756
|
};
|
2757
2757
|
this.onBoxResize = (payload) => {
|
@@ -11682,7 +11682,7 @@ var __objRest = (source, exclude) => {
|
|
11682
11682
|
const _WindowManager = class extends whiteWebSdk.InvisiblePlugin {
|
11683
11683
|
constructor(context) {
|
11684
11684
|
super(context);
|
11685
|
-
this.version = "1.0.0-canary.
|
11685
|
+
this.version = "1.0.0-canary.52";
|
11686
11686
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.1.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.3.3", "@netless/app-plyr": "0.2.2", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.5.3", "vite-plugin-dts": "^1.2.1", "vitest": "^0.18.0", "white-web-sdk": "2.16.26" } };
|
11687
11687
|
this.emitter = callbacks;
|
11688
11688
|
this.viewMode = whiteWebSdk.ViewMode.Broadcaster;
|
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
@@ -376,8 +376,8 @@ export class AppManager {
|
|
376
376
|
private onBoxMove = (payload: BoxMovePayload) => {
|
377
377
|
this.dispatchInternalEvent(Events.AppMove, payload);
|
378
378
|
this.store.updateAppState(payload.appId, AppAttributes.Position, {
|
379
|
-
x: payload.x,
|
380
|
-
y: payload.y,
|
379
|
+
x: isNaN(payload.x) ? 0 : payload.x,
|
380
|
+
y: isNaN(payload.y) ? 0 : payload.y,
|
381
381
|
});
|
382
382
|
};
|
383
383
|
|
package/src/BoxManager.ts
CHANGED
@@ -355,7 +355,7 @@ export class BoxManager {
|
|
355
355
|
public moveBox({ appId, x, y }: MoveBoxParams): void {
|
356
356
|
const box = this.getBox(appId);
|
357
357
|
if (box) {
|
358
|
-
box._intrinsicCoord$.setValue({ x, y}, true);
|
358
|
+
box._intrinsicCoord$.setValue({ x, y }, true);
|
359
359
|
}
|
360
360
|
}
|
361
361
|
|