pxt-core 13.2.18 → 13.3.0
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 +2 -2
- package/built/backendutils.js +3 -3
- package/built/pxt.js +24 -1
- package/built/pxtlib.js +24 -1
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/skillmap/js/{main.0a30c78e.js → main.d873f450.js} +2 -2
- package/localtypings/pxtarget.d.ts +6 -0
- package/package.json +2 -2
- package/webapp/public/marked/marked.min.js +26 -26
- package/webapp/public/skillmap.html +1 -1
package/built/backendutils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Git commit:
|
|
2
|
-
// Local untracked files or uncommitted changes at build time:
|
|
1
|
+
// Git commit: a232e2542948a81a2acadc197dad2a0e6508339c
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: no
|
|
3
3
|
/// <reference path="../localtypings/pxtarget.d.ts" />
|
|
4
4
|
/// <reference path="../localtypings/dompurify.d.ts" />
|
|
5
5
|
/// <reference path="../localtypings/pxtpackage.d.ts" />
|
package/built/backendutils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Git commit:
|
|
2
|
-
// Local untracked files or uncommitted changes at build time:
|
|
1
|
+
// Git commit: a232e2542948a81a2acadc197dad2a0e6508339c
|
|
2
|
+
// Local untracked files or uncommitted changes at build time: no
|
|
3
3
|
// Needs to be in its own file to avoid a circular dependency: util.ts -> main.ts -> util.ts
|
|
4
4
|
var pxt;
|
|
5
5
|
(function (pxt) {
|
|
@@ -3830,7 +3830,7 @@ var pxt;
|
|
|
3830
3830
|
* See backendutils in gulpfile.js
|
|
3831
3831
|
*/
|
|
3832
3832
|
function backendutilsVersion() {
|
|
3833
|
-
return JSON.parse("{\"hash\":\"
|
|
3833
|
+
return JSON.parse("{\"hash\":\"a232e2542948a81a2acadc197dad2a0e6508339c\",\"hasLocalChanges\":false}");
|
|
3834
3834
|
}
|
|
3835
3835
|
pxt.backendutilsVersion = backendutilsVersion;
|
|
3836
3836
|
})(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 {
|
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 {
|