@cooperco/cooper-component-library 0.1.109 → 0.1.110
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/0088-add-legal-text-to-footer.cjs +30 -0
- package/dist/cms/contentful/migrations/scripts/0088-add-legal-text-to-footer.cjs +30 -0
- package/dist/cms/contentful/queries/page.query.js +56 -1
- package/dist/cms/contentful/queries/page.query.ts +56 -1
- package/dist/cms/migrations/scripts/0088-add-legal-text-to-footer.cjs +30 -0
- package/dist/cms/page.query.ts +56 -1
- package/dist/cms/queries/page.query.ts +56 -1
- package/dist/cms/scripts/0088-add-legal-text-to-footer.cjs +30 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const footer = migration.editContentType('footer')
|
|
6
|
+
|
|
7
|
+
// Add legalText field as a long text field before backgroundColor
|
|
8
|
+
footer
|
|
9
|
+
.createField('legalText')
|
|
10
|
+
.name('Legal Text')
|
|
11
|
+
.type('Text')
|
|
12
|
+
.localized(false)
|
|
13
|
+
.required(false)
|
|
14
|
+
.disabled(false)
|
|
15
|
+
.omitted(false)
|
|
16
|
+
|
|
17
|
+
// Set field control to multipleLine for markdown support
|
|
18
|
+
footer.changeFieldControl('legalText', 'builtin', 'multipleLine')
|
|
19
|
+
|
|
20
|
+
// Move legalText field before backgroundColor
|
|
21
|
+
footer.moveField('legalText').beforeField('backgroundColor')
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// @ts-check
|
|
25
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
26
|
+
down: async function (migration) {
|
|
27
|
+
const footer = migration.editContentType('footer')
|
|
28
|
+
footer.deleteField('legalText')
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const footer = migration.editContentType('footer')
|
|
6
|
+
|
|
7
|
+
// Add legalText field as a long text field before backgroundColor
|
|
8
|
+
footer
|
|
9
|
+
.createField('legalText')
|
|
10
|
+
.name('Legal Text')
|
|
11
|
+
.type('Text')
|
|
12
|
+
.localized(false)
|
|
13
|
+
.required(false)
|
|
14
|
+
.disabled(false)
|
|
15
|
+
.omitted(false)
|
|
16
|
+
|
|
17
|
+
// Set field control to multipleLine for markdown support
|
|
18
|
+
footer.changeFieldControl('legalText', 'builtin', 'multipleLine')
|
|
19
|
+
|
|
20
|
+
// Move legalText field before backgroundColor
|
|
21
|
+
footer.moveField('legalText').beforeField('backgroundColor')
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// @ts-check
|
|
25
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
26
|
+
down: async function (migration) {
|
|
27
|
+
const footer = migration.editContentType('footer')
|
|
28
|
+
footer.deleteField('legalText')
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -9,7 +9,62 @@ export const getPage = gql `
|
|
|
9
9
|
pageModulesCollection(limit: 50) {
|
|
10
10
|
items {
|
|
11
11
|
__typename
|
|
12
|
-
... on
|
|
12
|
+
... on CarouselModule {
|
|
13
|
+
sys {
|
|
14
|
+
id
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
... on ChartModule {
|
|
18
|
+
sys {
|
|
19
|
+
id
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
... on ContainerCollectionModule {
|
|
23
|
+
sys {
|
|
24
|
+
id
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
... on ContainerModule {
|
|
28
|
+
sys {
|
|
29
|
+
id
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
... on ContentModule {
|
|
33
|
+
sys {
|
|
34
|
+
id
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
... on LogoCollectionModule {
|
|
38
|
+
sys {
|
|
39
|
+
id
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
... on PlaceholderModule {
|
|
43
|
+
sys {
|
|
44
|
+
id
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
... on ProductModule {
|
|
48
|
+
sys {
|
|
49
|
+
id
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
... on SplitModule {
|
|
53
|
+
sys {
|
|
54
|
+
id
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
... on TabModule {
|
|
58
|
+
sys {
|
|
59
|
+
id
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
... on TestimonialModule {
|
|
63
|
+
sys {
|
|
64
|
+
id
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
... on TileCollectionModule {
|
|
13
68
|
sys {
|
|
14
69
|
id
|
|
15
70
|
}
|
|
@@ -11,7 +11,62 @@ export const getPage: DocumentNode = gql`
|
|
|
11
11
|
pageModulesCollection(limit: 50) {
|
|
12
12
|
items {
|
|
13
13
|
__typename
|
|
14
|
-
... on
|
|
14
|
+
... on CarouselModule {
|
|
15
|
+
sys {
|
|
16
|
+
id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
... on ChartModule {
|
|
20
|
+
sys {
|
|
21
|
+
id
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
... on ContainerCollectionModule {
|
|
25
|
+
sys {
|
|
26
|
+
id
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
... on ContainerModule {
|
|
30
|
+
sys {
|
|
31
|
+
id
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
... on ContentModule {
|
|
35
|
+
sys {
|
|
36
|
+
id
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
... on LogoCollectionModule {
|
|
40
|
+
sys {
|
|
41
|
+
id
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
... on PlaceholderModule {
|
|
45
|
+
sys {
|
|
46
|
+
id
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
... on ProductModule {
|
|
50
|
+
sys {
|
|
51
|
+
id
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
... on SplitModule {
|
|
55
|
+
sys {
|
|
56
|
+
id
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
... on TabModule {
|
|
60
|
+
sys {
|
|
61
|
+
id
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
... on TestimonialModule {
|
|
65
|
+
sys {
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
... on TileCollectionModule {
|
|
15
70
|
sys {
|
|
16
71
|
id
|
|
17
72
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const footer = migration.editContentType('footer')
|
|
6
|
+
|
|
7
|
+
// Add legalText field as a long text field before backgroundColor
|
|
8
|
+
footer
|
|
9
|
+
.createField('legalText')
|
|
10
|
+
.name('Legal Text')
|
|
11
|
+
.type('Text')
|
|
12
|
+
.localized(false)
|
|
13
|
+
.required(false)
|
|
14
|
+
.disabled(false)
|
|
15
|
+
.omitted(false)
|
|
16
|
+
|
|
17
|
+
// Set field control to multipleLine for markdown support
|
|
18
|
+
footer.changeFieldControl('legalText', 'builtin', 'multipleLine')
|
|
19
|
+
|
|
20
|
+
// Move legalText field before backgroundColor
|
|
21
|
+
footer.moveField('legalText').beforeField('backgroundColor')
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// @ts-check
|
|
25
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
26
|
+
down: async function (migration) {
|
|
27
|
+
const footer = migration.editContentType('footer')
|
|
28
|
+
footer.deleteField('legalText')
|
|
29
|
+
},
|
|
30
|
+
}
|
package/dist/cms/page.query.ts
CHANGED
|
@@ -11,7 +11,62 @@ export const getPage: DocumentNode = gql`
|
|
|
11
11
|
pageModulesCollection(limit: 50) {
|
|
12
12
|
items {
|
|
13
13
|
__typename
|
|
14
|
-
... on
|
|
14
|
+
... on CarouselModule {
|
|
15
|
+
sys {
|
|
16
|
+
id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
... on ChartModule {
|
|
20
|
+
sys {
|
|
21
|
+
id
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
... on ContainerCollectionModule {
|
|
25
|
+
sys {
|
|
26
|
+
id
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
... on ContainerModule {
|
|
30
|
+
sys {
|
|
31
|
+
id
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
... on ContentModule {
|
|
35
|
+
sys {
|
|
36
|
+
id
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
... on LogoCollectionModule {
|
|
40
|
+
sys {
|
|
41
|
+
id
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
... on PlaceholderModule {
|
|
45
|
+
sys {
|
|
46
|
+
id
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
... on ProductModule {
|
|
50
|
+
sys {
|
|
51
|
+
id
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
... on SplitModule {
|
|
55
|
+
sys {
|
|
56
|
+
id
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
... on TabModule {
|
|
60
|
+
sys {
|
|
61
|
+
id
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
... on TestimonialModule {
|
|
65
|
+
sys {
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
... on TileCollectionModule {
|
|
15
70
|
sys {
|
|
16
71
|
id
|
|
17
72
|
}
|
|
@@ -11,7 +11,62 @@ export const getPage: DocumentNode = gql`
|
|
|
11
11
|
pageModulesCollection(limit: 50) {
|
|
12
12
|
items {
|
|
13
13
|
__typename
|
|
14
|
-
... on
|
|
14
|
+
... on CarouselModule {
|
|
15
|
+
sys {
|
|
16
|
+
id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
... on ChartModule {
|
|
20
|
+
sys {
|
|
21
|
+
id
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
... on ContainerCollectionModule {
|
|
25
|
+
sys {
|
|
26
|
+
id
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
... on ContainerModule {
|
|
30
|
+
sys {
|
|
31
|
+
id
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
... on ContentModule {
|
|
35
|
+
sys {
|
|
36
|
+
id
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
... on LogoCollectionModule {
|
|
40
|
+
sys {
|
|
41
|
+
id
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
... on PlaceholderModule {
|
|
45
|
+
sys {
|
|
46
|
+
id
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
... on ProductModule {
|
|
50
|
+
sys {
|
|
51
|
+
id
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
... on SplitModule {
|
|
55
|
+
sys {
|
|
56
|
+
id
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
... on TabModule {
|
|
60
|
+
sys {
|
|
61
|
+
id
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
... on TestimonialModule {
|
|
65
|
+
sys {
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
... on TileCollectionModule {
|
|
15
70
|
sys {
|
|
16
71
|
id
|
|
17
72
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const footer = migration.editContentType('footer')
|
|
6
|
+
|
|
7
|
+
// Add legalText field as a long text field before backgroundColor
|
|
8
|
+
footer
|
|
9
|
+
.createField('legalText')
|
|
10
|
+
.name('Legal Text')
|
|
11
|
+
.type('Text')
|
|
12
|
+
.localized(false)
|
|
13
|
+
.required(false)
|
|
14
|
+
.disabled(false)
|
|
15
|
+
.omitted(false)
|
|
16
|
+
|
|
17
|
+
// Set field control to multipleLine for markdown support
|
|
18
|
+
footer.changeFieldControl('legalText', 'builtin', 'multipleLine')
|
|
19
|
+
|
|
20
|
+
// Move legalText field before backgroundColor
|
|
21
|
+
footer.moveField('legalText').beforeField('backgroundColor')
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// @ts-check
|
|
25
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
26
|
+
down: async function (migration) {
|
|
27
|
+
const footer = migration.editContentType('footer')
|
|
28
|
+
footer.deleteField('legalText')
|
|
29
|
+
},
|
|
30
|
+
}
|