@inditextech/weave-sdk 0.9.0 → 0.9.1
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/sdk.cjs +1 -1
- package/dist/sdk.js +5 -6
- package/package.json +2 -2
package/dist/sdk.cjs
CHANGED
|
@@ -17839,7 +17839,7 @@ var WeaveRegisterManager = class {
|
|
|
17839
17839
|
|
|
17840
17840
|
//#endregion
|
|
17841
17841
|
//#region package.json
|
|
17842
|
-
var version = "0.9.
|
|
17842
|
+
var version = "0.9.1";
|
|
17843
17843
|
|
|
17844
17844
|
//#endregion
|
|
17845
17845
|
//#region src/managers/setup.ts
|
package/dist/sdk.js
CHANGED
|
@@ -15484,7 +15484,6 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
15484
15484
|
} else root._ = _;
|
|
15485
15485
|
}).call(exports);
|
|
15486
15486
|
} });
|
|
15487
|
-
var import_lodash$1 = __toESM(require_lodash());
|
|
15488
15487
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
15489
15488
|
|
|
15490
15489
|
//#endregion
|
|
@@ -15572,13 +15571,13 @@ var WeaveStore = class {
|
|
|
15572
15571
|
const newState = JSON.parse(JSON.stringify(this.getState()));
|
|
15573
15572
|
config.callbacks?.onStateChange?.(newState);
|
|
15574
15573
|
this.instance.emitEvent("onStateChange", newState);
|
|
15575
|
-
if (!this.isRoomLoaded && !(0, import_lodash
|
|
15574
|
+
if (!this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) {
|
|
15576
15575
|
this.instance.setupRenderer();
|
|
15577
15576
|
this.isRoomLoaded = true;
|
|
15578
15577
|
config.callbacks?.onRoomLoaded?.(this.isRoomLoaded);
|
|
15579
15578
|
this.instance.emitEvent("onRoomLoaded", this.isRoomLoaded);
|
|
15580
15579
|
}
|
|
15581
|
-
if (this.isRoomLoaded && !(0, import_lodash
|
|
15580
|
+
if (this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) this.instance.render();
|
|
15582
15581
|
});
|
|
15583
15582
|
}
|
|
15584
15583
|
canUndoStateStep() {
|
|
@@ -17840,7 +17839,7 @@ var WeaveRegisterManager = class {
|
|
|
17840
17839
|
|
|
17841
17840
|
//#endregion
|
|
17842
17841
|
//#region package.json
|
|
17843
|
-
var version = "0.9.
|
|
17842
|
+
var version = "0.9.1";
|
|
17844
17843
|
|
|
17845
17844
|
//#endregion
|
|
17846
17845
|
//#region src/managers/setup.ts
|
|
@@ -21413,7 +21412,7 @@ var WeaveConnectedUsersPlugin = class extends WeavePlugin {
|
|
|
21413
21412
|
newConnectedUsers[userInformation.name] = userInformation;
|
|
21414
21413
|
}
|
|
21415
21414
|
}
|
|
21416
|
-
if (!(0, import_lodash
|
|
21415
|
+
if (!(0, import_lodash.isEqual)(this.connectedUsers, newConnectedUsers)) this.instance.emitEvent("onConnectedUsersChange", newConnectedUsers);
|
|
21417
21416
|
this.connectedUsers = newConnectedUsers;
|
|
21418
21417
|
});
|
|
21419
21418
|
}
|
|
@@ -21600,7 +21599,7 @@ var WeaveUsersPointersPlugin = class extends WeavePlugin {
|
|
|
21600
21599
|
x: userPointer.actualPos.x,
|
|
21601
21600
|
y: userPointer.actualPos.y
|
|
21602
21601
|
};
|
|
21603
|
-
const hasChanged = !import_lodash
|
|
21602
|
+
const hasChanged = !import_lodash.default.isEqual(actualPos, oldPos);
|
|
21604
21603
|
const userPointNode = userPointerNode.getChildren((node) => node.getAttrs().id === "userPoint");
|
|
21605
21604
|
userPointNode[0]?.setAttrs({
|
|
21606
21605
|
radius: this.userPointerCircleRadius / stage.scaleX(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@inditextech/weave-types": "0.9.
|
|
46
|
+
"@inditextech/weave-types": "0.9.1",
|
|
47
47
|
"@syncedstore/core": "0.6.0",
|
|
48
48
|
"canvas": "3.1.0",
|
|
49
49
|
"konva": "9.3.20",
|