pxt-microbit 5.1.31 → 5.1.33
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/editor.js +8 -1
- package/built/hexcache/{550de46760eef39e83ea3c0dedc62143c0a9edd89048a4431b7f7ebe24c138bc.hex → 96edf84d82a943dfeaf8eb875ebe2450269f35252929755be2403c8192dea82d.hex} +9648 -9658
- package/built/hexcache/{9cd7c257ed93c352013ffe57772f65d13ef250b70c03274784786a2e58201b00.hex → 9ea1973c7762e7aecdc31dadd748bc7388bec2467a2c209768755435de96c4ad.hex} +10223 -10233
- package/built/sim.js +3 -0
- package/built/target.js +1 -1
- package/built/target.json +1 -1
- package/built/targetlight.json +1 -1
- package/built/theme.json +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/docs/projects/7-seconds.md +5 -1
- package/docs/projects/coin-flipper.md +9 -5
- package/docs/projects/compass.md +27 -23
- package/docs/projects/dice.md +9 -5
- package/docs/projects/flashing-heart.md +4 -0
- package/docs/projects/hot-potato.md +4 -0
- package/docs/projects/level.md +3 -0
- package/docs/projects/love-meter.md +13 -9
- package/docs/projects/micro-chat.md +7 -3
- package/docs/projects/name-tag.md +9 -5
- package/docs/projects/plot-acceleration.md +4 -0
- package/docs/projects/rock-paper-scissors-v2.md +5 -1
- package/docs/projects/rock-paper-scissors.md +11 -7
- package/docs/projects/smiley-buttons.md +11 -8
- package/docs/projects/stopwatch.md +5 -1
- package/docs/projects/v2-blow-away.md +28 -88
- package/docs/projects/v2-cat-napping.md +51 -72
- package/docs/projects/v2-clap-lights.md +16 -50
- package/docs/projects/v2-countdown.md +15 -47
- package/docs/projects/v2-morse-chat.md +55 -60
- package/docs/projects/v2-pet-hamster.md +16 -50
- package/docs/tours/editor-tour.md +6 -0
- package/package.json +2 -2
- package/pxtarget.json +2 -1
- /package/built/hexcache/{90a043ede557d6bcd7ed8cc81981423d585f2a35ae7aece873225bfd39fd4e0f.hex → 282178dff5d09bc8cff46b9f8e533eb93524dadf852327e64d964046add37c4a.hex} +0 -0
- /package/built/hexcache/{fe0a5660d2c5ff7a892a8ee5a19cf1de8778194633607826adde4a6b48ff3835.hex → 8f2625e2eca3b2d07c3b3c15e47e92ae7a5652aaa937806bf27061b622aa3cbd.hex} +0 -0
package/built/editor.js
CHANGED
|
@@ -3054,9 +3054,16 @@ function cantImportAsync(project) {
|
|
|
3054
3054
|
}).then(() => project.openHome());
|
|
3055
3055
|
}
|
|
3056
3056
|
exports.cantImportAsync = cantImportAsync;
|
|
3057
|
-
async function showProgramTooLargeErrorAsync(variants, confirmAsync) {
|
|
3057
|
+
async function showProgramTooLargeErrorAsync(variants, confirmAsync, saveOnly) {
|
|
3058
3058
|
if (variants.length !== 2)
|
|
3059
3059
|
return undefined;
|
|
3060
|
+
if (pxt.packetio.isConnected() && pxt.packetio.deviceVariant() === "mbcodal" && !saveOnly) {
|
|
3061
|
+
// connected micro:bit V2 will be flashed; don't give warning dialog
|
|
3062
|
+
return {
|
|
3063
|
+
recompile: true,
|
|
3064
|
+
useVariants: ["mbcodal"]
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3060
3067
|
const choice = await confirmAsync({
|
|
3061
3068
|
header: lf("Oops, there was a problem downloading your code"),
|
|
3062
3069
|
body: lf("Great coding skills! Unfortunately, your program is too large to fit on a micro:bit V1😢. You can go back and try to make your program smaller, or you can download your program onto a micro:bit V2."),
|