pxt-core 12.3.20 → 12.3.22
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 +2 -2
- package/built/pxt.js +262 -81
- package/built/pxtcompiler.d.ts +6 -0
- package/built/pxtcompiler.js +62 -17
- package/built/pxtlib.d.ts +11 -5
- package/built/pxtlib.js +198 -62
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/tests/blocksrunner.js +29 -9
- package/built/tests/blockssetup.js +29 -9
- package/built/web/main.js +2 -2
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +2 -2
- package/built/web/pxtcompiler.js +1 -1
- package/built/web/pxtembed.js +2 -2
- 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/runnerembed.js +2 -2
- package/built/web/semantic.css +1 -1
- package/localtypings/pxtarget.d.ts +4 -0
- package/package.json +1 -1
- package/react-common/styles/react-common-variables.less +1 -1
- package/theme/errorList.less +38 -0
|
@@ -980,6 +980,7 @@ declare namespace ts.pxtc {
|
|
|
980
980
|
enumIsHash?: boolean; // if true, the name of the enum is normalized, then hashed to generate the value
|
|
981
981
|
enumPromptHint?: string; // The hint that will be displayed in the member creation prompt
|
|
982
982
|
enumInitialMembers?: string[]; // The initial enum values which will be given the lowest values available
|
|
983
|
+
ariaLabel?: string; // The aria label for the enum value if the screen reader text should differ from the block value in dropdown items
|
|
983
984
|
|
|
984
985
|
/* end enum-only attributes */
|
|
985
986
|
|
|
@@ -1016,6 +1017,8 @@ declare namespace ts.pxtc {
|
|
|
1016
1017
|
_expandedDef?: ParsedBlockDef;
|
|
1017
1018
|
_untranslatedBlock?: string; // The block definition before it was translated
|
|
1018
1019
|
_untranslatedJsDoc?: string // the jsDoc before it was translated
|
|
1020
|
+
_untranslatedParamDefl?: pxt.Map<string>; // the parameter defaults before they were translated
|
|
1021
|
+
_untranslatedAriaLabel?: string; // the aria label before it was translated
|
|
1019
1022
|
_translatedLanguageCode?: string // the language this block has been translated into
|
|
1020
1023
|
_shadowOverrides?: pxt.Map<string>;
|
|
1021
1024
|
jsDoc?: string;
|
|
@@ -1132,6 +1135,7 @@ declare namespace ts.pxtc {
|
|
|
1132
1135
|
fileSystem: pxt.Map<string>;
|
|
1133
1136
|
target: CompileTarget;
|
|
1134
1137
|
testMode?: boolean;
|
|
1138
|
+
enhancedErrors?: boolean; // enable extra editor-only diagnostics
|
|
1135
1139
|
sourceFiles?: string[]; // list of file names
|
|
1136
1140
|
sourceTexts?: string[]; // list of file text content (TS string)
|
|
1137
1141
|
generatedFiles?: string[];
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* Checkboxes *
|
|
24
24
|
****************************************************/
|
|
25
25
|
|
|
26
|
-
@checkboxFocusOutline: var(--pxt-
|
|
26
|
+
@checkboxFocusOutline: var(--pxt-focus-border) solid 3px;
|
|
27
27
|
|
|
28
28
|
/****************************************************
|
|
29
29
|
* EditorToggle *
|
package/theme/errorList.less
CHANGED
|
@@ -152,6 +152,44 @@
|
|
|
152
152
|
&.stackframe {
|
|
153
153
|
padding-left: 2em;
|
|
154
154
|
}
|
|
155
|
+
|
|
156
|
+
&.errorListItemRow {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: 0.5rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.errorListItemMessage {
|
|
163
|
+
flex: 1 1 auto;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
margin: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
background: none;
|
|
168
|
+
color: inherit;
|
|
169
|
+
line-height: inherit;
|
|
170
|
+
text-align: start;
|
|
171
|
+
|
|
172
|
+
&:hover {
|
|
173
|
+
filter: none;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.errorListItemText {
|
|
178
|
+
overflow-wrap: anywhere;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.errorListItemActions {
|
|
182
|
+
flex: 0 0 auto;
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.errorListAction {
|
|
188
|
+
margin: 0;
|
|
189
|
+
padding: 0.7rem;
|
|
190
|
+
line-height: 0.8rem;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
155
193
|
}
|
|
156
194
|
}
|
|
157
195
|
}
|