mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
* feat: Invalid Blocks * Rename the new json property from invalid to invalidReasons. * Merged isValid into isEnabled. * Minor fixes. * More minor fixes. * Reverting some stuff that didn't need to change. * Addressing PR feedback. * Update the BlockInfo interface to match State. * Make BlockChange.disabledReason private.
24 lines
596 B
TypeScript
24 lines
596 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
// Former goog.module ID: Blockly.constants
|
|
|
|
/**
|
|
* The language-neutral ID given to the collapsed input.
|
|
*/
|
|
export const COLLAPSED_INPUT_NAME = '_TEMP_COLLAPSED_INPUT';
|
|
|
|
/**
|
|
* The language-neutral ID given to the collapsed field.
|
|
*/
|
|
export const COLLAPSED_FIELD_NAME = '_TEMP_COLLAPSED_FIELD';
|
|
|
|
/**
|
|
* The language-neutral ID for when the reason why a block is disabled is
|
|
* because the user manually disabled it, such as via the context menu.
|
|
*/
|
|
export const MANUALLY_DISABLED = 'MANUALLY_DISABLED';
|