pxt-core 13.1.24 → 13.1.25

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
@@ -120761,7 +120761,7 @@ ${code}
120761
120761
  const validationConfig = parseTutorialValidationConfig("local", step);
120762
120762
  // if title is not hidden ("{TITLE HERE}"), strip flags
120763
120763
  const title = !flags.match(/^\{.*\}$/)
120764
- ? flags.replace(/@(fullscreen|unplugged|showdialog|showhint|tutorialCompleted|resetDiff)/gi, "").trim()
120764
+ ? flags.replace(/@(simFullscreen|fullscreen|unplugged|showdialog|showhint|tutorialCompleted|resetDiff)\b/gi, "").trim()
120765
120765
  : undefined;
120766
120766
  let info = {
120767
120767
  title,
@@ -120770,10 +120770,12 @@ ${code}
120770
120770
  localBlockConfig: blockConfig,
120771
120771
  localValidationConfig: validationConfig
120772
120772
  };
120773
- if (/@(fullscreen|unplugged|showdialog|showhint)/i.test(flags))
120773
+ if (/@(fullscreen|unplugged|showdialog|showhint)\b/i.test(flags))
120774
120774
  info.showHint = true;
120775
120775
  if (/@(unplugged|showdialog)/i.test(flags))
120776
120776
  info.showDialog = true;
120777
+ if (/@simFullscreen\b/i.test(flags))
120778
+ info.simFullscreen = true;
120777
120779
  if (/@tutorialCompleted/.test(flags))
120778
120780
  info.tutorialCompleted = true;
120779
120781
  if (/@resetDiff/.test(flags))
package/built/pxtlib.js CHANGED
@@ -23040,7 +23040,7 @@ ${code}
23040
23040
  const validationConfig = parseTutorialValidationConfig("local", step);
23041
23041
  // if title is not hidden ("{TITLE HERE}"), strip flags
23042
23042
  const title = !flags.match(/^\{.*\}$/)
23043
- ? flags.replace(/@(fullscreen|unplugged|showdialog|showhint|tutorialCompleted|resetDiff)/gi, "").trim()
23043
+ ? flags.replace(/@(simFullscreen|fullscreen|unplugged|showdialog|showhint|tutorialCompleted|resetDiff)\b/gi, "").trim()
23044
23044
  : undefined;
23045
23045
  let info = {
23046
23046
  title,
@@ -23049,10 +23049,12 @@ ${code}
23049
23049
  localBlockConfig: blockConfig,
23050
23050
  localValidationConfig: validationConfig
23051
23051
  };
23052
- if (/@(fullscreen|unplugged|showdialog|showhint)/i.test(flags))
23052
+ if (/@(fullscreen|unplugged|showdialog|showhint)\b/i.test(flags))
23053
23053
  info.showHint = true;
23054
23054
  if (/@(unplugged|showdialog)/i.test(flags))
23055
23055
  info.showDialog = true;
23056
+ if (/@simFullscreen\b/i.test(flags))
23057
+ info.simFullscreen = true;
23056
23058
  if (/@tutorialCompleted/.test(flags))
23057
23059
  info.tutorialCompleted = true;
23058
23060
  if (/@resetDiff/.test(flags))