Skip to content

Commit

Permalink
fix: shareable procedures v11 (#2180)
Browse files Browse the repository at this point in the history
* chore: install beta

* fix: align reference

* fix: add serialization hooks to procedure models

* fix: add deserialization code to procedure models

* fix: update to latest beta

* chore: format

* chore: lint

* chore: format
  • Loading branch information
BeksOmega authored Feb 2, 2024
1 parent d93a7d8 commit 2d27dad
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 99 deletions.
195 changes: 99 additions & 96 deletions plugins/block-shareable-procedures/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins/block-shareable-procedures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
"devDependencies": {
"@blockly/dev-scripts": "^3.1.1",
"@blockly/dev-tools": "^7.1.5",
"blockly": "^10.2.0",
"blockly": "^11.0.0-beta.3",
"chai": "^4.3.7",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
"sinon": "^15.0.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"blockly": "^10.2.0"
"blockly": "^11.0.0-beta.3"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion plugins/block-shareable-procedures/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ const procedureCallerUpdateShapeMixin = {
for (const [i, p] of params.entries()) {
this.appendValueInput(`ARG${i}`)
.appendField(new Blockly.FieldLabel(p), `ARGNAME${i}`)
.setAlign(Blockly.Input.Align.RIGHT);
.setAlign(Blockly.inputs.Align.RIGHT);
}
},

Expand Down
Loading

0 comments on commit 2d27dad

Please sign in to comment.