@cooperco/cooper-component-library 0.1.59 → 0.1.61
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/0001-init.cjs +41 -0
- package/dist/cms/0002-create-image.cjs +34 -0
- package/dist/cms/0003-create-video.cjs +52 -0
- package/dist/cms/0004-create-testimonial.cjs +56 -0
- package/dist/cms/0005-create-tile-label.cjs +41 -0
- package/dist/cms/0006-create-accordion-item.cjs +83 -0
- package/dist/cms/0007-create-accordion.cjs +45 -0
- package/dist/cms/0008-create-page-metadata.cjs +69 -0
- package/dist/cms/0009-create-page.cjs +57 -0
- package/dist/cms/0010-create-link.cjs +86 -0
- package/dist/cms/0011-create-navigation-element.cjs +54 -0
- package/dist/cms/0012-create-primary-navigation.cjs +46 -0
- package/dist/cms/0013-create-tile-content.cjs +99 -0
- package/dist/cms/0014-create-tile-collection.cjs +96 -0
- package/dist/cms/0015-create-highlighted-text.cjs +24 -0
- package/dist/cms/0016-create-content-module.cjs +105 -0
- package/dist/cms/0017-create-cta.cjs +97 -0
- package/dist/cms/0018-create-container-module.cjs +134 -0
- package/dist/cms/0019-social-media.cjs +45 -0
- package/dist/cms/0020-create-footer.cjs +93 -0
- package/dist/cms/0021-create-carousel.cjs +68 -0
- package/dist/cms/0022-create-logo-collection.cjs +58 -0
- package/dist/cms/0023-create-split-module.cjs +66 -0
- package/dist/cms/0024-create-container-collection.cjs +58 -0
- package/dist/cms/0025-edit-container-module.cjs +15 -0
- package/dist/cms/0026-add-localization.cjs +181 -0
- package/dist/cms/0027-add-field-to-content-module.cjs +24 -0
- package/dist/cms/0028-add-load-more-accordion.cjs +22 -0
- package/dist/cms/0029-add-start-open-to-accordion.cjs +22 -0
- package/dist/cms/0030-add-mobile-image.cjs +37 -0
- package/dist/cms/0031-update-tile-content-helptext.cjs +19 -0
- package/dist/cms/0032-add-include-decorations.cjs +33 -0
- package/dist/cms/0033-add-centered-option-content-module.cjs +27 -0
- package/dist/cms/0034-update-tile-content.cjs +19 -0
- package/dist/cms/0035-update-tile-content-subheadline.cjs +19 -0
- package/dist/cms/0036-multiple-cta-option.cjs +160 -0
- package/dist/cms/0037-edit-content-module.cjs +15 -0
- package/dist/cms/0038-add-mobile-image-bottom-option-container-module.cjs +31 -0
- package/dist/cms/0039-limit-ctas-collections-size.cjs +39 -0
- package/dist/cms/0040-edit-content-tile.cjs +15 -0
- package/dist/cms/0041-edit-cta-add-btn-size.cjs +28 -0
- package/dist/cms/0042-edit-cta-update-button-type.cjs +23 -0
- package/dist/cms/0043-edit-link-add-third-party-id.cjs +24 -0
- package/dist/cms/0044-edit-footer-update-copyright-links-validation-type.cjs +144 -0
- package/dist/cms/0045-edit-carousel-add-heading-field.cjs +21 -0
- package/dist/cms/0046-update-tile-content.cjs +48 -0
- package/dist/cms/0047-create-body-copy.cjs +51 -0
- package/dist/cms/0048-create-tab-module.cjs +51 -0
- package/dist/cms/0049-create-product-module.cjs +68 -0
- package/dist/cms/0050-update-container.cjs +29 -0
- package/dist/cms/0051-update-accordion.cjs +22 -0
- package/dist/cms/0052-update-tile-content.cjs +41 -0
- package/dist/cms/0053-add-fields-to-tab-module.cjs +44 -0
- package/dist/cms/0054-update-product-module-logo-collection.cjs +70 -0
- package/dist/cms/0055-create-cta-action.cjs +50 -0
- package/dist/cms/0056-update-cta.cjs +25 -0
- package/dist/cms/0057-add-show-cart-to-page.cjs +26 -0
- package/dist/cms/README.md +42 -0
- package/dist/cms/accordion.query.ts +21 -0
- package/dist/cms/addEntryNameField.cjs +9 -0
- package/dist/cms/carousel.query.ts +34 -0
- package/dist/cms/containerModule.query.ts +142 -0
- package/dist/cms/contentModule.query.ts +51 -0
- package/dist/cms/contentful/graphql/queries/accordion.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/accordion.query.js +19 -0
- package/dist/cms/contentful/graphql/queries/carousel.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/carousel.query.js +32 -0
- package/dist/cms/contentful/graphql/queries/containerModule.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/containerModule.query.js +140 -0
- package/dist/cms/contentful/graphql/queries/contentModule.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/contentModule.query.js +49 -0
- package/dist/cms/contentful/graphql/queries/cta.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/cta.query.js +10 -0
- package/dist/cms/contentful/graphql/queries/footer.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/footer.query.js +44 -0
- package/dist/cms/contentful/graphql/queries/fragments.d.ts +11 -0
- package/dist/cms/contentful/graphql/queries/fragments.js +172 -0
- package/dist/cms/contentful/graphql/queries/header.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/header.query.js +39 -0
- package/dist/cms/contentful/graphql/queries/image.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/image.query.js +10 -0
- package/dist/cms/contentful/graphql/queries/index.d.ts +18 -0
- package/dist/cms/contentful/graphql/queries/index.js +18 -0
- package/dist/cms/contentful/graphql/queries/link.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/link.query.js +10 -0
- package/dist/cms/contentful/graphql/queries/logoCollection.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/logoCollection.query.js +16 -0
- package/dist/cms/contentful/graphql/queries/navigation.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/navigation.query.js +10 -0
- package/dist/cms/contentful/graphql/queries/page.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/page.query.js +23 -0
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.js +16 -0
- package/dist/cms/contentful/graphql/queries/productModule.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/productModule.query.js +59 -0
- package/dist/cms/contentful/graphql/queries/testimonial.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/testimonial.query.js +23 -0
- package/dist/cms/contentful/graphql/queries/tileCollection.query.d.ts +4 -0
- package/dist/cms/contentful/graphql/queries/tileCollection.query.js +35 -0
- package/dist/cms/contentful/graphql/queries/video.query.d.ts +2 -0
- package/dist/cms/contentful/graphql/queries/video.query.js +11 -0
- package/dist/cms/contentful/migrations/README.md +42 -0
- package/dist/cms/contentful/migrations/helpers/addEntryNameField.cjs +9 -0
- package/dist/cms/contentful/migrations/scripts/0001-init.cjs +41 -0
- package/dist/cms/contentful/migrations/scripts/0002-create-image.cjs +34 -0
- package/dist/cms/contentful/migrations/scripts/0003-create-video.cjs +52 -0
- package/dist/cms/contentful/migrations/scripts/0004-create-testimonial.cjs +56 -0
- package/dist/cms/contentful/migrations/scripts/0005-create-tile-label.cjs +41 -0
- package/dist/cms/contentful/migrations/scripts/0006-create-accordion-item.cjs +83 -0
- package/dist/cms/contentful/migrations/scripts/0007-create-accordion.cjs +45 -0
- package/dist/cms/contentful/migrations/scripts/0008-create-page-metadata.cjs +69 -0
- package/dist/cms/contentful/migrations/scripts/0009-create-page.cjs +57 -0
- package/dist/cms/contentful/migrations/scripts/0010-create-link.cjs +86 -0
- package/dist/cms/contentful/migrations/scripts/0011-create-navigation-element.cjs +54 -0
- package/dist/cms/contentful/migrations/scripts/0012-create-primary-navigation.cjs +46 -0
- package/dist/cms/contentful/migrations/scripts/0013-create-tile-content.cjs +99 -0
- package/dist/cms/contentful/migrations/scripts/0014-create-tile-collection.cjs +96 -0
- package/dist/cms/contentful/migrations/scripts/0015-create-highlighted-text.cjs +24 -0
- package/dist/cms/contentful/migrations/scripts/0016-create-content-module.cjs +105 -0
- package/dist/cms/contentful/migrations/scripts/0017-create-cta.cjs +97 -0
- package/dist/cms/contentful/migrations/scripts/0018-create-container-module.cjs +134 -0
- package/dist/cms/contentful/migrations/scripts/0019-social-media.cjs +45 -0
- package/dist/cms/contentful/migrations/scripts/0020-create-footer.cjs +93 -0
- package/dist/cms/contentful/migrations/scripts/0021-create-carousel.cjs +68 -0
- package/dist/cms/contentful/migrations/scripts/0022-create-logo-collection.cjs +58 -0
- package/dist/cms/contentful/migrations/scripts/0023-create-split-module.cjs +66 -0
- package/dist/cms/contentful/migrations/scripts/0024-create-container-collection.cjs +58 -0
- package/dist/cms/contentful/migrations/scripts/0025-edit-container-module.cjs +15 -0
- package/dist/cms/contentful/migrations/scripts/0026-add-localization.cjs +181 -0
- package/dist/cms/contentful/migrations/scripts/0027-add-field-to-content-module.cjs +24 -0
- package/dist/cms/contentful/migrations/scripts/0028-add-load-more-accordion.cjs +22 -0
- package/dist/cms/contentful/migrations/scripts/0029-add-start-open-to-accordion.cjs +22 -0
- package/dist/cms/contentful/migrations/scripts/0030-add-mobile-image.cjs +37 -0
- package/dist/cms/contentful/migrations/scripts/0031-update-tile-content-helptext.cjs +19 -0
- package/dist/cms/contentful/migrations/scripts/0032-add-include-decorations.cjs +33 -0
- package/dist/cms/contentful/migrations/scripts/0033-add-centered-option-content-module.cjs +27 -0
- package/dist/cms/contentful/migrations/scripts/0034-update-tile-content.cjs +19 -0
- package/dist/cms/contentful/migrations/scripts/0035-update-tile-content-subheadline.cjs +19 -0
- package/dist/cms/contentful/migrations/scripts/0036-multiple-cta-option.cjs +160 -0
- package/dist/cms/contentful/migrations/scripts/0037-edit-content-module.cjs +15 -0
- package/dist/cms/contentful/migrations/scripts/0038-add-mobile-image-bottom-option-container-module.cjs +31 -0
- package/dist/cms/contentful/migrations/scripts/0039-limit-ctas-collections-size.cjs +39 -0
- package/dist/cms/contentful/migrations/scripts/0040-edit-content-tile.cjs +15 -0
- package/dist/cms/contentful/migrations/scripts/0041-edit-cta-add-btn-size.cjs +28 -0
- package/dist/cms/contentful/migrations/scripts/0042-edit-cta-update-button-type.cjs +23 -0
- package/dist/cms/contentful/migrations/scripts/0043-edit-link-add-third-party-id.cjs +24 -0
- package/dist/cms/contentful/migrations/scripts/0044-edit-footer-update-copyright-links-validation-type.cjs +144 -0
- package/dist/cms/contentful/migrations/scripts/0045-edit-carousel-add-heading-field.cjs +21 -0
- package/dist/cms/contentful/migrations/scripts/0046-update-tile-content.cjs +48 -0
- package/dist/cms/contentful/migrations/scripts/0047-create-body-copy.cjs +51 -0
- package/dist/cms/contentful/migrations/scripts/0048-create-tab-module.cjs +51 -0
- package/dist/cms/contentful/migrations/scripts/0049-create-product-module.cjs +68 -0
- package/dist/cms/contentful/migrations/scripts/0050-update-container.cjs +29 -0
- package/dist/cms/contentful/migrations/scripts/0051-update-accordion.cjs +22 -0
- package/dist/cms/contentful/migrations/scripts/0052-update-tile-content.cjs +41 -0
- package/dist/cms/contentful/migrations/scripts/0053-add-fields-to-tab-module.cjs +44 -0
- package/dist/cms/contentful/migrations/scripts/0054-update-product-module-logo-collection.cjs +70 -0
- package/dist/cms/contentful/migrations/scripts/0055-create-cta-action.cjs +50 -0
- package/dist/cms/contentful/migrations/scripts/0056-update-cta.cjs +25 -0
- package/dist/cms/contentful/migrations/scripts/0057-add-show-cart-to-page.cjs +26 -0
- package/dist/cms/contentful/queries/accordion.query.d.ts +2 -0
- package/dist/cms/contentful/queries/accordion.query.js +19 -0
- package/dist/cms/contentful/queries/accordion.query.ts +21 -0
- package/dist/cms/contentful/queries/carousel.query.d.ts +2 -0
- package/dist/cms/contentful/queries/carousel.query.js +32 -0
- package/dist/cms/contentful/queries/carousel.query.ts +34 -0
- package/dist/cms/contentful/queries/containerModule.query.d.ts +2 -0
- package/dist/cms/contentful/queries/containerModule.query.js +140 -0
- package/dist/cms/contentful/queries/containerModule.query.ts +142 -0
- package/dist/cms/contentful/queries/contentModule.query.d.ts +2 -0
- package/dist/cms/contentful/queries/contentModule.query.js +49 -0
- package/dist/cms/contentful/queries/contentModule.query.ts +51 -0
- package/dist/cms/contentful/queries/cta.query.d.ts +2 -0
- package/dist/cms/contentful/queries/cta.query.js +10 -0
- package/dist/cms/contentful/queries/cta.query.ts +12 -0
- package/dist/cms/contentful/queries/footer.query.d.ts +2 -0
- package/dist/cms/contentful/queries/footer.query.js +44 -0
- package/dist/cms/contentful/queries/footer.query.ts +50 -0
- package/dist/cms/contentful/queries/fragments.d.ts +11 -0
- package/dist/cms/contentful/queries/fragments.js +172 -0
- package/dist/cms/contentful/queries/fragments.ts +183 -0
- package/dist/cms/contentful/queries/header.query.d.ts +2 -0
- package/dist/cms/contentful/queries/header.query.js +39 -0
- package/dist/cms/contentful/queries/header.query.ts +41 -0
- package/dist/cms/contentful/queries/image.query.d.ts +2 -0
- package/dist/cms/contentful/queries/image.query.js +10 -0
- package/dist/cms/contentful/queries/image.query.ts +12 -0
- package/dist/cms/contentful/queries/index.d.ts +18 -0
- package/dist/cms/contentful/queries/index.js +18 -0
- package/dist/cms/contentful/queries/index.ts +18 -0
- package/dist/cms/contentful/queries/link.query.d.ts +2 -0
- package/dist/cms/contentful/queries/link.query.js +10 -0
- package/dist/cms/contentful/queries/link.query.ts +12 -0
- package/dist/cms/contentful/queries/logoCollection.query.d.ts +2 -0
- package/dist/cms/contentful/queries/logoCollection.query.js +16 -0
- package/dist/cms/contentful/queries/logoCollection.query.ts +18 -0
- package/dist/cms/contentful/queries/navigation.query.d.ts +2 -0
- package/dist/cms/contentful/queries/navigation.query.js +10 -0
- package/dist/cms/contentful/queries/navigation.query.ts +12 -0
- package/dist/cms/contentful/queries/page.query.d.ts +2 -0
- package/dist/cms/contentful/queries/page.query.js +23 -0
- package/dist/cms/contentful/queries/page.query.ts +25 -0
- package/dist/cms/contentful/queries/pageMetadata.query.d.ts +2 -0
- package/dist/cms/contentful/queries/pageMetadata.query.js +16 -0
- package/dist/cms/contentful/queries/pageMetadata.query.ts +18 -0
- package/dist/cms/contentful/queries/productModule.query.d.ts +2 -0
- package/dist/cms/contentful/queries/productModule.query.js +59 -0
- package/dist/cms/contentful/queries/productModule.query.ts +61 -0
- package/dist/cms/contentful/queries/testimonial.query.d.ts +2 -0
- package/dist/cms/contentful/queries/testimonial.query.js +23 -0
- package/dist/cms/contentful/queries/testimonial.query.ts +25 -0
- package/dist/cms/contentful/queries/tileCollection.query.d.ts +4 -0
- package/dist/cms/contentful/queries/tileCollection.query.js +35 -0
- package/dist/cms/contentful/queries/tileCollection.query.ts +39 -0
- package/dist/cms/contentful/queries/video.query.d.ts +2 -0
- package/dist/cms/contentful/queries/video.query.js +11 -0
- package/dist/cms/contentful/queries/video.query.ts +13 -0
- package/dist/cms/cta.query.ts +12 -0
- package/dist/cms/footer.query.ts +50 -0
- package/dist/cms/fragments.ts +183 -0
- package/dist/cms/header.query.ts +41 -0
- package/dist/cms/helpers/addEntryNameField.cjs +9 -0
- package/dist/cms/image.query.ts +12 -0
- package/dist/cms/index.ts +18 -0
- package/dist/cms/link.query.ts +12 -0
- package/dist/cms/logoCollection.query.ts +18 -0
- package/dist/cms/migrations/README.md +42 -0
- package/dist/cms/migrations/helpers/addEntryNameField.cjs +9 -0
- package/dist/cms/migrations/scripts/0001-init.cjs +41 -0
- package/dist/cms/migrations/scripts/0002-create-image.cjs +34 -0
- package/dist/cms/migrations/scripts/0003-create-video.cjs +52 -0
- package/dist/cms/migrations/scripts/0004-create-testimonial.cjs +56 -0
- package/dist/cms/migrations/scripts/0005-create-tile-label.cjs +41 -0
- package/dist/cms/migrations/scripts/0006-create-accordion-item.cjs +83 -0
- package/dist/cms/migrations/scripts/0007-create-accordion.cjs +45 -0
- package/dist/cms/migrations/scripts/0008-create-page-metadata.cjs +69 -0
- package/dist/cms/migrations/scripts/0009-create-page.cjs +57 -0
- package/dist/cms/migrations/scripts/0010-create-link.cjs +86 -0
- package/dist/cms/migrations/scripts/0011-create-navigation-element.cjs +54 -0
- package/dist/cms/migrations/scripts/0012-create-primary-navigation.cjs +46 -0
- package/dist/cms/migrations/scripts/0013-create-tile-content.cjs +99 -0
- package/dist/cms/migrations/scripts/0014-create-tile-collection.cjs +96 -0
- package/dist/cms/migrations/scripts/0015-create-highlighted-text.cjs +24 -0
- package/dist/cms/migrations/scripts/0016-create-content-module.cjs +105 -0
- package/dist/cms/migrations/scripts/0017-create-cta.cjs +97 -0
- package/dist/cms/migrations/scripts/0018-create-container-module.cjs +134 -0
- package/dist/cms/migrations/scripts/0019-social-media.cjs +45 -0
- package/dist/cms/migrations/scripts/0020-create-footer.cjs +93 -0
- package/dist/cms/migrations/scripts/0021-create-carousel.cjs +68 -0
- package/dist/cms/migrations/scripts/0022-create-logo-collection.cjs +58 -0
- package/dist/cms/migrations/scripts/0023-create-split-module.cjs +66 -0
- package/dist/cms/migrations/scripts/0024-create-container-collection.cjs +58 -0
- package/dist/cms/migrations/scripts/0025-edit-container-module.cjs +15 -0
- package/dist/cms/migrations/scripts/0026-add-localization.cjs +181 -0
- package/dist/cms/migrations/scripts/0027-add-field-to-content-module.cjs +24 -0
- package/dist/cms/migrations/scripts/0028-add-load-more-accordion.cjs +22 -0
- package/dist/cms/migrations/scripts/0029-add-start-open-to-accordion.cjs +22 -0
- package/dist/cms/migrations/scripts/0030-add-mobile-image.cjs +37 -0
- package/dist/cms/migrations/scripts/0031-update-tile-content-helptext.cjs +19 -0
- package/dist/cms/migrations/scripts/0032-add-include-decorations.cjs +33 -0
- package/dist/cms/migrations/scripts/0033-add-centered-option-content-module.cjs +27 -0
- package/dist/cms/migrations/scripts/0034-update-tile-content.cjs +19 -0
- package/dist/cms/migrations/scripts/0035-update-tile-content-subheadline.cjs +19 -0
- package/dist/cms/migrations/scripts/0036-multiple-cta-option.cjs +160 -0
- package/dist/cms/migrations/scripts/0037-edit-content-module.cjs +15 -0
- package/dist/cms/migrations/scripts/0038-add-mobile-image-bottom-option-container-module.cjs +31 -0
- package/dist/cms/migrations/scripts/0039-limit-ctas-collections-size.cjs +39 -0
- package/dist/cms/migrations/scripts/0040-edit-content-tile.cjs +15 -0
- package/dist/cms/migrations/scripts/0041-edit-cta-add-btn-size.cjs +28 -0
- package/dist/cms/migrations/scripts/0042-edit-cta-update-button-type.cjs +23 -0
- package/dist/cms/migrations/scripts/0043-edit-link-add-third-party-id.cjs +24 -0
- package/dist/cms/migrations/scripts/0044-edit-footer-update-copyright-links-validation-type.cjs +144 -0
- package/dist/cms/migrations/scripts/0045-edit-carousel-add-heading-field.cjs +21 -0
- package/dist/cms/migrations/scripts/0046-update-tile-content.cjs +48 -0
- package/dist/cms/migrations/scripts/0047-create-body-copy.cjs +51 -0
- package/dist/cms/migrations/scripts/0048-create-tab-module.cjs +51 -0
- package/dist/cms/migrations/scripts/0049-create-product-module.cjs +68 -0
- package/dist/cms/migrations/scripts/0050-update-container.cjs +29 -0
- package/dist/cms/migrations/scripts/0051-update-accordion.cjs +22 -0
- package/dist/cms/migrations/scripts/0052-update-tile-content.cjs +41 -0
- package/dist/cms/migrations/scripts/0053-add-fields-to-tab-module.cjs +44 -0
- package/dist/cms/migrations/scripts/0054-update-product-module-logo-collection.cjs +70 -0
- package/dist/cms/migrations/scripts/0055-create-cta-action.cjs +50 -0
- package/dist/cms/migrations/scripts/0056-update-cta.cjs +25 -0
- package/dist/cms/migrations/scripts/0057-add-show-cart-to-page.cjs +26 -0
- package/dist/cms/navigation.query.ts +12 -0
- package/dist/cms/page.query.ts +25 -0
- package/dist/cms/pageMetadata.query.ts +18 -0
- package/dist/cms/productModule.query.ts +61 -0
- package/dist/cms/queries/accordion.query.ts +21 -0
- package/dist/cms/queries/carousel.query.ts +34 -0
- package/dist/cms/queries/containerModule.query.ts +142 -0
- package/dist/cms/queries/contentModule.query.ts +51 -0
- package/dist/cms/queries/cta.query.ts +12 -0
- package/dist/cms/queries/footer.query.ts +50 -0
- package/dist/cms/queries/fragments.ts +183 -0
- package/dist/cms/queries/header.query.ts +41 -0
- package/dist/cms/queries/image.query.ts +12 -0
- package/dist/cms/queries/index.ts +18 -0
- package/dist/cms/queries/link.query.ts +12 -0
- package/dist/cms/queries/logoCollection.query.ts +18 -0
- package/dist/cms/queries/navigation.query.ts +12 -0
- package/dist/cms/queries/page.query.ts +25 -0
- package/dist/cms/queries/pageMetadata.query.ts +18 -0
- package/dist/cms/queries/productModule.query.ts +61 -0
- package/dist/cms/queries/testimonial.query.ts +25 -0
- package/dist/cms/queries/tileCollection.query.ts +39 -0
- package/dist/cms/queries/video.query.ts +13 -0
- package/dist/cms/scripts/0001-init.cjs +41 -0
- package/dist/cms/scripts/0002-create-image.cjs +34 -0
- package/dist/cms/scripts/0003-create-video.cjs +52 -0
- package/dist/cms/scripts/0004-create-testimonial.cjs +56 -0
- package/dist/cms/scripts/0005-create-tile-label.cjs +41 -0
- package/dist/cms/scripts/0006-create-accordion-item.cjs +83 -0
- package/dist/cms/scripts/0007-create-accordion.cjs +45 -0
- package/dist/cms/scripts/0008-create-page-metadata.cjs +69 -0
- package/dist/cms/scripts/0009-create-page.cjs +57 -0
- package/dist/cms/scripts/0010-create-link.cjs +86 -0
- package/dist/cms/scripts/0011-create-navigation-element.cjs +54 -0
- package/dist/cms/scripts/0012-create-primary-navigation.cjs +46 -0
- package/dist/cms/scripts/0013-create-tile-content.cjs +99 -0
- package/dist/cms/scripts/0014-create-tile-collection.cjs +96 -0
- package/dist/cms/scripts/0015-create-highlighted-text.cjs +24 -0
- package/dist/cms/scripts/0016-create-content-module.cjs +105 -0
- package/dist/cms/scripts/0017-create-cta.cjs +97 -0
- package/dist/cms/scripts/0018-create-container-module.cjs +134 -0
- package/dist/cms/scripts/0019-social-media.cjs +45 -0
- package/dist/cms/scripts/0020-create-footer.cjs +93 -0
- package/dist/cms/scripts/0021-create-carousel.cjs +68 -0
- package/dist/cms/scripts/0022-create-logo-collection.cjs +58 -0
- package/dist/cms/scripts/0023-create-split-module.cjs +66 -0
- package/dist/cms/scripts/0024-create-container-collection.cjs +58 -0
- package/dist/cms/scripts/0025-edit-container-module.cjs +15 -0
- package/dist/cms/scripts/0026-add-localization.cjs +181 -0
- package/dist/cms/scripts/0027-add-field-to-content-module.cjs +24 -0
- package/dist/cms/scripts/0028-add-load-more-accordion.cjs +22 -0
- package/dist/cms/scripts/0029-add-start-open-to-accordion.cjs +22 -0
- package/dist/cms/scripts/0030-add-mobile-image.cjs +37 -0
- package/dist/cms/scripts/0031-update-tile-content-helptext.cjs +19 -0
- package/dist/cms/scripts/0032-add-include-decorations.cjs +33 -0
- package/dist/cms/scripts/0033-add-centered-option-content-module.cjs +27 -0
- package/dist/cms/scripts/0034-update-tile-content.cjs +19 -0
- package/dist/cms/scripts/0035-update-tile-content-subheadline.cjs +19 -0
- package/dist/cms/scripts/0036-multiple-cta-option.cjs +160 -0
- package/dist/cms/scripts/0037-edit-content-module.cjs +15 -0
- package/dist/cms/scripts/0038-add-mobile-image-bottom-option-container-module.cjs +31 -0
- package/dist/cms/scripts/0039-limit-ctas-collections-size.cjs +39 -0
- package/dist/cms/scripts/0040-edit-content-tile.cjs +15 -0
- package/dist/cms/scripts/0041-edit-cta-add-btn-size.cjs +28 -0
- package/dist/cms/scripts/0042-edit-cta-update-button-type.cjs +23 -0
- package/dist/cms/scripts/0043-edit-link-add-third-party-id.cjs +24 -0
- package/dist/cms/scripts/0044-edit-footer-update-copyright-links-validation-type.cjs +144 -0
- package/dist/cms/scripts/0045-edit-carousel-add-heading-field.cjs +21 -0
- package/dist/cms/scripts/0046-update-tile-content.cjs +48 -0
- package/dist/cms/scripts/0047-create-body-copy.cjs +51 -0
- package/dist/cms/scripts/0048-create-tab-module.cjs +51 -0
- package/dist/cms/scripts/0049-create-product-module.cjs +68 -0
- package/dist/cms/scripts/0050-update-container.cjs +29 -0
- package/dist/cms/scripts/0051-update-accordion.cjs +22 -0
- package/dist/cms/scripts/0052-update-tile-content.cjs +41 -0
- package/dist/cms/scripts/0053-add-fields-to-tab-module.cjs +44 -0
- package/dist/cms/scripts/0054-update-product-module-logo-collection.cjs +70 -0
- package/dist/cms/scripts/0055-create-cta-action.cjs +50 -0
- package/dist/cms/scripts/0056-update-cta.cjs +25 -0
- package/dist/cms/scripts/0057-add-show-cart-to-page.cjs +26 -0
- package/dist/cms/testimonial.query.ts +25 -0
- package/dist/cms/tileCollection.query.ts +39 -0
- package/dist/cms/video.query.ts +13 -0
- package/dist/lib/component-lib.js +2069 -2008
- package/dist/lib/component-lib.umd.cjs +19 -19
- package/dist/lib/style.css +1 -1
- package/dist/types/cms/contentful/graphql/queries/accordion.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/carousel.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/containerModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/contentModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/cta.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/footer.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/fragments.d.ts +11 -0
- package/dist/types/cms/contentful/graphql/queries/header.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/image.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/index.d.ts +18 -0
- package/dist/types/cms/contentful/graphql/queries/link.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/logoCollection.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/navigation.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/page.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/pageMetadata.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/productModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/testimonial.query.d.ts +2 -0
- package/dist/types/cms/contentful/graphql/queries/tileCollection.query.d.ts +4 -0
- package/dist/types/cms/contentful/graphql/queries/video.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/accordion.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/carousel.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/containerModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/contentModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/cta.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/footer.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/fragments.d.ts +11 -0
- package/dist/types/cms/contentful/queries/header.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/image.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/index.d.ts +18 -0
- package/dist/types/cms/contentful/queries/link.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/logoCollection.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/navigation.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/page.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/pageMetadata.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/productModule.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/testimonial.query.d.ts +2 -0
- package/dist/types/cms/contentful/queries/tileCollection.query.d.ts +4 -0
- package/dist/types/cms/contentful/queries/video.query.d.ts +2 -0
- package/dist/types/components/Accordion/Accordion.d.ts +1 -0
- package/dist/types/components/Accordion/AccordionItem.d.ts +1 -0
- package/dist/types/components/CTA/CTA.d.ts +1 -0
- package/dist/types/components/ContentModule/ContentModule.d.ts +2 -0
- package/dist/types/components/ContentModule/ContentModule.vue.d.ts +1 -0
- package/dist/types/components/Footer/FooterCopyright/FooterCopyright.d.ts +1 -0
- package/dist/types/components/NavigationElement/NavigationElement.d.ts +1 -0
- package/dist/types/components/TileContent/TileContent.d.ts +1 -0
- package/dist/types/src/App.vue.d.ts +2 -0
- package/dist/types/src/components/Accordion/Accordion.d.ts +18 -0
- package/dist/types/src/components/Accordion/Accordion.vue.d.ts +5 -0
- package/dist/types/src/components/Accordion/AccordionItem.d.ts +24 -0
- package/dist/types/src/components/Accordion/AccordionItem.vue.d.ts +9 -0
- package/dist/types/src/components/Accordion/AccordionListItem.vue.d.ts +3 -0
- package/dist/types/src/components/Accordion/AccordionTileItem.vue.d.ts +7 -0
- package/dist/types/src/components/AnimationWrapper/AnimationWrapper.d.ts +7 -0
- package/dist/types/src/components/AnimationWrapper/AnimationWrapper.vue.d.ts +10 -0
- package/dist/types/src/components/CTA/CTA.d.ts +25 -0
- package/dist/types/src/components/CTA/CTA.vue.d.ts +7 -0
- package/dist/types/src/components/CarouselModule/CarouselModule.d.ts +22 -0
- package/dist/types/src/components/CarouselModule/CarouselModule.vue.d.ts +5 -0
- package/dist/types/src/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +10 -0
- package/dist/types/src/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +3 -0
- package/dist/types/src/components/ContainerModule/ContainerModule.d.ts +29 -0
- package/dist/types/src/components/ContainerModule/ContainerModule.vue.d.ts +14 -0
- package/dist/types/src/components/ContentModule/ContentModule.d.ts +30 -0
- package/dist/types/src/components/ContentModule/ContentModule.vue.d.ts +7 -0
- package/dist/types/src/components/Footer/FooterCopyright/FooterCopyright.d.ts +10 -0
- package/dist/types/src/components/Footer/FooterCopyright/FooterCopyright.vue.d.ts +3 -0
- package/dist/types/src/components/Footer/FooterNavigation/FooterNavigation.d.ts +14 -0
- package/dist/types/src/components/Footer/FooterNavigation/FooterNavigation.vue.d.ts +3 -0
- package/dist/types/src/components/Footer/SocialMediaRef/SocialMediaRef.d.ts +4 -0
- package/dist/types/src/components/Footer/SocialMediaRef/SocialMediaRef.vue.d.ts +3 -0
- package/dist/types/src/components/Image/Image.d.ts +15 -0
- package/dist/types/src/components/Image/Image.vue.d.ts +6 -0
- package/dist/types/src/components/LogoCollectionModule/LogoCollectionModule.d.ts +9 -0
- package/dist/types/src/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +3 -0
- package/dist/types/src/components/NavigationElement/NavigationElement.d.ts +20 -0
- package/dist/types/src/components/NavigationElement/NavigationElement.vue.d.ts +3 -0
- package/dist/types/src/components/PrimaryNavigation/PrimaryNavigation.d.ts +10 -0
- package/dist/types/src/components/PrimaryNavigation/PrimaryNavigation.vue.d.ts +9 -0
- package/dist/types/src/components/SplitModule/SplitModule.d.ts +16 -0
- package/dist/types/src/components/SplitModule/SplitModule.vue.d.ts +3 -0
- package/dist/types/src/components/TestimonialModule/TestimonialModule.d.ts +21 -0
- package/dist/types/src/components/TestimonialModule/TestimonialModule.vue.d.ts +3 -0
- package/dist/types/src/components/TileCollectionModule/TileCollectionModule.d.ts +18 -0
- package/dist/types/src/components/TileCollectionModule/TileCollectionModule.vue.d.ts +6 -0
- package/dist/types/src/components/TileContent/TileContent.d.ts +55 -0
- package/dist/types/src/components/TileContent/TileContentIconTile.vue.d.ts +5 -0
- package/dist/types/src/components/TileContent/TileContentImageStackedAnimatedTile.vue.d.ts +3 -0
- package/dist/types/src/components/TileContent/TileContentImageTile.vue.d.ts +5 -0
- package/dist/types/src/components/TileContent/TileContentTextTile.vue.d.ts +5 -0
- package/dist/types/src/components/TileContent/TileContentVideoTile.vue.d.ts +5 -0
- package/dist/types/src/components/TileLabel/TileLabel.d.ts +14 -0
- package/dist/types/src/components/TileLabel/TileLabel.vue.d.ts +6 -0
- package/dist/types/src/components/Video/Video.d.ts +7 -0
- package/dist/types/src/components/Video/Video.vue.d.ts +3 -0
- package/dist/types/src/components/components.d.ts +26 -0
- package/dist/types/src/components/types.d.ts +20 -0
- package/dist/types/src/config/colorPalettes.d.ts +59 -0
- package/dist/types/src/config/defaultPassthrough/config.d.ts +3 -0
- package/dist/types/src/config/defaultPassthrough/index.d.ts +67 -0
- package/dist/types/src/config/defaultPassthrough/types.d.ts +51 -0
- package/dist/types/src/index.d.ts +13 -0
- package/dist/types/src/init.d.ts +3 -0
- package/dist/types/src/pages/index.vue.d.ts +2 -0
- package/dist/types/src/router.d.ts +5 -0
- package/dist/types/src/types.d.ts +61 -0
- package/dist/types/src/utils/getTarget.d.ts +2 -0
- package/package.json +14 -6
- package/dist/types/components/CTA/LinkWrapper.vue.d.ts +0 -27
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: function (migration) {
|
|
7
|
+
const carouselModule = migration.createContentType('carouselModule', {
|
|
8
|
+
name: 'Carousel Module',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Add mandatory entryName field
|
|
13
|
+
addEntryNameField(carouselModule)
|
|
14
|
+
|
|
15
|
+
// Add carouselItems field
|
|
16
|
+
carouselModule.createField('carouselItems', {
|
|
17
|
+
name: 'Carousel Items',
|
|
18
|
+
required: true,
|
|
19
|
+
type: 'Array',
|
|
20
|
+
items: {
|
|
21
|
+
type: 'Link',
|
|
22
|
+
linkType: 'Entry',
|
|
23
|
+
validations: [
|
|
24
|
+
{
|
|
25
|
+
linkContentType: [
|
|
26
|
+
'testimonialModule',
|
|
27
|
+
'tileContent',
|
|
28
|
+
'containerModule',
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
// Background Color
|
|
36
|
+
carouselModule.createField('backgroundColor', {
|
|
37
|
+
name: 'Background Color',
|
|
38
|
+
type: 'Symbol',
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// Change field control for Color Picker App
|
|
42
|
+
carouselModule.changeFieldControl(
|
|
43
|
+
'backgroundColor',
|
|
44
|
+
'app',
|
|
45
|
+
process.env.COLOR_PICKER_APP_ID
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
// Add Variant Field
|
|
49
|
+
carouselModule.createField('variant', {
|
|
50
|
+
name: 'Variant',
|
|
51
|
+
type: 'Symbol',
|
|
52
|
+
validations: [
|
|
53
|
+
{
|
|
54
|
+
in: ['Hero', 'Default'],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
defaultValue: {
|
|
58
|
+
'en-US': 'Default',
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
carouselModule.changeFieldControl('variant', 'builtin', 'radio', {
|
|
62
|
+
helpText: 'Determines padding of the carousel container',
|
|
63
|
+
})
|
|
64
|
+
},
|
|
65
|
+
down: async function (migration) {
|
|
66
|
+
await migration.deleteContentType('carouselModule')
|
|
67
|
+
},
|
|
68
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: function (migration) {
|
|
7
|
+
const logoCollectionModule = migration.createContentType(
|
|
8
|
+
'logoCollectionModule',
|
|
9
|
+
{
|
|
10
|
+
name: 'Logo Collection Module',
|
|
11
|
+
displayField: 'entryName',
|
|
12
|
+
}
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
// Add mandatory entryName field
|
|
16
|
+
addEntryNameField(logoCollectionModule)
|
|
17
|
+
|
|
18
|
+
// Add headline field
|
|
19
|
+
logoCollectionModule
|
|
20
|
+
.createField('headline')
|
|
21
|
+
.name('Headline')
|
|
22
|
+
.type('Symbol')
|
|
23
|
+
.required(false)
|
|
24
|
+
|
|
25
|
+
// Add Logos Field
|
|
26
|
+
logoCollectionModule
|
|
27
|
+
.createField('logos')
|
|
28
|
+
.name('Logos')
|
|
29
|
+
.required(true)
|
|
30
|
+
.type('Array')
|
|
31
|
+
.items({
|
|
32
|
+
type: 'Link',
|
|
33
|
+
linkType: 'Entry',
|
|
34
|
+
validations: [
|
|
35
|
+
{
|
|
36
|
+
linkContentType: ['image'],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// Background Color
|
|
42
|
+
logoCollectionModule.createField('backgroundColor', {
|
|
43
|
+
name: 'Background Color',
|
|
44
|
+
type: 'Symbol',
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
// Change field control for Color Picker App
|
|
48
|
+
logoCollectionModule.changeFieldControl(
|
|
49
|
+
'backgroundColor',
|
|
50
|
+
'app',
|
|
51
|
+
process.env.COLOR_PICKER_APP_ID
|
|
52
|
+
)
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
down: async function (migration) {
|
|
56
|
+
await migration.deleteContentType('logoCollectionModule')
|
|
57
|
+
},
|
|
58
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: function (migration) {
|
|
7
|
+
const splitModule = migration.createContentType('splitModule', {
|
|
8
|
+
name: 'Split Module',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Add mandatory entryName field
|
|
13
|
+
addEntryNameField(splitModule)
|
|
14
|
+
|
|
15
|
+
// Start component reference
|
|
16
|
+
splitModule
|
|
17
|
+
.createField('start')
|
|
18
|
+
.name('Start')
|
|
19
|
+
.type('Link')
|
|
20
|
+
.linkType('Entry')
|
|
21
|
+
.required(false)
|
|
22
|
+
.validations([{ linkContentType: ['image', 'video', 'contentModule'] }])
|
|
23
|
+
|
|
24
|
+
// Center component reference
|
|
25
|
+
splitModule
|
|
26
|
+
.createField('center')
|
|
27
|
+
.name('Center')
|
|
28
|
+
.type('Link')
|
|
29
|
+
.linkType('Entry')
|
|
30
|
+
.required(false)
|
|
31
|
+
.validations([{ linkContentType: ['image', 'video', 'contentModule'] }])
|
|
32
|
+
|
|
33
|
+
// End component reference
|
|
34
|
+
splitModule
|
|
35
|
+
.createField('end')
|
|
36
|
+
.name('End')
|
|
37
|
+
.type('Link')
|
|
38
|
+
.linkType('Entry')
|
|
39
|
+
.required(false)
|
|
40
|
+
.validations([{ linkContentType: ['image', 'video', 'contentModule'] }])
|
|
41
|
+
|
|
42
|
+
// Background Image
|
|
43
|
+
splitModule.createField('backgroundImage', {
|
|
44
|
+
name: 'Background Image',
|
|
45
|
+
type: 'Link',
|
|
46
|
+
linkType: 'Entry',
|
|
47
|
+
validations: [{ linkContentType: ['image'] }],
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
// Background Color
|
|
51
|
+
splitModule.createField('backgroundColor', {
|
|
52
|
+
name: 'Background Color',
|
|
53
|
+
type: 'Symbol',
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
// Change field control for Color Picker App
|
|
57
|
+
splitModule.changeFieldControl(
|
|
58
|
+
'backgroundColor',
|
|
59
|
+
'app',
|
|
60
|
+
process.env.COLOR_PICKER_APP_ID
|
|
61
|
+
)
|
|
62
|
+
},
|
|
63
|
+
down: async function (migration) {
|
|
64
|
+
await migration.deleteContentType('splitModule')
|
|
65
|
+
},
|
|
66
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: function (migration) {
|
|
7
|
+
const containerCollectionModule = migration.createContentType(
|
|
8
|
+
'containerCollectionModule',
|
|
9
|
+
{
|
|
10
|
+
name: 'Container Collection Module',
|
|
11
|
+
displayField: 'entryName',
|
|
12
|
+
}
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
// Add mandatory entryName field
|
|
16
|
+
addEntryNameField(containerCollectionModule)
|
|
17
|
+
|
|
18
|
+
// Add headline field
|
|
19
|
+
containerCollectionModule
|
|
20
|
+
.createField('headline')
|
|
21
|
+
.name('Headline')
|
|
22
|
+
.type('Symbol')
|
|
23
|
+
.required(false)
|
|
24
|
+
|
|
25
|
+
// Add Modules Field
|
|
26
|
+
containerCollectionModule
|
|
27
|
+
.createField('modules')
|
|
28
|
+
.name('Modules')
|
|
29
|
+
.required(true)
|
|
30
|
+
.type('Array')
|
|
31
|
+
.items({
|
|
32
|
+
type: 'Link',
|
|
33
|
+
linkType: 'Entry',
|
|
34
|
+
validations: [
|
|
35
|
+
{
|
|
36
|
+
linkContentType: ['containerModule', 'splitModule'],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// Background Color
|
|
42
|
+
containerCollectionModule.createField('backgroundColor', {
|
|
43
|
+
name: 'Background Color',
|
|
44
|
+
type: 'Symbol',
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
// Change field control for Color Picker App
|
|
48
|
+
containerCollectionModule.changeFieldControl(
|
|
49
|
+
'backgroundColor',
|
|
50
|
+
'app',
|
|
51
|
+
process.env.COLOR_PICKER_APP_ID
|
|
52
|
+
)
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
down: async function (migration) {
|
|
56
|
+
await migration.deleteContentType('containerCollectionModule')
|
|
57
|
+
},
|
|
58
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const containerModule = migration.editContentType('containerModule')
|
|
6
|
+
containerModule.editField('headline').required(false)
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
// @ts-check
|
|
10
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
11
|
+
down: async function (migration) {
|
|
12
|
+
const containerModule = migration.editContentType('containerModule')
|
|
13
|
+
containerModule.editField('headline').required(true)
|
|
14
|
+
},
|
|
15
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
//Accordion Item Module
|
|
6
|
+
const accordionItem = migration.editContentType('accordionItem');
|
|
7
|
+
accordionItem.editField('headline').localized(true);
|
|
8
|
+
accordionItem.editField('bodyCopy').localized(true);
|
|
9
|
+
|
|
10
|
+
//Container Collection Module
|
|
11
|
+
const containerCollectionModule = migration.editContentType('containerCollectionModule');
|
|
12
|
+
containerCollectionModule.editField('headline').localized(true);
|
|
13
|
+
|
|
14
|
+
//Container Module
|
|
15
|
+
const containerModule = migration.editContentType('containerModule');
|
|
16
|
+
containerModule.editField('headline').localized(true);
|
|
17
|
+
|
|
18
|
+
//Content Module
|
|
19
|
+
const contentModule = migration.editContentType('contentModule');
|
|
20
|
+
contentModule.editField('headline').localized(true);
|
|
21
|
+
contentModule.editField('bodyCopy').localized(true);
|
|
22
|
+
|
|
23
|
+
//CTA
|
|
24
|
+
const cta = migration.editContentType('cta');
|
|
25
|
+
cta.editField('title').localized(true);
|
|
26
|
+
cta.editField('ariaLabel').localized(true);
|
|
27
|
+
cta.editField('ariaDescription').localized(true);
|
|
28
|
+
cta.editField('anchor').localized(true);
|
|
29
|
+
|
|
30
|
+
//Footer
|
|
31
|
+
const footer = migration.editContentType('footer');
|
|
32
|
+
footer.editField('copyright').localized(true);
|
|
33
|
+
|
|
34
|
+
//Highlighted Text
|
|
35
|
+
const highlightedText = migration.editContentType('highlightedText');
|
|
36
|
+
highlightedText.editField('text').localized(true);
|
|
37
|
+
|
|
38
|
+
//Image
|
|
39
|
+
const image = migration.editContentType('image');
|
|
40
|
+
image.editField('altTag').localized(true);
|
|
41
|
+
|
|
42
|
+
//Link
|
|
43
|
+
const link = migration.editContentType('link');
|
|
44
|
+
link.editField('anchor').localized(true);
|
|
45
|
+
link.editField('externalUrl').localized(true);
|
|
46
|
+
link.editField('ariaLabel').localized(true);
|
|
47
|
+
link.editField('ariaDescription').localized(true);
|
|
48
|
+
|
|
49
|
+
//Logo Collection Module
|
|
50
|
+
const logoCollectionModule = migration.editContentType('logoCollectionModule');
|
|
51
|
+
logoCollectionModule.editField('headline').localized(true);
|
|
52
|
+
|
|
53
|
+
//Navigation Element
|
|
54
|
+
const navigationElement = migration.editContentType('navigationElement');
|
|
55
|
+
navigationElement.editField('title').localized(true);
|
|
56
|
+
|
|
57
|
+
//Page
|
|
58
|
+
const page = migration.editContentType('page');
|
|
59
|
+
page.editField('title').localized(true);
|
|
60
|
+
|
|
61
|
+
//Page Metadata
|
|
62
|
+
const pageMetadata = migration.editContentType('pageMetadata');
|
|
63
|
+
pageMetadata.editField('title').localized(true);
|
|
64
|
+
pageMetadata.editField('description').localized(true);
|
|
65
|
+
pageMetadata.editField('keywords').localized(true);
|
|
66
|
+
|
|
67
|
+
//Testimonial Module
|
|
68
|
+
const testimonialModule = migration.editContentType('testimonialModule');
|
|
69
|
+
testimonialModule.editField('headline').localized(true);
|
|
70
|
+
testimonialModule.editField('quote').localized(true);
|
|
71
|
+
testimonialModule.editField('author').localized(true);
|
|
72
|
+
testimonialModule.editField('details').localized(true);
|
|
73
|
+
|
|
74
|
+
//Tile Collection Module
|
|
75
|
+
const tileCollectionModule = migration.editContentType('tileCollectionModule');
|
|
76
|
+
tileCollectionModule.editField('headline').localized(true);
|
|
77
|
+
|
|
78
|
+
//Tile Content
|
|
79
|
+
const tileContent = migration.editContentType('tileContent');
|
|
80
|
+
tileContent.editField('headline').localized(true);
|
|
81
|
+
tileContent.editField('bodyCopy').localized(true);
|
|
82
|
+
|
|
83
|
+
//Tile Label
|
|
84
|
+
const tileLabel = migration.editContentType('tileLabel');
|
|
85
|
+
tileLabel.editField('copy').localized(true);
|
|
86
|
+
|
|
87
|
+
//Video
|
|
88
|
+
const video = migration.editContentType('video');
|
|
89
|
+
video.editField('url').localized(true);
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
// @ts-check
|
|
93
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
94
|
+
down: async function (migration) {
|
|
95
|
+
//Accordion Item Module
|
|
96
|
+
const accordionItem = migration.editContentType('accordionItem');
|
|
97
|
+
accordionItem.editField('headline').localized(false);
|
|
98
|
+
accordionItem.editField('bodyCopy').localized(false);
|
|
99
|
+
|
|
100
|
+
//Container Collection Module
|
|
101
|
+
const containerCollectionModule = migration.editContentType('containerCollectionModule');
|
|
102
|
+
containerCollectionModule.editField('headline').localized(false);
|
|
103
|
+
|
|
104
|
+
//Container Module
|
|
105
|
+
const containerModule = migration.editContentType('containerModule');
|
|
106
|
+
containerModule.editField('headline').localized(false);
|
|
107
|
+
|
|
108
|
+
//Content Module
|
|
109
|
+
const contentModule = migration.editContentType('contentModule');
|
|
110
|
+
contentModule.editField('headline').localized(false);
|
|
111
|
+
contentModule.editField('bodyCopy').localized(false);
|
|
112
|
+
|
|
113
|
+
//CTA
|
|
114
|
+
const cta = migration.editContentType('cta');
|
|
115
|
+
cta.editField('title').localized(false);
|
|
116
|
+
cta.editField('ariaLabel').localized(false);
|
|
117
|
+
cta.editField('ariaDescription').localized(false);
|
|
118
|
+
cta.editField('anchor').localized(false);
|
|
119
|
+
|
|
120
|
+
//Footer
|
|
121
|
+
const footer = migration.editContentType('footer');
|
|
122
|
+
footer.editField('copyright').localized(false);
|
|
123
|
+
|
|
124
|
+
//Highlighted Text
|
|
125
|
+
const highlightedText = migration.editContentType('highlightedText');
|
|
126
|
+
highlightedText.editField('text').localized(false);
|
|
127
|
+
|
|
128
|
+
//Image
|
|
129
|
+
const image = migration.editContentType('image');
|
|
130
|
+
image.editField('altTag').localized(false);
|
|
131
|
+
|
|
132
|
+
//Link
|
|
133
|
+
const link = migration.editContentType('link');
|
|
134
|
+
link.editField('anchor').localized(false);
|
|
135
|
+
link.editField('externalUrl').localized(false);
|
|
136
|
+
link.editField('ariaLabel').localized(false);
|
|
137
|
+
link.editField('ariaDescription').localized(false);
|
|
138
|
+
|
|
139
|
+
//Logo Collection Module
|
|
140
|
+
const logoCollectionModule = migration.editContentType('logoCollectionModule');
|
|
141
|
+
logoCollectionModule.editField('headline').localized(false);
|
|
142
|
+
|
|
143
|
+
//Navigation Element
|
|
144
|
+
const navigationElement = migration.editContentType('navigationElement');
|
|
145
|
+
navigationElement.editField('title').localized(false);
|
|
146
|
+
|
|
147
|
+
//Page
|
|
148
|
+
const page = migration.editContentType('page');
|
|
149
|
+
page.editField('title').localized(false);
|
|
150
|
+
|
|
151
|
+
//Page Metadata
|
|
152
|
+
const pageMetadata = migration.editContentType('pageMetadata');
|
|
153
|
+
pageMetadata.editField('title').localized(false);
|
|
154
|
+
pageMetadata.editField('description').localized(false);
|
|
155
|
+
pageMetadata.editField('keywords').localized(false);
|
|
156
|
+
|
|
157
|
+
//Testimonial Module
|
|
158
|
+
const testimonialModule = migration.editContentType('testimonialModule');
|
|
159
|
+
testimonialModule.editField('headline').localized(false);
|
|
160
|
+
testimonialModule.editField('quote').localized(false);
|
|
161
|
+
testimonialModule.editField('author').localized(false);
|
|
162
|
+
testimonialModule.editField('details').localized(false);
|
|
163
|
+
|
|
164
|
+
//Tile Collection Module
|
|
165
|
+
const tileCollectionModule = migration.editContentType('tileCollectionModule');
|
|
166
|
+
tileCollectionModule.editField('headline').localized(false);
|
|
167
|
+
|
|
168
|
+
//Tile Content
|
|
169
|
+
const tileContent = migration.editContentType('tileContent');
|
|
170
|
+
tileContent.editField('headline').localized(false);
|
|
171
|
+
tileContent.editField('bodyCopy').localized(false);
|
|
172
|
+
|
|
173
|
+
//Tile Label
|
|
174
|
+
const tileLabel = migration.editContentType('tileLabel');
|
|
175
|
+
tileLabel.editField('copy').localized(false);
|
|
176
|
+
|
|
177
|
+
//Video
|
|
178
|
+
const video = migration.editContentType('video');
|
|
179
|
+
video.editField('url').localized(false);
|
|
180
|
+
},
|
|
181
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
contentModule
|
|
7
|
+
.createField('subHeadline')
|
|
8
|
+
.name('Sub Headline')
|
|
9
|
+
.type('Symbol')
|
|
10
|
+
.required(false)
|
|
11
|
+
.localized(true)
|
|
12
|
+
contentModule.changeFieldControl('subHeadline', 'builtin', 'singleLine', {
|
|
13
|
+
helpText: 'If Hero variant is selected in parent Container Module, the Sub Headline will appear below the Headline. For all other instances, it will appear above.',
|
|
14
|
+
})
|
|
15
|
+
contentModule.moveField('subHeadline').beforeField('headline');
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
// @ts-check
|
|
19
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
20
|
+
down: async function (migration) {
|
|
21
|
+
const contentModule = migration.editContentType('contentModule')
|
|
22
|
+
contentModule.deleteField('subHeadline')
|
|
23
|
+
},
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
//Accordion Item Module
|
|
6
|
+
const accordion = migration.editContentType('accordion');
|
|
7
|
+
accordion.createField('loadMoreButtonTitle').name('Load More Button Title').type('Symbol').localized(true).defaultValue({
|
|
8
|
+
'en-US': 'Load More',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
accordion.changeFieldControl('loadMoreButtonTitle', 'builtin', 'singleLine', {
|
|
12
|
+
helpText: 'The text that will be displayed on the load more button',
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
// @ts-check
|
|
17
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
18
|
+
down: async function (migration) {
|
|
19
|
+
const accordion = migration.editContentType('accordion');
|
|
20
|
+
accordion.deleteField('loadMoreButtonTitle');
|
|
21
|
+
},
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
//Accordion Item Module
|
|
6
|
+
const accordion = migration.editContentType('accordion');
|
|
7
|
+
accordion.createField('startOpen').name('Should Start Open').type('Boolean').localized(true).defaultValue({
|
|
8
|
+
'en-US': false,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
accordion.changeFieldControl('startOpen', 'builtin', 'singleLine', {
|
|
12
|
+
helpText: 'If the accordion should start with the first item open',
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
// @ts-check
|
|
17
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
18
|
+
down: async function (migration) {
|
|
19
|
+
const accordion = migration.editContentType('accordion');
|
|
20
|
+
accordion.deleteField('startOpen');
|
|
21
|
+
},
|
|
22
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const image = migration.editContentType('image')
|
|
6
|
+
image
|
|
7
|
+
.createField('mobileMedia')
|
|
8
|
+
.name('Mobile Media')
|
|
9
|
+
.type('Link')
|
|
10
|
+
.linkType('Asset')
|
|
11
|
+
.required(false)
|
|
12
|
+
.validations([
|
|
13
|
+
{
|
|
14
|
+
linkMimetypeGroup: ['image'],
|
|
15
|
+
},
|
|
16
|
+
])
|
|
17
|
+
image.moveField('mobileMedia').beforeField('altTag')
|
|
18
|
+
image.changeFieldControl('mobileMedia', 'builtin', 'assetLinkEditor', {
|
|
19
|
+
helpText:
|
|
20
|
+
'Upload an image if you want a different image to display on mobile.',
|
|
21
|
+
})
|
|
22
|
+
image.changeFieldControl('media', 'builtin', 'assetLinkEditor', {
|
|
23
|
+
helpText:
|
|
24
|
+
'This image will be used on desktop and mobile if no mobileMedia is uploaded.',
|
|
25
|
+
})
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// @ts-check
|
|
29
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
30
|
+
down: async function (migration) {
|
|
31
|
+
const image = migration.editContentType('image')
|
|
32
|
+
image.deleteField('mobileMedia')
|
|
33
|
+
image.changeFieldControl('media', 'builtin', 'assetLinkEditor', {
|
|
34
|
+
helpText: '',
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
tileContent.changeFieldControl('cta', 'builtin', 'entryLinkEditor', {
|
|
7
|
+
helpText: 'CTA does not render for variant Image Stacked Animated ',
|
|
8
|
+
})
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
// @ts-check
|
|
12
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
13
|
+
down: async function (migration) {
|
|
14
|
+
const tileContent = migration.editContentType('tileContent')
|
|
15
|
+
tileContent.changeFieldControl('cta', 'builtin', 'entryLinkEditor', {
|
|
16
|
+
helpText: '',
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
// Tile Collection Module
|
|
6
|
+
const tileCollectionModule = migration.editContentType(
|
|
7
|
+
'tileCollectionModule'
|
|
8
|
+
)
|
|
9
|
+
tileCollectionModule
|
|
10
|
+
.createField('includeDecoration')
|
|
11
|
+
.name('Include Decoration')
|
|
12
|
+
.type('Boolean')
|
|
13
|
+
|
|
14
|
+
tileCollectionModule.changeFieldControl(
|
|
15
|
+
'includeDecoration',
|
|
16
|
+
'builtin',
|
|
17
|
+
'radio',
|
|
18
|
+
{
|
|
19
|
+
helpText:
|
|
20
|
+
'This determines to where to include the decoration at the bottom of the module.',
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
// @ts-check
|
|
26
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
27
|
+
down: async function (migration) {
|
|
28
|
+
const tileCollectionModule = migration.editContentType(
|
|
29
|
+
'tileCollectionModule'
|
|
30
|
+
)
|
|
31
|
+
tileCollectionModule.deleteField('includeDecoration')
|
|
32
|
+
},
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
contentModule.createField('alignment', {
|
|
7
|
+
name: 'Alignment',
|
|
8
|
+
type: 'Symbol',
|
|
9
|
+
validations: [
|
|
10
|
+
{
|
|
11
|
+
in: ['Center', 'Right', 'Left', 'Inline'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
}),
|
|
15
|
+
contentModule.changeFieldControl('alignment', 'builtin', 'dropdown', {
|
|
16
|
+
helpText:
|
|
17
|
+
'Determines Text size and alignment will be top left unless centered is selected as well',
|
|
18
|
+
})
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// @ts-check
|
|
22
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
23
|
+
down: async function (migration) {
|
|
24
|
+
const contentModule = migration.editContentType('contentModule')
|
|
25
|
+
contentModule.deleteField('alignment');
|
|
26
|
+
},
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
tileContent.createField('subheadline', {
|
|
7
|
+
name: 'Subheadline',
|
|
8
|
+
type: 'Text',
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
tileContent.moveField('subheadline').beforeField('headline')
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
down: async function (migration) {
|
|
15
|
+
const tileContent = migration.editContentType('tileContent')
|
|
16
|
+
|
|
17
|
+
tileContent.deleteField('subheadline')
|
|
18
|
+
},
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const tileContent = migration.editContentType('tileContent')
|
|
6
|
+
tileContent.deleteField('subheadline')
|
|
7
|
+
tileContent.createField('subheadline', {
|
|
8
|
+
name: 'Subheadline',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
})
|
|
11
|
+
tileContent.moveField('subheadline').beforeField('headline')
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
down: async function (migration) {
|
|
15
|
+
const tileContent = migration.editContentType('tileContent')
|
|
16
|
+
|
|
17
|
+
tileContent.deleteField('subheadline')
|
|
18
|
+
},
|
|
19
|
+
}
|