@saasquatch/mint-components 2.1.9-1 → 2.1.9-11
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +369 -5
- package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +25 -5
- package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-98e2975d.js} +24 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -2
- package/dist/cjs/{sqm-user-info-form-view-efa08934.js → sqm-user-info-form-view-923ff8d9.js} +3 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +160 -22
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +23 -18
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +77 -6
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +5 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +474 -13
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +14 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -11
- package/dist/esm/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +5 -5
- package/dist/esm/{data-a6752028.js → data-2b0feb3f.js} +2 -2
- package/dist/esm/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
- package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +378 -15
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +7 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +29 -9
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/{sqm-partner-info-modal-view-77c231af.js → sqm-partner-info-modal-view-74328f70.js} +24 -19
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +41 -15
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +5 -13
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +160 -22
- package/dist/esm/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +2 -2
- package/dist/esm/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +2 -2
- package/dist/esm/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +2 -2
- package/dist/esm/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +3 -3
- package/dist/esm/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +1 -1
- package/dist/esm-es5/{data-a6752028.js → data-2b0feb3f.js} +1 -1
- package/dist/esm-es5/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm-es5/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm-es5/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-74328f70.js +1 -0
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm-es5/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm-es5/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-9f21ea69.js → p-014977d7.js} +1 -1
- package/dist/mint-components/{p-30967f75.js → p-092db51a.js} +1 -1
- package/dist/mint-components/{p-bd804f4c.js → p-095b7128.js} +1 -1
- package/dist/mint-components/{p-bae7d6b5.system.entry.js → p-098d134a.system.entry.js} +1 -1
- package/dist/mint-components/{p-6596f0de.entry.js → p-0a1669f8.entry.js} +2 -2
- package/dist/mint-components/{p-2085bb01.system.entry.js → p-0a60980a.system.entry.js} +1 -1
- package/dist/mint-components/{p-504ed1f2.entry.js → p-0c43b6ff.entry.js} +1 -1
- package/dist/mint-components/{p-ab678644.js → p-0d75a207.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/{p-473562fc.system.js → p-140e6a15.system.js} +1 -1
- package/dist/mint-components/{p-fa32d8eb.system.entry.js → p-15a703c7.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9652150.entry.js → p-160828b4.entry.js} +1 -1
- package/dist/mint-components/{p-878bb2cf.system.entry.js → p-16deb1a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-1435edd4.entry.js → p-1b0cbbae.entry.js} +1 -1
- package/dist/mint-components/{p-aa0b0cd6.entry.js → p-1b2fcd7f.entry.js} +1 -1
- package/dist/mint-components/p-1c413a06.system.js +1 -0
- package/dist/mint-components/{p-2774c704.system.entry.js → p-21e7079a.system.entry.js} +1 -1
- package/dist/mint-components/p-278897bd.system.entry.js +1 -0
- package/dist/mint-components/{p-695ec086.system.js → p-28e0062c.system.js} +1 -1
- package/dist/mint-components/{p-c8060ef5.system.entry.js → p-2f4d8ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-dfb50245.entry.js → p-3181e54a.entry.js} +1 -1
- package/dist/mint-components/{p-5d79c8a0.system.js → p-31dde9fc.system.js} +1 -1
- package/dist/mint-components/{p-d863acaa.js → p-32d078a3.js} +1 -1
- package/dist/mint-components/{p-7528770e.entry.js → p-3461a8cb.entry.js} +1 -1
- package/dist/mint-components/{p-6e816a17.system.entry.js → p-357040e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-452f644f.system.js → p-36395228.system.js} +1 -1
- package/dist/mint-components/{p-5245e4ce.system.entry.js → p-3756d0d1.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f6d617a.entry.js → p-37658fec.entry.js} +1 -1
- package/dist/mint-components/p-39840341.js +1 -0
- package/dist/mint-components/{p-5126508b.js → p-3c333076.js} +1 -1
- package/dist/mint-components/{p-6684e9ad.js → p-3c555674.js} +1 -1
- package/dist/mint-components/{p-21851092.js → p-3c88d2ed.js} +2 -2
- package/dist/mint-components/{p-e7a9ce16.js → p-438f6702.js} +1 -1
- package/dist/mint-components/{p-fe0eceba.system.entry.js → p-45475cf9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7948b16.system.entry.js → p-52748a87.system.entry.js} +1 -1
- package/dist/mint-components/p-53f22cc0.system.entry.js +1 -0
- package/dist/mint-components/{p-614630a8.system.js → p-54bf015a.system.js} +1 -1
- package/dist/mint-components/{p-96cbca52.system.entry.js → p-5c9d030a.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b7b65ef.entry.js → p-5dc9e95b.entry.js} +2 -2
- package/dist/mint-components/{p-82be3d10.system.entry.js → p-60085f20.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc0fe4a3.entry.js → p-608da224.entry.js} +1 -1
- package/dist/mint-components/{p-5825aee6.system.entry.js → p-6194855b.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8766db9.entry.js → p-62212b9a.entry.js} +1 -1
- package/dist/mint-components/{p-f3ddbe2f.system.entry.js → p-62e1c8b2.system.entry.js} +1 -1
- package/dist/mint-components/p-63c299f1.system.js +1 -0
- package/dist/mint-components/{p-9be145c6.system.entry.js → p-64b56141.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b9705fd.system.js → p-64f56cc9.system.js} +1 -1
- package/dist/mint-components/{p-f95952a0.system.entry.js → p-66c0100c.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ad9470d.system.entry.js → p-6a4496b3.system.entry.js} +1 -1
- package/dist/mint-components/{p-1775cb0c.system.js → p-70e34ae1.system.js} +2 -2
- package/dist/mint-components/{p-20280398.system.entry.js → p-71545bfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d444f3f.system.js → p-74aac245.system.js} +1 -1
- package/dist/mint-components/{p-59644ef8.system.js → p-7547180f.system.js} +1 -1
- package/dist/mint-components/{p-f84605ec.system.js → p-77117f6c.system.js} +1 -1
- package/dist/mint-components/{p-a03189bd.js → p-7e36a1ff.js} +1 -1
- package/dist/mint-components/{p-5450693e.entry.js → p-8139fdec.entry.js} +1 -1
- package/dist/mint-components/{p-320b306b.js → p-8474aa63.js} +1 -1
- package/dist/mint-components/{p-33a6ab09.js → p-857a2d77.js} +1 -1
- package/dist/mint-components/{p-b179621d.system.js → p-86381dc7.system.js} +1 -1
- package/dist/mint-components/{p-e502fd80.entry.js → p-86a70151.entry.js} +1 -1
- package/dist/mint-components/{p-a30f0ffd.entry.js → p-886fb141.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc53c9.entry.js → p-88c9cc1b.entry.js} +1 -1
- package/dist/mint-components/{p-97b8c481.js → p-896390f9.js} +1 -1
- package/dist/mint-components/p-8d5db0d5.entry.js +105 -0
- package/dist/mint-components/{p-fca34d77.js → p-8f9c1387.js} +1 -1
- package/dist/mint-components/{p-44afc747.entry.js → p-93c5c8ec.entry.js} +1 -1
- package/dist/mint-components/{p-9c381424.system.entry.js → p-95aaf35a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6fc7569.entry.js → p-96e4e6a4.entry.js} +1 -1
- package/dist/mint-components/{p-ed17e1b8.entry.js → p-991f60fc.entry.js} +1 -1
- package/dist/mint-components/{p-353ab6db.entry.js → p-996eb820.entry.js} +1 -1
- package/dist/mint-components/{p-b8288385.system.entry.js → p-998c989a.system.entry.js} +1 -1
- package/dist/mint-components/p-99b17bca.system.js +1 -0
- package/dist/mint-components/{p-82905fda.system.js → p-9b33e2a7.system.js} +1 -1
- package/dist/mint-components/{p-7767314d.system.entry.js → p-9bd53e4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-89f8ab67.entry.js → p-9c1b0c8b.entry.js} +1 -1
- package/dist/mint-components/{p-07f3b868.entry.js → p-9e43f1eb.entry.js} +1 -1
- package/dist/mint-components/{p-9fa6606e.js → p-a5912b2f.js} +1 -1
- package/dist/mint-components/{p-7a7ebf08.js → p-a7ee6531.js} +1 -1
- package/dist/mint-components/{p-83277c69.system.js → p-a86ce218.system.js} +1 -1
- package/dist/mint-components/{p-d6c1e876.system.js → p-a8ecdc44.system.js} +1 -1
- package/dist/mint-components/{p-f3b21df2.system.js → p-b1b8e629.system.js} +1 -1
- package/dist/mint-components/{p-93cb9438.system.entry.js → p-b297016f.system.entry.js} +1 -1
- package/dist/mint-components/p-b2a99637.system.js +1 -0
- package/dist/mint-components/p-b2bde2f5.entry.js +1 -0
- package/dist/mint-components/{p-d2448c85.system.entry.js → p-b451970a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4da8028d.system.entry.js → p-b5c0bad5.system.entry.js} +1 -1
- package/dist/mint-components/{p-ad017a39.js → p-b5f57914.js} +1 -1
- package/dist/mint-components/{p-80174c14.entry.js → p-b5fed7c6.entry.js} +1 -1
- package/dist/mint-components/{p-c2c01ab5.entry.js → p-ba953c21.entry.js} +1 -1
- package/dist/mint-components/{p-47f594c3.entry.js → p-bba694e4.entry.js} +1 -1
- package/dist/mint-components/{p-d5375baf.js → p-bcadd021.js} +1 -1
- package/dist/mint-components/{p-79854479.system.js → p-be63f29b.system.js} +1 -1
- package/dist/mint-components/p-bfbfde38.entry.js +33 -0
- package/dist/mint-components/p-c68c2331.js +1 -0
- package/dist/mint-components/{p-07da0ddd.system.entry.js → p-c7535e70.system.entry.js} +1 -1
- package/dist/mint-components/{p-d42aba0e.system.js → p-c84a2512.system.js} +1 -1
- package/dist/mint-components/{p-55b1be64.system.entry.js → p-c8e45671.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5e8e13e.js → p-ce11858c.js} +1 -1
- package/dist/mint-components/{p-1d450b85.js → p-d20188db.js} +1 -1
- package/dist/mint-components/{p-e4d3b7a9.system.js → p-d355336b.system.js} +1 -1
- package/dist/mint-components/{p-5822a43f.system.entry.js → p-d5a1c979.system.entry.js} +1 -1
- package/dist/mint-components/p-d6714617.entry.js +1 -0
- package/dist/mint-components/{p-5e106c95.system.js → p-d798004f.system.js} +1 -1
- package/dist/mint-components/p-dac1f2cb.system.entry.js +1 -0
- package/dist/mint-components/{p-7333d103.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
- package/dist/mint-components/{p-c756bc32.system.js → p-e4dbca9a.system.js} +1 -1
- package/dist/mint-components/{p-7c0255ad.entry.js → p-e5ee6cf5.entry.js} +2 -2
- package/dist/mint-components/{p-8f5b316e.js → p-e95402dc.js} +1 -1
- package/dist/mint-components/{p-0a900fb1.system.entry.js → p-e9e05970.system.entry.js} +1 -1
- package/dist/mint-components/{p-3dc1e209.system.js → p-eaf5d0af.system.js} +1 -1
- package/dist/mint-components/{p-84866680.entry.js → p-f11d29fd.entry.js} +1 -1
- package/dist/mint-components/{p-dece706f.js → p-f18a6658.js} +1 -1
- package/dist/mint-components/{p-06ca4346.entry.js → p-f4a57aed.entry.js} +1 -1
- package/dist/mint-components/{p-2e2c5ec4.entry.js → p-f972e5c9.entry.js} +1 -1
- package/dist/mint-components/p-fa3d7e53.entry.js +291 -0
- package/dist/mint-components/{p-91c4b8d5.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
- package/dist/mint-components/sqm-widget-verification.entry.js +356 -0
- package/dist/mint-components/sqm-widget-verification.system.entry.js +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +15 -2
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +73 -0
- package/dist/types/components.d.ts +173 -3
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/extractProps-e9c55ba8.js +0 -35
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-77c231af.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-1b0d7020.js +0 -1
- package/dist/mint-components/p-2c0bb139.entry.js +0 -33
- package/dist/mint-components/p-35724e1c.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-470f7c0f.system.entry.js +0 -1
- package/dist/mint-components/p-4afbeea5.entry.js +0 -16
- package/dist/mint-components/p-4b365f1f.system.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-66c070e2.entry.js +0 -105
- package/dist/mint-components/p-6e6f19ea.system.entry.js +0 -1
- package/dist/mint-components/p-71c585b7.entry.js +0 -1
- package/dist/mint-components/p-78909fc0.system.js +0 -1
- package/dist/mint-components/p-a9855b29.system.entry.js +0 -1
- package/dist/mint-components/p-e44c816e.system.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-e6924adb.entry.js +0 -273
- package/dist/mint-components/p-e9a596d6.system.entry.js +0 -1
|
@@ -7,6 +7,7 @@ import { getProps } from "../../utils/utils";
|
|
|
7
7
|
import { extractProps } from "../tax-and-cash/sqm-tax-and-cash/extractProps";
|
|
8
8
|
import { SHOW_CODE_NAMESPACE, VERIFICATION_EMAIL_NAMESPACE, VERIFICATION_PARENT_NAMESPACE, } from "./keys";
|
|
9
9
|
import { useWidgetVerification } from "./useWidgetVerification";
|
|
10
|
+
import { createStyleSheet } from "../../styling/JSS";
|
|
10
11
|
/**
|
|
11
12
|
* @uiName Widget Verification Flow
|
|
12
13
|
* @exampleGroup Widget Verification
|
|
@@ -14,7 +15,7 @@ import { useWidgetVerification } from "./useWidgetVerification";
|
|
|
14
15
|
*/
|
|
15
16
|
export class WidgetVerification {
|
|
16
17
|
constructor() {
|
|
17
|
-
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
|
|
18
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
18
19
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
19
20
|
GENERAL PROPS
|
|
20
21
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -62,7 +63,7 @@ export class WidgetVerification {
|
|
|
62
63
|
*/
|
|
63
64
|
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
64
65
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
65
|
-
|
|
66
|
+
CODE STEP PROPS
|
|
66
67
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
67
68
|
/**
|
|
68
69
|
* @uiName Verify code widget header text
|
|
@@ -109,10 +110,86 @@ export class WidgetVerification {
|
|
|
109
110
|
* @uiGroup Code Verification Step
|
|
110
111
|
*/
|
|
111
112
|
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
113
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
114
|
+
PARTNER CREATION STEP PROPS
|
|
115
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
116
|
+
/**
|
|
117
|
+
* @uiName New partner header
|
|
118
|
+
* @uiGroup Partner Creation Step
|
|
119
|
+
* @uiWidget textArea
|
|
120
|
+
*/
|
|
121
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
122
|
+
/**
|
|
123
|
+
* @uiName Existing partner header
|
|
124
|
+
* @uiGroup Partner Creation Step
|
|
125
|
+
* @uiWidget textArea
|
|
126
|
+
*/
|
|
127
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
128
|
+
/**
|
|
129
|
+
* @uiName New partner description
|
|
130
|
+
* @uiGroup Partner Creation Step
|
|
131
|
+
* @uiWidget textArea
|
|
132
|
+
*/
|
|
133
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
134
|
+
/**
|
|
135
|
+
* @uiName Existing partner description
|
|
136
|
+
* @uiGroup Partner Creation Step
|
|
137
|
+
* @uiWidget textArea
|
|
138
|
+
*/
|
|
139
|
+
this.createPartnerStep_descriptionExistingPartner = "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.";
|
|
140
|
+
/**
|
|
141
|
+
* @uiName Existing partner support description
|
|
142
|
+
* @uiGroup Partner Creation Step
|
|
143
|
+
* @uiWidget textArea
|
|
144
|
+
*/
|
|
145
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
146
|
+
/**
|
|
147
|
+
* @uiName Country label
|
|
148
|
+
* @uiGroup Partner Creation Step
|
|
149
|
+
*/
|
|
150
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
151
|
+
/**
|
|
152
|
+
* @uiName Currency label
|
|
153
|
+
* @uiGroup Partner Creation Step
|
|
154
|
+
*/
|
|
155
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
156
|
+
/**
|
|
157
|
+
* @uiName Submit button label
|
|
158
|
+
* @uiGroup Partner Creation Step
|
|
159
|
+
*/
|
|
160
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
161
|
+
/**
|
|
162
|
+
* @uiName Confirm button label
|
|
163
|
+
* @uiGroup Partner Creation Step
|
|
164
|
+
*/
|
|
165
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
166
|
+
/**
|
|
167
|
+
* @uiName Search country placeholder
|
|
168
|
+
* @uiGroup Partner Creation Step
|
|
169
|
+
*/
|
|
170
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
171
|
+
/**
|
|
172
|
+
* @uiName Search currency placeholder
|
|
173
|
+
* @uiGroup Partner Creation Step
|
|
174
|
+
*/
|
|
175
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
176
|
+
/**
|
|
177
|
+
* @uiName Network error text
|
|
178
|
+
* @uiGroup Partner Creation Step
|
|
179
|
+
* @uiWidget textArea
|
|
180
|
+
*/
|
|
181
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
182
|
+
/**
|
|
183
|
+
* @uiName Missing fields error text
|
|
184
|
+
* @uiGroup Partner Creation Step
|
|
185
|
+
* @uiWidget textArea
|
|
186
|
+
*/
|
|
187
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
112
188
|
/**
|
|
113
189
|
* @undocumented
|
|
114
190
|
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
115
191
|
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
192
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
116
193
|
*/
|
|
117
194
|
this.stateController = "{}";
|
|
118
195
|
withHooks(this);
|
|
@@ -128,18 +205,60 @@ export class WidgetVerification {
|
|
|
128
205
|
: useWidgetVerification();
|
|
129
206
|
if (props.loading)
|
|
130
207
|
return h("sl-spinner", null);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
208
|
+
const style = {
|
|
209
|
+
Dialog: {
|
|
210
|
+
"&::part(panel)": {
|
|
211
|
+
maxWidth: "480px",
|
|
212
|
+
},
|
|
213
|
+
"&::part(title)": {
|
|
214
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
215
|
+
fontWeight: "600",
|
|
216
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
217
|
+
},
|
|
218
|
+
"&::part(body)": {
|
|
219
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
220
|
+
fontSize: "var(--sl-font-size-small)",
|
|
221
|
+
overflow: "visible",
|
|
222
|
+
},
|
|
223
|
+
"&::part(footer)": {
|
|
224
|
+
display: "flex",
|
|
225
|
+
flexDirection: "column",
|
|
226
|
+
gap: "var(--sl-spacing-small)",
|
|
227
|
+
},
|
|
228
|
+
"&::part(overlay)": {
|
|
229
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
230
|
+
},
|
|
231
|
+
"&::part(close-button)": {
|
|
232
|
+
display: "none",
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
const sheet = createStyleSheet(style);
|
|
237
|
+
const styleString = sheet.toString();
|
|
134
238
|
const generalText = this.getStepTextProps("general_");
|
|
239
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
240
|
+
const dialogLabel = props.showPartnerModal
|
|
241
|
+
? partnerText.modalHeader
|
|
242
|
+
: generalText.verifyEmailHeader;
|
|
243
|
+
const renderStepContent = () => {
|
|
244
|
+
if (props.showPartnerModal) {
|
|
245
|
+
return (h("sqm-partner-info-modal", Object.assign({ embedded: true }, partnerText)));
|
|
246
|
+
}
|
|
247
|
+
if (props.showCode) {
|
|
248
|
+
return (h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
249
|
+
}
|
|
250
|
+
return (h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
251
|
+
};
|
|
135
252
|
return (h("div", null,
|
|
136
|
-
h("
|
|
137
|
-
h("
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
253
|
+
h("style", { type: "text/css" }, styleString),
|
|
254
|
+
h("sl-dialog", { class: sheet.classes.Dialog, noHeader: false, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
255
|
+
e.preventDefault();
|
|
256
|
+
}, "onSl-hide": (e) => {
|
|
257
|
+
var _a;
|
|
258
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
259
|
+
e.preventDefault();
|
|
260
|
+
}
|
|
261
|
+
} }, renderStepContent())));
|
|
143
262
|
}
|
|
144
263
|
static get is() { return "sqm-widget-verification"; }
|
|
145
264
|
static get encapsulation() { return "shadow"; }
|
|
@@ -528,6 +647,339 @@ export class WidgetVerification {
|
|
|
528
647
|
"reflect": false,
|
|
529
648
|
"defaultValue": "\"An error occurred while verifying your email. Please refresh the page and try again.\""
|
|
530
649
|
},
|
|
650
|
+
"createPartnerStep_modalHeader": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"mutable": false,
|
|
653
|
+
"complexType": {
|
|
654
|
+
"original": "string",
|
|
655
|
+
"resolved": "string",
|
|
656
|
+
"references": {}
|
|
657
|
+
},
|
|
658
|
+
"required": false,
|
|
659
|
+
"optional": false,
|
|
660
|
+
"docs": {
|
|
661
|
+
"tags": [{
|
|
662
|
+
"text": "New partner header",
|
|
663
|
+
"name": "uiName"
|
|
664
|
+
}, {
|
|
665
|
+
"text": "Partner Creation Step",
|
|
666
|
+
"name": "uiGroup"
|
|
667
|
+
}, {
|
|
668
|
+
"text": "textArea",
|
|
669
|
+
"name": "uiWidget"
|
|
670
|
+
}],
|
|
671
|
+
"text": ""
|
|
672
|
+
},
|
|
673
|
+
"attribute": "create-partner-step_modal-header",
|
|
674
|
+
"reflect": false,
|
|
675
|
+
"defaultValue": "\"Let's get you ready for rewards\""
|
|
676
|
+
},
|
|
677
|
+
"createPartnerStep_modalHeaderExistingPartner": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"mutable": false,
|
|
680
|
+
"complexType": {
|
|
681
|
+
"original": "string",
|
|
682
|
+
"resolved": "string",
|
|
683
|
+
"references": {}
|
|
684
|
+
},
|
|
685
|
+
"required": false,
|
|
686
|
+
"optional": false,
|
|
687
|
+
"docs": {
|
|
688
|
+
"tags": [{
|
|
689
|
+
"text": "Existing partner header",
|
|
690
|
+
"name": "uiName"
|
|
691
|
+
}, {
|
|
692
|
+
"text": "Partner Creation Step",
|
|
693
|
+
"name": "uiGroup"
|
|
694
|
+
}, {
|
|
695
|
+
"text": "textArea",
|
|
696
|
+
"name": "uiWidget"
|
|
697
|
+
}],
|
|
698
|
+
"text": ""
|
|
699
|
+
},
|
|
700
|
+
"attribute": "create-partner-step_modal-header-existing-partner",
|
|
701
|
+
"reflect": false,
|
|
702
|
+
"defaultValue": "\"We found an existing account\""
|
|
703
|
+
},
|
|
704
|
+
"createPartnerStep_descriptionNewPartner": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"mutable": false,
|
|
707
|
+
"complexType": {
|
|
708
|
+
"original": "string",
|
|
709
|
+
"resolved": "string",
|
|
710
|
+
"references": {}
|
|
711
|
+
},
|
|
712
|
+
"required": false,
|
|
713
|
+
"optional": false,
|
|
714
|
+
"docs": {
|
|
715
|
+
"tags": [{
|
|
716
|
+
"text": "New partner description",
|
|
717
|
+
"name": "uiName"
|
|
718
|
+
}, {
|
|
719
|
+
"text": "Partner Creation Step",
|
|
720
|
+
"name": "uiGroup"
|
|
721
|
+
}, {
|
|
722
|
+
"text": "textArea",
|
|
723
|
+
"name": "uiWidget"
|
|
724
|
+
}],
|
|
725
|
+
"text": ""
|
|
726
|
+
},
|
|
727
|
+
"attribute": "create-partner-step_description-new-partner",
|
|
728
|
+
"reflect": false,
|
|
729
|
+
"defaultValue": "\"Confirm your country and currency now to get your future rewards faster.\""
|
|
730
|
+
},
|
|
731
|
+
"createPartnerStep_descriptionExistingPartner": {
|
|
732
|
+
"type": "string",
|
|
733
|
+
"mutable": false,
|
|
734
|
+
"complexType": {
|
|
735
|
+
"original": "string",
|
|
736
|
+
"resolved": "string",
|
|
737
|
+
"references": {}
|
|
738
|
+
},
|
|
739
|
+
"required": false,
|
|
740
|
+
"optional": false,
|
|
741
|
+
"docs": {
|
|
742
|
+
"tags": [{
|
|
743
|
+
"text": "Existing partner description",
|
|
744
|
+
"name": "uiName"
|
|
745
|
+
}, {
|
|
746
|
+
"text": "Partner Creation Step",
|
|
747
|
+
"name": "uiGroup"
|
|
748
|
+
}, {
|
|
749
|
+
"text": "textArea",
|
|
750
|
+
"name": "uiWidget"
|
|
751
|
+
}],
|
|
752
|
+
"text": ""
|
|
753
|
+
},
|
|
754
|
+
"attribute": "create-partner-step_description-existing-partner",
|
|
755
|
+
"reflect": false,
|
|
756
|
+
"defaultValue": "\"We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.\""
|
|
757
|
+
},
|
|
758
|
+
"createPartnerStep_supportDescriptionExistingPartner": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"mutable": false,
|
|
761
|
+
"complexType": {
|
|
762
|
+
"original": "string",
|
|
763
|
+
"resolved": "string",
|
|
764
|
+
"references": {}
|
|
765
|
+
},
|
|
766
|
+
"required": false,
|
|
767
|
+
"optional": false,
|
|
768
|
+
"docs": {
|
|
769
|
+
"tags": [{
|
|
770
|
+
"text": "Existing partner support description",
|
|
771
|
+
"name": "uiName"
|
|
772
|
+
}, {
|
|
773
|
+
"text": "Partner Creation Step",
|
|
774
|
+
"name": "uiGroup"
|
|
775
|
+
}, {
|
|
776
|
+
"text": "textArea",
|
|
777
|
+
"name": "uiWidget"
|
|
778
|
+
}],
|
|
779
|
+
"text": ""
|
|
780
|
+
},
|
|
781
|
+
"attribute": "create-partner-step_support-description-existing-partner",
|
|
782
|
+
"reflect": false,
|
|
783
|
+
"defaultValue": "\"If this is a mistake, please contact Support or sign up for this referral program with a different email.\""
|
|
784
|
+
},
|
|
785
|
+
"createPartnerStep_countryLabel": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"mutable": false,
|
|
788
|
+
"complexType": {
|
|
789
|
+
"original": "string",
|
|
790
|
+
"resolved": "string",
|
|
791
|
+
"references": {}
|
|
792
|
+
},
|
|
793
|
+
"required": false,
|
|
794
|
+
"optional": false,
|
|
795
|
+
"docs": {
|
|
796
|
+
"tags": [{
|
|
797
|
+
"text": "Country label",
|
|
798
|
+
"name": "uiName"
|
|
799
|
+
}, {
|
|
800
|
+
"text": "Partner Creation Step",
|
|
801
|
+
"name": "uiGroup"
|
|
802
|
+
}],
|
|
803
|
+
"text": ""
|
|
804
|
+
},
|
|
805
|
+
"attribute": "create-partner-step_country-label",
|
|
806
|
+
"reflect": false,
|
|
807
|
+
"defaultValue": "\"Country\""
|
|
808
|
+
},
|
|
809
|
+
"createPartnerStep_currencyLabel": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"mutable": false,
|
|
812
|
+
"complexType": {
|
|
813
|
+
"original": "string",
|
|
814
|
+
"resolved": "string",
|
|
815
|
+
"references": {}
|
|
816
|
+
},
|
|
817
|
+
"required": false,
|
|
818
|
+
"optional": false,
|
|
819
|
+
"docs": {
|
|
820
|
+
"tags": [{
|
|
821
|
+
"text": "Currency label",
|
|
822
|
+
"name": "uiName"
|
|
823
|
+
}, {
|
|
824
|
+
"text": "Partner Creation Step",
|
|
825
|
+
"name": "uiGroup"
|
|
826
|
+
}],
|
|
827
|
+
"text": ""
|
|
828
|
+
},
|
|
829
|
+
"attribute": "create-partner-step_currency-label",
|
|
830
|
+
"reflect": false,
|
|
831
|
+
"defaultValue": "\"Currency\""
|
|
832
|
+
},
|
|
833
|
+
"createPartnerStep_submitButtonLabel": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"mutable": false,
|
|
836
|
+
"complexType": {
|
|
837
|
+
"original": "string",
|
|
838
|
+
"resolved": "string",
|
|
839
|
+
"references": {}
|
|
840
|
+
},
|
|
841
|
+
"required": false,
|
|
842
|
+
"optional": false,
|
|
843
|
+
"docs": {
|
|
844
|
+
"tags": [{
|
|
845
|
+
"text": "Submit button label",
|
|
846
|
+
"name": "uiName"
|
|
847
|
+
}, {
|
|
848
|
+
"text": "Partner Creation Step",
|
|
849
|
+
"name": "uiGroup"
|
|
850
|
+
}],
|
|
851
|
+
"text": ""
|
|
852
|
+
},
|
|
853
|
+
"attribute": "create-partner-step_submit-button-label",
|
|
854
|
+
"reflect": false,
|
|
855
|
+
"defaultValue": "\"Submit\""
|
|
856
|
+
},
|
|
857
|
+
"createPartnerStep_confirmButtonLabel": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"mutable": false,
|
|
860
|
+
"complexType": {
|
|
861
|
+
"original": "string",
|
|
862
|
+
"resolved": "string",
|
|
863
|
+
"references": {}
|
|
864
|
+
},
|
|
865
|
+
"required": false,
|
|
866
|
+
"optional": false,
|
|
867
|
+
"docs": {
|
|
868
|
+
"tags": [{
|
|
869
|
+
"text": "Confirm button label",
|
|
870
|
+
"name": "uiName"
|
|
871
|
+
}, {
|
|
872
|
+
"text": "Partner Creation Step",
|
|
873
|
+
"name": "uiGroup"
|
|
874
|
+
}],
|
|
875
|
+
"text": ""
|
|
876
|
+
},
|
|
877
|
+
"attribute": "create-partner-step_confirm-button-label",
|
|
878
|
+
"reflect": false,
|
|
879
|
+
"defaultValue": "\"Confirm\""
|
|
880
|
+
},
|
|
881
|
+
"createPartnerStep_searchCountryPlaceholder": {
|
|
882
|
+
"type": "string",
|
|
883
|
+
"mutable": false,
|
|
884
|
+
"complexType": {
|
|
885
|
+
"original": "string",
|
|
886
|
+
"resolved": "string",
|
|
887
|
+
"references": {}
|
|
888
|
+
},
|
|
889
|
+
"required": false,
|
|
890
|
+
"optional": false,
|
|
891
|
+
"docs": {
|
|
892
|
+
"tags": [{
|
|
893
|
+
"text": "Search country placeholder",
|
|
894
|
+
"name": "uiName"
|
|
895
|
+
}, {
|
|
896
|
+
"text": "Partner Creation Step",
|
|
897
|
+
"name": "uiGroup"
|
|
898
|
+
}],
|
|
899
|
+
"text": ""
|
|
900
|
+
},
|
|
901
|
+
"attribute": "create-partner-step_search-country-placeholder",
|
|
902
|
+
"reflect": false,
|
|
903
|
+
"defaultValue": "\"Search for a country\""
|
|
904
|
+
},
|
|
905
|
+
"createPartnerStep_searchCurrencyPlaceholder": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"mutable": false,
|
|
908
|
+
"complexType": {
|
|
909
|
+
"original": "string",
|
|
910
|
+
"resolved": "string",
|
|
911
|
+
"references": {}
|
|
912
|
+
},
|
|
913
|
+
"required": false,
|
|
914
|
+
"optional": false,
|
|
915
|
+
"docs": {
|
|
916
|
+
"tags": [{
|
|
917
|
+
"text": "Search currency placeholder",
|
|
918
|
+
"name": "uiName"
|
|
919
|
+
}, {
|
|
920
|
+
"text": "Partner Creation Step",
|
|
921
|
+
"name": "uiGroup"
|
|
922
|
+
}],
|
|
923
|
+
"text": ""
|
|
924
|
+
},
|
|
925
|
+
"attribute": "create-partner-step_search-currency-placeholder",
|
|
926
|
+
"reflect": false,
|
|
927
|
+
"defaultValue": "\"Search for a currency\""
|
|
928
|
+
},
|
|
929
|
+
"createPartnerStep_networkErrorText": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"mutable": false,
|
|
932
|
+
"complexType": {
|
|
933
|
+
"original": "string",
|
|
934
|
+
"resolved": "string",
|
|
935
|
+
"references": {}
|
|
936
|
+
},
|
|
937
|
+
"required": false,
|
|
938
|
+
"optional": false,
|
|
939
|
+
"docs": {
|
|
940
|
+
"tags": [{
|
|
941
|
+
"text": "Network error text",
|
|
942
|
+
"name": "uiName"
|
|
943
|
+
}, {
|
|
944
|
+
"text": "Partner Creation Step",
|
|
945
|
+
"name": "uiGroup"
|
|
946
|
+
}, {
|
|
947
|
+
"text": "textArea",
|
|
948
|
+
"name": "uiWidget"
|
|
949
|
+
}],
|
|
950
|
+
"text": ""
|
|
951
|
+
},
|
|
952
|
+
"attribute": "create-partner-step_network-error-text",
|
|
953
|
+
"reflect": false,
|
|
954
|
+
"defaultValue": "\"An error occurred. Please try again.\""
|
|
955
|
+
},
|
|
956
|
+
"createPartnerStep_missingFieldsErrorText": {
|
|
957
|
+
"type": "string",
|
|
958
|
+
"mutable": false,
|
|
959
|
+
"complexType": {
|
|
960
|
+
"original": "string",
|
|
961
|
+
"resolved": "string",
|
|
962
|
+
"references": {}
|
|
963
|
+
},
|
|
964
|
+
"required": false,
|
|
965
|
+
"optional": false,
|
|
966
|
+
"docs": {
|
|
967
|
+
"tags": [{
|
|
968
|
+
"text": "Missing fields error text",
|
|
969
|
+
"name": "uiName"
|
|
970
|
+
}, {
|
|
971
|
+
"text": "Partner Creation Step",
|
|
972
|
+
"name": "uiGroup"
|
|
973
|
+
}, {
|
|
974
|
+
"text": "textArea",
|
|
975
|
+
"name": "uiWidget"
|
|
976
|
+
}],
|
|
977
|
+
"text": ""
|
|
978
|
+
},
|
|
979
|
+
"attribute": "create-partner-step_missing-fields-error-text",
|
|
980
|
+
"reflect": false,
|
|
981
|
+
"defaultValue": "\"Please select both a country and currency.\""
|
|
982
|
+
},
|
|
531
983
|
"stateController": {
|
|
532
984
|
"type": "string",
|
|
533
985
|
"mutable": false,
|
|
@@ -548,6 +1000,9 @@ export class WidgetVerification {
|
|
|
548
1000
|
}, {
|
|
549
1001
|
"text": "{ \"title\": \"Step 2: Enter code\", \"props\": { \"showCode\": true }, \"dependencies\": [\"sqm-code-verification\"], \"uiGroup\": \"Code Verification Step\" }",
|
|
550
1002
|
"name": "componentState"
|
|
1003
|
+
}, {
|
|
1004
|
+
"text": "{ \"title\": \"Step 3: Create Partner\", \"props\": { \"showPartnerModal\": true }, \"dependencies\": [\"sqm-partner-info-modal\"], \"uiGroup\": \"Partner Creation Step\" }",
|
|
1005
|
+
"name": "componentState"
|
|
551
1006
|
}],
|
|
552
1007
|
"text": ""
|
|
553
1008
|
},
|
|
@@ -574,5 +1029,11 @@ function useDemoWidgetVerificationInternal(props) {
|
|
|
574
1029
|
const onVerification = () => {
|
|
575
1030
|
setContext(true);
|
|
576
1031
|
};
|
|
577
|
-
return deepmerge({
|
|
1032
|
+
return deepmerge({
|
|
1033
|
+
showCode,
|
|
1034
|
+
showPartnerModal: false,
|
|
1035
|
+
onVerification,
|
|
1036
|
+
onPartnerModalComplete: () => { },
|
|
1037
|
+
loading: false,
|
|
1038
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
578
1039
|
}
|
|
@@ -15,6 +15,9 @@ const USER_LOOKUP = gql `
|
|
|
15
15
|
email
|
|
16
16
|
emailVerified
|
|
17
17
|
}
|
|
18
|
+
impactConnection {
|
|
19
|
+
connected
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
}
|
|
@@ -35,15 +38,22 @@ export function useWidgetVerification() {
|
|
|
35
38
|
const [fetch] = useLazyQuery(USER_LOOKUP);
|
|
36
39
|
useEffect(() => {
|
|
37
40
|
const checkUser = async () => {
|
|
38
|
-
var _a, _b, _c;
|
|
41
|
+
var _a, _b, _c, _d, _e;
|
|
39
42
|
try {
|
|
40
43
|
const res = await fetch({});
|
|
41
44
|
if (!res || res instanceof Error)
|
|
42
45
|
throw new Error();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
47
|
+
const emailVerified = ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified) || ((_c = (_b = res === null || res === void 0 ? void 0 : res.viewer) === null || _b === void 0 ? void 0 : _b.managedIdentity) === null || _c === void 0 ? void 0 : _c.emailVerified);
|
|
48
|
+
const isConnected = (_e = (_d = res === null || res === void 0 ? void 0 : res.viewer) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.connected;
|
|
49
|
+
if (isConnected) {
|
|
50
|
+
// Partner already created, show widget content
|
|
46
51
|
setContext(true);
|
|
52
|
+
}
|
|
53
|
+
else if (emailVerified) {
|
|
54
|
+
// Email verified but no partner yet, show partner modal
|
|
55
|
+
setShowPartnerModal(true);
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
catch (e) {
|
|
49
59
|
console.error("Could not fetch user information:", e);
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -289,12 +289,12 @@ export const UserInfoFormView = (props) => {
|
|
|
289
289
|
}
|
|
290
290
|
// when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
|
|
291
291
|
function isDisabledPartnerInput(field) {
|
|
292
|
-
var _a;
|
|
293
|
-
if (data.partnerData.phoneNumber === "0000000" &&
|
|
292
|
+
var _a, _b;
|
|
293
|
+
if (((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
|
|
294
294
|
(field === "phoneNumber" || field === "phoneNumberCountryCode")) {
|
|
295
295
|
return false;
|
|
296
296
|
}
|
|
297
|
-
return states.isPartner && !!((
|
|
297
|
+
return states.isPartner && !!((_b = data.partnerData) === null || _b === void 0 ? void 0 : _b[field]);
|
|
298
298
|
}
|
|
299
299
|
function isDisabledUserInput(field) {
|
|
300
300
|
var _a;
|
|
@@ -330,14 +330,6 @@ export const UserInfoFormView = (props) => {
|
|
|
330
330
|
}, {
|
|
331
331
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
332
332
|
})))),
|
|
333
|
-
(states.isPartner || states.isUser) && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
334
|
-
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
335
|
-
h("p", { part: "alert-description" }, intl.formatMessage({
|
|
336
|
-
id: "isPartnerAlertDescription",
|
|
337
|
-
defaultMessage: text.isPartnerAlertDescription,
|
|
338
|
-
}, {
|
|
339
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
340
|
-
})))),
|
|
341
333
|
h("div", null,
|
|
342
334
|
h("div", { class: classes.InputContainer },
|
|
343
335
|
h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-39f55ec2.js';
|
|
3
3
|
import { b as browser, u as useMemo, k as useState } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK } from './index.module-
|
|
4
|
+
import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK } from './index.module-cede12c6.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-
|
|
8
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-3cde72d4.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
|
|
10
10
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
11
11
|
import { T as TextSpanView } from './sqm-text-span-view-738acfb3.js';
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
+
import { u as useChildElements } from './useChildElements-c26d7347.js';
|
|
13
13
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
15
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
16
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
16
|
+
import { a as isValidColor, b as isMobile } from './utilities-c9e730ed.js';
|
|
17
17
|
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-a8c708cd.js';
|
|
18
18
|
|
|
19
19
|
function BigStatView(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
3
|
-
import { d as dist } from './index.module-
|
|
2
|
+
import { i as intl } from './global-39f55ec2.js';
|
|
3
|
+
import { d as dist } from './index.module-cede12c6.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
|
|
6
6
|
const style = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './dom-context-hooks.module-50442785.js';
|
|
2
|
-
import { s as src, m as memoize, U, g as getEnvironmentSDK } from './index.module-
|
|
2
|
+
import { s as src, m as memoize, U, g as getEnvironmentSDK } from './index.module-cede12c6.js';
|
|
3
3
|
|
|
4
4
|
/* @generated */
|
|
5
5
|
// prettier-ignore
|