pxt-core 13.2.17 → 13.2.18
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.d.ts +13 -0
- package/built/backendutils.js +13 -0
- package/built/pxtblocks/backpack.d.ts +1 -1
- package/built/pxtblocks/clipboard.d.ts +1 -1
- package/built/pxtblocks/plugins/duplicateOnDrag/dragStrategy.d.ts +2 -0
- package/built/pxtservices/editorDriver.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/tests/blocksrunner.js +38 -18
- package/built/tests/blockssetup.js +38 -18
- package/built/web/blockly.css +1 -1
- package/built/web/main.js +2 -2
- package/built/web/pxtasseteditor.js +2 -2
- package/built/web/pxtembed.js +2 -2
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/runnerembed.js +2 -2
- package/built/web/semantic.css +1 -1
- package/built/web/teachertool/js/{main.9894b09b.js → main.c8f9e9a1.js} +2 -2
- package/built/web/tutorialtool/js/{main.347d6451.js → main.86239049.js} +2 -2
- package/localtypings/pxteditor.d.ts +1 -0
- package/package.json +1 -1
- package/theme/blockly-core.less +5 -0
- package/theme/home.less +1 -0
- package/theme/themes/pxt/globals/zindex.variables +1 -1
- package/webapp/public/controller.html +1 -0
- package/webapp/public/teachertool.html +1 -1
- package/webapp/public/tutorialtool.html +1 -1
package/built/backendutils.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Git commit: 3eb9726c022d4edebbee9c874347f2b4f69ff679
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: yes
|
|
1
3
|
/// <reference path="../localtypings/pxtarget.d.ts" />
|
|
2
4
|
/// <reference path="../localtypings/dompurify.d.ts" />
|
|
3
5
|
/// <reference path="../localtypings/pxtpackage.d.ts" />
|
|
@@ -308,3 +310,14 @@ declare namespace pxt.cpp {
|
|
|
308
310
|
*/
|
|
309
311
|
function getExtensionInfo(files: Map<string>, target: TargetBundle, variant: string, host: ExtensionInfoHost): pxtc.ExtensionInfo;
|
|
310
312
|
}
|
|
313
|
+
declare namespace pxt {
|
|
314
|
+
interface BackendutilsVersion {
|
|
315
|
+
hash: string;
|
|
316
|
+
hasLocalChanges: boolean;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* The git revision information is injected into this function at build time.
|
|
320
|
+
* See backendutils in gulpfile.js
|
|
321
|
+
*/
|
|
322
|
+
function backendutilsVersion(): BackendutilsVersion;
|
|
323
|
+
}
|
package/built/backendutils.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Git commit: 3eb9726c022d4edebbee9c874347f2b4f69ff679
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: yes
|
|
1
3
|
// Needs to be in its own file to avoid a circular dependency: util.ts -> main.ts -> util.ts
|
|
2
4
|
var pxt;
|
|
3
5
|
(function (pxt) {
|
|
@@ -3821,4 +3823,15 @@ int main() {
|
|
|
3821
3823
|
})(pxt || (pxt = {}));
|
|
3822
3824
|
/// <reference path="../pxtlib/shared/docsrender.ts"/>
|
|
3823
3825
|
/// <reference path="../pxtlib/shared/extensioninfo.ts"/>
|
|
3826
|
+
var pxt;
|
|
3827
|
+
(function (pxt) {
|
|
3828
|
+
/**
|
|
3829
|
+
* The git revision information is injected into this function at build time.
|
|
3830
|
+
* See backendutils in gulpfile.js
|
|
3831
|
+
*/
|
|
3832
|
+
function backendutilsVersion() {
|
|
3833
|
+
return JSON.parse("{\"hash\":\"3eb9726c022d4edebbee9c874347f2b4f69ff679\",\"hasLocalChanges\":true}");
|
|
3834
|
+
}
|
|
3835
|
+
pxt.backendutilsVersion = backendutilsVersion;
|
|
3836
|
+
})(pxt || (pxt = {}));
|
|
3824
3837
|
global.pxt = pxt;
|
|
@@ -18,7 +18,7 @@ export interface BackpackAssetCapture {
|
|
|
18
18
|
/** Save a field in its matching standalone asset block, without copying its parent. */
|
|
19
19
|
export declare function captureBackpackAsset(field: Blockly.Field, info: pxtc.BlocksInfo): BackpackAssetCapture;
|
|
20
20
|
export declare function parseBackpackCode(code: string): BackpackCode;
|
|
21
|
-
/** Include
|
|
21
|
+
/** Include the selected block, its following stack, and referenced function definitions. */
|
|
22
22
|
export declare function captureBackpackBlock(block: Blockly.Block): {
|
|
23
23
|
code: string;
|
|
24
24
|
blockText: string;
|
|
@@ -5,7 +5,7 @@ export declare function visitBlockStates(states: BlockState[], visit: (state: Bl
|
|
|
5
5
|
/** Excludes hidden shadows from Blockly's block-type counts. */
|
|
6
6
|
export declare function blockCopyData(blockState: BlockState): Blockly.clipboard.BlockCopyData;
|
|
7
7
|
/** Copy a live block or a block in a headless asset editor. */
|
|
8
|
-
export declare function copyBlock(block: Blockly.Block): Blockly.clipboard.BlockCopyData;
|
|
8
|
+
export declare function copyBlock(block: Blockly.Block, addNextBlocks?: boolean): Blockly.clipboard.BlockCopyData;
|
|
9
9
|
export interface ClipboardPasteOptions {
|
|
10
10
|
originalPosition?: Blockly.utils.Coordinate;
|
|
11
11
|
screenPosition?: {
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import * as Blockly from "blockly";
|
|
7
7
|
export declare class DuplicateOnDragStrategy extends Blockly.dragging.BlockDragStrategy {
|
|
8
|
+
private startedAsShadow;
|
|
8
9
|
protected getTargetBlock(): Blockly.BlockSvg;
|
|
10
|
+
revertDrag(): void;
|
|
9
11
|
drag(newLoc: Blockly.utils.Coordinate, e?: PointerEvent | KeyboardEvent): void;
|
|
10
12
|
private disconnectBlock;
|
|
11
13
|
}
|
|
@@ -36,6 +36,7 @@ export declare class EditorDriver extends IframeDriver {
|
|
|
36
36
|
redo(): Promise<void>;
|
|
37
37
|
setHighContrast(on: boolean): Promise<void>;
|
|
38
38
|
showThemePicker(): Promise<void>;
|
|
39
|
+
showExtensions(): Promise<void>;
|
|
39
40
|
toggleHighContrast(): Promise<void>;
|
|
40
41
|
toggleGreenScreen(): Promise<void>;
|
|
41
42
|
toggleAccessibleBlocks(): Promise<void>;
|