@thorprovider/blocks 4.0.0 → 4.3.0
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/blocks/designs/address-book-advanced/block.d.ts +8 -0
- package/dist/blocks/designs/address-book-advanced/block.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/block.js +36 -0
- package/dist/blocks/designs/address-book-advanced/block.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/block.mjs +12 -0
- package/dist/blocks/designs/address-book-advanced/block.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.d.ts +17 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.js +123 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.mjs +99 -0
- package/dist/blocks/designs/address-book-advanced/components/address-action-menu.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.d.ts +15 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.js +52 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.mjs +28 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-header.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.d.ts +25 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.js +495 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.mjs +476 -0
- package/dist/blocks/designs/address-book-advanced/components/address-book-panel.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.d.ts +12 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.js +47 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.mjs +23 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card-status.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.d.ts +26 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.js +274 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.mjs +250 -0
- package/dist/blocks/designs/address-book-advanced/components/address-card.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.d.ts +15 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.js +100 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.mjs +76 -0
- package/dist/blocks/designs/address-book-advanced/components/address-delete-dialog.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.d.ts +11 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.js +46 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.mjs +22 -0
- package/dist/blocks/designs/address-book-advanced/components/address-empty-state.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.d.ts +16 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.js +56 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.mjs +32 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form-drawer.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.d.ts +27 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.js +699 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.mjs +675 -0
- package/dist/blocks/designs/address-book-advanced/components/address-form.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.d.ts +26 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.js +78 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.mjs +54 -0
- package/dist/blocks/designs/address-book-advanced/components/address-list.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.d.ts +11 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.js +82 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.mjs +58 -0
- package/dist/blocks/designs/address-book-advanced/components/address-pagination.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.d.ts +14 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.js +121 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.mjs +97 -0
- package/dist/blocks/designs/address-book-advanced/components/address-toolbar.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.d.ts +16 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.js +71 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.mjs +47 -0
- package/dist/blocks/designs/address-book-advanced/components/modal-dialog.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contract.d.ts +4128 -0
- package/dist/blocks/designs/address-book-advanced/contract.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contract.js +582 -0
- package/dist/blocks/designs/address-book-advanced/contract.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contract.mjs +557 -0
- package/dist/blocks/designs/address-book-advanced/contract.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contracts.d.ts +205 -0
- package/dist/blocks/designs/address-book-advanced/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contracts.js +38 -0
- package/dist/blocks/designs/address-book-advanced/contracts.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/contracts.mjs +14 -0
- package/dist/blocks/designs/address-book-advanced/contracts.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/countries.d.ts +13 -0
- package/dist/blocks/designs/address-book-advanced/countries.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/countries.js +64 -0
- package/dist/blocks/designs/address-book-advanced/countries.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/countries.mjs +36 -0
- package/dist/blocks/designs/address-book-advanced/countries.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/data.d.ts +3 -0
- package/dist/blocks/designs/address-book-advanced/data.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/data.js +17 -0
- package/dist/blocks/designs/address-book-advanced/data.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/data.mjs +1 -0
- package/dist/blocks/designs/address-book-advanced/data.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/helpers.d.ts +40 -0
- package/dist/blocks/designs/address-book-advanced/helpers.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/helpers.js +247 -0
- package/dist/blocks/designs/address-book-advanced/helpers.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/helpers.mjs +210 -0
- package/dist/blocks/designs/address-book-advanced/helpers.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/index.d.ts +3 -0
- package/dist/blocks/designs/address-book-advanced/index.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/index.js +36 -0
- package/dist/blocks/designs/address-book-advanced/index.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/index.mjs +6 -0
- package/dist/blocks/designs/address-book-advanced/index.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.d.ts +542 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.js +17 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.mjs +1 -0
- package/dist/blocks/designs/address-book-advanced/surface-contract.mjs.map +1 -0
- package/dist/blocks/designs/address-book-advanced/validation.d.ts +13 -0
- package/dist/blocks/designs/address-book-advanced/validation.d.ts.map +1 -0
- package/dist/blocks/designs/address-book-advanced/validation.js +84 -0
- package/dist/blocks/designs/address-book-advanced/validation.js.map +1 -0
- package/dist/blocks/designs/address-book-advanced/validation.mjs +59 -0
- package/dist/blocks/designs/address-book-advanced/validation.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.d.ts +37 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.js +139 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.mjs +119 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.d.ts +8 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.js +44 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.mjs +19 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.d.ts +34 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.js +898 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.mjs +874 -0
- package/dist/blocks/designs/checkout-commerce-v1/demo/use-demo-checkout.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.d.ts +3 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.js +94 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.mjs +70 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/checkout-commerce-v1-hosted.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.d.ts +6 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.js +17 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.mjs +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/hosted/types.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.d.ts +8 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.js +45 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.mjs +10 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.d.ts +11 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.js +73 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.mjs +49 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-choices.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.d.ts +25 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.js +355 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.mjs +331 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/address-form.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.d.ts +24 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.js +203 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.mjs +179 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/buyer-section.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.d.ts +6 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.js +1359 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.mjs +1346 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/checkout-view.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.d.ts +15 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.js +288 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.mjs +272 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/confirmation-view.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.d.ts +35 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.js +84 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.mjs +51 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/format.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.d.ts +17 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.js +86 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.mjs +62 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/option-group.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.d.ts +6 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.js +39 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.mjs +15 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/summary-row.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.d.ts +370 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.js +17 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.mjs +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/view/types.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/block.d.ts +5 -0
- package/dist/blocks/designs/customer-account-overview/block.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/block.js +36 -0
- package/dist/blocks/designs/customer-account-overview/block.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/block.mjs +12 -0
- package/dist/blocks/designs/customer-account-overview/block.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.d.ts +12 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.js +57 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.mjs +33 -0
- package/dist/blocks/designs/customer-account-overview/components/account-card.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.d.ts +17 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.js +122 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.mjs +97 -0
- package/dist/blocks/designs/customer-account-overview/components/account-icon.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.d.ts +8 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.js +58 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.mjs +34 -0
- package/dist/blocks/designs/customer-account-overview/components/account-notice.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.d.ts +11 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.js +64 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.mjs +40 -0
- package/dist/blocks/designs/customer-account-overview/components/account-overview.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/contracts.d.ts +241 -0
- package/dist/blocks/designs/customer-account-overview/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/contracts.js +29 -0
- package/dist/blocks/designs/customer-account-overview/contracts.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/contracts.mjs +5 -0
- package/dist/blocks/designs/customer-account-overview/contracts.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/helpers.d.ts +7 -0
- package/dist/blocks/designs/customer-account-overview/helpers.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/helpers.js +70 -0
- package/dist/blocks/designs/customer-account-overview/helpers.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/helpers.mjs +43 -0
- package/dist/blocks/designs/customer-account-overview/helpers.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/index.d.ts +3 -0
- package/dist/blocks/designs/customer-account-overview/index.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/index.js +36 -0
- package/dist/blocks/designs/customer-account-overview/index.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/index.mjs +6 -0
- package/dist/blocks/designs/customer-account-overview/index.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-overview/modules.d.ts +12 -0
- package/dist/blocks/designs/customer-account-overview/modules.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-overview/modules.js +50 -0
- package/dist/blocks/designs/customer-account-overview/modules.js.map +1 -0
- package/dist/blocks/designs/customer-account-overview/modules.mjs +23 -0
- package/dist/blocks/designs/customer-account-overview/modules.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/block.d.ts +5 -0
- package/dist/blocks/designs/customer-account-placeholder/block.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/block.js +36 -0
- package/dist/blocks/designs/customer-account-placeholder/block.js.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/block.mjs +12 -0
- package/dist/blocks/designs/customer-account-placeholder/block.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.d.ts +8 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.js +46 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.js.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.mjs +22 -0
- package/dist/blocks/designs/customer-account-placeholder/components/module-placeholder.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.d.ts +241 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.js +29 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.js.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.mjs +5 -0
- package/dist/blocks/designs/customer-account-placeholder/contracts.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/index.d.ts +3 -0
- package/dist/blocks/designs/customer-account-placeholder/index.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/index.js +36 -0
- package/dist/blocks/designs/customer-account-placeholder/index.js.map +1 -0
- package/dist/blocks/designs/customer-account-placeholder/index.mjs +6 -0
- package/dist/blocks/designs/customer-account-placeholder/index.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/block.d.ts +5 -0
- package/dist/blocks/designs/customer-account-v1/block.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/block.js +36 -0
- package/dist/blocks/designs/customer-account-v1/block.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/block.mjs +12 -0
- package/dist/blocks/designs/customer-account-v1/block.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.d.ts +8 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.js +47 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.mjs +23 -0
- package/dist/blocks/designs/customer-account-v1/components/account-context-bar.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.d.ts +11 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.js +68 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.mjs +44 -0
- package/dist/blocks/designs/customer-account-v1/components/account-header.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.d.ts +17 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.js +122 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.mjs +97 -0
- package/dist/blocks/designs/customer-account-v1/components/account-icon.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.d.ts +11 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.js +128 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.mjs +104 -0
- package/dist/blocks/designs/customer-account-v1/components/account-shell.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/contracts.d.ts +241 -0
- package/dist/blocks/designs/customer-account-v1/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/contracts.js +29 -0
- package/dist/blocks/designs/customer-account-v1/contracts.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/contracts.mjs +5 -0
- package/dist/blocks/designs/customer-account-v1/contracts.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/helpers.d.ts +7 -0
- package/dist/blocks/designs/customer-account-v1/helpers.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/helpers.js +70 -0
- package/dist/blocks/designs/customer-account-v1/helpers.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/helpers.mjs +43 -0
- package/dist/blocks/designs/customer-account-v1/helpers.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/index.d.ts +3 -0
- package/dist/blocks/designs/customer-account-v1/index.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/index.js +36 -0
- package/dist/blocks/designs/customer-account-v1/index.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/index.mjs +6 -0
- package/dist/blocks/designs/customer-account-v1/index.mjs.map +1 -0
- package/dist/blocks/designs/customer-account-v1/modules.d.ts +12 -0
- package/dist/blocks/designs/customer-account-v1/modules.d.ts.map +1 -0
- package/dist/blocks/designs/customer-account-v1/modules.js +50 -0
- package/dist/blocks/designs/customer-account-v1/modules.js.map +1 -0
- package/dist/blocks/designs/customer-account-v1/modules.mjs +23 -0
- package/dist/blocks/designs/customer-account-v1/modules.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/block.d.ts +8 -0
- package/dist/blocks/designs/customer-favorites/block.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/block.js +36 -0
- package/dist/blocks/designs/customer-favorites/block.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/block.mjs +12 -0
- package/dist/blocks/designs/customer-favorites/block.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.d.ts +17 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.js +94 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.mjs +70 -0
- package/dist/blocks/designs/customer-favorites/components/bulk-lists-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.d.ts +21 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.js +167 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.mjs +143 -0
- package/dist/blocks/designs/customer-favorites/components/cart-feedback.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.d.ts +15 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.js +67 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.mjs +43 -0
- package/dist/blocks/designs/customer-favorites/components/confirm-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.d.ts +23 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.js +889 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.mjs +874 -0
- package/dist/blocks/designs/customer-favorites/components/customer-favorites.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.d.ts +15 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.js +92 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.mjs +68 -0
- package/dist/blocks/designs/customer-favorites/components/dialog-frame.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.d.ts +18 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.js +77 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.mjs +53 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-button.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.d.ts +17 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.js +142 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.mjs +118 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-list-detail.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.d.ts +30 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.js +184 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.mjs +160 -0
- package/dist/blocks/designs/customer-favorites/components/favorite-product-card.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.d.ts +10 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.js +68 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.mjs +44 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-header.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.d.ts +19 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.js +90 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.mjs +66 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-navigation.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.d.ts +15 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.js +97 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.mjs +73 -0
- package/dist/blocks/designs/customer-favorites/components/favorites-status.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.d.ts +24 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.js +124 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.mjs +100 -0
- package/dist/blocks/designs/customer-favorites/components/list-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.d.ts +22 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.js +82 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.mjs +58 -0
- package/dist/blocks/designs/customer-favorites/components/manage-lists-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.d.ts +21 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.js +126 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.mjs +102 -0
- package/dist/blocks/designs/customer-favorites/components/organize-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.d.ts +13 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.js +80 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.mjs +56 -0
- package/dist/blocks/designs/customer-favorites/components/quantity-stepper.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.d.ts +12 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.js +103 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.mjs +79 -0
- package/dist/blocks/designs/customer-favorites/components/variant-dialog.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/contracts.d.ts +350 -0
- package/dist/blocks/designs/customer-favorites/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/contracts.js +44 -0
- package/dist/blocks/designs/customer-favorites/contracts.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/contracts.mjs +19 -0
- package/dist/blocks/designs/customer-favorites/contracts.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/engine.d.ts +78 -0
- package/dist/blocks/designs/customer-favorites/engine.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/engine.js +320 -0
- package/dist/blocks/designs/customer-favorites/engine.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/engine.mjs +282 -0
- package/dist/blocks/designs/customer-favorites/engine.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/index.d.ts +3 -0
- package/dist/blocks/designs/customer-favorites/index.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/index.js +36 -0
- package/dist/blocks/designs/customer-favorites/index.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/index.mjs +6 -0
- package/dist/blocks/designs/customer-favorites/index.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/permissions.d.ts +16 -0
- package/dist/blocks/designs/customer-favorites/permissions.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/permissions.js +40 -0
- package/dist/blocks/designs/customer-favorites/permissions.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/permissions.mjs +16 -0
- package/dist/blocks/designs/customer-favorites/permissions.mjs.map +1 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.d.ts +346 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.d.ts.map +1 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.js +17 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.js.map +1 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.mjs +1 -0
- package/dist/blocks/designs/customer-favorites/surface-contract.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/block.d.ts +8 -0
- package/dist/blocks/designs/customer-profile/block.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/block.js +36 -0
- package/dist/blocks/designs/customer-profile/block.js.map +1 -0
- package/dist/blocks/designs/customer-profile/block.mjs +12 -0
- package/dist/blocks/designs/customer-profile/block.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.d.ts +4 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.js +149 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.mjs +130 -0
- package/dist/blocks/designs/customer-profile/components/contact-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.d.ts +4 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.js +112 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.mjs +93 -0
- package/dist/blocks/designs/customer-profile/components/custom-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.d.ts +10 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.js +326 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.mjs +302 -0
- package/dist/blocks/designs/customer-profile/components/customer-profile.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/fields.d.ts +62 -0
- package/dist/blocks/designs/customer-profile/components/fields.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/fields.js +255 -0
- package/dist/blocks/designs/customer-profile/components/fields.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/fields.mjs +225 -0
- package/dist/blocks/designs/customer-profile/components/fields.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.d.ts +4 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.js +107 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.mjs +82 -0
- package/dist/blocks/designs/customer-profile/components/personal-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.d.ts +4 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.js +166 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.mjs +146 -0
- package/dist/blocks/designs/customer-profile/components/preferences-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.d.ts +4 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.js +152 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.mjs +127 -0
- package/dist/blocks/designs/customer-profile/components/professional-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.d.ts +11 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.js +64 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.mjs +40 -0
- package/dist/blocks/designs/customer-profile/components/profile-header.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.d.ts +13 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.js +58 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.mjs +34 -0
- package/dist/blocks/designs/customer-profile/components/profile-section.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.d.ts +13 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.js +75 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.mjs +49 -0
- package/dist/blocks/designs/customer-profile/components/profile-states.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/section-body.d.ts +5 -0
- package/dist/blocks/designs/customer-profile/components/section-body.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/section-body.js +64 -0
- package/dist/blocks/designs/customer-profile/components/section-body.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/section-body.mjs +39 -0
- package/dist/blocks/designs/customer-profile/components/section-body.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/components/types.d.ts +20 -0
- package/dist/blocks/designs/customer-profile/components/types.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/components/types.js +42 -0
- package/dist/blocks/designs/customer-profile/components/types.js.map +1 -0
- package/dist/blocks/designs/customer-profile/components/types.mjs +16 -0
- package/dist/blocks/designs/customer-profile/components/types.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/config.d.ts +21 -0
- package/dist/blocks/designs/customer-profile/config.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/config.js +119 -0
- package/dist/blocks/designs/customer-profile/config.js.map +1 -0
- package/dist/blocks/designs/customer-profile/config.mjs +91 -0
- package/dist/blocks/designs/customer-profile/config.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/contracts.d.ts +259 -0
- package/dist/blocks/designs/customer-profile/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/contracts.js +35 -0
- package/dist/blocks/designs/customer-profile/contracts.js.map +1 -0
- package/dist/blocks/designs/customer-profile/contracts.mjs +11 -0
- package/dist/blocks/designs/customer-profile/contracts.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/drafts.d.ts +16 -0
- package/dist/blocks/designs/customer-profile/drafts.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/drafts.js +220 -0
- package/dist/blocks/designs/customer-profile/drafts.js.map +1 -0
- package/dist/blocks/designs/customer-profile/drafts.mjs +194 -0
- package/dist/blocks/designs/customer-profile/drafts.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/format.d.ts +11 -0
- package/dist/blocks/designs/customer-profile/format.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/format.js +63 -0
- package/dist/blocks/designs/customer-profile/format.js.map +1 -0
- package/dist/blocks/designs/customer-profile/format.mjs +36 -0
- package/dist/blocks/designs/customer-profile/format.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/index.d.ts +3 -0
- package/dist/blocks/designs/customer-profile/index.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/index.js +36 -0
- package/dist/blocks/designs/customer-profile/index.js.map +1 -0
- package/dist/blocks/designs/customer-profile/index.mjs +6 -0
- package/dist/blocks/designs/customer-profile/index.mjs.map +1 -0
- package/dist/blocks/designs/customer-profile/validation.d.ts +10 -0
- package/dist/blocks/designs/customer-profile/validation.d.ts.map +1 -0
- package/dist/blocks/designs/customer-profile/validation.js +180 -0
- package/dist/blocks/designs/customer-profile/validation.js.map +1 -0
- package/dist/blocks/designs/customer-profile/validation.mjs +154 -0
- package/dist/blocks/designs/customer-profile/validation.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/block.d.ts +14 -0
- package/dist/blocks/designs/mega-menu-universal/block.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/block.js +44 -0
- package/dist/blocks/designs/mega-menu-universal/block.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/block.mjs +24 -0
- package/dist/blocks/designs/mega-menu-universal/block.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.d.ts +43 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.js +152 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.mjs +122 -0
- package/dist/blocks/designs/mega-menu-universal/category-parts.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/config.d.ts +11 -0
- package/dist/blocks/designs/mega-menu-universal/config.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/config.js +94 -0
- package/dist/blocks/designs/mega-menu-universal/config.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/config.mjs +69 -0
- package/dist/blocks/designs/mega-menu-universal/config.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.d.ts +86 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.js +17 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.mjs +1 -0
- package/dist/blocks/designs/mega-menu-universal/contracts.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.d.ts +12 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.js +424 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.mjs +408 -0
- package/dist/blocks/designs/mega-menu-universal/desktop-panel.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.d.ts +21 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.js +65 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.mjs +38 -0
- package/dist/blocks/designs/mega-menu-universal/drilldown.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/icons.d.ts +11 -0
- package/dist/blocks/designs/mega-menu-universal/icons.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/icons.js +84 -0
- package/dist/blocks/designs/mega-menu-universal/icons.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/icons.mjs +55 -0
- package/dist/blocks/designs/mega-menu-universal/icons.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/index.d.ts +3 -0
- package/dist/blocks/designs/mega-menu-universal/index.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/index.js +36 -0
- package/dist/blocks/designs/mega-menu-universal/index.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/index.mjs +6 -0
- package/dist/blocks/designs/mega-menu-universal/index.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/intent.d.ts +56 -0
- package/dist/blocks/designs/mega-menu-universal/intent.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/intent.js +86 -0
- package/dist/blocks/designs/mega-menu-universal/intent.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/intent.mjs +58 -0
- package/dist/blocks/designs/mega-menu-universal/intent.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/labels.d.ts +9 -0
- package/dist/blocks/designs/mega-menu-universal/labels.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/labels.js +40 -0
- package/dist/blocks/designs/mega-menu-universal/labels.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/labels.mjs +15 -0
- package/dist/blocks/designs/mega-menu-universal/labels.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/menu.d.ts +17 -0
- package/dist/blocks/designs/mega-menu-universal/menu.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/menu.js +342 -0
- package/dist/blocks/designs/mega-menu-universal/menu.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/menu.mjs +325 -0
- package/dist/blocks/designs/mega-menu-universal/menu.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.d.ts +12 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.js +258 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.mjs +234 -0
- package/dist/blocks/designs/mega-menu-universal/mobile-menu.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.d.ts +31 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.js +73 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.mjs +44 -0
- package/dist/blocks/designs/mega-menu-universal/presentation.mjs.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.d.ts +23 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.d.ts.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.js +98 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.js.map +1 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.mjs +65 -0
- package/dist/blocks/designs/mega-menu-universal/taxonomy.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/block.d.ts +8 -0
- package/dist/blocks/designs/order-detail/block.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/block.js +36 -0
- package/dist/blocks/designs/order-detail/block.js.map +1 -0
- package/dist/blocks/designs/order-detail/block.mjs +12 -0
- package/dist/blocks/designs/order-detail/block.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/actions.d.ts +11 -0
- package/dist/blocks/designs/order-detail/components/actions.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/actions.js +64 -0
- package/dist/blocks/designs/order-detail/components/actions.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/actions.mjs +40 -0
- package/dist/blocks/designs/order-detail/components/actions.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/addresses.d.ts +8 -0
- package/dist/blocks/designs/order-detail/components/addresses.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/addresses.js +57 -0
- package/dist/blocks/designs/order-detail/components/addresses.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/addresses.mjs +33 -0
- package/dist/blocks/designs/order-detail/components/addresses.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/after-sales.d.ts +18 -0
- package/dist/blocks/designs/order-detail/components/after-sales.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/after-sales.js +213 -0
- package/dist/blocks/designs/order-detail/components/after-sales.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/after-sales.mjs +185 -0
- package/dist/blocks/designs/order-detail/components/after-sales.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/b2b.d.ts +12 -0
- package/dist/blocks/designs/order-detail/components/b2b.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/b2b.js +73 -0
- package/dist/blocks/designs/order-detail/components/b2b.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/b2b.mjs +49 -0
- package/dist/blocks/designs/order-detail/components/b2b.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/documents.d.ts +21 -0
- package/dist/blocks/designs/order-detail/components/documents.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/documents.js +88 -0
- package/dist/blocks/designs/order-detail/components/documents.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/documents.mjs +63 -0
- package/dist/blocks/designs/order-detail/components/documents.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/feedback.d.ts +19 -0
- package/dist/blocks/designs/order-detail/components/feedback.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/feedback.js +87 -0
- package/dist/blocks/designs/order-detail/components/feedback.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/feedback.mjs +59 -0
- package/dist/blocks/designs/order-detail/components/feedback.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.d.ts +36 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.js +341 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.mjs +315 -0
- package/dist/blocks/designs/order-detail/components/fulfilment.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/header.d.ts +19 -0
- package/dist/blocks/designs/order-detail/components/header.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/header.js +87 -0
- package/dist/blocks/designs/order-detail/components/header.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/header.mjs +68 -0
- package/dist/blocks/designs/order-detail/components/header.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/icons.d.ts +18 -0
- package/dist/blocks/designs/order-detail/components/icons.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/icons.js +153 -0
- package/dist/blocks/designs/order-detail/components/icons.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/icons.mjs +117 -0
- package/dist/blocks/designs/order-detail/components/icons.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/item-card.d.ts +24 -0
- package/dist/blocks/designs/order-detail/components/item-card.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/item-card.js +263 -0
- package/dist/blocks/designs/order-detail/components/item-card.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/item-card.mjs +244 -0
- package/dist/blocks/designs/order-detail/components/item-card.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/order-detail.d.ts +10 -0
- package/dist/blocks/designs/order-detail/components/order-detail.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/order-detail.js +362 -0
- package/dist/blocks/designs/order-detail/components/order-detail.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/order-detail.mjs +343 -0
- package/dist/blocks/designs/order-detail/components/order-detail.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/payments.d.ts +13 -0
- package/dist/blocks/designs/order-detail/components/payments.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/payments.js +87 -0
- package/dist/blocks/designs/order-detail/components/payments.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/payments.mjs +62 -0
- package/dist/blocks/designs/order-detail/components/payments.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/pricing.d.ts +12 -0
- package/dist/blocks/designs/order-detail/components/pricing.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/pricing.js +214 -0
- package/dist/blocks/designs/order-detail/components/pricing.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/pricing.mjs +195 -0
- package/dist/blocks/designs/order-detail/components/pricing.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/promotions.d.ts +24 -0
- package/dist/blocks/designs/order-detail/components/promotions.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/promotions.js +135 -0
- package/dist/blocks/designs/order-detail/components/promotions.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/promotions.mjs +109 -0
- package/dist/blocks/designs/order-detail/components/promotions.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/revisions.d.ts +11 -0
- package/dist/blocks/designs/order-detail/components/revisions.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/revisions.js +53 -0
- package/dist/blocks/designs/order-detail/components/revisions.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/revisions.mjs +29 -0
- package/dist/blocks/designs/order-detail/components/revisions.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/status-summary.d.ts +14 -0
- package/dist/blocks/designs/order-detail/components/status-summary.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/status-summary.js +71 -0
- package/dist/blocks/designs/order-detail/components/status-summary.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/status-summary.mjs +47 -0
- package/dist/blocks/designs/order-detail/components/status-summary.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/components/ui.d.ts +61 -0
- package/dist/blocks/designs/order-detail/components/ui.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/components/ui.js +220 -0
- package/dist/blocks/designs/order-detail/components/ui.js.map +1 -0
- package/dist/blocks/designs/order-detail/components/ui.mjs +188 -0
- package/dist/blocks/designs/order-detail/components/ui.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/contracts.d.ts +717 -0
- package/dist/blocks/designs/order-detail/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/contracts.js +88 -0
- package/dist/blocks/designs/order-detail/contracts.js.map +1 -0
- package/dist/blocks/designs/order-detail/contracts.mjs +61 -0
- package/dist/blocks/designs/order-detail/contracts.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/engine.d.ts +83 -0
- package/dist/blocks/designs/order-detail/engine.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/engine.js +470 -0
- package/dist/blocks/designs/order-detail/engine.js.map +1 -0
- package/dist/blocks/designs/order-detail/engine.mjs +418 -0
- package/dist/blocks/designs/order-detail/engine.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/index.d.ts +3 -0
- package/dist/blocks/designs/order-detail/index.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/index.js +36 -0
- package/dist/blocks/designs/order-detail/index.js.map +1 -0
- package/dist/blocks/designs/order-detail/index.mjs +6 -0
- package/dist/blocks/designs/order-detail/index.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/money.d.ts +27 -0
- package/dist/blocks/designs/order-detail/money.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/money.js +124 -0
- package/dist/blocks/designs/order-detail/money.js.map +1 -0
- package/dist/blocks/designs/order-detail/money.mjs +91 -0
- package/dist/blocks/designs/order-detail/money.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/presentation.d.ts +34 -0
- package/dist/blocks/designs/order-detail/presentation.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/presentation.js +112 -0
- package/dist/blocks/designs/order-detail/presentation.js.map +1 -0
- package/dist/blocks/designs/order-detail/presentation.mjs +93 -0
- package/dist/blocks/designs/order-detail/presentation.mjs.map +1 -0
- package/dist/blocks/designs/order-detail/promotions.d.ts +14 -0
- package/dist/blocks/designs/order-detail/promotions.d.ts.map +1 -0
- package/dist/blocks/designs/order-detail/promotions.js +152 -0
- package/dist/blocks/designs/order-detail/promotions.js.map +1 -0
- package/dist/blocks/designs/order-detail/promotions.mjs +125 -0
- package/dist/blocks/designs/order-detail/promotions.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.d.ts +14 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.js +61 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.js.map +1 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.mjs +37 -0
- package/dist/blocks/designs/order-history/components/bulk-bar.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/controls.d.ts +25 -0
- package/dist/blocks/designs/order-history/components/controls.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/controls.js +168 -0
- package/dist/blocks/designs/order-history/components/controls.js.map +1 -0
- package/dist/blocks/designs/order-history/components/controls.mjs +144 -0
- package/dist/blocks/designs/order-history/components/controls.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/feedback.d.ts +30 -0
- package/dist/blocks/designs/order-history/components/feedback.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/feedback.js +107 -0
- package/dist/blocks/designs/order-history/components/feedback.js.map +1 -0
- package/dist/blocks/designs/order-history/components/feedback.mjs +79 -0
- package/dist/blocks/designs/order-history/components/feedback.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/header.d.ts +15 -0
- package/dist/blocks/designs/order-history/components/header.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/header.js +47 -0
- package/dist/blocks/designs/order-history/components/header.js.map +1 -0
- package/dist/blocks/designs/order-history/components/header.mjs +23 -0
- package/dist/blocks/designs/order-history/components/header.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/icons.d.ts +8 -0
- package/dist/blocks/designs/order-history/components/icons.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/icons.js +103 -0
- package/dist/blocks/designs/order-history/components/icons.js.map +1 -0
- package/dist/blocks/designs/order-history/components/icons.mjs +79 -0
- package/dist/blocks/designs/order-history/components/icons.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/order-actions.d.ts +17 -0
- package/dist/blocks/designs/order-history/components/order-actions.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/order-actions.js +100 -0
- package/dist/blocks/designs/order-history/components/order-actions.js.map +1 -0
- package/dist/blocks/designs/order-history/components/order-actions.mjs +75 -0
- package/dist/blocks/designs/order-history/components/order-actions.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/order-card.d.ts +18 -0
- package/dist/blocks/designs/order-history/components/order-card.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/order-card.js +183 -0
- package/dist/blocks/designs/order-history/components/order-card.js.map +1 -0
- package/dist/blocks/designs/order-history/components/order-card.mjs +159 -0
- package/dist/blocks/designs/order-history/components/order-card.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/order-history.d.ts +8 -0
- package/dist/blocks/designs/order-history/components/order-history.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/order-history.js +310 -0
- package/dist/blocks/designs/order-history/components/order-history.js.map +1 -0
- package/dist/blocks/designs/order-history/components/order-history.mjs +291 -0
- package/dist/blocks/designs/order-history/components/order-history.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/order-table.d.ts +23 -0
- package/dist/blocks/designs/order-history/components/order-table.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/order-table.js +221 -0
- package/dist/blocks/designs/order-history/components/order-table.js.map +1 -0
- package/dist/blocks/designs/order-history/components/order-table.mjs +197 -0
- package/dist/blocks/designs/order-history/components/order-table.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/pagination.d.ts +13 -0
- package/dist/blocks/designs/order-history/components/pagination.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/pagination.js +83 -0
- package/dist/blocks/designs/order-history/components/pagination.js.map +1 -0
- package/dist/blocks/designs/order-history/components/pagination.mjs +59 -0
- package/dist/blocks/designs/order-history/components/pagination.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/status-badge.d.ts +12 -0
- package/dist/blocks/designs/order-history/components/status-badge.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/status-badge.js +68 -0
- package/dist/blocks/designs/order-history/components/status-badge.js.map +1 -0
- package/dist/blocks/designs/order-history/components/status-badge.mjs +42 -0
- package/dist/blocks/designs/order-history/components/status-badge.mjs.map +1 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.d.ts +13 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.js +56 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.js.map +1 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.mjs +32 -0
- package/dist/blocks/designs/order-history/components/toolbar-button.mjs.map +1 -0
- package/dist/blocks/designs/order-history/contracts.d.ts +295 -0
- package/dist/blocks/designs/order-history/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/contracts.js +102 -0
- package/dist/blocks/designs/order-history/contracts.js.map +1 -0
- package/dist/blocks/designs/order-history/contracts.mjs +70 -0
- package/dist/blocks/designs/order-history/contracts.mjs.map +1 -0
- package/dist/blocks/designs/order-history/engine.d.ts +57 -0
- package/dist/blocks/designs/order-history/engine.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/engine.js +289 -0
- package/dist/blocks/designs/order-history/engine.js.map +1 -0
- package/dist/blocks/designs/order-history/engine.mjs +251 -0
- package/dist/blocks/designs/order-history/engine.mjs.map +1 -0
- package/dist/blocks/designs/order-history/index.d.ts +13 -0
- package/dist/blocks/designs/order-history/index.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/index.js +36 -0
- package/dist/blocks/designs/order-history/index.js.map +1 -0
- package/dist/blocks/designs/order-history/index.mjs +12 -0
- package/dist/blocks/designs/order-history/index.mjs.map +1 -0
- package/dist/blocks/designs/order-history/money.d.ts +15 -0
- package/dist/blocks/designs/order-history/money.d.ts.map +1 -0
- package/dist/blocks/designs/order-history/money.js +97 -0
- package/dist/blocks/designs/order-history/money.js.map +1 -0
- package/dist/blocks/designs/order-history/money.mjs +69 -0
- package/dist/blocks/designs/order-history/money.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/analytics.d.ts +26 -0
- package/dist/blocks/designs/universal-banner/analytics.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/analytics.js +59 -0
- package/dist/blocks/designs/universal-banner/analytics.js.map +1 -0
- package/dist/blocks/designs/universal-banner/analytics.mjs +35 -0
- package/dist/blocks/designs/universal-banner/analytics.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/banner-block.d.ts +20 -0
- package/dist/blocks/designs/universal-banner/banner-block.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/banner-block.js +104 -0
- package/dist/blocks/designs/universal-banner/banner-block.js.map +1 -0
- package/dist/blocks/designs/universal-banner/banner-block.mjs +80 -0
- package/dist/blocks/designs/universal-banner/banner-block.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/banner.d.ts +22 -0
- package/dist/blocks/designs/universal-banner/banner.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/banner.js +190 -0
- package/dist/blocks/designs/universal-banner/banner.js.map +1 -0
- package/dist/blocks/designs/universal-banner/banner.mjs +166 -0
- package/dist/blocks/designs/universal-banner/banner.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/block.d.ts +15 -0
- package/dist/blocks/designs/universal-banner/block.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/block.js +48 -0
- package/dist/blocks/designs/universal-banner/block.js.map +1 -0
- package/dist/blocks/designs/universal-banner/block.mjs +28 -0
- package/dist/blocks/designs/universal-banner/block.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/carousel.d.ts +25 -0
- package/dist/blocks/designs/universal-banner/carousel.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/carousel.js +172 -0
- package/dist/blocks/designs/universal-banner/carousel.js.map +1 -0
- package/dist/blocks/designs/universal-banner/carousel.mjs +148 -0
- package/dist/blocks/designs/universal-banner/carousel.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/contracts.d.ts +190 -0
- package/dist/blocks/designs/universal-banner/contracts.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/contracts.js +451 -0
- package/dist/blocks/designs/universal-banner/contracts.js.map +1 -0
- package/dist/blocks/designs/universal-banner/contracts.mjs +418 -0
- package/dist/blocks/designs/universal-banner/contracts.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/format.d.ts +3 -0
- package/dist/blocks/designs/universal-banner/format.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/format.js +34 -0
- package/dist/blocks/designs/universal-banner/format.js.map +1 -0
- package/dist/blocks/designs/universal-banner/format.mjs +10 -0
- package/dist/blocks/designs/universal-banner/format.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/grid.d.ts +15 -0
- package/dist/blocks/designs/universal-banner/grid.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/grid.js +45 -0
- package/dist/blocks/designs/universal-banner/grid.js.map +1 -0
- package/dist/blocks/designs/universal-banner/grid.mjs +21 -0
- package/dist/blocks/designs/universal-banner/grid.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/index.d.ts +3 -0
- package/dist/blocks/designs/universal-banner/index.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/index.js +36 -0
- package/dist/blocks/designs/universal-banner/index.js.map +1 -0
- package/dist/blocks/designs/universal-banner/index.mjs +6 -0
- package/dist/blocks/designs/universal-banner/index.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/links.d.ts +33 -0
- package/dist/blocks/designs/universal-banner/links.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/links.js +109 -0
- package/dist/blocks/designs/universal-banner/links.js.map +1 -0
- package/dist/blocks/designs/universal-banner/links.mjs +80 -0
- package/dist/blocks/designs/universal-banner/links.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/media.d.ts +20 -0
- package/dist/blocks/designs/universal-banner/media.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/media.js +69 -0
- package/dist/blocks/designs/universal-banner/media.js.map +1 -0
- package/dist/blocks/designs/universal-banner/media.mjs +43 -0
- package/dist/blocks/designs/universal-banner/media.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/presets.d.ts +26 -0
- package/dist/blocks/designs/universal-banner/presets.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/presets.js +175 -0
- package/dist/blocks/designs/universal-banner/presets.js.map +1 -0
- package/dist/blocks/designs/universal-banner/presets.mjs +149 -0
- package/dist/blocks/designs/universal-banner/presets.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/resolve.d.ts +16 -0
- package/dist/blocks/designs/universal-banner/resolve.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/resolve.js +67 -0
- package/dist/blocks/designs/universal-banner/resolve.js.map +1 -0
- package/dist/blocks/designs/universal-banner/resolve.mjs +42 -0
- package/dist/blocks/designs/universal-banner/resolve.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/responsive.d.ts +33 -0
- package/dist/blocks/designs/universal-banner/responsive.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/responsive.js +481 -0
- package/dist/blocks/designs/universal-banner/responsive.js.map +1 -0
- package/dist/blocks/designs/universal-banner/responsive.mjs +447 -0
- package/dist/blocks/designs/universal-banner/responsive.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/schedule.d.ts +11 -0
- package/dist/blocks/designs/universal-banner/schedule.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/schedule.js +88 -0
- package/dist/blocks/designs/universal-banner/schedule.js.map +1 -0
- package/dist/blocks/designs/universal-banner/schedule.mjs +62 -0
- package/dist/blocks/designs/universal-banner/schedule.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/story-carousel.d.ts +20 -0
- package/dist/blocks/designs/universal-banner/story-carousel.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/story-carousel.js +85 -0
- package/dist/blocks/designs/universal-banner/story-carousel.js.map +1 -0
- package/dist/blocks/designs/universal-banner/story-carousel.mjs +61 -0
- package/dist/blocks/designs/universal-banner/story-carousel.mjs.map +1 -0
- package/dist/blocks/designs/universal-banner/use-container-width.d.ts +17 -0
- package/dist/blocks/designs/universal-banner/use-container-width.d.ts.map +1 -0
- package/dist/blocks/designs/universal-banner/use-container-width.js +59 -0
- package/dist/blocks/designs/universal-banner/use-container-width.js.map +1 -0
- package/dist/blocks/designs/universal-banner/use-container-width.mjs +35 -0
- package/dist/blocks/designs/universal-banner/use-container-width.mjs.map +1 -0
- package/dist/blocks/e-commerce/account/account-frame.d.ts +38 -0
- package/dist/blocks/e-commerce/account/account-frame.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/account-frame.js +102 -0
- package/dist/blocks/e-commerce/account/account-frame.js.map +1 -0
- package/dist/blocks/e-commerce/account/account-frame.mjs +78 -0
- package/dist/blocks/e-commerce/account/account-frame.mjs.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.d.ts +79 -0
- package/dist/blocks/e-commerce/account/address-book.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.js +250 -0
- package/dist/blocks/e-commerce/account/address-book.js.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.mjs +225 -0
- package/dist/blocks/e-commerce/account/address-book.mjs.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.d.ts +35 -0
- package/dist/blocks/e-commerce/account/profile-form.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.js +100 -0
- package/dist/blocks/e-commerce/account/profile-form.js.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.mjs +76 -0
- package/dist/blocks/e-commerce/account/profile-form.mjs.map +1 -0
- package/dist/index.d.ts +39 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -0
- package/dist/index.mjs.map +1 -1
- package/dist/lib/contracts/checkout-commerce-v1.d.ts +2365 -0
- package/dist/lib/contracts/checkout-commerce-v1.d.ts.map +1 -0
- package/dist/lib/contracts/checkout-commerce-v1.js +420 -0
- package/dist/lib/contracts/checkout-commerce-v1.js.map +1 -0
- package/dist/lib/contracts/checkout-commerce-v1.mjs +395 -0
- package/dist/lib/contracts/checkout-commerce-v1.mjs.map +1 -0
- package/dist/lib/contracts/mega-menu-universal.d.ts +376 -0
- package/dist/lib/contracts/mega-menu-universal.d.ts.map +1 -0
- package/dist/lib/contracts/mega-menu-universal.js +95 -0
- package/dist/lib/contracts/mega-menu-universal.js.map +1 -0
- package/dist/lib/contracts/mega-menu-universal.mjs +70 -0
- package/dist/lib/contracts/mega-menu-universal.mjs.map +1 -0
- package/dist/lib/contracts/universal-banner.d.ts +1793 -0
- package/dist/lib/contracts/universal-banner.d.ts.map +1 -0
- package/dist/lib/contracts/universal-banner.js +235 -0
- package/dist/lib/contracts/universal-banner.js.map +1 -0
- package/dist/lib/contracts/universal-banner.mjs +211 -0
- package/dist/lib/contracts/universal-banner.mjs.map +1 -0
- package/dist/lib/contracts.d.ts +673 -332
- package/dist/lib/contracts.d.ts.map +1 -1
- package/dist/lib/contracts.js +87 -1
- package/dist/lib/contracts.js.map +1 -1
- package/dist/lib/contracts.mjs +73 -0
- package/dist/lib/contracts.mjs.map +1 -1
- package/dist/lib/money.d.ts.map +1 -1
- package/dist/lib/money.js +1 -1
- package/dist/lib/money.js.map +1 -1
- package/dist/lib/money.mjs +1 -1
- package/dist/lib/money.mjs.map +1 -1
- package/dist/lib/validators/universal-banner.d.ts +4 -0
- package/dist/lib/validators/universal-banner.d.ts.map +1 -0
- package/dist/lib/validators/universal-banner.js +403 -0
- package/dist/lib/validators/universal-banner.js.map +1 -0
- package/dist/lib/validators/universal-banner.mjs +379 -0
- package/dist/lib/validators/universal-banner.mjs.map +1 -0
- package/dist/lib/validators.d.ts +13 -0
- package/dist/lib/validators.d.ts.map +1 -0
- package/dist/lib/validators.js +29 -0
- package/dist/lib/validators.js.map +1 -0
- package/dist/lib/validators.mjs +5 -0
- package/dist/lib/validators.mjs.map +1 -0
- package/dist/ports/address-book.d.ts +163 -0
- package/dist/ports/address-book.d.ts.map +1 -0
- package/dist/ports/address-book.js +17 -0
- package/dist/ports/address-book.js.map +1 -0
- package/dist/ports/address-book.mjs +1 -0
- package/dist/ports/address-book.mjs.map +1 -0
- package/dist/ports/customer-profile.d.ts +122 -0
- package/dist/ports/customer-profile.d.ts.map +1 -0
- package/dist/ports/customer-profile.js +17 -0
- package/dist/ports/customer-profile.js.map +1 -0
- package/dist/ports/customer-profile.mjs +1 -0
- package/dist/ports/customer-profile.mjs.map +1 -0
- package/dist/ports/errors.d.ts +7 -0
- package/dist/ports/errors.d.ts.map +1 -0
- package/dist/ports/errors.js +36 -0
- package/dist/ports/errors.js.map +1 -0
- package/dist/ports/errors.mjs +12 -0
- package/dist/ports/errors.mjs.map +1 -0
- package/dist/ports/favorites.d.ts +130 -0
- package/dist/ports/favorites.d.ts.map +1 -0
- package/dist/ports/favorites.js +17 -0
- package/dist/ports/favorites.js.map +1 -0
- package/dist/ports/favorites.mjs +1 -0
- package/dist/ports/favorites.mjs.map +1 -0
- package/dist/ports/fulfillment-evidence.d.ts +96 -0
- package/dist/ports/fulfillment-evidence.d.ts.map +1 -0
- package/dist/ports/fulfillment-evidence.js +17 -0
- package/dist/ports/fulfillment-evidence.js.map +1 -0
- package/dist/ports/fulfillment-evidence.mjs +1 -0
- package/dist/ports/fulfillment-evidence.mjs.map +1 -0
- package/dist/ports/help-and-support.d.ts +279 -0
- package/dist/ports/help-and-support.d.ts.map +1 -0
- package/dist/ports/help-and-support.js +17 -0
- package/dist/ports/help-and-support.js.map +1 -0
- package/dist/ports/help-and-support.mjs +1 -0
- package/dist/ports/help-and-support.mjs.map +1 -0
- package/dist/ports/index.d.ts +16 -0
- package/dist/ports/index.d.ts.map +1 -0
- package/dist/ports/index.js +40 -0
- package/dist/ports/index.js.map +1 -0
- package/dist/ports/index.mjs +10 -0
- package/dist/ports/index.mjs.map +1 -0
- package/dist/ports/order-detail.d.ts +301 -0
- package/dist/ports/order-detail.d.ts.map +1 -0
- package/dist/ports/order-detail.js +17 -0
- package/dist/ports/order-detail.js.map +1 -0
- package/dist/ports/order-detail.mjs +1 -0
- package/dist/ports/order-detail.mjs.map +1 -0
- package/dist/ports/order-history.d.ts +128 -0
- package/dist/ports/order-history.d.ts.map +1 -0
- package/dist/ports/order-history.js +17 -0
- package/dist/ports/order-history.js.map +1 -0
- package/dist/ports/order-history.mjs +1 -0
- package/dist/ports/order-history.mjs.map +1 -0
- package/package.json +10 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/blocks/designs/customer-profile/config.ts"],"sourcesContent":["import type {\n CapabilityWarning,\n CustomerProfileCapabilities,\n CustomerProfilePermissions,\n CustomerProfileSnapshot,\n SectionDescriptor,\n} from './contracts'\n\n/** Order is the reading order; the store may hide any of them. */\nexport const CAPABILITY_KEYS: Array<keyof CustomerProfileCapabilities> = [\n 'avatar',\n 'personalInformation',\n 'contactInformation',\n 'emailChange',\n 'phoneChange',\n 'emailVerification',\n 'phoneVerification',\n 'preferences',\n 'marketingPreferences',\n 'professionalInformation',\n 'organizations',\n 'customFields',\n]\n\n/** A store that configures nothing gets the full personal profile. */\nexport const DEFAULT_CAPABILITIES: CustomerProfileCapabilities = {\n avatar: true,\n personalInformation: true,\n contactInformation: true,\n emailChange: true,\n phoneChange: true,\n emailVerification: true,\n phoneVerification: true,\n preferences: true,\n marketingPreferences: true,\n professionalInformation: true,\n organizations: true,\n customFields: true,\n}\n\nexport const FULL_PERMISSIONS: CustomerProfilePermissions = {\n editPersonal: true,\n editContact: true,\n editPreferences: true,\n editProfessional: true,\n editCustom: true,\n}\n\n/**\n * Capabilities are opt-in and resolved once. A contradiction is downgraded\n * instead of rendering a control the store cannot honour, and it is reported so\n * the host can see what its configuration asked for.\n */\nexport function resolveCapabilities(\n override: Partial<CustomerProfileCapabilities> = {},\n): { capabilities: CustomerProfileCapabilities; warnings: CapabilityWarning[] } {\n const capabilities: CustomerProfileCapabilities = { ...DEFAULT_CAPABILITIES, ...override }\n const warnings: CapabilityWarning[] = []\n const asked = (key: keyof CustomerProfileCapabilities) => override[key] === true\n\n if (!capabilities.contactInformation) {\n if (asked('emailChange')) warnings.push('emailChangeNeedsContact')\n if (asked('phoneChange')) warnings.push('phoneChangeNeedsContact')\n capabilities.emailChange = false\n capabilities.phoneChange = false\n capabilities.emailVerification = false\n capabilities.phoneVerification = false\n }\n\n if (!capabilities.preferences) {\n if (asked('marketingPreferences')) warnings.push('marketingNeedsPreferences')\n capabilities.marketingPreferences = false\n }\n\n if (!capabilities.professionalInformation) {\n if (asked('organizations')) warnings.push('organizationsNeedProfessional')\n capabilities.organizations = false\n }\n\n return { capabilities, warnings }\n}\n\n/**\n * Which sections exist for this snapshot and whether they may be edited.\n * Permissions remove editing only; data the backend released is still shown.\n */\nexport function resolveSections(\n capabilities: CustomerProfileCapabilities,\n permissions: CustomerProfilePermissions,\n snapshot: CustomerProfileSnapshot,\n): SectionDescriptor[] {\n const sections: SectionDescriptor[] = []\n const visibleFields = snapshot.customFields.filter((field) => field.visible !== false)\n\n if (capabilities.personalInformation) {\n sections.push({ id: 'personal', editable: permissions.editPersonal })\n }\n\n if (capabilities.contactInformation) {\n sections.push({\n id: 'contact',\n editable:\n permissions.editContact && (capabilities.emailChange || capabilities.phoneChange),\n })\n }\n\n if (capabilities.preferences) {\n sections.push({ id: 'preferences', editable: permissions.editPreferences })\n }\n\n if (capabilities.professionalInformation && snapshot.professional) {\n sections.push({ id: 'professional', editable: permissions.editProfessional })\n }\n\n if (capabilities.customFields && visibleFields.length > 0) {\n sections.push({\n id: 'custom',\n editable: permissions.editCustom && visibleFields.some((field) => field.editable !== false),\n })\n }\n\n return sections\n}\n"],"mappings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qB;AACrB,QAAM,WAAgC,CAAC;AACvC,QAAM,gBAAgB,SAAS,aAAa,OAAO,CAAC,UAAU,MAAM,YAAY,KAAK;AAErF,MAAI,aAAa,qBAAqB;AACpC,aAAS,KAAK,EAAE,IAAI,YAAY,UAAU,YAAY,aAAa,CAAC;AAAA,EACtE;AAEA,MAAI,aAAa,oBAAoB;AACnC,aAAS,KAAK;AAAA,MACZ,IAAI;AAAA,MACJ,UACE,YAAY,gBAAgB,aAAa,eAAe,aAAa;AAAA,IACzE,CAAC;AAAA,EACH;AAEA,MAAI,aAAa,aAAa;AAC5B,aAAS,KAAK,EAAE,IAAI,eAAe,UAAU,YAAY,gBAAgB,CAAC;AAAA,EAC5E;AAEA,MAAI,aAAa,2BAA2B,SAAS,cAAc;AACjE,aAAS,KAAK,EAAE,IAAI,gBAAgB,UAAU,YAAY,iBAAiB,CAAC;AAAA,EAC9E;AAEA,MAAI,aAAa,gBAAgB,cAAc,SAAS,GAAG;AACzD,aAAS,KAAK;AAAA,MACZ,IAAI;AAAA,MACJ,UAAU,YAAY,cAAc,cAAc,KAAK,CAAC,UAAU,MAAM,aAAa,KAAK;AAAA,IAC5F,CAAC;AAAA,EACH;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
export type SectionId = 'personal' | 'contact' | 'preferences' | 'professional' | 'custom';
|
|
2
|
+
export declare const SECTION_IDS: SectionId[];
|
|
3
|
+
/** A channel is verified by the identity provider, never by this surface. */
|
|
4
|
+
export type VerificationStatus = 'verified' | 'unverified' | 'pending' | 'failed';
|
|
5
|
+
export type VerificationChannel = 'email' | 'phone';
|
|
6
|
+
/** A change the buyer asked for that still needs the provider's confirmation. */
|
|
7
|
+
export type PendingChange = {
|
|
8
|
+
value: string;
|
|
9
|
+
requestedAt: string;
|
|
10
|
+
};
|
|
11
|
+
export type EmailContact = {
|
|
12
|
+
value: string;
|
|
13
|
+
verification: VerificationStatus;
|
|
14
|
+
pendingChange?: PendingChange;
|
|
15
|
+
};
|
|
16
|
+
export type PhoneContact = {
|
|
17
|
+
/** ISO 3166-1 alpha-2 code; the dial code is resolved from the store options. */
|
|
18
|
+
countryCode: string;
|
|
19
|
+
nationalNumber: string;
|
|
20
|
+
verification?: VerificationStatus;
|
|
21
|
+
pendingChange?: {
|
|
22
|
+
countryCode: string;
|
|
23
|
+
nationalNumber: string;
|
|
24
|
+
requestedAt: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type CustomerPerson = {
|
|
28
|
+
id: string;
|
|
29
|
+
firstName: string;
|
|
30
|
+
lastName: string;
|
|
31
|
+
middleName?: string;
|
|
32
|
+
preferredName?: string;
|
|
33
|
+
birthDate?: string;
|
|
34
|
+
avatarUrl?: string;
|
|
35
|
+
email: EmailContact;
|
|
36
|
+
phone?: PhoneContact;
|
|
37
|
+
};
|
|
38
|
+
export type AccountType = 'individual' | 'business';
|
|
39
|
+
export type MembershipStatus = 'active' | 'invited' | 'suspended';
|
|
40
|
+
export type CustomerMembership = {
|
|
41
|
+
id: string;
|
|
42
|
+
organization: string;
|
|
43
|
+
role: string;
|
|
44
|
+
status: MembershipStatus;
|
|
45
|
+
/** The organization the buyer is currently shopping for, when there is one. */
|
|
46
|
+
active?: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Professional data belongs to the person, not to a membership: one job title,
|
|
50
|
+
* one department and one work phone, whatever organization is active.
|
|
51
|
+
* Company administration lives in its own module.
|
|
52
|
+
*/
|
|
53
|
+
export type CustomerProfessional = {
|
|
54
|
+
jobTitle?: string;
|
|
55
|
+
department?: string;
|
|
56
|
+
workPhone?: string;
|
|
57
|
+
memberships: CustomerMembership[];
|
|
58
|
+
};
|
|
59
|
+
export type PreferenceOption = {
|
|
60
|
+
value: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
export type CustomerPreferences = {
|
|
64
|
+
language?: string;
|
|
65
|
+
currency?: string;
|
|
66
|
+
timezone?: string;
|
|
67
|
+
marketingEmail?: boolean;
|
|
68
|
+
marketingSms?: boolean;
|
|
69
|
+
commercial?: boolean;
|
|
70
|
+
/** Provenance the backend recorded for the current consent, if any. */
|
|
71
|
+
consentSource?: string;
|
|
72
|
+
};
|
|
73
|
+
export type CustomerFieldType = 'text' | 'number' | 'date' | 'select' | 'boolean';
|
|
74
|
+
/** A store-defined field. Configuration supplies only data, never code. */
|
|
75
|
+
export type CustomerProfileField = {
|
|
76
|
+
key: string;
|
|
77
|
+
label: string;
|
|
78
|
+
type: CustomerFieldType;
|
|
79
|
+
value?: string | number | boolean;
|
|
80
|
+
required?: boolean;
|
|
81
|
+
editable?: boolean;
|
|
82
|
+
visible?: boolean;
|
|
83
|
+
help?: string;
|
|
84
|
+
maxLength?: number;
|
|
85
|
+
min?: number;
|
|
86
|
+
max?: number;
|
|
87
|
+
options?: PreferenceOption[];
|
|
88
|
+
};
|
|
89
|
+
export type PhoneCountry = {
|
|
90
|
+
/** ISO 3166-1 alpha-2. */
|
|
91
|
+
code: string;
|
|
92
|
+
dial: string;
|
|
93
|
+
minDigits: number;
|
|
94
|
+
maxDigits: number;
|
|
95
|
+
label: string;
|
|
96
|
+
};
|
|
97
|
+
/** Everything the store allows; never a list of values the profile can invent. */
|
|
98
|
+
export type CustomerProfileOptions = {
|
|
99
|
+
languages: PreferenceOption[];
|
|
100
|
+
currencies: PreferenceOption[];
|
|
101
|
+
timezones: PreferenceOption[];
|
|
102
|
+
phoneCountries: PhoneCountry[];
|
|
103
|
+
};
|
|
104
|
+
export type CustomerProfileSnapshot = {
|
|
105
|
+
person: CustomerPerson;
|
|
106
|
+
accountType: AccountType;
|
|
107
|
+
preferences?: CustomerPreferences;
|
|
108
|
+
professional?: CustomerProfessional;
|
|
109
|
+
customFields: CustomerProfileField[];
|
|
110
|
+
options: CustomerProfileOptions;
|
|
111
|
+
};
|
|
112
|
+
export type CustomerProfileCapabilities = {
|
|
113
|
+
avatar: boolean;
|
|
114
|
+
personalInformation: boolean;
|
|
115
|
+
contactInformation: boolean;
|
|
116
|
+
emailChange: boolean;
|
|
117
|
+
phoneChange: boolean;
|
|
118
|
+
emailVerification: boolean;
|
|
119
|
+
phoneVerification: boolean;
|
|
120
|
+
preferences: boolean;
|
|
121
|
+
marketingPreferences: boolean;
|
|
122
|
+
professionalInformation: boolean;
|
|
123
|
+
organizations: boolean;
|
|
124
|
+
customFields: boolean;
|
|
125
|
+
};
|
|
126
|
+
export type CustomerProfilePermissions = {
|
|
127
|
+
editPersonal: boolean;
|
|
128
|
+
editContact: boolean;
|
|
129
|
+
editPreferences: boolean;
|
|
130
|
+
editProfessional: boolean;
|
|
131
|
+
editCustom: boolean;
|
|
132
|
+
};
|
|
133
|
+
export type CapabilityWarning = 'emailChangeNeedsContact' | 'phoneChangeNeedsContact' | 'marketingNeedsPreferences' | 'organizationsNeedProfessional';
|
|
134
|
+
export type SectionDescriptor = {
|
|
135
|
+
id: SectionId;
|
|
136
|
+
editable: boolean;
|
|
137
|
+
};
|
|
138
|
+
/** Editor state is a flat map: native controls produce strings and booleans. */
|
|
139
|
+
export type ProfileDraft = Record<string, string | boolean>;
|
|
140
|
+
/** Field path → message code; the view resolves the copy from labels. */
|
|
141
|
+
export type ValidationErrors = Record<string, string>;
|
|
142
|
+
export type ProfileErrorCode = 'unavailable' | 'forbidden' | 'invalid';
|
|
143
|
+
export type CustomerProfileError = Error & {
|
|
144
|
+
code?: ProfileErrorCode;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* The only way the surface reaches data. A storefront replaces the mock with a
|
|
148
|
+
* Medusa adapter: identity, contact and metadata mapping stay in the adapter.
|
|
149
|
+
*/
|
|
150
|
+
export interface CustomerProfileDataSource {
|
|
151
|
+
load(options?: {
|
|
152
|
+
signal?: AbortSignal;
|
|
153
|
+
}): Promise<CustomerProfileSnapshot>;
|
|
154
|
+
updatePersonal(draft: ProfileDraft): Promise<CustomerProfileSnapshot>;
|
|
155
|
+
updateContact(draft: ProfileDraft): Promise<CustomerProfileSnapshot>;
|
|
156
|
+
updatePreferences(draft: ProfileDraft): Promise<CustomerProfileSnapshot>;
|
|
157
|
+
updateProfessional(draft: ProfileDraft): Promise<CustomerProfileSnapshot>;
|
|
158
|
+
updateCustomFields(draft: ProfileDraft): Promise<CustomerProfileSnapshot>;
|
|
159
|
+
requestVerification(channel: VerificationChannel): Promise<CustomerProfileSnapshot>;
|
|
160
|
+
}
|
|
161
|
+
export type CustomerProfileLabels = {
|
|
162
|
+
heading: string;
|
|
163
|
+
description: string;
|
|
164
|
+
accountTypeIndividual: string;
|
|
165
|
+
accountTypeBusiness: string;
|
|
166
|
+
edit: string;
|
|
167
|
+
save: string;
|
|
168
|
+
saving: string;
|
|
169
|
+
cancel: string;
|
|
170
|
+
saved: string;
|
|
171
|
+
incomplete: string;
|
|
172
|
+
readOnly: string;
|
|
173
|
+
optional: string;
|
|
174
|
+
emptyValue: string;
|
|
175
|
+
yes: string;
|
|
176
|
+
no: string;
|
|
177
|
+
loading: string;
|
|
178
|
+
sections: Record<SectionId, {
|
|
179
|
+
title: string;
|
|
180
|
+
description: string;
|
|
181
|
+
}>;
|
|
182
|
+
fields: {
|
|
183
|
+
firstName: string;
|
|
184
|
+
lastName: string;
|
|
185
|
+
middleName: string;
|
|
186
|
+
preferredName: string;
|
|
187
|
+
birthDate: string;
|
|
188
|
+
email: string;
|
|
189
|
+
phone: string;
|
|
190
|
+
phoneCountry: string;
|
|
191
|
+
language: string;
|
|
192
|
+
currency: string;
|
|
193
|
+
timezone: string;
|
|
194
|
+
marketingEmail: string;
|
|
195
|
+
marketingSms: string;
|
|
196
|
+
commercial: string;
|
|
197
|
+
jobTitle: string;
|
|
198
|
+
department: string;
|
|
199
|
+
workPhone: string;
|
|
200
|
+
};
|
|
201
|
+
verification: {
|
|
202
|
+
verified: string;
|
|
203
|
+
unverified: string;
|
|
204
|
+
pending: string;
|
|
205
|
+
failed: string;
|
|
206
|
+
verifyEmail: string;
|
|
207
|
+
verifyPhone: string;
|
|
208
|
+
changePending: string;
|
|
209
|
+
phoneChangePending: string;
|
|
210
|
+
transactional: string;
|
|
211
|
+
consentSource: string;
|
|
212
|
+
};
|
|
213
|
+
organizations: {
|
|
214
|
+
title: string;
|
|
215
|
+
empty: string;
|
|
216
|
+
manage: string;
|
|
217
|
+
active: string;
|
|
218
|
+
role: string;
|
|
219
|
+
status: Record<MembershipStatus, string>;
|
|
220
|
+
};
|
|
221
|
+
custom: {
|
|
222
|
+
empty: string;
|
|
223
|
+
readOnlyField: string;
|
|
224
|
+
};
|
|
225
|
+
validation: Record<string, string>;
|
|
226
|
+
validationSummary: string;
|
|
227
|
+
errors: {
|
|
228
|
+
load: string;
|
|
229
|
+
forbidden: string;
|
|
230
|
+
save: string;
|
|
231
|
+
retry: string;
|
|
232
|
+
dismiss: string;
|
|
233
|
+
};
|
|
234
|
+
discard: {
|
|
235
|
+
title: string;
|
|
236
|
+
body: string;
|
|
237
|
+
confirm: string;
|
|
238
|
+
cancel: string;
|
|
239
|
+
};
|
|
240
|
+
empty: {
|
|
241
|
+
title: string;
|
|
242
|
+
body: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
/** The component API a host mounts; `Block.tsx` is only the demo composition. */
|
|
246
|
+
export type CustomerProfileProps = {
|
|
247
|
+
dataSource: CustomerProfileDataSource;
|
|
248
|
+
labels: CustomerProfileLabels;
|
|
249
|
+
capabilities?: Partial<CustomerProfileCapabilities>;
|
|
250
|
+
permissions?: Partial<CustomerProfilePermissions>;
|
|
251
|
+
/** Open a section for editing on mount (host deep links). */
|
|
252
|
+
defaultEditing?: SectionId;
|
|
253
|
+
/** BCP-47 tag for the surface copy; inherited from the page when omitted. */
|
|
254
|
+
lang?: string;
|
|
255
|
+
onManageOrganization?: (membershipId: string) => void;
|
|
256
|
+
onRequestVerification?: (channel: VerificationChannel) => void;
|
|
257
|
+
onRetry?: () => void;
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../src/blocks/designs/customer-profile/contracts.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,cAAc,GAAG,QAAQ,CAAA;AAE1F,eAAO,MAAM,WAAW,EAAE,SAAS,EAMlC,CAAA;AAED,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEjF,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,OAAO,CAAA;AAEnD,iFAAiF;AACjF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,kBAAkB,CAAA;IAChC,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,aAAa,CAAC,EAAE;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,CAAA;QACtB,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,YAAY,CA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AAE,MAAM,CAAA;KAChB,CAAA;IACD,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAED,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,yBAAyB,CAAA;IACrC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACjD,6DAA6D;IAC7D,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var contracts_exports = {};
|
|
20
|
+
__export(contracts_exports, {
|
|
21
|
+
SECTION_IDS: () => SECTION_IDS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(contracts_exports);
|
|
24
|
+
const SECTION_IDS = [
|
|
25
|
+
"personal",
|
|
26
|
+
"contact",
|
|
27
|
+
"preferences",
|
|
28
|
+
"professional",
|
|
29
|
+
"custom"
|
|
30
|
+
];
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
SECTION_IDS
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/blocks/designs/customer-profile/contracts.ts"],"sourcesContent":["// View models and ports for the customer profile. Types only: the surface, its\n// data source and the demo all speak this contract, so a Medusa adapter can\n// replace the mock without touching a component.\n\nexport type SectionId = 'personal' | 'contact' | 'preferences' | 'professional' | 'custom'\n\nexport const SECTION_IDS: SectionId[] = [\n 'personal',\n 'contact',\n 'preferences',\n 'professional',\n 'custom',\n]\n\n/** A channel is verified by the identity provider, never by this surface. */\nexport type VerificationStatus = 'verified' | 'unverified' | 'pending' | 'failed'\n\nexport type VerificationChannel = 'email' | 'phone'\n\n/** A change the buyer asked for that still needs the provider's confirmation. */\nexport type PendingChange = {\n value: string\n requestedAt: string\n}\n\nexport type EmailContact = {\n value: string\n verification: VerificationStatus\n pendingChange?: PendingChange\n}\n\nexport type PhoneContact = {\n /** ISO 3166-1 alpha-2 code; the dial code is resolved from the store options. */\n countryCode: string\n nationalNumber: string\n verification?: VerificationStatus\n pendingChange?: {\n countryCode: string\n nationalNumber: string\n requestedAt: string\n }\n}\n\nexport type CustomerPerson = {\n id: string\n firstName: string\n lastName: string\n middleName?: string\n preferredName?: string\n birthDate?: string\n avatarUrl?: string\n email: EmailContact\n phone?: PhoneContact\n}\n\nexport type AccountType = 'individual' | 'business'\n\nexport type MembershipStatus = 'active' | 'invited' | 'suspended'\n\nexport type CustomerMembership = {\n id: string\n organization: string\n role: string\n status: MembershipStatus\n /** The organization the buyer is currently shopping for, when there is one. */\n active?: boolean\n}\n\n/**\n * Professional data belongs to the person, not to a membership: one job title,\n * one department and one work phone, whatever organization is active.\n * Company administration lives in its own module.\n */\nexport type CustomerProfessional = {\n jobTitle?: string\n department?: string\n workPhone?: string\n memberships: CustomerMembership[]\n}\n\nexport type PreferenceOption = {\n value: string\n label: string\n}\n\nexport type CustomerPreferences = {\n language?: string\n currency?: string\n timezone?: string\n marketingEmail?: boolean\n marketingSms?: boolean\n commercial?: boolean\n /** Provenance the backend recorded for the current consent, if any. */\n consentSource?: string\n}\n\nexport type CustomerFieldType = 'text' | 'number' | 'date' | 'select' | 'boolean'\n\n/** A store-defined field. Configuration supplies only data, never code. */\nexport type CustomerProfileField = {\n key: string\n label: string\n type: CustomerFieldType\n value?: string | number | boolean\n required?: boolean\n editable?: boolean\n visible?: boolean\n help?: string\n maxLength?: number\n min?: number\n max?: number\n options?: PreferenceOption[]\n}\n\nexport type PhoneCountry = {\n /** ISO 3166-1 alpha-2. */\n code: string\n dial: string\n minDigits: number\n maxDigits: number\n label: string\n}\n\n/** Everything the store allows; never a list of values the profile can invent. */\nexport type CustomerProfileOptions = {\n languages: PreferenceOption[]\n currencies: PreferenceOption[]\n timezones: PreferenceOption[]\n phoneCountries: PhoneCountry[]\n}\n\nexport type CustomerProfileSnapshot = {\n person: CustomerPerson\n accountType: AccountType\n preferences?: CustomerPreferences\n professional?: CustomerProfessional\n customFields: CustomerProfileField[]\n options: CustomerProfileOptions\n}\n\nexport type CustomerProfileCapabilities = {\n avatar: boolean\n personalInformation: boolean\n contactInformation: boolean\n emailChange: boolean\n phoneChange: boolean\n emailVerification: boolean\n phoneVerification: boolean\n preferences: boolean\n marketingPreferences: boolean\n professionalInformation: boolean\n organizations: boolean\n customFields: boolean\n}\n\nexport type CustomerProfilePermissions = {\n editPersonal: boolean\n editContact: boolean\n editPreferences: boolean\n editProfessional: boolean\n editCustom: boolean\n}\n\nexport type CapabilityWarning =\n | 'emailChangeNeedsContact'\n | 'phoneChangeNeedsContact'\n | 'marketingNeedsPreferences'\n | 'organizationsNeedProfessional'\n\nexport type SectionDescriptor = {\n id: SectionId\n editable: boolean\n}\n\n/** Editor state is a flat map: native controls produce strings and booleans. */\nexport type ProfileDraft = Record<string, string | boolean>\n\n/** Field path → message code; the view resolves the copy from labels. */\nexport type ValidationErrors = Record<string, string>\n\nexport type ProfileErrorCode = 'unavailable' | 'forbidden' | 'invalid'\n\nexport type CustomerProfileError = Error & {\n code?: ProfileErrorCode\n}\n\n/**\n * The only way the surface reaches data. A storefront replaces the mock with a\n * Medusa adapter: identity, contact and metadata mapping stay in the adapter.\n */\nexport interface CustomerProfileDataSource {\n load(options?: { signal?: AbortSignal }): Promise<CustomerProfileSnapshot>\n updatePersonal(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateContact(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updatePreferences(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateProfessional(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateCustomFields(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n requestVerification(channel: VerificationChannel): Promise<CustomerProfileSnapshot>\n}\n\nexport type CustomerProfileLabels = {\n heading: string\n description: string\n accountTypeIndividual: string\n accountTypeBusiness: string\n edit: string\n save: string\n saving: string\n cancel: string\n saved: string\n incomplete: string\n readOnly: string\n optional: string\n emptyValue: string\n yes: string\n no: string\n loading: string\n sections: Record<SectionId, { title: string; description: string }>\n fields: {\n firstName: string\n lastName: string\n middleName: string\n preferredName: string\n birthDate: string\n email: string\n phone: string\n phoneCountry: string\n language: string\n currency: string\n timezone: string\n marketingEmail: string\n marketingSms: string\n commercial: string\n jobTitle: string\n department: string\n workPhone: string\n }\n verification: {\n verified: string\n unverified: string\n pending: string\n failed: string\n verifyEmail: string\n verifyPhone: string\n changePending: string\n phoneChangePending: string\n transactional: string\n consentSource: string\n }\n organizations: {\n title: string\n empty: string\n manage: string\n active: string\n role: string\n status: Record<MembershipStatus, string>\n }\n custom: {\n empty: string\n readOnlyField: string\n }\n validation: Record<string, string>\n validationSummary: string\n errors: {\n load: string\n forbidden: string\n save: string\n retry: string\n dismiss: string\n }\n discard: {\n title: string\n body: string\n confirm: string\n cancel: string\n }\n empty: {\n title: string\n body: string\n }\n}\n\n/** The component API a host mounts; `Block.tsx` is only the demo composition. */\nexport type CustomerProfileProps = {\n dataSource: CustomerProfileDataSource\n labels: CustomerProfileLabels\n capabilities?: Partial<CustomerProfileCapabilities>\n permissions?: Partial<CustomerProfilePermissions>\n /** Open a section for editing on mount (host deep links). */\n defaultEditing?: SectionId\n /** BCP-47 tag for the surface copy; inherited from the page when omitted. */\n lang?: string\n onManageOrganization?: (membershipId: string) => void\n onRequestVerification?: (channel: VerificationChannel) => void\n onRetry?: () => void\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,cAA2B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/blocks/designs/customer-profile/contracts.ts"],"sourcesContent":["// View models and ports for the customer profile. Types only: the surface, its\n// data source and the demo all speak this contract, so a Medusa adapter can\n// replace the mock without touching a component.\n\nexport type SectionId = 'personal' | 'contact' | 'preferences' | 'professional' | 'custom'\n\nexport const SECTION_IDS: SectionId[] = [\n 'personal',\n 'contact',\n 'preferences',\n 'professional',\n 'custom',\n]\n\n/** A channel is verified by the identity provider, never by this surface. */\nexport type VerificationStatus = 'verified' | 'unverified' | 'pending' | 'failed'\n\nexport type VerificationChannel = 'email' | 'phone'\n\n/** A change the buyer asked for that still needs the provider's confirmation. */\nexport type PendingChange = {\n value: string\n requestedAt: string\n}\n\nexport type EmailContact = {\n value: string\n verification: VerificationStatus\n pendingChange?: PendingChange\n}\n\nexport type PhoneContact = {\n /** ISO 3166-1 alpha-2 code; the dial code is resolved from the store options. */\n countryCode: string\n nationalNumber: string\n verification?: VerificationStatus\n pendingChange?: {\n countryCode: string\n nationalNumber: string\n requestedAt: string\n }\n}\n\nexport type CustomerPerson = {\n id: string\n firstName: string\n lastName: string\n middleName?: string\n preferredName?: string\n birthDate?: string\n avatarUrl?: string\n email: EmailContact\n phone?: PhoneContact\n}\n\nexport type AccountType = 'individual' | 'business'\n\nexport type MembershipStatus = 'active' | 'invited' | 'suspended'\n\nexport type CustomerMembership = {\n id: string\n organization: string\n role: string\n status: MembershipStatus\n /** The organization the buyer is currently shopping for, when there is one. */\n active?: boolean\n}\n\n/**\n * Professional data belongs to the person, not to a membership: one job title,\n * one department and one work phone, whatever organization is active.\n * Company administration lives in its own module.\n */\nexport type CustomerProfessional = {\n jobTitle?: string\n department?: string\n workPhone?: string\n memberships: CustomerMembership[]\n}\n\nexport type PreferenceOption = {\n value: string\n label: string\n}\n\nexport type CustomerPreferences = {\n language?: string\n currency?: string\n timezone?: string\n marketingEmail?: boolean\n marketingSms?: boolean\n commercial?: boolean\n /** Provenance the backend recorded for the current consent, if any. */\n consentSource?: string\n}\n\nexport type CustomerFieldType = 'text' | 'number' | 'date' | 'select' | 'boolean'\n\n/** A store-defined field. Configuration supplies only data, never code. */\nexport type CustomerProfileField = {\n key: string\n label: string\n type: CustomerFieldType\n value?: string | number | boolean\n required?: boolean\n editable?: boolean\n visible?: boolean\n help?: string\n maxLength?: number\n min?: number\n max?: number\n options?: PreferenceOption[]\n}\n\nexport type PhoneCountry = {\n /** ISO 3166-1 alpha-2. */\n code: string\n dial: string\n minDigits: number\n maxDigits: number\n label: string\n}\n\n/** Everything the store allows; never a list of values the profile can invent. */\nexport type CustomerProfileOptions = {\n languages: PreferenceOption[]\n currencies: PreferenceOption[]\n timezones: PreferenceOption[]\n phoneCountries: PhoneCountry[]\n}\n\nexport type CustomerProfileSnapshot = {\n person: CustomerPerson\n accountType: AccountType\n preferences?: CustomerPreferences\n professional?: CustomerProfessional\n customFields: CustomerProfileField[]\n options: CustomerProfileOptions\n}\n\nexport type CustomerProfileCapabilities = {\n avatar: boolean\n personalInformation: boolean\n contactInformation: boolean\n emailChange: boolean\n phoneChange: boolean\n emailVerification: boolean\n phoneVerification: boolean\n preferences: boolean\n marketingPreferences: boolean\n professionalInformation: boolean\n organizations: boolean\n customFields: boolean\n}\n\nexport type CustomerProfilePermissions = {\n editPersonal: boolean\n editContact: boolean\n editPreferences: boolean\n editProfessional: boolean\n editCustom: boolean\n}\n\nexport type CapabilityWarning =\n | 'emailChangeNeedsContact'\n | 'phoneChangeNeedsContact'\n | 'marketingNeedsPreferences'\n | 'organizationsNeedProfessional'\n\nexport type SectionDescriptor = {\n id: SectionId\n editable: boolean\n}\n\n/** Editor state is a flat map: native controls produce strings and booleans. */\nexport type ProfileDraft = Record<string, string | boolean>\n\n/** Field path → message code; the view resolves the copy from labels. */\nexport type ValidationErrors = Record<string, string>\n\nexport type ProfileErrorCode = 'unavailable' | 'forbidden' | 'invalid'\n\nexport type CustomerProfileError = Error & {\n code?: ProfileErrorCode\n}\n\n/**\n * The only way the surface reaches data. A storefront replaces the mock with a\n * Medusa adapter: identity, contact and metadata mapping stay in the adapter.\n */\nexport interface CustomerProfileDataSource {\n load(options?: { signal?: AbortSignal }): Promise<CustomerProfileSnapshot>\n updatePersonal(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateContact(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updatePreferences(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateProfessional(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n updateCustomFields(draft: ProfileDraft): Promise<CustomerProfileSnapshot>\n requestVerification(channel: VerificationChannel): Promise<CustomerProfileSnapshot>\n}\n\nexport type CustomerProfileLabels = {\n heading: string\n description: string\n accountTypeIndividual: string\n accountTypeBusiness: string\n edit: string\n save: string\n saving: string\n cancel: string\n saved: string\n incomplete: string\n readOnly: string\n optional: string\n emptyValue: string\n yes: string\n no: string\n loading: string\n sections: Record<SectionId, { title: string; description: string }>\n fields: {\n firstName: string\n lastName: string\n middleName: string\n preferredName: string\n birthDate: string\n email: string\n phone: string\n phoneCountry: string\n language: string\n currency: string\n timezone: string\n marketingEmail: string\n marketingSms: string\n commercial: string\n jobTitle: string\n department: string\n workPhone: string\n }\n verification: {\n verified: string\n unverified: string\n pending: string\n failed: string\n verifyEmail: string\n verifyPhone: string\n changePending: string\n phoneChangePending: string\n transactional: string\n consentSource: string\n }\n organizations: {\n title: string\n empty: string\n manage: string\n active: string\n role: string\n status: Record<MembershipStatus, string>\n }\n custom: {\n empty: string\n readOnlyField: string\n }\n validation: Record<string, string>\n validationSummary: string\n errors: {\n load: string\n forbidden: string\n save: string\n retry: string\n dismiss: string\n }\n discard: {\n title: string\n body: string\n confirm: string\n cancel: string\n }\n empty: {\n title: string\n body: string\n }\n}\n\n/** The component API a host mounts; `Block.tsx` is only the demo composition. */\nexport type CustomerProfileProps = {\n dataSource: CustomerProfileDataSource\n labels: CustomerProfileLabels\n capabilities?: Partial<CustomerProfileCapabilities>\n permissions?: Partial<CustomerProfilePermissions>\n /** Open a section for editing on mount (host deep links). */\n defaultEditing?: SectionId\n /** BCP-47 tag for the surface copy; inherited from the page when omitted. */\n lang?: string\n onManageOrganization?: (membershipId: string) => void\n onRequestVerification?: (channel: VerificationChannel) => void\n onRetry?: () => void\n}\n"],"mappings":"AAMO,MAAM,cAA2B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CustomerProfileSnapshot, ProfileDraft, SectionId } from './contracts';
|
|
2
|
+
export type ApplyOptions = {
|
|
3
|
+
/** Channels the store verifies; a change then waits for confirmation. */
|
|
4
|
+
verification?: {
|
|
5
|
+
email?: boolean;
|
|
6
|
+
phone?: boolean;
|
|
7
|
+
};
|
|
8
|
+
now?: string;
|
|
9
|
+
};
|
|
10
|
+
/** The starting point of an editor: the snapshot flattened to form values. */
|
|
11
|
+
export declare function draftFromSnapshot(section: SectionId, snapshot: CustomerProfileSnapshot): ProfileDraft;
|
|
12
|
+
/** A draft is dirty when any value differs from the snapshot it was built from. */
|
|
13
|
+
export declare function isDirty(draft: ProfileDraft, baseline: ProfileDraft): boolean;
|
|
14
|
+
/** Turn an editor draft into the next snapshot, section by section. */
|
|
15
|
+
export declare function applyDraft(section: SectionId, snapshot: CustomerProfileSnapshot, draft: ProfileDraft, options?: ApplyOptions): CustomerProfileSnapshot;
|
|
16
|
+
//# sourceMappingURL=drafts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drafts.d.ts","sourceRoot":"","sources":["../../../../src/blocks/designs/customer-profile/drafts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EACvB,YAAY,EACZ,SAAS,EACV,MAAM,aAAa,CAAA;AAGpB,MAAM,MAAM,YAAY,GAAG;IACzB,yEAAyE;IACzE,YAAY,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IACnD,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAeD,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,uBAAuB,GAChC,YAAY,CA+Cd;AAED,mFAAmF;AACnF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO,CAM5E;AA8ID,uEAAuE;AACvE,wBAAgB,UAAU,CACxB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,YAAiB,GACzB,uBAAuB,CAazB"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var drafts_exports = {};
|
|
20
|
+
__export(drafts_exports, {
|
|
21
|
+
applyDraft: () => applyDraft,
|
|
22
|
+
draftFromSnapshot: () => draftFromSnapshot,
|
|
23
|
+
isDirty: () => isDirty
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(drafts_exports);
|
|
26
|
+
var import_validation = require("./validation.js");
|
|
27
|
+
function text(draft, key) {
|
|
28
|
+
const value = draft[key];
|
|
29
|
+
return typeof value === "string" ? value.trim() : "";
|
|
30
|
+
}
|
|
31
|
+
function flag(draft, key) {
|
|
32
|
+
return draft[key] === true;
|
|
33
|
+
}
|
|
34
|
+
function optional(value) {
|
|
35
|
+
return value ? value : void 0;
|
|
36
|
+
}
|
|
37
|
+
function draftFromSnapshot(section, snapshot) {
|
|
38
|
+
const { person, preferences, professional } = snapshot;
|
|
39
|
+
switch (section) {
|
|
40
|
+
case "personal":
|
|
41
|
+
return {
|
|
42
|
+
firstName: person.firstName,
|
|
43
|
+
lastName: person.lastName,
|
|
44
|
+
middleName: person.middleName ?? "",
|
|
45
|
+
preferredName: person.preferredName ?? "",
|
|
46
|
+
birthDate: person.birthDate ?? ""
|
|
47
|
+
};
|
|
48
|
+
case "contact":
|
|
49
|
+
return {
|
|
50
|
+
email: person.email.value,
|
|
51
|
+
phone: person.phone?.nationalNumber ?? "",
|
|
52
|
+
phoneCountry: person.phone?.countryCode ?? ""
|
|
53
|
+
};
|
|
54
|
+
case "preferences":
|
|
55
|
+
return {
|
|
56
|
+
language: preferences?.language ?? "",
|
|
57
|
+
currency: preferences?.currency ?? "",
|
|
58
|
+
timezone: preferences?.timezone ?? "",
|
|
59
|
+
marketingEmail: preferences?.marketingEmail === true,
|
|
60
|
+
marketingSms: preferences?.marketingSms === true,
|
|
61
|
+
commercial: preferences?.commercial === true
|
|
62
|
+
};
|
|
63
|
+
case "professional":
|
|
64
|
+
return {
|
|
65
|
+
jobTitle: professional?.jobTitle ?? "",
|
|
66
|
+
department: professional?.department ?? "",
|
|
67
|
+
workPhone: professional?.workPhone ?? ""
|
|
68
|
+
};
|
|
69
|
+
case "custom": {
|
|
70
|
+
const draft = {};
|
|
71
|
+
for (const field of snapshot.customFields) {
|
|
72
|
+
if (field.visible === false) continue;
|
|
73
|
+
draft[(0, import_validation.customKey)(field.key)] = field.type === "boolean" ? field.value === true : field.value === void 0 ? "" : String(field.value);
|
|
74
|
+
}
|
|
75
|
+
return draft;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function isDirty(draft, baseline) {
|
|
80
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(draft), ...Object.keys(baseline)]);
|
|
81
|
+
for (const key of keys) {
|
|
82
|
+
if (draft[key] !== baseline[key]) return true;
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
function applyPersonal(snapshot, draft) {
|
|
87
|
+
const person = snapshot.person;
|
|
88
|
+
return {
|
|
89
|
+
...snapshot,
|
|
90
|
+
person: {
|
|
91
|
+
...person,
|
|
92
|
+
firstName: text(draft, "firstName"),
|
|
93
|
+
lastName: text(draft, "lastName"),
|
|
94
|
+
middleName: optional(text(draft, "middleName")),
|
|
95
|
+
preferredName: optional(text(draft, "preferredName")),
|
|
96
|
+
birthDate: optional(text(draft, "birthDate"))
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function applyContact(snapshot, draft, options) {
|
|
101
|
+
const person = snapshot.person;
|
|
102
|
+
const now = options.now ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
103
|
+
const verified = { email: options.verification?.email !== false, phone: options.verification?.phone !== false };
|
|
104
|
+
const email = text(draft, "email");
|
|
105
|
+
let emailContact = person.email;
|
|
106
|
+
if (email && email !== person.email.value) {
|
|
107
|
+
if (verified.email) {
|
|
108
|
+
const pending = person.email.pendingChange;
|
|
109
|
+
emailContact = {
|
|
110
|
+
...person.email,
|
|
111
|
+
pendingChange: {
|
|
112
|
+
value: email,
|
|
113
|
+
requestedAt: pending && pending.value === email ? pending.requestedAt : now
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
} else {
|
|
117
|
+
emailContact = { value: email, verification: "unverified" };
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
const phone = text(draft, "phone");
|
|
121
|
+
const countryCode = text(draft, "phoneCountry").toUpperCase();
|
|
122
|
+
let phoneContact = person.phone;
|
|
123
|
+
if (phone && (phone !== person.phone?.nationalNumber || countryCode !== person.phone?.countryCode)) {
|
|
124
|
+
if (!phoneContact) {
|
|
125
|
+
phoneContact = {
|
|
126
|
+
countryCode,
|
|
127
|
+
nationalNumber: phone,
|
|
128
|
+
verification: verified.phone ? "pending" : "unverified"
|
|
129
|
+
};
|
|
130
|
+
} else if (verified.phone) {
|
|
131
|
+
const pending = phoneContact.pendingChange;
|
|
132
|
+
const sameRequest = pending?.nationalNumber === phone && pending?.countryCode === countryCode;
|
|
133
|
+
phoneContact = {
|
|
134
|
+
...phoneContact,
|
|
135
|
+
pendingChange: {
|
|
136
|
+
countryCode,
|
|
137
|
+
nationalNumber: phone,
|
|
138
|
+
requestedAt: sameRequest && pending ? pending.requestedAt : now
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
} else {
|
|
142
|
+
phoneContact = {
|
|
143
|
+
...phoneContact,
|
|
144
|
+
countryCode,
|
|
145
|
+
nationalNumber: phone,
|
|
146
|
+
verification: "unverified",
|
|
147
|
+
pendingChange: void 0
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return { ...snapshot, person: { ...person, email: emailContact, phone: phoneContact } };
|
|
152
|
+
}
|
|
153
|
+
function applyPreferences(snapshot, draft) {
|
|
154
|
+
return {
|
|
155
|
+
...snapshot,
|
|
156
|
+
preferences: {
|
|
157
|
+
...snapshot.preferences,
|
|
158
|
+
language: optional(text(draft, "language")),
|
|
159
|
+
currency: optional(text(draft, "currency")),
|
|
160
|
+
timezone: optional(text(draft, "timezone")),
|
|
161
|
+
marketingEmail: flag(draft, "marketingEmail"),
|
|
162
|
+
marketingSms: flag(draft, "marketingSms"),
|
|
163
|
+
commercial: flag(draft, "commercial")
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function applyProfessional(snapshot, draft) {
|
|
168
|
+
const professional = snapshot.professional ?? { memberships: [] };
|
|
169
|
+
return {
|
|
170
|
+
...snapshot,
|
|
171
|
+
professional: {
|
|
172
|
+
...professional,
|
|
173
|
+
jobTitle: optional(text(draft, "jobTitle")),
|
|
174
|
+
department: optional(text(draft, "department")),
|
|
175
|
+
workPhone: optional(text(draft, "workPhone"))
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function fieldValue(field, value) {
|
|
180
|
+
if (field.type === "boolean") return value === true;
|
|
181
|
+
const raw = typeof value === "string" ? value.trim() : "";
|
|
182
|
+
if (!raw) return void 0;
|
|
183
|
+
if (field.type === "number") {
|
|
184
|
+
const parsed = Number(raw);
|
|
185
|
+
return Number.isFinite(parsed) ? parsed : void 0;
|
|
186
|
+
}
|
|
187
|
+
return raw;
|
|
188
|
+
}
|
|
189
|
+
function applyCustom(snapshot, draft) {
|
|
190
|
+
return {
|
|
191
|
+
...snapshot,
|
|
192
|
+
customFields: snapshot.customFields.map((field) => {
|
|
193
|
+
if (field.visible === false || field.editable === false) return field;
|
|
194
|
+
const key = (0, import_validation.customKey)(field.key);
|
|
195
|
+
if (!(key in draft)) return field;
|
|
196
|
+
return { ...field, value: fieldValue(field, draft[key]) };
|
|
197
|
+
})
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function applyDraft(section, snapshot, draft, options = {}) {
|
|
201
|
+
switch (section) {
|
|
202
|
+
case "personal":
|
|
203
|
+
return applyPersonal(snapshot, draft);
|
|
204
|
+
case "contact":
|
|
205
|
+
return applyContact(snapshot, draft, options);
|
|
206
|
+
case "preferences":
|
|
207
|
+
return applyPreferences(snapshot, draft);
|
|
208
|
+
case "professional":
|
|
209
|
+
return applyProfessional(snapshot, draft);
|
|
210
|
+
case "custom":
|
|
211
|
+
return applyCustom(snapshot, draft);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
215
|
+
0 && (module.exports = {
|
|
216
|
+
applyDraft,
|
|
217
|
+
draftFromSnapshot,
|
|
218
|
+
isDirty
|
|
219
|
+
});
|
|
220
|
+
//# sourceMappingURL=drafts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/blocks/designs/customer-profile/drafts.ts"],"sourcesContent":["import type {\n CustomerProfileField,\n CustomerProfileSnapshot,\n ProfileDraft,\n SectionId,\n} from './contracts'\nimport { customKey } from './validation'\n\nexport type ApplyOptions = {\n /** Channels the store verifies; a change then waits for confirmation. */\n verification?: { email?: boolean; phone?: boolean }\n now?: string\n}\n\nfunction text(draft: ProfileDraft, key: string): string {\n const value = draft[key]\n return typeof value === 'string' ? value.trim() : ''\n}\n\nfunction flag(draft: ProfileDraft, key: string): boolean {\n return draft[key] === true\n}\n\nfunction optional(value: string): string | undefined {\n return value ? value : undefined\n}\n\n/** The starting point of an editor: the snapshot flattened to form values. */\nexport function draftFromSnapshot(\n section: SectionId,\n snapshot: CustomerProfileSnapshot,\n): ProfileDraft {\n const { person, preferences, professional } = snapshot\n\n switch (section) {\n case 'personal':\n return {\n firstName: person.firstName,\n lastName: person.lastName,\n middleName: person.middleName ?? '',\n preferredName: person.preferredName ?? '',\n birthDate: person.birthDate ?? '',\n }\n\n case 'contact':\n return {\n email: person.email.value,\n phone: person.phone?.nationalNumber ?? '',\n phoneCountry: person.phone?.countryCode ?? '',\n }\n\n case 'preferences':\n return {\n language: preferences?.language ?? '',\n currency: preferences?.currency ?? '',\n timezone: preferences?.timezone ?? '',\n marketingEmail: preferences?.marketingEmail === true,\n marketingSms: preferences?.marketingSms === true,\n commercial: preferences?.commercial === true,\n }\n\n case 'professional':\n return {\n jobTitle: professional?.jobTitle ?? '',\n department: professional?.department ?? '',\n workPhone: professional?.workPhone ?? '',\n }\n\n case 'custom': {\n const draft: ProfileDraft = {}\n for (const field of snapshot.customFields) {\n if (field.visible === false) continue\n draft[customKey(field.key)] =\n field.type === 'boolean' ? field.value === true : field.value === undefined ? '' : String(field.value)\n }\n return draft\n }\n }\n}\n\n/** A draft is dirty when any value differs from the snapshot it was built from. */\nexport function isDirty(draft: ProfileDraft, baseline: ProfileDraft): boolean {\n const keys = new Set([...Object.keys(draft), ...Object.keys(baseline)])\n for (const key of keys) {\n if (draft[key] !== baseline[key]) return true\n }\n return false\n}\n\nfunction applyPersonal(snapshot: CustomerProfileSnapshot, draft: ProfileDraft): CustomerProfileSnapshot {\n const person = snapshot.person\n return {\n ...snapshot,\n person: {\n ...person,\n firstName: text(draft, 'firstName'),\n lastName: text(draft, 'lastName'),\n middleName: optional(text(draft, 'middleName')),\n preferredName: optional(text(draft, 'preferredName')),\n birthDate: optional(text(draft, 'birthDate')),\n },\n }\n}\n\n/**\n * Contact is the one section where saving is not the same as confirming:\n * a verified channel keeps its current value and records the requested one.\n */\nfunction applyContact(\n snapshot: CustomerProfileSnapshot,\n draft: ProfileDraft,\n options: ApplyOptions,\n): CustomerProfileSnapshot {\n const person = snapshot.person\n const now = options.now ?? new Date().toISOString()\n const verified = { email: options.verification?.email !== false, phone: options.verification?.phone !== false }\n\n const email = text(draft, 'email')\n let emailContact = person.email\n\n if (email && email !== person.email.value) {\n if (verified.email) {\n const pending = person.email.pendingChange\n emailContact = {\n ...person.email,\n pendingChange: {\n value: email,\n requestedAt: pending && pending.value === email ? pending.requestedAt : now,\n },\n }\n } else {\n emailContact = { value: email, verification: 'unverified' }\n }\n }\n\n const phone = text(draft, 'phone')\n const countryCode = text(draft, 'phoneCountry').toUpperCase()\n let phoneContact = person.phone\n\n if (phone && (phone !== person.phone?.nationalNumber || countryCode !== person.phone?.countryCode)) {\n if (!phoneContact) {\n phoneContact = {\n countryCode,\n nationalNumber: phone,\n verification: verified.phone ? 'pending' : 'unverified',\n }\n } else if (verified.phone) {\n const pending = phoneContact.pendingChange\n const sameRequest =\n pending?.nationalNumber === phone && pending?.countryCode === countryCode\n phoneContact = {\n ...phoneContact,\n pendingChange: {\n countryCode,\n nationalNumber: phone,\n requestedAt: sameRequest && pending ? pending.requestedAt : now,\n },\n }\n } else {\n phoneContact = {\n ...phoneContact,\n countryCode,\n nationalNumber: phone,\n verification: 'unverified',\n pendingChange: undefined,\n }\n }\n }\n\n return { ...snapshot, person: { ...person, email: emailContact, phone: phoneContact } }\n}\n\nfunction applyPreferences(\n snapshot: CustomerProfileSnapshot,\n draft: ProfileDraft,\n): CustomerProfileSnapshot {\n return {\n ...snapshot,\n preferences: {\n ...snapshot.preferences,\n language: optional(text(draft, 'language')),\n currency: optional(text(draft, 'currency')),\n timezone: optional(text(draft, 'timezone')),\n marketingEmail: flag(draft, 'marketingEmail'),\n marketingSms: flag(draft, 'marketingSms'),\n commercial: flag(draft, 'commercial'),\n },\n }\n}\n\nfunction applyProfessional(\n snapshot: CustomerProfileSnapshot,\n draft: ProfileDraft,\n): CustomerProfileSnapshot {\n const professional = snapshot.professional ?? { memberships: [] }\n return {\n ...snapshot,\n professional: {\n ...professional,\n jobTitle: optional(text(draft, 'jobTitle')),\n department: optional(text(draft, 'department')),\n workPhone: optional(text(draft, 'workPhone')),\n },\n }\n}\n\nfunction fieldValue(field: CustomerProfileField, value: string | boolean): string | number | boolean | undefined {\n if (field.type === 'boolean') return value === true\n const raw = typeof value === 'string' ? value.trim() : ''\n if (!raw) return undefined\n if (field.type === 'number') {\n const parsed = Number(raw)\n return Number.isFinite(parsed) ? parsed : undefined\n }\n return raw\n}\n\nfunction applyCustom(snapshot: CustomerProfileSnapshot, draft: ProfileDraft): CustomerProfileSnapshot {\n return {\n ...snapshot,\n customFields: snapshot.customFields.map((field) => {\n if (field.visible === false || field.editable === false) return field\n const key = customKey(field.key)\n if (!(key in draft)) return field\n return { ...field, value: fieldValue(field, draft[key]) }\n }),\n }\n}\n\n/** Turn an editor draft into the next snapshot, section by section. */\nexport function applyDraft(\n section: SectionId,\n snapshot: CustomerProfileSnapshot,\n draft: ProfileDraft,\n options: ApplyOptions = {},\n): CustomerProfileSnapshot {\n switch (section) {\n case 'personal':\n return applyPersonal(snapshot, draft)\n case 'contact':\n return applyContact(snapshot, draft, options)\n case 'preferences':\n return applyPreferences(snapshot, draft)\n case 'professional':\n return applyProfessional(snapshot, draft)\n case 'custom':\n return applyCustom(snapshot, draft)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;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