pxt-core 7.5.1 → 7.5.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.
Files changed (54) hide show
  1. package/built/cli.js +57 -5
  2. package/built/pxt.js +194 -11
  3. package/built/pxtblockly.js +714 -657
  4. package/built/pxtblocks.d.ts +7 -0
  5. package/built/pxtblocks.js +159 -40
  6. package/built/pxtcompiler.js +42 -4
  7. package/built/pxtlib.d.ts +2 -0
  8. package/built/pxtlib.js +22 -0
  9. package/built/pxtpy.js +73 -2
  10. package/built/server.js +4 -0
  11. package/built/target.js +1 -1
  12. package/built/web/authcode/css/main.1cf9dc37.css +2 -0
  13. package/built/web/authcode/js/main.03da4c20.js +2 -0
  14. package/built/web/main.js +1 -1
  15. package/built/web/pxtapp.js +1 -1
  16. package/built/web/pxtasseteditor.js +1 -1
  17. package/built/web/pxtblockly.js +2 -2
  18. package/built/web/pxtblocks.js +1 -1
  19. package/built/web/pxtcompiler.js +1 -1
  20. package/built/web/pxtembed.js +2 -2
  21. package/built/web/pxtlib.js +1 -1
  22. package/built/web/pxtpy.js +1 -1
  23. package/built/web/pxtworker.js +1 -1
  24. package/built/web/react-common-authcode.css +6008 -0
  25. package/built/web/react-common-skillmap.css +1 -1
  26. package/built/web/rtlreact-common-skillmap.css +1 -1
  27. package/built/web/rtlsemantic.css +1 -1
  28. package/built/web/semantic.css +1 -1
  29. package/built/web/skillmap/css/{main.4939cd1e.chunk.css → main.e0620cee.chunk.css} +1 -1
  30. package/built/web/skillmap/js/main.f6866fc6.chunk.js +1 -0
  31. package/common-docs/faq.md +1 -1
  32. package/common-docs/translate.md +2 -2
  33. package/localtypings/pxtblockly.d.ts +1 -0
  34. package/package.json +5 -3
  35. package/pxtarget.json +1 -1
  36. package/react-common/components/controls/EditorToggle.tsx +109 -0
  37. package/react-common/components/controls/Modal.tsx +1 -1
  38. package/react-common/components/profile/UserPane.tsx +8 -4
  39. package/react-common/styles/controls/Button.less +30 -14
  40. package/react-common/styles/controls/EditorToggle.less +233 -0
  41. package/react-common/styles/controls/MenuDropdown.less +1 -1
  42. package/react-common/styles/profile/profile.less +2 -2
  43. package/react-common/styles/react-common-authcode-core.less +10 -0
  44. package/react-common/styles/react-common-authcode.less +12 -0
  45. package/react-common/styles/react-common-variables.less +26 -2
  46. package/react-common/styles/react-common.less +1 -0
  47. package/theme/common.less +5 -0
  48. package/theme/image-editor/imageEditor.less +7 -116
  49. package/theme/tutorial-sidebar.less +11 -4
  50. package/webapp/public/authcode.html +1 -0
  51. package/webapp/public/blockly/blockly_compressed.js +555 -617
  52. package/webapp/public/index.html +1 -1
  53. package/webapp/public/skillmap.html +2 -2
  54. package/built/web/skillmap/js/main.2a4cb15b.chunk.js +0 -1
@@ -103,6 +103,13 @@
103
103
  flex: 1;
104
104
  }
105
105
 
106
+ .image-editor-header-center {
107
+ flex: 1.5;
108
+ display: flex;
109
+ justify-content: center;
110
+ align-items: center;
111
+ }
112
+
106
113
  .image-editor-header-right {
107
114
  display: flex;
108
115
  justify-content: flex-end;
@@ -146,10 +153,6 @@
146
153
  flex: 3!important;
147
154
  }
148
155
 
149
- .image-editor-header-left {
150
- display: none;
151
- }
152
-
153
156
  .gallery-editor-toggle {
154
157
  margin-left: .25rem!important;
155
158
  flex-shrink: 1;
@@ -186,118 +189,6 @@
186
189
 
187
190
  }
188
191
 
