@cooperco/cooper-component-library 0.1.93 → 0.1.95
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/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/contentModule.query.ts +1 -0
- package/dist/cms/contentful/migrations/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/contentful/queries/contentModule.query.js +1 -0
- package/dist/cms/contentful/queries/contentModule.query.ts +1 -0
- package/dist/cms/migrations/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/queries/contentModule.query.ts +1 -0
- package/dist/cms/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/lib/component-lib.js +486 -485
- package/dist/lib/component-lib.umd.cjs +10 -10
- package/dist/lib/style.css +1 -1
- package/dist/types/src/components/ContentModule/ContentModule.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('bodyCopyAlignment', {
|
|
8
|
+
name: 'Body Copy Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Left', 'Center', 'Right'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'bodyCopyAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Override the body copy text alignment independently from the general alignment. If not set, body copy will follow the general alignment.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('bodyCopyAlignment').afterField('bodyCopy')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('bodyCopyAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
package/dist/cms/contentful/migrations/scripts/0082-add-body-copy-alignment-to-content-module.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('bodyCopyAlignment', {
|
|
8
|
+
name: 'Body Copy Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Left', 'Center', 'Right'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'bodyCopyAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Override the body copy text alignment independently from the general alignment. If not set, body copy will follow the general alignment.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('bodyCopyAlignment').afterField('bodyCopy')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('bodyCopyAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('bodyCopyAlignment', {
|
|
8
|
+
name: 'Body Copy Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Left', 'Center', 'Right'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'bodyCopyAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Override the body copy text alignment independently from the general alignment. If not set, body copy will follow the general alignment.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('bodyCopyAlignment').afterField('bodyCopy')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('bodyCopyAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('bodyCopyAlignment', {
|
|
8
|
+
name: 'Body Copy Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Left', 'Center', 'Right'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'bodyCopyAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Override the body copy text alignment independently from the general alignment. If not set, body copy will follow the general alignment.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('bodyCopyAlignment').afterField('bodyCopy')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('bodyCopyAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|