@cooperco/cooper-component-library 0.1.63 → 0.1.65

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.
Files changed (33) hide show
  1. package/dist/cms/0058-update-cta.js +16 -0
  2. package/dist/cms/0058-update-primary-navigation.cjs +21 -0
  3. package/dist/cms/0059-update-navigation-element.cjs +18 -0
  4. package/dist/cms/0059-update-navigation-element.js +23 -0
  5. package/dist/cms/contentful/migrations/drafts/0058-update-cta.js +16 -0
  6. package/dist/cms/contentful/migrations/drafts/0059-update-navigation-element.js +23 -0
  7. package/dist/cms/contentful/migrations/scripts/0058-update-primary-navigation.cjs +21 -0
  8. package/dist/cms/contentful/migrations/scripts/0059-update-navigation-element.cjs +18 -0
  9. package/dist/cms/contentful/queries/header.query.js +26 -0
  10. package/dist/cms/contentful/queries/header.query.ts +26 -0
  11. package/dist/cms/drafts/0058-update-cta.js +16 -0
  12. package/dist/cms/drafts/0059-update-navigation-element.js +23 -0
  13. package/dist/cms/header.query.ts +26 -0
  14. package/dist/cms/migrations/drafts/0058-update-cta.js +16 -0
  15. package/dist/cms/migrations/drafts/0059-update-navigation-element.js +23 -0
  16. package/dist/cms/migrations/scripts/0058-update-primary-navigation.cjs +21 -0
  17. package/dist/cms/migrations/scripts/0059-update-navigation-element.cjs +18 -0
  18. package/dist/cms/queries/header.query.ts +26 -0
  19. package/dist/cms/scripts/0058-update-primary-navigation.cjs +21 -0
  20. package/dist/cms/scripts/0059-update-navigation-element.cjs +18 -0
  21. package/dist/lib/component-lib.js +1831 -1659
  22. package/dist/lib/component-lib.umd.cjs +19 -19
  23. package/dist/lib/style.css +1 -1
  24. package/dist/types/src/components/CTA/CTA.d.ts +1 -0
  25. package/dist/types/src/components/HelloBar/HelloBar.d.ts +23 -0
  26. package/dist/types/src/components/HelloBar/HelloBar.vue.d.ts +3 -0
  27. package/dist/types/src/components/NavigationElement/NavigationElement.d.ts +3 -0
  28. package/dist/types/src/components/PrimaryNavigation/PrimaryNavigation.d.ts +1 -0
  29. package/dist/types/src/components/components.d.ts +1 -0
  30. package/dist/types/src/components/types.d.ts +1 -0
  31. package/dist/types/src/config/defaultPassthrough/index.d.ts +2 -0
  32. package/dist/types/src/config/defaultPassthrough/types.d.ts +3 -1
  33. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const cta = migration.editContentType('cta')
