@cooperco/cooper-component-library 0.1.60 → 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/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/ContentModule/ContentModule.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 +12 -5
|
@@ -0,0 +1,99 @@
|
|
|
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 tileContent = migration.createContentType('tileContent', {
|
|
8
|
+
name: 'Tile Content',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Add mandatory entryName field
|
|
13
|
+
addEntryNameField(tileContent)
|
|
14
|
+
|
|
15
|
+
// Image reference
|
|
16
|
+
tileContent.createField('image', {
|
|
17
|
+
name: 'Image',
|
|
18
|
+
type: 'Link',
|
|
19
|
+
linkType: 'Entry',
|
|
20
|
+
required: false,
|
|
21
|
+
validations: [{ linkContentType: ['image'] }],
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// Add headline field
|
|
25
|
+
tileContent
|
|
26
|
+
.createField('headline')
|
|
27
|
+
.name('Headline')
|
|
28
|
+
.type('Symbol')
|
|
29
|
+
.required(false)
|
|
30
|
+
|
|
31
|
+
// Add required body copy field
|
|
32
|
+
tileContent
|
|
33
|
+
.createField('bodyCopy')
|
|
34
|
+
.name('Body Copy')
|
|
35
|
+
.type('RichText')
|
|
36
|
+
.required(true)
|
|
37
|
+
.validations([
|
|
38
|
+
{
|
|
39
|
+
enabledMarks: ['bold', 'italic', 'underline'],
|
|
40
|
+
message: 'Only bold, italic, and underline marks are allowed',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
enabledNodeTypes: [
|
|
44
|
+
'ordered-list',
|
|
45
|
+
'unordered-list',
|
|
46
|
+
'hr',
|
|
47
|
+
'hyperlink',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
nodes: {},
|
|
52
|
+
},
|
|
53
|
+
])
|
|
54
|
+
|
|
55
|
+
// Background Color
|
|
56
|
+
tileContent.createField('backgroundColor', {
|
|
57
|
+
name: 'Background Color',
|
|
58
|
+
type: 'Symbol',
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
// Change field control for Color Picker App
|
|
62
|
+
tileContent.changeFieldControl(
|
|
63
|
+
'backgroundColor',
|
|
64
|
+
'app',
|
|
65
|
+
process.env.COLOR_PICKER_APP_ID
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
// CTA Reference
|
|
69
|
+
tileContent.createField('cta', {
|
|
70
|
+
name: 'CTA',
|
|
71
|
+
type: 'Link',
|
|
72
|
+
linkType: 'Entry',
|
|
73
|
+
validations: [{ linkContentType: ['cta'] }],
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// Tile Label Reference
|
|
77
|
+
tileContent.createField('tileLabel', {
|
|
78
|
+
name: 'Tile Label',
|
|
79
|
+
type: 'Link',
|
|
80
|
+
linkType: 'Entry',
|
|
81
|
+
validations: [{ linkContentType: ['tileLabel'] }],
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
// Alignment
|
|
85
|
+
tileContent.createField('alignment', {
|
|
86
|
+
name: 'Alignment',
|
|
87
|
+
type: 'Symbol',
|
|
88
|
+
validations: [
|
|
89
|
+
{
|
|
90
|
+
in: ['Left', 'Center', 'Right'],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
defaultValue: { 'en-US': 'Left' },
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
down: async function (migration) {
|
|
97
|
+
await migration.deleteContentType('tileContent')
|
|
98
|
+
},
|
|
99
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 tileCollectionmodule = migration.createContentType(
|
|
8
|
+
'tileCollectionModule',
|
|
9
|
+
{
|
|
10
|
+
name: 'Tile Collection Module',
|
|
11
|
+
displayField: 'entryName',
|
|
12
|
+
}
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
// Add mandatory entryName field
|
|
16
|
+
addEntryNameField(tileCollectionmodule)
|
|
17
|
+
|
|
18
|
+
// Add headline field
|
|
19
|
+
tileCollectionmodule
|
|
20
|
+
.createField('headline')
|
|
21
|
+
.name('Headline')
|
|
22
|
+
.type('Symbol')
|
|
23
|
+
.required(false)
|
|
24
|
+
|
|
25
|
+
// Add required tiles field
|
|
26
|
+
tileCollectionmodule
|
|
27
|
+
.createField('tiles')
|
|
28
|
+
.name('Tiles')
|
|
29
|
+
.type('Array')
|
|
30
|
+
.items({
|
|
31
|
+
type: 'Link',
|
|
32
|
+
linkType: 'Entry',
|
|
33
|
+
validations: [{ linkContentType: ['tileContent'] }],
|
|
34
|
+
})
|
|
35
|
+
.required(true)
|
|
36
|
+
|
|
37
|
+
// Background Color
|
|
38
|
+
tileCollectionmodule.createField('backgroundColor', {
|
|
39
|
+
name: 'Background Color',
|
|
40
|
+
type: 'Symbol',
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
// Change field control for Color Picker App
|
|
44
|
+
tileCollectionmodule.changeFieldControl(
|
|
45
|
+
'backgroundColor',
|
|
46
|
+
'app',
|
|
47
|
+
process.env.COLOR_PICKER_APP_ID
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
// Tile Label Reference
|
|
51
|
+
tileCollectionmodule.createField('variant', {
|
|
52
|
+
name: 'Variant',
|
|
53
|
+
type: 'Symbol',
|
|
54
|
+
validations: [
|
|
55
|
+
{
|
|
56
|
+
in: ['Icon', 'Image', 'Video', 'Text', 'Image Stacked Animated'],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
defaultValue: { 'en-US': 'Text' },
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
// Change variant field to Dropdown and add help text
|
|
63
|
+
tileCollectionmodule.changeFieldControl(
|
|
64
|
+
'variant',
|
|
65
|
+
'builtin',
|
|
66
|
+
'dropdown',
|
|
67
|
+
{}
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
// Tile Label Reference
|
|
71
|
+
tileCollectionmodule.createField('tileLabelType', {
|
|
72
|
+
name: 'Tile Label',
|
|
73
|
+
type: 'Symbol',
|
|
74
|
+
validations: [
|
|
75
|
+
{
|
|
76
|
+
in: ['Text', 'Numeric'],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
defaultValue: { 'en-US': 'Text' },
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// Change field control to Dropdown and add help text
|
|
83
|
+
tileCollectionmodule.changeFieldControl(
|
|
84
|
+
'tileLabelType',
|
|
85
|
+
'builtin',
|
|
86
|
+
'radio',
|
|
87
|
+
{
|
|
88
|
+
helpText:
|
|
89
|
+
'Set tile label type to text or numeric. Text labels are used for text-based labels and will need to be entered manually on the Tile Content entry. Numeric labels are used for numbers and will be generated automatically.',
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
},
|
|
93
|
+
down: async function (migration) {
|
|
94
|
+
await migration.deleteContentType('tileCollectionmodule')
|
|
95
|
+
},
|
|
96
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 highlightedText = migration.createContentType('highlightedText', {
|
|
8
|
+
name: 'Highlighted Text',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
description: 'Custom field to add text highlighting feature',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
addEntryNameField(highlightedText)
|
|
14
|
+
|
|
15
|
+
highlightedText
|
|
16
|
+
.createField('text')
|
|
17
|
+
.name('Text')
|
|
18
|
+
.type('Symbol')
|
|
19
|
+
.required(true)
|
|
20
|
+
},
|
|
21
|
+
down: async function (migration) {
|
|
22
|
+
await migration.deleteContentType('highlightedText')
|
|
23
|
+
},
|
|
24
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 contentModule = migration.createContentType('contentModule', {
|
|
8
|
+
name: 'Content Module',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Add mandatory entryName field
|
|
13
|
+
addEntryNameField(contentModule)
|
|
14
|
+
|
|
15
|
+
// Logo image reference
|
|
16
|
+
contentModule
|
|
17
|
+
.createField('logo')
|
|
18
|
+
.name('Image')
|
|
19
|
+
.type('Link')
|
|
20
|
+
.linkType('Entry')
|
|
21
|
+
.required(false)
|
|
22
|
+
.validations([{ linkContentType: ['image'] }])
|
|
23
|
+
|
|
24
|
+
// Add headline field
|
|
25
|
+
contentModule
|
|
26
|
+
.createField('headline')
|
|
27
|
+
.name('Headline')
|
|
28
|
+
.type('RichText')
|
|
29
|
+
.required(true)
|
|
30
|
+
.validations([
|
|
31
|
+
{
|
|
32
|
+
enabledMarks: ['bold', 'italic', 'underline'],
|
|
33
|
+
message: 'Only bold, italic, and underline marks are allowed',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
enabledNodeTypes: [
|
|
37
|
+
'ordered-list',
|
|
38
|
+
'unordered-list',
|
|
39
|
+
'hr',
|
|
40
|
+
'hyperlink',
|
|
41
|
+
'embedded-entry-inline',
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
nodes: {
|
|
46
|
+
'embedded-entry-inline': [
|
|
47
|
+
{
|
|
48
|
+
linkContentType: ['highlightedText'],
|
|
49
|
+
message: 'You can only embedd Higlighted Text.',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
])
|
|
55
|
+
|
|
56
|
+
// Add required body copy field
|
|
57
|
+
contentModule
|
|
58
|
+
.createField('bodyCopy')
|
|
59
|
+
.name('Body Copy')
|
|
60
|
+
.type('RichText')
|
|
61
|
+
.required(true)
|
|
62
|
+
.validations([
|
|
63
|
+
{
|
|
64
|
+
enabledMarks: ['bold', 'italic', 'underline'],
|
|
65
|
+
message: 'Only bold, italic, and underline marks are allowed',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
enabledNodeTypes: [
|
|
69
|
+
'ordered-list',
|
|
70
|
+
'unordered-list',
|
|
71
|
+
'hr',
|
|
72
|
+
'hyperlink',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
nodes: {},
|
|
77
|
+
},
|
|
78
|
+
])
|
|
79
|
+
|
|
80
|
+
// CTA Reference
|
|
81
|
+
contentModule.createField('cta', {
|
|
82
|
+
name: 'CTA',
|
|
83
|
+
type: 'Link',
|
|
84
|
+
linkType: 'Entry',
|
|
85
|
+
validations: [{ linkContentType: ['cta'] }],
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
// TODO: Maybe change this Background color to Primary, Primary-alt etc
|
|
89
|
+
// Background Color
|
|
90
|
+
contentModule.createField('backgroundColor', {
|
|
91
|
+
name: 'Background Color',
|
|
92
|
+
type: 'Symbol',
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
// Change field control for Color Picker App
|
|
96
|
+
contentModule.changeFieldControl(
|
|
97
|
+
'backgroundColor',
|
|
98
|
+
'app',
|
|
99
|
+
process.env.COLOR_PICKER_APP_ID
|
|
100
|
+
)
|
|
101
|
+
},
|
|
102
|
+
down: async function (migration) {
|
|
103
|
+
await migration.deleteContentType('contentModule')
|
|
104
|
+
},
|
|
105
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 cta = migration.createContentType('cta', {
|
|
8
|
+
name: 'CTA',
|
|
9
|
+
description: 'General CTA button or link',
|
|
10
|
+
displayField: 'entryName',
|
|
11
|
+
})
|
|
12
|
+
// Add required assetName field
|
|
13
|
+
|
|
14
|
+
addEntryNameField(cta)
|
|
15
|
+
|
|
16
|
+
// Title
|
|
17
|
+
cta.createField('title', {
|
|
18
|
+
name: 'Title',
|
|
19
|
+
type: 'Symbol',
|
|
20
|
+
required: true,
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
// Link reference
|
|
24
|
+
cta.createField('link', {
|
|
25
|
+
name: 'Link Reference',
|
|
26
|
+
type: 'Link',
|
|
27
|
+
linkType: 'Entry',
|
|
28
|
+
validations: [{ linkContentType: ['link'] }],
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
// Cta Type
|
|
32
|
+
cta.createField('type', {
|
|
33
|
+
name: 'Type',
|
|
34
|
+
type: 'Symbol',
|
|
35
|
+
validations: [
|
|
36
|
+
{
|
|
37
|
+
in: ['Fill', 'Outline', 'Text', 'Logo'],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
})
|
|
41
|
+
cta.changeFieldControl('type', 'builtin', 'dropdown', {
|
|
42
|
+
helpText: 'The type of CTA, which will determine the style and color',
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// Logo image reference
|
|
46
|
+
cta
|
|
47
|
+
.createField('logo')
|
|
48
|
+
.name('Image')
|
|
49
|
+
.type('Link')
|
|
50
|
+
.linkType('Entry')
|
|
51
|
+
.required(false)
|
|
52
|
+
.validations([{ linkContentType: ['image'] }])
|
|
53
|
+
|
|
54
|
+
// Aria Label
|
|
55
|
+
cta.createField('ariaLabel', {
|
|
56
|
+
name: 'Aria Label Override',
|
|
57
|
+
type: 'Symbol',
|
|
58
|
+
})
|
|
59
|
+
cta.changeFieldControl('ariaLabel', 'builtin', 'singleLine', {
|
|
60
|
+
helpText: 'Aria Label to override link Aria Label',
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
// Aria Description
|
|
64
|
+
cta.createField('ariaDescription', {
|
|
65
|
+
name: 'Aria Description Override',
|
|
66
|
+
type: 'Symbol',
|
|
67
|
+
})
|
|
68
|
+
cta.changeFieldControl('ariaDescription', 'builtin', 'singleLine', {
|
|
69
|
+
helpText: 'Aria description to override link Aria Description',
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
// Target Override
|
|
73
|
+
cta.createField('target', {
|
|
74
|
+
name: 'Target override',
|
|
75
|
+
type: 'Symbol',
|
|
76
|
+
validations: [
|
|
77
|
+
{
|
|
78
|
+
in: ['New Tab', 'Same Tab'],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
cta.changeFieldControl('target', 'builtin', 'dropdown', {
|
|
84
|
+
helpText:
|
|
85
|
+
'Set target attribute to override behavior from link reference).',
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
// Anchor
|
|
89
|
+
cta.createField('anchor', { name: 'Anchor override', type: 'Symbol' })
|
|
90
|
+
cta.changeFieldControl('anchor', 'builtin', 'singleLine', {
|
|
91
|
+
helpText: 'Override the anchor (#) set in the page reference',
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
down: function (migration) {
|
|
95
|
+
migration.deleteContentType('cta')
|
|
96
|
+
},
|
|
97
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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 containerModule = migration.createContentType('containerModule', {
|
|
8
|
+
name: 'Container Module',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Add mandatory entryName field
|
|
13
|
+
addEntryNameField(containerModule)
|
|
14
|
+
|
|
15
|
+
// Add headline field
|
|
16
|
+
containerModule
|
|
17
|
+
.createField('headline')
|
|
18
|
+
.name('Headline')
|
|
19
|
+
.type('RichText')
|
|
20
|
+
.required(true)
|
|
21
|
+
.validations([
|
|
22
|
+
{
|
|
23
|
+
enabledMarks: ['bold', 'italic', 'underline'],
|
|
24
|
+
message: 'Only bold, italic, and underline marks are allowed',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
enabledNodeTypes: [
|
|
28
|
+
'ordered-list',
|
|
29
|
+
'unordered-list',
|
|
30
|
+
'hr',
|
|
31
|
+
'hyperlink',
|
|
32
|
+
'embedded-entry-inline',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
nodes: {
|
|
37
|
+
'embedded-entry-inline': [
|
|
38
|
+
{
|
|
39
|
+
linkContentType: ['highlightedText'],
|
|
40
|
+
message: 'You can only embedd Higlighted Text.',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
])
|
|
46
|
+
|
|
47
|
+
// Add Full Width Content
|
|
48
|
+
containerModule.createField('fullWidthContent', {
|
|
49
|
+
name: 'Full Width Content',
|
|
50
|
+
type: 'Link',
|
|
51
|
+
linkType: 'Entry',
|
|
52
|
+
validations: [
|
|
53
|
+
{ linkContentType: ['contentModule', 'tileContent', 'accordion'] },
|
|
54
|
+
],
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
// Add Left Content
|
|
58
|
+
containerModule.createField('leftContent', {
|
|
59
|
+
name: 'Left Content',
|
|
60
|
+
type: 'Link',
|
|
61
|
+
linkType: 'Entry',
|
|
62
|
+
validations: [
|
|
63
|
+
{
|
|
64
|
+
linkContentType: [
|
|
65
|
+
'contentModule',
|
|
66
|
+
'tileContent',
|
|
67
|
+
'accordion',
|
|
68
|
+
'image',
|
|
69
|
+
'video',
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
// Add Right Content
|
|
76
|
+
containerModule.createField('rightContent', {
|
|
77
|
+
name: 'Right Content',
|
|
78
|
+
type: 'Link',
|
|
79
|
+
linkType: 'Entry',
|
|
80
|
+
validations: [
|
|
81
|
+
{
|
|
82
|
+
linkContentType: [
|
|
83
|
+
'contentModule',
|
|
84
|
+
'tileContent',
|
|
85
|
+
'accordion',
|
|
86
|
+
'image',
|
|
87
|
+
'video',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
// Background Image
|
|
94
|
+
containerModule.createField('backgroundImage', {
|
|
95
|
+
name: 'Background Image',
|
|
96
|
+
type: 'Link',
|
|
97
|
+
linkType: 'Entry',
|
|
98
|
+
validations: [{ linkContentType: ['image'] }],
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
// Background Color
|
|
102
|
+
containerModule.createField('backgroundColor', {
|
|
103
|
+
name: 'Background Color',
|
|
104
|
+
type: 'Symbol',
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
// Change field control for Color Picker App
|
|
108
|
+
containerModule.changeFieldControl(
|
|
109
|
+
'backgroundColor',
|
|
110
|
+
'app',
|
|
111
|
+
process.env.COLOR_PICKER_APP_ID
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
containerModule.createField('variant', {
|
|
115
|
+
name: 'Variant',
|
|
116
|
+
type: 'Array',
|
|
117
|
+
items: {
|
|
118
|
+
type: 'Symbol',
|
|
119
|
+
validations: [
|
|
120
|
+
{
|
|
121
|
+
in: ['Hero', 'Centered'],
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
containerModule.changeFieldControl('variant', 'builtin', 'checkbox', {
|
|
127
|
+
helpText:
|
|
128
|
+
'Determines Text size and alignment will be top left unless centered is selected as well',
|
|
129
|
+
})
|
|
130
|
+
},
|
|
131
|
+
down: async function (migration) {
|
|
132
|
+
await migration.deleteContentType('containerModule')
|
|
133
|
+
},
|
|
134
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: async function (migration) {
|
|
7
|
+
const socialMedia = migration.createContentType('socialMedia', {
|
|
8
|
+
name: 'Social Media',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
description: 'Manage a social media icon asset',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
// Add required assetName field
|
|
14
|
+
addEntryNameField(socialMedia)
|
|
15
|
+
|
|
16
|
+
// Add required icon field
|
|
17
|
+
socialMedia
|
|
18
|
+
.createField('icon')
|
|
19
|
+
.name('Icon')
|
|
20
|
+
.type('Link')
|
|
21
|
+
.linkType('Entry')
|
|
22
|
+
.validations([
|
|
23
|
+
{
|
|
24
|
+
linkContentType: ['image'],
|
|
25
|
+
},
|
|
26
|
+
])
|
|
27
|
+
.required(true)
|
|
28
|
+
|
|
29
|
+
// Add required link field
|
|
30
|
+
socialMedia
|
|
31
|
+
.createField('link')
|
|
32
|
+
.name('Link')
|
|
33
|
+
.type('Link')
|
|
34
|
+
.linkType('Entry')
|
|
35
|
+
.validations([
|
|
36
|
+
{
|
|
37
|
+
linkContentType: ['link'],
|
|
38
|
+
},
|
|
39
|
+
])
|
|
40
|
+
.required(true)
|
|
41
|
+
},
|
|
42
|
+
down: async function (migration) {
|
|
43
|
+
await migration.deleteContentType('socialMedia')
|
|
44
|
+
},
|
|
45
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
// @ts-check
|
|
5
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
+
up: async function (migration) {
|
|
7
|
+
const footer = migration.createContentType('footer', {
|
|
8
|
+
name: 'Footer',
|
|
9
|
+
displayField: 'entryName',
|
|
10
|
+
description: 'Manage the footer of the site',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
// Add required assetName field
|
|
14
|
+
addEntryNameField(footer)
|
|
15
|
+
|
|
16
|
+
// Add required logo field
|
|
17
|
+
footer
|
|
18
|
+
.createField('logo')
|
|
19
|
+
.name('Logo')
|
|
20
|
+
.type('Link')
|
|
21
|
+
.linkType('Entry')
|
|
22
|
+
.validations([
|
|
23
|
+
{
|
|
24
|
+
linkContentType: ['image'],
|
|
25
|
+
},
|
|
26
|
+
])
|
|
27
|
+
.required(true)
|
|
28
|
+
|
|
29
|
+
// Add social media field
|
|
30
|
+
footer
|
|
31
|
+
.createField('socialMedia')
|
|
32
|
+
.name('Social Media')
|
|
33
|
+
.type('Array')
|
|
34
|
+
.items({
|
|
35
|
+
type: 'Link',
|
|
36
|
+
validations: [
|
|
37
|
+
{
|
|
38
|
+
linkContentType: ['socialMedia'],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
linkType: 'Entry',
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
// Add display site search field
|
|
45
|
+
footer
|
|
46
|
+
.createField('displaySiteSearch')
|
|
47
|
+
.name('Display Site Search')
|
|
48
|
+
.type('Boolean')
|
|
49
|
+
|
|
50
|
+
footer.changeFieldControl('displaySiteSearch', 'builtin', 'radio', {
|
|
51
|
+
helpText: 'If yes, site search will display in footer',
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
// Navigation Element reference
|
|
55
|
+
footer
|
|
56
|
+
.createField('navigationElements')
|
|
57
|
+
.name('Navigation Elements')
|
|
58
|
+
.type('Array')
|
|
59
|
+
.items({
|
|
60
|
+
type: 'Link',
|
|
61
|
+
validations: [{ linkContentType: ['navigationElement'] }],
|
|
62
|
+
linkType: 'Entry',
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
// Copyright
|
|
66
|
+
footer.createField('copyright').name('Copyright').type('Symbol')
|
|
67
|
+
|
|
68
|
+
// Copyright Links
|
|
69
|
+
footer
|
|
70
|
+
.createField('copyrightLinks')
|
|
71
|
+
.name('Copyright Links')
|
|
72
|
+
.type('Array')
|
|
73
|
+
.items({
|
|
74
|
+
type: 'Link',
|
|
75
|
+
linkType: 'Entry',
|
|
76
|
+
validations: [{ linkContentType: ['link'] }],
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// Copyright Logos
|
|
80
|
+
footer
|
|
81
|
+
.createField('copyrightLogos')
|
|
82
|
+
.name('Copyright Logos')
|
|
83
|
+
.type('Array')
|
|
84
|
+
.items({
|
|
85
|
+
type: 'Link',
|
|
86
|
+
linkType: 'Entry',
|
|
87
|
+
validations: [{ linkContentType: ['image'] }],
|
|
88
|
+
})
|
|
89
|
+
},
|
|
90
|
+
down: async function (migration) {
|
|
91
|
+
await migration.deleteContentType('footer')
|
|
92
|
+
},
|
|
93
|
+
}
|