@saasquatch/mint-components 1.15.0-46 → 1.15.0-48
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/IndirectTaxDetailsView-e379406f.js +646 -0
- package/dist/cjs/{ShadowViewAddon-85d2eed4.js → ShadowViewAddon-6816329b.js} +1019 -1019
- package/dist/cjs/data-68a42a7b.js +137 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/{global-2298fc8b.js → global-4a3008b4.js} +67 -80
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +294 -1991
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +184 -175
- package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-email-verification-view-0a93a148.js → sqm-portal-email-verification-view-9ba1a75d.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-44a83439.js → sqm-portal-profile-view-c4c80164.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-b18b42a8.js → sqm-qr-code-view-2cca145e.js} +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +12887 -11612
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1220 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -7
- package/dist/cjs/{usePayoutStatus-f26f0467.js → usePayoutStatus-3cca69e5.js} +8 -5
- package/dist/cjs/utils-1b04e1c8.js +105 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -3
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +3 -3
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +8 -8
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +3 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +4 -3
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +8 -8
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +9 -9
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -1
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +2 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +6 -5
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +4 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +4 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +9 -9
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +9 -9
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +1 -1
- package/dist/collection/components/sqm-stencilbook/Themes.js +170 -161
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +6 -6
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +42 -7
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +9 -9
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +14 -21
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/global/styles.js +67 -80
- package/dist/collection/global/styles.ts +58 -69
- package/dist/collection/stories/PortalTemplates.stories.js +22 -30
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/IndirectTaxDetailsView-1600022e.js +639 -0
- package/dist/esm/{ShadowViewAddon-d59ef625.js → ShadowViewAddon-b6b4ded9.js} +1022 -1022
- package/dist/esm/data-ce8ed0ae.js +121 -0
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/{global-2da1dcec.js → global-9c1112d1.js} +67 -80
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +218 -1908
- package/dist/esm/sqm-big-stat_42.entry.js +184 -175
- package/dist/esm/sqm-code-verification.entry.js +338 -0
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +7 -7
- package/dist/esm/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-10d41c81.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-7709257a.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-358607d1.js → sqm-qr-code-view-11121d3c.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -5
- package/dist/esm/sqm-stencilbook.entry.js +12688 -11413
- package/dist/esm/sqm-tax-and-cash.entry.js +1216 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -7
- package/dist/esm/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +8 -5
- package/dist/esm/utils-1d251439.js +97 -0
- package/dist/esm-es5/IndirectTaxDetailsView-1600022e.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-b6b4ded9.js +1 -0
- package/dist/esm-es5/data-ce8ed0ae.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-2da1dcec.js → global-9c1112d1.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-10d41c81.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-7709257a.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-358607d1.js → sqm-qr-code-view-11121d3c.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +2 -2
- package/dist/esm-es5/utils-1d251439.js +1 -0
- package/dist/mint-components/global/styles.ts +58 -69
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01082bad.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-9fcc7901.system.entry.js → p-07ad62e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2c48bc8.entry.js → p-114fcd0e.entry.js} +1 -1
- package/dist/mint-components/{p-f3a52eb6.js → p-11d52524.js} +1 -1
- package/dist/mint-components/{p-d4e49019.entry.js → p-16034601.entry.js} +1 -1
- package/dist/mint-components/p-1c8e7298.entry.js +11 -0
- package/dist/mint-components/p-1e79befd.entry.js +1 -0
- package/dist/mint-components/p-208b3b3d.js +1 -0
- package/dist/mint-components/p-2378a0dd.entry.js +16 -0
- package/dist/mint-components/p-27345611.system.entry.js +1 -0
- package/dist/mint-components/{p-7dac5a58.system.entry.js → p-2f46db5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-73069eba.entry.js → p-314ad8e8.entry.js} +1 -1
- package/dist/mint-components/p-3206d0a4.js +103 -0
- package/dist/mint-components/{p-5500bd38.js → p-3cb1d066.js} +1 -1
- package/dist/mint-components/{p-0e73c48c.system.js → p-4196d37a.system.js} +1 -1
- package/dist/mint-components/{p-fad1752b.system.entry.js → p-4e2e901f.system.entry.js} +1 -1
- package/dist/mint-components/p-53c69c51.system.js +1 -0
- package/dist/mint-components/{p-28aed7f7.system.entry.js → p-5737a72e.system.entry.js} +1 -1
- package/dist/mint-components/p-5c1daa3a.system.js +1 -0
- package/dist/mint-components/p-67d1a31e.entry.js +1 -0
- package/dist/mint-components/{p-7aba33e1.js → p-68e6e362.js} +1 -1
- package/dist/mint-components/{p-7daa731c.system.js → p-6964a69b.system.js} +1 -1
- package/dist/mint-components/{p-7953c3da.entry.js → p-76bfc42f.entry.js} +2 -2
- package/dist/mint-components/p-7dc10820.system.js +1 -0
- package/dist/mint-components/p-802762ab.system.js +1 -0
- package/dist/mint-components/{p-b090bbd2.js → p-8314626a.js} +32 -32
- package/dist/mint-components/{p-d49373b7.system.js → p-880bbd84.system.js} +1 -1
- package/dist/mint-components/p-8c126ccb.system.entry.js +1 -0
- package/dist/mint-components/{p-232996b5.system.entry.js → p-8f33e814.system.entry.js} +1 -1
- package/dist/mint-components/p-95216d0e.system.entry.js +1 -0
- package/dist/mint-components/{p-64e3e87a.entry.js → p-992ff197.entry.js} +1 -1
- package/dist/mint-components/{p-761ee9ea.entry.js → p-9aa2c2fe.entry.js} +2 -2
- package/dist/mint-components/{p-0019d57c.entry.js → p-9c298d88.entry.js} +1 -1
- package/dist/mint-components/{p-4ce7e3b1.entry.js → p-9c954c08.entry.js} +1 -1
- package/dist/mint-components/{p-3466bfaa.js → p-a341ce23.js} +2 -2
- package/dist/mint-components/p-a39c3535.system.entry.js +1 -0
- package/dist/mint-components/{p-5efed40f.system.js → p-a44b7a52.system.js} +2 -2
- package/dist/mint-components/p-a5177c16.system.entry.js +1 -0
- package/dist/mint-components/p-aea6d974.system.js +1 -0
- package/dist/mint-components/{p-cc5f9775.system.entry.js → p-afe1ea2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ae3ec51.system.js → p-b34966f6.system.js} +1 -1
- package/dist/mint-components/p-ba2c9746.system.entry.js +1 -0
- package/dist/mint-components/{p-e70d8201.system.entry.js → p-cf616a3d.system.entry.js} +1 -1
- package/dist/mint-components/{p-e1e96de9.entry.js → p-d8f692ed.entry.js} +19 -19
- package/dist/mint-components/{p-5cd3030b.system.entry.js → p-deca5ec3.system.entry.js} +1 -1
- package/dist/mint-components/p-e3a9496d.system.entry.js +1 -0
- package/dist/mint-components/p-e524056f.entry.js +1 -0
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-5125ec72.system.entry.js → p-e94a37bc.system.entry.js} +1 -1
- package/dist/mint-components/p-eb3d0880.entry.js +9 -0
- package/dist/mint-components/p-ec6ec018.entry.js +93 -0
- package/dist/mint-components/{p-836d3ec7.entry.js → p-f063930a.entry.js} +2 -2
- package/dist/mint-components/p-f2ebbbe3.system.entry.js +1 -0
- package/dist/mint-components/p-f54c5857.js +394 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +4 -4
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -1
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +4 -4
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +4 -4
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +3 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +3 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +4 -4
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +4 -4
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +5 -4
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +3 -3
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +1 -1
- package/dist/types/components.d.ts +99 -55
- package/dist/types/global/styles.d.ts +2 -1
- package/dist/types/saasquatch.d.ts +111 -48
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +0 -2038
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +0 -2022
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +0 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +0 -1
- package/dist/mint-components/p-097a255f.js +0 -1
- package/dist/mint-components/p-15ad1e97.entry.js +0 -16
- package/dist/mint-components/p-16c55bb4.entry.js +0 -205
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-31b8f0ca.system.js +0 -1
- package/dist/mint-components/p-62d924e6.system.entry.js +0 -1
- package/dist/mint-components/p-6bcac9ed.system.entry.js +0 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +0 -1
- package/dist/mint-components/p-a121e5a1.system.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-bfe08ca4.system.js +0 -1
- package/dist/mint-components/p-c53bd5bd.entry.js +0 -9
- package/dist/mint-components/p-e53c3c6e.system.js +0 -1
- package/dist/mint-components/p-f3558ef0.js +0 -394
- package/dist/mint-components/p-f66ccd51.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
|
@@ -37,18 +37,26 @@ function useTemplateChildren({ parent, callback }) {
|
|
|
37
37
|
const WidgetVerificationController = class {
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
index.registerInstance(this, hostRef);
|
|
40
|
+
/**
|
|
41
|
+
* @componentState { "title": "Not Verified", "slot": "not-verified", "props": { "isAuth": false } }
|
|
42
|
+
* @componentState { "title": "Verified", "slot": "verified", "props": { "isAuth": true } }
|
|
43
|
+
*/
|
|
44
|
+
this.stateController = "{}";
|
|
40
45
|
stencilHooks_module.h$1(this);
|
|
41
46
|
}
|
|
42
47
|
disconnectedCallback() { }
|
|
43
48
|
render() {
|
|
49
|
+
var _a;
|
|
44
50
|
const [context, setContext] = index_module.In({
|
|
45
51
|
namespace: keys.VERIFICATION_PARENT_NAMESPACE,
|
|
46
52
|
initialValue: false,
|
|
47
53
|
});
|
|
54
|
+
const props = JSON.parse(this.stateController);
|
|
55
|
+
const demoIsAuth = index_module.isDemo() && ((_a = props["sqm-widget-verification-controller"]) === null || _a === void 0 ? void 0 : _a.isAuth);
|
|
48
56
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
49
57
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
50
58
|
const updateTemplates = index_module.useCallback(() => {
|
|
51
|
-
const isAuth = context;
|
|
59
|
+
const isAuth = demoIsAuth || context;
|
|
52
60
|
const templates = slot.querySelectorAll(`template`);
|
|
53
61
|
const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
|
|
54
62
|
if (template) {
|
|
@@ -96,7 +104,7 @@ const WidgetVerificationController = class {
|
|
|
96
104
|
target.style.height = "25px";
|
|
97
105
|
});
|
|
98
106
|
}
|
|
99
|
-
}, [container, slot, context]);
|
|
107
|
+
}, [container, slot, context, demoIsAuth]);
|
|
100
108
|
stencilHooks_module.useEffect(() => {
|
|
101
109
|
if (!container || !slot) {
|
|
102
110
|
debug("DOM not ready:");
|
|
@@ -105,7 +113,7 @@ const WidgetVerificationController = class {
|
|
|
105
113
|
// Run on first render
|
|
106
114
|
updateTemplates();
|
|
107
115
|
return useTemplateChildren({ parent: slot, callback: updateTemplates });
|
|
108
|
-
}, [slot, container, context]);
|
|
116
|
+
}, [slot, container, context, demoIsAuth]);
|
|
109
117
|
return (index.h(index.Host, null, index.h("div", { ref: setSlot, style: { display: "contents" } }, index.h("slot", { name: "not-verified" }), index.h("slot", { name: "verified" })), index.h("div", { ref: setContainer }, index.h("slot", { name: "shown" }))));
|
|
110
118
|
}
|
|
111
119
|
};
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
7
|
const index_module = require('./index.module-39955732.js');
|
|
8
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
8
9
|
const utils = require('./utils-6847bc06.js');
|
|
9
|
-
const extractProps = require('./extractProps-
|
|
10
|
+
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
10
11
|
const keys = require('./keys-cff24974.js');
|
|
11
12
|
|
|
12
13
|
const USER_LOOKUP = index_module.dist.gql `
|
|
@@ -163,6 +164,11 @@ const WidgetVerification = class {
|
|
|
163
164
|
* @uiGroup Code Verification Step
|
|
164
165
|
*/
|
|
165
166
|
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
167
|
+
/**
|
|
168
|
+
* @componentState { "title": "Email Step", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"] }
|
|
169
|
+
* @componentState { "title": "Code Step", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"] }
|
|
170
|
+
*/
|
|
171
|
+
this.stateController = "{}";
|
|
166
172
|
stencilHooks_module.h$1(this);
|
|
167
173
|
}
|
|
168
174
|
disconnectedCallback() { }
|
|
@@ -171,20 +177,20 @@ const WidgetVerification = class {
|
|
|
171
177
|
return extractProps.extractProps(props, prefix);
|
|
172
178
|
}
|
|
173
179
|
render() {
|
|
174
|
-
const
|
|
175
|
-
? useDemoWidgetVerificationInternal()
|
|
180
|
+
const props = index_module.isDemo()
|
|
181
|
+
? useDemoWidgetVerificationInternal(this)
|
|
176
182
|
: useWidgetVerification();
|
|
177
|
-
if (loading)
|
|
183
|
+
if (props.loading)
|
|
178
184
|
return index.h("sl-spinner", null);
|
|
179
185
|
const generalText = this.getStepTextProps("general_");
|
|
180
186
|
return (index.h("div", null, index.h("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), index.h("p", { style: {
|
|
181
187
|
color: "var(--sl-color-neutral-500)",
|
|
182
188
|
fontSize: "var(--sl-font-size-medium)",
|
|
183
189
|
margin: "0",
|
|
184
|
-
} }, generalText.verifyEmailDescription), showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: onVerification }, this.getStepTextProps("codeStep_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"))))));
|
|
190
|
+
} }, generalText.verifyEmailDescription), props.showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps.extractProps(props, "sqm-code-verification_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps.extractProps(props, "sqm-email-verification_"))))));
|
|
185
191
|
}
|
|
186
192
|
};
|
|
187
|
-
function useDemoWidgetVerificationInternal() {
|
|
193
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
188
194
|
const [showCode, setShowCode] = index_module.In({
|
|
189
195
|
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
190
196
|
initialValue: false,
|
|
@@ -194,10 +200,14 @@ function useDemoWidgetVerificationInternal() {
|
|
|
194
200
|
initialValue: undefined,
|
|
195
201
|
});
|
|
196
202
|
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
203
|
+
const states = extractProps.parseStates(props.stateController);
|
|
204
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
205
|
+
? { ...prev, ...states[key] }
|
|
206
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
197
207
|
const onVerification = () => {
|
|
198
208
|
setContext(true);
|
|
199
209
|
};
|
|
200
|
-
return { showCode, onVerification, loading: false };
|
|
210
|
+
return cjs.cjs({ showCode, onVerification, loading: false }, formatted || {}, { arrayMerge: (_, a) => a });
|
|
201
211
|
}
|
|
202
212
|
|
|
203
213
|
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -986,17 +986,20 @@ const GET_USER_STATUS = index_module.dist.gql `
|
|
|
986
986
|
}
|
|
987
987
|
`;
|
|
988
988
|
function getStatus(data) {
|
|
989
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
989
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
990
990
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
991
991
|
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
992
992
|
return "INFORMATION_REQUIRED";
|
|
993
|
-
if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
993
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
994
|
+
return "DONE";
|
|
995
|
+
}
|
|
996
|
+
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
994
997
|
return "VERIFICATION:REQUIRED";
|
|
995
|
-
if ((
|
|
998
|
+
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
996
999
|
return "VERIFICATION:INTERNAL";
|
|
997
|
-
if ((
|
|
1000
|
+
if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
998
1001
|
return "VERIFICATION:REVIEW";
|
|
999
|
-
if ((
|
|
1002
|
+
if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1000
1003
|
return "VERIFICATION:FAILED";
|
|
1001
1004
|
if (account.hold)
|
|
1002
1005
|
return "HOLD";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-a43a63b4.js');
|
|
4
|
+
const global = require('./global-4a3008b4.js');
|
|
5
|
+
const JSS = require('./JSS-8503a151.js');
|
|
6
|
+
|
|
7
|
+
const style = {
|
|
8
|
+
Container: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: "24px",
|
|
12
|
+
},
|
|
13
|
+
HeaderContainer: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
gap: "10px",
|
|
17
|
+
},
|
|
18
|
+
TitleSkeleton: {
|
|
19
|
+
width: "45%",
|
|
20
|
+
height: "40px !important",
|
|
21
|
+
},
|
|
22
|
+
StepSkeleton: {
|
|
23
|
+
width: "15%",
|
|
24
|
+
},
|
|
25
|
+
HeaderSkeleton: {
|
|
26
|
+
width: "25%",
|
|
27
|
+
height: "30px !important",
|
|
28
|
+
},
|
|
29
|
+
InputSkeleton: {
|
|
30
|
+
width: "75%",
|
|
31
|
+
},
|
|
32
|
+
ButtonSkeleton: {
|
|
33
|
+
width: "80px",
|
|
34
|
+
height: "30px !important",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const sheet = JSS.createStyleSheet(style);
|
|
38
|
+
const styleString = sheet.toString();
|
|
39
|
+
const LoadingView = () => {
|
|
40
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
41
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
42
|
+
index.h("sl-skeleton", { class: sheet.classes.TitleSkeleton }),
|
|
43
|
+
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
44
|
+
index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
45
|
+
index.h("sl-skeleton", { class: sheet.classes.HeaderSkeleton })),
|
|
46
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
47
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
48
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
49
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
50
|
+
index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
|
|
51
|
+
index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
|
|
52
|
+
index.h("sl-skeleton", { class: sheet.classes.ButtonSkeleton })));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
function validTaxDocument(requiredType) {
|
|
56
|
+
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
57
|
+
if (validTypes.includes(requiredType))
|
|
58
|
+
return true;
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
const objectIsFull = (obj) => {
|
|
62
|
+
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
63
|
+
};
|
|
64
|
+
const taxTypeToName = (taxType) => {
|
|
65
|
+
switch (taxType) {
|
|
66
|
+
case "W9":
|
|
67
|
+
return "W-9";
|
|
68
|
+
case "W8BEN":
|
|
69
|
+
case "W8BENE":
|
|
70
|
+
return "W-8";
|
|
71
|
+
default:
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
function validateBillingField(regex, value) {
|
|
76
|
+
const trimmed = value.trim();
|
|
77
|
+
const idx = trimmed.search(regex);
|
|
78
|
+
return idx > -1;
|
|
79
|
+
}
|
|
80
|
+
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
81
|
+
return global.intl.formatMessage({
|
|
82
|
+
id: fieldName,
|
|
83
|
+
defaultMessage: errorMessage,
|
|
84
|
+
}, {
|
|
85
|
+
fieldName,
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
function getCountryObj({ countryCode, locale, }) {
|
|
89
|
+
// @ts-ignore DisplayNames not in Intl type
|
|
90
|
+
const displayName = new Intl.DisplayNames([locale], {
|
|
91
|
+
type: "region",
|
|
92
|
+
}).of(countryCode);
|
|
93
|
+
return {
|
|
94
|
+
countryCode,
|
|
95
|
+
displayName,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
exports.LoadingView = LoadingView;
|
|
100
|
+
exports.formatErrorMessage = formatErrorMessage;
|
|
101
|
+
exports.getCountryObj = getCountryObj;
|
|
102
|
+
exports.objectIsFull = objectIsFull;
|
|
103
|
+
exports.taxTypeToName = taxTypeToName;
|
|
104
|
+
exports.validTaxDocument = validTaxDocument;
|
|
105
|
+
exports.validateBillingField = validateBillingField;
|
|
@@ -23,9 +23,6 @@ export const CouponCode = () => {
|
|
|
23
23
|
export const CouponCodeWithSecondaryButtonType = () => {
|
|
24
24
|
return (h("sqm-coupon-code", { tooltiptext: "Copied to Clipboard", buttonType: "secondary", buttonStyle: "button-outside" }));
|
|
25
25
|
};
|
|
26
|
-
export const CouponCodeWithTertiaryButtonType = () => {
|
|
27
|
-
return (h("sqm-coupon-code", { tooltiptext: "Copied to Clipboard", buttonType: "tertiary", buttonStyle: "button-outside" }));
|
|
28
|
-
};
|
|
29
26
|
export const CustomTooltipText = () => {
|
|
30
27
|
return h("sqm-coupon-code", { tooltiptext: "CUSTOM TOOLTIP TEXT" });
|
|
31
28
|
};
|
|
@@ -576,8 +576,8 @@ export class CouponCode {
|
|
|
576
576
|
"type": "string",
|
|
577
577
|
"mutable": false,
|
|
578
578
|
"complexType": {
|
|
579
|
-
"original": "\"primary\" | \"secondary\"
|
|
580
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
579
|
+
"original": "\"primary\" | \"secondary\"",
|
|
580
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
581
581
|
"references": {}
|
|
582
582
|
},
|
|
583
583
|
"required": false,
|
|
@@ -639,7 +639,7 @@ export class CouponCode {
|
|
|
639
639
|
"mutable": false,
|
|
640
640
|
"complexType": {
|
|
641
641
|
"original": "DemoData<CouponCodeViewProps>",
|
|
642
|
-
"resolved": "{ loading?: boolean; textColor?: string; errorType?: \"error\" | \"warning\" | \"info\" | \"success\"; couponCodeLabel?: string; buttonType?: \"primary\" | \"secondary\"
|
|
642
|
+
"resolved": "{ loading?: boolean; textColor?: string; errorType?: \"error\" | \"warning\" | \"info\" | \"success\"; couponCodeLabel?: string; buttonType?: \"primary\" | \"secondary\"; 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; isCopied?: boolean; backgroundColor?: string; borderRadius?: string; borderColor?: string; onClick?: () => void; }",
|
|
643
643
|
"references": {
|
|
644
644
|
"DemoData": {
|
|
645
645
|
"location": "import",
|
|
@@ -68,11 +68,11 @@ export class HeroImage {
|
|
|
68
68
|
*/
|
|
69
69
|
this.paddingImage = "none";
|
|
70
70
|
/**
|
|
71
|
-
* The type of the button that is used (primary
|
|
71
|
+
* The type of the button that is used (primary or secondary).
|
|
72
72
|
* @uiName Button Type
|
|
73
73
|
* @uiType string
|
|
74
|
-
* @uiEnum ["primary", "secondary"
|
|
75
|
-
* @uiEnumNames ["Primary", "Secondary"
|
|
74
|
+
* @uiEnum ["primary", "secondary"]
|
|
75
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
76
76
|
* @uiGroup Style
|
|
77
77
|
*/
|
|
78
78
|
this.buttonType = "primary";
|
|
@@ -536,8 +536,8 @@ export class HeroImage {
|
|
|
536
536
|
"type": "string",
|
|
537
537
|
"mutable": false,
|
|
538
538
|
"complexType": {
|
|
539
|
-
"original": "\"primary\" | \"secondary\"
|
|
540
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
539
|
+
"original": "\"primary\" | \"secondary\"",
|
|
540
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
541
541
|
"references": {}
|
|
542
542
|
},
|
|
543
543
|
"required": false,
|
|
@@ -550,16 +550,16 @@ export class HeroImage {
|
|
|
550
550
|
"text": "string",
|
|
551
551
|
"name": "uiType"
|
|
552
552
|
}, {
|
|
553
|
-
"text": "[\"primary\", \"secondary\"
|
|
553
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
554
554
|
"name": "uiEnum"
|
|
555
555
|
}, {
|
|
556
|
-
"text": "[\"Primary\", \"Secondary\"
|
|
556
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
557
557
|
"name": "uiEnumNames"
|
|
558
558
|
}, {
|
|
559
559
|
"text": "Style",
|
|
560
560
|
"name": "uiGroup"
|
|
561
561
|
}],
|
|
562
|
-
"text": "The type of the button that is used (primary
|
|
562
|
+
"text": "The type of the button that is used (primary or secondary)."
|
|
563
563
|
},
|
|
564
564
|
"attribute": "button-type",
|
|
565
565
|
"reflect": false,
|
|
@@ -9,7 +9,7 @@ import { useInstantAccessRegistration } from "./useInstantAccessRegistration";
|
|
|
9
9
|
* @validParents ["sqm-portal-container","div","sqm-hero","template", "sqb-program-section", "sqb-conditional-section"]
|
|
10
10
|
* @compatibility Built for instant access
|
|
11
11
|
* @exampleGroup Instant Access
|
|
12
|
-
* @example
|
|
12
|
+
* @example Instant Access Registration - <sqm-instant-access-registration></sqm-instant-access-registration>
|
|
13
13
|
* @slots [{"name":"top","title":"Top Content"},{"name":"bottom","title":"Bottom Content"}]
|
|
14
14
|
*/
|
|
15
15
|
export class InstantAccessRegistration {
|
package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
|
|
|
5
5
|
* @uiName Invoice Table Date Column
|
|
6
6
|
* @validParents ["sqm-invoice-table"]
|
|
7
7
|
* @exampleGroup Invoices
|
|
8
|
-
* @example Date Column - <sqm-invoice-table-date-column column-title="Date converted" date-shown="dateConverted"></sqm-invoice-table-date-column>
|
|
8
|
+
* @example Invoice Table Date Column - <sqm-invoice-table-date-column column-title="Date converted" date-shown="dateConverted"></sqm-invoice-table-date-column>
|
|
9
9
|
*/
|
|
10
10
|
export class InvoiceTableDateColumn {
|
|
11
11
|
constructor() {
|
|
@@ -63,7 +63,8 @@ export class InvoiceTableDateColumn {
|
|
|
63
63
|
"location": "global"
|
|
64
64
|
},
|
|
65
65
|
"Invoice": {
|
|
66
|
-
"location": "
|
|
66
|
+
"location": "import",
|
|
67
|
+
"path": "../../../saasquatch"
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
"return": "Promise<any>"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
3
|
import { useEffect, useMemo, useReducer } from "@saasquatch/universal-hooks";
|
|
3
4
|
import { Component, h, Prop } from "@stencil/core";
|
|
@@ -5,10 +6,9 @@ import deepmerge from "deepmerge";
|
|
|
5
6
|
import { GenericTableView, } from "../../tables/GenericTableView";
|
|
6
7
|
import { useRequestRerender, useRerenderListener, } from "../../tables/re-render";
|
|
7
8
|
import { useChildElements } from "../../tables/useChildElements";
|
|
8
|
-
import { tryMethod, useInvoiceTable } from "./useInvoiceTable";
|
|
9
9
|
import mockInvoiceData from "./mockInvoiceData";
|
|
10
|
-
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
11
10
|
import { InvoiceTableView } from "./sqm-invoice-table-view";
|
|
11
|
+
import { tryMethod, useInvoiceTable } from "./useInvoiceTable";
|
|
12
12
|
/**
|
|
13
13
|
* @uiName Invoice Table
|
|
14
14
|
* @exampleGroup Invoices
|
|
@@ -332,7 +332,8 @@ export class InvoiceTable {
|
|
|
332
332
|
"path": "../../tables/GenericTableView"
|
|
333
333
|
},
|
|
334
334
|
"Invoice": {
|
|
335
|
-
"location": "
|
|
335
|
+
"location": "import",
|
|
336
|
+
"path": "../../saasquatch"
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
339
|
},
|
|
@@ -11,9 +11,9 @@ import { useLeaderboard } from "./useLeaderboard";
|
|
|
11
11
|
* @slots [{"name":"empty", "title":"Empty State"}]
|
|
12
12
|
* @requiredFeatures ["LEADERBOARDS"]
|
|
13
13
|
* @exampleGroup Leaderboard
|
|
14
|
-
* @example Referral Started - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
15
|
-
* @example Referral Converted - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topConvertedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
16
|
-
* @example Points Earned - <sqm-leaderboard usersheading="Name" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Points" rank-type="rank" leaderboard-type="topPointEarners" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
14
|
+
* @example Referral Started Leaderboard - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
15
|
+
* @example Referral Converted Leaderboard - <sqm-leaderboard usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topConvertedReferrers" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
16
|
+
* @example Points Earned Leaderboard - <sqm-leaderboard usersheading="Name" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Points" rank-type="rank" leaderboard-type="topPointEarners" rankheading="Rank" show-rank="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
17
17
|
* @example Anonymous Leaderboard - <div style="display: flex; align-items: flex-start; justify-content: center; width: 100%; gap: 50px;"><div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; max-width: 30%;"><sqm-image width="70%" alignment="center" image-url="https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"></sqm-image><h2 style="margin: auto;">Top Performers</h2><p style="margin: 0; text-align: center;">The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!</p></div><sqm-leaderboard width="300px" usersheading="Referrer" rank-suffix="{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}" statsheading="Referrals" rank-type="rank" leaderboard-type="topStartedReferrers" rankheading="Rank" show-rank="true" hide-names="true" hide-viewer="true"><sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard"></sqm-empty></sqm-leaderboard></div>
|
|
18
18
|
* @featureTooltip <div>Motivate your participants by gamifying your program. Contact <a href="mailto:saasquatch-support%40impact.com?subject=Next steps for Leaderboards feature&body=Hi Support Team, %0D%0A%0D%0A I am interested in learning more about how Leaderboards can support the growth of our referral program. Please connect me with a program strategy manager to discuss this feature further, and determine the next steps.%0D%0A%0D%0A%0D%0AThank you,%0D%0A[Add your name here]">Support</a> to upgrade your plan and add a leaderboard.</div>
|
|
19
19
|
*/
|
|
@@ -122,7 +122,7 @@ export class LogoutCurrentUser {
|
|
|
122
122
|
"mutable": false,
|
|
123
123
|
"complexType": {
|
|
124
124
|
"original": "DemoData<CopyTextViewProps>",
|
|
125
|
-
"resolved": "{ loading?: boolean; textColor?: string; buttonType?: \"primary\" | \"secondary\"
|
|
125
|
+
"resolved": "{ loading?: boolean; textColor?: string; buttonType?: \"primary\" | \"secondary\"; 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; isCopied?: boolean; backgroundColor?: string; borderRadius?: string; borderColor?: string; onClick?: () => void; }",
|
|
126
126
|
"references": {
|
|
127
127
|
"DemoData": {
|
|
128
128
|
"location": "import",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createStyleSheet } from "../../styling/JSS";
|
|
3
2
|
import { ErrorStyles } from "../../global/mixins";
|
|
3
|
+
import { createStyleSheet } from "../../styling/JSS";
|
|
4
4
|
const style = {
|
|
5
5
|
ErrorStyle: ErrorStyles,
|
|
6
6
|
FieldsContainer: {
|
|
@@ -26,7 +26,7 @@ const vanillaStyle = `
|
|
|
26
26
|
background-color: var(--sqm-input-background, #fff);
|
|
27
27
|
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
28
28
|
color: var(--sqm-input-color, white);
|
|
29
|
-
border-width: var(--sqm-border-
|
|
29
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
sl-input::part(base):focus,
|
|
@@ -20,11 +20,11 @@ export class Pagination {
|
|
|
20
20
|
*/
|
|
21
21
|
this.paginationText = "{currentPage} of {totalPages}";
|
|
22
22
|
/**
|
|
23
|
-
* The type of the button that is used (primary
|
|
23
|
+
* The type of the button that is used (primary or secondary).
|
|
24
24
|
* @uiName Button Type
|
|
25
25
|
* @uiType string
|
|
26
|
-
* @uiEnum ["primary", "secondary"
|
|
27
|
-
* @uiEnumNames ["Primary", "Secondary"
|
|
26
|
+
* @uiEnum ["primary", "secondary"]
|
|
27
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
28
28
|
* @uiGroup Style
|
|
29
29
|
*/
|
|
30
30
|
this.buttonType = "secondary";
|
|
@@ -65,8 +65,8 @@ export class Pagination {
|
|
|
65
65
|
"type": "string",
|
|
66
66
|
"mutable": false,
|
|
67
67
|
"complexType": {
|
|
68
|
-
"original": "\"primary\" | \"secondary\"
|
|
69
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
68
|
+
"original": "\"primary\" | \"secondary\"",
|
|
69
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
70
70
|
"references": {}
|
|
71
71
|
},
|
|
72
72
|
"required": false,
|
|
@@ -79,16 +79,16 @@ export class Pagination {
|
|
|
79
79
|
"text": "string",
|
|
80
80
|
"name": "uiType"
|
|
81
81
|
}, {
|
|
82
|
-
"text": "[\"primary\", \"secondary\"
|
|
82
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
83
83
|
"name": "uiEnum"
|
|
84
84
|
}, {
|
|
85
|
-
"text": "[\"Primary\", \"Secondary\"
|
|
85
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
86
86
|
"name": "uiEnumNames"
|
|
87
87
|
}, {
|
|
88
88
|
"text": "Style",
|
|
89
89
|
"name": "uiGroup"
|
|
90
90
|
}],
|
|
91
|
-
"text": "The type of the button that is used (primary
|
|
91
|
+
"text": "The type of the button that is used (primary or secondary)."
|
|
92
92
|
},
|
|
93
93
|
"attribute": "button-type",
|
|
94
94
|
"reflect": false,
|
|
@@ -89,5 +89,5 @@ export function QrCodeView({ error, qrLink, titleText, downloadCodeText, printCo
|
|
|
89
89
|
codeContent,
|
|
90
90
|
h("div", { class: sheet.classes.ButtonContainer },
|
|
91
91
|
h("sl-button", { size: "small", exportparts: "base: primarybutton-base", type: "primary", onClick: createDownloadable }, downloadCodeText),
|
|
92
|
-
h("sl-button", { size: "small", exportparts: "base:
|
|
92
|
+
h("sl-button", { size: "small", exportparts: "base: secondarybutton-base", type: "text", onClick: createPrintable }, printCodeText)))));
|
|
93
93
|
}
|
|
@@ -62,11 +62,11 @@ export class ReferralCode {
|
|
|
62
62
|
*/
|
|
63
63
|
this.buttonStyle = "icon";
|
|
64
64
|
/**
|
|
65
|
-
* The type of the button that is used (primary
|
|
65
|
+
* The type of the button that is used (primary or secondary).
|
|
66
66
|
* @uiName Button Type
|
|
67
67
|
* @uiType string
|
|
68
|
-
* @uiEnum ["primary", "secondary"
|
|
69
|
-
* @uiEnumNames ["Primary", "Secondary"
|
|
68
|
+
* @uiEnum ["primary", "secondary"]
|
|
69
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
70
70
|
* @uiGroup Style
|
|
71
71
|
*/
|
|
72
72
|
this.buttonType = "primary";
|
|
@@ -394,8 +394,8 @@ export class ReferralCode {
|
|
|
394
394
|
"type": "string",
|
|
395
395
|
"mutable": false,
|
|
396
396
|
"complexType": {
|
|
397
|
-
"original": "\"primary\" | \"secondary\"
|
|
398
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
397
|
+
"original": "\"primary\" | \"secondary\"",
|
|
398
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
399
399
|
"references": {}
|
|
400
400
|
},
|
|
401
401
|
"required": false,
|
|
@@ -408,16 +408,16 @@ export class ReferralCode {
|
|
|
408
408
|
"text": "string",
|
|
409
409
|
"name": "uiType"
|
|
410
410
|
}, {
|
|
411
|
-
"text": "[\"primary\", \"secondary\"
|
|
411
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
412
412
|
"name": "uiEnum"
|
|
413
413
|
}, {
|
|
414
|
-
"text": "[\"Primary\", \"Secondary\"
|
|
414
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
415
415
|
"name": "uiEnumNames"
|
|
416
416
|
}, {
|
|
417
417
|
"text": "Style",
|
|
418
418
|
"name": "uiGroup"
|
|
419
419
|
}],
|
|
420
|
-
"text": "The type of the button that is used (primary
|
|
420
|
+
"text": "The type of the button that is used (primary or secondary)."
|
|
421
421
|
},
|
|
422
422
|
"attribute": "button-type",
|
|
423
423
|
"reflect": false,
|
|
@@ -428,7 +428,7 @@ export class ReferralCode {
|
|
|
428
428
|
"mutable": false,
|
|
429
429
|
"complexType": {
|
|
430
430
|
"original": "DemoData<CopyTextViewProps>",
|
|
431
|
-
"resolved": "{ loading?: boolean; textColor?: string; buttonType?: \"primary\" | \"secondary\"
|
|
431
|
+
"resolved": "{ loading?: boolean; textColor?: string; buttonType?: \"primary\" | \"secondary\"; 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; isCopied?: boolean; backgroundColor?: string; borderRadius?: string; borderColor?: string; onClick?: () => void; }",
|
|
432
432
|
"references": {
|
|
433
433
|
"DemoData": {
|
|
434
434
|
"location": "import",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { GenericTableView } from "../../tables/GenericTableView";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Converted as ConvertedStatus, DateCell, Denied as DeniedStatus, InProgress, PendingReview as PendingReviewStatus, Pending as PendingStatus, } from "./ReferralTableCell.stories";
|
|
4
|
+
import { AvailableNoExpiry, Denied, PayoutCancelled, PayoutFailed, PayoutSent, PendingNewTaxForm, PendingNoUnpend, PendingPartnerCreation, PendingReview, PendingTaxReview, PendingTaxSubmission, Redeemed, } from "./ReferralTableRewardsCell.stories";
|
|
5
5
|
import scenario from "./referral-table.feature";
|
|
6
6
|
export default {
|
|
7
7
|
title: "Components/Referral Table",
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Component, h, Prop } from "@stencil/core";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
|
-
import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
4
|
-
import { createStyleSheet } from "../../../styling/JSS";
|
|
5
3
|
import { intl } from "../../../global/global";
|
|
4
|
+
import { createStyleSheet } from "../../../styling/JSS";
|
|
6
5
|
import { luxonLocale } from "../../../utils/utils";
|
|
6
|
+
import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
7
7
|
export class ReferralTableRewardsCell {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
@@ -312,7 +312,8 @@ export class ReferralTableRewardsCell {
|
|
|
312
312
|
"resolved": "Reward[]",
|
|
313
313
|
"references": {
|
|
314
314
|
"Reward": {
|
|
315
|
-
"location": "
|
|
315
|
+
"location": "import",
|
|
316
|
+
"path": "../../../saasquatch"
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
},
|
|
@@ -331,7 +332,8 @@ export class ReferralTableRewardsCell {
|
|
|
331
332
|
"resolved": "ImpactConnection",
|
|
332
333
|
"references": {
|
|
333
334
|
"ImpactConnection": {
|
|
334
|
-
"location": "
|
|
335
|
+
"location": "import",
|
|
336
|
+
"path": "../../../saasquatch"
|
|
335
337
|
}
|
|
336
338
|
}
|
|
337
339
|
},
|