@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.
- package/dist/cms/0100-add-sign-up-to-cta-action-trigger-mapping-value.cjs +29 -0
- package/dist/cms/contentful/migrations/scripts/0100-add-sign-up-to-cta-action-trigger-mapping-value.cjs +29 -0
- package/dist/cms/migrations/scripts/0100-add-sign-up-to-cta-action-trigger-mapping-value.cjs +29 -0
- package/dist/cms/scripts/0100-add-sign-up-to-cta-action-trigger-mapping-value.cjs +29 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|