@thestatic-tv/dcl-sdk 2.2.6 → 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 +9 -22
- package/dist/index.mjs +9 -22
- package/package.json +1 -1
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:
|
|
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:
|
|
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",
|
|
@@ -1451,9 +1453,7 @@ var ChatUIModule = class {
|
|
|
1451
1453
|
};
|
|
1452
1454
|
this.client = client;
|
|
1453
1455
|
this.config = config;
|
|
1454
|
-
this.position = config.position || "right";
|
|
1455
1456
|
this.fontScale = config.fontScale || 1;
|
|
1456
|
-
console.log("[StaticTV Chat] Initialized with position:", this.position);
|
|
1457
1457
|
}
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Initialize the chat system
|
|
@@ -1746,27 +1746,14 @@ var ChatUIModule = class {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
getPositionStyle() {
|
|
1749
|
-
|
|
1750
|
-
switch (this.position) {
|
|
1751
|
-
case "left":
|
|
1752
|
-
return { top: 50, left: 10 };
|
|
1753
|
-
case "center":
|
|
1754
|
-
return { top: 50, left: 400 };
|
|
1755
|
-
case "right":
|
|
1756
|
-
default:
|
|
1757
|
-
return { top: 50, right: 10 };
|
|
1758
|
-
}
|
|
1749
|
+
return { bottom: 55, right: 20 };
|
|
1759
1750
|
}
|
|
1760
1751
|
renderHeader() {
|
|
1761
1752
|
return PanelHeader({
|
|
1762
1753
|
title: "LIVE CHAT",
|
|
1763
1754
|
fontSize: 14,
|
|
1764
1755
|
fontScale: this.fontScale,
|
|
1765
|
-
showPositionControls:
|
|
1766
|
-
position: this.position,
|
|
1767
|
-
onPositionChange: (pos) => {
|
|
1768
|
-
this.position = pos;
|
|
1769
|
-
},
|
|
1756
|
+
showPositionControls: false,
|
|
1770
1757
|
showFontControls: true,
|
|
1771
1758
|
onFontScaleUp: () => {
|
|
1772
1759
|
this.fontScale = Math.min(1.4, this.fontScale + 0.1);
|
|
@@ -2151,8 +2138,8 @@ var ChatUIModule = class {
|
|
|
2151
2138
|
return import_react_ecs3.default.createElement(import_react_ecs3.UiEntity, {
|
|
2152
2139
|
uiTransform: {
|
|
2153
2140
|
positionType: "absolute",
|
|
2154
|
-
position: { right:
|
|
2155
|
-
//
|
|
2141
|
+
position: { right: 20, bottom: 10 },
|
|
2142
|
+
// Far right corner
|
|
2156
2143
|
width: 100,
|
|
2157
2144
|
height: 45,
|
|
2158
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:
|
|
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:
|
|
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",
|
|
@@ -1411,9 +1413,7 @@ var ChatUIModule = class {
|
|
|
1411
1413
|
};
|
|
1412
1414
|
this.client = client;
|
|
1413
1415
|
this.config = config;
|
|
1414
|
-
this.position = config.position || "right";
|
|
1415
1416
|
this.fontScale = config.fontScale || 1;
|
|
1416
|
-
console.log("[StaticTV Chat] Initialized with position:", this.position);
|
|
1417
1417
|
}
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Initialize the chat system
|
|
@@ -1706,27 +1706,14 @@ var ChatUIModule = class {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
1708
|
getPositionStyle() {
|
|
1709
|
-
|
|
1710
|
-
switch (this.position) {
|
|
1711
|
-
case "left":
|
|
1712
|
-
return { top: 50, left: 10 };
|
|
1713
|
-
case "center":
|
|
1714
|
-
return { top: 50, left: 400 };
|
|
1715
|
-
case "right":
|
|
1716
|
-
default:
|
|
1717
|
-
return { top: 50, right: 10 };
|
|
1718
|
-
}
|
|
1709
|
+
return { bottom: 55, right: 20 };
|
|
1719
1710
|
}
|
|
1720
1711
|
renderHeader() {
|
|
1721
1712
|
return PanelHeader({
|
|
1722
1713
|
title: "LIVE CHAT",
|
|
1723
1714
|
fontSize: 14,
|
|
1724
1715
|
fontScale: this.fontScale,
|
|
1725
|
-
showPositionControls:
|
|
1726
|
-
position: this.position,
|
|
1727
|
-
onPositionChange: (pos) => {
|
|
1728
|
-
this.position = pos;
|
|
1729
|
-
},
|
|
1716
|
+
showPositionControls: false,
|
|
1730
1717
|
showFontControls: true,
|
|
1731
1718
|
onFontScaleUp: () => {
|
|
1732
1719
|
this.fontScale = Math.min(1.4, this.fontScale + 0.1);
|
|
@@ -2111,8 +2098,8 @@ var ChatUIModule = class {
|
|
|
2111
2098
|
return ReactEcs3.createElement(UiEntity3, {
|
|
2112
2099
|
uiTransform: {
|
|
2113
2100
|
positionType: "absolute",
|
|
2114
|
-
position: { right:
|
|
2115
|
-
//
|
|
2101
|
+
position: { right: 20, bottom: 10 },
|
|
2102
|
+
// Far right corner
|
|
2116
2103
|
width: 100,
|
|
2117
2104
|
height: 45,
|
|
2118
2105
|
justifyContent: "center",
|
package/package.json
CHANGED