@saasquatch/mint-components 2.1.9-6 → 2.1.9-8
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/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +367 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +8 -11
- package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-cd758f12.js} +1 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +27 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -2
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +10 -11
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +1 -1
- 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 +49 -1
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +1 -0
- 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/{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} +379 -16
- 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 +12 -15
- 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-dbedda28.js} +1 -2
- 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-ef04a79f.js → sqm-user-info-form-view-f9026468.js} +2 -2
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- 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/{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-dbedda28.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-ef04a79f.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/{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-51b8ed78.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-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-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-160764bc.system.entry.js +1 -0
- 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-f50c3306.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-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-614630a8.system.js → p-54bf015a.system.js} +1 -1
- package/dist/mint-components/{p-d2d2c4ea.system.entry.js → p-59f69bdc.system.entry.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-adb56df3.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-6638c7c6.system.js +1 -0
- 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-7144ac40.js +1 -0
- 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-7a5814ef.system.entry.js +1 -0
- 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-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-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-a9bf9d3c.entry.js +291 -0
- package/dist/mint-components/p-adcc37f3.entry.js +105 -0
- 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-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-6a754f51.entry.js → p-d2927531.entry.js} +2 -2
- 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-546a65c7.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-91c4b8d5.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +3 -3
- 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.d.ts +5 -5
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/extractProps-fd93ba62.js +0 -21
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -314
- package/dist/esm/extractProps-ae1afbb3.js +0 -19
- package/dist/esm/sqm-widget-verification.entry.js +0 -310
- package/dist/esm-es5/extractProps-ae1afbb3.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/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/mint-components/p-0f723dbb.entry.js +0 -19
- package/dist/mint-components/p-1b0d7020.js +0 -1
- package/dist/mint-components/p-26468242.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-4b365f1f.system.js +0 -1
- package/dist/mint-components/p-515ac953.system.entry.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-5a446168.entry.js +0 -273
- 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-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-ac3148b1.system.entry.js +0 -1
- package/dist/mint-components/p-aeb01a77.system.entry.js +0 -1
- package/dist/mint-components/p-e44c816e.system.js +0 -1
- package/dist/mint-components/p-e9a596d6.system.entry.js +0 -1
- package/dist/mint-components/p-eca21075.entry.js +0 -105
|
@@ -30,10 +30,10 @@ const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
|
30
30
|
const ShadowViewAddon = require('./ShadowViewAddon-d679ec76.js');
|
|
31
31
|
require('./sqm-portal-container-view-70a47420.js');
|
|
32
32
|
const data = require('./data-e83f8a41.js');
|
|
33
|
-
const
|
|
34
|
-
const extractProps = require('./extractProps-fd93ba62.js');
|
|
33
|
+
const keys = require('./keys-cff24974.js');
|
|
35
34
|
require('./eventKeys-7af4df4d.js');
|
|
36
35
|
const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
|
|
36
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
@@ -6394,6 +6394,24 @@ function useTaskCardDemo(props) {
|
|
|
6394
6394
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6395
6395
|
}
|
|
6396
6396
|
|
|
6397
|
+
/**
|
|
6398
|
+
* Util function for getting just the props with a certain prefix.
|
|
6399
|
+
* @param props Text props on stencil component
|
|
6400
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
6401
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6402
|
+
*/
|
|
6403
|
+
function extractProps(props, prefix) {
|
|
6404
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
6405
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
6406
|
+
const key = k.replace(prefix, "");
|
|
6407
|
+
return {
|
|
6408
|
+
...prev,
|
|
6409
|
+
[key]: props[k],
|
|
6410
|
+
};
|
|
6411
|
+
}, {});
|
|
6412
|
+
return formattedProps;
|
|
6413
|
+
}
|
|
6414
|
+
|
|
6397
6415
|
function getCurrentStep(user) {
|
|
6398
6416
|
var _a, _b;
|
|
6399
6417
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
@@ -7678,7 +7696,7 @@ const TaxAndCashMonolith = class {
|
|
|
7678
7696
|
getGeneralStepTextProps(prefix) {
|
|
7679
7697
|
const props = utils.getProps(this);
|
|
7680
7698
|
return {
|
|
7681
|
-
...extractProps
|
|
7699
|
+
...extractProps(props, prefix),
|
|
7682
7700
|
generalErrorTitle: props.generalErrorTitle,
|
|
7683
7701
|
generalErrorDescription: props.generalErrorDescription,
|
|
7684
7702
|
fieldRequiredError: props.fieldRequiredError,
|
|
@@ -7941,6 +7959,351 @@ function useUserNameDemo(props) {
|
|
|
7941
7959
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7942
7960
|
}
|
|
7943
7961
|
|
|
7962
|
+
const USER_LOOKUP = index_module.dist.gql `
|
|
7963
|
+
query checkUserVerification {
|
|
7964
|
+
viewer {
|
|
7965
|
+
... on User {
|
|
7966
|
+
id
|
|
7967
|
+
accountId
|
|
7968
|
+
email
|
|
7969
|
+
emailVerified
|
|
7970
|
+
managedIdentity {
|
|
7971
|
+
email
|
|
7972
|
+
emailVerified
|
|
7973
|
+
}
|
|
7974
|
+
impactConnection {
|
|
7975
|
+
connected
|
|
7976
|
+
}
|
|
7977
|
+
}
|
|
7978
|
+
}
|
|
7979
|
+
}
|
|
7980
|
+
`;
|
|
7981
|
+
function useWidgetVerification() {
|
|
7982
|
+
const userIdentity = index_module.J();
|
|
7983
|
+
const [showCode, setShowCode] = index_module.In({
|
|
7984
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
7985
|
+
initialValue: false,
|
|
7986
|
+
});
|
|
7987
|
+
const [email, setEmail] = index_module.In({
|
|
7988
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
7989
|
+
initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
|
|
7990
|
+
});
|
|
7991
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
7992
|
+
const [loading, setLoading] = domContextHooks_module.useState(true);
|
|
7993
|
+
const [showPartnerModal, setShowPartnerModal] = domContextHooks_module.useState(false);
|
|
7994
|
+
const [fetch] = index_module.Xe(USER_LOOKUP);
|
|
7995
|
+
domContextHooks_module.useEffect(() => {
|
|
7996
|
+
const checkUser = async () => {
|
|
7997
|
+
var _a, _b, _c, _d, _e;
|
|
7998
|
+
try {
|
|
7999
|
+
const res = await fetch({});
|
|
8000
|
+
if (!res || res instanceof Error)
|
|
8001
|
+
throw new Error();
|
|
8002
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
8003
|
+
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);
|
|
8004
|
+
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;
|
|
8005
|
+
if (isConnected) {
|
|
8006
|
+
// Partner already created, show widget content
|
|
8007
|
+
setContext(true);
|
|
8008
|
+
}
|
|
8009
|
+
else if (emailVerified) {
|
|
8010
|
+
// Email verified but no partner yet, show partner modal
|
|
8011
|
+
setShowPartnerModal(true);
|
|
8012
|
+
}
|
|
8013
|
+
}
|
|
8014
|
+
catch (e) {
|
|
8015
|
+
console.error("Could not fetch user information:", e);
|
|
8016
|
+
}
|
|
8017
|
+
finally {
|
|
8018
|
+
setLoading(false);
|
|
8019
|
+
}
|
|
8020
|
+
};
|
|
8021
|
+
checkUser();
|
|
8022
|
+
}, []);
|
|
8023
|
+
const onVerification = () => {
|
|
8024
|
+
setShowPartnerModal(true);
|
|
8025
|
+
};
|
|
8026
|
+
const onPartnerModalComplete = () => {
|
|
8027
|
+
setShowPartnerModal(false);
|
|
8028
|
+
setContext(true);
|
|
8029
|
+
};
|
|
8030
|
+
return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
|
|
8031
|
+
}
|
|
8032
|
+
|
|
8033
|
+
const WidgetVerification = class {
|
|
8034
|
+
constructor(hostRef) {
|
|
8035
|
+
index.registerInstance(this, hostRef);
|
|
8036
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
8037
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8038
|
+
GENERAL PROPS
|
|
8039
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8040
|
+
/**
|
|
8041
|
+
* @uiName General verify widget header text
|
|
8042
|
+
* @uiGroup General Text
|
|
8043
|
+
*/
|
|
8044
|
+
this.general_verifyEmailHeader = "Verify your email";
|
|
8045
|
+
/**
|
|
8046
|
+
* @uiName General verify widget description text
|
|
8047
|
+
* @uiGroup General Text
|
|
8048
|
+
*/
|
|
8049
|
+
this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
|
|
8050
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8051
|
+
EMAIL STEP PROPS
|
|
8052
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8053
|
+
/**
|
|
8054
|
+
* @uiName Verify email widget header text
|
|
8055
|
+
* @uiGroup Email Verification Step
|
|
8056
|
+
*/
|
|
8057
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
8058
|
+
/**
|
|
8059
|
+
* @uiName Send code to email alert header
|
|
8060
|
+
* @uiGroup Email Verification Step
|
|
8061
|
+
*/
|
|
8062
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
8063
|
+
/**
|
|
8064
|
+
* @uiName Send code to email alert description
|
|
8065
|
+
* @uiGroup Email Verification Step
|
|
8066
|
+
*/
|
|
8067
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
8068
|
+
/**
|
|
8069
|
+
* @uiName Email input label
|
|
8070
|
+
* @uiGroup Email Verification Step
|
|
8071
|
+
*/
|
|
8072
|
+
this.emailStep_emailLabel = "Email";
|
|
8073
|
+
/**
|
|
8074
|
+
* @uiName Send code button text
|
|
8075
|
+
* @uiGroup Email Verification Step
|
|
8076
|
+
*/
|
|
8077
|
+
this.emailStep_sendCodeText = "Send code";
|
|
8078
|
+
/**
|
|
8079
|
+
* @uiName Send code button text
|
|
8080
|
+
* @uiGroup Email Verification Step
|
|
8081
|
+
*/
|
|
8082
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
8083
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8084
|
+
CODE STEP PROPS
|
|
8085
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8086
|
+
/**
|
|
8087
|
+
* @uiName Verify code widget header text
|
|
8088
|
+
* @uiGroup Code Verification Step
|
|
8089
|
+
*/
|
|
8090
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8091
|
+
/**
|
|
8092
|
+
* @uiName Reverify code widget header text
|
|
8093
|
+
* @uiGroup Code Verification Step
|
|
8094
|
+
*/
|
|
8095
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8096
|
+
/**
|
|
8097
|
+
* Text displayed under verify button
|
|
8098
|
+
* @uiName Resend code text
|
|
8099
|
+
* @uiGroup Code Verification Step
|
|
8100
|
+
*/
|
|
8101
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
8102
|
+
/**
|
|
8103
|
+
* The link that appears in the resend code link
|
|
8104
|
+
* @uiName Resend code label
|
|
8105
|
+
* @uiGroup Code Verification Step
|
|
8106
|
+
*/
|
|
8107
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
8108
|
+
/**
|
|
8109
|
+
* Link text displayed under verify button
|
|
8110
|
+
* @uiName Resend code text
|
|
8111
|
+
* @uiGroup Code Verification Step
|
|
8112
|
+
*/
|
|
8113
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
8114
|
+
/**
|
|
8115
|
+
* Error text displayed under verification input
|
|
8116
|
+
* @uiName Invalid code text
|
|
8117
|
+
* @uiGroup Code Verification Step
|
|
8118
|
+
*/
|
|
8119
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
8120
|
+
/**
|
|
8121
|
+
* @uiName Verify code button text
|
|
8122
|
+
* @uiGroup Code Verification Step
|
|
8123
|
+
*/
|
|
8124
|
+
this.codeStep_verifyText = "Verify";
|
|
8125
|
+
/**
|
|
8126
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
8127
|
+
* @uiName Network error message
|
|
8128
|
+
* @uiGroup Code Verification Step
|
|
8129
|
+
*/
|
|
8130
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
8131
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8132
|
+
PARTNER CREATION STEP PROPS
|
|
8133
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8134
|
+
/**
|
|
8135
|
+
* @uiName New partner header
|
|
8136
|
+
* @uiGroup Partner Creation Step
|
|
8137
|
+
* @uiWidget textArea
|
|
8138
|
+
*/
|
|
8139
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
8140
|
+
/**
|
|
8141
|
+
* @uiName Existing partner header
|
|
8142
|
+
* @uiGroup Partner Creation Step
|
|
8143
|
+
* @uiWidget textArea
|
|
8144
|
+
*/
|
|
8145
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
8146
|
+
/**
|
|
8147
|
+
* @uiName New partner description
|
|
8148
|
+
* @uiGroup Partner Creation Step
|
|
8149
|
+
* @uiWidget textArea
|
|
8150
|
+
*/
|
|
8151
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
8152
|
+
/**
|
|
8153
|
+
* @uiName Existing partner description
|
|
8154
|
+
* @uiGroup Partner Creation Step
|
|
8155
|
+
* @uiWidget textArea
|
|
8156
|
+
*/
|
|
8157
|
+
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.";
|
|
8158
|
+
/**
|
|
8159
|
+
* @uiName Existing partner support description
|
|
8160
|
+
* @uiGroup Partner Creation Step
|
|
8161
|
+
* @uiWidget textArea
|
|
8162
|
+
*/
|
|
8163
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
8164
|
+
/**
|
|
8165
|
+
* @uiName Country label
|
|
8166
|
+
* @uiGroup Partner Creation Step
|
|
8167
|
+
*/
|
|
8168
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
8169
|
+
/**
|
|
8170
|
+
* @uiName Currency label
|
|
8171
|
+
* @uiGroup Partner Creation Step
|
|
8172
|
+
*/
|
|
8173
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
8174
|
+
/**
|
|
8175
|
+
* @uiName Submit button label
|
|
8176
|
+
* @uiGroup Partner Creation Step
|
|
8177
|
+
*/
|
|
8178
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
8179
|
+
/**
|
|
8180
|
+
* @uiName Confirm button label
|
|
8181
|
+
* @uiGroup Partner Creation Step
|
|
8182
|
+
*/
|
|
8183
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
8184
|
+
/**
|
|
8185
|
+
* @uiName Search country placeholder
|
|
8186
|
+
* @uiGroup Partner Creation Step
|
|
8187
|
+
*/
|
|
8188
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
8189
|
+
/**
|
|
8190
|
+
* @uiName Search currency placeholder
|
|
8191
|
+
* @uiGroup Partner Creation Step
|
|
8192
|
+
*/
|
|
8193
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
8194
|
+
/**
|
|
8195
|
+
* @uiName Network error text
|
|
8196
|
+
* @uiGroup Partner Creation Step
|
|
8197
|
+
* @uiWidget textArea
|
|
8198
|
+
*/
|
|
8199
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8200
|
+
/**
|
|
8201
|
+
* @uiName Missing fields error text
|
|
8202
|
+
* @uiGroup Partner Creation Step
|
|
8203
|
+
* @uiWidget textArea
|
|
8204
|
+
*/
|
|
8205
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
8206
|
+
/**
|
|
8207
|
+
* @undocumented
|
|
8208
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
8209
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
8210
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
8211
|
+
*/
|
|
8212
|
+
this.stateController = "{}";
|
|
8213
|
+
domContextHooks_module.h$1(this);
|
|
8214
|
+
}
|
|
8215
|
+
disconnectedCallback() { }
|
|
8216
|
+
getStepTextProps(prefix) {
|
|
8217
|
+
const props = utils.getProps(this);
|
|
8218
|
+
return extractProps(props, prefix);
|
|
8219
|
+
}
|
|
8220
|
+
render() {
|
|
8221
|
+
const props = index_module.isDemo()
|
|
8222
|
+
? useDemoWidgetVerificationInternal(this)
|
|
8223
|
+
: useWidgetVerification();
|
|
8224
|
+
if (props.loading)
|
|
8225
|
+
return index.h("sl-spinner", null);
|
|
8226
|
+
if (props.showPartnerModal) {
|
|
8227
|
+
return (index.h("sqm-partner-info-modal", Object.assign({}, this.getStepTextProps("createPartnerStep_"))));
|
|
8228
|
+
}
|
|
8229
|
+
const style = {
|
|
8230
|
+
Dialog: {
|
|
8231
|
+
"&::part(panel)": {
|
|
8232
|
+
maxWidth: "480px",
|
|
8233
|
+
},
|
|
8234
|
+
"&::part(title)": {
|
|
8235
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
8236
|
+
fontWeight: "600",
|
|
8237
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
8238
|
+
},
|
|
8239
|
+
"&::part(body)": {
|
|
8240
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
8241
|
+
fontSize: "var(--sl-font-size-small)",
|
|
8242
|
+
overflow: "visible",
|
|
8243
|
+
},
|
|
8244
|
+
"&::part(footer)": {
|
|
8245
|
+
display: "flex",
|
|
8246
|
+
flexDirection: "column",
|
|
8247
|
+
gap: "var(--sl-spacing-small)",
|
|
8248
|
+
},
|
|
8249
|
+
"&::part(overlay)": {
|
|
8250
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
8251
|
+
},
|
|
8252
|
+
"&::part(close-button)": {
|
|
8253
|
+
display: "none",
|
|
8254
|
+
},
|
|
8255
|
+
},
|
|
8256
|
+
};
|
|
8257
|
+
const sheet = JSS.createStyleSheet(style);
|
|
8258
|
+
const styleString = sheet.toString();
|
|
8259
|
+
const generalText = this.getStepTextProps("general_");
|
|
8260
|
+
return (index.h("div", null, index.h("style", { type: "text/css" }, styleString), index.h("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), index.h("p", { style: {
|
|
8261
|
+
color: "var(--sl-color-neutral-500)",
|
|
8262
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
8263
|
+
margin: "0",
|
|
8264
|
+
} }, generalText.verifyEmailDescription), props.showCode ? (index.h("sl-dialog", { class: sheet.classes.Dialog, noHeader: false, open: props.showCode, label: "Let's get your started for rewards", "onSl-request-close": (e) => {
|
|
8265
|
+
e.preventDefault();
|
|
8266
|
+
}, "onSl-hide": (e) => {
|
|
8267
|
+
var _a;
|
|
8268
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8269
|
+
e.preventDefault();
|
|
8270
|
+
}
|
|
8271
|
+
} }, index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))))) : (index.h("sl-dialog", { class: sheet.classes.Dialog, noHeader: false, open: props.showCode, label: "Let's get your started for rewards", "onSl-request-close": (e) => {
|
|
8272
|
+
e.preventDefault();
|
|
8273
|
+
}, "onSl-hide": (e) => {
|
|
8274
|
+
var _a;
|
|
8275
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8276
|
+
e.preventDefault();
|
|
8277
|
+
}
|
|
8278
|
+
} }, index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_")))))));
|
|
8279
|
+
}
|
|
8280
|
+
};
|
|
8281
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
8282
|
+
const [showCode, setShowCode] = index_module.In({
|
|
8283
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
8284
|
+
initialValue: false,
|
|
8285
|
+
});
|
|
8286
|
+
const [email, setEmail] = index_module.In({
|
|
8287
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
8288
|
+
initialValue: undefined,
|
|
8289
|
+
});
|
|
8290
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
8291
|
+
const states = parseStates.parseStates(props.stateController);
|
|
8292
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
8293
|
+
? { ...prev, ...states[key] }
|
|
8294
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
8295
|
+
const onVerification = () => {
|
|
8296
|
+
setContext(true);
|
|
8297
|
+
};
|
|
8298
|
+
return cjs.cjs({
|
|
8299
|
+
showCode,
|
|
8300
|
+
showPartnerModal: false,
|
|
8301
|
+
onVerification,
|
|
8302
|
+
onPartnerModalComplete: () => { },
|
|
8303
|
+
loading: false,
|
|
8304
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
8305
|
+
}
|
|
8306
|
+
|
|
7944
8307
|
exports.sqm_big_stat = BigStat;
|
|
7945
8308
|
exports.sqm_brand = BrandComponent;
|
|
7946
8309
|
exports.sqm_brand_selector = SqmBrandSelector;
|
|
@@ -7986,3 +8349,4 @@ exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
|
7986
8349
|
exports.sqm_timeline = Timeline;
|
|
7987
8350
|
exports.sqm_timeline_entry = TimelineReward;
|
|
7988
8351
|
exports.sqm_user_name = UserName;
|
|
8352
|
+
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -65,7 +65,6 @@ const style = {
|
|
|
65
65
|
},
|
|
66
66
|
ContinueButton: {
|
|
67
67
|
width: "100%",
|
|
68
|
-
maxWidth: "100px",
|
|
69
68
|
},
|
|
70
69
|
FooterContainer: {
|
|
71
70
|
display: "flex",
|
|
@@ -143,9 +142,9 @@ function WidgetCodeVerificationView(props) {
|
|
|
143
142
|
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
144
143
|
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
145
144
|
states.verifyFailed && (index.h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
146
|
-
index.h("
|
|
147
|
-
|
|
148
|
-
index.h(
|
|
145
|
+
index.h("div", { class: sheet.classes.FooterContainer },
|
|
146
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)),
|
|
147
|
+
index.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)))));
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
@@ -10,10 +10,10 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const sqmTextSpanView = require('./sqm-text-span-view-f274fdf2.js');
|
|
13
|
-
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-
|
|
14
|
-
const parseStates = require('./parseStates-d1effc19.js');
|
|
13
|
+
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-cd758f12.js');
|
|
15
14
|
const keys = require('./keys-cff24974.js');
|
|
16
15
|
const eventKeys = require('./eventKeys-7af4df4d.js');
|
|
16
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
17
17
|
const useVerificationEmail = require('./useVerificationEmail-994bc32f.js');
|
|
18
18
|
|
|
19
19
|
const UpsertUserEmailMutation = index_module.dist.gql `
|
|
@@ -150,11 +150,9 @@ const style = {
|
|
|
150
150
|
gap: "var(--sl-spacing-medium)",
|
|
151
151
|
position: "relative",
|
|
152
152
|
flexDirection: "column",
|
|
153
|
-
maxWidth: "320px",
|
|
154
153
|
},
|
|
155
154
|
ContinueButton: {
|
|
156
155
|
width: "100%",
|
|
157
|
-
maxWidth: "100px",
|
|
158
156
|
},
|
|
159
157
|
SkeletonOne: {
|
|
160
158
|
width: "50%",
|
|
@@ -625,7 +623,7 @@ function usePartnerInfoModal(props) {
|
|
|
625
623
|
open: showModal,
|
|
626
624
|
loading: userLoading || countriesLoading || currenciesLoading,
|
|
627
625
|
submitting: connectLoading,
|
|
628
|
-
isExistingPartner:
|
|
626
|
+
isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
|
|
629
627
|
countryCode,
|
|
630
628
|
currency,
|
|
631
629
|
error,
|
|
@@ -727,7 +725,7 @@ const PartnerInfoModal = class {
|
|
|
727
725
|
/**
|
|
728
726
|
* @undocumented
|
|
729
727
|
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
730
|
-
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true } } }
|
|
728
|
+
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
731
729
|
* @componentState { "title": "Connected (hidden)", "props": { "states": { "open": false } } }
|
|
732
730
|
*/
|
|
733
731
|
this.stateController = "{}";
|
|
@@ -749,10 +747,9 @@ function useDemoPartnerInfoModal(props) {
|
|
|
749
747
|
const [countryCode, setCountryCode] = domContextHooks_module.useState("US");
|
|
750
748
|
const [currency, setCurrency] = domContextHooks_module.useState("");
|
|
751
749
|
const [error, setError] = domContextHooks_module.useState("");
|
|
752
|
-
const parsed = parseStates.parseStates(props.stateController)
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
console.log("stateController raw:", props.stateController, "parsed:", parsed, "overrides:", stateOverrides); // TEMP
|
|
750
|
+
const parsed = parseStates.parseStates(props.stateController);
|
|
751
|
+
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
752
|
+
// @ts-ignore
|
|
756
753
|
return cjs.cjs({
|
|
757
754
|
states: {
|
|
758
755
|
brandName: "Test Brand",
|
|
@@ -806,7 +803,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
806
803
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
807
804
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
808
805
|
},
|
|
809
|
-
},
|
|
806
|
+
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
810
807
|
}
|
|
811
808
|
|
|
812
809
|
exports.sqm_email_verification = WidgetEmailVerification;
|
package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-cd758f12.js}
RENAMED
|
@@ -14,7 +14,7 @@ const style = {
|
|
|
14
14
|
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
15
15
|
},
|
|
16
16
|
"&::part(body)": {
|
|
17
|
-
padding: "
|
|
17
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
18
18
|
fontSize: "var(--sl-font-size-small)",
|
|
19
19
|
overflow: "visible",
|
|
20
20
|
},
|
|
@@ -22,7 +22,6 @@ const style = {
|
|
|
22
22
|
display: "flex",
|
|
23
23
|
flexDirection: "column",
|
|
24
24
|
gap: "var(--sl-spacing-small)",
|
|
25
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
|
|
26
25
|
},
|
|
27
26
|
"&::part(overlay)": {
|
|
28
27
|
background: "rgba(0, 0, 0, 0.5)",
|
|
@@ -38,7 +38,7 @@ const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js'
|
|
|
38
38
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-923ff8d9.js');
|
|
39
39
|
const data = require('./data-e83f8a41.js');
|
|
40
40
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-818d9e9a.js');
|
|
41
|
-
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-
|
|
41
|
+
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-cd758f12.js');
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -18859,6 +18859,31 @@ const PartnerInfoModal = /*#__PURE__*/Object.freeze({
|
|
|
18859
18859
|
FullStackDemo: FullStackDemo
|
|
18860
18860
|
});
|
|
18861
18861
|
|
|
18862
|
+
const WidgetVerification_stories = {
|
|
18863
|
+
title: "Components/Widget Verification",
|
|
18864
|
+
};
|
|
18865
|
+
const Step1Email = () => (index.h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
18866
|
+
"sqm-widget-verification": { showCode: false },
|
|
18867
|
+
}) }));
|
|
18868
|
+
const Step2Code = () => (index.h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
18869
|
+
"sqm-widget-verification": { showCode: true },
|
|
18870
|
+
}) }));
|
|
18871
|
+
const Step3PartnerModal = () => (index.h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
18872
|
+
"sqm-widget-verification": { showPartnerModal: true },
|
|
18873
|
+
}) }));
|
|
18874
|
+
const Loading$h = () => (index.h("sqm-widget-verification", { stateController: JSON.stringify({
|
|
18875
|
+
"sqm-widget-verification": { loading: true },
|
|
18876
|
+
}) }));
|
|
18877
|
+
|
|
18878
|
+
const WidgetVerification = /*#__PURE__*/Object.freeze({
|
|
18879
|
+
__proto__: null,
|
|
18880
|
+
'default': WidgetVerification_stories,
|
|
18881
|
+
Step1Email: Step1Email,
|
|
18882
|
+
Step2Code: Step2Code,
|
|
18883
|
+
Step3PartnerModal: Step3PartnerModal,
|
|
18884
|
+
Loading: Loading$h
|
|
18885
|
+
});
|
|
18886
|
+
|
|
18862
18887
|
function deepFreeze(obj) {
|
|
18863
18888
|
if (obj instanceof Map) {
|
|
18864
18889
|
obj.clear = obj.delete = obj.set = function () {
|
|
@@ -21553,6 +21578,7 @@ const stories = [
|
|
|
21553
21578
|
TaxAndCashReferralTableRewardsCell,
|
|
21554
21579
|
TaxAndCashReferralTable$1,
|
|
21555
21580
|
PartnerInfoModal,
|
|
21581
|
+
WidgetVerification,
|
|
21556
21582
|
];
|
|
21557
21583
|
const StencilStorybook = class {
|
|
21558
21584
|
constructor(hostRef) {
|
|
@@ -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)",
|
|
@@ -5,7 +5,7 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { parseStates } from "../../utils/parseStates";
|
|
6
6
|
import { getProps } from "../../utils/utils";
|
|
7
7
|
import { PartnerInfoModalView, } from "./sqm-partner-info-modal-view";
|
|
8
|
-
import { usePartnerInfoModal } from "./usePartnerInfoModal";
|
|
8
|
+
import { usePartnerInfoModal, } from "./usePartnerInfoModal";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Partner Info Modal
|
|
11
11
|
* @exampleGroup Tax and Cash
|
|
@@ -92,7 +92,7 @@ export class PartnerInfoModal {
|
|
|
92
92
|
/**
|
|
93
93
|
* @undocumented
|
|
94
94
|
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
95
|
-
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true } } }
|
|
95
|
+
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
96
96
|
* @componentState { "title": "Connected (hidden)", "props": { "states": { "open": false } } }
|
|
97
97
|
*/
|
|
98
98
|
this.stateController = "{}";
|
|
@@ -445,7 +445,7 @@ export class PartnerInfoModal {
|
|
|
445
445
|
"text": "{ \"title\": \"New partner\", \"props\": { \"states\": { \"open\": true, \"isExistingPartner\": false } } }",
|
|
446
446
|
"name": "componentState"
|
|
447
447
|
}, {
|
|
448
|
-
"text": "{ \"title\": \"Existing partner\", \"props\": { \"states\": { \"open\": true, \"isExistingPartner\": true } } }",
|
|
448
|
+
"text": "{ \"title\": \"Existing partner\", \"props\": { \"states\": { \"open\": true, \"isExistingPartner\": true, \"countryCode\": \"US\", \"currency\": \"USD\" } } }",
|
|
449
449
|
"name": "componentState"
|
|
450
450
|
}, {
|
|
451
451
|
"text": "{ \"title\": \"Connected (hidden)\", \"props\": { \"states\": { \"open\": false } } }",
|
|
@@ -461,16 +461,16 @@ export class PartnerInfoModal {
|
|
|
461
461
|
"type": "unknown",
|
|
462
462
|
"mutable": false,
|
|
463
463
|
"complexType": {
|
|
464
|
-
"original": "DemoData<
|
|
464
|
+
"original": "DemoData<PartnerInfoModalResult>",
|
|
465
465
|
"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; }[]; }; }",
|
|
466
466
|
"references": {
|
|
467
467
|
"DemoData": {
|
|
468
468
|
"location": "import",
|
|
469
469
|
"path": "../../global/demo"
|
|
470
470
|
},
|
|
471
|
-
"
|
|
471
|
+
"PartnerInfoModalResult": {
|
|
472
472
|
"location": "import",
|
|
473
|
-
"path": "./
|
|
473
|
+
"path": "./usePartnerInfoModal"
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
},
|
|
@@ -493,10 +493,9 @@ function useDemoPartnerInfoModal(props) {
|
|
|
493
493
|
const [countryCode, setCountryCode] = useState("US");
|
|
494
494
|
const [currency, setCurrency] = useState("");
|
|
495
495
|
const [error, setError] = useState("");
|
|
496
|
-
const parsed = parseStates(props.stateController)
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
console.log("stateController raw:", props.stateController, "parsed:", parsed, "overrides:", stateOverrides); // TEMP
|
|
496
|
+
const parsed = parseStates(props.stateController);
|
|
497
|
+
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
498
|
+
// @ts-ignore
|
|
500
499
|
return deepmerge({
|
|
501
500
|
states: {
|
|
502
501
|
brandName: "Test Brand",
|
|
@@ -550,5 +549,5 @@ function useDemoPartnerInfoModal(props) {
|
|
|
550
549
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
551
550
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
552
551
|
},
|
|
553
|
-
},
|
|
552
|
+
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
554
553
|
}
|
|
@@ -210,7 +210,7 @@ export function usePartnerInfoModal(props) {
|
|
|
210
210
|
open: showModal,
|
|
211
211
|
loading: userLoading || countriesLoading || currenciesLoading,
|
|
212
212
|
submitting: connectLoading,
|
|
213
|
-
isExistingPartner:
|
|
213
|
+
isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
|
|
214
214
|
countryCode,
|
|
215
215
|
currency,
|
|
216
216
|
error,
|