pxt-core 12.3.21 → 12.3.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 +73 -42
- package/built/pxtcompiler.d.ts +6 -0
- package/built/pxtcompiler.js +55 -15
- package/built/pxtlib.d.ts +0 -3
- package/built/pxtlib.js +18 -27
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/tests/blocksrunner.js +11 -2
- package/built/tests/blockssetup.js +11 -2
- 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/rtlsemantic.css +1 -1
- package/built/web/runnerembed.js +2 -2
- package/built/web/semantic.css +1 -1
- package/localtypings/pxtarget.d.ts +3 -0
- package/package.json +1 -1
- package/theme/common.less +34 -0
- 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
|
|
|
@@ -1017,6 +1018,7 @@ declare namespace ts.pxtc {
|
|
|
1017
1018
|
_untranslatedBlock?: string; // The block definition before it was translated
|
|
1018
1019
|
_untranslatedJsDoc?: string // the jsDoc before it was translated
|
|
1019
1020
|
_untranslatedParamDefl?: pxt.Map<string>; // the parameter defaults before they were translated
|
|
1021
|
+
_untranslatedAriaLabel?: string; // the aria label before it was translated
|
|
1020
1022
|
_translatedLanguageCode?: string // the language this block has been translated into
|
|
1021
1023
|
_shadowOverrides?: pxt.Map<string>;
|
|
1022
1024
|
jsDoc?: string;
|
|
@@ -1133,6 +1135,7 @@ declare namespace ts.pxtc {
|
|
|
1133
1135
|
fileSystem: pxt.Map<string>;
|
|
1134
1136
|
target: CompileTarget;
|
|
1135
1137
|
testMode?: boolean;
|
|
1138
|
+
enhancedErrors?: boolean; // enable extra editor-only diagnostics
|
|
1136
1139
|
sourceFiles?: string[]; // list of file names
|
|
1137
1140
|
sourceTexts?: string[]; // list of file text content (TS string)
|
|
1138
1141
|
generatedFiles?: string[];
|
package/package.json
CHANGED
package/theme/common.less
CHANGED
|
@@ -299,6 +299,40 @@ pre {
|
|
|
299
299
|
color: var(--pxt-primary-foreground-hover) !important;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
+
|
|
303
|
+
.file-list-item {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: row;
|
|
306
|
+
align-items: center;
|
|
307
|
+
|
|
308
|
+
.file-list-item-contents {
|
|
309
|
+
flex-grow: 1;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.button:focus-visible {
|
|
313
|
+
outline: @editorFocusBorderSize solid var(--pxt-focus-border);
|
|
314
|
+
outline-offset: 2px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.nested {
|
|
318
|
+
font-size: 0.9rem;
|
|
319
|
+
padding-left: 2rem;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
& > i.icon.chevron {
|
|
323
|
+
margin-right: 0;
|
|
324
|
+
margin-left: 0.5rem;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
& > i.icon.folder {
|
|
328
|
+
margin-right: 0.3rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&:focus-visible {
|
|
332
|
+
outline-offset: -3px;
|
|
333
|
+
outline: @editorFocusBorderSize solid var(--pxt-focus-border);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
302
336
|
}
|
|
303
337
|
|
|
304
338
|
.filemenu .nested.item {
|
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
|
}
|