@saasquatch/mint-components 1.11.1-1 → 1.12.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-2c6026c3.js → ShadowViewAddon-88821c64.js} +229 -154
- package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
- package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
- package/dist/cjs/keys-cff24974.js +11 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1976e05e.js → re-render-5bde3d2e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +211 -105
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +278 -178
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification.cjs.entry.js +137 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-ce9a34ac.js} +20 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a2135064.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-050dbe0f.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -9
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -13
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +225 -272
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +33 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +127 -0
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/useEmailVerification-30a1c7f6.js +75 -0
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -10
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +9 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +22 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +105 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +44 -0
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
- package/dist/collection/components/sqm-share-button/useShareButton.js +16 -15
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -5
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -6
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +29 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +118 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +330 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +144 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +78 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +172 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +70 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +27 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +132 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +3 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +94 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +16 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +217 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +80 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/views/copy-text-view.js +2 -16
- package/dist/esm/{ShadowViewAddon-5bb2b69a.js → ShadowViewAddon-65c8679e.js} +227 -153
- package/dist/esm/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm/{index.module-f122af7b.js → index.module-6c840c4e.js} +40 -3
- package/dist/esm/keys-a1496e39.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-c64289f3.js → re-render-1bcfd0de.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +211 -105
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +275 -176
- package/dist/esm/sqm-close-button.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +133 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-08c03ba7.js} +20 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +9 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-referred-registration.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 +13 -13
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +212 -259
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-internal.entry.js +29 -0
- package/dist/esm/sqm-widget-verification.entry.js +123 -0
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/useEmailVerification-7135732c.js +72 -0
- package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +9 -9
- package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{utilities-18d10876.js → utilities-443732be.js} +1 -1
- package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
- package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm-es5/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/keys-a1496e39.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-c64289f3.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.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-invoice-table-view-08c03ba7.js +1 -0
- 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-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.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-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-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.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-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.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-scroll.entry.js +1 -0
- 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-widget-verification-internal.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +1 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
- package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/{utilities-18d10876.js → utilities-443732be.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-0121e044.js +1 -0
- package/dist/mint-components/{p-12c56ba6.entry.js → p-012daf3c.entry.js} +1 -1
- package/dist/mint-components/{p-1b1d10e5.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-8077e9c6.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-7962ab58.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/{p-01434e4a.entry.js → p-0893073b.entry.js} +1 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-117b4705.system.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/{p-dc41ff27.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +1 -0
- package/dist/mint-components/{p-991c9787.js → p-1d27da33.js} +2 -2
- package/dist/mint-components/p-1ee62d9f.system.entry.js +1 -0
- package/dist/mint-components/{p-de2a8fae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/p-1f9a9b70.system.entry.js +1 -0
- package/dist/mint-components/{p-5c845bc2.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/p-23fdd44e.entry.js +1 -0
- package/dist/mint-components/{p-3373d84e.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-a474b0ec.system.entry.js → p-36e9296e.system.entry.js} +1 -1
- package/dist/mint-components/p-36f7caec.system.entry.js +1 -0
- package/dist/mint-components/{p-b334bde8.entry.js → p-3925bcd6.entry.js} +2 -2
- package/dist/mint-components/p-39397731.entry.js +1 -0
- package/dist/mint-components/p-39af4acd.entry.js +240 -0
- package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
- package/dist/mint-components/{p-bf834367.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/{p-110dddfe.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-0f028514.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/p-4c9b6fbe.system.js +1 -0
- package/dist/mint-components/p-4e373c3d.system.js +1 -0
- package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
- package/dist/mint-components/{p-9deac406.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
- package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-246a2827.entry.js → p-5291891c.entry.js} +2 -2
- package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-55588b46.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/{p-22de9f73.system.entry.js → p-64491210.system.entry.js} +1 -1
- package/dist/mint-components/p-65e2c043.system.js +1 -0
- package/dist/mint-components/p-663303b7.entry.js +8 -0
- package/dist/mint-components/p-66a04cca.system.entry.js +1 -0
- package/dist/mint-components/{p-1df19ea2.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-96cb9c17.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/p-6cae44d7.js +1 -0
- package/dist/mint-components/{p-b0ce005d.entry.js → p-721a89c6.entry.js} +2 -2
- package/dist/mint-components/{p-6e62f207.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
- package/dist/mint-components/{p-daba8cd2.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +1 -0
- package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3d281ff.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-82e09b8d.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8a337864.js +7 -0
- package/dist/mint-components/{p-73decce7.system.js → p-8d554a89.system.js} +1 -1
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-94454880.entry.js +1 -0
- package/dist/mint-components/p-947fe79b.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-9288cca6.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
- package/dist/mint-components/p-9e0230c3.entry.js +1 -0
- package/dist/mint-components/{p-476182e7.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/p-a02afa72.system.js +1 -0
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-798ed3a2.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
- package/dist/mint-components/p-a5a9aa07.entry.js +189 -0
- package/dist/mint-components/p-a85f57bb.entry.js +1 -0
- package/dist/mint-components/{p-21d4f6ce.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/p-b1e8a802.entry.js +1 -0
- package/dist/mint-components/{p-fec0ac31.js → p-b651706a.js} +24 -24
- package/dist/mint-components/{p-14dac608.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-67846dce.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cc5474d.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c3b37bbf.js +1 -0
- package/dist/mint-components/{p-ff41c804.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/p-c763c0b2.js +1 -0
- package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -0
- package/dist/mint-components/{p-f52c3aec.system.entry.js → p-cb433855.system.entry.js} +1 -1
- package/dist/mint-components/{p-f44d88fa.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/{p-cfbe2f86.entry.js → p-d468925f.entry.js} +1 -1
- package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
- package/dist/mint-components/{p-9c3d78e9.js → p-d83b0cf3.js} +1 -1
- package/dist/mint-components/{p-6e7e8af6.system.js → p-def516b8.system.js} +1 -1
- package/dist/mint-components/{p-e41cb11f.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/{p-a1150633.system.entry.js → p-e12d3414.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/p-e93e5740.entry.js +1 -0
- package/dist/mint-components/p-e9ca48fc.system.entry.js +1 -0
- package/dist/mint-components/p-ead27698.system.entry.js +1 -0
- package/dist/mint-components/{p-1c6e4a5f.entry.js → p-f36e33ff.entry.js} +2 -2
- package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-f450654b.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c710e16.entry.js → p-f4cbbe47.entry.js} +1 -1
- package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-acc93caa.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-46ca288c.system.js → p-fc422446.system.js} +1 -1
- package/dist/mint-components/{p-fae82751.entry.js → p-fd21ae8f.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/{sqm-pagination/Pagination.stories.d.ts → sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts} +1 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +19 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
- package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +60 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +23 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +32 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +21 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -0
- package/dist/types/components/views/copy-text-view.d.ts +0 -2
- package/dist/types/components.d.ts +296 -170
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/copy-text-view-a22ad7e7.js +0 -173
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -316
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -85
- package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -51
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -99
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -75
- package/dist/esm/copy-text-view-bf55abeb.js +0 -168
- package/dist/esm/sqm-pagination_3.entry.js +0 -310
- package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +0 -1
- package/dist/esm-es5/copy-text-view-bf55abeb.js +0 -1
- package/dist/esm-es5/index.module-f122af7b.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-09cc28d6.js +0 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
- package/dist/mint-components/p-00be5090.js +0 -1
- package/dist/mint-components/p-0161f5da.entry.js +0 -13
- package/dist/mint-components/p-1099290c.system.js +0 -1
- package/dist/mint-components/p-18a7f543.system.entry.js +0 -1
- package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
- package/dist/mint-components/p-2e16db11.entry.js +0 -1
- package/dist/mint-components/p-41499327.entry.js +0 -1
- package/dist/mint-components/p-43a990b6.system.js +0 -1
- package/dist/mint-components/p-4856b234.system.entry.js +0 -1
- package/dist/mint-components/p-48b7d703.entry.js +0 -174
- package/dist/mint-components/p-494e407e.entry.js +0 -1
- package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
- package/dist/mint-components/p-5d37482d.entry.js +0 -1
- package/dist/mint-components/p-5fc8d87c.system.js +0 -1
- package/dist/mint-components/p-646d302a.system.js +0 -1
- package/dist/mint-components/p-6628bc0e.system.js +0 -1
- package/dist/mint-components/p-6b0e6a6c.js +0 -1
- package/dist/mint-components/p-73c6b26d.entry.js +0 -223
- package/dist/mint-components/p-89a760ea.js +0 -1
- package/dist/mint-components/p-942d1c22.entry.js +0 -33
- package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
- package/dist/mint-components/p-b5176703.entry.js +0 -1
- package/dist/mint-components/p-b71c0e2d.system.entry.js +0 -1
- package/dist/mint-components/p-bd4e9c2b.js +0 -1
- package/dist/mint-components/p-c37137cd.js +0 -2
- package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
- package/dist/mint-components/p-ca17d998.entry.js +0 -1
- package/dist/mint-components/p-d666b326.js +0 -1
- package/dist/mint-components/p-ea88142c.js +0 -1
- package/dist/mint-components/p-eb4e9efb.system.entry.js +0 -1
- package/dist/mint-components/p-ecefeaa9.system.entry.js +0 -1
- package/dist/mint-components/p-f1ec1180.entry.js +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
- package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -21
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -59
- package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
- package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { CopyTextView } from "../views/copy-text-view";
|
|
3
|
-
import scenario from "./ReferralCode.feature";
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/Referral Code",
|
|
6
|
-
parameters: {
|
|
7
|
-
scenario,
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
export const ReferralCode = () => {
|
|
11
|
-
return (h("sqm-referral-code", { tooltiptext: "Copied to Clipboard" }));
|
|
12
|
-
};
|
|
13
|
-
export const ShowNotificationText = () => {
|
|
14
|
-
return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before" }));
|
|
15
|
-
};
|
|
16
|
-
export const ShowNotificationTextWithButton = () => {
|
|
17
|
-
return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before", buttonStyle: "button-outside" }));
|
|
18
|
-
};
|
|
19
|
-
export const ShowNotificationTextWithButtonBelow = () => {
|
|
20
|
-
return (h("sqm-referral-code", { showNotificationText: true, notificationText: "You've copied this code before", buttonStyle: "button-below" }));
|
|
21
|
-
};
|
|
22
|
-
export const CustomTooltipText = () => {
|
|
23
|
-
return (h("sqm-referral-code", { tooltiptext: "CUSTOM TOOLTIP TEXT" }));
|
|
24
|
-
};
|
|
25
|
-
export const TextAlignCenter = () => {
|
|
26
|
-
return h("sqm-referral-code", { textAlign: "center" });
|
|
27
|
-
};
|
|
28
|
-
export const TextAlignRight = () => {
|
|
29
|
-
return h("sqm-referral-code", { textAlign: "right" });
|
|
30
|
-
};
|
|
31
|
-
export const CustomTooltipDuration = () => {
|
|
32
|
-
return (h("sqm-referral-code", { tooltiplifespan: 5000, tooltiptext: "CUSTOM TOOLTIP TEXT" }));
|
|
33
|
-
};
|
|
34
|
-
export const CopyButton = () => {
|
|
35
|
-
return (h(CopyTextView, Object.assign({}, {
|
|
36
|
-
copyString: "https://noah.example.com",
|
|
37
|
-
open: false,
|
|
38
|
-
tooltiptext: "Copied!",
|
|
39
|
-
isCopyIcon: false,
|
|
40
|
-
buttonStyle: "button-outside",
|
|
41
|
-
})));
|
|
42
|
-
};
|
|
43
|
-
export const CopyButtonBelow = () => {
|
|
44
|
-
return (h(CopyTextView, Object.assign({}, {
|
|
45
|
-
copyString: "https://noah.example.com",
|
|
46
|
-
open: false,
|
|
47
|
-
tooltiptext: "Copied!",
|
|
48
|
-
buttonStyle: "button-below",
|
|
49
|
-
})));
|
|
50
|
-
};
|
|
51
|
-
export const Error = () => {
|
|
52
|
-
const props = {
|
|
53
|
-
copyString: "https://noah.example.com",
|
|
54
|
-
disabled: true,
|
|
55
|
-
open: true,
|
|
56
|
-
tooltiptext: "Copied!",
|
|
57
|
-
error: true,
|
|
58
|
-
};
|
|
59
|
-
return h(CopyTextView, Object.assign({}, props));
|
|
60
|
-
};
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useState, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, Prop, h } from "@stencil/core";
|
|
4
|
-
import deepmerge from "deepmerge";
|
|
5
|
-
import { getProps } from "../../utils/utils";
|
|
6
|
-
import { CopyTextView } from "../views/copy-text-view";
|
|
7
|
-
import { useReferralCode } from "./useReferralCode";
|
|
8
|
-
/**
|
|
9
|
-
* @uiName Referral Code
|
|
10
|
-
* @exampleGroup Sharing
|
|
11
|
-
* @example Referral Code - <sqm-referral-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-referral-code>
|
|
12
|
-
*/
|
|
13
|
-
export class ReferralCode {
|
|
14
|
-
constructor() {
|
|
15
|
-
/**
|
|
16
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
17
|
-
*
|
|
18
|
-
* @uiName Tooltip text
|
|
19
|
-
*/
|
|
20
|
-
this.tooltiptext = "Copied to Clipboard";
|
|
21
|
-
/**
|
|
22
|
-
* Boolean used to show notification text below input
|
|
23
|
-
*
|
|
24
|
-
* @uiName Show notification text
|
|
25
|
-
*/
|
|
26
|
-
this.showNotificationText = false;
|
|
27
|
-
/**
|
|
28
|
-
* Shown underneath the referral code when the user has already copied the code
|
|
29
|
-
*
|
|
30
|
-
* @uiName Notification text
|
|
31
|
-
*/
|
|
32
|
-
this.notificationText = "You've copied this code before";
|
|
33
|
-
/**
|
|
34
|
-
* The number of milliseconds that the tooltip appears for
|
|
35
|
-
*
|
|
36
|
-
* @uiName Tooltip lifespan
|
|
37
|
-
*/
|
|
38
|
-
this.tooltiplifespan = 1000;
|
|
39
|
-
/**
|
|
40
|
-
* Change the text alignment
|
|
41
|
-
*
|
|
42
|
-
* @uiName referral code alignment
|
|
43
|
-
* @uiType string
|
|
44
|
-
* @uiEnum ["left", "center", "right"]
|
|
45
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
46
|
-
*/
|
|
47
|
-
this.textAlign = "left";
|
|
48
|
-
/**
|
|
49
|
-
* @uiName Copy button label
|
|
50
|
-
*/
|
|
51
|
-
this.copyButtonLabel = "Copy Code";
|
|
52
|
-
/**
|
|
53
|
-
* Set the copy button style and placement
|
|
54
|
-
*
|
|
55
|
-
* @uiName Style
|
|
56
|
-
* @uiType string
|
|
57
|
-
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
58
|
-
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
59
|
-
*/
|
|
60
|
-
this.buttonStyle = "icon";
|
|
61
|
-
withHooks(this);
|
|
62
|
-
}
|
|
63
|
-
disconnectedCallback() { }
|
|
64
|
-
render() {
|
|
65
|
-
const thisProps = getProps(this);
|
|
66
|
-
const props = isDemo()
|
|
67
|
-
? useDemoReferralCode(thisProps)
|
|
68
|
-
: useReferralCode(thisProps);
|
|
69
|
-
return h(CopyTextView, Object.assign({}, props));
|
|
70
|
-
}
|
|
71
|
-
static get is() { return "sqm-referral-code"; }
|
|
72
|
-
static get encapsulation() { return "shadow"; }
|
|
73
|
-
static get properties() { return {
|
|
74
|
-
"programId": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"mutable": false,
|
|
77
|
-
"complexType": {
|
|
78
|
-
"original": "string",
|
|
79
|
-
"resolved": "string",
|
|
80
|
-
"references": {}
|
|
81
|
-
},
|
|
82
|
-
"required": false,
|
|
83
|
-
"optional": true,
|
|
84
|
-
"docs": {
|
|
85
|
-
"tags": [{
|
|
86
|
-
"text": "Program ID",
|
|
87
|
-
"name": "uiName"
|
|
88
|
-
}, {
|
|
89
|
-
"text": "programSelector",
|
|
90
|
-
"name": "uiWidget"
|
|
91
|
-
}],
|
|
92
|
-
"text": "The ID of the program that should generate the code. Defaults to the program ID in context where this widget is loaded."
|
|
93
|
-
},
|
|
94
|
-
"attribute": "program-id",
|
|
95
|
-
"reflect": false
|
|
96
|
-
},
|
|
97
|
-
"tooltiptext": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"mutable": false,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "string",
|
|
102
|
-
"resolved": "string",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [{
|
|
109
|
-
"text": "Tooltip text",
|
|
110
|
-
"name": "uiName"
|
|
111
|
-
}],
|
|
112
|
-
"text": "Shown inside a tooltip after someone has successfully copied the link to their clipboard"
|
|
113
|
-
},
|
|
114
|
-
"attribute": "tooltip-text",
|
|
115
|
-
"reflect": false,
|
|
116
|
-
"defaultValue": "\"Copied to Clipboard\""
|
|
117
|
-
},
|
|
118
|
-
"showNotificationText": {
|
|
119
|
-
"type": "boolean",
|
|
120
|
-
"mutable": false,
|
|
121
|
-
"complexType": {
|
|
122
|
-
"original": "boolean",
|
|
123
|
-
"resolved": "boolean",
|
|
124
|
-
"references": {}
|
|
125
|
-
},
|
|
126
|
-
"required": false,
|
|
127
|
-
"optional": false,
|
|
128
|
-
"docs": {
|
|
129
|
-
"tags": [{
|
|
130
|
-
"text": "Show notification text",
|
|
131
|
-
"name": "uiName"
|
|
132
|
-
}],
|
|
133
|
-
"text": "Boolean used to show notification text below input"
|
|
134
|
-
},
|
|
135
|
-
"attribute": "show-notification-text",
|
|
136
|
-
"reflect": false,
|
|
137
|
-
"defaultValue": "false"
|
|
138
|
-
},
|
|
139
|
-
"notificationText": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"mutable": false,
|
|
142
|
-
"complexType": {
|
|
143
|
-
"original": "string",
|
|
144
|
-
"resolved": "string",
|
|
145
|
-
"references": {}
|
|
146
|
-
},
|
|
147
|
-
"required": false,
|
|
148
|
-
"optional": false,
|
|
149
|
-
"docs": {
|
|
150
|
-
"tags": [{
|
|
151
|
-
"text": "Notification text",
|
|
152
|
-
"name": "uiName"
|
|
153
|
-
}],
|
|
154
|
-
"text": "Shown underneath the referral code when the user has already copied the code"
|
|
155
|
-
},
|
|
156
|
-
"attribute": "notification-text",
|
|
157
|
-
"reflect": false,
|
|
158
|
-
"defaultValue": "\"You've copied this code before\""
|
|
159
|
-
},
|
|
160
|
-
"tooltiplifespan": {
|
|
161
|
-
"type": "number",
|
|
162
|
-
"mutable": false,
|
|
163
|
-
"complexType": {
|
|
164
|
-
"original": "number",
|
|
165
|
-
"resolved": "number",
|
|
166
|
-
"references": {}
|
|
167
|
-
},
|
|
168
|
-
"required": false,
|
|
169
|
-
"optional": false,
|
|
170
|
-
"docs": {
|
|
171
|
-
"tags": [{
|
|
172
|
-
"text": "Tooltip lifespan",
|
|
173
|
-
"name": "uiName"
|
|
174
|
-
}],
|
|
175
|
-
"text": "The number of milliseconds that the tooltip appears for"
|
|
176
|
-
},
|
|
177
|
-
"attribute": "tooltip-lifespan",
|
|
178
|
-
"reflect": false,
|
|
179
|
-
"defaultValue": "1000"
|
|
180
|
-
},
|
|
181
|
-
"textAlign": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"mutable": false,
|
|
184
|
-
"complexType": {
|
|
185
|
-
"original": "\"left\" | \"center\" | \"right\"",
|
|
186
|
-
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
187
|
-
"references": {}
|
|
188
|
-
},
|
|
189
|
-
"required": false,
|
|
190
|
-
"optional": false,
|
|
191
|
-
"docs": {
|
|
192
|
-
"tags": [{
|
|
193
|
-
"text": "referral code alignment",
|
|
194
|
-
"name": "uiName"
|
|
195
|
-
}, {
|
|
196
|
-
"text": "string",
|
|
197
|
-
"name": "uiType"
|
|
198
|
-
}, {
|
|
199
|
-
"text": "[\"left\", \"center\", \"right\"]",
|
|
200
|
-
"name": "uiEnum"
|
|
201
|
-
}, {
|
|
202
|
-
"text": "[\"Left\", \"Center\", \"Right\"]",
|
|
203
|
-
"name": "uiEnumNames"
|
|
204
|
-
}],
|
|
205
|
-
"text": "Change the text alignment"
|
|
206
|
-
},
|
|
207
|
-
"attribute": "text-align",
|
|
208
|
-
"reflect": false,
|
|
209
|
-
"defaultValue": "\"left\""
|
|
210
|
-
},
|
|
211
|
-
"copyButtonLabel": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"mutable": false,
|
|
214
|
-
"complexType": {
|
|
215
|
-
"original": "string",
|
|
216
|
-
"resolved": "string",
|
|
217
|
-
"references": {}
|
|
218
|
-
},
|
|
219
|
-
"required": false,
|
|
220
|
-
"optional": true,
|
|
221
|
-
"docs": {
|
|
222
|
-
"tags": [{
|
|
223
|
-
"text": "Copy button label",
|
|
224
|
-
"name": "uiName"
|
|
225
|
-
}],
|
|
226
|
-
"text": ""
|
|
227
|
-
},
|
|
228
|
-
"attribute": "copy-button-label",
|
|
229
|
-
"reflect": false,
|
|
230
|
-
"defaultValue": "\"Copy Code\""
|
|
231
|
-
},
|
|
232
|
-
"buttonStyle": {
|
|
233
|
-
"type": "string",
|
|
234
|
-
"mutable": false,
|
|
235
|
-
"complexType": {
|
|
236
|
-
"original": "\"icon\" | \"button-outside\" | \"button-below\"",
|
|
237
|
-
"resolved": "\"button-below\" | \"button-outside\" | \"icon\"",
|
|
238
|
-
"references": {}
|
|
239
|
-
},
|
|
240
|
-
"required": false,
|
|
241
|
-
"optional": true,
|
|
242
|
-
"docs": {
|
|
243
|
-
"tags": [{
|
|
244
|
-
"text": "Style",
|
|
245
|
-
"name": "uiName"
|
|
246
|
-
}, {
|
|
247
|
-
"text": "string",
|
|
248
|
-
"name": "uiType"
|
|
249
|
-
}, {
|
|
250
|
-
"text": "[\"icon\", \"button-outside\", \"button-below\"]",
|
|
251
|
-
"name": "uiEnum"
|
|
252
|
-
}, {
|
|
253
|
-
"text": "[\"Icon\", \"Button outside\", \"Button below\"]",
|
|
254
|
-
"name": "uiEnumNames"
|
|
255
|
-
}],
|
|
256
|
-
"text": "Set the copy button style and placement"
|
|
257
|
-
},
|
|
258
|
-
"attribute": "copy-button-style",
|
|
259
|
-
"reflect": false,
|
|
260
|
-
"defaultValue": "\"icon\""
|
|
261
|
-
},
|
|
262
|
-
"demoData": {
|
|
263
|
-
"type": "unknown",
|
|
264
|
-
"mutable": false,
|
|
265
|
-
"complexType": {
|
|
266
|
-
"original": "DemoData<CopyTextViewProps>",
|
|
267
|
-
"resolved": "{ loading?: boolean; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; onClick?: () => void; }",
|
|
268
|
-
"references": {
|
|
269
|
-
"DemoData": {
|
|
270
|
-
"location": "import",
|
|
271
|
-
"path": "../../global/demo"
|
|
272
|
-
},
|
|
273
|
-
"CopyTextViewProps": {
|
|
274
|
-
"location": "import",
|
|
275
|
-
"path": "../views/copy-text-view"
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
"required": false,
|
|
280
|
-
"optional": true,
|
|
281
|
-
"docs": {
|
|
282
|
-
"tags": [{
|
|
283
|
-
"text": undefined,
|
|
284
|
-
"name": "undocumented"
|
|
285
|
-
}, {
|
|
286
|
-
"text": "object",
|
|
287
|
-
"name": "uiType"
|
|
288
|
-
}],
|
|
289
|
-
"text": ""
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}; }
|
|
293
|
-
}
|
|
294
|
-
function useDemoReferralCode(props) {
|
|
295
|
-
const [open, setOpen] = useState(false);
|
|
296
|
-
const copyString = "REFERRALCODE001";
|
|
297
|
-
return deepmerge({
|
|
298
|
-
copyString: copyString,
|
|
299
|
-
tooltiptext: props.tooltiptext,
|
|
300
|
-
textAlign: props.textAlign,
|
|
301
|
-
copyButtonLabel: props.copyButtonLabel,
|
|
302
|
-
buttonStyle: props.buttonStyle,
|
|
303
|
-
notificationText: props.notificationText,
|
|
304
|
-
showNotificationText: props.showNotificationText,
|
|
305
|
-
rewardStatus: "AVAILABLE",
|
|
306
|
-
open,
|
|
307
|
-
onClick: () => {
|
|
308
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
309
|
-
// Only if called from a user-initiated event
|
|
310
|
-
navigator.clipboard.writeText(copyString);
|
|
311
|
-
setOpen(true);
|
|
312
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
313
|
-
},
|
|
314
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
315
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { useEngagementMedium, useMutation, useParentValue, useProgramId, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useState } from "@saasquatch/universal-hooks";
|
|
3
|
-
import { gql } from "graphql-request";
|
|
4
|
-
import { REFERRAL_CODES_NAMESPACE, } from "../sqm-referral-codes/useReferralCodes";
|
|
5
|
-
const MessageLinkQuery = gql `
|
|
6
|
-
query ($programId: ID) {
|
|
7
|
-
user: viewer {
|
|
8
|
-
... on User {
|
|
9
|
-
referralCode(programId: $programId)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
const WIDGET_ENGAGEMENT_EVENT = gql `
|
|
15
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
16
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
export function useReferralCode(props) {
|
|
20
|
-
var _a, _b;
|
|
21
|
-
const { programId = useProgramId() } = props;
|
|
22
|
-
const user = useUserIdentity();
|
|
23
|
-
const engagementMedium = useEngagementMedium();
|
|
24
|
-
const contextData = useParentValue(REFERRAL_CODES_NAMESPACE);
|
|
25
|
-
const { data } = useQuery(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
|
|
26
|
-
const [sendLoadEvent] = useMutation(WIDGET_ENGAGEMENT_EVENT);
|
|
27
|
-
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode))) !== null && _b !== void 0 ? _b :
|
|
28
|
-
// Shown during loading
|
|
29
|
-
"...";
|
|
30
|
-
const [open, setOpen] = useState(false);
|
|
31
|
-
function onClick() {
|
|
32
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
33
|
-
// Only if called from a user-initiated event
|
|
34
|
-
navigator.clipboard.writeText(copyString);
|
|
35
|
-
setOpen(true);
|
|
36
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
37
|
-
sendLoadEvent({
|
|
38
|
-
eventMeta: {
|
|
39
|
-
programId,
|
|
40
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
41
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
42
|
-
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
43
|
-
meta: {
|
|
44
|
-
engagementMedium,
|
|
45
|
-
shareMedium: "DIRECT",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return { ...props, onClick, open, copyString: copyString };
|
|
51
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import scenario from "./ReferralCodes.feature";
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/Referral Codes",
|
|
5
|
-
parameters: {
|
|
6
|
-
scenario,
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
const pagination = (slot) => {
|
|
10
|
-
return h("sqm-pagination", { slot: slot });
|
|
11
|
-
};
|
|
12
|
-
const shareButtons = (slot) => {
|
|
13
|
-
return (h("sqm-portal-container", { gap: "small", slot: slot },
|
|
14
|
-
h("sqm-share-button", { medium: "email" }, "Share via email"),
|
|
15
|
-
h("sqm-share-button", { medium: "facebook" }, "Share on Facebook"),
|
|
16
|
-
h("sqm-share-button", { medium: "whatsapp" }, "Share on WhatsApp")));
|
|
17
|
-
};
|
|
18
|
-
const shareCodes = (slot) => {
|
|
19
|
-
return h("sqm-referral-code", { slot: slot });
|
|
20
|
-
};
|
|
21
|
-
const shareCodeWithPreviouslyCopied = (slot) => {
|
|
22
|
-
return (h("sqm-referral-code", { slot: slot, showNotificationText: true, notificationText: "You\u2019ve copied this before." }));
|
|
23
|
-
};
|
|
24
|
-
export const ReferralCodes = () => {
|
|
25
|
-
return (h("sqm-referral-codes", null,
|
|
26
|
-
pagination("pagination"),
|
|
27
|
-
shareCodes("shareCodes"),
|
|
28
|
-
shareButtons("shareButtons")));
|
|
29
|
-
};
|
|
30
|
-
export const WithPreviouslyCopiedCode = () => {
|
|
31
|
-
return (h("sqm-referral-codes", null,
|
|
32
|
-
pagination("pagination"),
|
|
33
|
-
shareCodeWithPreviouslyCopied("shareCodes"),
|
|
34
|
-
shareButtons("shareButtons")));
|
|
35
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { createStyleSheet } from "../../styling/JSS";
|
|
3
|
-
const style = {
|
|
4
|
-
Wrapper: {
|
|
5
|
-
width: "100%",
|
|
6
|
-
display: "flex",
|
|
7
|
-
alignItems: "flex-start",
|
|
8
|
-
justifyContent: "center",
|
|
9
|
-
flexDirection: "column",
|
|
10
|
-
gap: "var(--sl-spacing-large)",
|
|
11
|
-
},
|
|
12
|
-
HeaderContainer: {
|
|
13
|
-
display: "flex",
|
|
14
|
-
alignItems: "center",
|
|
15
|
-
justifyContent: "space-between",
|
|
16
|
-
width: "100%",
|
|
17
|
-
},
|
|
18
|
-
ShareCodeContainer: {
|
|
19
|
-
width: "100%",
|
|
20
|
-
display: "flex",
|
|
21
|
-
alignItems: "flex-start",
|
|
22
|
-
justifyContent: "center",
|
|
23
|
-
flexDirection: "column",
|
|
24
|
-
},
|
|
25
|
-
ShareButtonContainer: {
|
|
26
|
-
width: "100%",
|
|
27
|
-
display: "flex",
|
|
28
|
-
alignItems: "flex-start",
|
|
29
|
-
justifyContent: "center",
|
|
30
|
-
flexDirection: "column",
|
|
31
|
-
},
|
|
32
|
-
TitleText: {
|
|
33
|
-
color: "var(--sl-color-neutral-700)",
|
|
34
|
-
fontSize: "var(--sl-font-size-large)",
|
|
35
|
-
margin: "0",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const vanillaStyle = `
|
|
39
|
-
:host {
|
|
40
|
-
display: block;
|
|
41
|
-
}
|
|
42
|
-
:host([hidden]): {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
const sheet = createStyleSheet(style);
|
|
47
|
-
const styleString = sheet.toString();
|
|
48
|
-
export function ReferralCodesView(props) {
|
|
49
|
-
const { slots, titleText } = props;
|
|
50
|
-
return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
51
|
-
h("style", { type: "text/css" },
|
|
52
|
-
vanillaStyle,
|
|
53
|
-
styleString),
|
|
54
|
-
h("div", { class: sheet.classes.HeaderContainer },
|
|
55
|
-
h("h2", { class: sheet.classes.TitleText }, titleText),
|
|
56
|
-
slots.pagination),
|
|
57
|
-
h("div", { class: sheet.classes.ShareCodeContainer }, slots.shareCodes),
|
|
58
|
-
h("div", { class: sheet.classes.ShareButtonContainer }, slots.shareButtons)));
|
|
59
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, Prop, h } from "@stencil/core";
|
|
4
|
-
import deepmerge from "deepmerge";
|
|
5
|
-
import { getProps } from "../../utils/utils";
|
|
6
|
-
import { useReferralCodes } from "./useReferralCodes";
|
|
7
|
-
import { ReferralCodesView, } from "./sqm-referral-codes-view";
|
|
8
|
-
/**
|
|
9
|
-
* @uiName Referral Codes
|
|
10
|
-
* @exampleGroup Sharing
|
|
11
|
-
* @example Referral Codes - <sqm-referral-codes><sqm-pagination slot="pagination"></sqm-pagination><sqm-referral-code slot="shareCodes"></sqm-referral-code><sqm-portal-container gap="small" slot="shareButtons"><sqm-share-button medium="email">Share via email</sqm-share-button><sqm-share-button medium="facebook">Share on Facebook</sqm-share-button><sqm-share-button medium="whatsapp">Share on WhatsApp</sqm-share-button></sqm-portal-container></sqm-referral-codes>
|
|
12
|
-
*/
|
|
13
|
-
export class ReferralCodes {
|
|
14
|
-
constructor() {
|
|
15
|
-
/**
|
|
16
|
-
* @uiName Title Text
|
|
17
|
-
*/
|
|
18
|
-
this.titleText = "Your referral code";
|
|
19
|
-
withHooks(this);
|
|
20
|
-
}
|
|
21
|
-
disconnectedCallback() { }
|
|
22
|
-
render() {
|
|
23
|
-
const thisProps = getProps(this);
|
|
24
|
-
const props = isDemo()
|
|
25
|
-
? useDemoReferralCodes(thisProps)
|
|
26
|
-
: useReferralCodes(thisProps);
|
|
27
|
-
console.log(props);
|
|
28
|
-
const slots = {
|
|
29
|
-
shareButtons: h("slot", { name: "shareButtons" }),
|
|
30
|
-
shareCodes: h("slot", { name: "shareCodes" }),
|
|
31
|
-
pagination: h("slot", { name: "pagination" }),
|
|
32
|
-
};
|
|
33
|
-
const viewProps = {
|
|
34
|
-
slots,
|
|
35
|
-
...props,
|
|
36
|
-
};
|
|
37
|
-
return h(ReferralCodesView, Object.assign({}, viewProps));
|
|
38
|
-
}
|
|
39
|
-
static get is() { return "sqm-referral-codes"; }
|
|
40
|
-
static get encapsulation() { return "shadow"; }
|
|
41
|
-
static get properties() { return {
|
|
42
|
-
"titleText": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"mutable": false,
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "string",
|
|
47
|
-
"resolved": "string",
|
|
48
|
-
"references": {}
|
|
49
|
-
},
|
|
50
|
-
"required": false,
|
|
51
|
-
"optional": true,
|
|
52
|
-
"docs": {
|
|
53
|
-
"tags": [{
|
|
54
|
-
"text": "Title Text",
|
|
55
|
-
"name": "uiName"
|
|
56
|
-
}],
|
|
57
|
-
"text": ""
|
|
58
|
-
},
|
|
59
|
-
"attribute": "title-text",
|
|
60
|
-
"reflect": false,
|
|
61
|
-
"defaultValue": "\"Your referral code\""
|
|
62
|
-
},
|
|
63
|
-
"demoData": {
|
|
64
|
-
"type": "unknown",
|
|
65
|
-
"mutable": false,
|
|
66
|
-
"complexType": {
|
|
67
|
-
"original": "DemoData<ReferralCodesViewProps>",
|
|
68
|
-
"resolved": "{ slots?: { shareButtons: VNode; shareCodes: VNode; pagination: VNode; }; titleText?: string; }",
|
|
69
|
-
"references": {
|
|
70
|
-
"DemoData": {
|
|
71
|
-
"location": "import",
|
|
72
|
-
"path": "../../global/demo"
|
|
73
|
-
},
|
|
74
|
-
"ReferralCodesViewProps": {
|
|
75
|
-
"location": "import",
|
|
76
|
-
"path": "./sqm-referral-codes-view"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": true,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [{
|
|
84
|
-
"text": undefined,
|
|
85
|
-
"name": "undocumented"
|
|
86
|
-
}, {
|
|
87
|
-
"text": "object",
|
|
88
|
-
"name": "uiType"
|
|
89
|
-
}],
|
|
90
|
-
"text": ""
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}; }
|
|
94
|
-
}
|
|
95
|
-
function useDemoReferralCodes(props) {
|
|
96
|
-
return deepmerge({
|
|
97
|
-
titleText: props.titleText,
|
|
98
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
99
|
-
}
|