@thestatic-tv/dcl-sdk 2.2.5 → 2.2.7

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
@@ -595,12 +595,13 @@ var THEME = {
595
595
  }
596
596
  };
597
597
  var UI_DIMENSIONS = {
598
- // Guide UI
598
+ // Guide UI - positioned to the left of chat (chat is 380px wide at right:20)
599
599
  guide: {
600
600
  width: 900,
601
601
  height: "55%",
602
602
  bottom: 55,
603
- right: 20,
603
+ right: 410,
604
+ // 20 + 380 (chat width) + 10 (gap)
604
605
  sidebar: {
605
606
  width: 300,
606
607
  buttonHeight: 42,
@@ -1351,7 +1352,8 @@ var GuideUIModule = class {
1351
1352
  return import_react_ecs2.default.createElement(import_react_ecs2.UiEntity, {
1352
1353
  uiTransform: {
1353
1354
  positionType: "absolute",
1354
- position: { right: 20, bottom: 10 },
1355
+ position: { right: 130, bottom: 10 },
1356
+ // To the left of CHAT button
1355
1357
  width: this.s(100),
1356
1358
  height: this.s(45),
1357
1359
  justifyContent: "center",
@@ -1428,7 +1430,8 @@ var ChatUIModule = class {
1428
1430
  width: UI_DIMENSIONS.chat.width,
1429
1431
  height: UI_DIMENSIONS.chat.height,
1430
1432
  positionType: "absolute",
1431
- ...positionStyle,
1433
+ position: positionStyle,
1434
+ // Must be nested object, not spread!
1432
1435
  flexDirection: "column",
1433
1436
  border: { top: 2, bottom: 2, left: 2, right: 2 },
1434
1437
  borderColor: THEME.colors.panelBorder
@@ -1450,9 +1453,7 @@ var ChatUIModule = class {
1450
1453
  };
1451
1454
  this.client = client;
1452
1455
  this.config = config;
1453
- this.position = config.position || "right";
1454
1456
  this.fontScale = config.fontScale || 1;
1455
- console.log("[StaticTV Chat] Initialized with position:", this.position);
1456
1457
  }
1457
1458
  /**
1458
1459
  * Initialize the chat system
@@ -1745,27 +1746,14 @@ var ChatUIModule = class {
1745
1746
  }
1746
1747
  }
1747
1748
  getPositionStyle() {
1748
- console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1749
- switch (this.position) {
1750
- case "left":
1751
- return { bottom: 55, left: 20 };
1752
- case "center":
1753
- return { bottom: 55, left: 400 };
1754
- case "right":
1755
- default:
1756
- return { bottom: 55, right: 20 };
1757
- }
1749
+ return { bottom: 55, right: 20 };
1758
1750
  }
1759
1751
  renderHeader() {
1760
1752
  return PanelHeader({
1761
1753
  title: "LIVE CHAT",
1762
1754
  fontSize: 14,
1763
1755
  fontScale: this.fontScale,
1764
- showPositionControls: true,
1765
- position: this.position,
1766
- onPositionChange: (pos) => {
1767
- this.position = pos;
1768
- },
1756
+ showPositionControls: false,
1769
1757
  showFontControls: true,
1770
1758
  onFontScaleUp: () => {
1771
1759
  this.fontScale = Math.min(1.4, this.fontScale + 0.1);
@@ -2150,8 +2138,8 @@ var ChatUIModule = class {
2150
2138
  return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
2151
2139
  uiTransform: {
2152
2140
  positionType: "absolute",
2153
- position: { right: 130, bottom: 10 },
2154
- // To the left of GUIDE button
2141
+ position: { right: 20, bottom: 10 },
2142
+ // Far right corner
2155
2143
  width: 100,
2156
2144
  height: 45,
2157
2145
  justifyContent: "center",
package/dist/index.mjs CHANGED
@@ -555,12 +555,13 @@ var THEME = {
555
555
  }
556
556
  };
557
557
  var UI_DIMENSIONS = {
558
- // Guide UI
558
+ // Guide UI - positioned to the left of chat (chat is 380px wide at right:20)
559
559
  guide: {
560
560
  width: 900,
561
561
  height: "55%",
562
562
  bottom: 55,
563
- right: 20,
563
+ right: 410,
564
+ // 20 + 380 (chat width) + 10 (gap)
564
565
  sidebar: {
565
566
  width: 300,
566
567
  buttonHeight: 42,
@@ -1311,7 +1312,8 @@ var GuideUIModule = class {
1311
1312
  return ReactEcs2.createElement(UiEntity2, {
1312
1313
  uiTransform: {
1313
1314
  positionType: "absolute",
1314
- position: { right: 20, bottom: 10 },
1315
+ position: { right: 130, bottom: 10 },
1316
+ // To the left of CHAT button
1315
1317
  width: this.s(100),
1316
1318
  height: this.s(45),
1317
1319
  justifyContent: "center",
@@ -1388,7 +1390,8 @@ var ChatUIModule = class {
1388
1390
  width: UI_DIMENSIONS.chat.width,
1389
1391
  height: UI_DIMENSIONS.chat.height,
1390
1392
  positionType: "absolute",
1391
- ...positionStyle,
1393
+ position: positionStyle,
1394
+ // Must be nested object, not spread!
1392
1395
  flexDirection: "column",
1393
1396
  border: { top: 2, bottom: 2, left: 2, right: 2 },
1394
1397
  borderColor: THEME.colors.panelBorder
@@ -1410,9 +1413,7 @@ var ChatUIModule = class {
1410
1413
  };
1411
1414
  this.client = client;
1412
1415
  this.config = config;
1413
- this.position = config.position || "right";
1414
1416
  this.fontScale = config.fontScale || 1;
1415
- console.log("[StaticTV Chat] Initialized with position:", this.position);
1416
1417
  }
1417
1418
  /**
1418
1419
  * Initialize the chat system
@@ -1705,27 +1706,14 @@ var ChatUIModule = class {
1705
1706
  }
1706
1707
  }
1707
1708
  getPositionStyle() {
1708
- console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1709
- switch (this.position) {
1710
- case "left":
1711
- return { bottom: 55, left: 20 };
1712
- case "center":
1713
- return { bottom: 55, left: 400 };
1714
- case "right":
1715
- default:
1716
- return { bottom: 55, right: 20 };
1717
- }
1709
+ return { bottom: 55, right: 20 };
1718
1710
  }
1719
1711
  renderHeader() {
1720
1712
  return PanelHeader({
1721
1713
  title: "LIVE CHAT",
1722
1714
  fontSize: 14,
1723
1715
  fontScale: this.fontScale,
1724
- showPositionControls: true,
1725
- position: this.position,
1726
- onPositionChange: (pos) => {
1727
- this.position = pos;
1728
- },
1716
+ showPositionControls: false,
1729
1717
  showFontControls: true,
1730
1718
  onFontScaleUp: () => {
1731
1719
  this.fontScale = Math.min(1.4, this.fontScale + 0.1);
@@ -2110,8 +2098,8 @@ var ChatUIModule = class {
2110
2098
  return ReactEcs3.createElement(UiEntity3, {
2111
2099
  uiTransform: {
2112
2100
  positionType: "absolute",
2113
- position: { right: 130, bottom: 10 },
2114
- // To the left of GUIDE button
2101
+ position: { right: 20, bottom: 10 },
2102
+ // Far right corner
2115
2103
  width: 100,
2116
2104
  height: 45,
2117
2105
  justifyContent: "center",
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.7",
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",