File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed
Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export class LitSolutionBlock extends LitBlock {
1111 public override initCallback ( ) : void {
1212 super . initCallback ( ) ;
1313 this . a11y ?. registerBlock ( this ) ;
14+ this . sharedCtx . pub ( '*solution' , this . tagName ) ;
1415 }
1516
1617 public override render ( ) {
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ import '../../../blocks/CloudImageEditorActivity/CloudImageEditorActivity';
1818
1919type BaseInitState = InstanceType < typeof LitSolutionBlock > [ 'init$' ] ;
2020
21- type FileUploaderInlineInitState = BaseInitState & {
22- '*solution' : string ;
23- } ;
21+ type FileUploaderInlineInitState = BaseInitState ;
2422
2523export class FileUploaderInline extends LitSolutionBlock {
2624 public declare attributesMeta : {
@@ -36,7 +34,6 @@ export class FileUploaderInline extends LitSolutionBlock {
3634
3735 this . init$ = {
3836 ...this . init$ ,
39- '*solution' : this . tagName ,
4037 } as FileUploaderInlineInitState ;
4138 }
4239
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ const ACTIVE_CLASS = 'active';
2222const EMPTY_CLASS = '' ;
2323
2424type BaseInitState = InstanceType < typeof LitSolutionBlock > [ 'init$' ] ;
25- type FileUploaderMinimalInitState = BaseInitState & {
26- '*solution' : string ;
27- } ;
25+ type FileUploaderMinimalInitState = BaseInitState ;
2826
2927export class FileUploaderMinimal extends LitSolutionBlock {
3028 public declare attributesMeta : {
@@ -53,7 +51,6 @@ export class FileUploaderMinimal extends LitSolutionBlock {
5351
5452 this . init$ = {
5553 ...this . init$ ,
56- '*solution' : this . tagName ,
5754 } as FileUploaderMinimalInitState ;
5855 }
5956
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ import '../../../blocks/CloudImageEditorActivity/CloudImageEditorActivity';
1717import '../../../blocks/SimpleBtn/SimpleBtn' ;
1818
1919type BaseInitState = InstanceType < typeof LitSolutionBlock > [ 'init$' ] ;
20- interface FileUploaderRegularInitState extends BaseInitState {
21- '*solution' : string ;
22- }
20+ interface FileUploaderRegularInitState extends BaseInitState { }
2321
2422export class FileUploaderRegular extends LitSolutionBlock {
2523 public declare attributesMeta : {
@@ -36,7 +34,6 @@ export class FileUploaderRegular extends LitSolutionBlock {
3634
3735 this . init$ = {
3836 ...this . init$ ,
39- '*solution' : this . tagName ,
4037 } as FileUploaderRegularInitState ;
4138 }
4239
You can’t perform that action at this time.
0 commit comments