@thestatic-tv/dcl-sdk 2.2.6 → 2.2.8

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",
@@ -1380,8 +1382,8 @@ var import_SignedFetch = require("~system/SignedFetch");
1380
1382
  var import_players = require("@dcl/sdk/players");
1381
1383
  var import_RestrictedActions2 = require("~system/RestrictedActions");
1382
1384
  var FIREBASE_API_KEY = "AIzaSyCX5jViDWUSagUmAX7S4OXgXyJZ9shaC5Y";
1383
- var POLL_INTERVAL_ACTIVE = 2500;
1384
- var POLL_INTERVAL_PASSIVE = 2e4;
1385
+ var POLL_INTERVAL_ACTIVE = 5e3;
1386
+ var POLL_INTERVAL_PASSIVE = 3e4;
1385
1387
  var ChatUIModule = class {
1386
1388
  constructor(client, config = {}) {
1387
1389
  // Visibility state
@@ -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
- console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
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: true,
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: 130, bottom: 10 },
2155
- // To the left of GUIDE button
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: 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",
@@ -1340,8 +1342,8 @@ import { signedFetch } from "~system/SignedFetch";
1340
1342
  import { getPlayer } from "@dcl/sdk/players";
1341
1343
  import { openExternalUrl as openExternalUrl2 } from "~system/RestrictedActions";
1342
1344
  var FIREBASE_API_KEY = "AIzaSyCX5jViDWUSagUmAX7S4OXgXyJZ9shaC5Y";
1343
- var POLL_INTERVAL_ACTIVE = 2500;
1344
- var POLL_INTERVAL_PASSIVE = 2e4;
1345
+ var POLL_INTERVAL_ACTIVE = 5e3;
1346
+ var POLL_INTERVAL_PASSIVE = 3e4;
1345
1347
  var ChatUIModule = class {
1346
1348
  constructor(client, config = {}) {
1347
1349
  // Visibility state
@@ -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
- console.log("[StaticTV Chat] getPositionStyle called, position:", this.position);
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: true,
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: 130, bottom: 10 },
2115
- // To the left of GUIDE button
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
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",