pxt-core 7.4.14 → 7.4.15
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 +8 -0
- package/built/nodeutil.d.ts +1 -1
- package/built/nodeutil.js +2 -2
- package/built/pxt.js +9 -0
- package/built/pxtblockly.js +5 -2
- package/built/pxtblocks.d.ts +1 -0
- package/built/pxtblocks.js +5 -2
- package/built/pxtlib.js +1 -0
- package/built/target.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtblockly.js +1 -1
- package/built/web/pxtblocks.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-skillmap.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/css/main.b2b69d60.chunk.css +1 -0
- package/built/web/skillmap/js/2.fce3190c.chunk.js +2 -0
- package/built/web/skillmap/js/main.9d64b2d7.chunk.js +1 -0
- package/package.json +3 -3
- package/react-common/components/controls/Button.tsx +4 -3
- package/react-common/components/controls/Checkbox.tsx +47 -0
- package/react-common/components/controls/Input.tsx +117 -0
- package/react-common/components/controls/List.tsx +2 -3
- package/react-common/components/controls/Modal.tsx +143 -0
- package/react-common/components/profile/Profile.tsx +1 -1
- package/react-common/components/profile/UserPane.tsx +12 -8
- package/react-common/components/util.tsx +9 -0
- package/react-common/styles/controls/Button.less +17 -0
- package/react-common/styles/controls/Checkbox.less +13 -0
- package/react-common/styles/controls/Input.less +95 -0
- package/react-common/styles/controls/Modal.less +105 -0
- package/react-common/styles/controls/Spinner.less +24 -0
- package/react-common/styles/profile/profile.less +12 -0
- package/react-common/styles/react-common-variables.less +38 -3
- package/react-common/styles/react-common.less +4 -0
- package/theme/asset-editor.less +13 -29
- package/webapp/public/skillmap.html +2 -2
- package/built/web/skillmap/css/main.369ecead.chunk.css +0 -1
- package/built/web/skillmap/js/2.dc66e964.chunk.js +0 -2
- package/built/web/skillmap/js/main.e89a1af7.chunk.js +0 -1
- package/react-common/components/Checkbox.tsx +0 -25
package/built/cli.js
CHANGED
|
@@ -1831,6 +1831,7 @@ async function buildSemanticUIAsync(parsed) {
|
|
|
1831
1831
|
if (!isPxtCore) {
|
|
1832
1832
|
// This is just to support the local skillmap serve for development
|
|
1833
1833
|
nodeutil.cp("built/web/react-common-skillmap.css", "node_modules/pxt-core/skillmap/public/blb");
|
|
1834
|
+
nodeutil.cp("built/web/semantic.css", "node_modules/pxt-core/skillmap/public/blb");
|
|
1834
1835
|
}
|
|
1835
1836
|
}
|
|
1836
1837
|
async function linkFontAsync(font, semCss, sourceDir = "node_modules/semantic-ui-less/themes/default/assets/fonts/", refDir = "fonts\\/") {
|
|
@@ -1852,6 +1853,7 @@ function buildWebStringsAsync() {
|
|
|
1852
1853
|
function buildSkillMapAsync(parsed) {
|
|
1853
1854
|
// local serve
|
|
1854
1855
|
const skillmapRoot = "node_modules/pxt-core/skillmap";
|
|
1856
|
+
const reactScriptsConfigRoot = `${skillmapRoot}/node_modules/react-scripts/config`;
|
|
1855
1857
|
const docsPath = parsed.flags["docs"];
|
|
1856
1858
|
return rimrafAsync(`${skillmapRoot}/public/blb`, {})
|
|
1857
1859
|
.then(() => rimrafAsync(`${skillmapRoot}/build/assets`, {}))
|
|
@@ -1867,6 +1869,12 @@ function buildSkillMapAsync(parsed) {
|
|
|
1867
1869
|
nodeutil.cp("node_modules/pxt-core/built/web/react-common-skillmap.css", `${skillmapRoot}/public/blb`);
|
|
1868
1870
|
// copy 'assets' over from docs/static
|
|
1869
1871
|
nodeutil.cpR("docs/static/skillmap/assets", `${skillmapRoot}/public/assets`);
|
|
1872
|
+
// copy default react-scripts webpack config into a webpack.config.base file if necessary
|
|
1873
|
+
if (!fs.existsSync(`${reactScriptsConfigRoot}/webpack.config.base.js`)) {
|
|
1874
|
+
nodeutil.cp(`${reactScriptsConfigRoot}/webpack.config.js`, reactScriptsConfigRoot, "webpack.config.base.js");
|
|
1875
|
+
}
|
|
1876
|
+
// wrap the config in our webpack.config.override for build customization
|
|
1877
|
+
nodeutil.cp(`${skillmapRoot}/webpack.config.override.js`, reactScriptsConfigRoot, "webpack.config.js");
|
|
1870
1878
|
if (docsPath) {
|
|
1871
1879
|
// copy docs over from specified path
|
|
1872
1880
|
nodeutil.cpR(`docs/${docsPath}`, `${skillmapRoot}/public/docs/${docsPath}`);
|
package/built/nodeutil.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function getPxtTarget(): pxt.TargetBundle;
|
|
|
42
42
|
export declare function pathToPtr(path: string): string;
|
|
43
43
|
export declare function mkdirP(thePath: string): void;
|
|
44
44
|
export declare function cpR(src: string, dst: string, maxDepth?: number): void;
|
|
45
|
-
export declare function cp(srcFile: string, destDirectory: string): void;
|
|
45
|
+
export declare function cp(srcFile: string, destDirectory: string, destName?: string): void;
|
|
46
46
|
export declare function allFiles(top: string, maxDepth?: number, allowMissing?: boolean, includeDirs?: boolean, ignoredFileMarker?: string): string[];
|
|
47
47
|
export declare function existsDirSync(name: string): boolean;
|
|
48
48
|
export declare function writeFileSync(p: string, data: any, options?: {
|
package/built/nodeutil.js
CHANGED
|
@@ -328,9 +328,9 @@ function cpR(src, dst, maxDepth = 8) {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
exports.cpR = cpR;
|
|
331
|
-
function cp(srcFile, destDirectory) {
|
|
331
|
+
function cp(srcFile, destDirectory, destName) {
|
|
332
332
|
mkdirP(destDirectory);
|
|
333
|
-
let dest = path.resolve(destDirectory, path.basename(srcFile));
|
|
333
|
+
let dest = path.resolve(destDirectory, destName || path.basename(srcFile));
|
|
334
334
|
let buf = fs.readFileSync(path.resolve(srcFile));
|
|
335
335
|
fs.writeFileSync(dest, buf);
|
|
336
336
|
}
|
package/built/pxt.js
CHANGED
|
@@ -99899,6 +99899,7 @@ var ts;
|
|
|
99899
99899
|
"bn": { englishName: "Bengali", localizedName: "বাংলা" },
|
|
99900
99900
|
"ca": { englishName: "Catalan", localizedName: "Català" },
|
|
99901
99901
|
"cs": { englishName: "Czech", localizedName: "Čeština" },
|
|
99902
|
+
"cy": { englishName: "Welsh", localizedName: "Cymraeg" },
|
|
99902
99903
|
"da": { englishName: "Danish", localizedName: "Dansk" },
|
|
99903
99904
|
"de": { englishName: "German", localizedName: "Deutsch" },
|
|
99904
99905
|
"el": { englishName: "Greek", localizedName: "Ελληνικά" },
|
|
@@ -157781,6 +157782,7 @@ async function buildSemanticUIAsync(parsed) {
|
|
|
157781
157782
|
if (!isPxtCore) {
|
|
157782
157783
|
// This is just to support the local skillmap serve for development
|
|
157783
157784
|
nodeutil.cp("built/web/react-common-skillmap.css", "node_modules/pxt-core/skillmap/public/blb");
|
|
157785
|
+
nodeutil.cp("built/web/semantic.css", "node_modules/pxt-core/skillmap/public/blb");
|
|
157784
157786
|
}
|
|
157785
157787
|
}
|
|
157786
157788
|
async function linkFontAsync(font, semCss, sourceDir = "node_modules/semantic-ui-less/themes/default/assets/fonts/", refDir = "fonts\\/") {
|
|
@@ -157802,6 +157804,7 @@ function buildWebStringsAsync() {
|
|
|
157802
157804
|
function buildSkillMapAsync(parsed) {
|
|
157803
157805
|
// local serve
|
|
157804
157806
|
const skillmapRoot = "node_modules/pxt-core/skillmap";
|
|
157807
|
+
const reactScriptsConfigRoot = `${skillmapRoot}/node_modules/react-scripts/config`;
|
|
157805
157808
|
const docsPath = parsed.flags["docs"];
|
|
157806
157809
|
return rimrafAsync(`${skillmapRoot}/public/blb`, {})
|
|
157807
157810
|
.then(() => rimrafAsync(`${skillmapRoot}/build/assets`, {}))
|
|
@@ -157817,6 +157820,12 @@ function buildSkillMapAsync(parsed) {
|
|
|
157817
157820
|
nodeutil.cp("node_modules/pxt-core/built/web/react-common-skillmap.css", `${skillmapRoot}/public/blb`);
|
|
157818
157821
|
// copy 'assets' over from docs/static
|
|
157819
157822
|
nodeutil.cpR("docs/static/skillmap/assets", `${skillmapRoot}/public/assets`);
|
|
157823
|
+
// copy default react-scripts webpack config into a webpack.config.base file if necessary
|
|
157824
|
+
if (!fs.existsSync(`${reactScriptsConfigRoot}/webpack.config.base.js`)) {
|
|
157825
|
+
nodeutil.cp(`${reactScriptsConfigRoot}/webpack.config.js`, reactScriptsConfigRoot, "webpack.config.base.js");
|
|
157826
|
+
}
|
|
157827
|
+
// wrap the config in our webpack.config.override for build customization
|
|
157828
|
+
nodeutil.cp(`${skillmapRoot}/webpack.config.override.js`, reactScriptsConfigRoot, "webpack.config.js");
|
|
157820
157829
|
if (docsPath) {
|
|
157821
157830
|
// copy docs over from specified path
|
|
157822
157831
|
nodeutil.cpR(`docs/${docsPath}`, `${skillmapRoot}/public/docs/${docsPath}`);
|
package/built/pxtblockly.js
CHANGED
|
@@ -6952,7 +6952,7 @@ var pxt;
|
|
|
6952
6952
|
layout.serializeSvgString = serializeSvgString;
|
|
6953
6953
|
function cleanUpBlocklySvg(svg) {
|
|
6954
6954
|
pxt.BrowserUtils.removeClass(svg, "blocklySvg");
|
|
6955
|
-
pxt.BrowserUtils.addClass(svg, "blocklyPreview pxt-renderer");
|
|
6955
|
+
pxt.BrowserUtils.addClass(svg, "blocklyPreview pxt-renderer classic-theme");
|
|
6956
6956
|
// Remove background elements
|
|
6957
6957
|
pxt.U.toArray(svg.querySelectorAll('.blocklyMainBackground,.blocklyScrollbarBackground'))
|
|
6958
6958
|
.forEach(el => { if (el)
|
|
@@ -13085,7 +13085,6 @@ var pxtblockly;
|
|
|
13085
13085
|
}
|
|
13086
13086
|
initView() {
|
|
13087
13087
|
super.initView();
|
|
13088
|
-
this.initVariables();
|
|
13089
13088
|
}
|
|
13090
13089
|
onItemSelected_(menu, menuItem) {
|
|
13091
13090
|
const value = menuItem.getValue();
|
|
@@ -13103,6 +13102,10 @@ var pxtblockly;
|
|
|
13103
13102
|
this.getOptions();
|
|
13104
13103
|
return super.doClassValidation_(value);
|
|
13105
13104
|
}
|
|
13105
|
+
getOptions(opt_useCache) {
|
|
13106
|
+
this.initVariables();
|
|
13107
|
+
return super.getOptions(opt_useCache);
|
|
13108
|
+
}
|
|
13106
13109
|
initVariables() {
|
|
13107
13110
|
if (this.sourceBlock_ && this.sourceBlock_.workspace) {
|
|
13108
13111
|
const ws = this.sourceBlock_.workspace;
|
package/built/pxtblocks.d.ts
CHANGED
|
@@ -776,6 +776,7 @@ declare namespace pxtblockly {
|
|
|
776
776
|
initView(): void;
|
|
777
777
|
onItemSelected_(menu: Blockly.Menu, menuItem: Blockly.MenuItem): void;
|
|
778
778
|
doClassValidation_(value: any): string;
|
|
779
|
+
getOptions(opt_useCache?: boolean): any[][];
|
|
779
780
|
private initVariables;
|
|
780
781
|
}
|
|
781
782
|
}
|
package/built/pxtblocks.js
CHANGED
|
@@ -3328,7 +3328,7 @@ var pxt;
|
|
|
3328
3328
|
layout.serializeSvgString = serializeSvgString;
|
|
3329
3329
|
function cleanUpBlocklySvg(svg) {
|
|
3330
3330
|
pxt.BrowserUtils.removeClass(svg, "blocklySvg");
|
|
3331
|
-
pxt.BrowserUtils.addClass(svg, "blocklyPreview pxt-renderer");
|
|
3331
|
+
pxt.BrowserUtils.addClass(svg, "blocklyPreview pxt-renderer classic-theme");
|
|
3332
3332
|
// Remove background elements
|
|
3333
3333
|
pxt.U.toArray(svg.querySelectorAll('.blocklyMainBackground,.blocklyScrollbarBackground'))
|
|
3334
3334
|
.forEach(el => { if (el)
|
|
@@ -9461,7 +9461,6 @@ var pxtblockly;
|
|
|
9461
9461
|
}
|
|
9462
9462
|
initView() {
|
|
9463
9463
|
super.initView();
|
|
9464
|
-
this.initVariables();
|
|
9465
9464
|
}
|
|
9466
9465
|
onItemSelected_(menu, menuItem) {
|
|
9467
9466
|
const value = menuItem.getValue();
|
|
@@ -9479,6 +9478,10 @@ var pxtblockly;
|
|
|
9479
9478
|
this.getOptions();
|
|
9480
9479
|
return super.doClassValidation_(value);
|
|
9481
9480
|
}
|
|
9481
|
+
getOptions(opt_useCache) {
|
|
9482
|
+
this.initVariables();
|
|
9483
|
+
return super.getOptions(opt_useCache);
|
|
9484
|
+
}
|
|
9482
9485
|
initVariables() {
|
|
9483
9486
|
if (this.sourceBlock_ && this.sourceBlock_.workspace) {
|
|
9484
9487
|
const ws = this.sourceBlock_.workspace;
|
package/built/pxtlib.js
CHANGED
|
@@ -2213,6 +2213,7 @@ var ts;
|
|
|
2213
2213
|
"bn": { englishName: "Bengali", localizedName: "বাংলা" },
|
|
2214
2214
|
"ca": { englishName: "Catalan", localizedName: "Català" },
|
|
2215
2215
|
"cs": { englishName: "Czech", localizedName: "Čeština" },
|
|
2216
|
+
"cy": { englishName: "Welsh", localizedName: "Cymraeg" },
|
|
2216
2217
|
"da": { englishName: "Danish", localizedName: "Dansk" },
|
|
2217
2218
|
"de": { englishName: "German", localizedName: "Deutsch" },
|
|
2218
2219
|
"el": { englishName: "Greek", localizedName: "Ελληνικά" },
|