@thestatic-tv/dcl-sdk 2.2.3 → 2.2.4

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
@@ -900,12 +900,15 @@ var GuideUIModule = class {
900
900
  if (data.videoMap) {
901
901
  for (const [slug, video] of Object.entries(data.videoMap)) {
902
902
  const v = video;
903
+ const src = v.src || v.liveStreamUrl || "";
903
904
  const mapped = {
904
905
  id: v.id || slug,
905
906
  name: v.name || v.title || "Unknown",
906
- src: v.src || v.liveStreamUrl || "",
907
- isLive: v.isLive === true || v.type === "live",
908
- isCreator: v.isCreator || v.type === "live",
907
+ src,
908
+ // isLive = actually streaming live (not just a creator channel)
909
+ isLive: v.isLive === true || src.includes("media.thestatic.tv"),
910
+ // isCreator = creator channel (type === 'live' means creator, not actually live)
911
+ isCreator: v.isCreator === true || v.type === "live",
909
912
  channelId: v.channelId || slug,
910
913
  duration: v.duration,
911
914
  requiresAuth: v.requiresAuth
@@ -919,6 +922,7 @@ var GuideUIModule = class {
919
922
  const playlists = [];
920
923
  if (data.featuredPlaylists) {
921
924
  for (const pl of data.featuredPlaylists) {
925
+ if (pl.name === "NODES") continue;
922
926
  playlists.push({
923
927
  name: pl.name,
924
928
  videos: (pl.videos || []).map((v) => ({
@@ -934,6 +938,10 @@ var GuideUIModule = class {
934
938
  });
935
939
  }
936
940
  }
941
+ const nodeVideos = videos.filter((v) => v.isCreator);
942
+ if (nodeVideos.length > 0) {
943
+ playlists.push({ name: "NODES", videos: nodeVideos });
944
+ }
937
945
  this.videos = videos;
938
946
  this.liveVideos = liveVideos;
939
947
  this.featuredPlaylists = playlists;
@@ -1738,12 +1746,12 @@ var ChatUIModule = class {
1738
1746
  getPositionStyle() {
1739
1747
  switch (this.position) {
1740
1748
  case "left":
1741
- return { top: 50, left: 10 };
1749
+ return { bottom: 55, left: 20 };
1742
1750
  case "center":
1743
- return { top: 50, left: 400 };
1751
+ return { bottom: 55, left: 400 };
1744
1752
  case "right":
1745
1753
  default:
1746
- return { top: 50, right: 10 };
1754
+ return { bottom: 55, right: 20 };
1747
1755
  }
1748
1756
  }
1749
1757
  renderHeader() {
package/dist/index.mjs CHANGED
@@ -860,12 +860,15 @@ var GuideUIModule = class {
860
860
  if (data.videoMap) {
861
861
  for (const [slug, video] of Object.entries(data.videoMap)) {
862
862
  const v = video;
863
+ const src = v.src || v.liveStreamUrl || "";
863
864
  const mapped = {
864
865
  id: v.id || slug,
865
866
  name: v.name || v.title || "Unknown",
866
- src: v.src || v.liveStreamUrl || "",
867
- isLive: v.isLive === true || v.type === "live",
868
- isCreator: v.isCreator || v.type === "live",
867
+ src,
868
+ // isLive = actually streaming live (not just a creator channel)
869
+ isLive: v.isLive === true || src.includes("media.thestatic.tv"),
870
+ // isCreator = creator channel (type === 'live' means creator, not actually live)
871
+ isCreator: v.isCreator === true || v.type === "live",
869
872
  channelId: v.channelId || slug,
870
873
  duration: v.duration,
871
874
  requiresAuth: v.requiresAuth
@@ -879,6 +882,7 @@ var GuideUIModule = class {
879
882
  const playlists = [];
880
883
  if (data.featuredPlaylists) {
881
884
  for (const pl of data.featuredPlaylists) {
885
+ if (pl.name === "NODES") continue;
882
886
  playlists.push({
883
887
  name: pl.name,
884
888
  videos: (pl.videos || []).map((v) => ({
@@ -894,6 +898,10 @@ var GuideUIModule = class {
894
898
  });
895
899
  }
896
900
  }
901
+ const nodeVideos = videos.filter((v) => v.isCreator);
902
+ if (nodeVideos.length > 0) {
903
+ playlists.push({ name: "NODES", videos: nodeVideos });
904
+ }
897
905
  this.videos = videos;
898
906
  this.liveVideos = liveVideos;
899
907
  this.featuredPlaylists = playlists;
@@ -1698,12 +1706,12 @@ var ChatUIModule = class {
1698
1706
  getPositionStyle() {
1699
1707
  switch (this.position) {
1700
1708
  case "left":
1701
- return { top: 50, left: 10 };
1709
+ return { bottom: 55, left: 20 };
1702
1710
  case "center":
1703
- return { top: 50, left: 400 };
1711
+ return { bottom: 55, left: 400 };
1704
1712
  case "right":
1705
1713
  default:
1706
- return { top: 50, right: 10 };
1714
+ return { bottom: 55, right: 20 };
1707
1715
  }
1708
1716
  }
1709
1717
  renderHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
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",