Skip to content

Commit 806c7a6

Browse files
committed
fix: icon exports
1 parent aeee278 commit 806c7a6

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

core/blockly.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ import {VerticalFlyout} from './flyout_vertical.js';
121121
import {CodeGenerator} from './generator.js';
122122
import {Gesture} from './gesture.js';
123123
import {Grid} from './grid.js';
124-
import {Icon} from './icons/icon.js';
125124
import * as icons from './icons.js';
126125
import {inject} from './inject.js';
127126
import {Align, Input} from './inputs/input.js';
@@ -582,7 +581,6 @@ export {ICollapsibleToolboxItem};
582581
export {IComponent};
583582
export {IConnectionChecker};
584583
export {IContextMenu};
585-
export {Icon};
586584
export {icons};
587585
export {ICopyable};
588586
export {IDeletable};

core/icons.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {CommentIcon} from './icons/comment_icon.js';
8-
import * as exceptions from './icons/exceptions.js';
9-
import * as registry from './icons/registry.js';
7+
import {Icon} from './icons/icon.js';
8+
import {CommentIcon, CommentState} from './icons/comment_icon.js';
109
import {MutatorIcon} from './icons/mutator_icon.js';
10+
import {WarningIcon} from './icons/warning_icon.js';
1111
import {IconType} from './icons/icon_types.js';
12+
import * as exceptions from './icons/exceptions.js';
13+
import * as registry from './icons/registry.js';
1214

13-
export {CommentIcon, exceptions, registry, MutatorIcon, IconType};
15+
export {
16+
Icon,
17+
CommentIcon,
18+
CommentState,
19+
MutatorIcon,
20+
WarningIcon,
21+
IconType,
22+
exceptions,
23+
registry,
24+
};

scripts/migration/renamings.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,5 +1478,9 @@
14781478
},
14791479
},
14801480
},
1481+
{
1482+
oldName: 'Blockly.Icon',
1483+
newName: 'Blockly.icons.Icon',
1484+
},
14811485
],
14821486
}

0 commit comments

Comments
 (0)