pxt-core 7.5.36 → 7.5.39

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/pxt.js CHANGED
@@ -108315,7 +108315,9 @@ var pxt;
108315
108315
  const parsed = parseRepoId(id);
108316
108316
  if (!parsed)
108317
108317
  return null;
108318
- return pxt.U.lookup(cfg.upgrades, parsed.fullName.toLowerCase());
108318
+ // lookup base repo for upgrade rules
108319
+ // (since nested repoes share the same version number)
108320
+ return pxt.U.lookup(cfg.upgrades, parsed.slug.toLowerCase());
108319
108321
  }
108320
108322
  function upgradedDisablesVariants(cfg, id) {
108321
108323
  const upgr = upgradeRule(cfg, id);
@@ -111676,7 +111678,7 @@ var pxt;
111676
111678
  // if newversion does not have tag, it's ok
111677
111679
  // note: we are upgrade major versions as well
111678
111680
  || (ghNew.tag && pxt.semver.strcmp(ghCurrent.tag, ghNew.tag) < 0)) {
111679
- const conflict = new pxt.cpp.PkgConflictError(lf("version mismatch for extension {0} (installed: {1}, installing: {2})", depPkg.id, depPkg._verspec, version));
111681
+ const conflict = new pxt.cpp.PkgConflictError(lf("version mismatch for extension {0} (added: {1}, adding: {2})", depPkg.id, depPkg._verspec, version));
111680
111682
  conflict.pkg0 = depPkg;
111681
111683
  conflict.isVersionConflict = true;
111682
111684
  conflicts.push(conflict);
@@ -111709,7 +111711,7 @@ var pxt;
111709
111711
  conflicts.forEach((c) => {
111710
111712
  additionalConflicts.push.apply(additionalConflicts, allAncestors(c.pkg0).map((anc) => {
111711
111713
  const confl = new pxt.cpp.PkgConflictError(c.isVersionConflict ?
111712
- lf("a dependency of {0} has a version mismatch with extension {1} (installed: {1}, installing: {2})", anc.id, pkgCfg.name, c.pkg0._verspec, version) :
111714
+ lf("a dependency of {0} has a version mismatch with extension {1} (added: {1}, adding: {2})", anc.id, pkgCfg.name, c.pkg0._verspec, version) :
111713
111715
  lf("conflict on yotta setting {0} between extensions {1} and {2}", c.settingName, pkgCfg.name, c.pkg0.id));
111714
111716
  confl.pkg0 = anc;
111715
111717
  return confl;
@@ -152916,7 +152918,6 @@ var pxsim;
152916
152918
  }
152917
152919
  }
152918
152920
  createFrame(url) {
152919
- var _a;
152920
152921
  const wrapper = document.createElement("div");
152921
152922
  wrapper.className = `simframe ui embed`;
152922
152923
  const frame = document.createElement('iframe');
@@ -152931,7 +152932,6 @@ var pxsim;
152931
152932
  frame.frameBorder = "0";
152932
152933
  frame.dataset['runid'] = this.runId;
152933
152934
  frame.dataset['origin'] = new URL(furl).origin || "*";
152934
- frame.dataset['hidesimbuttons'] = ((_a = this._runOptions) === null || _a === void 0 ? void 0 : _a.hideSimButtons) ? "true" : "false";
152935
152935
  wrapper.appendChild(frame);
152936
152936
  const i = document.createElement("i");
152937
152937
  i.className = "videoplay xicon icon";
@@ -153167,7 +153167,8 @@ var pxsim;
153167
153167
  msg.frameCounter = ++this.frameCounter;
153168
153168
  msg.options = {
153169
153169
  theme: this.themes[this.nextFrameId++ % this.themes.length],
153170
- mpRole: (_b = (_a = /[\&\?]mp=(server|client)/i.exec(window.location.href)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.toLowerCase()
153170
+ mpRole: (_b = (_a = /[\&\?]mp=(server|client)/i.exec(window.location.href)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.toLowerCase(),
153171
+ hideSimButtons: /hidesimbuttons(?:[:=])1/i.test(window.location.href)
153171
153172
  };
153172
153173
  msg.id = `${msg.options.theme}-${this.nextId()}`;
153173
153174
  frame.dataset['runid'] = this.runId;
@@ -155115,7 +155116,7 @@ var pxsim;
155115
155116
  soundQueue.push({
155116
155117
  notes,
155117
155118
  onFinished: resolve,
155118
- onCancelled: reject
155119
+ onCancelled: resolve
155119
155120
  });
155120
155121
  });
155121
155122
  if (!playing) {
package/built/pxtlib.js CHANGED
@@ -10629,7 +10629,9 @@ var pxt;
10629
10629
  const parsed = parseRepoId(id);
10630
10630
  if (!parsed)
10631
10631
  return null;
10632
- return pxt.U.lookup(cfg.upgrades, parsed.fullName.toLowerCase());
10632
+ // lookup base repo for upgrade rules
10633
+ // (since nested repoes share the same version number)
10634
+ return pxt.U.lookup(cfg.upgrades, parsed.slug.toLowerCase());
10633
10635
  }
10634
10636
  function upgradedDisablesVariants(cfg, id) {
10635
10637
  const upgr = upgradeRule(cfg, id);
@@ -13990,7 +13992,7 @@ var pxt;
13990
13992
  // if newversion does not have tag, it's ok
13991
13993
  // note: we are upgrade major versions as well
13992
13994
  || (ghNew.tag && pxt.semver.strcmp(ghCurrent.tag, ghNew.tag) < 0)) {
13993
- const conflict = new pxt.cpp.PkgConflictError(lf("version mismatch for extension {0} (installed: {1}, installing: {2})", depPkg.id, depPkg._verspec, version));
13995
+ const conflict = new pxt.cpp.PkgConflictError(lf("version mismatch for extension {0} (added: {1}, adding: {2})", depPkg.id, depPkg._verspec, version));
13994
13996
  conflict.pkg0 = depPkg;
13995
13997
  conflict.isVersionConflict = true;
13996
13998
  conflicts.push(conflict);
@@ -14023,7 +14025,7 @@ var pxt;
14023
14025
  conflicts.forEach((c) => {
14024
14026
  additionalConflicts.push.apply(additionalConflicts, allAncestors(c.pkg0).map((anc) => {
14025
14027
  const confl = new pxt.cpp.PkgConflictError(c.isVersionConflict ?
14026
- lf("a dependency of {0} has a version mismatch with extension {1} (installed: {1}, installing: {2})", anc.id, pkgCfg.name, c.pkg0._verspec, version) :
14028
+ lf("a dependency of {0} has a version mismatch with extension {1} (added: {1}, adding: {2})", anc.id, pkgCfg.name, c.pkg0._verspec, version) :
14027
14029
  lf("conflict on yotta setting {0} between extensions {1} and {2}", c.settingName, pkgCfg.name, c.pkg0.id));
14028
14030
  confl.pkg0 = anc;
14029
14031
  return confl;
@@ -91,7 +91,6 @@ declare namespace pxt.runner {
91
91
  id?: string;
92
92
  code?: string;
93
93
  assets?: string;
94
- hideSimButtons?: boolean;
95
94
  highContrast?: boolean;
96
95
  light?: boolean;
97
96
  fullScreen?: boolean;
@@ -1749,8 +1749,7 @@ var pxt;
1749
1749
  highContrast: simOptions.highContrast,
1750
1750
  storedState: storedState,
1751
1751
  light: simOptions.light,
1752
- single: simOptions.single,
1753
- hideSimButtons: simOptions.hideSimButtons
1752
+ single: simOptions.single
1754
1753
  };
1755
1754
  if (pxt.appTarget.simulator && !simOptions.fullScreen)
1756
1755
  runOptions.aspectRatio = parts.length && pxt.appTarget.simulator.partsAspectRatio
package/built/pxtsim.d.ts CHANGED
@@ -1267,7 +1267,6 @@ declare namespace pxsim {
1267
1267
  ipc?: boolean;
1268
1268
  dependencies?: Map<string>;
1269
1269
  single?: boolean;
1270
- hideSimButtons?: boolean;
1271
1270
  }
1272
1271
  interface HwDebugger {
1273
1272
  postMessage: (msg: pxsim.SimulatorMessage) => void;
package/built/pxtsim.js CHANGED
@@ -6294,7 +6294,6 @@ var pxsim;
6294
6294
  }
6295
6295
  }
6296
6296
  createFrame(url) {
6297
- var _a;
6298
6297
  const wrapper = document.createElement("div");
6299
6298
  wrapper.className = `simframe ui embed`;
6300
6299
  const frame = document.createElement('iframe');
@@ -6309,7 +6308,6 @@ var pxsim;
6309
6308
  frame.frameBorder = "0";
6310
6309
  frame.dataset['runid'] = this.runId;
6311
6310
  frame.dataset['origin'] = new URL(furl).origin || "*";
6312
- frame.dataset['hidesimbuttons'] = ((_a = this._runOptions) === null || _a === void 0 ? void 0 : _a.hideSimButtons) ? "true" : "false";
6313
6311
  wrapper.appendChild(frame);
6314
6312
  const i = document.createElement("i");
6315
6313
  i.className = "videoplay xicon icon";
@@ -6545,7 +6543,8 @@ var pxsim;
6545
6543
  msg.frameCounter = ++this.frameCounter;
6546
6544
  msg.options = {
6547
6545
  theme: this.themes[this.nextFrameId++ % this.themes.length],
6548
- mpRole: (_b = (_a = /[\&\?]mp=(server|client)/i.exec(window.location.href)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.toLowerCase()
6546
+ mpRole: (_b = (_a = /[\&\?]mp=(server|client)/i.exec(window.location.href)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.toLowerCase(),
6547
+ hideSimButtons: /hidesimbuttons(?:[:=])1/i.test(window.location.href)
6549
6548
  };
6550
6549
  msg.id = `${msg.options.theme}-${this.nextId()}`;
6551
6550
  frame.dataset['runid'] = this.runId;
@@ -8493,7 +8492,7 @@ var pxsim;
8493
8492
  soundQueue.push({
8494
8493
  notes,
8495
8494
  onFinished: resolve,
8496
- onCancelled: reject
8495
+ onCancelled: resolve
8497
8496
  });
8498
8497
  });
8499
8498
  if (!playing) {