Commit Graph

8639 Commits

Author SHA1 Message Date
Chaitanya Yeole
e298f55412 feat: Added blocklyTrashcanFlyout CSS class (#8372)
* feat: Add blocklyTrashcanFlyout class

* Fixed formatting issues

* fix: versioning reverted to original

* fix: prettier version resolved

* fix: clean installation
2024-07-17 10:19:53 -07:00
Arun Chandran
ae80adfe9c fix!: Replace Closure UI CSS classes with Blockly CSS classes (#8339)
* fix!: Replace Closure UI CSS classes with Blockly CSS classes

* chore: remove comments about deprecated goog-x class

* chore: remove deprecated goog-x classes

* fix: correct coding format to pass CI checks
2024-07-17 10:18:14 -07:00
Krishnakumar Chavan
33b53718eb fix!: renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon #8347 (#8367)
* renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon

* fix!: renamed blocklyTreeIcon Css class to blocklyToolboxCategoryIcon #8347

* fixed whitespace formatting
2024-07-17 09:45:36 -07:00
Devesh Rahatekar
8cca066bcf feat: Add a blocklyShadow class (#8336)
* feat: Add blockShadow class

* formatted the file
2024-07-17 09:44:24 -07:00
Aaron Dodson
bef8d8319d refactor: make VariableModel implement IVariableModel. (#8381)
* refactor: make VariableModel implement IVariableModel.

* chore: assauge the linter.
2024-07-16 15:47:43 -07:00
Nirmal Kumar
c5532066f5 feat: Add a blocklyTextBubble CSS class to the text bubble #8331 (#8333) 2024-07-16 13:09:49 -07:00
Abhinav Choudhary
ae2fea484f fix!: Rename blocklyTreeRow and blocklyToolboxCategory CSS classes (#8357)
* fix!: #8345 rename css class

This commit renames the blocklyTreeRow CSS class to blocklyToolboxCategory

* Update category.ts

* fix: css class conflicts

Rename original blocklyToolboxCategory to blocklyToolboxCategoryContainer
2024-07-16 11:00:32 -07:00
Aaron Dodson
aecfe34c38 feat: add the IVariableMap and IVariableModel interfaces. (#8369)
* feat: add the IVariableMap and IVariableModel interfaces.

* chore: add license headers.
2024-07-15 15:29:19 -07:00
Shashwat Pathak
00d090edcf feat: Add a blocklyVariableField CSS class to variable fields (#8359) 2024-07-15 13:28:39 -07:00
Shreyans Pathak
7c22c46ee6 refactor: Add addClass and removeClass methods to blockSvg (#8337)
* refactor: Add `addClass` and `removeClass` methods to blockSvg

* fix: lint

* fix: jsdoc
2024-07-15 11:54:30 -07:00
Gabriel Fleury
968494205a feat: Add a blocklyFieldText CSS class to fields' text elements (#8291) (#8302)
* feat!: Add a blocklyFieldText CSS class to fields' text elements (#8291)

* add class instead of replace

Co-authored-by: Beka Westberg <bwestberg@google.com>

---------

Co-authored-by: Beka Westberg <bwestberg@google.com>
2024-07-12 09:37:20 -07:00
Shashwat Pathak
dd18edd343 fix!: Make IPathObject styling methods optional (#8332) 2024-07-12 09:36:25 -07:00
Suryansh Shakya
5a32c3fe43 feat: added blocklyField to field's SVG Group (#8334) 2024-07-12 09:35:10 -07:00
Gabriel Fleury
9ba791c144 bug: Rename the blockly icon CSS classes to use camelCase (#8329) (#8335) 2024-07-12 09:34:42 -07:00
Shreyans Pathak
f45270e083 refactor: field_checkbox dom.addClass params (#8309) 2024-07-12 09:11:19 -07:00
Aaron Dodson
d355b56877 Merge pull request #8292 from google/develop
chore: merge develop into rc/v12
2024-07-10 15:41:58 -07:00
Aaron Dodson
fa15cda950 feat: allow fetching block bounds not including children. (#8284)
* feat: allow fetching block bounds not including children.

* chore: run formatter.

* chore: run the other formatter.

* fix: don't include subsequent blocks in the childless bounding rect.

* chore: remove logging.
2024-07-10 14:52:07 -07:00
Aaron Dodson
8323642d0e fix: export the layer constants. (#8256)
* fix: export the layer constants.

* refactor: remove @internal annotations from layer constants.
2024-07-09 15:25:20 -07:00
dependabot[bot]
17dfa462a3 chore(deps): bump google-closure-compiler (#8251)
Bumps [google-closure-compiler](https://github.com/google/closure-compiler-npm) from 20230802.0.0 to 20240317.0.0.
- [Release notes](https://github.com/google/closure-compiler-npm/releases)
- [Commits](https://github.com/google/closure-compiler-npm/compare/v20230802.0.0...v20240317.0.0)

---
updated-dependencies:
- dependency-name: google-closure-compiler
  dependency-type: direct:development
  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>
2024-07-09 17:49:15 +01:00
Christopher Allen
be87eb7aca test(CI): Have GitHub use npm ci instead of npm install (#8245)
This should help ensure that CI catches PRs that update
package.json without updating package-lock.json to match.

Proposed in response to breakage caused by PR #8209.
2024-07-09 17:18:47 +01:00
dependabot[bot]
293bb7c182 chore(deps): bump prettier from 3.2.5 to 3.3.2 (#8250)
Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.2)

---
updated-dependencies:
- dependency-name: prettier
  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>
2024-07-08 15:49:22 -07:00
Aaron Dodson
f097fc0098 Merge pull request #8252 from google/develop
chore: merge develop into v12
2024-07-08 13:23:55 -07:00
Christopher Allen
a834e02bd5 test(CI): Add node.js v22.x to build matrix (#8247) 2024-07-08 11:03:59 -07:00
Christopher Allen
bc52d65d49 fix(deps): Revert "chore(deps): bump the npm_and_yarn group across 1 directory with 7 up…" (#8246)
This reverts commit e01154cc74,
thereby reverting PR #8209, due to this having gotten our
package-lock.json out of sync with package.json and thus
breaking npm ci.
2024-07-08 08:43:18 -07:00
Aaron Dodson
a6361fbd81 chore: make getEventWorkspace_() public (#8241) 2024-07-02 14:48:16 -07:00
Aaron Dodson
21a73c463f fix: correctly report the pre-resize-drag size to workspace comment size change listeners (#8240)
* fix: correctly report the pre-resize-drag size to workspace comment size change listeners

* chore: run formatter

* refactor: implicitly use the presence of preResizeSize to identify a drag.
2024-07-02 14:42:47 -07:00
dependabot[bot]
e01154cc74 chore(deps): bump the npm_and_yarn group across 1 directory with 7 updates (#8209)
Bumps the npm_and_yarn group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [braces](https://github.com/micromatch/braces) | `3.0.2` | `3.0.3` |
| [gulp](https://github.com/gulpjs/gulp) | `4.0.2` | `5.0.0` |
| [follow-redirects](https://github.com/follow-redirects/follow-redirects) | `1.15.4` | `1.15.6` |
| [ip](https://github.com/indutny/node-ip) | `1.1.9` | `removed` |
| [pac-resolver](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/pac-resolver) | `7.0.0` | `7.0.1` |
| [socks](https://github.com/JoshGlazebrook/socks) | `2.7.1` | `2.8.3` |
| [undici](https://github.com/nodejs/undici) | `5.28.3` | `5.28.4` |

Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

Updates `gulp` from 4.0.2 to 5.0.0
- [Release notes](https://github.com/gulpjs/gulp/releases)
- [Changelog](https://github.com/gulpjs/gulp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/gulp/compare/v4.0.2...v5.0.0)

Updates `follow-redirects` from 1.15.4 to 1.15.6
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

Removes `ip`

Updates `pac-resolver` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/pac-resolver/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/pac-resolver@7.0.1/packages/pac-resolver)

Updates `socks` from 2.7.1 to 2.8.3
- [Release notes](https://github.com/JoshGlazebrook/socks/releases)
- [Commits](https://github.com/JoshGlazebrook/socks/compare/2.7.1...2.8.3)

Updates `undici` from 5.28.3 to 5.28.4
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: gulp
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: follow-redirects
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: ip
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: pac-resolver
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: socks
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: undici
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 14:41:53 -07:00
dependabot[bot]
36b9d6850f chore(deps): Bump webdriverio from 8.38.2 to 8.39.0 (#8237)
Bumps [webdriverio](https://github.com/webdriverio/webdriverio/tree/HEAD/packages/webdriverio) from 8.38.2 to 8.39.0.
- [Release notes](https://github.com/webdriverio/webdriverio/releases)
- [Changelog](https://github.com/webdriverio/webdriverio/blob/v8.39.0/CHANGELOG.md)
- [Commits](https://github.com/webdriverio/webdriverio/commits/v8.39.0/packages/webdriverio)

---
updated-dependencies:
- dependency-name: webdriverio
  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>
2024-07-01 17:54:31 +01:00
dependabot[bot]
ac6dd79716 chore(deps): Bump eslint-plugin-jsdoc from 48.3.0 to 48.5.0 (#8235)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 48.3.0 to 48.5.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v48.3.0...v48.5.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  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>
2024-07-01 17:53:23 +01:00
dependabot[bot]
ef80be1f16 chore(deps): Bump @microsoft/api-documenter from 7.25.2 to 7.25.4 (#8236)
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-documenter) from 7.25.2 to 7.25.4.
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-documenter/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-documenter_v7.25.4/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>
2024-07-01 09:34:36 -07:00
dependabot[bot]
9b0d5aa680 chore(deps): Bump google-github-actions/deploy-appengine (#8066)
Bumps [google-github-actions/deploy-appengine](https://github.com/google-github-actions/deploy-appengine) from 2.1.0 to 2.1.2.
- [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/v2.1.0...v2.1.2)

---
updated-dependencies:
- dependency-name: google-github-actions/deploy-appengine
  dependency-type: direct:production
  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>
2024-06-28 14:46:02 -07:00
dependabot[bot]
54d4e558f2 chore(deps): bump jsdom from 23.0.0 to 24.1.0 (#8220)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 23.0.0 to 24.1.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/23.0.0...24.1.0)

---
updated-dependencies:
- dependency-name: jsdom
  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>
2024-06-28 14:45:17 -07:00
dependabot[bot]
659aae49f5 chore(deps): bump eslint-plugin-jsdoc from 48.0.2 to 48.3.0 (#8229)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 48.0.2 to 48.3.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v48.0.2...v48.3.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  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>
2024-06-28 14:44:33 -07:00
Maribeth Bottorff
e76daa5d8d feat: add legacy warning to block factory (#8234) 2024-06-28 14:42:36 -07:00
Aaron Dodson
989c91f626 feat!: Add support for preserving block comment locations. (#8231)
* feat: Add support for preserving block comment locations.

* chore: format the tests.
2024-06-27 11:11:45 -07:00
Aaron Dodson
b0b7d78ad0 Merge pull request #8232 from google/develop
chore: Merge develop into v12
2024-06-27 11:05:45 -07:00
John Nesky
9a0619aa2a fix: Drag and Resize events for workspace comments (#8217)
* feat: Added a comment_drag event.

* Add workspace comment resize events.

* Addressing PR feedback.

* Fixed chai imports in new test files.

* Addressing more PR feedback.
2024-06-26 12:16:56 -07:00
Aaron Dodson
0c2470183c release: Update version number to 12.0.0 2024-06-26 11:19:21 -07:00
Aaron Dodson
652f655f1d release: Merge branch 'develop' into rc/v12.0.0 2024-06-26 11:19:05 -07:00
dependabot[bot]
be268e3bb4 chore(deps): bump rimraf from 5.0.5 to 5.0.7 (#8228)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.5 to 5.0.7.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v5.0.5...v5.0.7)

---
updated-dependencies:
- dependency-name: rimraf
  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>
2024-06-24 13:00:16 +01:00
Christopher Allen
d1c8e3e564 chore(build): Cleanup npm scripts, tsc includes (#8226)
* chores(build): Remove old scripts aliases

  Remove deprecated script aliases.

* chore(build): Remove obsolete paths from tsconfig include
2024-06-21 13:05:23 -07:00
Christopher Allen
5f1dea0a3c Merge pull request #8224 from google/master
chore: Merge `master` back into `develop` following v11.1.1 release
2024-06-21 07:13:20 +01:00
dependabot[bot]
ed7eed9a85 chore(deps): bump @microsoft/api-extractor from 7.43.0 to 7.47.0 (#8219)
Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-extractor) from 7.43.0 to 7.47.0.
- [Changelog](https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor_v7.47.0/apps/api-extractor)

---
updated-dependencies:
- dependency-name: "@microsoft/api-extractor"
  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>
2024-06-17 16:53:32 +01:00
dependabot[bot]
bfb5b1dd49 chore(deps): Bump chai from 4.3.10 to 5.1.1 (#8092)
* chore(deps): Bump chai from 4.3.10 to 5.1.1

  Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.1.1.
  - [Release notes](https://github.com/chaijs/chai/releases)
  - [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
  - [Commits](https://github.com/chaijs/chai/compare/v4.3.10...v5.1.1)

  ---
  updated-dependencies:
  - dependency-name: chai
    dependency-type: direct:development
    update-type: version-update:semver-major
  ...

  Signed-off-by: dependabot[bot] <support@github.com>

* fix(tests): Migrate all usage of chai to ESM (#8216)

* fix(tests): Migrate node tests from CJS to ESM

  This allows us to import (rather than require) chai, fixing failures
  caused by that package dropping suppport for CJS in chai v5.0.0.

* fix(tests): Have mocha tests directly import chai

  Previously they relied on obtaining it from the global scope, but it's
  better if imports are explicit.

* fix(tests): Remove broken load of chai as script

  Chai v5.0.0 no longer supports being loaded as a script, so this did
  nothing but emit an syntax error message on the console.

* fix(tests): Migrate browser tests from CJS to ESM

  This allows us to import (rather than require) chai, fixing failures
  caused by chai no longer supporting CJS.

* chore(tests): format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christopher Allen <cpcallen+git@google.com>
2024-06-17 16:48:21 +01:00
Maribeth Bottorff
3fa46f45fe chore: tsdoc for generator exceptions (#8214)
* chore: tsdoc for generator exceptions

* chore: missed a period
2024-06-13 17:07:24 -07:00
Maribeth Bottorff
24fe13f0c9 fix: only initSvg on rendered blocks (#8215) 2024-06-13 08:13:17 -07:00
dependabot[bot]
e455a94ae3 chore(deps): bump @typescript-eslint/eslint-plugin from 7.3.1 to 7.12.0 (#8200)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.3.1 to 7.12.0.
- [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/v7.12.0/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>
2024-06-13 15:26:25 +01:00
dependabot[bot]
5e2c7ca4dd chore(deps): bump glob from 10.3.10 to 10.4.1 (#8199)
Bumps [glob](https://github.com/isaacs/node-glob) from 10.3.10 to 10.4.1.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.3.10...v10.4.1)

---
updated-dependencies:
- dependency-name: glob
  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>
2024-06-13 15:25:27 +01:00
Maribeth Bottorff
7a154ea89b release: version 11.1.1
release: version 11.1.1
blockly-v11.1.1
2024-06-12 10:36:16 -07:00
Christopher Allen
5a9a31ad1d feat(scripts): Create script to help with CJS -> ESM migration (#8197)
* feat(scripts): Create script to help with CJS -> ESM migration

  This is based on js2ts, but considerably simplified since we
  no longer need to deal with goog.module IDs.

* feat(scripts): Add support for module.exports = {...}

  Support (optionally renaming) assignments to module.exports, in
  addition to the existing support for simple exports property
  assignmenets.

* fix(scripts): Typo corrections + other improvments for PR #8197

* chore(scripts): Format
2024-06-12 18:29:47 +01:00