@lumiastream/ui 0.6.3 → 0.6.5
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 +20 -29
- package/dist/se-import.js +20 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4867,24 +4867,24 @@ var RESERVED_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
|
4867
4867
|
]);
|
|
4868
4868
|
var SE_LISTENER_TO_LUMIA_EVENTS = {
|
|
4869
4869
|
message: ["chat"],
|
|
4870
|
-
"tip-latest": ["alert"
|
|
4871
|
-
"merch-latest": ["alert"
|
|
4872
|
-
"subscriber-latest": ["alert"
|
|
4873
|
-
"subscriber-resub-latest": ["alert"
|
|
4874
|
-
"subscriber-gifted-latest": ["alert"
|
|
4875
|
-
"subscriber-bomb-latest": ["alert"
|
|
4876
|
-
"follower-latest": ["alert"
|
|
4877
|
-
"cheer-latest": ["alert"
|
|
4878
|
-
"raid-latest": ["alert"
|
|
4879
|
-
"host-latest": ["alert"
|
|
4880
|
-
"redemption-latest": ["alert"
|
|
4881
|
-
"hypetrain-start": ["alert"
|
|
4882
|
-
"hypetrain-level-progress": ["alert"
|
|
4883
|
-
"hypetrain-end": ["alert"
|
|
4884
|
-
"sponsor-latest": ["alert"
|
|
4885
|
-
"member-latest": ["alert"
|
|
4886
|
-
"superchat-latest": ["alert"
|
|
4887
|
-
"kappagen-launched": ["alert"
|
|
4870
|
+
"tip-latest": ["alert"],
|
|
4871
|
+
"merch-latest": ["alert"],
|
|
4872
|
+
"subscriber-latest": ["alert"],
|
|
4873
|
+
"subscriber-resub-latest": ["alert"],
|
|
4874
|
+
"subscriber-gifted-latest": ["alert"],
|
|
4875
|
+
"subscriber-bomb-latest": ["alert"],
|
|
4876
|
+
"follower-latest": ["alert"],
|
|
4877
|
+
"cheer-latest": ["alert"],
|
|
4878
|
+
"raid-latest": ["alert"],
|
|
4879
|
+
"host-latest": ["alert"],
|
|
4880
|
+
"redemption-latest": ["alert"],
|
|
4881
|
+
"hypetrain-start": ["alert"],
|
|
4882
|
+
"hypetrain-level-progress": ["alert"],
|
|
4883
|
+
"hypetrain-end": ["alert"],
|
|
4884
|
+
"sponsor-latest": ["alert"],
|
|
4885
|
+
"member-latest": ["alert"],
|
|
4886
|
+
"superchat-latest": ["alert"],
|
|
4887
|
+
"kappagen-launched": ["alert"]
|
|
4888
4888
|
};
|
|
4889
4889
|
function listenersToLumiaEvents(listeners, listener) {
|
|
4890
4890
|
const keys = /* @__PURE__ */ new Set();
|
|
@@ -4978,10 +4978,7 @@ function mapCustom(widget, ctx) {
|
|
|
4978
4978
|
);
|
|
4979
4979
|
const externalLoader = hasExternalScriptLoader(v.html, v.js);
|
|
4980
4980
|
const wantsChat = externalLoader || hasChatCommandFieldValue(fieldData);
|
|
4981
|
-
if (externalLoader)
|
|
4982
|
-
if (!eventsList.includes("alert")) eventsList.push("alert");
|
|
4983
|
-
if (!eventsList.includes("alert.trigger")) eventsList.push("alert.trigger");
|
|
4984
|
-
}
|
|
4981
|
+
if (externalLoader && !eventsList.includes("alert")) eventsList.push("alert");
|
|
4985
4982
|
if (wantsChat && !eventsList.includes("chat")) eventsList.push("chat");
|
|
4986
4983
|
const data = { ...fieldData ?? {} };
|
|
4987
4984
|
if (eventsList.length > 0) data.events = eventsList;
|
|
@@ -5831,13 +5828,7 @@ function mapTimer(widget, ctx) {
|
|
|
5831
5828
|
widget,
|
|
5832
5829
|
"timer",
|
|
5833
5830
|
{
|
|
5834
|
-
|
|
5835
|
-
// imported countdown doesn't render in Lumia's default Roboto/24px.
|
|
5836
|
-
// scaleWithContainer: SE renders the countdown at the literal font-size and lets
|
|
5837
|
-
// `widget { overflow:hidden }` clip the overflow (visually masked by the canvas-level
|
|
5838
|
-
// transform). Lumia has no equivalent clip on the layer, so a 150px font in a 162px
|
|
5839
|
-
// box overflows visibly. Opt the imported timer into Lumia's container-query auto-fit.
|
|
5840
|
-
css: { ...mapSeTextCssToModuleCss(widget), scaleWithContainer: true },
|
|
5831
|
+
css: mapSeTextCssToModuleCss(widget),
|
|
5841
5832
|
content: {
|
|
5842
5833
|
version: 1,
|
|
5843
5834
|
type: "countdown",
|
package/dist/se-import.js
CHANGED
|
@@ -1787,24 +1787,24 @@ var RESERVED_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
|
1787
1787
|
]);
|
|
1788
1788
|
var SE_LISTENER_TO_LUMIA_EVENTS = {
|
|
1789
1789
|
message: ["chat"],
|
|
1790
|
-
"tip-latest": ["alert"
|
|
1791
|
-
"merch-latest": ["alert"
|
|
1792
|
-
"subscriber-latest": ["alert"
|
|
1793
|
-
"subscriber-resub-latest": ["alert"
|
|
1794
|
-
"subscriber-gifted-latest": ["alert"
|
|
1795
|
-
"subscriber-bomb-latest": ["alert"
|
|
1796
|
-
"follower-latest": ["alert"
|
|
1797
|
-
"cheer-latest": ["alert"
|
|
1798
|
-
"raid-latest": ["alert"
|
|
1799
|
-
"host-latest": ["alert"
|
|
1800
|
-
"redemption-latest": ["alert"
|
|
1801
|
-
"hypetrain-start": ["alert"
|
|
1802
|
-
"hypetrain-level-progress": ["alert"
|
|
1803
|
-
"hypetrain-end": ["alert"
|
|
1804
|
-
"sponsor-latest": ["alert"
|
|
1805
|
-
"member-latest": ["alert"
|
|
1806
|
-
"superchat-latest": ["alert"
|
|
1807
|
-
"kappagen-launched": ["alert"
|
|
1790
|
+
"tip-latest": ["alert"],
|
|
1791
|
+
"merch-latest": ["alert"],
|
|
1792
|
+
"subscriber-latest": ["alert"],
|
|
1793
|
+
"subscriber-resub-latest": ["alert"],
|
|
1794
|
+
"subscriber-gifted-latest": ["alert"],
|
|
1795
|
+
"subscriber-bomb-latest": ["alert"],
|
|
1796
|
+
"follower-latest": ["alert"],
|
|
1797
|
+
"cheer-latest": ["alert"],
|
|
1798
|
+
"raid-latest": ["alert"],
|
|
1799
|
+
"host-latest": ["alert"],
|
|
1800
|
+
"redemption-latest": ["alert"],
|
|
1801
|
+
"hypetrain-start": ["alert"],
|
|
1802
|
+
"hypetrain-level-progress": ["alert"],
|
|
1803
|
+
"hypetrain-end": ["alert"],
|
|
1804
|
+
"sponsor-latest": ["alert"],
|
|
1805
|
+
"member-latest": ["alert"],
|
|
1806
|
+
"superchat-latest": ["alert"],
|
|
1807
|
+
"kappagen-launched": ["alert"]
|
|
1808
1808
|
};
|
|
1809
1809
|
function listenersToLumiaEvents(listeners, listener) {
|
|
1810
1810
|
const keys = /* @__PURE__ */ new Set();
|
|
@@ -1898,10 +1898,7 @@ function mapCustom(widget, ctx) {
|
|
|
1898
1898
|
);
|
|
1899
1899
|
const externalLoader = hasExternalScriptLoader(v.html, v.js);
|
|
1900
1900
|
const wantsChat = externalLoader || hasChatCommandFieldValue(fieldData);
|
|
1901
|
-
if (externalLoader)
|
|
1902
|
-
if (!eventsList.includes("alert")) eventsList.push("alert");
|
|
1903
|
-
if (!eventsList.includes("alert.trigger")) eventsList.push("alert.trigger");
|
|
1904
|
-
}
|
|
1901
|
+
if (externalLoader && !eventsList.includes("alert")) eventsList.push("alert");
|
|
1905
1902
|
if (wantsChat && !eventsList.includes("chat")) eventsList.push("chat");
|
|
1906
1903
|
const data = { ...fieldData ?? {} };
|
|
1907
1904
|
if (eventsList.length > 0) data.events = eventsList;
|
|
@@ -2751,13 +2748,7 @@ function mapTimer(widget, ctx) {
|
|
|
2751
2748
|
widget,
|
|
2752
2749
|
"timer",
|
|
2753
2750
|
{
|
|
2754
|
-
|
|
2755
|
-
// imported countdown doesn't render in Lumia's default Roboto/24px.
|
|
2756
|
-
// scaleWithContainer: SE renders the countdown at the literal font-size and lets
|
|
2757
|
-
// `widget { overflow:hidden }` clip the overflow (visually masked by the canvas-level
|
|
2758
|
-
// transform). Lumia has no equivalent clip on the layer, so a 150px font in a 162px
|
|
2759
|
-
// box overflows visibly. Opt the imported timer into Lumia's container-query auto-fit.
|
|
2760
|
-
css: { ...mapSeTextCssToModuleCss(widget), scaleWithContainer: true },
|
|
2751
|
+
css: mapSeTextCssToModuleCss(widget),
|
|
2761
2752
|
content: {
|
|
2762
2753
|
version: 1,
|
|
2763
2754
|
type: "countdown",
|