pxt-core 12.2.18 → 12.2.20
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/built/backendutils.js +6 -1
- package/built/pxt.js +8 -3
- package/built/pxtlib.js +6 -1
- package/built/pxtsim.js +2 -2
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtsim.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/react-common-authcode.css +1 -1
- package/built/web/react-common-multiplayer.css +1 -1
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlreact-common-authcode.css +1 -1
- package/built/web/rtlreact-common-multiplayer.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/teachertool/css/{main.ba6d409c.css → main.c9dcf1cb.css} +1 -1
- package/built/web/teachertool/js/{main.ce0508ab.js → main.e5a1624a.js} +2 -2
- package/package.json +1 -1
- package/react-common/styles/share/share.less +0 -6
- package/theme/home.less +5 -0
- package/theme/tutorial-sidebar.less +1 -1
- package/webapp/public/teachertool.html +1 -1
package/built/backendutils.js
CHANGED
|
@@ -1554,7 +1554,7 @@ My links
|
|
|
1554
1554
|
const videoId = decodeURIComponent(videoContainer.getAttribute("data-youtube"));
|
|
1555
1555
|
const iframe = document.createElement("iframe");
|
|
1556
1556
|
iframe.className = "yt-embed";
|
|
1557
|
-
const rawUrl = `https://www.youtube.com/embed/${videoId}`;
|
|
1557
|
+
const rawUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;
|
|
1558
1558
|
let lang = (_b = (_a = pxt.appTarget.appTheme) === null || _a === void 0 ? void 0 : _a.defaultLocale) !== null && _b !== void 0 ? _b : "en";
|
|
1559
1559
|
let url = new URL(rawUrl);
|
|
1560
1560
|
if (tickEvent) {
|
|
@@ -1564,11 +1564,16 @@ My links
|
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
url.searchParams.append("hl", lang);
|
|
1567
|
+
url.searchParams.append("rel", "0");
|
|
1568
|
+
url.searchParams.append("modestbranding", "1");
|
|
1569
|
+
url.searchParams.append("autoplay", "0");
|
|
1570
|
+
url.searchParams.append("showinfo", "0");
|
|
1567
1571
|
iframe.setAttribute("src", url.toString());
|
|
1568
1572
|
iframe.setAttribute("title", videoContainer.getAttribute("title") || "");
|
|
1569
1573
|
iframe.setAttribute("frameborder", "0");
|
|
1570
1574
|
iframe.setAttribute("allowFullScreen", "true");
|
|
1571
1575
|
iframe.setAttribute("allow", "autoplay; picture-in-picture");
|
|
1576
|
+
iframe.setAttribute("sandbox", "allow-same-origin allow-scripts");
|
|
1572
1577
|
videoContainer.textContent = "";
|
|
1573
1578
|
videoContainer.appendChild(iframe);
|
|
1574
1579
|
}
|
package/built/pxt.js
CHANGED
|
@@ -107764,7 +107764,7 @@ My links
|
|
|
107764
107764
|
const videoId = decodeURIComponent(videoContainer.getAttribute("data-youtube"));
|
|
107765
107765
|
const iframe = document.createElement("iframe");
|
|
107766
107766
|
iframe.className = "yt-embed";
|
|
107767
|
-
const rawUrl = `https://www.youtube.com/embed/${videoId}`;
|
|
107767
|
+
const rawUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;
|
|
107768
107768
|
let lang = (_b = (_a = pxt.appTarget.appTheme) === null || _a === void 0 ? void 0 : _a.defaultLocale) !== null && _b !== void 0 ? _b : "en";
|
|
107769
107769
|
let url = new URL(rawUrl);
|
|
107770
107770
|
if (tickEvent) {
|
|
@@ -107774,11 +107774,16 @@ My links
|
|
|
107774
107774
|
});
|
|
107775
107775
|
}
|
|
107776
107776
|
url.searchParams.append("hl", lang);
|
|
107777
|
+
url.searchParams.append("rel", "0");
|
|
107778
|
+
url.searchParams.append("modestbranding", "1");
|
|
107779
|
+
url.searchParams.append("autoplay", "0");
|
|
107780
|
+
url.searchParams.append("showinfo", "0");
|
|
107777
107781
|
iframe.setAttribute("src", url.toString());
|
|
107778
107782
|
iframe.setAttribute("title", videoContainer.getAttribute("title") || "");
|
|
107779
107783
|
iframe.setAttribute("frameborder", "0");
|
|
107780
107784
|
iframe.setAttribute("allowFullScreen", "true");
|
|
107781
107785
|
iframe.setAttribute("allow", "autoplay; picture-in-picture");
|
|
107786
|
+
iframe.setAttribute("sandbox", "allow-same-origin allow-scripts");
|
|
107782
107787
|
videoContainer.textContent = "";
|
|
107783
107788
|
videoContainer.appendChild(iframe);
|
|
107784
107789
|
}
|
|
@@ -160047,11 +160052,11 @@ var pxsim;
|
|
|
160047
160052
|
},
|
|
160048
160053
|
ampLFO: {
|
|
160049
160054
|
frequency: buf[offset + 21],
|
|
160050
|
-
amplitude: get16BitNumber(buf, 22)
|
|
160055
|
+
amplitude: get16BitNumber(buf, offset + 22)
|
|
160051
160056
|
},
|
|
160052
160057
|
pitchLFO: {
|
|
160053
160058
|
frequency: buf[offset + 24],
|
|
160054
|
-
amplitude: get16BitNumber(buf, 25)
|
|
160059
|
+
amplitude: get16BitNumber(buf, offset + 25)
|
|
160055
160060
|
},
|
|
160056
160061
|
octave: buf[offset + 27]
|
|
160057
160062
|
};
|
package/built/pxtlib.js
CHANGED
|
@@ -10043,7 +10043,7 @@ My links
|
|
|
10043
10043
|
const videoId = decodeURIComponent(videoContainer.getAttribute("data-youtube"));
|
|
10044
10044
|
const iframe = document.createElement("iframe");
|
|
10045
10045
|
iframe.className = "yt-embed";
|
|
10046
|
-
const rawUrl = `https://www.youtube.com/embed/${videoId}`;
|
|
10046
|
+
const rawUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;
|
|
10047
10047
|
let lang = (_b = (_a = pxt.appTarget.appTheme) === null || _a === void 0 ? void 0 : _a.defaultLocale) !== null && _b !== void 0 ? _b : "en";
|
|
10048
10048
|
let url = new URL(rawUrl);
|
|
10049
10049
|
if (tickEvent) {
|
|
@@ -10053,11 +10053,16 @@ My links
|
|
|
10053
10053
|
});
|
|
10054
10054
|
}
|
|
10055
10055
|
url.searchParams.append("hl", lang);
|
|
10056
|
+
url.searchParams.append("rel", "0");
|
|
10057
|
+
url.searchParams.append("modestbranding", "1");
|
|
10058
|
+
url.searchParams.append("autoplay", "0");
|
|
10059
|
+
url.searchParams.append("showinfo", "0");
|
|
10056
10060
|
iframe.setAttribute("src", url.toString());
|
|
10057
10061
|
iframe.setAttribute("title", videoContainer.getAttribute("title") || "");
|
|
10058
10062
|
iframe.setAttribute("frameborder", "0");
|
|
10059
10063
|
iframe.setAttribute("allowFullScreen", "true");
|
|
10060
10064
|
iframe.setAttribute("allow", "autoplay; picture-in-picture");
|
|
10065
|
+
iframe.setAttribute("sandbox", "allow-same-origin allow-scripts");
|
|
10061
10066
|
videoContainer.textContent = "";
|
|
10062
10067
|
videoContainer.appendChild(iframe);
|
|
10063
10068
|
}
|
package/built/pxtsim.js
CHANGED
|
@@ -9224,11 +9224,11 @@ var pxsim;
|
|
|
9224
9224
|
},
|
|
9225
9225
|
ampLFO: {
|
|
9226
9226
|
frequency: buf[offset + 21],
|
|
9227
|
-
amplitude: get16BitNumber(buf, 22)
|
|
9227
|
+
amplitude: get16BitNumber(buf, offset + 22)
|
|
9228
9228
|
},
|
|
9229
9229
|
pitchLFO: {
|
|
9230
9230
|
frequency: buf[offset + 24],
|
|
9231
|
-
amplitude: get16BitNumber(buf, 25)
|
|
9231
|
+
amplitude: get16BitNumber(buf, offset + 25)
|
|
9232
9232
|
},
|
|
9233
9233
|
octave: buf[offset + 27]
|
|
9234
9234
|
};
|