pxt-core 8.2.1 → 8.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/built/backendutils.js +3 -3
- package/built/gdb.js +3 -3
- package/built/pxt.js +236 -97
- package/built/pxtblockly.js +21 -1
- package/built/pxtblocks.d.ts +1 -0
- package/built/pxtblocks.js +21 -1
- package/built/pxteditor.js +2 -1
- package/built/pxtlib.d.ts +1 -0
- package/built/pxtlib.js +105 -9
- package/built/pxtrunner.d.ts +1 -0
- package/built/pxtrunner.js +1 -0
- package/built/pxtsim.d.ts +2 -1
- package/built/pxtsim.js +131 -88
- package/built/target.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtblockly.js +1 -1
- package/built/web/pxtblocks.js +1 -1
- package/built/web/pxteditor.js +1 -1
- package/built/web/pxtembed.js +2 -2
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtrunner.js +1 -1
- package/built/web/pxtsim.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/package.json +1 -1
- package/theme/tutorial.less +8 -0
- package/webapp/public/run.html +4 -2
package/package.json
CHANGED
package/theme/tutorial.less
CHANGED
|
@@ -221,6 +221,14 @@ body#docs.tutorial {
|
|
|
221
221
|
width: 100%;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
.ui.modal {
|
|
225
|
+
.ams-embed, .yt-embed {
|
|
226
|
+
height: 30rem;
|
|
227
|
+
width: 80%;
|
|
228
|
+
max-height: 50vh;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
224
232
|
@media only screen and (min-height: 400px) {
|
|
225
233
|
.hintdialog .ui.segment .blocklyPreview,
|
|
226
234
|
.tutorialhint .ui.segment .blocklyPreview,
|
package/webapp/public/run.html
CHANGED
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
var deps = /deps(?:[:=])([^&?]+)/i.exec(window.location.href);
|
|
116
116
|
var prebuiltSimJs = /prebuilt(?:[:=])1/i.test(window.location.href);
|
|
117
117
|
var single = !!/single(?:[:=])1/i.test(window.location.href);
|
|
118
|
+
var hideSimButtons = !!/hideSimButtons(?:[:=])1/i.test(window.location.href);
|
|
118
119
|
var server = !!/server(?:[:=])1/i.test(window.location.href);
|
|
119
120
|
var mpRole = /[\&\?]mp=(server|client)/i.exec(window.location.href)?.[1]?.toLowerCase();
|
|
120
|
-
|
|
121
121
|
var codeFromSrc = /code(?:[:=])([^&?]+)/i.exec(window.location.href);
|
|
122
122
|
var codeFromData = undefined;
|
|
123
123
|
var assetJsonFromData = undefined;
|
|
@@ -189,7 +189,8 @@
|
|
|
189
189
|
light: light,
|
|
190
190
|
fullScreen: fullScreen,
|
|
191
191
|
builtJsInfo: builtSimJs,
|
|
192
|
-
single: single
|
|
192
|
+
single: single,
|
|
193
|
+
hideSimButtons: hideSimButtons
|
|
193
194
|
};
|
|
194
195
|
console.log('simulating project')
|
|
195
196
|
pxt.runner.simulateAsync(sims, options).then(function() {
|
|
@@ -245,6 +246,7 @@
|
|
|
245
246
|
dependencies: deps ? decodeURIComponent(deps[1]).split(",") : undefined,
|
|
246
247
|
builtJsInfo: builtSimJs,
|
|
247
248
|
single: single,
|
|
249
|
+
hideSimButtons: hideSimButtons,
|
|
248
250
|
autofocus: autofocus
|
|
249
251
|
};
|
|
250
252
|
console.log('simulating script')
|