pxt-core 13.1.3 → 13.1.5
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/cli.js +17 -4
- package/built/pxt.js +19 -4
- package/built/pxtlib.js +2 -0
- package/built/react-common/components/controls/Modal.d.ts +1 -1
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/multiplayer/js/{main.58655f23.js → main.db72096c.js} +2 -2
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +20 -20
- 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.e779c5ca.js → main.a003cb90.js} +2 -2
- package/built/web/teachertool/js/{main.3e785c99.js → main.168add6b.js} +2 -2
- package/built/web/tutorialtool/js/{main.2801f080.js → main.16de6eb5.js} +2 -2
- package/package.json +1 -1
- package/react-common/components/controls/Modal.tsx +5 -14
- package/react-common/styles/controls/Modal.less +11 -4
- 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
|
@@ -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 &&
|
|
114
|
-
<div className="common-modal-
|
|
115
|
-
|
|
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 {
|
|
@@ -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.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.
|
|
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.
|
|
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.
|
|
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>
|