Aaron Dodson
ce8e7921a2
Move alert/confirm/prompt to a new file, dialog.js ( #5457 )
...
* Migrate prompt/alert/confirm to dedicated module
* Update core/blockly.js to pass through calls to prompt/alert/confirm to core/dialog.js
* Update calls to Blockly.prompt/alert/confirm to dialog.prompt/alert/confirm
* Fix typo and errant redeclaration of Blockly.prompt
* Clarify JSDoc on customizing Blockly.dialog.alert/confirm/prompt
2021-09-14 08:19:53 -07:00
Christopher Allen
ff9320f8d9
Migrate core/utils/xml.js to goog.module syntax ( #5459 )
...
* Migrate core/utils/xml.js to ES6 const/let
* Migrate core/utils/xml.js to goog.module
The document() function is renamed to getDocument() so as to avoid
shadowing the global of the same name.
* clang-format core/utils/xml.js
* Call monkey-patchable exports.global internally too
This fixes Node test failures due to the monkey-patching of
Blockly.utils.xml.global in scripts/package/node/core.js not being
able to affect the target calls in createElement and createTextNode.
2021-09-14 15:51:06 +01:00
Christopher Allen
f9d0caa112
Migrate core.global.js to named exports ( #5451 )
...
This is part of #5153 but is being prioritised because we want remove
the declareLegacyNamespace calls from the core/utils/*.js modules and
then reexport them explicitly via utils.js, and it turns out that
doing so results in the exports object of this module being passed to
Object.freeze - which fails on the global object, which can't be made
non-extensible!
The new name chosen for the former default export is globalThis, since
it is intended to have the same value as the global variable of that
name; see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
2021-09-14 14:39:29 +01:00
Christopher Allen
09fb59f6ee
Fix deps.js ( #5452 )
...
Running npm run build:deps in goog_module makes a change to tests/deps.js that was previously committed by PR #5441 but which appears to have been inadvertently undone by #5222 .
2021-09-10 22:16:48 +01:00
Christopher Allen
7a2e23876e
Migrate core/msg.js to goog.module syntax ( #5448 )
...
* Migrate core/msg.js to goog.module
* Migrate core/msg.js named requires
2021-09-10 18:10:23 +01:00
Aaron Dodson
53061ac6e5
Migrate core/touch_gesture.js to goog.module syntax ( #5449 )
...
* Migrate core/touch_gesture.js to ES6 const/let
* Migrate core/touch_gesture.js to goog.module
* Migrate core/touch_gesture.js to named requires
* clang-format core/touch_gesture.js
* Remove Blockly prefix from Touch
2021-09-09 14:19:32 -07:00
Aaron Dodson
646a931d77
Migrate core/tooltip.js to goog.module syntax ( #5222 )
...
* Migrate core/tooltip.js to ES6 const/let
* Migrate core/tooltip.js to goog.module
* Migrate core/tooltip.js to named requires
* clang-format core/tooltip.js
* Fix exports of mutable fields in core/tooltip.js
* Don't assign a value when exporting visible in core/tooltip.js
2021-09-09 12:45:16 -07:00
Apoorv Garg
dfba00701e
fix: getBlocksByType not filtering out insertion markers ( #5430 )
...
* maxInstance fix
* requested changes applied
2021-09-09 11:33:03 -07:00
Christopher Allen
79b814018e
Migrate core/utils.js to goog.module syntax ( #5446 )
...
* Add missing requires for Blockly.utils.*
- Blockly.utils.svgPaths in core/rendered_connection.js
- Blockly.utils.colour in core/toolbox/category.js
- Blockly.utils.KeyCodes in core/toolbox/toolbox.js
* Migrate core/utils.js to ES6 const/let
* Migrate core/utils.js to goog.module
* Migrate core/utils.js named requires
* clang-format core/utils.js
2021-09-09 17:25:53 +01:00
Christopher Allen
a6471c4276
Rename Blockly.utils.IdGenerator to idGenerator and move Blockly.utils.genUid to there ( #5441 )
...
* Rename Blockly.utils.IdGenerator -> idGenerator
* Move genUid from Blockly.utils to Blockly.utils.idGenerator
2021-09-09 17:08:44 +01:00
Aaron Dodson
c008bd07e8
Note behavior of centerOnBlock when block is part of a stack in the JSDoc ( #5442 )
2021-09-08 12:10:44 -07:00
Christopher Allen
2d89a36e7d
Migrate core/utils/useragent.js to goog.module syntax ( #5435 )
...
* Migrate core/utils/useragent.js to ES6 const/let
* Migrate core/utils/useragent.js to goog.module
* Migrate core/utils/useragent.js named requires
* clang-format core/utils/useragent.js
2021-09-07 18:48:18 +01:00
Christopher Allen
c31895dc60
fix: Add missing require for Blockly.utils.object, .Size ( #5427 )
...
Some files were using Blockly.utils.object.inherits (or .mixin) without
having imported Blockly.utils.object.
Similarly, trashcan.js tried to use utils.Size as a constructor
instead of importing Size from Blockly.utils.Size.
2021-09-03 22:45:54 +01:00
Neil Fraser
49fcbc8411
Use Blockly.utils.arrayRemove ( #5420 )
...
Recently added code doesn't use existing utility function.
2021-09-03 11:40:55 -07:00
Christopher Allen
24d73be1c3
docs: Create renamings.js to collect renamed API entries ( #5426 )
...
Create a file scripts/migration/renamings.js to collect information about renamed API entries. Start by filling it with the renamings already done to blockly.js.
2021-09-03 17:57:31 +01:00
hpnrep6
e5830283ad
Allow command key zoom on mac devices ( #5419 )
...
* Allow command key zoom on mac devices
* Clarify comment on mac command key zoom
2021-09-01 10:16:35 -07:00
Rachel Fenichel
46fe03cba8
Merge pull request #5416 from google/dependabot/npm_and_yarn/develop/webdriverio-7.11.1
...
Bump webdriverio from 7.11.0 to 7.11.1
2021-08-31 15:50:24 -07:00
dependabot[bot]
be8fbe3348
Bump webdriverio from 7.11.0 to 7.11.1
...
Bumps [webdriverio](https://github.com/webdriverio/webdriverio ) from 7.11.0 to 7.11.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.11.0...v7.11.1 )
---
updated-dependencies:
- dependency-name: webdriverio
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-31 22:44:38 +00:00
Rachel Fenichel
1a0afa4621
Merge pull request #5413 from google/dependabot/npm_and_yarn/develop/wdio/selenium-standalone-service-7.10.1
...
Bump @wdio/selenium-standalone-service from 6.12.1 to 7.10.1
2021-08-31 15:43:54 -07:00
dependabot[bot]
a2abb47277
Bump @wdio/selenium-standalone-service from 6.12.1 to 7.10.1
...
Bumps [@wdio/selenium-standalone-service](https://github.com/webdriverio/webdriverio ) from 6.12.1 to 7.10.1.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/main/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v6.12.1...v7.10.1 )
---
updated-dependencies:
- dependency-name: "@wdio/selenium-standalone-service"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-30 09:02:04 +00:00
Aaron Dodson
a3b52aaab3
Migrate core/events/events.js to goog.module syntax ( #5302 )
...
* Migrate core/events/events.js to ES6 const/let
* Migrate core/events/events.js to goog.module
* Migrate core/events/events.js to named requires
* clang-format core/events/events.js
* Migrate Blockly core to use getRecordUndo/setRecordUndo
* Update core/events.js to reflect latest guidance around exporting mutable fields
2021-08-26 08:53:31 -07:00
alschmiedt
6be7bc1b2b
Merge pull request #5207 from alschmiedt/migrate_dropdown
...
Migrate dropdown to goog.module syntax
2021-08-24 13:08:43 -07:00
Aaron Dodson
4751eea529
Migrate core/events/ws_comment_events.js to goog.module syntax ( #5380 )
...
* Split provides in core/events/ws_comment_events.js into individual files
* Migrate core/events/events_comment_* to ES6 const/let
* Migrate core/events/events_comment_* to goog.module
* Migrate core/events/events_comment_* to named requires
* clang-format core/events/events_comment_*
* Revert now-unnecessary changes to tests/mocha/event_test.js
* Update fileoverview comments for separated comment event classes
2021-08-24 08:00:27 -07:00
alschmiedt
0fa81f33de
PR comments and clang format after rebase
2021-08-19 17:23:18 -07:00
alschmiedt
c349db1a2e
Adds test deps back in
2021-08-19 17:14:05 -07:00
alschmiedt
168b71e964
Updates to the new pattern for testing private
2021-08-19 17:07:05 -07:00
alschmiedt
9939915252
Address PR comments
2021-08-19 17:07:04 -07:00
alschmiedt
3d75bd6493
Attempt to fix tests
2021-08-19 17:03:55 -07:00
alschmiedt
4c270c0e9d
clang-format core/dropdowndiv.js
2021-08-19 17:03:52 -07:00
alschmiedt
cbd5e86291
Migrate core/dropdowndiv.js to goog.module
2021-08-19 17:02:19 -07:00
alschmiedt
f29d795a7e
Migrate core/dropdowndiv.js to goog.module
2021-08-19 16:58:45 -07:00
alschmiedt
72c0a55ad9
Migrate core/dropdowndiv.js to ES6 const/let
2021-08-19 16:56:04 -07:00
kozbial
5dd4e1ed50
Cleanup in core/renderers/zelos/measurables/inputs.js
2021-08-19 10:40:53 -07:00
kozbial
810e1e19a5
clang-format core/renderers/zelos/measurables/inputs.js
2021-08-19 10:40:53 -07:00
kozbial
a6271bb3d5
Migrate core/renderers/zelos/measurables/inputs.js named requires
2021-08-19 10:40:53 -07:00
kozbial
40474324f6
Migrate core/renderers/zelos/measurables/inputs.js to goog.module
2021-08-19 10:40:53 -07:00
kozbial
57644d1e29
Migrate core/renderers/zelos/measurables/inputs.js to ES6 const/let
2021-08-19 10:40:53 -07:00
kozbial
7037a15011
Migrate core/utils/global.js to goog.module
2021-08-19 10:40:26 -07:00
kozbial
8c95da03b5
clang-format core/utils/svg.js
2021-08-19 09:36:57 -07:00
kozbial
cf5c38c3f5
Migrate core/utils/svg.js to goog.module
2021-08-19 09:36:57 -07:00
kozbial
26802bcb7f
clang-format core/renderers/zelos/measurables/rows.js
2021-08-19 09:35:26 -07:00
kozbial
297f2a0b60
Migrate core/renderers/zelos/measurables/rows.js named requires
2021-08-19 09:35:26 -07:00
kozbial
c85714b1c6
Migrate core/renderers/zelos/measurables/rows.js to goog.module
2021-08-19 09:35:26 -07:00
kozbial
ede4d3630b
Migrate core/renderers/zelos/measurables/rows.js to ES6 const/let
2021-08-19 09:35:26 -07:00
kozbial
3e1099e2b8
Split classes from core/renderers/zelos/measurables/rows.js into multiple files
2021-08-19 09:35:26 -07:00
kozbial
bcfca5c198
clang-format core/renderers/zelos/measurables/row_elements.js
2021-08-18 15:57:53 -07:00
kozbial
b69800623b
Migrate core/renderers/zelos/measurables/row_elements.js named requires
2021-08-18 15:57:53 -07:00
kozbial
d37df416e1
Migrate core/renderers/zelos/measurables/row_elements.js to goog.module
2021-08-18 15:57:53 -07:00
kozbial
e5359e4bf5
Update named require in core/metrics_manager.js
2021-08-18 09:54:19 -07:00
kozbial
e340b00027
clang-format core/metrics_manager.js
2021-08-18 09:54:19 -07:00