Skip to content

Commit 107403b

Browse files
authored
Merge pull request #8394 from google/develop
chore: develop into V12 to pin node version
2 parents 32f8e24 + 1e3d3fd commit 107403b

File tree

8 files changed

+249
-462
lines changed

8 files changed

+249
-462
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
# TODO (#2114): re-enable osx build.
1919
# os: [ubuntu-latest, macos-latest]
2020
os: [ubuntu-latest]
21-
node-version: [18.x, 20.x, 22.x]
21+
# TODO(#8392): unpin v22 once npm issue fixed.
22+
node-version: [18.x, 20.x, 22.4.1]
2223
# See supported Node.js release schedule at
2324
# https://nodejs.org/en/about/releases/
2425

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
registry=https://registry.npmjs.org/
2+
legacy-peer-deps=true

core/block_svg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export class BlockSvg
457457
getBoundingRectangleWithoutChildren(): Rect {
458458
return this.getBoundingRectangleWithDimensions({
459459
height: this.height,
460-
width: this.width,
460+
width: this.childlessWidth,
461461
});
462462
}
463463

core/comments/comment_view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class CommentView implements IRenderedElement {
104104

105105
constructor(private readonly workspace: WorkspaceSvg) {
106106
this.svgRoot = dom.createSvgElement(Svg.G, {
107-
'class': 'blocklyComment blocklyEditable',
107+
'class': 'blocklyComment blocklyEditable blocklyDraggable',
108108
});
109109

110110
this.highlightRect = this.createHighlightRect(this.svgRoot);

core/comments/rendered_workspace_comment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class RenderedWorkspaceComment
5757
// Set the size to the default size as defined in the superclass.
5858
this.view.setSize(this.getSize());
5959
this.view.setEditable(this.isEditable());
60+
this.view.getSvgRoot().setAttribute('data-id', this.id);
6061

6162
this.addModelUpdateBindings();
6263

core/workspace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ export class Workspace implements IASTNodeLocation {
748748
*
749749
* @param id ID of comment to find.
750750
* @returns The sought after comment, or null if not found.
751-
* @internal
752751
*/
753752
getCommentById(id: string): WorkspaceComment | null {
754753
return this.commentDB.get(id) ?? null;

package-lock.json

Lines changed: 239 additions & 455 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,14 @@
100100
},
101101
"license": "Apache-2.0",
102102
"devDependencies": {
103-
"@blockly/block-test": "^5.0.0",
104-
"@blockly/dev-tools": "^7.0.2",
105-
"@blockly/theme-modern": "^5.0.0",
103+
"@blockly/block-test": "^6.0.4",
104+
"@blockly/dev-tools": "^8.0.4",
105+
"@blockly/theme-modern": "^6.0.3",
106106
"@hyperjump/json-schema": "^1.5.0",
107107
"@microsoft/api-documenter": "^7.22.4",
108108
"@microsoft/api-extractor": "^7.29.5",
109109
"@typescript-eslint/eslint-plugin": "^7.3.1",
110+
"@typescript-eslint/parser": "^7.16.1",
110111
"async-done": "^2.0.0",
111112
"chai": "^5.1.1",
112113
"concurrently": "^8.0.1",

0 commit comments

Comments
 (0)