@saasquatch/mint-components 1.16.0-2 → 1.16.0-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +107 -29
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +50 -4
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/cjs/{usePayoutStatus-c84a7d98.js → usePayoutStatus-d459ddde.js} +32 -11
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
- package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +3 -3
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +41 -3
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +32 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +81 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +48 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +76 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +22 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +108 -30
- package/dist/esm/sqm-big-stat_43.entry.js +50 -4
- package/dist/esm/sqm-qr-code.entry.js +1 -13
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm/{usePayoutStatus-f07bcf90.js → usePayoutStatus-4a7625b9.js} +32 -11
- 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_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.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/{usePayoutStatus-f07bcf90.js → usePayoutStatus-4a7625b9.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0309fdfa.entry.js +1 -0
- package/dist/mint-components/{p-9a176cdf.entry.js → p-05389a8e.entry.js} +7 -7
- package/dist/mint-components/{p-c46a0007.entry.js → p-1a838f4d.entry.js} +1 -1
- package/dist/mint-components/{p-eff2e68b.entry.js → p-267c8f8c.entry.js} +2 -2
- package/dist/mint-components/p-2bf6eef0.entry.js +211 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-776733b5.system.entry.js → p-37a4452c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6bb25c02.js → p-3b2f1211.js} +9 -3
- package/dist/mint-components/p-4b29afb2.system.entry.js +1 -0
- package/dist/mint-components/p-8b584c46.system.entry.js +1 -0
- package/dist/mint-components/p-986d4c17.system.entry.js +1 -0
- package/dist/mint-components/{p-0c9debc1.system.js → p-9f22f58a.system.js} +2 -2
- package/dist/mint-components/p-a12f854d.system.entry.js +1 -0
- package/dist/mint-components/{p-0e864c3c.system.entry.js → p-beba8f57.system.entry.js} +1 -1
- package/dist/mint-components/p-c9b08184.entry.js +17 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +8 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +4 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +12 -5
- package/dist/types/components.d.ts +66 -10
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-0c78815e.system.entry.js +0 -1
- package/dist/mint-components/p-1c67bf1c.system.entry.js +0 -1
- package/dist/mint-components/p-43b4bb99.entry.js +0 -1
- package/dist/mint-components/p-47bd2d7a.entry.js +0 -205
- package/dist/mint-components/p-53730ffe.entry.js +0 -17
- package/dist/mint-components/p-6f65f9e1.system.entry.js +0 -1
- package/dist/mint-components/p-ef75f3a9.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{r as e,h as o}from"./p-f708da7b.js";import{k as t,f as a,n as r}from"./p-cd651f81.js";import{d as n,H as i,J as d,F as s,w as c,$ as l,B as m,i as g}from"./p-94a876b9.js";import{c as p}from"./p-c1086930.js";import{g as u}from"./p-9ec99ced.js";import"./p-cef45012.js";import{a as h}from"./p-3f7b81b8.js";import"./p-9acb5038.js";import{Q as v}from"./p-f56bedd5.js";const w=n.gql`
|
|
2
|
+
query shareLink($programId: ID, $engagementMedium: UserEngagementMedium!) {
|
|
3
|
+
user: viewer {
|
|
4
|
+
... on User {
|
|
5
|
+
shareLink(
|
|
6
|
+
programId: $programId
|
|
7
|
+
engagementMedium: $engagementMedium
|
|
8
|
+
shareMedium: DIRECT
|
|
9
|
+
)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`,f=n.gql`
|
|
14
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
15
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
16
|
+
}
|
|
17
|
+
`,C=class{constructor(o){e(this,o),this.titleText="Share your QR code",this.viewCodeText="View QR code",this.downloadCodeText="Download",this.printCodeText="Print",this.errorHeaderText="There was an error loading your QR code",this.errorDescriptionText="Please refresh this page and try again",this.hideTitle=!1,this.alignment="center",r(this)}disconnectedCallback(){}render(){const e=u(this),r=g()?function(e){const[o,a]=t(!1);return p({dialogIsOpen:o,hideTitle:e.hideTitle,showDialog:()=>a(!0),hideDialog:()=>a(!1),titleText:e.titleText,viewCodeText:e.viewCodeText,downloadCodeText:e.downloadCodeText,printCodeText:e.printCodeText,alignment:e.alignment,qrLink:"https://media.istockphoto.com/id/1251071788/vector/qr-code-bar-code-black-icon-digital-technology.jpg?s=612x612&w=0&k=20&c=maw4OqMSEegAdSo8Drm9HO7i1ddddvP2YaL1UuWbRig=",fireViewQrEvent:()=>{console.log("View QR Code clicked")},createDownloadable:async()=>{console.log("Download QR Code clicked")},createPrintable:async()=>{console.log("Print QR Code clicked")}},e.demoData||{},{arrayMerge:(e,o)=>o})}(e):function(e){var o;const r=i(),n=d(),g=m(),p=s(h),[u,v]=t(null),[C,R]=t(!1),[b,q]=t(!1),{data:y,loading:E}=c(w,{programId:r,engagementMedium:g},!(null==n?void 0:n.jwt)||void 0!==(null==p?void 0:p.shareLink)),[M]=l(f),k=null===(o=null==y?void 0:y.user)||void 0===o?void 0:o.shareLink,I=`${k}?qrCode`,j=E||b;a((()=>{k&&(async()=>{v(`${k}?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0`)})()}),[k]);const Q=async()=>{M({eventMeta:{programId:r,id:null==n?void 0:n.id,accountId:null==n?void 0:n.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:g,shareMedium:"DIRECT"}}})};return{...e,loading:j,qrLink:u,error:C,createDownloadable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=800&qrCodeImageFormat=png`),o=await e.blob(),t=URL.createObjectURL(o);o&&Q();const a=document.createElement("a");a.href=t,a.download="qrCode.png",document.body.appendChild(a),a.click(),document.body.removeChild(a)}catch(e){console.error("Failed to fetch QR code:",e),R(!0)}},createPrintable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=1000&qrCodeImageFormat=png&qrCodeErrorCorrectionLevel=H`),o=await e.blob(),t=URL.createObjectURL(o);o&&Q();const a=window.open("about:blank","_new"),r=a.document.createElement("img");r.src=t,r.onload=()=>{a.print(),a.close()},a.document.body.appendChild(r)}catch(e){console.error("Failed to fetch QR code: ",e),R(!0)}}}}(e);return o(v,Object.assign({},r))}};export{C as sqm_qr_code}
|
|
@@ -2,7 +2,7 @@ import { DemoData } from "../../global/demo";
|
|
|
2
2
|
import { NameFieldsViewProps } from "./sqm-name-fields-view";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Form Name Fields
|
|
5
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
5
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
6
6
|
* @exampleGroup Microsite Components
|
|
7
7
|
* @example Form Name Fields - <sqm-name-fields first-name-label="First Name" last-name-label="Last Name"></sqm-name-fields>
|
|
8
8
|
*/
|
package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReferralTableColumn } from "./ReferralTableColumn";
|
|
|
3
3
|
* @uiName Referral Table Rewards Column
|
|
4
4
|
* @validParents ["sqm-referral-table"]
|
|
5
5
|
* @exampleGroup Referrals
|
|
6
|
-
* @example Referral Table Rewards Column - <sqm-referral-table-rewards-column column-title="Rewards" status-text="{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} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward
|
|
6
|
+
* @example Referral Table Rewards Column - <sqm-referral-table-rewards-column column-title="Rewards" status-text="{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} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings, barring any account holds.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }" fuel-tank-text="Your code is" reward-received-text="Reward received on" expiring-text="Expiring in" pending-for-text="{status} for {date}" denied-help-text="Contact support if you think this is a mistake." ></sqm-referral-table-rewards-column>
|
|
7
7
|
*/
|
|
8
8
|
export declare class ReferralTableRewardsColumn implements ReferralTableColumn {
|
|
9
9
|
/**
|
|
@@ -4,7 +4,7 @@ import { GenericTableViewProps } from "../../tables/GenericTableView";
|
|
|
4
4
|
* @uiName Referral Table
|
|
5
5
|
* @exampleGroup Referrals
|
|
6
6
|
* @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
|
|
7
|
-
* @example Referral Table - <sqm-referral-table per-page="4" hidden-columns="2" more-label="Next" prev-label="Prev" sm-breakpoint="599" md-breakpoint="799" > <sqm-referral-table-user-column column-title="Customer" anonymous-user="Anonymous User" deleted-user="Deleted User" ></sqm-referral-table-user-column> <sqm-referral-table-rewards-column column-title="Rewards" status-text="{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} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward
|
|
7
|
+
* @example Referral Table - <sqm-referral-table per-page="4" hidden-columns="2" more-label="Next" prev-label="Prev" sm-breakpoint="599" md-breakpoint="799" > <sqm-referral-table-user-column column-title="Customer" anonymous-user="Anonymous User" deleted-user="Deleted User" ></sqm-referral-table-user-column> <sqm-referral-table-rewards-column column-title="Rewards" status-text="{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} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings, barring any account holds.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }" fuel-tank-text="Your code is" reward-received-text="Reward received on" expiring-text="Expiring in" pending-for-text="{status} for {date}" denied-help-text="Contact support if you think this is a mistake." ></sqm-referral-table-rewards-column> <sqm-referral-table-date-column column-title="Date converted" date-shown="dateConverted" ></sqm-referral-table-date-column> <sqm-referral-table-status-column column-title="Status" converted-status-text="Converted" in-progress-status-text="In Progress" pending-review-status-text="Pending" denied-status-text="Denied" pending-review-status-sub-text="Awaiting review" denied-status-sub-text="Detected self-referral" ></sqm-referral-table-status-column> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png" empty-state-header="View your referral details" empty-state-text="Refer a friend to view the status of your referrals and rewards earned" slot="empty" ></sqm-empty> </sqm-referral-table>
|
|
8
8
|
*/
|
|
9
9
|
export declare class ReferralTable {
|
|
10
10
|
/**
|
package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RewardTableColumn } from "./RewardTableColumn";
|
|
|
3
3
|
* @uiName Reward Table Source Column
|
|
4
4
|
* @validParents ["sqm-rewards-table"]
|
|
5
5
|
* @exampleGroup Rewards
|
|
6
|
-
* @example Reward Table Source Column - <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-
|
|
6
|
+
* @example Reward Table Source Column - <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"></sqm-rewards-table-source-column>
|
|
7
7
|
*/
|
|
8
8
|
export declare class RewardTableUserColumn implements RewardTableColumn {
|
|
9
9
|
/**
|
package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RewardTableColumn } from "./RewardTableColumn";
|
|
|
3
3
|
* @uiName Reward Table Status Column
|
|
4
4
|
* @validParents ["sqm-rewards-table"]
|
|
5
5
|
* @exampleGroup Rewards
|
|
6
|
-
* @example Reward Table Status Column - <sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward
|
|
6
|
+
* @example Reward Table Status Column - <sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column>
|
|
7
7
|
*/
|
|
8
8
|
export declare class RewardTableStatusColumn implements RewardTableColumn {
|
|
9
9
|
/**
|
|
@@ -4,7 +4,7 @@ import { GenericTableViewProps } from "../../tables/GenericTableView";
|
|
|
4
4
|
* @uiName Reward Table
|
|
5
5
|
* @exampleGroup Rewards
|
|
6
6
|
* @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
|
|
7
|
-
* @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward
|
|
7
|
+
* @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" pending-tax-review="Awaiting tax form review." pending-new-tax-form="Invalid tax form. Submit a new form to receive your rewards." pending-tax-submission="Submit your tax documents to receive your rewards." pending-partner-creation="Complete your tax and cash payout setup to receive your rewards." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column> <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" ></sqm-rewards-table-source-column ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
|
|
8
8
|
*/
|
|
9
9
|
export declare class RewardsTable {
|
|
10
10
|
/**
|
package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PayoutStatus } from "./usePayoutStatus";
|
|
1
|
+
import { EnforceUsTaxComplianceOption, PayoutStatus } from "./usePayoutStatus";
|
|
2
2
|
export interface PayoutStatusAlertViewProps {
|
|
3
3
|
states: {
|
|
4
4
|
error: boolean;
|
|
5
5
|
loading: boolean;
|
|
6
6
|
status: PayoutStatus;
|
|
7
7
|
veriffLoading: boolean;
|
|
8
|
+
enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption;
|
|
8
9
|
};
|
|
9
10
|
data: {
|
|
10
11
|
type: "SquatchJS2" | "SquatchAndroid" | "SquatchIOS" | "SquatchPortal" | "SquatchAdmin" | "None";
|
|
@@ -26,6 +27,8 @@ export interface PayoutStatusAlertViewProps {
|
|
|
26
27
|
verificationReviewInternalDescription: string;
|
|
27
28
|
verificationFailedInternalHeader: string;
|
|
28
29
|
verificationFailedInternalDescription: string;
|
|
30
|
+
accountReviewHeader: string;
|
|
31
|
+
accountReviewDescription: string;
|
|
29
32
|
w9RequiredHeader: string;
|
|
30
33
|
w9RequiredDescription: string;
|
|
31
34
|
w9RequiredButtonText: string;
|
package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts
CHANGED
|
@@ -54,6 +54,14 @@ export declare class PayoutStatusAlert {
|
|
|
54
54
|
* @uiName Verification failed internal alert description
|
|
55
55
|
*/
|
|
56
56
|
verificationFailedInternalDescription: string;
|
|
57
|
+
/**
|
|
58
|
+
* @uiName Account review alert header
|
|
59
|
+
*/
|
|
60
|
+
accountReviewHeader: string;
|
|
61
|
+
/**
|
|
62
|
+
* @uiName Account review alert description
|
|
63
|
+
*/
|
|
64
|
+
accountReviewDescription: string;
|
|
57
65
|
/**
|
|
58
66
|
* @uiName W9 payment threshold alert header
|
|
59
67
|
*/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { UserQuery } from "../sqm-tax-and-cash/data";
|
|
2
2
|
import { PayoutStatusAlert } from "./sqm-payout-status-alert";
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type EnforceUsTaxComplianceOption = "NONE" | "EXPLICIT_COUNTRY_CODE" | "IMPLIED_COUNTRY_CODE" | "ALL" | "CASH_ONLY" | "CASH_ONLY_DEFER_W9";
|
|
4
|
+
export declare type PayoutStatus = "OVER_W9_THRESHOLD" | "INFORMATION_REQUIRED" | "VERIFICATION:REQUIRED" | "VERIFICATION:INTERNAL" | "VERIFICATION:REVIEW" | "VERIFICATION:FAILED" | "HOLD" | "ACCOUNT_REVIEW" | "DONE";
|
|
5
|
+
export declare type TenantSettingsQuery = {
|
|
6
|
+
tenantSettings: {
|
|
7
|
+
enforceUsTaxCompliance: EnforceUsTaxComplianceOption;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
export declare function getStatus(data: UserQuery): PayoutStatus;
|
|
5
11
|
export declare function usePayoutStatus(props: PayoutStatusAlert): {
|
|
6
12
|
states: {
|
|
@@ -8,6 +14,7 @@ export declare function usePayoutStatus(props: PayoutStatusAlert): {
|
|
|
8
14
|
veriffLoading: boolean;
|
|
9
15
|
status: PayoutStatus;
|
|
10
16
|
error: boolean;
|
|
17
|
+
enforceUsTaxComplianceOption: EnforceUsTaxComplianceOption;
|
|
11
18
|
};
|
|
12
19
|
data: {
|
|
13
20
|
type: "SquatchJS2" | "SquatchAndroid" | "SquatchIOS" | "SquatchPortal" | "SquatchAdmin" | "None";
|
|
@@ -907,6 +907,19 @@ export declare class TaxAndCashMonolith {
|
|
|
907
907
|
* @uiWidget textArea
|
|
908
908
|
*/
|
|
909
909
|
dashboard_w9RequiredDescription: string;
|
|
910
|
+
/**
|
|
911
|
+
* @uiName Account review alert header
|
|
912
|
+
*/
|
|
913
|
+
dashboard_accountReviewHeader: string;
|
|
914
|
+
/**
|
|
915
|
+
* @uiName Account review alert description
|
|
916
|
+
*/
|
|
917
|
+
dashboard_accountReviewDescription: string;
|
|
918
|
+
/**
|
|
919
|
+
* @uiName Terms and Conditions text
|
|
920
|
+
* @uiGroup Dashboard Properties
|
|
921
|
+
*/
|
|
922
|
+
dashboard_termsAndConditions: string;
|
|
910
923
|
/**
|
|
911
924
|
* @uiName W9 payment threshold alert button text
|
|
912
925
|
* @uiGroup Dashboard Properties
|
|
@@ -28,6 +28,7 @@ export interface TaxAndCashDashboardProps {
|
|
|
28
28
|
errors?: {
|
|
29
29
|
general?: boolean;
|
|
30
30
|
};
|
|
31
|
+
enforceUsTaxComplianceOption?: string;
|
|
31
32
|
};
|
|
32
33
|
slots: {
|
|
33
34
|
payoutDetailsCardSlot: VNode;
|
|
@@ -76,7 +77,6 @@ export interface TaxAndCashDashboardProps {
|
|
|
76
77
|
indirectTaxColumnTitle: string;
|
|
77
78
|
earningsAfterTaxColumnTitle: string;
|
|
78
79
|
dateColumnTitle: string;
|
|
79
|
-
taxAndPayoutsDescription: string;
|
|
80
80
|
invoiceDescription: string;
|
|
81
81
|
invoicePrevLabel: string;
|
|
82
82
|
invoiceMoreLabel: string;
|
|
@@ -96,9 +96,12 @@ export interface TaxAndCashDashboardProps {
|
|
|
96
96
|
verificationReviewInternalDescription: string;
|
|
97
97
|
verificationFailedInternalHeader: string;
|
|
98
98
|
verificationFailedInternalDescription: string;
|
|
99
|
+
accountReviewHeader: string;
|
|
100
|
+
accountReviewDescription: string;
|
|
99
101
|
w9RequiredHeader: string;
|
|
100
102
|
w9RequiredDescription: string;
|
|
101
103
|
w9RequiredButtonText: string;
|
|
104
|
+
termsAndConditions: string;
|
|
102
105
|
cancelButton: string;
|
|
103
106
|
supportLink: string;
|
|
104
107
|
error: {
|
|
@@ -233,6 +233,18 @@ export declare class TaxAndCashDashboard {
|
|
|
233
233
|
* @uiName W9 payment threshold alert description
|
|
234
234
|
*/
|
|
235
235
|
w9RequiredDescription: string;
|
|
236
|
+
/**
|
|
237
|
+
* @uiName Account review alert header
|
|
238
|
+
*/
|
|
239
|
+
accountReviewHeader: string;
|
|
240
|
+
/**
|
|
241
|
+
* @uiName Account review alert description
|
|
242
|
+
*/
|
|
243
|
+
accountReviewDescription: string;
|
|
244
|
+
/**
|
|
245
|
+
* @uiName Terms and Conditions text
|
|
246
|
+
*/
|
|
247
|
+
termsAndConditions: string;
|
|
236
248
|
/**
|
|
237
249
|
* @uiName W9 payment threshold alert button text
|
|
238
250
|
*/
|
|
@@ -304,11 +316,6 @@ export declare class TaxAndCashDashboard {
|
|
|
304
316
|
invoiceEmptyStateHeader: string;
|
|
305
317
|
/** @uiName Empty invoice table description */
|
|
306
318
|
invoiceEmptyStateText: string;
|
|
307
|
-
/**
|
|
308
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
309
|
-
* @uiName Page description
|
|
310
|
-
*/
|
|
311
|
-
taxAndPayoutsDescription: string;
|
|
312
319
|
/**
|
|
313
320
|
* @uiName Replace tax form modal header
|
|
314
321
|
*/
|
|
@@ -2008,6 +2008,14 @@ export namespace Components {
|
|
|
2008
2008
|
"thresholdPayoutText": string;
|
|
2009
2009
|
}
|
|
2010
2010
|
interface SqmPayoutStatusAlert {
|
|
2011
|
+
/**
|
|
2012
|
+
* @uiName Account review alert description
|
|
2013
|
+
*/
|
|
2014
|
+
"accountReviewDescription": string;
|
|
2015
|
+
/**
|
|
2016
|
+
* @uiName Account review alert header
|
|
2017
|
+
*/
|
|
2018
|
+
"accountReviewHeader": string;
|
|
2011
2019
|
/**
|
|
2012
2020
|
* @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
|
|
2013
2021
|
*/
|
|
@@ -4632,6 +4640,14 @@ export namespace Components {
|
|
|
4632
4640
|
* @uiGroup General Form Properties
|
|
4633
4641
|
*/
|
|
4634
4642
|
"continueButton": string;
|
|
4643
|
+
/**
|
|
4644
|
+
* @uiName Account review alert description
|
|
4645
|
+
*/
|
|
4646
|
+
"dashboard_accountReviewDescription": string;
|
|
4647
|
+
/**
|
|
4648
|
+
* @uiName Account review alert header
|
|
4649
|
+
*/
|
|
4650
|
+
"dashboard_accountReviewHeader": string;
|
|
4635
4651
|
/**
|
|
4636
4652
|
* Shown before the participant’s bank account information.
|
|
4637
4653
|
* @uiName Bank account field label
|
|
@@ -4904,6 +4920,11 @@ export namespace Components {
|
|
|
4904
4920
|
* @uiGroup Dashboard Properties
|
|
4905
4921
|
*/
|
|
4906
4922
|
"dashboard_taxDocumentSectionSubHeader": string;
|
|
4923
|
+
/**
|
|
4924
|
+
* @uiName Terms and Conditions text
|
|
4925
|
+
* @uiGroup Dashboard Properties
|
|
4926
|
+
*/
|
|
4927
|
+
"dashboard_termsAndConditions": string;
|
|
4907
4928
|
/**
|
|
4908
4929
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4909
4930
|
* @uiName Payout schedule by threshold text
|
|
@@ -5611,6 +5632,14 @@ export namespace Components {
|
|
|
5611
5632
|
"termsAndConditions": string;
|
|
5612
5633
|
}
|
|
5613
5634
|
interface SqmTaxAndCashDashboard {
|
|
5635
|
+
/**
|
|
5636
|
+
* @uiName Account review alert description
|
|
5637
|
+
*/
|
|
5638
|
+
"accountReviewDescription": string;
|
|
5639
|
+
/**
|
|
5640
|
+
* @uiName Account review alert header
|
|
5641
|
+
*/
|
|
5642
|
+
"accountReviewHeader": string;
|
|
5614
5643
|
/**
|
|
5615
5644
|
* Shown before the participant’s bank account information.
|
|
5616
5645
|
* @uiName Bank account field label
|
|
@@ -5859,11 +5888,6 @@ export namespace Components {
|
|
|
5859
5888
|
* @uiWidget textArea
|
|
5860
5889
|
*/
|
|
5861
5890
|
"taxAlertNotActiveMessageW9"?: string;
|
|
5862
|
-
/**
|
|
5863
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
5864
|
-
* @uiName Page description
|
|
5865
|
-
*/
|
|
5866
|
-
"taxAndPayoutsDescription": string;
|
|
5867
5891
|
/**
|
|
5868
5892
|
* @uiName Tax document section header
|
|
5869
5893
|
*/
|
|
@@ -5873,6 +5897,10 @@ export namespace Components {
|
|
|
5873
5897
|
* @uiName Tax documents section description
|
|
5874
5898
|
*/
|
|
5875
5899
|
"taxDocumentSectionSubHeader": string;
|
|
5900
|
+
/**
|
|
5901
|
+
* @uiName Terms and Conditions text
|
|
5902
|
+
*/
|
|
5903
|
+
"termsAndConditions": string;
|
|
5876
5904
|
/**
|
|
5877
5905
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5878
5906
|
* @uiName Payout schedule by threshold text
|
|
@@ -9108,6 +9136,14 @@ declare namespace LocalJSX {
|
|
|
9108
9136
|
"thresholdPayoutText"?: string;
|
|
9109
9137
|
}
|
|
9110
9138
|
interface SqmPayoutStatusAlert {
|
|
9139
|
+
/**
|
|
9140
|
+
* @uiName Account review alert description
|
|
9141
|
+
*/
|
|
9142
|
+
"accountReviewDescription"?: string;
|
|
9143
|
+
/**
|
|
9144
|
+
* @uiName Account review alert header
|
|
9145
|
+
*/
|
|
9146
|
+
"accountReviewHeader"?: string;
|
|
9111
9147
|
/**
|
|
9112
9148
|
* @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
|
|
9113
9149
|
*/
|
|
@@ -11708,6 +11744,14 @@ declare namespace LocalJSX {
|
|
|
11708
11744
|
* @uiGroup General Form Properties
|
|
11709
11745
|
*/
|
|
11710
11746
|
"continueButton"?: string;
|
|
11747
|
+
/**
|
|
11748
|
+
* @uiName Account review alert description
|
|
11749
|
+
*/
|
|
11750
|
+
"dashboard_accountReviewDescription"?: string;
|
|
11751
|
+
/**
|
|
11752
|
+
* @uiName Account review alert header
|
|
11753
|
+
*/
|
|
11754
|
+
"dashboard_accountReviewHeader"?: string;
|
|
11711
11755
|
/**
|
|
11712
11756
|
* Shown before the participant’s bank account information.
|
|
11713
11757
|
* @uiName Bank account field label
|
|
@@ -11980,6 +12024,11 @@ declare namespace LocalJSX {
|
|
|
11980
12024
|
* @uiGroup Dashboard Properties
|
|
11981
12025
|
*/
|
|
11982
12026
|
"dashboard_taxDocumentSectionSubHeader"?: string;
|
|
12027
|
+
/**
|
|
12028
|
+
* @uiName Terms and Conditions text
|
|
12029
|
+
* @uiGroup Dashboard Properties
|
|
12030
|
+
*/
|
|
12031
|
+
"dashboard_termsAndConditions"?: string;
|
|
11983
12032
|
/**
|
|
11984
12033
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
11985
12034
|
* @uiName Payout schedule by threshold text
|
|
@@ -12687,6 +12736,14 @@ declare namespace LocalJSX {
|
|
|
12687
12736
|
"termsAndConditions"?: string;
|
|
12688
12737
|
}
|
|
12689
12738
|
interface SqmTaxAndCashDashboard {
|
|
12739
|
+
/**
|
|
12740
|
+
* @uiName Account review alert description
|
|
12741
|
+
*/
|
|
12742
|
+
"accountReviewDescription"?: string;
|
|
12743
|
+
/**
|
|
12744
|
+
* @uiName Account review alert header
|
|
12745
|
+
*/
|
|
12746
|
+
"accountReviewHeader"?: string;
|
|
12690
12747
|
/**
|
|
12691
12748
|
* Shown before the participant’s bank account information.
|
|
12692
12749
|
* @uiName Bank account field label
|
|
@@ -12935,11 +12992,6 @@ declare namespace LocalJSX {
|
|
|
12935
12992
|
* @uiWidget textArea
|
|
12936
12993
|
*/
|
|
12937
12994
|
"taxAlertNotActiveMessageW9"?: string;
|
|
12938
|
-
/**
|
|
12939
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
12940
|
-
* @uiName Page description
|
|
12941
|
-
*/
|
|
12942
|
-
"taxAndPayoutsDescription"?: string;
|
|
12943
12995
|
/**
|
|
12944
12996
|
* @uiName Tax document section header
|
|
12945
12997
|
*/
|
|
@@ -12949,6 +13001,10 @@ declare namespace LocalJSX {
|
|
|
12949
13001
|
* @uiName Tax documents section description
|
|
12950
13002
|
*/
|
|
12951
13003
|
"taxDocumentSectionSubHeader"?: string;
|
|
13004
|
+
/**
|
|
13005
|
+
* @uiName Terms and Conditions text
|
|
13006
|
+
*/
|
|
13007
|
+
"termsAndConditions"?: string;
|
|
12952
13008
|
/**
|
|
12953
13009
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
12954
13010
|
* @uiName Payout schedule by threshold text
|
package/docs/docs.docx
CHANGED
|
Binary file
|