@@ -14,7 +14,7 @@ import {
1414 deprecateContainerBackgroundColorOpacity ,
1515 getAlignmentClasses , getContentAlignmentClasses , getRowClasses ,
1616 deprecateBlockShadowColor , deprecateContainerShadowColor , deprecateShadowColor ,
17- deprecateBlockHeight ,
17+ deprecateBlockHeight , deprecateColumnAndRowGap ,
1818} from '~stackable/block-components'
1919
2020/**
@@ -64,13 +64,14 @@ addFilter( 'stackable.feature.save.innerClassNames', 'stackable/3.8.0', ( output
6464
6565const deprecated = [
6666 {
67- // Support the change of type for block height
67+ // Support the change of type for block height and gaps
6868 attributes : attributes ( '3.15.2' ) ,
6969 save : withVersion ( '3.15.2' ) ( Save ) ,
7070 isEligible : attributes => {
7171 const isNotV4 = attributes . version < 2 || typeof attributes . version === 'undefined'
7272 const hasNumberBlockHeight = deprecateBlockHeight . isEligible ( attributes )
73- return isNotV4 || hasNumberBlockHeight
73+ const hasNumberGaps = deprecateColumnAndRowGap . isEligible ( '%s' ) ( attributes )
74+ return isNotV4 || hasNumberBlockHeight || hasNumberGaps
7475 } ,
7576 migrate : attributes => {
7677 let newAttributes = {
@@ -96,6 +97,7 @@ const deprecated = [
9697 newAttributes = deprecateShadowColor . migrate ( 'topSeparator%s' ) ( newAttributes )
9798 newAttributes = deprecateShadowColor . migrate ( 'bottomSeparator%s' ) ( newAttributes )
9899 newAttributes = deprecateBlockHeight . migrate ( newAttributes )
100+ newAttributes = deprecateColumnAndRowGap . migrate ( '%s' ) ( newAttributes )
99101
100102 return newAttributes
101103 } ,
0 commit comments