@cooperco/cooper-component-library 0.1.110 → 0.1.112

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,36 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const contentModule = migration.editContentType('contentModule')
6
+
7
+ contentModule.createField('verticalAlignment', {
8
+ name: 'Vertical Alignment',
9
+ type: 'Symbol',
10
+ validations: [
11
+ {
12
+ in: ['Top', 'Center', 'Bottom'],
13
+ },
14
+ ],
15
+ })
16
+
17
+ contentModule.changeFieldControl(
18
+ 'verticalAlignment',
19
+ 'builtin',
20
+ 'dropdown',
21
+ {
22
+ helpText:
23
+ 'Set the vertical alignment of the content module within its container.',
24
+ }
25
+ )
26
+
27
+ contentModule.moveField('verticalAlignment').afterField('alignment')
28
+ },
29
+
30
+ // @ts-check
31
+ /** @type { import('contentful-migration').MigrationFunction } */
32
+ down: function (migration) {
33
+ const contentModule = migration.editContentType('contentModule')
34
+ contentModule.deleteField('verticalAlignment')
35
+ },
36
+ }
@@ -67,6 +67,7 @@ export const getContentModule: DocumentNode = gql`
67
67
  bodyCopyAlignment
68
68
  tableHighlight
69
69
  placeholderModule
70
+ verticalAlignment
70
71
  }
71
72
  }
72
73
  `
@@ -0,0 +1,36 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const contentModule = migration.editContentType('contentModule')
6
+
7
+ contentModule.createField('verticalAlignment', {
8
+ name: 'Vertical Alignment',
9
+ type: 'Symbol',
10
+ validations: [
11
+ {
12
+ in: ['Top', 'Center', 'Bottom'],
13
+ },
14
+ ],
15
+ })
16
+
17
+ contentModule.changeFieldControl(
18
+ 'verticalAlignment',
19
+ 'builtin',
20
+ 'dropdown',
21
+ {
22
+ helpText:
23
+ 'Set the vertical alignment of the content module within its container.',
24
+ }
25
+ )
26
+
27
+ contentModule.moveField('verticalAlignment').afterField('alignment')
28
+ },
29
+
30
+ // @ts-check
31
+ /** @type { import('contentful-migration').MigrationFunction } */
32
+ down: function (migration) {
33
+ const contentModule = migration.editContentType('contentModule')
34
+ contentModule.deleteField('verticalAlignment')
35
+ },
36
+ }
@@ -65,6 +65,7 @@ export const getContentModule = gql `
65
65
  bodyCopyAlignment
66
66
  tableHighlight
67
67
  placeholderModule
68
+ verticalAlignment
68
69
  }
69
70
  }
70
71
  `;
@@ -67,6 +67,7 @@ export const getContentModule: DocumentNode = gql`
67
67
  bodyCopyAlignment
68
68
  tableHighlight
69
69
  placeholderModule
70
+ verticalAlignment
70
71
  }
71
72
  }
72
73
  `
@@ -0,0 +1,36 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const contentModule = migration.editContentType('contentModule')
6
+
7
+ contentModule.createField('verticalAlignment', {
8
+ name: 'Vertical Alignment',
9
+ type: 'Symbol',
10
+ validations: [
11
+ {
12
+ in: ['Top', 'Center', 'Bottom'],
13
+ },
14
+ ],
15
+ })
16
+
17
+ contentModule.changeFieldControl(
18
+ 'verticalAlignment',
19
+ 'builtin',
20
+ 'dropdown',
21
+ {
22
+ helpText:
23
+ 'Set the vertical alignment of the content module within its container.',
24
+ }
25
+ )
26
+
27
+ contentModule.moveField('verticalAlignment').afterField('alignment')
28
+ },
29
+
30
+ // @ts-check
31
+ /** @type { import('contentful-migration').MigrationFunction } */
32
+ down: function (migration) {
33
+ const contentModule = migration.editContentType('contentModule')
34
+ contentModule.deleteField('verticalAlignment')
35
+ },
36
+ }
@@ -67,6 +67,7 @@ export const getContentModule: DocumentNode = gql`
67
67
  bodyCopyAlignment
68
68
  tableHighlight
69
69
  placeholderModule
70
+ verticalAlignment
70
71
  }
71
72
  }
72
73
  `
@@ -0,0 +1,36 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const contentModule = migration.editContentType('contentModule')
6
+
7
+ contentModule.createField('verticalAlignment', {
8
+ name: 'Vertical Alignment',
9
+ type: 'Symbol',
10
+ validations: [
11
+ {
12
+ in: ['Top', 'Center', 'Bottom'],
13
+ },
14
+ ],
15
+ })
16
+
17
+ contentModule.changeFieldControl(
18
+ 'verticalAlignment',
19
+ 'builtin',
20
+ 'dropdown',
21
+ {
22
+ helpText:
23
+ 'Set the vertical alignment of the content module within its container.',
24
+ }
25
+ )
26
+
27
+ contentModule.moveField('verticalAlignment').afterField('alignment')
28
+ },
29
+
30
+ // @ts-check
31
+ /** @type { import('contentful-migration').MigrationFunction } */
32
+ down: function (migration) {
33
+ const contentModule = migration.editContentType('contentModule')
34
+ contentModule.deleteField('verticalAlignment')
35
+ },
36
+ }