Commit Graph

8330 Commits

Author SHA1 Message Date
Beka Westberg d708833c45 fix: block initialization (#7777)
* fix: reorganize initialization

* chore: fix failing tests

* fix: tests

* chore: format

* chore: remove console trace
2024-01-18 10:12:57 -08:00
Beka Westberg 00faba2d48 fix: bump neighbours performance regression (#7748)
* fix: move bumping neighbours to the end of rendering

* chore: remove scheduleSnapAndBump

* chore: remove references to bumpNeighbours

* chore: work on fixing tests

* fix: bump neighbours event grouping

* chore: format

* chore: readd deprecation import

* fix: move event ordering

* chore: undeprecate bumpNeighbours

* fix: bumping during drag due to insertion markers

* chore: tests

* chore: PR feedback

* chore: docs

* chore: typo
2024-01-17 10:48:04 -08:00
Beka Westberg 3e3eb282bc fix!: rendered meaning (#7747)
* fix: make rendered strictly for differentiating blocksvgs

* chore: fix references to rendered

* chore: fix tests

* chore: delete TODO
2024-01-10 11:13:30 -08:00
Beka Westberg 2572db11b9 fix: have insertion markers use json serialization (#7730) 2024-01-10 10:35:50 -08:00
Beka Westberg 4f1a4424be chore!: delete deprecations for v11. (#7732)
* chore: delete basic deprecations

* chore: remove deprecated align enum

* chore: remove generator deprecation

* chore: format
2024-01-10 10:31:34 -08:00
Beka Westberg 1e5ff14263 fix: snap to grid immediately (#7745) 2024-01-09 13:58:49 -08:00
Beka Westberg 72087ad70a feat!: modify icons to use the rendering queue (#7743) 2024-01-08 14:08:09 -08:00
Beka Westberg 70e725c0a4 feat!: add serialization hooks to procedure models (#7740)
* feat!: add serialization hooks to procedure models

* chore: fix tests

* chore: remove internal functions

* fix: add state interfaces back
2024-01-08 14:00:12 -08:00
Beka Westberg d5704b796e chore(dependency)!: Bump JSDOM to v23, dropping node 16. (#7729)
* Revert "Revert "chore(deps): Bump jsdom from 22.1.0 to 23.0.0 (#7667)" (#7694)"

This reverts commit f0c3f33a96.

* chore: add engine
2024-01-08 13:54:15 -08:00
Christopher Allen c1a9d31868 release: Update version number to 11.0.0-beta.1 blockly-v11.0.0-beta.1 2024-01-08 18:36:19 +00:00
Christopher Allen 4cc4bd573c fix(generators): Fix generator type declarations (#7750)
* test(generators): Add generator TS import/use tests

* fix(generators): Fix generator type declarations

  Add a missing ./ prefix to the imports in the generator wrapper
  .d.ts files.

  Fixes: #7741
2024-01-08 17:10:47 +00:00
Christopher Allen 2a20a3a303 release: Update version number to 11.0.0-beta.0 blockly-v11.0.0-beta.0 2023-12-23 22:48:23 +00:00
Christopher Allen 511ee08bb4 release: Merge branch 'develop' into rc/v11.0.0 2023-12-23 22:47:47 +00:00
Christopher Allen 4dcf4064f2 fix(generators): Fix generator typings (#7727) 2023-12-19 21:20:04 +00:00
Neerajkumar fe0dc8694f fix: prevent flyout block highlighting during workspace drag (#7720) 2023-12-18 10:28:37 -08:00
dependabot[bot] 40b2102e2b chore(deps): Bump google-github-actions/deploy-appengine (#7709)
Bumps [google-github-actions/deploy-appengine](https://github.com/google-github-actions/deploy-appengine) from 1.2.7 to 2.0.0.
- [Release notes](https://github.com/google-github-actions/deploy-appengine/releases)
- [Changelog](https://github.com/google-github-actions/deploy-appengine/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/deploy-appengine/compare/v1.2.7...v2.0.0)

---
updated-dependencies:
- dependency-name: google-github-actions/deploy-appengine
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 09:21:43 -08:00
dependabot[bot] 2b23a6fe6e chore(deps): Bump @microsoft/api-extractor from 7.38.3 to 7.38.5 (#7712)
Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-extractor) from 7.38.3 to 7.38.5.
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor_v7.38.5/apps/api-extractor)

---
updated-dependencies:
- dependency-name: "@microsoft/api-extractor"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 09:19:13 -08:00
dependabot[bot] 9c93757e9b chore(deps): Bump eslint from 8.55.0 to 8.56.0 (#7722)
Bumps [eslint](https://github.com/eslint/eslint) from 8.55.0 to 8.56.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.55.0...v8.56.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 09:09:35 -08:00
dependabot[bot] cdb3ba14b0 chore(deps): Bump @microsoft/api-documenter from 7.23.12 to 7.23.14 (#7723)
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-documenter) from 7.23.12 to 7.23.14.
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-documenter/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-documenter_v7.23.14/apps/api-documenter)

---
updated-dependencies:
- dependency-name: "@microsoft/api-documenter"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 08:50:17 -08:00
dependabot[bot] 679d4ea147 chore(deps): Bump actions/upload-artifact from 3 to 4 (#7725)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 08:32:20 -08:00
dependabot[bot] bb05d427fc chore(deps): Bump actions/download-artifact from 3 to 4 (#7726)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 08:32:06 -08:00
dependabot[bot] 4737817708 chore(deps): Bump @blockly/dev-tools from 7.1.3 to 7.1.5 (#7724)
Bumps [@blockly/dev-tools](https://github.com/google/blockly-samples/tree/HEAD/plugins/dev-tools) from 7.1.3 to 7.1.5.
- [Release notes](https://github.com/google/blockly-samples/releases)
- [Changelog](https://github.com/google/blockly-samples/blob/master/plugins/dev-tools/CHANGELOG.md)
- [Commits](https://github.com/google/blockly-samples/commits/@blockly/dev-tools@7.1.5/plugins/dev-tools)

---
updated-dependencies:
- dependency-name: "@blockly/dev-tools"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 16:27:19 +00:00
Neil Fraser 04a6536518 chore: Resync develop's msgs from translatewiki. (#7716) 2023-12-14 08:45:53 -08:00
Beka Westberg 1dd2fd95d2 Merge pull request #7711 from google/dependabot/npm_and_yarn/develop/hyperjump/json-schema-1.6.7
chore(deps): Bump @hyperjump/json-schema from 1.6.6 to 1.6.7
2023-12-11 22:45:50 +00:00
dependabot[bot] 7d68bac6ee chore(deps): Bump @typescript-eslint/eslint-plugin from 6.10.0 to 6.13.2 (#7710)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.10.0 to 6.13.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.13.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 15:24:03 +00:00
dependabot[bot] 4f176951ca chore(deps): Bump @hyperjump/json-schema from 1.6.6 to 1.6.7
Bumps [@hyperjump/json-schema](https://github.com/hyperjump-io/json-schema) from 1.6.6 to 1.6.7.
- [Commits](https://github.com/hyperjump-io/json-schema/compare/v1.6.6...v1.6.7)

---
updated-dependencies:
- dependency-name: "@hyperjump/json-schema"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 09:46:17 +00:00
Blake Thomas Williams 3e75f4f6f6 fix: updated mocha tests to display error messages (#7706)
* fix: updated mocha tests to display error messages

* fix: replaced double quotes with single quotes
2023-12-08 13:56:28 -08:00
Neil Fraser f7e6f5cfb1 chore: Recompile messages (#7705)
Sort constants and synonyms so that future changes can be seen in diff.
2023-12-08 18:55:18 +01:00
Neil Fraser 74a72e478f fix: Remove double spaces in translation instructions. (#7704) 2023-12-08 17:14:31 +01:00
Beka Westberg c40231a5db chore: Merge master back into develop following v10.3.0 release
Merge pull request #7703 from google/master
2023-12-07 23:14:29 +00:00
Beka Westberg 26ee8cf4c6 release: v10.3.0
Merge pull request #7702 from google/rc/v10.3.0
blockly-v10.3.0
2023-12-07 22:56:05 +00:00
Beka Westberg 631dfcf0bc release: Update version number to 10.3.0 2023-12-07 22:20:49 +00:00
Beka Westberg 0e068cc200 release: Merge branch 'develop' into rc/v10.3.0 2023-12-07 22:20:24 +00:00
Beka Westberg b5ab893fc2 chore: Rollup of 2023 Q4 updates from TranslateWiki (#7699) 2023-12-07 14:19:54 -08:00
Beka Westberg 3f0da523dc chore: Update metadata for 2023 Q4 release (#7700) 2023-12-07 13:18:53 -08:00
Maribeth Bottorff a3053955d3 feat: make fields and icons optionally clickable in flyouts (#7672)
* feat: add ability to click fields in flyouts

* feat: control if icons are clickable in flyouts

* fix: make default icons not clickable in flyout

* fix: use booleans like a real programmer
2023-12-06 19:02:45 +00:00
dependabot[bot] 76a1ab2413 chore(deps): Bump @microsoft/api-extractor from 7.38.0 to 7.38.3 (#7685)
Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-extractor) from 7.38.0 to 7.38.3.
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor_v7.38.3/apps/api-extractor)

---
updated-dependencies:
- dependency-name: "@microsoft/api-extractor"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 09:53:31 -08:00
Beka Westberg f0c3f33a96 Revert "chore(deps): Bump jsdom from 22.1.0 to 23.0.0 (#7667)" (#7694)
This reverts commit ac362fd57a.
2023-12-05 14:29:00 -08:00
Beka Westberg a2a041f212 fix: reenable showing empty flyouts (#7695) 2023-12-05 14:24:38 -08:00
Beka Westberg 45cc1e8fea fix: mutator coordinates not respecting flyout (#7690)
* fix: mutator coordinates not respecting flyout

* chore: fixup conditionals
2023-12-05 10:51:21 -08:00
Ananta Bastola 0836a1db10 fix: release dummy wheel listener on workspace dispose (#7693)
fix #7674
2023-12-05 09:42:35 -08:00
dependabot[bot] 2b00cd85aa chore(deps): Bump eslint from 8.54.0 to 8.55.0 (#7686)
Bumps [eslint](https://github.com/eslint/eslint) from 8.54.0 to 8.55.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.54.0...v8.55.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 08:20:26 -08:00
truongductri01 96a354b46b feat: added intermediate event change (#7671)
* feat: added intermediate event change

* fix: update prettier format for the code

* fix: update comment style

* fix: update test statements
2023-12-04 13:10:09 -08:00
dependabot[bot] 0a27e1c472 chore(deps): Bump webdriverio from 8.24.2 to 8.24.6 (#7683)
Bumps [webdriverio](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/webdriverio) from 8.24.2 to 8.24.6.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v8.24.6/packages/webdriverio)

---
updated-dependencies:
- dependency-name: webdriverio
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 13:00:40 -08:00
dependabot[bot] 38d121f9b1 chore(deps): Bump @hyperjump/json-schema from 1.6.5 to 1.6.6 (#7687)
Bumps [@hyperjump/json-schema](https://github.com/hyperjump-io/json-schema) from 1.6.5 to 1.6.6.
- [Commits](https://github.com/hyperjump-io/json-schema/compare/v1.6.5...v1.6.6)

---
updated-dependencies:
- dependency-name: "@hyperjump/json-schema"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 13:00:00 -08:00
Maribeth Bottorff 1733e26e36 Revert "chore: Renable macos-latest build (#7640)" (#7692)
This reverts commit 3d3cd3fbb0.
2023-12-04 11:21:21 -08:00
Beka Westberg 71ded9dd89 fix: trashcan flyout opening on drag (#7691) 2023-12-04 11:14:19 -08:00
Beka Westberg f363252d35 chore: modify readme about how we want people to acquire Blockly (#7661)
* chore: modify readme about how we want people to acquire Blockly

* chore: PR comments
2023-12-01 11:39:41 -08:00
Zoey Li 3d3cd3fbb0 chore: Renable macos-latest build (#7640)
* chore: Renable macos-latest build

* chore: Update browser_test.yml
2023-11-29 13:18:44 -08:00
Christopher Allen 7bda30924a refactor(generators): Migrate PHP generators to TypeScript (#7647)
* refactor(generators): Migrate dart_generator.js to TypeScript

* refactor(generators): Simplify getAdjusted

  Slightly simplify the implementation of getAdjusted, in part to
  make it more readable.  Also improve its JSDoc comment.

* refactor(generators): Migrate generators/php/* to TypeScript

  First pass doing very mechanistic migration, not attempting to fix
  all the resulting type errors.

* fix(generators): Fix type errors in generator functions

  This consists almost entirely of adding casts, so the code output
  by tsc should be as similar as possible to the pre-migration .js
  source files.

* fix(generators): Fix more minor inconsistencies in JS and Python

  The migration of the JavaScript and Python generators
  inadvertently introduced some inconsistencies in the code,
  e.g. putting executable code before the initial comment line that
  most generator functions begin with.  This fixes another instance
  of this (but n.b. that these inline comments should have been
  JSDocs and a task has been added to #7600 to convert them).

  Additionally, I noticed while doing the PHP migration that
  ORDER_OVERRIDES was not typed as specifically as it could be,
  in previous migrations, so this is fixed here (along with the
  formatting of the associated JSDoc, which can fit on one line
  now.)

* refactor(generators): Migrate generators/php.js to TypeScript

  The way the generator functions are added to
  phpGenerator.forBlock has been modified so that incorrect
  generator function signatures will cause tsc to generate a type
  error.

* chore(generator): Format

  One block protected with // prettier-ignore to preserve careful
  comment formatting.

  Where there are repeated concatenations prettier has made a pretty
  mess of things, but the correct fix is probably to use template
  literals instead (rather than just locally disabling prettier).
  This is one of the items in the to-do list in #7600.

* docs(generators): @fileoverview -> @file

  With an update to the wording for generators/php.ts.

* fix(generators): Fixes for PR #7647.

  - Don't declare unused wherePascalCase dictionary.
  - Don't allow null in OPERATOR dictionary when not needed.
  - Fix return type (and documentation thereof) of getAdjusted.
2023-11-28 16:59:19 +00:00