pxt-core 7.5.39 → 7.5.42

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.
@@ -34,14 +34,11 @@ declare namespace pxt {
34
34
 
35
35
  interface PackagesConfig {
36
36
  approvedOrgs?: string[];
37
- approvedRepos?: string[]; // list of company/project
38
37
  releases?: pxt.Map<string[]>; // per major version list of approved company/project#tag
39
38
  bannedOrgs?: string[];
40
39
  bannedRepos?: string[];
41
40
  allowUnapproved?: boolean;
42
- preferredRepos?: string[]; // list of company/project(#tag) of packages to show by default in search
43
- preferredRepoLib?: RepoData[];
44
- approvedRepoLib?: RepoData[];
41
+ approvedRepoLib?: pxt.Map<RepoData>;
45
42
  // format:
46
43
  // "acme-corp/pxt-widget": "min:v0.1.2" - auto-upgrade to that version
47
44
  // "acme-corp/pxt-widget": "dv:foo,bar" - add "disablesVariant": ["foo", "bar"] to pxt.json
@@ -53,8 +50,9 @@ declare namespace pxt {
53
50
  }
54
51
 
55
52
  interface RepoData {
56
- slug: string;
57
- tags?: string[]
53
+ preferred?: boolean;
54
+ tags?: string[];
55
+ upgrades?: string[];
58
56
  }
59
57
 
60
58
  interface ShareConfig {
@@ -1192,4 +1190,4 @@ declare namespace pxt.auth {
1192
1190
  type: "skillmap-completion";
1193
1191
  sourceURL: string;
1194
1192
  }
1195
- }
1193
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.5.39",
3
+ "version": "7.5.42",
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
@@ -942,6 +942,14 @@ Field editors
942
942
  .fullscreen.extensions-browser > .common-modal > .common-modal-header {
943
943
  height: @mobileMenuHeight;
944
944
  }
945
+
946
+ .extensions-browser {
947
+ .extension-header > .import-button>.common-button {
948
+ .common-button-label {
949
+ display: none;
950
+ }
951
+ }
952
+ }
945
953
  }
946
954
 
947
955
  @media @mobileAndBelow {
@@ -1016,6 +1024,7 @@ Field editors
1016
1024
  .extension-display {
1017
1025
  display: flex;
1018
1026
  flex-wrap: wrap;
1027
+ justify-content: center;
1019
1028
  padding: 2rem;
1020
1029
  gap: .8rem;
1021
1030
 
@@ -1029,12 +1038,30 @@ Field editors
1029
1038
  cursor: pointer;
1030
1039
  }
1031
1040
 
1032
- span {
1041
+ >span {
1033
1042
  padding-right: .5rem;
1034
1043
  }
1044
+
1045
+ .common-button {
1046
+ font-size: 1.2rem;
1047
+ padding-right: .5rem;
1048
+ margin-right: 0rem;
1049
+ }
1035
1050
  }
1036
1051
  }
1037
1052
 
1053
+ .extension-header {
1054
+ font-family: @segoeUIFont;
1055
+ width: 95%;
1056
+ display: flex;
1057
+ align-items: flex-end;
1058
+ justify-content: space-between;
1059
+ }
1060
+
1061
+ .import-button>.common-button {
1062
+ padding: .8rem 1rem .95rem;
1063
+ }
1064
+
1038
1065
  .extension-grid {
1039
1066
  display: flex;
1040
1067
  flex-wrap: wrap;
@@ -1146,8 +1173,9 @@ Field editors
1146
1173
  .extension-cards {
1147
1174
  display: grid;
1148
1175
  grid-template-columns: repeat(auto-fit, 18rem);
1176
+ justify-content: center;
1149
1177
  gap: 1rem;
1150
- width: 100%;
1178
+ max-width: 95%;
1151
1179
  }
1152
1180
 
1153
1181
  .import-extension-modal {