@cooperco/cooper-component-library 0.1.72 → 0.1.73
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/0063-update-accordion-item-types.cjs +36 -0
- package/dist/cms/contentful/migrations/scripts/0063-update-accordion-item-types.cjs +36 -0
- package/dist/cms/migrations/scripts/0063-update-accordion-item-types.cjs +36 -0
- package/dist/cms/scripts/0063-update-accordion-item-types.cjs +36 -0
- package/dist/lib/component-lib.js +2495 -2413
- package/dist/lib/component-lib.umd.cjs +22 -22
- package/dist/lib/style.css +1 -1
- package/dist/types/src/components/Accordion/Accordion.d.ts +1 -1
- package/dist/types/src/components/Accordion/AccordionItem.d.ts +8 -1
- package/dist/types/src/config/defaultPassthrough/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const accordion = migration.editContentType('accordion')
|
|
5
|
+
|
|
6
|
+
accordion
|
|
7
|
+
.editField('accordionItem')
|
|
8
|
+
.items({
|
|
9
|
+
type: 'Link',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
linkContentType: ['accordionItem', 'accordion'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
linkType: 'Entry',
|
|
16
|
+
})
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
20
|
+
down: async function (migration) {
|
|
21
|
+
const accordion = migration.editContentType('accordion')
|
|
22
|
+
|
|
23
|
+
accordion
|
|
24
|
+
.editField('accordionItem')
|
|
25
|
+
.items({
|
|
26
|
+
type: 'Link',
|
|
27
|
+
validations: [
|
|
28
|
+
{
|
|
29
|
+
linkContentType: ['accordionItem'],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
linkType: 'Entry',
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const accordion = migration.editContentType('accordion')
|
|
5
|
+
|
|
6
|
+
accordion
|
|
7
|
+
.editField('accordionItem')
|
|
8
|
+
.items({
|
|
9
|
+
type: 'Link',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
linkContentType: ['accordionItem', 'accordion'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
linkType: 'Entry',
|
|
16
|
+
})
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
20
|
+
down: async function (migration) {
|
|
21
|
+
const accordion = migration.editContentType('accordion')
|
|
22
|
+
|
|
23
|
+
accordion
|
|
24
|
+
.editField('accordionItem')
|
|
25
|
+
.items({
|
|
26
|
+
type: 'Link',
|
|
27
|
+
validations: [
|
|
28
|
+
{
|
|
29
|
+
linkContentType: ['accordionItem'],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
linkType: 'Entry',
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const accordion = migration.editContentType('accordion')
|
|
5
|
+
|
|
6
|
+
accordion
|
|
7
|
+
.editField('accordionItem')
|
|
8
|
+
.items({
|
|
9
|
+
type: 'Link',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
linkContentType: ['accordionItem', 'accordion'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
linkType: 'Entry',
|
|
16
|
+
})
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
20
|
+
down: async function (migration) {
|
|
21
|
+
const accordion = migration.editContentType('accordion')
|
|
22
|
+
|
|
23
|
+
accordion
|
|
24
|
+
.editField('accordionItem')
|
|
25
|
+
.items({
|
|
26
|
+
type: 'Link',
|
|
27
|
+
validations: [
|
|
28
|
+
{
|
|
29
|
+
linkContentType: ['accordionItem'],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
linkType: 'Entry',
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
+
up: function (migration) {
|
|
4
|
+
const accordion = migration.editContentType('accordion')
|
|
5
|
+
|
|
6
|
+
accordion
|
|
7
|
+
.editField('accordionItem')
|
|
8
|
+
.items({
|
|
9
|
+
type: 'Link',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
linkContentType: ['accordionItem', 'accordion'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
linkType: 'Entry',
|
|
16
|
+
})
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
20
|
+
down: async function (migration) {
|
|
21
|
+
const accordion = migration.editContentType('accordion')
|
|
22
|
+
|
|
23
|
+
accordion
|
|
24
|
+
.editField('accordionItem')
|
|
25
|
+
.items({
|
|
26
|
+
type: 'Link',
|
|
27
|
+
validations: [
|
|
28
|
+
{
|
|
29
|
+
linkContentType: ['accordionItem'],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
linkType: 'Entry',
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|