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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "8.2.1",
3
+ "version": "8.2.4",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -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,
@@ -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')