pxt-core 13.0.1 → 13.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "13.0.1",
3
+ "version": "13.0.3",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -23,13 +23,13 @@ export interface ModalAction {
23
23
  export interface ModalProps extends ContainerProps {
24
24
  title: string;
25
25
  leftIcon?: string;
26
- helpUrl?: string
27
26
  ariaDescribedBy?: string;
28
27
  actions?: ModalAction[];
29
28
  onClose?: () => void;
30
29
  fullscreen?: boolean;
31
30
  parentElement?: Element;
32
31
  hideDismissButton?: boolean;
32
+ rightHeader?: React.ReactNode;
33
33
  }
34
34
 
35
35
  export const Modal = (props: ModalProps) => {
@@ -43,12 +43,12 @@ export const Modal = (props: ModalProps) => {
43
43
  role,
44
44
  title,
45
45
  leftIcon,
46
- helpUrl,
47
46
  actions,
48
47
  onClose,
49
48
  parentElement,
50
49
  fullscreen,
51
50
  hideDismissButton,
51
+ rightHeader
52
52
  } = props;
53
53
 
54
54
  const closeClickHandler = (e?: React.MouseEvent<HTMLButtonElement>) => {
@@ -110,18 +110,9 @@ export const Modal = (props: ModalProps) => {
110
110
  {leftIcon && <i className={leftIcon} aria-hidden={true}/>}
111
111
  {title}
112
112
  </div>
113
- {fullscreen && helpUrl &&
114
- <div className="common-modal-help">
115
- <Link
116
- className="common-button menu-button"
117
- title={lf("Help on {0} dialog", title)}
118
- href={props.helpUrl}
119
- target="_blank"
120
- >
121
- <span className="common-button-flex">
122
- <i className="fas fa-question" aria-hidden={true}/>
123
- </span>
124
- </Link>
113
+ {fullscreen && rightHeader &&
114
+ <div className="common-modal-right-menu">
115
+ {rightHeader}
125
116
  </div>
126
117
  }
127
118
  {!fullscreen && !hideDismissButton &&
@@ -112,21 +112,28 @@
112
112
  align-items: center;
113
113
  font-size: 1.2rem;
114
114
  font-weight: 600;
115
-
116
- .common-button.men .fas {
117
-
118
- }
119
115
  }
120
116
 
121
117
  .common-modal-back:focus-within {
122
118
  border: 1px, solid var(--pxt-focus-border);
123
119
  }
124
120
 
121
+ .common-modal-right-menu {
122
+ display: flex;
123
+ flex-direction: row;
124
+ align-items: center;
125
+ }
126
+
125
127
  .common-modal-help {
126
128
  display: flex;
127
129
  align-items: center;
128
130
  font-size: 1.2rem;
129
131
  font-weight: 600;
132
+ height: 100%;
133
+
134
+ a:hover {
135
+ color: var(--pxt-primary-foreground);
136
+ }
130
137
  }
131
138
 
132
139
  .common-modal-title {
package/theme/home.less CHANGED
@@ -445,6 +445,7 @@
445
445
  flex: 1 1 auto;
446
446
  min-height: 0;
447
447
  box-sizing: border-box;
448
+ padding-bottom: 1.5rem;
448
449
  }
449
450
  }
450
451
  .actions {
@@ -996,9 +997,6 @@
996
997
  }
997
998
  }
998
999
  .detailview {
999
- .project-info .segment {
1000
- padding-bottom: 1.5rem;
1001
- }
1002
1000
  .ui.grid.stackable .actions {
1003
1001
  // Switch to flex so multiple action cards shrink to fit on
1004
1002
  // narrower (e.g. iPad portrait, ~834px) viewports instead of
@@ -9,7 +9,7 @@
9
9
  <link rel="stylesheet" data-rtl="/blb/rtlsemantic.css" href="/blb/semantic.css">
10
10
  <link rel="stylesheet" href="/blb/icons.css">
11
11
  <link rel="stylesheet" href="/blb/react-common-multiplayer.css">
12
- <script defer="defer" src="/blb/multiplayer/js/main.58655f23.js"></script><link href="/blb/multiplayer/css/main.40f89d37.css" rel="stylesheet"></head>
12
+ <script defer="defer" src="/blb/multiplayer/js/main.db72096c.js"></script><link href="/blb/multiplayer/css/main.40f89d37.css" rel="stylesheet"></head>
13
13
  <body class="pxt-theme-root">
14
14
  <noscript>You need to enable JavaScript to run this app.</noscript>
15
15
 
@@ -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.e779c5ca.js"></script><link href="/blb/skillmap/css/main.450cb46e.css" rel="stylesheet"></head>
10
+ <script defer="defer" src="/blb/skillmap/js/main.a003cb90.js"></script><link href="/blb/skillmap/css/main.450cb46e.css" rel="stylesheet"></head>
11
11
  <body class="pxt-theme-root">
12
12
  <noscript>You need to enable JavaScript to run this app.</noscript>
13
13
 
@@ -18,7 +18,7 @@
18
18
  <!-- <link rel="manifest" href="/teachertool-data/manifest.json" /> -->
19
19
  <title>MakeCode Code Evaluation</title>
20
20
  <script>var pxtConfig=null</script>
21
- <script defer="defer" src="/blb/teachertool/js/main.3e785c99.js"></script><link href="/blb/teachertool/css/main.8ef9c91e.css" rel="stylesheet"></head>
21
+ <script defer="defer" src="/blb/teachertool/js/main.168add6b.js"></script><link href="/blb/teachertool/css/main.8ef9c91e.css" rel="stylesheet"></head>
22
22
  <body class="pxt-theme-root">
23
23
  <noscript>You need to enable JavaScript to run this app.</noscript>
24
24
 
@@ -17,7 +17,7 @@
17
17
  <!-- <link rel="manifest" href="/tutorialtool-data/manifest.json" /> -->
18
18
  <title>MakeCode Tutorial Tool</title>
19
19
  <script>var pxtConfig=null</script>
20
- <script defer="defer" src="/blb/tutorialtool/js/main.2801f080.js"></script><link href="/blb/tutorialtool/css/main.02bb1797.css" rel="stylesheet"></head>
20
+ <script defer="defer" src="/blb/tutorialtool/js/main.16de6eb5.js"></script><link href="/blb/tutorialtool/css/main.02bb1797.css" rel="stylesheet"></head>
21
21
 
22
22
  <body>
23
23
  <noscript>You need to enable JavaScript to run this app.</noscript>