@thestatic-tv/dcl-sdk 2.2.1 → 2.2.3
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 -8
- package/dist/index.mjs +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -616,10 +616,10 @@ var UI_DIMENSIONS = {
|
|
|
616
616
|
padding: 15
|
|
617
617
|
}
|
|
618
618
|
},
|
|
619
|
-
// Chat UI
|
|
619
|
+
// Chat UI - match m1d-hq-lifted dimensions
|
|
620
620
|
chat: {
|
|
621
|
-
width:
|
|
622
|
-
height:
|
|
621
|
+
width: 380,
|
|
622
|
+
height: 580,
|
|
623
623
|
bottom: 55,
|
|
624
624
|
right: 20,
|
|
625
625
|
messagesPerPage: 5,
|
|
@@ -1736,16 +1736,14 @@ var ChatUIModule = class {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
getPositionStyle() {
|
|
1739
|
-
const base = { bottom: UI_DIMENSIONS.chat.bottom };
|
|
1740
1739
|
switch (this.position) {
|
|
1741
1740
|
case "left":
|
|
1742
|
-
return {
|
|
1741
|
+
return { top: 50, left: 10 };
|
|
1743
1742
|
case "center":
|
|
1744
|
-
return {
|
|
1745
|
-
// Approximate center
|
|
1743
|
+
return { top: 50, left: 400 };
|
|
1746
1744
|
case "right":
|
|
1747
1745
|
default:
|
|
1748
|
-
return {
|
|
1746
|
+
return { top: 50, right: 10 };
|
|
1749
1747
|
}
|
|
1750
1748
|
}
|
|
1751
1749
|
renderHeader() {
|
|
@@ -2315,6 +2313,9 @@ var StaticTVClient = class {
|
|
|
2315
2313
|
this.guideUI = new GuideUIModule(this, this.config.guideUI);
|
|
2316
2314
|
this.chatUI = new ChatUIModule(this, this.config.chatUI);
|
|
2317
2315
|
this._fullFeaturesEnabled = true;
|
|
2316
|
+
this.chatUI.init().catch((err) => {
|
|
2317
|
+
this.log(`Chat init failed: ${err}`);
|
|
2318
|
+
});
|
|
2318
2319
|
this.log("Full features enabled (guide, chat, heartbeat, interactions)");
|
|
2319
2320
|
}
|
|
2320
2321
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -576,10 +576,10 @@ var UI_DIMENSIONS = {
|
|
|
576
576
|
padding: 15
|
|
577
577
|
}
|
|
578
578
|
},
|
|
579
|
-
// Chat UI
|
|
579
|
+
// Chat UI - match m1d-hq-lifted dimensions
|
|
580
580
|
chat: {
|
|
581
|
-
width:
|
|
582
|
-
height:
|
|
581
|
+
width: 380,
|
|
582
|
+
height: 580,
|
|
583
583
|
bottom: 55,
|
|
584
584
|
right: 20,
|
|
585
585
|
messagesPerPage: 5,
|
|
@@ -1696,16 +1696,14 @@ var ChatUIModule = class {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
1698
|
getPositionStyle() {
|
|
1699
|
-
const base = { bottom: UI_DIMENSIONS.chat.bottom };
|
|
1700
1699
|
switch (this.position) {
|
|
1701
1700
|
case "left":
|
|
1702
|
-
return {
|
|
1701
|
+
return { top: 50, left: 10 };
|
|
1703
1702
|
case "center":
|
|
1704
|
-
return {
|
|
1705
|
-
// Approximate center
|
|
1703
|
+
return { top: 50, left: 400 };
|
|
1706
1704
|
case "right":
|
|
1707
1705
|
default:
|
|
1708
|
-
return {
|
|
1706
|
+
return { top: 50, right: 10 };
|
|
1709
1707
|
}
|
|
1710
1708
|
}
|
|
1711
1709
|
renderHeader() {
|
|
@@ -2275,6 +2273,9 @@ var StaticTVClient = class {
|
|
|
2275
2273
|
this.guideUI = new GuideUIModule(this, this.config.guideUI);
|
|
2276
2274
|
this.chatUI = new ChatUIModule(this, this.config.chatUI);
|
|
2277
2275
|
this._fullFeaturesEnabled = true;
|
|
2276
|
+
this.chatUI.init().catch((err) => {
|
|
2277
|
+
this.log(`Chat init failed: ${err}`);
|
|
2278
|
+
});
|
|
2278
2279
|
this.log("Full features enabled (guide, chat, heartbeat, interactions)");
|
|
2279
2280
|
}
|
|
2280
2281
|
/**
|
package/package.json
CHANGED