mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
refactor(build): Delete Closure Library (#7415)
* fix(build): Restore erroneously-deleted filter function This was deleted in PR #7406 as it was mainly being used to filter core/ vs. test/mocha/ deps into separate deps files - but it turns out also to be used for filtering error messages too. Oops. * refactor(tests): Migrate advanced compilation test to ES Modules * refactor(build): Migrate main.js to TypeScript This turns out to be pretty straight forward, even if it would cause crashing if one actually tried to import this module instead of just feeding it to Closure Compiler. * chore(build): Remove goog.declareModuleId calls Replace goog.declareModuleId calls with a comment recording the former module ID for posterity (or at least until we decide how to reformat the renamings file. * chore(tests): Delete closure/goog/* For the moment we still need something to serve as base.js for the benefit of closure-make-deps, so we keep a vestigial base.js around, containing only the @provideGoog declaration. * refactor(build): Remove vestigial base.js By changing slightly the command line arguments to closure-make-deps and closure-calculate-chunks the need to have any base.js is eliminated. * chore: Typo fix for PR #7415
This commit is contained in:
committed by
GitHub
parent
be809d9d98
commit
b0a7c004a9
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Block');
|
||||
// Former goog.module ID: Blockly.Block
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.blockAnimations');
|
||||
// Former goog.module ID: Blockly.blockAnimations
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import * as dom from './utils/dom.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.BlockDragger');
|
||||
// Former goog.module ID: Blockly.BlockDragger
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_drag.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.BlockSvg');
|
||||
// Former goog.module ID: Blockly.BlockSvg
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_selected.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly');
|
||||
// Former goog.module ID: Blockly
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_create.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.BlocklyOptions');
|
||||
// Former goog.module ID: Blockly.BlocklyOptions
|
||||
|
||||
import type {Theme, ITheme} from './theme.js';
|
||||
import type {WorkspaceSvg} from './workspace_svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.blocks');
|
||||
// Former goog.module ID: Blockly.blocks
|
||||
|
||||
/**
|
||||
* A block definition. For now this very loose, but it can potentially
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.browserEvents');
|
||||
// Former goog.module ID: Blockly.browserEvents
|
||||
|
||||
import * as Touch from './touch.js';
|
||||
import * as userAgent from './utils/useragent.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.BubbleDragger');
|
||||
// Former goog.module ID: Blockly.BubbleDragger
|
||||
|
||||
import {ComponentManager} from './component_manager.js';
|
||||
import type {CommentMove} from './events/events_comment_move.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.bumpObjects');
|
||||
// Former goog.module ID: Blockly.bumpObjects
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import type {Abstract} from './events/events_abstract.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.clipboard');
|
||||
// Former goog.module ID: Blockly.clipboard
|
||||
|
||||
import type {ICopyData, ICopyable} from './interfaces/i_copyable.js';
|
||||
import {BlockPaster} from './clipboard/block_paster.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.common');
|
||||
// Former goog.module ID: Blockly.common
|
||||
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
import type {Block} from './block.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ComponentManager');
|
||||
// Former goog.module ID: Blockly.ComponentManager
|
||||
|
||||
import type {IAutoHideable} from './interfaces/i_autohideable.js';
|
||||
import type {IComponent} from './interfaces/i_component.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.config');
|
||||
// Former goog.module ID: Blockly.config
|
||||
|
||||
/**
|
||||
* All the values that we expect developers to be able to change
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Connection');
|
||||
// Former goog.module ID: Blockly.Connection
|
||||
|
||||
import type {Block} from './block.js';
|
||||
import {ConnectionType} from './connection_type.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ConnectionChecker');
|
||||
// Former goog.module ID: Blockly.ConnectionChecker
|
||||
|
||||
import * as common from './common.js';
|
||||
import {Connection} from './connection.js';
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ConnectionDB');
|
||||
// Former goog.module ID: Blockly.ConnectionDB
|
||||
|
||||
import {ConnectionType} from './connection_type.js';
|
||||
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ConnectionType');
|
||||
// Former goog.module ID: Blockly.ConnectionType
|
||||
|
||||
/**
|
||||
* Enum for the type of a connection or input.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.constants');
|
||||
// Former goog.module ID: Blockly.constants
|
||||
|
||||
/**
|
||||
* The language-neutral ID given to the collapsed input.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ContextMenu');
|
||||
// Former goog.module ID: Blockly.ContextMenu
|
||||
|
||||
import type {Block} from './block.js';
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ContextMenuItems');
|
||||
// Former goog.module ID: Blockly.ContextMenuItems
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import * as clipboard from './clipboard.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ContextMenuRegistry');
|
||||
// Former goog.module ID: Blockly.ContextMenuRegistry
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import type {WorkspaceSvg} from './workspace_svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Css');
|
||||
// Former goog.module ID: Blockly.Css
|
||||
|
||||
/** Has CSS already been injected? */
|
||||
let injected = false;
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.DeleteArea');
|
||||
// Former goog.module ID: Blockly.DeleteArea
|
||||
|
||||
import {BlockSvg} from './block_svg.js';
|
||||
import {DragTarget} from './drag_target.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.dialog');
|
||||
// Former goog.module ID: Blockly.dialog
|
||||
|
||||
let alertImplementation = function (
|
||||
message: string,
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.DragTarget');
|
||||
// Former goog.module ID: Blockly.DragTarget
|
||||
|
||||
import type {IDragTarget} from './interfaces/i_drag_target.js';
|
||||
import type {IDraggable} from './interfaces/i_draggable.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.dropDownDiv');
|
||||
// Former goog.module ID: Blockly.dropDownDiv
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import * as common from './common.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events');
|
||||
// Former goog.module ID: Blockly.Events
|
||||
|
||||
import {Abstract, AbstractEventJson} from './events_abstract.js';
|
||||
import {BlockBase, BlockBaseJson} from './events_block_base.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.Abstract');
|
||||
// Former goog.module ID: Blockly.Events.Abstract
|
||||
|
||||
import * as common from '../common.js';
|
||||
import type {Workspace} from '../workspace.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockBase');
|
||||
// Former goog.module ID: Blockly.Events.BlockBase
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import type {Workspace} from '../workspace.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockChange');
|
||||
// Former goog.module ID: Blockly.Events.BlockChange
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import type {BlockSvg} from '../block_svg.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockCreate');
|
||||
// Former goog.module ID: Blockly.Events.BlockCreate
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as registry from '../registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockDelete');
|
||||
// Former goog.module ID: Blockly.Events.BlockDelete
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as registry from '../registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockDrag');
|
||||
// Former goog.module ID: Blockly.Events.BlockDrag
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as registry from '../registry.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockFieldIntermediateChange');
|
||||
// Former goog.module ID: Blockly.Events.BlockFieldIntermediateChange
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as registry from '../registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BlockMove');
|
||||
// Former goog.module ID: Blockly.Events.BlockMove
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import {ConnectionType} from '../connection_type.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.BubbleOpen');
|
||||
// Former goog.module ID: Blockly.Events.BubbleOpen
|
||||
|
||||
import type {AbstractEventJson} from './events_abstract.js';
|
||||
import type {BlockSvg} from '../block_svg.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.Click');
|
||||
// Former goog.module ID: Blockly.Events.Click
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as registry from '../registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.CommentBase');
|
||||
// Former goog.module ID: Blockly.Events.CommentBase
|
||||
|
||||
import * as utilsXml from '../utils/xml.js';
|
||||
import type {WorkspaceComment} from '../workspace_comment.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.CommentChange');
|
||||
// Former goog.module ID: Blockly.Events.CommentChange
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {WorkspaceComment} from '../workspace_comment.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.CommentCreate');
|
||||
// Former goog.module ID: Blockly.Events.CommentCreate
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {WorkspaceComment} from '../workspace_comment.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.CommentDelete');
|
||||
// Former goog.module ID: Blockly.Events.CommentDelete
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {WorkspaceComment} from '../workspace_comment.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.CommentMove');
|
||||
// Former goog.module ID: Blockly.Events.CommentMove
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {Coordinate} from '../utils/coordinate.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.MarkerMove');
|
||||
// Former goog.module ID: Blockly.Events.MarkerMove
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import {ASTNode} from '../keyboard_nav/ast_node.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.Selected');
|
||||
// Former goog.module ID: Blockly.Events.Selected
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {AbstractEventJson} from './events_abstract.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.ThemeChange');
|
||||
// Former goog.module ID: Blockly.Events.ThemeChange
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {AbstractEventJson} from './events_abstract.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.ToolboxItemSelect');
|
||||
// Former goog.module ID: Blockly.Events.ToolboxItemSelect
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {AbstractEventJson} from './events_abstract.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.TrashcanOpen');
|
||||
// Former goog.module ID: Blockly.Events.TrashcanOpen
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {AbstractEventJson} from './events_abstract.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.UiBase');
|
||||
// Former goog.module ID: Blockly.Events.UiBase
|
||||
|
||||
import {Abstract as AbstractEvent} from './events_abstract.js';
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.VarBase');
|
||||
// Former goog.module ID: Blockly.Events.VarBase
|
||||
|
||||
import type {VariableModel} from '../variable_model.js';
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.VarCreate');
|
||||
// Former goog.module ID: Blockly.Events.VarCreate
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {VariableModel} from '../variable_model.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.VarDelete');
|
||||
// Former goog.module ID: Blockly.Events.VarDelete
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {VariableModel} from '../variable_model.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.VarRename');
|
||||
// Former goog.module ID: Blockly.Events.VarRename
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {VariableModel} from '../variable_model.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.ViewportChange');
|
||||
// Former goog.module ID: Blockly.Events.ViewportChange
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import {AbstractEventJson} from './events_abstract.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.utils');
|
||||
// Former goog.module ID: Blockly.Events.utils
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import * as common from '../common.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Events.FinishedLoading');
|
||||
// Former goog.module ID: Blockly.Events.FinishedLoading
|
||||
|
||||
import * as registry from '../registry.js';
|
||||
import type {Workspace} from '../workspace.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Extensions');
|
||||
// Former goog.module ID: Blockly.Extensions
|
||||
|
||||
import type {Block} from './block.js';
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Field');
|
||||
// Former goog.module ID: Blockly.Field
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldAngle');
|
||||
// Former goog.module ID: Blockly.FieldAngle
|
||||
|
||||
import {BlockSvg} from './block_svg.js';
|
||||
import * as browserEvents from './browser_events.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldCheckbox');
|
||||
// Former goog.module ID: Blockly.FieldCheckbox
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldColour');
|
||||
// Former goog.module ID: Blockly.FieldColour
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldDropdown');
|
||||
// Former goog.module ID: Blockly.FieldDropdown
|
||||
|
||||
import type {BlockSvg} from './block_svg.js';
|
||||
import * as dropDownDiv from './dropdowndiv.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldImage');
|
||||
// Former goog.module ID: Blockly.FieldImage
|
||||
|
||||
import {Field, FieldConfig} from './field.js';
|
||||
import * as fieldRegistry from './field_registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldInput');
|
||||
// Former goog.module ID: Blockly.FieldInput
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldLabel');
|
||||
// Former goog.module ID: Blockly.FieldLabel
|
||||
|
||||
import * as dom from './utils/dom.js';
|
||||
import {Field, FieldConfig} from './field.js';
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldLabelSerializable');
|
||||
// Former goog.module ID: Blockly.FieldLabelSerializable
|
||||
|
||||
import {
|
||||
FieldLabel,
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldMultilineInput');
|
||||
// Former goog.module ID: Blockly.FieldMultilineInput
|
||||
|
||||
import * as Css from './css.js';
|
||||
import {Field, UnattachedFieldError} from './field.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldNumber');
|
||||
// Former goog.module ID: Blockly.FieldNumber
|
||||
|
||||
import {Field} from './field.js';
|
||||
import * as fieldRegistry from './field_registry.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.fieldRegistry');
|
||||
// Former goog.module ID: Blockly.fieldRegistry
|
||||
|
||||
import type {Field, FieldProto} from './field.js';
|
||||
import * as registry from './registry.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldTextInput');
|
||||
// Former goog.module ID: Blockly.FieldTextInput
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FieldVariable');
|
||||
// Former goog.module ID: Blockly.FieldVariable
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_block_change.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Flyout');
|
||||
// Former goog.module ID: Blockly.Flyout
|
||||
|
||||
import type {Abstract as AbstractEvent} from './events/events_abstract.js';
|
||||
import type {Block} from './block.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FlyoutButton');
|
||||
// Former goog.module ID: Blockly.FlyoutButton
|
||||
|
||||
import * as browserEvents from './browser_events.js';
|
||||
import * as Css from './css.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.HorizontalFlyout');
|
||||
// Former goog.module ID: Blockly.HorizontalFlyout
|
||||
|
||||
import * as browserEvents from './browser_events.js';
|
||||
import * as dropDownDiv from './dropdowndiv.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.FlyoutMetricsManager');
|
||||
// Former goog.module ID: Blockly.FlyoutMetricsManager
|
||||
|
||||
import type {IFlyout} from './interfaces/i_flyout.js';
|
||||
import {ContainerRegion, MetricsManager} from './metrics_manager.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.VerticalFlyout');
|
||||
// Former goog.module ID: Blockly.VerticalFlyout
|
||||
|
||||
import * as browserEvents from './browser_events.js';
|
||||
import * as dropDownDiv from './dropdowndiv.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.CodeGenerator');
|
||||
// Former goog.module ID: Blockly.CodeGenerator
|
||||
|
||||
import type {Block} from './block.js';
|
||||
import * as common from './common.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Gesture');
|
||||
// Former goog.module ID: Blockly.Gesture
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import './events/events_click.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Grid');
|
||||
// Former goog.module ID: Blockly.Grid
|
||||
|
||||
import * as dom from './utils/dom.js';
|
||||
import {Svg} from './utils/svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Comment');
|
||||
// Former goog.module ID: Blockly.Comment
|
||||
|
||||
import type {Block} from '../block.js';
|
||||
import type {BlockSvg} from '../block_svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Mutator');
|
||||
// Former goog.module ID: Blockly.Mutator
|
||||
|
||||
import type {Abstract} from '../events/events_abstract.js';
|
||||
import type {Block} from '../block.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Warning');
|
||||
// Former goog.module ID: Blockly.Warning
|
||||
|
||||
import type {BlockSvg} from '../block_svg.js';
|
||||
import {Coordinate} from '../utils/coordinate.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.inject');
|
||||
// Former goog.module ID: Blockly.inject
|
||||
|
||||
import type {BlocklyOptions} from './blockly_options.js';
|
||||
import * as browserEvents from './browser_events.js';
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Input');
|
||||
// Former goog.module ID: Blockly.Input
|
||||
|
||||
// Unused import preserved for side-effects. Remove if unneeded.
|
||||
import '../field_label.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.inputTypes');
|
||||
// Former goog.module ID: Blockly.inputTypes
|
||||
|
||||
import {ConnectionType} from '../connection_type.js';
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.InsertionMarkerManager');
|
||||
// Former goog.module ID: Blockly.InsertionMarkerManager
|
||||
|
||||
import {finishQueuedRenders} from './render_management.js';
|
||||
import * as blockAnimations from './block_animations.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IASTNodeLocation');
|
||||
// Former goog.module ID: Blockly.IASTNodeLocation
|
||||
|
||||
/**
|
||||
* An AST node location interface.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IASTNodeLocationSvg');
|
||||
// Former goog.module ID: Blockly.IASTNodeLocationSvg
|
||||
|
||||
import type {IASTNodeLocation} from './i_ast_node_location.js';
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IASTNodeLocationWithBlock');
|
||||
// Former goog.module ID: Blockly.IASTNodeLocationWithBlock
|
||||
|
||||
import type {IASTNodeLocation} from './i_ast_node_location.js';
|
||||
import type {Block} from '../block.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IAutoHideable');
|
||||
// Former goog.module ID: Blockly.IAutoHideable
|
||||
|
||||
import type {IComponent} from './i_component.js';
|
||||
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
import type {Coordinate} from '../utils/coordinate.js';
|
||||
import type {BlockSvg} from '../block_svg.js';
|
||||
goog.declareModuleId('Blockly.IBlockDragger');
|
||||
// Former goog.module ID: Blockly.IBlockDragger
|
||||
|
||||
/**
|
||||
* A block dragger interface.
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
import type {Rect} from '../utils/rect.js';
|
||||
goog.declareModuleId('Blockly.IBoundedElement');
|
||||
// Former goog.module ID: Blockly.IBoundedElement
|
||||
|
||||
/**
|
||||
* A bounded element interface.
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
import type {Coordinate} from '../utils/coordinate.js';
|
||||
goog.declareModuleId('Blockly.IBubble');
|
||||
// Former goog.module ID: Blockly.IBubble
|
||||
|
||||
import type {IContextMenu} from './i_contextmenu.js';
|
||||
import type {IDraggable} from './i_draggable.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ICollapsibleToolboxItem');
|
||||
// Former goog.module ID: Blockly.ICollapsibleToolboxItem
|
||||
|
||||
import type {ISelectableToolboxItem} from './i_selectable_toolbox_item.js';
|
||||
import type {IToolboxItem} from './i_toolbox_item.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IComponent');
|
||||
// Former goog.module ID: Blockly.IComponent
|
||||
|
||||
/**
|
||||
* The interface for a workspace component that can be registered with the
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
import type {Connection} from '../connection.js';
|
||||
import type {RenderedConnection} from '../rendered_connection.js';
|
||||
goog.declareModuleId('Blockly.IConnectionChecker');
|
||||
// Former goog.module ID: Blockly.IConnectionChecker
|
||||
|
||||
/**
|
||||
* Class for connection type checking logic.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IContextMenu');
|
||||
// Former goog.module ID: Blockly.IContextMenu
|
||||
|
||||
export interface IContextMenu {
|
||||
/**
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.ICopyable');
|
||||
// Former goog.module ID: Blockly.ICopyable
|
||||
|
||||
import type {ISelectable} from './i_selectable.js';
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IDeletable');
|
||||
// Former goog.module ID: Blockly.IDeletable
|
||||
|
||||
/**
|
||||
* The interface for an object that can be deleted.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.IDeleteArea');
|
||||
// Former goog.module ID: Blockly.IDeleteArea
|
||||
|
||||
import type {IDragTarget} from './i_drag_target.js';
|
||||
import type {IDraggable} from './i_draggable.js';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user