5
+
6
+ cta.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+ },
12
+ down: function (migration) {
13
+ const cta = migration.editContentType('cta')
14
+ cta.deleteField('highlighted')
15
+ },
16
+ }
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const primaryNav = migration.editContentType('primaryNavigation')
5
+
6
+ // In Banner reference
7
+ primaryNav.createField('inBanner', {
8
+ name: 'In Banner',
9
+ type: 'Array',
10
+ items: {
11
+ type: 'Link',
12
+ validations: [{ linkContentType: ['navigationElement', 'cta'] }],
13
+ linkType: 'Entry',
14
+ },
15
+ })
16
+ },
17
+ down: function (migration) {
18
+ const primaryNav = migration.editContentType('primaryNavigation')
19
+ primaryNav.deleteField('inBanner')
20
+ },
21
+ }
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('expandedMobile', {
7
+ name: 'Expanded Mobile',
8
+ type: 'Boolean',
9
+ defaultValue: {
10
+ 'en-US': false,
11
+ },
12
+ })
13
+ },
14
+ down: function (migration) {
15
+ const navigationElement = migration.editContentType('navigationElement')
16
+ navigationElement.deleteField('expandedMobile')
17
+ },
18
+ }
@@ -0,0 +1,23 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+
12
+ navigationElement.createField('expandedMobile', {
13
+ name: 'Expanded Mobile',
14
+ type: 'Boolean',
15
+ defaultValue: false,
16
+ })
17
+ },
18
+ down: function (migration) {
19
+ const navigationElement = migration.editContentType('navigationElement')
20
+ navigationElement.deleteField('highlighted')
21
+ navigationElement.deleteField('expandedMobile')
22
+ },
23
+ }
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const cta = migration.editContentType('cta')
5
+
6
+ cta.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+ },
12
+ down: function (migration) {
13
+ const cta = migration.editContentType('cta')
14
+ cta.deleteField('highlighted')
15
+ },
16
+ }
@@ -0,0 +1,23 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+
12
+ navigationElement.createField('expandedMobile', {
13
+ name: 'Expanded Mobile',
14
+ type: 'Boolean',
15
+ defaultValue: false,
16
+ })
17
+ },
18
+ down: function (migration) {
19
+ const navigationElement = migration.editContentType('navigationElement')
20
+ navigationElement.deleteField('highlighted')
21
+ navigationElement.deleteField('expandedMobile')
22
+ },
23
+ }
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const primaryNav = migration.editContentType('primaryNavigation')
5
+
6
+ // In Banner reference
7
+ primaryNav.createField('inBanner', {
8
+ name: 'In Banner',
9
+ type: 'Array',
10
+ items: {
11
+ type: 'Link',
12
+ validations: [{ linkContentType: ['navigationElement', 'cta'] }],
13
+ linkType: 'Entry',
14
+ },
15
+ })
16
+ },
17
+ down: function (migration) {
18
+ const primaryNav = migration.editContentType('primaryNavigation')
19
+ primaryNav.deleteField('inBanner')
20
+ },
21
+ }
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('expandedMobile', {
7
+ name: 'Expanded Mobile',
8
+ type: 'Boolean',
9
+ defaultValue: {
10
+ 'en-US': false,
11
+ },
12
+ })
13
+ },
14
+ down: function (migration) {
15
+ const navigationElement = migration.editContentType('navigationElement')
16
+ navigationElement.deleteField('expandedMobile')
17
+ },
18
+ }
@@ -34,6 +34,32 @@ export const getHeader = gql `
34
34
  }
35
35
  }
36
36
  }
37
+ inBannerCollection {
38
+ items {
39
+ __typename
40
+ ... on NavigationElement {
41
+ title
42
+ dividerLine
43
+ link {
44
+ ...linkFragment
45
+ }
46
+ subNavigationElementsCollection(limit: 10) {
47
+ items {
48
+ title
49
+ link {
50
+ ...linkFragment
51
+ }
52
+ }
53
+ }
54
+ }
55
+ ... on Cta {
56
+ ...ctaFragment
57
+ logo {
58
+ ...imageFragment
59
+ }
60
+ }
61
+ }
62
+ }
37
63
  }
38
64
  }
39
65
  `;
