@cooperco/cooper-component-library 0.1.96 → 0.1.98
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/0084-limit-page-modules.cjs +40 -0
- package/dist/cms/contentful/migrations/scripts/0084-limit-page-modules.cjs +40 -0
- package/dist/cms/contentful/queries/page.query.js +4 -2
- package/dist/cms/contentful/queries/page.query.ts +4 -2
- package/dist/cms/migrations/scripts/0084-limit-page-modules.cjs +40 -0
- package/dist/cms/page.query.ts +4 -2
- package/dist/cms/queries/page.query.ts +4 -2
- package/dist/cms/scripts/0084-limit-page-modules.cjs +40 -0
- package/dist/lib/component-lib.js +577 -568
- package/dist/lib/component-lib.umd.cjs +11 -11
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const page = migration.editContentType('page')
|
|
5
|
+
|
|
6
|
+
page.editField('pageModules').items({
|
|
7
|
+
type: 'Link',
|
|
8
|
+
validations: [
|
|
9
|
+
{
|
|
10
|
+
linkContentType: [
|
|
11
|
+
'carouselModule',
|
|
12
|
+
'chartModule',
|
|
13
|
+
'containerCollectionModule',
|
|
14
|
+
'containerModule',
|
|
15
|
+
'contentModule',
|
|
16
|
+
'logoCollectionModule',
|
|
17
|
+
'placeholderModule',
|
|
18
|
+
'productModule',
|
|
19
|
+
'splitModule',
|
|
20
|
+
'tabModule',
|
|
21
|
+
'testimonialModule',
|
|
22
|
+
'tileCollectionModule',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
linkType: 'Entry',
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
31
|
+
down: function (migration) {
|
|
32
|
+
const page = migration.editContentType('page')
|
|
33
|
+
|
|
34
|
+
page.editField('pageModules').items({
|
|
35
|
+
type: 'Link',
|
|
36
|
+
validations: [],
|
|
37
|
+
linkType: 'Entry',
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const page = migration.editContentType('page')
|
|
5
|
+
|
|
6
|
+
page.editField('pageModules').items({
|
|
7
|
+
type: 'Link',
|
|
8
|
+
validations: [
|
|
9
|
+
{
|
|
10
|
+
linkContentType: [
|
|
11
|
+
'carouselModule',
|
|
12
|
+
'chartModule',
|
|
13
|
+
'containerCollectionModule',
|
|
14
|
+
'containerModule',
|
|
15
|
+
'contentModule',
|
|
16
|
+
'logoCollectionModule',
|
|
17
|
+
'placeholderModule',
|
|
18
|
+
'productModule',
|
|
19
|
+
'splitModule',
|
|
20
|
+
'tabModule',
|
|
21
|
+
'testimonialModule',
|
|
22
|
+
'tileCollectionModule',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
linkType: 'Entry',
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
31
|
+
down: function (migration) {
|
|
32
|
+
const page = migration.editContentType('page')
|
|
33
|
+
|
|
34
|
+
page.editField('pageModules').items({
|
|
35
|
+
type: 'Link',
|
|
36
|
+
validations: [],
|
|
37
|
+
linkType: 'Entry',
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const page = migration.editContentType('page')
|
|
5
|
+
|
|
6
|
+
page.editField('pageModules').items({
|
|
7
|
+
type: 'Link',
|
|
8
|
+
validations: [
|
|
9
|
+
{
|
|
10
|
+
linkContentType: [
|
|
11
|
+
'carouselModule',
|
|
12
|
+
'chartModule',
|
|
13
|
+
'containerCollectionModule',
|
|
14
|
+
'containerModule',
|
|
15
|
+
'contentModule',
|
|
16
|
+
'logoCollectionModule',
|
|
17
|
+
'placeholderModule',
|
|
18
|
+
'productModule',
|
|
19
|
+
'splitModule',
|
|
20
|
+
'tabModule',
|
|
21
|
+
'testimonialModule',
|
|
22
|
+
'tileCollectionModule',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
linkType: 'Entry',
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
31
|
+
down: function (migration) {
|
|
32
|
+
const page = migration.editContentType('page')
|
|
33
|
+
|
|
34
|
+
page.editField('pageModules').items({
|
|
35
|
+
type: 'Link',
|
|
36
|
+
validations: [],
|
|
37
|
+
linkType: 'Entry',
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
}
|
package/dist/cms/page.query.ts
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const page = migration.editContentType('page')
|
|
5
|
+
|
|
6
|
+
page.editField('pageModules').items({
|
|
7
|
+
type: 'Link',
|
|
8
|
+
validations: [
|
|
9
|
+
{
|
|
10
|
+
linkContentType: [
|
|
11
|
+
'carouselModule',
|
|
12
|
+
'chartModule',
|
|
13
|
+
'containerCollectionModule',
|
|
14
|
+
'containerModule',
|
|
15
|
+
'contentModule',
|
|
16
|
+
'logoCollectionModule',
|
|
17
|
+
'placeholderModule',
|
|
18
|
+
'productModule',
|
|
19
|
+
'splitModule',
|
|
20
|
+
'tabModule',
|
|
21
|
+
'testimonialModule',
|
|
22
|
+
'tileCollectionModule',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
linkType: 'Entry',
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
31
|
+
down: function (migration) {
|
|
32
|
+
const page = migration.editContentType('page')
|
|
33
|
+
|
|
34
|
+
page.editField('pageModules').items({
|
|
35
|
+
type: 'Link',
|
|
36
|
+
validations: [],
|
|
37
|
+
linkType: 'Entry',
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
}
|