pxt-core 7.5.40 → 7.5.43

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.
@@ -834,7 +834,9 @@ declare namespace ts.pxtc {
834
834
  mutateDefaults?: string;
835
835
  mutatePropertyEnum?: string;
836
836
  inlineInputMode?: string; // can be inline (horizontal), external (vertical), auto (default), or variable (based off currently expanded number of params)
837
+ inlineInputModeLimit?: number; // the number of expanded arguments at which to switch from inline to external. only applies when inlineInputMode=variable and expandableArgumentsMode=enabled
837
838
  expandableArgumentMode?: string; // can be disabled, enabled, or toggle
839
+ expandableArgumentBreaks?: string; // a comma separated list of how many arguments to reveal/hide each time + or - is pressed on a block. only applies when expandableArgumentsMode=enabled
838
840
  compileHiddenArguments?: boolean; // if true, compiles the values in expandable arguments even when collapsed
839
841
  draggableParameters?: string; // can be reporter or variable; defaults to variable
840
842
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.5.40",
3
+ "version": "7.5.43",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -42,8 +42,8 @@ export const ExtensionCard = <U,>(props: ExtensionCardProps<U>) => {
42
42
  tabIndex={onClick && 0}
43
43
  label={label}>
44
44
  <div className="common-extension-card-contents">
45
- {!loading && <>
46
- <LazyImage src={imageUrl} alt={title} />
45
+ {!loading && <>
46
+ {imageUrl && <LazyImage src={imageUrl} alt={title} />}
47
47
  <div className="common-extension-card-title" id={id + "-title"}>
48
48
  {title}
49
49
  </div>
@@ -57,14 +57,14 @@ export const ExtensionCard = <U,>(props: ExtensionCardProps<U>) => {
57
57
  className="link-button"
58
58
  label={lf("Learn More")}
59
59
  title={lf("Learn More")}
60
- onClick={() => {}}
60
+ onClick={() => { }}
61
61
  href={learnMoreUrl}
62
62
  />
63
63
  }
64
64
  </>
65
65
  }
66
66
  </div>
67
- <div className="common-spinner"/>
67
+ <div className="common-spinner" />
68
68
  </Card>
69
69
  </>
70
70
  }
package/theme/common.less CHANGED
@@ -1024,6 +1024,7 @@ Field editors
1024
1024
  .extension-display {
1025
1025
  display: flex;
1026
1026
  flex-wrap: wrap;
1027
+ justify-content: center;
1027
1028
  padding: 2rem;
1028
1029
  gap: .8rem;
1029
1030
 
@@ -1172,8 +1173,10 @@ Field editors
1172
1173
  .extension-cards {
1173
1174
  display: grid;
1174
1175
  grid-template-columns: repeat(auto-fit, 18rem);
1176
+ justify-content: center;
1175
1177
  gap: 1rem;
1176
- width: 100%;
1178
+ max-width: 95%;
1179
+ width: 95%;
1177
1180
  }
1178
1181
 
1179
1182
  .import-extension-modal {