@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
package/dist/cjs/{sqm-user-info-form-view-efa08934.js → sqm-user-info-form-view-923ff8d9.js}
RENAMED
|
@@ -1907,12 +1907,12 @@ const UserInfoFormView = (props) => {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
// when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
|
|
1909
1909
|
function isDisabledPartnerInput(field) {
|
|
1910
|
-
var _a;
|
|
1911
|
-
if (data$1.partnerData.phoneNumber === "0000000" &&
|
|
1910
|
+
var _a, _b;
|
|
1911
|
+
if (((_a = data$1.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
|
|
1912
1912
|
(field === "phoneNumber" || field === "phoneNumberCountryCode")) {
|
|
1913
1913
|
return false;
|
|
1914
1914
|
}
|
|
1915
|
-
return states.isPartner && !!((
|
|
1915
|
+
return states.isPartner && !!((_b = data$1.partnerData) === null || _b === void 0 ? void 0 : _b[field]);
|
|
1916
1916
|
}
|
|
1917
1917
|
function isDisabledUserInput(field) {
|
|
1918
1918
|
var _a;
|
|
@@ -1948,14 +1948,6 @@ const UserInfoFormView = (props) => {
|
|
|
1948
1948
|
}, {
|
|
1949
1949
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1950
1950
|
})))),
|
|
1951
|
-
(states.isPartner || states.isUser) && (index.h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
1952
|
-
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
1953
|
-
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
1954
|
-
id: "isPartnerAlertDescription",
|
|
1955
|
-
defaultMessage: text.isPartnerAlertDescription,
|
|
1956
|
-
}, {
|
|
1957
|
-
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1958
|
-
})))),
|
|
1959
1951
|
index.h("div", null,
|
|
1960
1952
|
index.h("div", { class: classes.InputContainer },
|
|
1961
1953
|
index.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) ? {
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const domContextHooks_module = require('./dom-context-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
5
|
+
const index = require('./index-fd67d7bc.js');
|
|
6
|
+
const domContextHooks_module = require('./dom-context-hooks.module-224e09d4.js');
|
|
7
|
+
const index_module = require('./index.module-c79bd5b0.js');
|
|
8
|
+
require('./jss-preset-default.esm-b48f0c33.js');
|
|
9
|
+
const JSS = require('./JSS-518e9b4d.js');
|
|
10
|
+
const utils = require('./utils-e326d1b5.js');
|
|
11
|
+
const cjs = require('./cjs-2bf512b9.js');
|
|
11
12
|
const keys = require('./keys-cff24974.js');
|
|
13
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
14
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
12
15
|
|
|
13
16
|
const USER_LOOKUP = index_module.dist.gql `
|
|
14
17
|
query checkUserVerification {
|
|
@@ -22,6 +25,9 @@ const USER_LOOKUP = index_module.dist.gql `
|
|
|
22
25
|
email
|
|
23
26
|
emailVerified
|
|
24
27
|
}
|
|
28
|
+
impactConnection {
|
|
29
|
+
connected
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
}
|
|
@@ -42,15 +48,22 @@ function useWidgetVerification() {
|
|
|
42
48
|
const [fetch] = index_module.Xe(USER_LOOKUP);
|
|
43
49
|
domContextHooks_module.useEffect(() => {
|
|
44
50
|
const checkUser = async () => {
|
|
45
|
-
var _a, _b, _c;
|
|
51
|
+
var _a, _b, _c, _d, _e;
|
|
46
52
|
try {
|
|
47
53
|
const res = await fetch({});
|
|
48
54
|
if (!res || res instanceof Error)
|
|
49
55
|
throw new Error();
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
57
|
+
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);
|
|
58
|
+
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;
|
|
59
|
+
if (isConnected) {
|
|
60
|
+
// Partner already created, show widget content
|
|
53
61
|
setContext(true);
|
|
62
|
+
}
|
|
63
|
+
else if (emailVerified) {
|
|
64
|
+
// Email verified but no partner yet, show partner modal
|
|
65
|
+
setShowPartnerModal(true);
|
|
66
|
+
}
|
|
54
67
|
}
|
|
55
68
|
catch (e) {
|
|
56
69
|
console.error("Could not fetch user information:", e);
|
|
@@ -74,7 +87,7 @@ function useWidgetVerification() {
|
|
|
74
87
|
const WidgetVerification = class {
|
|
75
88
|
constructor(hostRef) {
|
|
76
89
|
index.registerInstance(this, hostRef);
|
|
77
|
-
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
|
|
90
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
78
91
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
79
92
|
GENERAL PROPS
|
|
80
93
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -122,7 +135,7 @@ const WidgetVerification = class {
|
|
|
122
135
|
*/
|
|
123
136
|
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
124
137
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
125
|
-
|
|
138
|
+
CODE STEP PROPS
|
|
126
139
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
127
140
|
/**
|
|
128
141
|
* @uiName Verify code widget header text
|
|
@@ -169,10 +182,86 @@ const WidgetVerification = class {
|
|
|
169
182
|
* @uiGroup Code Verification Step
|
|
170
183
|
*/
|
|
171
184
|
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
185
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
186
|
+
PARTNER CREATION STEP PROPS
|
|
187
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
188
|
+
/**
|
|
189
|
+
* @uiName New partner header
|
|
190
|
+
* @uiGroup Partner Creation Step
|
|
191
|
+
* @uiWidget textArea
|
|
192
|
+
*/
|
|
193
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
194
|
+
/**
|
|
195
|
+
* @uiName Existing partner header
|
|
196
|
+
* @uiGroup Partner Creation Step
|
|
197
|
+
* @uiWidget textArea
|
|
198
|
+
*/
|
|
199
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
200
|
+
/**
|
|
201
|
+
* @uiName New partner description
|
|
202
|
+
* @uiGroup Partner Creation Step
|
|
203
|
+
* @uiWidget textArea
|
|
204
|
+
*/
|
|
205
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
206
|
+
/**
|
|
207
|
+
* @uiName Existing partner description
|
|
208
|
+
* @uiGroup Partner Creation Step
|
|
209
|
+
* @uiWidget textArea
|
|
210
|
+
*/
|
|
211
|
+
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.";
|
|
212
|
+
/**
|
|
213
|
+
* @uiName Existing partner support description
|
|
214
|
+
* @uiGroup Partner Creation Step
|
|
215
|
+
* @uiWidget textArea
|
|
216
|
+
*/
|
|
217
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
218
|
+
/**
|
|
219
|
+
* @uiName Country label
|
|
220
|
+
* @uiGroup Partner Creation Step
|
|
221
|
+
*/
|
|
222
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
223
|
+
/**
|
|
224
|
+
* @uiName Currency label
|
|
225
|
+
* @uiGroup Partner Creation Step
|
|
226
|
+
*/
|
|
227
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
228
|
+
/**
|
|
229
|
+
* @uiName Submit button label
|
|
230
|
+
* @uiGroup Partner Creation Step
|
|
231
|
+
*/
|
|
232
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
233
|
+
/**
|
|
234
|
+
* @uiName Confirm button label
|
|
235
|
+
* @uiGroup Partner Creation Step
|
|
236
|
+
*/
|
|
237
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
238
|
+
/**
|
|
239
|
+
* @uiName Search country placeholder
|
|
240
|
+
* @uiGroup Partner Creation Step
|
|
241
|
+
*/
|
|
242
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
243
|
+
/**
|
|
244
|
+
* @uiName Search currency placeholder
|
|
245
|
+
* @uiGroup Partner Creation Step
|
|
246
|
+
*/
|
|
247
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
248
|
+
/**
|
|
249
|
+
* @uiName Network error text
|
|
250
|
+
* @uiGroup Partner Creation Step
|
|
251
|
+
* @uiWidget textArea
|
|
252
|
+
*/
|
|
253
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
254
|
+
/**
|
|
255
|
+
* @uiName Missing fields error text
|
|
256
|
+
* @uiGroup Partner Creation Step
|
|
257
|
+
* @uiWidget textArea
|
|
258
|
+
*/
|
|
259
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
172
260
|
/**
|
|
173
261
|
* @undocumented
|
|
174
262
|
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
175
263
|
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
264
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
176
265
|
*/
|
|
177
266
|
this.stateController = "{}";
|
|
178
267
|
domContextHooks_module.h$1(this);
|
|
@@ -188,15 +277,58 @@ const WidgetVerification = class {
|
|
|
188
277
|
: useWidgetVerification();
|
|
189
278
|
if (props.loading)
|
|
190
279
|
return index.h("sl-spinner", null);
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
280
|
+
const style = {
|
|
281
|
+
Dialog: {
|
|
282
|
+
"&::part(panel)": {
|
|
283
|
+
maxWidth: "480px",
|
|
284
|
+
},
|
|
285
|
+
"&::part(title)": {
|
|
286
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
287
|
+
fontWeight: "600",
|
|
288
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
289
|
+
},
|
|
290
|
+
"&::part(body)": {
|
|
291
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
292
|
+
fontSize: "var(--sl-font-size-small)",
|
|
293
|
+
overflow: "visible",
|
|
294
|
+
},
|
|
295
|
+
"&::part(footer)": {
|
|
296
|
+
display: "flex",
|
|
297
|
+
flexDirection: "column",
|
|
298
|
+
gap: "var(--sl-spacing-small)",
|
|
299
|
+
},
|
|
300
|
+
"&::part(overlay)": {
|
|
301
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
302
|
+
},
|
|
303
|
+
"&::part(close-button)": {
|
|
304
|
+
display: "none",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
const sheet = JSS.createStyleSheet(style);
|
|
309
|
+
const styleString = sheet.toString();
|
|
194
310
|
const generalText = this.getStepTextProps("general_");
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
311
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
312
|
+
const dialogLabel = props.showPartnerModal
|
|
313
|
+
? partnerText.modalHeader
|
|
314
|
+
: generalText.verifyEmailHeader;
|
|
315
|
+
const renderStepContent = () => {
|
|
316
|
+
if (props.showPartnerModal) {
|
|
317
|
+
return (index.h("sqm-partner-info-modal", Object.assign({ embedded: true }, partnerText)));
|
|
318
|
+
}
|
|
319
|
+
if (props.showCode) {
|
|
320
|
+
return (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps.extractProps(props, "sqm-code-verification_"))));
|
|
321
|
+
}
|
|
322
|
+
return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps.extractProps(props, "sqm-email-verification_"))));
|
|
323
|
+
};
|
|
324
|
+
return (index.h("div", null, index.h("style", { type: "text/css" }, styleString), index.h("sl-dialog", { class: sheet.classes.Dialog, noHeader: false, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
325
|
+
e.preventDefault();
|
|
326
|
+
}, "onSl-hide": (e) => {
|
|
327
|
+
var _a;
|
|
328
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
329
|
+
e.preventDefault();
|
|
330
|
+
}
|
|
331
|
+
} }, renderStepContent())));
|
|
200
332
|
}
|
|
201
333
|
};
|
|
202
334
|
function useDemoWidgetVerificationInternal(props) {
|
|
@@ -209,14 +341,20 @@ function useDemoWidgetVerificationInternal(props) {
|
|
|
209
341
|
initialValue: undefined,
|
|
210
342
|
});
|
|
211
343
|
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
212
|
-
const states =
|
|
344
|
+
const states = parseStates.parseStates(props.stateController);
|
|
213
345
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
214
346
|
? { ...prev, ...states[key] }
|
|
215
347
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
216
348
|
const onVerification = () => {
|
|
217
349
|
setContext(true);
|
|
218
350
|
};
|
|
219
|
-
return cjs.cjs({
|
|
351
|
+
return cjs.cjs({
|
|
352
|
+
showCode,
|
|
353
|
+
showPartnerModal: false,
|
|
354
|
+
onVerification,
|
|
355
|
+
onPartnerModalComplete: () => { },
|
|
356
|
+
loading: false,
|
|
357
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
220
358
|
}
|
|
221
359
|
|
|
222
360
|
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"./components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js",
|
|
6
6
|
"./components/sqm-referral-codes/sqm-referral-codes.js",
|
|
7
7
|
"./components/sqm-pagination/sqm-pagination.js",
|
|
8
|
+
"./components/sqm-partner-info-modal/sqm-partner-info-modal.js",
|
|
8
9
|
"./components/sqm-password-field/sqm-password-field.js",
|
|
9
10
|
"./components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js",
|
|
10
11
|
"./components/sqm-referral-table/sqm-referral-table.js",
|
|
@@ -54,7 +55,6 @@
|
|
|
54
55
|
"./components/sqm-navigation-menu/sqm-navigation-menu.js",
|
|
55
56
|
"./components/sqm-navigation-sidebar/sqm-navigation-sidebar.js",
|
|
56
57
|
"./components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js",
|
|
57
|
-
"./components/sqm-partner-info-modal/sqm-partner-info-modal.js",
|
|
58
58
|
"./components/sqm-payout-button-scroll/sqm-payout-button-scroll.js",
|
|
59
59
|
"./components/sqm-popup-container/sqm-popup-container.js",
|
|
60
60
|
"./components/sqm-portal-change-marketing/sqm-portal-change-marketing.js",
|
|
@@ -11,7 +11,7 @@ const style = {
|
|
|
11
11
|
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
12
12
|
},
|
|
13
13
|
"&::part(body)": {
|
|
14
|
-
padding: "
|
|
14
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
15
15
|
fontSize: "var(--sl-font-size-small)",
|
|
16
16
|
overflow: "visible",
|
|
17
17
|
},
|
|
@@ -19,7 +19,6 @@ const style = {
|
|
|
19
19
|
display: "flex",
|
|
20
20
|
flexDirection: "column",
|
|
21
21
|
gap: "var(--sl-spacing-small)",
|
|
22
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
|
|
23
22
|
},
|
|
24
23
|
"&::part(overlay)": {
|
|
25
24
|
background: "rgba(0, 0, 0, 0.5)",
|
|
@@ -59,14 +58,11 @@ const style = {
|
|
|
59
58
|
},
|
|
60
59
|
},
|
|
61
60
|
};
|
|
62
|
-
export function
|
|
61
|
+
export function PartnerInfoModalContent(props) {
|
|
63
62
|
var _a, _b;
|
|
64
63
|
const { states, callbacks, text } = props;
|
|
65
64
|
const sheet = createStyleSheet(style);
|
|
66
65
|
const styleString = sheet.toString();
|
|
67
|
-
console.log(states, "partner info modal states"); // TEMP
|
|
68
|
-
if (!states.open)
|
|
69
|
-
return h("div", null);
|
|
70
66
|
const description = states.isExistingPartner ? (h("div", { class: sheet.classes.DescriptionContainer },
|
|
71
67
|
h("p", null, text.descriptionExistingPartner),
|
|
72
68
|
h("p", null, text.supportDescriptionExistingPartner))) : (h("p", null,
|
|
@@ -75,17 +71,7 @@ export function PartnerInfoModalView(props) {
|
|
|
75
71
|
const buttonLabel = states.isExistingPartner
|
|
76
72
|
? text.confirmButtonLabel
|
|
77
73
|
: text.submitButtonLabel;
|
|
78
|
-
return
|
|
79
|
-
? text.modalHeaderExistingPartner
|
|
80
|
-
: text.modalHeader, "onSl-request-close": (e) => {
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
}, "onSl-hide": (e) => {
|
|
83
|
-
var _a;
|
|
84
|
-
// Prevent closing when clicking outside the dialog but not dropdowns
|
|
85
|
-
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
86
|
-
e.preventDefault();
|
|
87
|
-
}
|
|
88
|
-
} },
|
|
74
|
+
return [
|
|
89
75
|
h("style", { type: "text/css" }, styleString),
|
|
90
76
|
description,
|
|
91
77
|
h("div", { class: sheet.classes.FormFields },
|
|
@@ -99,5 +85,24 @@ export function PartnerInfoModalView(props) {
|
|
|
99
85
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }), (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 :
|
|
100
86
|
_b.map((c) => (h("sl-menu-item", { value: c.currencyCode }, c.currencyCode))))),
|
|
101
87
|
states.error && h("p", { class: sheet.classes.ErrorMessage }, states.error),
|
|
102
|
-
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, style: { width: "100%" }, exportparts: "base: primarybutton-base" }, buttonLabel)
|
|
88
|
+
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, style: { width: "100%" }, exportparts: "base: primarybutton-base" }, buttonLabel),
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
export function PartnerInfoModalView(props) {
|
|
92
|
+
const { states, text } = props;
|
|
93
|
+
const sheet = createStyleSheet(style);
|
|
94
|
+
console.log(states, "partner info modal states"); // TEMP
|
|
95
|
+
if (!states.open)
|
|
96
|
+
return h("div", null);
|
|
97
|
+
return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: false, label: states.isExistingPartner
|
|
98
|
+
? text.modalHeaderExistingPartner
|
|
99
|
+
: text.modalHeader, "onSl-request-close": (e) => {
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
}, "onSl-hide": (e) => {
|
|
102
|
+
var _a;
|
|
103
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
}
|
|
106
|
+
} },
|
|
107
|
+
h(PartnerInfoModalContent, Object.assign({}, props))));
|
|
103
108
|
}
|
|
@@ -2,9 +2,10 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { useState, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, Prop, h } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../utils/parseStates";
|
|
5
6
|
import { getProps } from "../../utils/utils";
|
|
6
|
-
import { PartnerInfoModalView, } from "./sqm-partner-info-modal-view";
|
|
7
|
-
import { usePartnerInfoModal } from "./usePartnerInfoModal";
|
|
7
|
+
import { PartnerInfoModalContent, PartnerInfoModalView, } from "./sqm-partner-info-modal-view";
|
|
8
|
+
import { usePartnerInfoModal, } from "./usePartnerInfoModal";
|
|
8
9
|
/**
|
|
9
10
|
* @uiName Partner Info Modal
|
|
10
11
|
* @exampleGroup Tax and Cash
|
|
@@ -88,6 +89,19 @@ export class PartnerInfoModal {
|
|
|
88
89
|
* @uiWidget textArea
|
|
89
90
|
*/
|
|
90
91
|
this.missingFieldsErrorText = "Please select both a country and currency.";
|
|
92
|
+
/**
|
|
93
|
+
* When true, renders only the form content without its own sl-dialog wrapper.
|
|
94
|
+
* Used when embedded inside another dialog (e.g. sqm-widget-verification).
|
|
95
|
+
* @undocumented
|
|
96
|
+
*/
|
|
97
|
+
this.embedded = false;
|
|
98
|
+
/**
|
|
99
|
+
* @undocumented
|
|
100
|
+
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
101
|
+
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
102
|
+
* @componentState { "title": "Connected (hidden)", "props": { "states": { "open": false } } }
|
|
103
|
+
*/
|
|
104
|
+
this.stateController = "{}";
|
|
91
105
|
withHooks(this);
|
|
92
106
|
}
|
|
93
107
|
disconnectedCallback() { }
|
|
@@ -99,6 +113,9 @@ export class PartnerInfoModal {
|
|
|
99
113
|
const props = isDemo()
|
|
100
114
|
? useDemoPartnerInfoModal(this)
|
|
101
115
|
: usePartnerInfoModal(this);
|
|
116
|
+
if (this.embedded) {
|
|
117
|
+
return h(PartnerInfoModalContent, Object.assign({}, props));
|
|
118
|
+
}
|
|
102
119
|
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
103
120
|
}
|
|
104
121
|
static get is() { return "sqm-partner-info-modal"; }
|
|
@@ -419,20 +436,71 @@ export class PartnerInfoModal {
|
|
|
419
436
|
"reflect": false,
|
|
420
437
|
"defaultValue": "\"Please select both a country and currency.\""
|
|
421
438
|
},
|
|
439
|
+
"embedded": {
|
|
440
|
+
"type": "boolean",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "boolean",
|
|
444
|
+
"resolved": "boolean",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": false,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [{
|
|
451
|
+
"text": undefined,
|
|
452
|
+
"name": "undocumented"
|
|
453
|
+
}],
|
|
454
|
+
"text": "When true, renders only the form content without its own sl-dialog wrapper.\nUsed when embedded inside another dialog (e.g. sqm-widget-verification)."
|
|
455
|
+
},
|
|
456
|
+
"attribute": "embedded",
|
|
457
|
+
"reflect": false,
|
|
458
|
+
"defaultValue": "false"
|
|
459
|
+
},
|
|
460
|
+
"stateController": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"mutable": false,
|
|
463
|
+
"complexType": {
|
|
464
|
+
"original": "string",
|
|
465
|
+
"resolved": "string",
|
|
466
|
+
"references": {}
|
|
467
|
+
},
|
|
468
|
+
"required": false,
|
|
469
|
+
"optional": false,
|
|
470
|
+
"docs": {
|
|
471
|
+
"tags": [{
|
|
472
|
+
"text": undefined,
|
|
473
|
+
"name": "undocumented"
|
|
474
|
+
}, {
|
|
475
|
+
"text": "{ \"title\": \"New partner\", \"props\": { \"states\": { \"open\": true, \"isExistingPartner\": false } } }",
|
|
476
|
+
"name": "componentState"
|
|
477
|
+
}, {
|
|
478
|
+
"text": "{ \"title\": \"Existing partner\", \"props\": { \"states\": { \"open\": true, \"isExistingPartner\": true, \"countryCode\": \"US\", \"currency\": \"USD\" } } }",
|
|
479
|
+
"name": "componentState"
|
|
480
|
+
}, {
|
|
481
|
+
"text": "{ \"title\": \"Connected (hidden)\", \"props\": { \"states\": { \"open\": false } } }",
|
|
482
|
+
"name": "componentState"
|
|
483
|
+
}],
|
|
484
|
+
"text": ""
|
|
485
|
+
},
|
|
486
|
+
"attribute": "state-controller",
|
|
487
|
+
"reflect": false,
|
|
488
|
+
"defaultValue": "\"{}\""
|
|
489
|
+
},
|
|
422
490
|
"demoData": {
|
|
423
491
|
"type": "unknown",
|
|
424
492
|
"mutable": false,
|
|
425
493
|
"complexType": {
|
|
426
|
-
"original": "DemoData<
|
|
494
|
+
"original": "DemoData<PartnerInfoModalResult>",
|
|
427
495
|
"resolved": "{ states?: { open: boolean; loading: boolean; submitting: boolean; isExistingPartner: boolean; countryCode: string; currency: string; error: string; success: boolean; brandName: string; filteredCountries: { countryCode: string; displayName: string; }[]; filteredCurrencies: { currencyCode: string; displayName: string; }[]; }; }",
|
|
428
496
|
"references": {
|
|
429
497
|
"DemoData": {
|
|
430
498
|
"location": "import",
|
|
431
499
|
"path": "../../global/demo"
|
|
432
500
|
},
|
|
433
|
-
"
|
|
501
|
+
"PartnerInfoModalResult": {
|
|
434
502
|
"location": "import",
|
|
435
|
-
"path": "./
|
|
503
|
+
"path": "./usePartnerInfoModal"
|
|
436
504
|
}
|
|
437
505
|
}
|
|
438
506
|
},
|
|
@@ -455,6 +523,9 @@ function useDemoPartnerInfoModal(props) {
|
|
|
455
523
|
const [countryCode, setCountryCode] = useState("US");
|
|
456
524
|
const [currency, setCurrency] = useState("");
|
|
457
525
|
const [error, setError] = useState("");
|
|
526
|
+
const parsed = parseStates(props.stateController);
|
|
527
|
+
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
528
|
+
// @ts-ignore
|
|
458
529
|
return deepmerge({
|
|
459
530
|
states: {
|
|
460
531
|
brandName: "Test Brand",
|
|
@@ -508,5 +579,5 @@ function useDemoPartnerInfoModal(props) {
|
|
|
508
579
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
509
580
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
510
581
|
},
|
|
511
|
-
}, props.demoData ||
|
|
582
|
+
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
512
583
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { useLocale, useMutation, useQuery, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { useLocale, useMutation, useQuery, useSetParent, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../tax-and-cash/eventKeys";
|
|
5
|
+
import { VERIFICATION_PARENT_NAMESPACE } from "../sqm-widget-verification/keys";
|
|
5
6
|
// new field under impactConnection:{ resolvedByEmail: boolean } - determines if connection came from managed identity
|
|
6
7
|
export const GET_USER_PARTNER_INFO = gql `
|
|
7
8
|
query getUserPartnerInfo {
|
|
@@ -91,6 +92,7 @@ const GET_BRAND_NAME = gql `
|
|
|
91
92
|
export function usePartnerInfoModal(props) {
|
|
92
93
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
93
94
|
const locale = useLocale();
|
|
95
|
+
const setVerificationContext = useSetParent(VERIFICATION_PARENT_NAMESPACE);
|
|
94
96
|
const { data: userData, loading: userLoading, refetch, } = useQuery(GET_USER_PARTNER_INFO, {});
|
|
95
97
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
96
98
|
const { data: currenciesData, loading: currenciesLoading } = useQuery(GET_CURRENCIES, { variables: { locale } });
|
|
@@ -191,6 +193,7 @@ export function usePartnerInfoModal(props) {
|
|
|
191
193
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
192
194
|
await refetch();
|
|
193
195
|
setSuccess(true);
|
|
196
|
+
setVerificationContext(true);
|
|
194
197
|
}
|
|
195
198
|
catch (e) {
|
|
196
199
|
console.error("Partner creation error:", e);
|
|
@@ -207,7 +210,7 @@ export function usePartnerInfoModal(props) {
|
|
|
207
210
|
open: showModal,
|
|
208
211
|
loading: userLoading || countriesLoading || currenciesLoading,
|
|
209
212
|
submitting: connectLoading,
|
|
210
|
-
isExistingPartner:
|
|
213
|
+
isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
|
|
211
214
|
countryCode,
|
|
212
215
|
currency,
|
|
213
216
|
error,
|
|
@@ -108,6 +108,7 @@ import * as LeadCheckboxField from "../sqm-lead-form/LeadCheckboxField.stories";
|
|
|
108
108
|
import * as Skeleton from "../sqm-skeleton/Skeleton.stories";
|
|
109
109
|
import * as UserInfoFormView from "../tax-and-cash/sqm-user-info-form/UserInfoFormView.stories";
|
|
110
110
|
import * as PartnerInfoModal from "../sqm-partner-info-modal/PartnerInfoModal.stories";
|
|
111
|
+
import * as WidgetVerification from "../sqm-widget-verification/WidgetVerification.stories";
|
|
111
112
|
import { ShadowViewAddon } from "../../ShadowViewAddon";
|
|
112
113
|
import { CucumberAddon } from "./CucumberAddon";
|
|
113
114
|
import { HookStoryAddon } from "./HookStoryAddon";
|
|
@@ -220,6 +221,7 @@ const stories = [
|
|
|
220
221
|
TaxAndCashReferralTableRewardsCell,
|
|
221
222
|
TaxAndCashReferralTable,
|
|
222
223
|
PartnerInfoModal,
|
|
224
|
+
WidgetVerification,
|
|
223
225
|
];
|
|
224
226
|
/**
|
|
225
227
|
* For internal documentation
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export default {
|
|
3
|
+
title: "Components/Widget Verification",
|
|
4
|
+
};
|
|
5
|
+
export const Step1Email = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
6
|
+
"sqm-widget-verification": { showCode: false },
|
|
7
|
+
}) }));
|
|
8
|
+
export const Step2Code = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
9
|
+
"sqm-widget-verification": { showCode: true },
|
|
10
|
+
}) }));
|
|
11
|
+
export const Step3PartnerModal = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
12
|
+
"sqm-widget-verification": { showPartnerModal: true },
|
|
13
|
+
}) }));
|
|
14
|
+
export const Loading = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
15
|
+
"sqm-widget-verification": { loading: true },
|
|
16
|
+
}) }));
|
|
@@ -54,7 +54,6 @@ const style = {
|
|
|
54
54
|
},
|
|
55
55
|
ContinueButton: {
|
|
56
56
|
width: "100%",
|
|
57
|
-
maxWidth: "100px",
|
|
58
57
|
},
|
|
59
58
|
FooterContainer: {
|
|
60
59
|
display: "flex",
|
|
@@ -132,7 +131,7 @@ export function WidgetCodeVerificationView(props) {
|
|
|
132
131
|
h("sl-input", { class: inputClass, name: "code" }),
|
|
133
132
|
h("sl-input", { class: inputClass, name: "code" })),
|
|
134
133
|
states.verifyFailed && (h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
135
|
-
h("
|
|
136
|
-
|
|
137
|
-
h(
|
|
134
|
+
h("div", { class: sheet.classes.FooterContainer },
|
|
135
|
+
h(TextSpanView, { type: "p" }, resendCodeText)),
|
|
136
|
+
h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)))));
|
|
138
137
|
}
|