pxt-core 11.2.1 → 11.2.2
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/pxtservices/editorDriver.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/web/main.js +4 -4
- package/built/web/pxtembed.js +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/runnerembed.js +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/teachertool/css/{main.7ed51987.css → main.a443f50b.css} +1 -1
- package/built/web/teachertool/js/{main.372ef171.js → main.50b64e68.js} +2 -2
- package/built/web/tutorialtool/js/{main.61e4c167.js → main.def0e964.js} +2 -2
- package/localtypings/pxteditor.d.ts +24 -4
- package/package.json +1 -1
- package/theme/themepacks.less +1 -0
- package/webapp/public/teachertool.html +1 -1
- package/webapp/public/tutorialtool.html +1 -1
|
@@ -75,6 +75,7 @@ declare namespace pxt.editor {
|
|
|
75
75
|
| "convertcloudprojectstolocal"
|
|
76
76
|
| "setlanguagerestriction"
|
|
77
77
|
| "gettoolboxcategories"
|
|
78
|
+
| "getblockastext"
|
|
78
79
|
|
|
79
80
|
| "toggletrace" // EditorMessageToggleTraceRequest
|
|
80
81
|
| "togglehighcontrast"
|
|
@@ -453,14 +454,23 @@ declare namespace pxt.editor {
|
|
|
453
454
|
advanced?: boolean;
|
|
454
455
|
}
|
|
455
456
|
|
|
456
|
-
export interface EditorMessageServiceWorkerRegisteredRequest extends EditorMessageRequest {
|
|
457
|
-
action: "serviceworkerregistered";
|
|
458
|
-
}
|
|
459
|
-
|
|
460
457
|
export interface EditorMessageGetToolboxCategoriesResponse {
|
|
461
458
|
categories: pxt.editor.ToolboxCategoryDefinition[];
|
|
462
459
|
}
|
|
463
460
|
|
|
461
|
+
export interface EditorMessageGetBlockAsTextRequest extends EditorMessageRequest {
|
|
462
|
+
action: "getblockastext";
|
|
463
|
+
blockId: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface EditorMessageGetBlockAsTextResponse {
|
|
467
|
+
blockAsText: pxt.editor.BlockAsText | undefined;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export interface EditorMessageServiceWorkerRegisteredRequest extends EditorMessageRequest {
|
|
471
|
+
action: "serviceworkerregistered";
|
|
472
|
+
}
|
|
473
|
+
|
|
464
474
|
export interface DataStreams<T> {
|
|
465
475
|
console?: T;
|
|
466
476
|
messages?: T;
|
|
@@ -997,6 +1007,7 @@ declare namespace pxt.editor {
|
|
|
997
1007
|
// getBlocks(): Blockly.Block[];
|
|
998
1008
|
getBlocks(): any[];
|
|
999
1009
|
getToolboxCategories(advanced?: boolean): pxt.editor.EditorMessageGetToolboxCategoriesResponse;
|
|
1010
|
+
getBlockAsText(blockId: string): pxt.editor.BlockAsText | undefined;
|
|
1000
1011
|
|
|
1001
1012
|
toggleHighContrast(): void;
|
|
1002
1013
|
setHighContrast(on: boolean): void;
|
|
@@ -1264,6 +1275,15 @@ declare namespace pxt.editor {
|
|
|
1264
1275
|
blockId?: string;
|
|
1265
1276
|
}
|
|
1266
1277
|
|
|
1278
|
+
export interface BlockAsText {
|
|
1279
|
+
parts: BlockTextPart[];
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export interface BlockTextPart {
|
|
1283
|
+
kind: "label" | "break" | "param",
|
|
1284
|
+
content?: string,
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1267
1287
|
interface BaseAssetEditorRequest {
|
|
1268
1288
|
id?: number;
|
|
1269
1289
|
files: pxt.Map<string>;
|
package/package.json
CHANGED
package/theme/themepacks.less
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
--pxt-page-foreground: black;
|
|
16
16
|
--pxt-page-foreground-light: #767676;
|
|
17
17
|
--pxt-page-foreground-shadow: rgba(0, 0, 0, 0.08);
|
|
18
|
+
--pxt-page-dark-shadow: rgba(0, 0, 0, 0.5);
|
|
18
19
|
/// Header bar
|
|
19
20
|
--pxt-headerbar-background: #475569;
|
|
20
21
|
--pxt-headerbar-background-glass: #47556940;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<!-- <link rel="manifest" href="/teachertool-data/manifest.json" /> -->
|
|
19
19
|
<title>MakeCode Code Evaluation</title>
|
|
20
20
|
<script>var pxtConfig=null</script>
|
|
21
|
-
<script defer="defer" src="/blb/teachertool/js/main.
|
|
21
|
+
<script defer="defer" src="/blb/teachertool/js/main.50b64e68.js"></script><link href="/blb/teachertool/css/main.a443f50b.css" rel="stylesheet"></head>
|
|
22
22
|
<body>
|
|
23
23
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<!-- <link rel="manifest" href="/tutorialtool-data/manifest.json" /> -->
|
|
18
18
|
<title>MakeCode Tutorial Tool</title>
|
|
19
19
|
<script>var pxtConfig=null</script>
|
|
20
|
-
<script defer="defer" src="/blb/tutorialtool/js/main.
|
|
20
|
+
<script defer="defer" src="/blb/tutorialtool/js/main.def0e964.js"></script><link href="/blb/tutorialtool/css/main.02bb1797.css" rel="stylesheet"></head>
|
|
21
21
|
|
|
22
22
|
<body>
|
|
23
23
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|