mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
fix: input exports (#7165)
* fix: input exports * chore: fix build * chore: attempt to fix build * chore: attempt to fix build * chore: create new align enum to replace old one * chore: format * fix: Tweak renamings entries It appears that the goal is to map: Blockly.Input.Align -> Blockly.inputs.Align Blockly.Align -> Blockly.inputs.Align Blockly.ALIGN_* -> Blockly.inputs.Align.* I believe this commit achieves that in a more minimal (and correct) way—but if I have misunderstood the intention then this will not be a useful correction. --------- Co-authored-by: Christopher Allen <cpcallen+git@google.com>
This commit is contained in:
@@ -186,8 +186,6 @@ const JSCOMP_ERROR = [
|
||||
'conformanceViolations',
|
||||
'const',
|
||||
'constantProperty',
|
||||
'deprecated',
|
||||
'deprecatedAnnotations',
|
||||
'duplicateMessage',
|
||||
'es5Strict',
|
||||
'externsValidation',
|
||||
@@ -234,6 +232,8 @@ const JSCOMP_ERROR = [
|
||||
* it's generally sufficient to remove them from JSCOMP_ERROR.
|
||||
*/
|
||||
const JSCOMP_WARNING = [
|
||||
'deprecated',
|
||||
'deprecatedAnnotations',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -1482,5 +1482,33 @@
|
||||
oldName: 'Blockly.Icon',
|
||||
newName: 'Blockly.icons.Icon',
|
||||
},
|
||||
{
|
||||
oldName: 'Blockly.Input',
|
||||
exports: {
|
||||
'Align': {
|
||||
newPath: 'Blockly.inputs.Align',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
oldName: 'Blockly',
|
||||
exports: {
|
||||
'Align': {
|
||||
newPath: 'Blockly.inputs.Align',
|
||||
},
|
||||
'ALIGN_LEFT': {
|
||||
newPath: 'Blockly.inputs.Align.LEFT',
|
||||
},
|
||||
'ALIGN_CENTER': {
|
||||
newPath: 'Blockly.inputs.Align.CENTER',
|
||||
},
|
||||
'ALIGN_RIGHT': {
|
||||
newPath: 'Blockly.inputs.Align.RIGHT',
|
||||
},
|
||||
'inputTypes': {
|
||||
newModule: 'Blockly.inputs',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user