pxt-core 8.2.7 → 8.2.8

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.
@@ -995,6 +995,7 @@ declare namespace ts.pxtc {
995
995
  skipPxtModulesEmit?: boolean; // skip re-emit of pxt_modules/*
996
996
  clearIncrBuildAndRetryOnError?: boolean; // on error when compiling in service, try again with a full recompile.
997
997
  errorOnGreyBlocks?: boolean;
998
+ generateSourceMap?: boolean;
998
999
 
999
1000
  otherMultiVariants?: ExtensionTarget[];
1000
1001
 
@@ -1088,6 +1089,7 @@ declare namespace pxt.tutorial {
1088
1089
  jres?: string; // JRES to be used when generating hints; necessary for tilemaps
1089
1090
  customTs?: string; // custom typescript code loaded in a separate file for the tutorial
1090
1091
  tutorialValidationRules?: pxt.Map<boolean>; //a map of rules used in a tutorial and if the rules are activated
1092
+ globalBlockConfig?: TutorialBlockConfig; // concatenated `blockconfig.global` sections. Contains block configs applicable to all tutorial steps
1091
1093
  }
1092
1094
 
1093
1095
  interface TutorialMetadata {
@@ -1113,6 +1115,16 @@ declare namespace pxt.tutorial {
1113
1115
  blockIds?: string[];
1114
1116
  }
1115
1117
 
1118
+ interface TutorialBlockConfigEntry {
1119
+ blockId?: string;
1120
+ xml?: string;
1121
+ }
1122
+
1123
+ interface TutorialBlockConfig {
1124
+ md?: string; // `blockconfig` markdown fragment
1125
+ blocks?: TutorialBlockConfigEntry[]; // markdown fragment can contain multiple block definitions
1126
+ }
1127
+
1116
1128
  interface TutorialStepInfo {
1117
1129
  // Step metadata
1118
1130
  showHint?: boolean; // automatically displays hint
@@ -1134,6 +1146,9 @@ declare namespace pxt.tutorial {
1134
1146
  hintContentMd?: string;
1135
1147
  // fullscreen?: boolean; // DEPRECATED, replaced by "showHint"
1136
1148
  // unplugged?: boolean: // DEPRECATED, replaced by "showDialog"
1149
+
1150
+ // concatenated `blockconfig.local` sections. Contains block configs applicable to the current step only
1151
+ localBlockConfig?: pxt.tutorial.TutorialBlockConfig;
1137
1152
  }
1138
1153
 
1139
1154
  interface TutorialActivityInfo {
@@ -1165,6 +1180,7 @@ declare namespace pxt.tutorial {
1165
1180
  customTs?: string; // custom typescript code loaded in a separate file for the tutorial
1166
1181
  tutorialValidationRules?: pxt.Map<boolean>; //a map of rules used in a tutorial and if the rules are activated
1167
1182
  templateLoaded?: boolean; // if the template code has been loaded once, we skip
1183
+ globalBlockConfig?: TutorialBlockConfig; // concatenated `blockconfig.global` sections. Contains block configs applicable to all tutorial steps
1168
1184
  }
1169
1185
  interface TutorialCompletionInfo {
1170
1186
  // id of the tutorial
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "8.2.7",
3
+ "version": "8.2.8",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",