pxt-core 11.2.21 → 11.2.23
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/built/pxt.js +1 -1
- package/built/pxtlib.js +1 -1
- package/built/react-common/components/controls/Link.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/multiplayer/js/{main.66c0e9ad.js → main.7e1dc338.js} +2 -2
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/react-common-authcode.css +1 -1
- package/built/web/react-common-multiplayer.css +1 -1
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlreact-common-authcode.css +1 -1
- package/built/web/rtlreact-common-multiplayer.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/skillmap/js/{main.14978cef.js → main.f7efa940.js} +2 -2
- package/built/web/teachertool/js/{main.0f60d949.js → main.0def8f99.js} +2 -2
- package/built/web/tutorialtool/js/{main.a6ca0e3f.js → main.f519ebe4.js} +2 -2
- package/package.json +1 -1
- package/react-common/components/controls/Link.tsx +5 -2
- package/react-common/components/controls/Modal.tsx +9 -5
- package/react-common/components/extensions/ExtensionCard.tsx +7 -7
- package/react-common/styles/controls/Button.less +6 -0
- package/react-common/styles/extensions/ExtensionCard.less +2 -1
- package/webapp/public/multi.html +0 -5
- package/webapp/public/multiplayer.html +1 -1
- package/webapp/public/skillmap.html +1 -1
- package/webapp/public/teachertool.html +1 -1
- package/webapp/public/tutorialtool.html +1 -1
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export interface LinkProps extends ContainerProps {
|
|
|
5
5
|
href: string;
|
|
6
6
|
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
7
7
|
tabIndex?: number;
|
|
8
|
+
title?: string;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export const Link = (props: LinkProps) => {
|
|
@@ -15,7 +16,8 @@ export const Link = (props: LinkProps) => {
|
|
|
15
16
|
href,
|
|
16
17
|
target,
|
|
17
18
|
children,
|
|
18
|
-
tabIndex
|
|
19
|
+
tabIndex,
|
|
20
|
+
title
|
|
19
21
|
} = props;
|
|
20
22
|
|
|
21
23
|
const classes = classList(
|
|
@@ -32,7 +34,8 @@ export const Link = (props: LinkProps) => {
|
|
|
32
34
|
target={target}
|
|
33
35
|
rel={target === "_blank" ? "noopener noreferrer" : ""}
|
|
34
36
|
tabIndex={tabIndex ?? 0}
|
|
35
|
-
|
|
37
|
+
title={title}
|
|
38
|
+
>
|
|
36
39
|
{children}
|
|
37
40
|
</a>
|
|
38
41
|
);
|
|
@@ -3,6 +3,7 @@ import * as ReactDOM from "react-dom";
|
|
|
3
3
|
import { classList, ContainerProps } from "../util";
|
|
4
4
|
import { Button } from "./Button";
|
|
5
5
|
import { FocusTrap } from "./FocusTrap";
|
|
6
|
+
import { Link } from "./Link";
|
|
6
7
|
|
|
7
8
|
export interface ModalAction {
|
|
8
9
|
label: string;
|
|
@@ -86,13 +87,16 @@ export const Modal = (props: ModalProps) => {
|
|
|
86
87
|
</div>
|
|
87
88
|
{fullscreen && helpUrl &&
|
|
88
89
|
<div className="common-modal-help">
|
|
89
|
-
<
|
|
90
|
-
className="menu-button"
|
|
90
|
+
<Link
|
|
91
|
+
className="common-button menu-button"
|
|
91
92
|
title={lf("Help on {0} dialog", title)}
|
|
92
93
|
href={props.helpUrl}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
target="_blank"
|
|
95
|
+
>
|
|
96
|
+
<span className="common-button-flex">
|
|
97
|
+
<i className="fas fa-question" aria-hidden={true}/>
|
|
98
|
+
</span>
|
|
99
|
+
</Link>
|
|
96
100
|
</div>
|
|
97
101
|
}
|
|
98
102
|
{!fullscreen && !hideDismissButton &&
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Button } from "../controls/Button";
|
|
3
2
|
import { Card } from "../controls/Card";
|
|
4
3
|
import { LazyImage } from "../controls/LazyImage";
|
|
5
4
|
import { classList } from "../util";
|
|
5
|
+
import { Link } from "../controls/Link";
|
|
6
6
|
|
|
7
7
|
export interface ExtensionCardProps<U> {
|
|
8
8
|
title: string;
|
|
@@ -46,7 +46,7 @@ export const ExtensionCard = <U,>(props: ExtensionCardProps<U>) => {
|
|
|
46
46
|
<div className="common-extension-card-contents">
|
|
47
47
|
{!loading && <>
|
|
48
48
|
{imageUrl && <LazyImage src={imageUrl} alt={title} />}
|
|
49
|
-
<div className="common-extension-card-title" id={id + "-title"}>
|
|
49
|
+
<div className="common-extension-card-title" id={id + "-title"} title={title}>
|
|
50
50
|
{title}
|
|
51
51
|
</div>
|
|
52
52
|
<div className="common-extension-card-description">
|
|
@@ -58,13 +58,13 @@ export const ExtensionCard = <U,>(props: ExtensionCardProps<U>) => {
|
|
|
58
58
|
<div className="common-extension-card-extra-content">
|
|
59
59
|
{showDisclaimer && lf("User-provided extension, not endorsed by Microsoft.")}
|
|
60
60
|
{learnMoreUrl &&
|
|
61
|
-
<
|
|
61
|
+
<Link
|
|
62
62
|
className="link-button"
|
|
63
|
-
label={lf("Learn More")}
|
|
64
|
-
title={lf("Learn More")}
|
|
65
|
-
onClick={() => { }}
|
|
66
63
|
href={learnMoreUrl}
|
|
67
|
-
|
|
64
|
+
target="_blank"
|
|
65
|
+
>
|
|
66
|
+
{lf("Learn More")}
|
|
67
|
+
</Link>
|
|
68
68
|
}
|
|
69
69
|
</div>
|
|
70
70
|
}
|
|
@@ -227,6 +227,11 @@
|
|
|
227
227
|
background: none;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
a.common-button.menu-button {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
}
|
|
234
|
+
|
|
230
235
|
/****************************************************
|
|
231
236
|
* Link Buttons *
|
|
232
237
|
****************************************************/
|
|
@@ -258,6 +263,7 @@
|
|
|
258
263
|
color: @commonTextColor;
|
|
259
264
|
}
|
|
260
265
|
|
|
266
|
+
|
|
261
267
|
/****************************************************
|
|
262
268
|
* Square Buttons *
|
|
263
269
|
****************************************************/
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
font-size: 18px;
|
|
15
15
|
padding: 0.5rem 1rem 0.25rem 1rem;
|
|
16
16
|
text-overflow: ellipsis;
|
|
17
|
+
white-space: nowrap;
|
|
17
18
|
overflow: hidden;
|
|
18
19
|
flex-shrink: 0;
|
|
19
20
|
}
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
border-bottom-right-radius: 0.5rem;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
.
|
|
60
|
+
a.link-button {
|
|
60
61
|
float: right;
|
|
61
62
|
}
|
|
62
63
|
|
package/webapp/public/multi.html
CHANGED
|
@@ -71,12 +71,7 @@
|
|
|
71
71
|
var hashLeft = ""
|
|
72
72
|
var hashRight = ""
|
|
73
73
|
var route = (window.location.hash || "#");
|
|
74
|
-
// Split using :|: as well as :%7C:
|
|
75
74
|
var parts = route.replace(/^#/, '').split(':|:', 2);
|
|
76
|
-
if (parts.length == 1) {
|
|
77
|
-
//As some link out conver :|: to :%7C:
|
|
78
|
-
parts = route.replace(/^#/, '').split(':%7C:', 2);
|
|
79
|
-
}
|
|
80
75
|
updateSrc(left, parts[0]);
|
|
81
76
|
updateSrc(right, parts[1]);
|
|
82
77
|
window.history.replaceState('', '', '#')
|
|
@@ -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.
|
|
12
|
+
<script defer="defer" src="/blb/multiplayer/js/main.7e1dc338.js"></script><link href="/blb/multiplayer/css/main.53c69969.css" rel="stylesheet"></head>
|
|
13
13
|
<body>
|
|
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.
|
|
10
|
+
<script defer="defer" src="/blb/skillmap/js/main.f7efa940.js"></script><link href="/blb/skillmap/css/main.1ec2262e.css" rel="stylesheet"></head>
|
|
11
11
|
<body>
|
|
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.
|
|
21
|
+
<script defer="defer" src="/blb/teachertool/js/main.0def8f99.js"></script><link href="/blb/teachertool/css/main.a41be885.css" rel="stylesheet"></head>
|
|
22
22
|
<body>
|
|
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.
|
|
20
|
+
<script defer="defer" src="/blb/tutorialtool/js/main.f519ebe4.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>
|