@thestatic-tv/dcl-sdk 2.2.4 → 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
@@ -905,8 +905,8 @@ var GuideUIModule = class {
905
905
  id: v.id || slug,
906
906
  name: v.name || v.title || "Unknown",
907
907
  src,
908
- // isLive = actually streaming live (not just a creator channel)
909
- isLive: v.isLive === true || src.includes("media.thestatic.tv"),
908
+ // isLive = ONLY true if backend says isLive:true (actually streaming)
909
+ isLive: v.isLive === true,
910
910
  // isCreator = creator channel (type === 'live' means creator, not actually live)
911
911
  isCreator: v.isCreator === true || v.type === "live",
912
912
  channelId: v.channelId || slug,
@@ -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
@@ -1452,6 +1453,7 @@ var ChatUIModule = class {
1452
1453
  this.config = config;
1453
1454
  this.position = config.position || "right";
1454
1455
  this.fontScale = config.fontScale || 1;
1456
+ console.log("[StaticTV Chat] Initialized with position:", this.position);
1455
1457
  }
1456
1458
  /**
1457
1459
  * Initialize the chat system
@@ -1744,14 +1746,15 @@ var ChatUIModule = class {
1744
1746
  }
1745
1747
  }
1746
1748
  getPositionStyle() {
1749
+ console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1747
1750
  switch (this.position) {
1748
1751
  case "left":
1749
- return { bottom: 55, left: 20 };
1752
+ return { top: 50, left: 10 };
1750
1753
  case "center":
1751
- return { bottom: 55, left: 400 };
1754
+ return { top: 50, left: 400 };
1752
1755
  case "right":
1753
1756
  default:
1754
- return { bottom: 55, right: 20 };
1757
+ return { top: 50, right: 10 };
1755
1758
  }
1756
1759
  }
1757
1760
  renderHeader() {
package/dist/index.mjs CHANGED
@@ -865,8 +865,8 @@ var GuideUIModule = class {
865
865
  id: v.id || slug,
866
866
  name: v.name || v.title || "Unknown",
867
867
  src,
868
- // isLive = actually streaming live (not just a creator channel)
869
- isLive: v.isLive === true || src.includes("media.thestatic.tv"),
868
+ // isLive = ONLY true if backend says isLive:true (actually streaming)
869
+ isLive: v.isLive === true,
870
870
  // isCreator = creator channel (type === 'live' means creator, not actually live)
871
871
  isCreator: v.isCreator === true || v.type === "live",
872
872
  channelId: v.channelId || slug,
@@ -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
@@ -1412,6 +1413,7 @@ var ChatUIModule = class {
1412
1413
  this.config = config;
1413
1414
  this.position = config.position || "right";
1414
1415
  this.fontScale = config.fontScale || 1;
1416
+ console.log("[StaticTV Chat] Initialized with position:", this.position);
1415
1417
  }
1416
1418
  /**
1417
1419
  * Initialize the chat system
@@ -1704,14 +1706,15 @@ var ChatUIModule = class {
1704
1706
  }
1705
1707
  }
1706
1708
  getPositionStyle() {
1709
+ console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
1707
1710
  switch (this.position) {
1708
1711
  case "left":
1709
- return { bottom: 55, left: 20 };
1712
+ return { top: 50, left: 10 };
1710
1713
  case "center":
1711
- return { bottom: 55, left: 400 };
1714
+ return { top: 50, left: 400 };
1712
1715
  case "right":
1713
1716
  default:
1714
- return { bottom: 55, right: 20 };
1717
+ return { top: 50, right: 10 };
1715
1718
  }
1716
1719
  }
1717
1720
  renderHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.2.4",
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",