@cooperco/cooper-component-library 0.1.101 → 0.1.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cms/{contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs → 0087-add-table-highlight-to-content-module.cjs} +8 -14
- package/dist/cms/containerModule.query.ts +3 -0
- package/dist/cms/contentModule.query.ts +1 -0
- package/dist/cms/{0085-add-vertical-alignment-to-content-module.cjs → contentful/migrations/scripts/0087-add-table-highlight-to-content-module.cjs} +8 -14
- package/dist/cms/contentful/queries/containerModule.query.js +3 -0
- package/dist/cms/contentful/queries/containerModule.query.ts +3 -0
- package/dist/cms/contentful/queries/contentModule.query.js +1 -0
- package/dist/cms/contentful/queries/contentModule.query.ts +1 -0
- package/dist/cms/migrations/scripts/{0085-add-vertical-alignment-to-content-module.cjs → 0087-add-table-highlight-to-content-module.cjs} +8 -14
- package/dist/cms/queries/containerModule.query.ts +3 -0
- package/dist/cms/queries/contentModule.query.ts +1 -0
- package/dist/cms/scripts/{0085-add-vertical-alignment-to-content-module.cjs → 0087-add-table-highlight-to-content-module.cjs} +8 -14
- package/dist/lib/component-lib.js +1860 -1795
- package/dist/lib/component-lib.umd.cjs +23 -23
- package/dist/lib/css/main.css +16 -8
- package/dist/lib/style.css +1 -1
- package/dist/types/src/components/ContentModule/ContentModule.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cms/0058-update-cta.js +0 -16
- package/dist/cms/0059-update-navigation-element.js +0 -23
- package/dist/cms/0060-update-testimonial-module.js +0 -24
- package/dist/cms/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/contentful/graphql/queries/accordion.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/accordion.query.js +0 -19
- package/dist/cms/contentful/graphql/queries/carousel.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/carousel.query.js +0 -32
- package/dist/cms/contentful/graphql/queries/containerModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/containerModule.query.js +0 -140
- package/dist/cms/contentful/graphql/queries/contentModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/contentModule.query.js +0 -49
- package/dist/cms/contentful/graphql/queries/cta.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/cta.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/footer.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/footer.query.js +0 -44
- package/dist/cms/contentful/graphql/queries/fragments.d.ts +0 -11
- package/dist/cms/contentful/graphql/queries/fragments.js +0 -172
- package/dist/cms/contentful/graphql/queries/header.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/header.query.js +0 -39
- package/dist/cms/contentful/graphql/queries/image.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/image.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/index.d.ts +0 -18
- package/dist/cms/contentful/graphql/queries/index.js +0 -18
- package/dist/cms/contentful/graphql/queries/link.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/link.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/logoCollection.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/logoCollection.query.js +0 -16
- package/dist/cms/contentful/graphql/queries/navigation.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/navigation.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/page.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/page.query.js +0 -23
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.js +0 -16
- package/dist/cms/contentful/graphql/queries/productModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/productModule.query.js +0 -59
- package/dist/cms/contentful/graphql/queries/testimonial.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/testimonial.query.js +0 -23
- package/dist/cms/contentful/graphql/queries/tileCollection.query.d.ts +0 -4
- package/dist/cms/contentful/graphql/queries/tileCollection.query.js +0 -35
- package/dist/cms/contentful/graphql/queries/video.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/video.query.js +0 -11
- package/dist/cms/contentful/migrations/drafts/0058-update-cta.js +0 -16
- package/dist/cms/contentful/migrations/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/contentful/migrations/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/contentful/migrations/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/contentful/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/contentful/migrations/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/create-hello-banner.cjs +0 -62
- package/dist/cms/drafts/0058-update-cta.js +0 -16
- package/dist/cms/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/migrations/drafts/0058-update-cta.js +0 -16
- package/dist/cms/migrations/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/migrations/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/migrations/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/migrations/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/types/App.vue.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/accordion.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/carousel.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/containerModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/contentModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/cta.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/footer.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/fragments.d.ts +0 -11
- package/dist/types/cms/contentful/graphql/queries/header.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/image.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/index.d.ts +0 -18
- package/dist/types/cms/contentful/graphql/queries/link.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/logoCollection.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/navigation.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/page.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/pageMetadata.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/productModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/testimonial.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/tileCollection.query.d.ts +0 -4
- package/dist/types/cms/contentful/graphql/queries/video.query.d.ts +0 -2
- package/dist/types/components/Accordion/Accordion.d.ts +0 -19
- package/dist/types/components/Accordion/Accordion.vue.d.ts +0 -5
- package/dist/types/components/Accordion/AccordionItem.d.ts +0 -24
- package/dist/types/components/Accordion/AccordionItem.vue.d.ts +0 -9
- package/dist/types/components/Accordion/AccordionListItem.vue.d.ts +0 -3
- package/dist/types/components/Accordion/AccordionTileItem.vue.d.ts +0 -7
- package/dist/types/components/AnimationWrapper/AnimationWrapper.d.ts +0 -7
- package/dist/types/components/AnimationWrapper/AnimationWrapper.vue.d.ts +0 -10
- package/dist/types/components/CTA/CTA.d.ts +0 -25
- package/dist/types/components/CTA/CTA.vue.d.ts +0 -7
- package/dist/types/components/CarouselModule/CarouselModule.d.ts +0 -22
- package/dist/types/components/CarouselModule/CarouselModule.vue.d.ts +0 -5
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +0 -10
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +0 -3
- package/dist/types/components/ContainerModule/ContainerModule.d.ts +0 -29
- package/dist/types/components/ContainerModule/ContainerModule.vue.d.ts +0 -14
- package/dist/types/components/ContentModule/ContentModule.d.ts +0 -31
- package/dist/types/components/ContentModule/ContentModule.vue.d.ts +0 -7
- package/dist/types/components/Footer/FooterCopyright/FooterCopyright.d.ts +0 -10
- package/dist/types/components/Footer/FooterCopyright/FooterCopyright.vue.d.ts +0 -3
- package/dist/types/components/Footer/FooterNavigation/FooterNavigation.d.ts +0 -14
- package/dist/types/components/Footer/FooterNavigation/FooterNavigation.vue.d.ts +0 -3
- package/dist/types/components/Footer/SocialMediaRef/SocialMediaRef.d.ts +0 -4
- package/dist/types/components/Footer/SocialMediaRef/SocialMediaRef.vue.d.ts +0 -3
- package/dist/types/components/Image/Image.d.ts +0 -15
- package/dist/types/components/Image/Image.vue.d.ts +0 -6
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.d.ts +0 -9
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +0 -3
- package/dist/types/components/NavigationElement/NavigationElement.d.ts +0 -20
- package/dist/types/components/NavigationElement/NavigationElement.vue.d.ts +0 -3
- package/dist/types/components/PrimaryNavigation/PrimaryNavigation.d.ts +0 -10
- package/dist/types/components/PrimaryNavigation/PrimaryNavigation.vue.d.ts +0 -9
- package/dist/types/components/SplitModule/SplitModule.d.ts +0 -16
- package/dist/types/components/SplitModule/SplitModule.vue.d.ts +0 -3
- package/dist/types/components/TestimonialModule/TestimonialModule.d.ts +0 -21
- package/dist/types/components/TestimonialModule/TestimonialModule.vue.d.ts +0 -3
- package/dist/types/components/TileCollectionModule/TileCollectionModule.d.ts +0 -18
- package/dist/types/components/TileCollectionModule/TileCollectionModule.vue.d.ts +0 -6
- package/dist/types/components/TileContent/TileContent.d.ts +0 -55
- package/dist/types/components/TileContent/TileContentIconTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentImageStackedAnimatedTile.vue.d.ts +0 -3
- package/dist/types/components/TileContent/TileContentImageTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentTextTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentVideoTile.vue.d.ts +0 -5
- package/dist/types/components/TileLabel/TileLabel.d.ts +0 -14
- package/dist/types/components/TileLabel/TileLabel.vue.d.ts +0 -6
- package/dist/types/components/Video/Video.d.ts +0 -7
- package/dist/types/components/Video/Video.vue.d.ts +0 -3
- package/dist/types/components/components.d.ts +0 -26
- package/dist/types/components/types.d.ts +0 -19
- package/dist/types/config/colorPalettes.d.ts +0 -59
- package/dist/types/config/defaultPassthrough/config.d.ts +0 -3
- package/dist/types/config/defaultPassthrough/index.d.ts +0 -67
- package/dist/types/config/defaultPassthrough/types.d.ts +0 -51
- package/dist/types/index.d.ts +0 -13
- package/dist/types/init.d.ts +0 -3
- package/dist/types/pages/index.vue.d.ts +0 -2
- package/dist/types/router.d.ts +0 -5
- package/dist/types/src/components/HelloBar/HelloBar.d.ts +0 -23
- package/dist/types/src/components/HelloBar/HelloBar.vue.d.ts +0 -3
- package/dist/types/src/components/_internal/SimpleCard.vue.d.ts +0 -16
- package/dist/types/src/components/_internal/SimpleCarousel.vue.d.ts +0 -63
- package/dist/types/src/config/defaultPassthrough/ChartModulePt.d.ts +0 -1
- package/dist/types/types.d.ts +0 -61
- package/dist/types/utils/getTarget.d.ts +0 -2
|
@@ -4,33 +4,27 @@ module.exports = {
|
|
|
4
4
|
up: function (migration) {
|
|
5
5
|
const contentModule = migration.editContentType('contentModule')
|
|
6
6
|
|
|
7
|
-
contentModule.createField('
|
|
8
|
-
name: '
|
|
7
|
+
contentModule.createField('tableHighlight', {
|
|
8
|
+
name: 'Table Highlight',
|
|
9
9
|
type: 'Symbol',
|
|
10
10
|
validations: [
|
|
11
11
|
{
|
|
12
|
-
in: ['
|
|
12
|
+
in: ['Row', 'Column'],
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
})
|
|
16
16
|
|
|
17
|
-
contentModule.changeFieldControl(
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'dropdown',
|
|
21
|
-
{
|
|
22
|
-
helpText:
|
|
23
|
-
'Set the vertical alignment of the content module within its container.',
|
|
24
|
-
}
|
|
25
|
-
)
|
|
17
|
+
contentModule.changeFieldControl('tableHighlight', 'builtin', 'dropdown', {
|
|
18
|
+
helpText: 'This field only applies when displaying a table in the body copy',
|
|
19
|
+
})
|
|
26
20
|
|
|
27
|
-
contentModule.moveField('
|
|
21
|
+
contentModule.moveField('tableHighlight').afterField('bodyCopyAlignment')
|
|
28
22
|
},
|
|
29
23
|
|
|
30
24
|
// @ts-check
|
|
31
25
|
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
26
|
down: function (migration) {
|
|
33
27
|
const contentModule = migration.editContentType('contentModule')
|
|
34
|
-
contentModule.deleteField('
|
|
28
|
+
contentModule.deleteField('tableHighlight')
|
|
35
29
|
},
|
|
36
30
|
}
|
|
@@ -41,6 +41,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
41
41
|
id
|
|
42
42
|
}
|
|
43
43
|
__typename
|
|
44
|
+
tableHighlight
|
|
44
45
|
}
|
|
45
46
|
... on TileCollectionModule {
|
|
46
47
|
sys {
|
|
@@ -80,6 +81,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
backgroundColor
|
|
84
|
+
tableHighlight
|
|
83
85
|
}
|
|
84
86
|
... on Image {
|
|
85
87
|
sys {
|
|
@@ -118,6 +120,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
118
120
|
id
|
|
119
121
|
}
|
|
120
122
|
__typename
|
|
123
|
+
tableHighlight
|
|
121
124
|
}
|
|
122
125
|
... on Image {
|
|
123
126
|
sys {
|
|
@@ -4,33 +4,27 @@ module.exports = {
|
|
|
4
4
|
up: function (migration) {
|
|
5
5
|
const contentModule = migration.editContentType('contentModule')
|
|
6
6
|
|
|
7
|
-
contentModule.createField('
|
|
8
|
-
name: '
|
|
7
|
+
contentModule.createField('tableHighlight', {
|
|
8
|
+
name: 'Table Highlight',
|
|
9
9
|
type: 'Symbol',
|
|
10
10
|
validations: [
|
|
11
11
|
{
|
|
12
|
-
in: ['
|
|
12
|
+
in: ['Row', 'Column'],
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
})
|
|
16
16
|
|
|
17
|
-
contentModule.changeFieldControl(
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'dropdown',
|
|
21
|
-
{
|
|
22
|
-
helpText:
|
|
23
|
-
'Set the vertical alignment of the content module within its container.',
|
|
24
|
-
}
|
|
25
|
-
)
|
|
17
|
+
contentModule.changeFieldControl('tableHighlight', 'builtin', 'dropdown', {
|
|
18
|
+
helpText: 'This field only applies when displaying a table in the body copy',
|
|
19
|
+
})
|
|
26
20
|
|
|
27
|
-
contentModule.moveField('
|
|
21
|
+
contentModule.moveField('tableHighlight').afterField('bodyCopyAlignment')
|
|
28
22
|
},
|
|
29
23
|
|
|
30
24
|
// @ts-check
|
|
31
25
|
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
26
|
down: function (migration) {
|
|
33
27
|
const contentModule = migration.editContentType('contentModule')
|
|
34
|
-
contentModule.deleteField('
|
|
28
|
+
contentModule.deleteField('tableHighlight')
|
|
35
29
|
},
|
|
36
30
|
}
|
|
@@ -39,6 +39,7 @@ export const getContainerModule = gql `
|
|
|
39
39
|
id
|
|
40
40
|
}
|
|
41
41
|
__typename
|
|
42
|
+
tableHighlight
|
|
42
43
|
}
|
|
43
44
|
... on TileCollectionModule {
|
|
44
45
|
sys {
|
|
@@ -78,6 +79,7 @@ export const getContainerModule = gql `
|
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
backgroundColor
|
|
82
|
+
tableHighlight
|
|
81
83
|
}
|
|
82
84
|
... on Image {
|
|
83
85
|
sys {
|
|
@@ -116,6 +118,7 @@ export const getContainerModule = gql `
|
|
|
116
118
|
id
|
|
117
119
|
}
|
|
118
120
|
__typename
|
|
121
|
+
tableHighlight
|
|
119
122
|
}
|
|
120
123
|
... on Image {
|
|
121
124
|
sys {
|
|
@@ -41,6 +41,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
41
41
|
id
|
|
42
42
|
}
|
|
43
43
|
__typename
|
|
44
|
+
tableHighlight
|
|
44
45
|
}
|
|
45
46
|
... on TileCollectionModule {
|
|
46
47
|
sys {
|
|
@@ -80,6 +81,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
backgroundColor
|
|
84
|
+
tableHighlight
|
|
83
85
|
}
|
|
84
86
|
... on Image {
|
|
85
87
|
sys {
|
|
@@ -118,6 +120,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
118
120
|
id
|
|
119
121
|
}
|
|
120
122
|
__typename
|
|
123
|
+
tableHighlight
|
|
121
124
|
}
|
|
122
125
|
... on Image {
|
|
123
126
|
sys {
|
|
@@ -4,33 +4,27 @@ module.exports = {
|
|
|
4
4
|
up: function (migration) {
|
|
5
5
|
const contentModule = migration.editContentType('contentModule')
|
|
6
6
|
|
|
7
|
-
contentModule.createField('
|
|
8
|
-
name: '
|
|
7
|
+
contentModule.createField('tableHighlight', {
|
|
8
|
+
name: 'Table Highlight',
|
|
9
9
|
type: 'Symbol',
|
|
10
10
|
validations: [
|
|
11
11
|
{
|
|
12
|
-
in: ['
|
|
12
|
+
in: ['Row', 'Column'],
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
})
|
|
16
16
|
|
|
17
|
-
contentModule.changeFieldControl(
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'dropdown',
|
|
21
|
-
{
|
|
22
|
-
helpText:
|
|
23
|
-
'Set the vertical alignment of the content module within its container.',
|
|
24
|
-
}
|
|
25
|
-
)
|
|
17
|
+
contentModule.changeFieldControl('tableHighlight', 'builtin', 'dropdown', {
|
|
18
|
+
helpText: 'This field only applies when displaying a table in the body copy',
|
|
19
|
+
})
|
|
26
20
|
|
|
27
|
-
contentModule.moveField('
|
|
21
|
+
contentModule.moveField('tableHighlight').afterField('bodyCopyAlignment')
|
|
28
22
|
},
|
|
29
23
|
|
|
30
24
|
// @ts-check
|
|
31
25
|
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
26
|
down: function (migration) {
|
|
33
27
|
const contentModule = migration.editContentType('contentModule')
|
|
34
|
-
contentModule.deleteField('
|
|
28
|
+
contentModule.deleteField('tableHighlight')
|
|
35
29
|
},
|
|
36
30
|
}
|
|
@@ -41,6 +41,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
41
41
|
id
|
|
42
42
|
}
|
|
43
43
|
__typename
|
|
44
|
+
tableHighlight
|
|
44
45
|
}
|
|
45
46
|
... on TileCollectionModule {
|
|
46
47
|
sys {
|
|
@@ -80,6 +81,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
backgroundColor
|
|
84
|
+
tableHighlight
|
|
83
85
|
}
|
|
84
86
|
... on Image {
|
|
85
87
|
sys {
|
|
@@ -118,6 +120,7 @@ export const getContainerModule: DocumentNode = gql`
|
|
|
118
120
|
id
|
|
119
121
|
}
|
|
120
122
|
__typename
|
|
123
|
+
tableHighlight
|
|
121
124
|
}
|
|
122
125
|
... on Image {
|
|
123
126
|
sys {
|
|
@@ -4,33 +4,27 @@ module.exports = {
|
|
|
4
4
|
up: function (migration) {
|
|
5
5
|
const contentModule = migration.editContentType('contentModule')
|
|
6
6
|
|
|
7
|
-
contentModule.createField('
|
|
8
|
-
name: '
|
|
7
|
+
contentModule.createField('tableHighlight', {
|
|
8
|
+
name: 'Table Highlight',
|
|
9
9
|
type: 'Symbol',
|
|
10
10
|
validations: [
|
|
11
11
|
{
|
|
12
|
-
in: ['
|
|
12
|
+
in: ['Row', 'Column'],
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
})
|
|
16
16
|
|
|
17
|
-
contentModule.changeFieldControl(
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'dropdown',
|
|
21
|
-
{
|
|
22
|
-
helpText:
|
|
23
|
-
'Set the vertical alignment of the content module within its container.',
|
|
24
|
-
}
|
|
25
|
-
)
|
|
17
|
+
contentModule.changeFieldControl('tableHighlight', 'builtin', 'dropdown', {
|
|
18
|
+
helpText: 'This field only applies when displaying a table in the body copy',
|
|
19
|
+
})
|
|
26
20
|
|
|
27
|
-
contentModule.moveField('
|
|
21
|
+
contentModule.moveField('tableHighlight').afterField('bodyCopyAlignment')
|
|
28
22
|
},
|
|
29
23
|
|
|
30
24
|
// @ts-check
|
|
31
25
|
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
26
|
down: function (migration) {
|
|
33
27
|
const contentModule = migration.editContentType('contentModule')
|
|
34
|
-
contentModule.deleteField('
|
|
28
|
+
contentModule.deleteField('tableHighlight')
|
|
35
29
|
},
|
|
36
30
|
}
|