189
- .gallery-editor-toggle {
190
- display: flex;
191
- flex-direction: row;
192
- position: relative;
193
-
194
- height: 2.25rem;
195
- line-height: 2.25rem;
196
-
197
- background-color: #4572cf;
198
- border: 2px solid #4067b3;
199
- border-radius: 5px;
200
- width: 24rem;
201
- margin-top: 0.25rem;
202
-
203
- margin-left: auto;
204
- margin-right: auto;
205
- cursor: pointer;
206
- }
207
-
208
- .gallery-editor-toggle.right {
209
- .gallery-editor-toggle-handle {
210
- /* Subtract small margin for rightmost element */
211
- transform: translateX(calc(16rem - 0.2rem));
212
- }
213
- .gallery-editor-toggle-right {
214
- color: #4B7BEC;
215
- }
216
- }
217
-
218
- .gallery-editor-toggle.center {
219
- .gallery-editor-toggle-handle {
220
- transform: translateX(8rem);
221
- }
222
- .gallery-editor-toggle-center {
223
- color: #4B7BEC;
224
- }
225
- }
226
-
227
- .gallery-editor-toggle.left {
228
- .gallery-editor-toggle-left {
229
- color: #4B7BEC;
230
- }
231
- }
232
-
233
- .gallery-editor-toggle.no-gallery {
234
- width: 16rem;
235
-
236
- .gallery-editor-toggle-handle {
237
- width: 50%;
238
- }
239
- .gallery-editor-toggle-label {
240
- flex-basis: 50%;
241
- }
242
- }
243
-
244
- .gallery-editor-toggle.no-gallery.right {
245
- .gallery-editor-toggle-handle {
246
- transform: translateX(8rem);
247
- }
248
- }
249
-
250
- // Microsoft Edge has a bug related to relative z-indices that prevents the handle
251
- // from appearing below the text, so instead we make the handle transparent and have the text
252
- // show through
253
- .gallery-editor-toggle.edge {
254
- .gallery-editor-toggle-label, .gallery-editor-toggle-label-right, .gallery-editor-toggle-label-left, .gallery-editor-toggle-label-center {
255
- color: #ffffff;
256
- z-index: auto;
257
- }
258
- .gallery-editor-toggle-handle {
259
- opacity: 0.3;
260
- }
261
- }
262
-
263
- .gallery-editor-toggle-label {
264
- display: flex;
265
- align-items: center;
266
- justify-content: center;
267
- flex-basis: 33%;
268
- text-align: center;
269
- color: #ffffff;
270
- z-index: 1;
271
- transition: color 0.3s;
272
- user-select: none;
273
-
274
- & > i.icon {
275
- display: flex;
276
- align-items: center;
277
- justify-content: center;
278
- flex-shrink: 0;
279
- }
280
-
281
- span {
282
- overflow: hidden;
283
- text-overflow: ellipsis;
284
- flex-shrink: 1;
285
- white-space: nowrap;
286
- }
287
- }
288
-
289
- .gallery-editor-toggle-handle {
290
- width: 33%;
291
- height: 2rem;
292
- background-color: white;
293
- border-radius: 5px;
294
- position: absolute;
295
- left: 0;
296
-
297
- transform: translateX(0);
298
- transition: transform 0.3s;
299
- }
300
-
301
192
  .gallery-editor-show-tiles {
302
193
  position: absolute;
303
194
  height: 2.3rem;
@@ -194,19 +194,22 @@
194
194
  Tutorial Hint
195
195
  *******************************/
196
196
 
197
+ .tutorial-hint.ui.button,
197
198
  .tutorial-hint .ui.button {
198
199
  height: 3.2rem;
199
200
  width: 3.2rem;
200
201
  margin: 0;
201
202
  border-radius: 50%;
202
203
  font-size: @tutorialTitleFontSize;
203
- }
204
-
205
- .tutorial-hint .ui.button,
206
- .tutorial-hint .ui.button > i {
207
204
  display: flex;
208
205
  align-items: center;
209
206
  justify-content: center;
207
+
208
+ > i {
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ }
210
213
  }
211
214
 
212
215
  // Overrides, largely using old tutorial hint CSS
@@ -584,6 +587,10 @@
584
587
  display: flex;
585
588
  align-items: center;
586
589
  margin: 0;
590
+
591
+ > .ui.button {
592
+ width: unset;
593
+ }
587
594
  }
588
595
 
589
596
  .tutorial-hint .tutorial-callout-button.ui.button {
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="@locale@"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>MakeCode Device Auth</title><link rel="stylesheet" data-rtl="/blb/rtlsemantic.css" href="/blb/semantic.css"><link rel="stylesheet" href="/blb/icons.css"><link rel="stylesheet" href="/blb/react-common-authcode.css"><script defer="defer" src="/blb/authcode/js/main.03da4c20.js"></script><link href="/blb/authcode/css/main.1cf9dc37.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script type="text/javascript" src="/blb/target.js"></script><script type="text/javascript" src="/blb/pxtlib.js"></script><div id="root"></div><script>var pxtConfig=null</script></body></html>