pxt-core 8.6.52 → 9.0.2

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.
@@ -476,6 +476,8 @@ declare namespace pxt {
476
476
  tutorialSimSidebarLayout?: boolean; // Enable tutorial layout with the sim in the sidebar (desktop only)
477
477
  showOpenInVscode?: boolean; // show the open in VS Code button
478
478
  matchWebUSBDeviceInSim?: boolean; // if set, pass current device id as theme to sim when available.
479
+ condenseProfile?: boolean; // if set, will make the profile dialog smaller
480
+ cloudProfileIcon?: string; // the file path for added imagery on smaller profile dialogs
479
481
  }
480
482
 
481
483
  interface DownloadDialogTheme {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "8.6.52",
3
+ "version": "9.0.2",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -21,6 +21,8 @@ export const Profile = (props: ProfileProps) => {
21
21
  const userProfile = user?.profile || { idp: {} };
22
22
  const userBadges = user?.preferences?.badges || { badges: [] };
23
23
  const showBadges = pxt.appTarget?.cloud?.showBadges || false;
24
+ const profileSmall = pxt.appTarget.appTheme?.condenseProfile;
25
+ const profileIcon = pxt.appTarget.appTheme?.cloudProfileIcon;
24
26
 
25
27
  const onBadgeClick = (badge: pxt.auth.Badge) => {
26
28
  showModalAsync({
@@ -44,5 +46,18 @@ export const Profile = (props: ProfileProps) => {
44
46
  userState={userBadges}
45
47
  onBadgeClick={onBadgeClick}
46
48
  />}
49
+
50
+ {profileSmall &&
51
+ <div className="profile-info-container">
52
+ <p className="profile-info">
53
+ {lf("Now that you're logged in, your projects will be automatically saved to the cloud so you can access them from any device!")}
54
+ </p>
55
+ {profileIcon && <img
56
+ className="ui image centered medium"
57
+ src={profileIcon}
58
+ alt=""
59
+ />}
60
+ </div>
61
+ }
47
62
  </div>
48
63
  }
@@ -299,6 +299,18 @@
299
299
  background-color: var(--avatar-initials-background-color);
300
300
  }
301
301
 
302
+ .profile-info-container {
303
+ display: flex;
304
+ flex-direction: column;
305
+ align-items: center;
306
+ justify-content: center;
307
+ }
308
+
309
+ .profile-info {
310
+ line-height: 2em;
311
+ width: 75%;
312
+ }
313
+
302
314
  .ui.icon.button.sign-out {
303
315
  font-family: var(--body-font-family);
304
316
  }
@@ -7,7 +7,7 @@
7
7
  <link rel="stylesheet" data-rtl="/blb/rtlsemantic.css" href="/blb/semantic.css">
8
8
  <link rel="stylesheet" href="/blb/icons.css">
9
9
  <link rel="stylesheet" href="/blb/react-common-skillmap.css">
10
- <script defer="defer" src="/blb/skillmap/js/main.b6e4b712.js"></script><link href="/blb/skillmap/css/main.3c703680.css" rel="stylesheet"></head>
10
+ <script defer="defer" src="/blb/skillmap/js/main.a9bdebe3.js"></script><link href="/blb/skillmap/css/main.3c703680.css" rel="stylesheet"></head>
11
11
  <body>
12
12
  <noscript>You need to enable JavaScript to run this app.</noscript>
13
13