@cooperco/cooper-component-library 0.1.134 → 0.1.135

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,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ // @ts-check
3
+ /** @type { import('contentful-migration').MigrationFunction } */
4
+ up: function (migration) {
5
+ const ctaAction = migration.editContentType('ctaAction')
6
+
7
+ ctaAction.editField('triggerMappingValue').validations([
8
+ {
9
+ in: ['Sign-in modal', 'Load More', 'Sign-up modal'],
10
+ },
11
+ ])
12
+
13
+ ctaAction.changeFieldControl('triggerMappingValue', 'builtin', 'dropdown', {
14
+ helpText: 'A trigger that determines the action of the CTA.',
15
+ })
16
+ },
17
+
18
+ // @ts-check
19
+ /** @type { import('contentful-migration').MigrationFunction } */
20
+ down: function (migration) {
21
+ const ctaAction = migration.editContentType('ctaAction')
22
+
23
+ ctaAction.editField('triggerMappingValue').validations([
24
+ {
25
+ in: ['Sign-in modal', 'Load More'],
26
+ },
27
+ ])
28
+ },
29
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cooperco/cooper-component-library",
3
3
  "private": false,
4
- "version": "0.1.134",
4
+ "version": "0.1.135",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"