@thestatic-tv/dcl-sdk 2.2.5 → 2.2.6

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.js CHANGED
@@ -1428,7 +1428,8 @@ var ChatUIModule = class {
1428
1428
  width: UI_DIMENSIONS.chat.width,
1429
1429
  height: UI_DIMENSIONS.chat.height,
1430
1430
  positionType: "absolute",
1431
- ...positionStyle,
1431
+ position: positionStyle,
1432
+ // Must be nested object, not spread!
1432
1433
  flexDirection: "column",
1433
1434
  border: { top: 2, bottom: 2, left: 2, right: 2 },
1434
1435
  borderColor: THEME.colors.panelBorder
@@ -1748,12 +1749,12 @@ var ChatUIModule = class {
1748
1749
  console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1749
1750
  switch (this.position) {
1750
1751
  case "left":
1751
- return { bottom: 55, left: 20 };
1752
+ return { top: 50, left: 10 };
1752
1753
  case "center":
1753
- return { bottom: 55, left: 400 };
1754
+ return { top: 50, left: 400 };
1754
1755
  case "right":
1755
1756
  default:
1756
- return { bottom: 55, right: 20 };
1757
+ return { top: 50, right: 10 };
1757
1758
  }
1758
1759
  }
1759
1760
  renderHeader() {
package/dist/index.mjs CHANGED
@@ -1388,7 +1388,8 @@ var ChatUIModule = class {
1388
1388
  width: UI_DIMENSIONS.chat.width,
1389
1389
  height: UI_DIMENSIONS.chat.height,
1390
1390
  positionType: "absolute",
1391
- ...positionStyle,
1391
+ position: positionStyle,
1392
+ // Must be nested object, not spread!
1392
1393
  flexDirection: "column",
1393
1394
  border: { top: 2, bottom: 2, left: 2, right: 2 },
1394
1395
  borderColor: THEME.colors.panelBorder
@@ -1708,12 +1709,12 @@ var ChatUIModule = class {
1708
1709
  console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1709
1710
  switch (this.position) {
1710
1711
  case "left":
1711
- return { bottom: 55, left: 20 };
1712
+ return { top: 50, left: 10 };
1712
1713
  case "center":
1713
- return { bottom: 55, left: 400 };
1714
+ return { top: 50, left: 400 };
1714
1715
  case "right":
1715
1716
  default:
1716
- return { bottom: 55, right: 20 };
1717
+ return { top: 50, right: 10 };
1717
1718
  }
1718
1719
  }
1719
1720
  renderHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Connect your Decentraland scene to thestatic.tv - full channel lineup, metrics tracking, and interactions",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",