pxt-core 13.2.18 → 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.
@@ -1,5 +1,5 @@
1
- // Git commit: 3eb9726c022d4edebbee9c874347f2b4f69ff679
2
- // Local untracked files or uncommitted changes at build time: yes
1
+ // Git commit: 4dc1721204ba3c5d36a0848ce984db68207d164b
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" />
@@ -1,5 +1,5 @@
1
- // Git commit: 3eb9726c022d4edebbee9c874347f2b4f69ff679
2
- // Local untracked files or uncommitted changes at build time: yes
1
+ // Git commit: 4dc1721204ba3c5d36a0848ce984db68207d164b
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\":\"3eb9726c022d4edebbee9c874347f2b4f69ff679\",\"hasLocalChanges\":true}");
3833
+ return JSON.parse("{\"hash\":\"4dc1721204ba3c5d36a0848ce984db68207d164b\",\"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 {