@@ -36,6 +36,32 @@ export const getHeader: DocumentNode = gql`
36
36
  }
37
37
  }
38
38
  }
39
+ inBannerCollection {
40
+ items {
41
+ __typename
42
+ ... on NavigationElement {
43
+ title
44
+ dividerLine
45
+ link {
46
+ ...linkFragment
47
+ }
48
+ subNavigationElementsCollection(limit: 10) {
49
+ items {
50
+ title
51
+ link {
52
+ ...linkFragment
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ... on Cta {
58
+ ...ctaFragment
59
+ logo {
60
+ ...imageFragment
61
+ }
62
+ }
63
+ }
64
+ }
39
65
  }
40
66
  }
41
67
  `
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const cta = migration.editContentType('cta')
5
+
6
+ cta.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+ },
12
+ down: function (migration) {
13
+ const cta = migration.editContentType('cta')
14
+ cta.deleteField('highlighted')
15
+ },
16
+ }
@@ -0,0 +1,23 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+
12
+ navigationElement.createField('expandedMobile', {
13
+ name: 'Expanded Mobile',
14
+ type: 'Boolean',
15
+ defaultValue: false,
16
+ })
17
+ },
18
+ down: function (migration) {
19
+ const navigationElement = migration.editContentType('navigationElement')
20
+ navigationElement.deleteField('highlighted')
21
+ navigationElement.deleteField('expandedMobile')
22
+ },
23
+ }
@@ -36,6 +36,32 @@ export const getHeader: DocumentNode = gql`
36
36
  }
37
37
  }
38
38
  }
39
+ inBannerCollection {
40
+ items {
41
+ __typename
42
+ ... on NavigationElement {
43
+ title
44
+ dividerLine
45
+ link {
46
+ ...linkFragment
47
+ }
48
+ subNavigationElementsCollection(limit: 10) {
49
+ items {
50
+ title
51
+ link {
52
+ ...linkFragment
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ... on Cta {
58
+ ...ctaFragment
59
+ logo {
60
+ ...imageFragment
61
+ }
62
+ }
63
+ }
64
+ }
39
65
  }
40
66
  }
41
67
  `
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const cta = migration.editContentType('cta')
5
+
6
+ cta.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+ },
12
+ down: function (migration) {
13
+ const cta = migration.editContentType('cta')
14
+ cta.deleteField('highlighted')
15
+ },
16
+ }
@@ -0,0 +1,23 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('highlighted', {
7
+ name: 'Highlighted',
8
+ type: 'Boolean',
9
+ defaultValue: false,
10
+ })
11
+
12
+ navigationElement.createField('expandedMobile', {
13
+ name: 'Expanded Mobile',
14
+ type: 'Boolean',
15
+ defaultValue: false,
16
+ })
17
+ },
18
+ down: function (migration) {
19
+ const navigationElement = migration.editContentType('navigationElement')
20
+ navigationElement.deleteField('highlighted')
21
+ navigationElement.deleteField('expandedMobile')
22
+ },
23
+ }
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const primaryNav = migration.editContentType('primaryNavigation')
5
+
6
+ // In Banner reference
7
+ primaryNav.createField('inBanner', {
8
+ name: 'In Banner',
9
+ type: 'Array',
10
+ items: {
11
+ type: 'Link',
12
+ validations: [{ linkContentType: ['navigationElement', 'cta'] }],
13
+ linkType: 'Entry',
14
+ },
15
+ })
16
+ },
17
+ down: function (migration) {
18
+ const primaryNav = migration.editContentType('primaryNavigation')
19
+ primaryNav.deleteField('inBanner')
20
+ },
21
+ }
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('expandedMobile', {
7
+ name: 'Expanded Mobile',
8
+ type: 'Boolean',
9
+ defaultValue: {
10
+ 'en-US': false,
11
+ },
12
+ })
13
+ },
14
+ down: function (migration) {
15
+ const navigationElement = migration.editContentType('navigationElement')
16
+ navigationElement.deleteField('expandedMobile')
17
+ },
18
+ }
@@ -36,6 +36,32 @@ export const getHeader: DocumentNode = gql`
36
36
  }
37
37
  }
38
38
  }
39
+ inBannerCollection {
40
+ items {
41
+ __typename
42
+ ... on NavigationElement {
43
+ title
44
+ dividerLine
45
+ link {
46
+ ...linkFragment
47
+ }
48
+ subNavigationElementsCollection(limit: 10) {
49
+ items {
50
+ title
51
+ link {
52
+ ...linkFragment
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ... on Cta {
58
+ ...ctaFragment
59
+ logo {
60
+ ...imageFragment
61
+ }
62
+ }
63
+ }
64
+ }
39
65
  }
40
66
  }
41
67
  `
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const primaryNav = migration.editContentType('primaryNavigation')
5
+
6
+ // In Banner reference
7
+ primaryNav.createField('inBanner', {
8
+ name: 'In Banner',
9
+ type: 'Array',
10
+ items: {
11
+ type: 'Link',
12
+ validations: [{ linkContentType: ['navigationElement', 'cta'] }],
13
+ linkType: 'Entry',
14
+ },
15
+ })
16
+ },
17
+ down: function (migration) {
18
+ const primaryNav = migration.editContentType('primaryNavigation')
19
+ primaryNav.deleteField('inBanner')
20
+ },
21
+ }
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ /** @type { import('contentful-migration').MigrationFunction } */
3
+ up: function (migration) {
4
+ const navigationElement = migration.editContentType('navigationElement')
5
+
6
+ navigationElement.createField('expandedMobile', {
7
+ name: 'Expanded Mobile',
8
+ type: 'Boolean',
9
+ defaultValue: {
10
+ 'en-US': false,
11
+ },
12
+ })
13
+ },
14
+ down: function (migration) {
15
+ const navigationElement = migration.editContentType('navigationElement')
16
+ navigationElement.deleteField('expandedMobile')
17
+ },
18
+ }