@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 +9 -6
- package/dist/index.mjs +9 -6
- package/package.json +1 -1
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 =
|
|
909
|
-
isLive: v.isLive === true
|
|
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
|
-
|
|
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 {
|
|
1752
|
+
return { top: 50, left: 10 };
|
|
1750
1753
|
case "center":
|
|
1751
|
-
return {
|
|
1754
|
+
return { top: 50, left: 400 };
|
|
1752
1755
|
case "right":
|
|
1753
1756
|
default:
|
|
1754
|
-
return {
|
|
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 =
|
|
869
|
-
isLive: v.isLive === true
|
|
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
|
-
|
|
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 {
|
|
1712
|
+
return { top: 50, left: 10 };
|
|
1710
1713
|
case "center":
|
|
1711
|
-
return {
|
|
1714
|
+
return { top: 50, left: 400 };
|
|
1712
1715
|
case "right":
|
|
1713
1716
|
default:
|
|
1714
|
-
return {
|
|
1717
|
+
return { top: 50, right: 10 };
|
|
1715
1718
|
}
|
|
1716
1719
|
}
|
|
1717
1720
|
renderHeader() {
|
package/package.json
CHANGED