Commit Graph

88 Commits

Author SHA1 Message Date
alschmiedt 2b34748e0e chore: remove declareLegacyNamespace from events (#5532)
- Adds an extra events/utils.js file to hold helper methods related to events.
2021-09-24 14:20:32 -07:00
Christopher Allen 8ab8536739 refactor: Migrate Blockly.ConnectionType to named exports (#5533)
* refactor: Migrate Blockly.ConnectionType to named exports
* Add corresponding information to renamings.js
2021-09-24 17:38:08 +01:00
Himanshu 3629ed5f65 refactor: Rename Blockly.connectionTypes to Blockly.ConnectionType (#5407)
* Renamed Blockly.connectionTypes to Blockly.ConnectionType
* Renamed core/connection_types.js to connection_type.js
* Add entry to renamings.js for renaming of Blockly.connectionTypes

Co-authored-by: Christopher Allen <cpcallen+git@google.com>
2021-09-24 12:45:10 +01:00
Aaron Dodson ede7e8c18d chore: Remove declareLegacyNamespace() from field_* files 2021-09-23 14:29:56 -07:00
Aaron Dodson e1310b6464 fix: JSDoc generation for modules without classes 2021-09-22 14:37:55 -07:00
alschmiedt 73580b0ddb chore: named exports for keyboard_nav* files (#5517) 2021-09-22 11:25:38 -07:00
Rachel Fenichel 3adfaaf6d9 chore: named exports for block* files (#5512)
* chore: named export for block.js

* chore: named export for block_drag_surface.js

* chore: named export for block_dragger.js

* chore: named export for block_svg.js

* Fix import ordering

* chore: fix imports using requireType

* Remove extra require
2021-09-22 08:46:19 -07:00
Aaron Dodson 66e6b6218a Make several exported private fields/methods TEST_ONLY (#5479) 2021-09-21 08:13:38 -07:00
Beka Westberg e954193009 fix: project cereal cleanup (#5398)
* fix: make exception constructors package

* fix: rename blocks.load to blocks.append

* fix: inline docs

* fix: consistency in block serialization

* fix: remove unexported functions

* fix: interface requires

* fix: tag TODO with issue number
2021-09-20 13:08:35 -07:00
Beka Westberg 84514efb09 fix: create and delete events, and the trashcan (#5425)
* fix: create and delete events with JSON serialization

* fix: trashcan with JSON serialization

* fix: build

* fix: tests

* fix: PR comments

* fix: types

* fix: tests
2021-09-20 13:08:35 -07:00
Beka Westberg 486123e4ff fix: insertion markers and change events to work with JSO hooks (#5378)
* fix: add tests for fixing change events

* fix: change events and insertion markers

* fix: build:

* fix: remove duplicate code

* fix: requires
2021-09-20 13:08:35 -07: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 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
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
kozbial 2ba3b0ba97 Add newline to core/events/events_ui.js 2021-08-11 15:44:43 -07:00
kozbial 75eab4f395 clang-format core/events/events_ui.js 2021-08-11 15:44:43 -07:00
kozbial 2826d70cac Migrate core/events/events_ui_base.js named requires 2021-08-11 15:44:43 -07:00
kozbial e16a0a4bce Migrate core/events/events_ui.js and core/events/events_ui_base.js to goog.module 2021-08-11 15:44:43 -07:00
kozbial aa83199a55 Migrate core/events/events_ui.js to ES6 const/let 2021-08-11 15:44:43 -07:00
kozbial 3bdcfd9821 Split core/ui_events.js into multiple files 2021-08-11 15:44:43 -07:00
Aaron Dodson a5729043c1 Migrate core/events/events_block_drag.js to goog.module syntax (#5286)
* Migrate core/events/events_block_drag.js to ES6 const/let

* Migrate core/events/events_block_drag.js to goog.module

* Migrate core/events/events_block_drag.js to named requires

* clang-format core/events/events_block_drag.js
2021-08-11 08:40:01 -07:00
Aaron Dodson 4b6ccf868c Migrate core/events/events_theme_change.js to goog.module syntax (#5279)
* Migrate core/events/events_theme_change.js to ES6 const/let

* Migrate core/events/events_theme_change.js to goog.module

* Migrate core/events/events_theme_change.js to named requires

* clang-format core/events/events_theme_change.js
2021-08-11 08:35:01 -07:00
kozbial d7840db736 clang-formant core/events/variable_events.js 2021-08-09 18:52:07 -07:00
kozbial dc2438eb28 Migrate core/events/block_events.js named requires 2021-08-09 18:52:07 -07:00
kozbial 9ac531ba58 Migrate core/events/block_events.js to goog.module 2021-08-09 18:52:07 -07:00
kozbial 6e821fb9fc Migrate core/events/block_events.js to ES6 const/let 2021-08-09 18:52:07 -07:00
kozbial d1ab960f0f Split classes from core/events/variable_events.js into multiple files 2021-08-09 18:52:07 -07:00
kozbial 2f71d18e8a Update jsdoc comment for classes 2021-08-09 18:26:43 -07:00
kozbial 5acdd5e4bc clang-format core/events/block_events.js 2021-08-09 18:26:43 -07:00
kozbial 7889b02d9b Migrate core/events/block_events.js named requires 2021-08-09 18:26:43 -07:00
kozbial fd0385dd63 Migrate core/events/block_events.js to goog.module 2021-08-09 18:26:43 -07:00
kozbial 20dad54d38 Migrate core/events/block_events.js to ES6 const/let 2021-08-09 18:26:43 -07:00
kozbial abbc1b3de3 Split classes from core/events/block_events.js into multiple files 2021-08-09 18:26:43 -07:00
Aaron Dodson fbd7c8ab79 Migrate core/events/workspace_events.js to goog.module syntax (#5274)
* Migrate core/events/workspace_events.js to ES6 const/let

* Migrate core/events/workspace_events.js to goog.module

* Migrate core/events/workspace_events.js to named requires

* clang-format core/events/workspace_events.js

* Update build artifact sizes in check_metadata.sh

* Add comment about root cause of build artifact size change

* Migrate core/events/workspace_events.js to ES6 const/let

* Migrate core/events/workspace_events.js to goog.module

* Migrate core/events/workspace_events.js to named requires

* clang-format core/events/workspace_events.js

* Clarify require name for Blockly.Events.Abstract
2021-08-09 12:43:06 -07:00
kozbial b834d9026b Add requireType calls for Blockly.WorkspaceComment and Blockly.WorkspaceCommentSvg 2021-08-06 18:05:53 -07:00
kozbial 50a99ce515 clang-format core/events/events_abstract.js 2021-08-06 15:53:18 -07:00
kozbial 9fdc8bab15 Migrate core/events/events_abstract.js named requires 2021-08-06 15:53:18 -07:00
kozbial bbc5ce4e89 Migrate core/events/events_abstract.js to goog.module 2021-08-06 15:53:18 -07:00
kozbial 0a9d7c3c79 Migrate core/events/events_abstract.js to ES6 const/let 2021-08-06 15:53:18 -07:00
Aaron Dodson 18efccc2f6 Migrate core/events/events_bubble_open.js to goog.module syntax (#5285)
* Migrate core/events/events_bubble_open.js to ES6 const/let

* Migrate core/events/events_bubble_open.js to goog.module

* Migrate core/events/events_bubble_open.js to named requires
2021-08-04 08:25:07 -07:00
Aaron Dodson 623e901b1c Migrate core/events/events_trashcan_open.js to goog.module syntax (#5277)
* Migrate core/events/events_trashcan_open.js to ES6 const/let

* Migrate core/events/events_trashcan_open.js to goog.module

* Migrate core/events/events_trashcan_open.js to named requires

* clang-format core/events/events_trashcan_open.js
2021-08-04 08:23:38 -07:00
Aaron Dodson 724cdd3bd2 Migrate core/events/events_selected.js to goog.module syntax (#5281)
* Migrate core/events/events_selected.js to ES6 const/let

* Migrate core/events/events_selected.js to goog.module

* Migrate core/events/events_selected.js to named requires

* clang-format core/events/events_selected.js
2021-08-03 14:36:54 -07:00
Aaron Dodson 6f66920437 Merge pull request #5275 from gonfunko/events_viewport
Migrate core/events/events_viewport.js to goog.module syntax
2021-08-03 08:03:08 -07:00
Aaron Dodson 7ab05af063 Merge branch 'goog_module' into events_click 2021-08-03 08:02:43 -07:00
Aaron Dodson 2244c497a3 Merge pull request #5280 from gonfunko/events_toolbox_item_select
Migrate core/events/events_toolbox_item_select.js to goog.module syntax
2021-08-02 14:24:24 -07:00
Aaron Dodson 6662718440 clang-format core/events/events_click.js 2021-08-02 11:27:17 -07:00
Aaron Dodson 0abdb821d8 Migrate core/events/events_click.js to named requires 2021-08-02 11:26:57 -07:00
Aaron Dodson 31fc78393f Migrate core/events/events_click.js to goog.module 2021-08-02 11:24:28 -07:00
Aaron Dodson 0dde319291 Migrate core/events/events_click.js to ES6 const/let 2021-08-02 11:22:32 -07:00
Aaron Dodson 3f83a8f600 clang-format core/events/events_marker_move.js 2021-08-02 11:15:11 -07:00