pxt-core 13.2.17 → 13.2.19
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/pxt.js +24 -1
- 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/pxtlib.js +24 -1
- 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 +3 -3
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +2 -2
- package/built/web/pxtembed.js +2 -2
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- 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/skillmap/js/{main.0a30c78e.js → main.d873f450.js} +2 -2
- 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/pxtarget.d.ts +6 -0
- package/localtypings/pxteditor.d.ts +1 -0
- package/package.json +2 -2
- 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/marked/marked.min.js +26 -26
- package/webapp/public/skillmap.html +1 -1
- 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: 4dc1721204ba3c5d36a0848ce984db68207d164b
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: no
|
|
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: 4dc1721204ba3c5d36a0848ce984db68207d164b
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: no
|
|
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\":\"4dc1721204ba3c5d36a0848ce984db68207d164b\",\"hasLocalChanges\":false}");
|
|
3834
|
+
}
|
|
3835
|
+
pxt.backendutilsVersion = backendutilsVersion;
|
|
3836
|
+
})(pxt || (pxt = {}));
|
|
3824
3837
|
global.pxt = pxt;
|
package/built/pxt.js
CHANGED
|
@@ -115778,7 +115778,7 @@ var ts;
|
|
|
115778
115778
|
}
|
|
115779
115779
|
pxtc.blocksCategory = blocksCategory;
|
|
115780
115780
|
function getBlocksInfo(info, categoryFilters) {
|
|
115781
|
-
var _a, _b;
|
|
115781
|
+
var _a, _b, _c;
|
|
115782
115782
|
let blocks = [];
|
|
115783
115783
|
const combinedSet = {};
|
|
115784
115784
|
const combinedGet = {};
|
|
@@ -115991,6 +115991,29 @@ var ts;
|
|
|
115991
115991
|
battr[n] = pattr[n];
|
|
115992
115992
|
}
|
|
115993
115993
|
}
|
|
115994
|
+
// Apply runtime target overrides for standard forever and pause blocks if specified
|
|
115995
|
+
if ((_c = pxt.appTarget) === null || _c === void 0 ? void 0 : _c.runtime) {
|
|
115996
|
+
const rt = pxt.appTarget.runtime;
|
|
115997
|
+
for (let b of blocks) {
|
|
115998
|
+
const id = b.attributes.blockId;
|
|
115999
|
+
if (id === "forever" || id === "device_forever") {
|
|
116000
|
+
if (rt.foreverNamespace)
|
|
116001
|
+
b.attributes.blockNamespace = rt.foreverNamespace;
|
|
116002
|
+
if (rt.foreverGroup)
|
|
116003
|
+
b.attributes.group = rt.foreverGroup;
|
|
116004
|
+
if (rt.foreverWeight !== undefined)
|
|
116005
|
+
b.attributes.weight = rt.foreverWeight;
|
|
116006
|
+
}
|
|
116007
|
+
else if (id === "device_pause") {
|
|
116008
|
+
if (rt.pauseNamespace)
|
|
116009
|
+
b.attributes.blockNamespace = rt.pauseNamespace;
|
|
116010
|
+
if (rt.pauseGroup)
|
|
116011
|
+
b.attributes.group = rt.pauseGroup;
|
|
116012
|
+
if (rt.pauseWeight !== undefined)
|
|
116013
|
+
b.attributes.weight = rt.pauseWeight;
|
|
116014
|
+
}
|
|
116015
|
+
}
|
|
116016
|
+
}
|
|
115994
116017
|
if (categoryFilters)
|
|
115995
116018
|
filterCategories(categoryFilters);
|
|
115996
116019
|
return {
|
|
@@ -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
|
}
|
package/built/pxtlib.js
CHANGED
|
@@ -18057,7 +18057,7 @@ var ts;
|
|
|
18057
18057
|
}
|
|
18058
18058
|
pxtc.blocksCategory = blocksCategory;
|
|
18059
18059
|
function getBlocksInfo(info, categoryFilters) {
|
|
18060
|
-
var _a, _b;
|
|
18060
|
+
var _a, _b, _c;
|
|
18061
18061
|
let blocks = [];
|
|
18062
18062
|
const combinedSet = {};
|
|
18063
18063
|
const combinedGet = {};
|
|
@@ -18270,6 +18270,29 @@ var ts;
|
|
|
18270
18270
|
battr[n] = pattr[n];
|
|
18271
18271
|
}
|
|
18272
18272
|
}
|
|
18273
|
+
// Apply runtime target overrides for standard forever and pause blocks if specified
|
|
18274
|
+
if ((_c = pxt.appTarget) === null || _c === void 0 ? void 0 : _c.runtime) {
|
|
18275
|
+
const rt = pxt.appTarget.runtime;
|
|
18276
|
+
for (let b of blocks) {
|
|
18277
|
+
const id = b.attributes.blockId;
|
|
18278
|
+
if (id === "forever" || id === "device_forever") {
|
|
18279
|
+
if (rt.foreverNamespace)
|
|
18280
|
+
b.attributes.blockNamespace = rt.foreverNamespace;
|
|
18281
|
+
if (rt.foreverGroup)
|
|
18282
|
+
b.attributes.group = rt.foreverGroup;
|
|
18283
|
+
if (rt.foreverWeight !== undefined)
|
|
18284
|
+
b.attributes.weight = rt.foreverWeight;
|
|
18285
|
+
}
|
|
18286
|
+
else if (id === "device_pause") {
|
|
18287
|
+
if (rt.pauseNamespace)
|
|
18288
|
+
b.attributes.blockNamespace = rt.pauseNamespace;
|
|
18289
|
+
if (rt.pauseGroup)
|
|
18290
|
+
b.attributes.group = rt.pauseGroup;
|
|
18291
|
+
if (rt.pauseWeight !== undefined)
|
|
18292
|
+
b.attributes.weight = rt.pauseWeight;
|
|
18293
|
+
}
|
|
18294
|
+
}
|
|
18295
|
+
}
|
|
18273
18296
|
if (categoryFilters)
|
|
18274
18297
|
filterCategories(categoryFilters);
|
|
18275
18298
|
return {
|
|
@@ -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>;
|