@cooperco/cooper-component-library 0.1.90 → 0.1.91

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.
@@ -0,0 +1,37 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const containerModule = migration.editContentType('containerModule')
6
+ containerModule.editField('variant').items({
7
+ type: 'Symbol',
8
+ validations: [
9
+ {
10
+ in: ['Hero', 'Centered', 'Feature'],
11
+ },
12
+ ],
13
+ })
14
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
15
+ helpText:
16
+ 'Determines layout style. Hero: full-bleed page hero with h1. Centered: standard centered layout. Feature: 50/50 split with flush image, stacks at tablet.',
17
+ })
18
+ },
19
+
20
+ // @ts-check
21
+ /** @type { import('contentful-migration').MigrationFunction } */
22
+ down: async function (migration) {
23
+ const containerModule = migration.editContentType('containerModule')
24
+ containerModule.editField('variant').items({
25
+ type: 'Symbol',
26
+ validations: [
27
+ {
28
+ in: ['Hero', 'Centered'],
29
+ },
30
+ ],
31
+ })
32
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
33
+ helpText:
34
+ 'Determines Text size and alignment will be top left unless centered is selected as well',
35
+ })
36
+ },
37
+ }
@@ -0,0 +1,37 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const containerModule = migration.editContentType('containerModule')
6
+ containerModule.editField('variant').items({
7
+ type: 'Symbol',
8
+ validations: [
9
+ {
10
+ in: ['Hero', 'Centered', 'Feature'],
11
+ },
12
+ ],
13
+ })
14
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
15
+ helpText:
16
+ 'Determines layout style. Hero: full-bleed page hero with h1. Centered: standard centered layout. Feature: 50/50 split with flush image, stacks at tablet.',
17
+ })
18
+ },
19
+
20
+ // @ts-check
21
+ /** @type { import('contentful-migration').MigrationFunction } */
22
+ down: async function (migration) {
23
+ const containerModule = migration.editContentType('containerModule')
24
+ containerModule.editField('variant').items({
25
+ type: 'Symbol',
26
+ validations: [
27
+ {
28
+ in: ['Hero', 'Centered'],
29
+ },
30
+ ],
31
+ })
32
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
33
+ helpText:
34
+ 'Determines Text size and alignment will be top left unless centered is selected as well',
35
+ })
36
+ },
37
+ }
@@ -0,0 +1,37 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const containerModule = migration.editContentType('containerModule')
6
+ containerModule.editField('variant').items({
7
+ type: 'Symbol',
8
+ validations: [
9
+ {
10
+ in: ['Hero', 'Centered', 'Feature'],
11
+ },
12
+ ],
13
+ })
14
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
15
+ helpText:
16
+ 'Determines layout style. Hero: full-bleed page hero with h1. Centered: standard centered layout. Feature: 50/50 split with flush image, stacks at tablet.',
17
+ })
18
+ },
19
+
20
+ // @ts-check
21
+ /** @type { import('contentful-migration').MigrationFunction } */
22
+ down: async function (migration) {
23
+ const containerModule = migration.editContentType('containerModule')
24
+ containerModule.editField('variant').items({
25
+ type: 'Symbol',
26
+ validations: [
27
+ {
28
+ in: ['Hero', 'Centered'],
29
+ },
30
+ ],
31
+ })
32
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
33
+ helpText:
34
+ 'Determines Text size and alignment will be top left unless centered is selected as well',
35
+ })
36
+ },
37
+ }
@@ -0,0 +1,37 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const containerModule = migration.editContentType('containerModule')
6
+ containerModule.editField('variant').items({
7
+ type: 'Symbol',
8
+ validations: [
9
+ {
10
+ in: ['Hero', 'Centered', 'Feature'],
11
+ },
12
+ ],
13
+ })
14
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
15
+ helpText:
16
+ 'Determines layout style. Hero: full-bleed page hero with h1. Centered: standard centered layout. Feature: 50/50 split with flush image, stacks at tablet.',
17
+ })
18
+ },
19
+
20
+ // @ts-check
21
+ /** @type { import('contentful-migration').MigrationFunction } */
22
+ down: async function (migration) {
23
+ const containerModule = migration.editContentType('containerModule')
24
+ containerModule.editField('variant').items({
25
+ type: 'Symbol',
26
+ validations: [
27
+ {
28
+ in: ['Hero', 'Centered'],
29
+ },
30
+ ],
31
+ })
32
+ containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
33
+ helpText:
34
+ 'Determines Text size and alignment will be top left unless centered is selected as well',
35
+ })
36
+ },
37
+ }