From 6b19bd1a37f92efbd5e1fadd39f9b28752dbfcba Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Sun, 12 Nov 2023 18:27:35 +0300 Subject: [PATCH 1/8] fix-info-method-for-ambient-ref-mods I made a bug in the previous changes. [object] was displayed on the screen in these modes --- libs/color-sensor/color.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index 34fd3f82..6b14c5d9 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -120,7 +120,7 @@ namespace sensors { "brown"][this._query()[0]]]; case ColorSensorMode.AmbientLightIntensity: case ColorSensorMode.ReflectedLightIntensity: - return [`${this._query()}%`]; + return [`${this._query()[0]}%`]; case ColorSensorMode.RgbRaw: return this._query().map(number => number.toString()); default: From 08dd25042f5fc3d9d143662e5480baba4485bc71 Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Sun, 12 Nov 2023 18:28:27 +0300 Subject: [PATCH 2/8] bump-pxt-9.3.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index daa1c029..2169f19b 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "pxt-common-packages": "11.1.2", - "pxt-core": "9.1.23" + "pxt-core": "9.3.5" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis" From 695551f77998ed7cf6a909fa2cf4b7db8d8bdd2f Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Thu, 14 Dec 2023 01:10:28 +0300 Subject: [PATCH 3/8] bump-pxt-core-and-common-packages --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2169f19b..55fd4c70 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "typescript": "^4.2.3" }, "dependencies": { - "pxt-common-packages": "11.1.2", - "pxt-core": "9.3.5" + "pxt-common-packages": "11.1.4", + "pxt-core": "9.3.9" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis" From ea59c49e6934962ef880e94ac42dd162485c1573 Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Thu, 14 Dec 2023 01:50:49 +0300 Subject: [PATCH 4/8] height-of-field-motors-btn-is-same-for-everyone Set the height of the field-motors buttons to be the same for all. --- fieldeditors/field_motors.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fieldeditors/field_motors.ts b/fieldeditors/field_motors.ts index f904ca28..069d7c30 100644 --- a/fieldeditors/field_motors.ts +++ b/fieldeditors/field_motors.ts @@ -94,6 +94,7 @@ export class FieldMotors extends pxtblockly.FieldImages implements Blockly.Field // Store a data attribute on all possible click targets so we can match it to the icon. button.setAttribute('data-value', value); buttonImg.setAttribute('data-value', value); + buttonImg.style.height = 'auto'; button.appendChild(buttonImg); if (this.addLabel_) { const buttonText = this.createTextNode_(content.alt); @@ -106,6 +107,8 @@ export class FieldMotors extends pxtblockly.FieldImages implements Blockly.Field contentDiv.appendChild(button); } contentDiv.style.width = (this as any).width_ + 'px'; + contentDiv.style.display = 'flex'; + contentDiv.style.alignItems = 'stretch'; dropdownDiv.appendChild(contentDiv); Blockly.DropDownDiv.setColour(sourceBlock.getColour(), sourceBlock.getColourTertiary()); From 3a599190bab00a74c1c80bfc80e858422d687a60 Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Fri, 22 Dec 2023 00:12:20 +0300 Subject: [PATCH 5/8] typescipt-bump-4.8.3 I upgraded the ts version to the arcade version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 55fd4c70..0f62afd9 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "react": "16.8.3", "react-dom": "16.11.0", "semantic-ui-less": "2.4.1", - "typescript": "^4.2.3" + "typescript": "4.8.3" }, "dependencies": { "pxt-common-packages": "11.1.4", From 809919efdb58cce485e99f7b2272079d356b4a5b Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Fri, 5 Jan 2024 19:55:14 +0300 Subject: [PATCH 6/8] bump-pxt-9.3.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f62afd9..61b71aea 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "pxt-common-packages": "11.1.4", - "pxt-core": "9.3.9" + "pxt-core": "9.3.10" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis" From 5a15af01a9e21f5371df6825a022534d22b0f82e Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Sun, 7 Jan 2024 15:48:07 +0300 Subject: [PATCH 7/8] bump-pxt-9.3.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61b71aea..f63e4f1d 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "pxt-common-packages": "11.1.4", - "pxt-core": "9.3.10" + "pxt-core": "9.3.11" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis" From 5e4ad3f7762f4094dae949cc42983898aeb3dfdb Mon Sep 17 00:00:00 2001 From: Dmitriy Antipov Date: Thu, 25 Jan 2024 00:36:51 +0300 Subject: [PATCH 8/8] pxt-core-and-common-packages-bump --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f63e4f1d..d6ca79a6 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "typescript": "4.8.3" }, "dependencies": { - "pxt-common-packages": "11.1.4", - "pxt-core": "9.3.11" + "pxt-common-packages": "11.1.6", + "pxt-core": "9.3.13" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis"