@saasquatch/mint-components 1.12.0-1 → 1.12.0-10

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.
Files changed (158) hide show
  1. package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-040cffad.js} +6 -3
  2. package/dist/cjs/extractProps-fd93ba62.js +21 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +91 -72
  6. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +128 -63
  7. package/dist/cjs/sqm-code-verification.cjs.entry.js +67 -77
  8. package/dist/cjs/sqm-email-verification.cjs.entry.js +158 -12
  9. package/dist/cjs/{sqm-invoice-table-view-ce9a34ac.js → sqm-invoice-table-view-c58966f8.js} +79 -0
  10. package/dist/cjs/sqm-stencilbook.cjs.entry.js +56 -14
  11. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +81 -11
  12. package/dist/cjs/sqm-widget-verification.cjs.entry.js +102 -19
  13. package/dist/cjs/usePayoutStatus-b9fb7399.js +70 -0
  14. package/dist/cjs/useVerificationEmail-6aacdb71.js +169 -0
  15. package/dist/collection/collection-manifest.json +1 -1
  16. package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
  17. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
  18. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
  19. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
  20. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +9 -2
  21. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +20 -10
  22. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +34 -63
  23. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +38 -29
  24. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
  25. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
  26. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +65 -11
  27. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +76 -20
  28. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +327 -15
  29. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +447 -22
  30. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +165 -0
  31. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
  32. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +78 -0
  33. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -1
  34. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +7 -0
  35. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +0 -1
  36. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +10 -0
  37. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -13
  38. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +146 -9
  39. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +30 -15
  40. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +6 -0
  41. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  42. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  43. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +22 -16
  44. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +99 -88
  45. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +8 -1
  46. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
  47. package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-69b61037.js} +6 -3
  48. package/dist/esm/extractProps-ae1afbb3.js +19 -0
  49. package/dist/esm/{keys-a1496e39.js → keys-db1897ae.js} +1 -1
  50. package/dist/esm/loader.js +1 -1
  51. package/dist/esm/mint-components.js +1 -1
  52. package/dist/esm/sqm-banking-info-form_16.entry.js +91 -72
  53. package/dist/esm/sqm-big-stat_39.entry.js +127 -62
  54. package/dist/esm/sqm-code-verification.entry.js +69 -79
  55. package/dist/esm/sqm-email-verification.entry.js +159 -13
  56. package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-d1cfdaf4.js} +79 -0
  57. package/dist/esm/sqm-stencilbook.entry.js +56 -14
  58. package/dist/esm/sqm-widget-verification-internal.entry.js +84 -14
  59. package/dist/esm/sqm-widget-verification.entry.js +104 -21
  60. package/dist/esm/usePayoutStatus-1a635054.js +67 -0
  61. package/dist/esm/useVerificationEmail-c32696ba.js +167 -0
  62. package/dist/esm-es5/ShadowViewAddon-69b61037.js +1 -0
  63. package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
  64. package/dist/esm-es5/{keys-a1496e39.js → keys-db1897ae.js} +1 -1
  65. package/dist/esm-es5/loader.js +1 -1
  66. package/dist/esm-es5/mint-components.js +1 -1
  67. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  68. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  69. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  70. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  71. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +1 -0
  72. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  73. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
  74. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  75. package/dist/esm-es5/usePayoutStatus-1a635054.js +1 -0
  76. package/dist/esm-es5/useVerificationEmail-c32696ba.js +1 -0
  77. package/dist/mint-components/mint-components.esm.js +1 -1
  78. package/dist/mint-components/p-15c7a1d2.system.entry.js +1 -0
  79. package/dist/mint-components/p-1712a9fd.entry.js +11 -0
  80. package/dist/mint-components/p-1e616d45.system.js +1 -0
  81. package/dist/mint-components/{p-721a89c6.entry.js → p-24092973.entry.js} +2 -2
  82. package/dist/mint-components/p-26468242.js +1 -0
  83. package/dist/mint-components/p-331d060e.entry.js +223 -0
  84. package/dist/mint-components/p-39840341.js +1 -0
  85. package/dist/mint-components/p-4364001c.entry.js +12 -0
  86. package/dist/mint-components/p-4bd7a472.js +1 -0
  87. package/dist/mint-components/p-517224ef.js +19 -0
  88. package/dist/mint-components/p-5a23b560.system.entry.js +1 -0
  89. package/dist/mint-components/p-8300d8c8.system.js +1 -0
  90. package/dist/mint-components/p-8bddb468.system.entry.js +1 -0
  91. package/dist/mint-components/p-9596e97c.system.entry.js +1 -0
  92. package/dist/mint-components/p-974070c4.system.entry.js +1 -0
  93. package/dist/mint-components/{p-b651706a.js → p-9eae245f.js} +6 -3
  94. package/dist/mint-components/p-a8645c1b.system.js +1 -0
  95. package/dist/mint-components/p-b2a99637.system.js +1 -0
  96. package/dist/mint-components/{p-66a04cca.system.entry.js → p-b62faaa5.system.entry.js} +1 -1
  97. package/dist/mint-components/p-c41e1df8.entry.js +195 -0
  98. package/dist/mint-components/p-c510fb88.entry.js +1 -0
  99. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  100. package/dist/mint-components/p-d7806f31.js +48 -0
  101. package/dist/mint-components/p-e01ac27c.system.js +1 -0
  102. package/dist/mint-components/p-e45a8501.system.entry.js +1 -0
  103. package/dist/mint-components/p-e990dc21.system.js +1 -0
  104. package/dist/mint-components/p-f340214f.entry.js +25 -0
  105. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
  106. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
  107. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +1 -0
  108. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +3 -3
  109. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +4 -10
  110. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +2 -0
  111. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
  112. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
  113. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
  114. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +3 -2
  115. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +15 -0
  116. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +79 -0
  117. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +14 -0
  118. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  119. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  120. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +2 -0
  121. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +12 -0
  122. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +41 -0
  123. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +12 -0
  124. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
  125. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  126. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +10 -3
  127. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +19 -18
  128. package/dist/types/components.d.ts +366 -92
  129. package/docs/docs.docx +0 -0
  130. package/docs/raisins.json +1 -1
  131. package/grapesjs/grapesjs.js +1 -1
  132. package/package.json +1 -1
  133. package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
  134. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +0 -3
  135. package/dist/esm/useEmailVerification-7135732c.js +0 -72
  136. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
  137. package/dist/esm-es5/sqm-invoice-table-view-08c03ba7.js +0 -1
  138. package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
  139. package/dist/mint-components/p-117b4705.system.js +0 -1
  140. package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
  141. package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
  142. package/dist/mint-components/p-1f9a9b70.system.entry.js +0 -1
  143. package/dist/mint-components/p-23fdd44e.entry.js +0 -1
  144. package/dist/mint-components/p-36f7caec.system.entry.js +0 -1
  145. package/dist/mint-components/p-39397731.entry.js +0 -1
  146. package/dist/mint-components/p-39af4acd.entry.js +0 -240
  147. package/dist/mint-components/p-4c9b6fbe.system.js +0 -1
  148. package/dist/mint-components/p-65e2c043.system.js +0 -1
  149. package/dist/mint-components/p-663303b7.entry.js +0 -8
  150. package/dist/mint-components/p-6cae44d7.js +0 -1
  151. package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
  152. package/dist/mint-components/p-8a337864.js +0 -7
  153. package/dist/mint-components/p-a02afa72.system.js +0 -1
  154. package/dist/mint-components/p-a5a9aa07.entry.js +0 -189
  155. package/dist/mint-components/p-c763c0b2.js +0 -1
  156. package/dist/mint-components/p-e93e5740.entry.js +0 -1
  157. package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
  158. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -1
@@ -1,8 +1,10 @@
1
1
  export interface WidgetEmailVerificationViewProps {
2
2
  states: {
3
- error: string;
3
+ error: boolean;
4
+ initialLoading: boolean;
4
5
  loading: boolean;
5
6
  email: string;
7
+ sendCodeError: boolean;
6
8
  };
7
9
  callbacks: {
8
10
  submitEmail: (e: any) => Promise<void>;
@@ -11,6 +13,9 @@ export interface WidgetEmailVerificationViewProps {
11
13
  verifyEmailHeaderText: string;
12
14
  sendCodeText: string;
13
15
  emailLabel: string;
16
+ sendCodeErrorHeader: string;
17
+ sendCodeErrorDescription: string;
18
+ emailValidationErrorText: string;
14
19
  };
15
20
  }
16
21
  export declare function WidgetEmailVerificationView(props: WidgetEmailVerificationViewProps): any;
@@ -9,9 +9,13 @@ export declare class WidgetEmailVerification {
9
9
  */
10
10
  verifyEmailHeaderText: string;
11
11
  /**
12
- * @uiName Verify email error text
12
+ * @uiName Send code to email alert header
13
13
  */
14
- errorText: string;
14
+ sendCodeErrorHeader: string;
15
+ /**
16
+ * @uiName Send code to email alert description
17
+ */
18
+ sendCodeErrorDescription: string;
15
19
  /**
16
20
  * @uiName Email input label
17
21
  */
@@ -20,6 +24,10 @@ export declare class WidgetEmailVerification {
20
24
  * @uiName Send code button text
21
25
  */
22
26
  sendCodeText: string;
27
+ /**
28
+ * @uiName Send code button text
29
+ */
30
+ emailValidationErrorText: string;
23
31
  /**
24
32
  * @undocumented
25
33
  * @uiType object
@@ -1,7 +1,8 @@
1
1
  import { WidgetEmailVerification } from "./sqm-email-verification";
2
2
  import { WidgetEmailVerificationViewProps } from "./sqm-email-verification-view";
3
- export declare const VerificationEmailMutation: string;
4
- export declare function useVerificationEmailMutation(): readonly [() => Promise<any>, {
3
+ export declare const UpsertUserEmailMutation: string;
4
+ export declare const UserLookupQuery: string;
5
+ export declare function useUpsertUserEmail(): readonly [(email: string) => Promise<any>, {
5
6
  readonly loading: boolean;
6
7
  readonly data: any;
7
8
  readonly errors: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
@@ -1,5 +1,20 @@
1
1
  export declare class WidgetVerificationInternal {
2
+ emailStep_verifyEmailHeaderText: string;
3
+ emailStep_sendCodeErrorHeader: string;
4
+ emailStep_sendCodeErrorDescription: string;
5
+ emailStep_emailLabel: string;
6
+ emailStep_sendCodeText: string;
7
+ emailStep_emailValidationErrorText: string;
8
+ codeStep_verifyCodeHeaderText: string;
9
+ codeStep_reverifyCodeHeaderText: string;
10
+ codeStep_resendCodeText: string;
11
+ codeStep_resendCodeLabel: string;
12
+ codeStep_codeResentSuccessfullyText: string;
13
+ codeStep_invalidCodeText: string;
14
+ codeStep_verifyText: string;
15
+ codeStep_networkErrorMessage: string;
2
16
  constructor();
3
17
  disconnectedCallback(): void;
18
+ getStepTextProps(prefix: string): {};
4
19
  render(): any;
5
20
  }
@@ -1,7 +1,86 @@
1
1
  /**
2
2
  * @uiName Widget Verification Gate
3
+ * @slots [{"name":"not-verified","title":"Not verified template"},{"name":"verified","title":"Verified template"}]
4
+ * @canvasRenderer always-replace
5
+ * @exampleGroup Widget Verification
6
+ * @example Widget Verification Gate - <sqm-widget-verification><template slot="verified"><sqm-tax-and-cash></sqm-tax-and-cash></template></sqm-widget-verification>
3
7
  */
4
8
  export declare class WidgetVerification {
9
+ /**
10
+ * @uiName Verify email widget header text
11
+ * @uiGroup Email Verification Step
12
+ */
13
+ emailStep_verifyEmailHeaderText: string;
14
+ /**
15
+ * @uiName Send code to email alert header
16
+ * @uiGroup Email Verification Step
17
+ */
18
+ emailStep_sendCodeErrorHeader: string;
19
+ /**
20
+ * @uiName Send code to email alert description
21
+ * @uiGroup Email Verification Step
22
+ */
23
+ emailStep_sendCodeErrorDescription: string;
24
+ /**
25
+ * @uiName Email input label
26
+ * @uiGroup Email Verification Step
27
+ */
28
+ emailStep_emailLabel: string;
29
+ /**
30
+ * @uiName Send code button text
31
+ * @uiGroup Email Verification Step
32
+ */
33
+ emailStep_sendCodeText: string;
34
+ /**
35
+ * @uiName Send code button text
36
+ * @uiGroup Email Verification Step
37
+ */
38
+ emailStep_emailValidationErrorText: string;
39
+ /**
40
+ * @uiName Verify code widget header text
41
+ * @uiGroup Code Verification Step
42
+ */
43
+ codeStep_verifyCodeHeaderText: string;
44
+ /**
45
+ * @uiName Reverify code widget header text
46
+ * @uiGroup Code Verification Step
47
+ */
48
+ codeStep_reverifyCodeHeaderText: string;
49
+ /**
50
+ * Text displayed under verify button
51
+ * @uiName Resend code text
52
+ * @uiGroup Code Verification Step
53
+ */
54
+ codeStep_resendCodeText: string;
55
+ /**
56
+ * The link that appears in the resend code link
57
+ * @uiName Resend code label
58
+ * @uiGroup Code Verification Step
59
+ */
60
+ codeStep_resendCodeLabel: string;
61
+ /**
62
+ * Link text displayed under verify button
63
+ * @uiName Resend code text
64
+ * @uiGroup Code Verification Step
65
+ */
66
+ codeStep_codeResentSuccessfullyText: string;
67
+ /**
68
+ * Error text displayed under verification input
69
+ * @uiName Invalid code text
70
+ * @uiGroup Code Verification Step
71
+ */
72
+ codeStep_invalidCodeText: string;
73
+ /**
74
+ * @uiName Verify code button text
75
+ * @uiGroup Code Verification Step
76
+ */
77
+ codeStep_verifyText: string;
78
+ /**
79
+ * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
80
+ * @uiName Network error message
81
+ * @uiGroup Code Verification Step
82
+ */
83
+ codeStep_networkErrorMessage: string;
5
84
  constructor();
6
85
  disconnectedCallback(): void;
7
86
  render(): any;
@@ -0,0 +1,14 @@
1
+ export declare function useVerificationEmail(): {
2
+ initialized: boolean;
3
+ send: readonly [() => Promise<any>, {
4
+ readonly loading: boolean;
5
+ readonly errors: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
6
+ }];
7
+ verify: readonly [(code: string) => Promise<{
8
+ success: boolean;
9
+ accessKey: string | undefined;
10
+ }>, {
11
+ readonly loading: boolean;
12
+ readonly errors: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
13
+ }];
14
+ };
@@ -57,6 +57,7 @@ export declare const TaxAndCashDashboardIndirectTaxSpain: () => any;
57
57
  export declare const TaxAndCashDashboardIndirectTaxNotRegistered: () => any;
58
58
  export declare const TaxAndCashDashboardIdentityVerifcationRequired: () => any;
59
59
  export declare const TaxAndCashDashboardNewTaxForm: () => any;
60
+ export declare const TaxAndCashDashboardPayoutsOnHold: () => any;
60
61
  export declare const TaxAndCashDashboardLoading: () => any;
61
62
  export declare const TaxAndCashDashboardWithLoadingError: () => any;
62
63
  export declare const TaxAndCashDashboardWithGeneralError: () => any;
@@ -64,6 +64,7 @@ export interface BankingInfoFormViewProps {
64
64
  setBankCountry?: (country: string) => void;
65
65
  setCurrency?: (currency: string) => void;
66
66
  setCountrySearch: (c: any) => void;
67
+ onVerification: (token: string) => void;
67
68
  };
68
69
  text: {
69
70
  formStep: string;
@@ -4,5 +4,7 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const InformationRequired: () => any;
6
6
  export declare const VerifyIdentity: () => any;
7
+ export declare const VerifyIdentityOpen: () => any;
7
8
  export declare const Hold: () => any;
8
9
  export declare const Loading: () => any;
10
+ export declare const Error: () => any;
@@ -1,8 +1,18 @@
1
1
  import { PayoutStatus } from "./usePayoutStatus";
2
2
  export interface PayoutStatusAlertViewProps {
3
3
  states: {
4
+ error: boolean;
4
5
  loading: boolean;
5
6
  status: PayoutStatus;
7
+ showVerifyIdentity: boolean;
8
+ };
9
+ data: {
10
+ type: "SquatchJS2" | "SquatchAndroid" | "SquatchIOS" | "SquatchPortal" | "SquatchAdmin" | "None";
11
+ };
12
+ callbacks: {
13
+ onClick: () => void;
14
+ onTermsClick: () => void;
15
+ onCancel: () => void;
6
16
  };
7
17
  text: {
8
18
  informationRequiredHeader: string;
@@ -13,6 +23,8 @@ export interface PayoutStatusAlertViewProps {
13
23
  verificationRequiredButtonText: string;
14
24
  holdHeader: string;
15
25
  holdDescription: string;
26
+ errorHeader: string;
27
+ errorDescription: string;
16
28
  };
17
29
  }
18
30
  export declare function PayoutStatusAlertView(props: PayoutStatusAlertViewProps): any;
@@ -1,14 +1,55 @@
1
1
  import { DemoData } from "../../../global/demo";
2
2
  import { PayoutStatusAlertViewProps } from "./sqm-payout-status-alert-view";
3
+ /**
4
+ * @uiName Payout Status Alert
5
+ * @exampleGroup Tax and Cash
6
+ * @example Payout Status Alert - <sqm-payout-status-alert></sqm-payout-status-alert>
7
+ */
3
8
  export declare class PayoutStatusAlert {
9
+ /**
10
+ * @uiName Info required alert header
11
+ */
4
12
  informationRequiredHeader: string;
13
+ /**
14
+ * @uiName Info required alert description
15
+ */
5
16
  informationRequiredDescription: string;
17
+ /**
18
+ * @uiName Info required alert button text
19
+ */
6
20
  informationRequiredButtonText: string;
21
+ /**
22
+ * @uiName Verification required alert header
23
+ */
7
24
  verificationRequiredHeader: string;
25
+ /**
26
+ * @uiName Verification required alert description
27
+ */
8
28
  verificationRequiredDescription: string;
29
+ /**
30
+ * @uiName Verification required alert button text
31
+ */
9
32
  verificationRequiredButtonText: string;
33
+ /**
34
+ * @uiName Payout on hold alert header
35
+ */
10
36
  holdHeader: string;
37
+ /**
38
+ * @uiName Payout on hold alert description
39
+ */
11
40
  holdDescription: string;
41
+ /**
42
+ * @uiName Cash & Payouts Terms and Conditions url
43
+ */
44
+ termsUrl: string;
45
+ /**
46
+ * @uiName Error header
47
+ */
48
+ errorHeader: string;
49
+ /**
50
+ * @uiName Error description
51
+ */
52
+ errorDescription: string;
12
53
  /**
13
54
  * @undocumented
14
55
  * @uiType object
@@ -1,9 +1,21 @@
1
+ import { UserQuery } from "../sqm-tax-and-cash/data";
1
2
  import { PayoutStatusAlert } from "./sqm-payout-status-alert";
2
3
  export declare type PayoutStatus = "INFORMATION_REQUIRED" | "VERIFICATION_NEEDED" | "HOLD" | "DONE";
4
+ export declare function getStatus(data: UserQuery): PayoutStatus;
3
5
  export declare function usePayoutStatus(props: PayoutStatusAlert): {
4
6
  states: {
5
7
  loading: boolean;
6
8
  status: PayoutStatus;
9
+ showVerifyIdentity: boolean;
10
+ error: boolean;
11
+ };
12
+ data: {
13
+ type: "SquatchJS2" | "SquatchAndroid" | "SquatchIOS" | "SquatchPortal" | "SquatchAdmin" | "None";
7
14
  };
8
15
  text: PayoutStatusAlert;
16
+ callbacks: {
17
+ onTermsClick: () => void;
18
+ onClick: () => void;
19
+ onCancel: () => void;
20
+ };
9
21
  };
@@ -66,6 +66,7 @@ export declare type ImpactPublisher = {
66
66
  };
67
67
  payoutsAccount: {
68
68
  hold: boolean;
69
+ holdReasons: string[];
69
70
  balance: string;
70
71
  };
71
72
  };
@@ -78,6 +79,11 @@ export declare type UserQuery = {
78
79
  customFields?: {
79
80
  [key: string]: any;
80
81
  };
82
+ managedIdentity?: {
83
+ uid: string;
84
+ email: string;
85
+ emailVerified: boolean;
86
+ } | null;
81
87
  impactConnection: null | {
82
88
  connected: boolean;
83
89
  user: {
@@ -721,14 +721,14 @@ export declare class TaxAndCashMonolith {
721
721
  * @uiGroup Dashboard Properties
722
722
  * @uiWidget textArea
723
723
  */
724
- dashboard_errorTitleText: string;
724
+ payoutHoldAlertHeader: string;
725
725
  /**
726
726
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
727
727
  * @uiName Payout error message description
728
728
  * @uiGroup Dashboard Properties
729
729
  * @uiWidget textArea
730
730
  */
731
- dashboard_errorDescriptionText: string;
731
+ payoutHoldAlertDescription: string;
732
732
  /**
733
733
  * Text displayed for existing publishers that do not have saved banking information.
734
734
  * @uiName Payout missing information subtext
@@ -1,5 +1,6 @@
1
1
  import { VNode } from "../../../stencil-public-runtime";
2
2
  import { TaxDocumentType } from "../sqm-tax-and-cash/data";
3
+ import { PayoutStatus } from "../sqm-payout-status-alert/usePayoutStatus";
3
4
  export interface TaxAndCashDashboardProps {
4
5
  states: {
5
6
  status?: string;
@@ -23,6 +24,9 @@ export interface TaxAndCashDashboardProps {
23
24
  showNewFormDialog: boolean;
24
25
  showIdentityVerificationDialog?: boolean;
25
26
  identiyRequired?: boolean;
27
+ hasHold: boolean;
28
+ payoutStatus: PayoutStatus;
29
+ showVerifyIdentity: boolean;
26
30
  errors?: {
27
31
  general?: boolean;
28
32
  };
@@ -35,6 +39,7 @@ export interface TaxAndCashDashboardProps {
35
39
  onEditPayoutInfo: () => void;
36
40
  onNewFormCancel: () => void;
37
41
  onNewFormClick: () => void;
42
+ onVerifyIdentityCancel: () => void;
38
43
  };
39
44
  text: {
40
45
  statusTextActive?: string;
@@ -49,8 +54,6 @@ export interface TaxAndCashDashboardProps {
49
54
  taxAlertHeaderNotActiveW8?: string;
50
55
  taxAlertNotActiveMessageW9?: string;
51
56
  taxAlertNotActiveMessageW8?: string;
52
- verifyIdentityAlertHeader?: string;
53
- verifyIdentityAlertMessage?: string;
54
57
  bankingInformationSectionHeader: string;
55
58
  indirectTaxInfoSectionHeader: string;
56
59
  indirectTaxInfoCanada?: string;
@@ -83,8 +86,12 @@ export interface TaxAndCashDashboardProps {
83
86
  invoiceEmptyStateText: string;
84
87
  replaceTaxFormModalHeader: string;
85
88
  replaceTaxFormModalBodyText: string;
89
+ payoutHoldAlertHeader: string;
90
+ payoutHoldAlertDescription: string;
91
+ verificationRequiredHeader: string;
92
+ verificationRequiredDescription: string;
93
+ verificationRequiredButtonText: string;
86
94
  cancelButton: string;
87
- verifyIdentityButton: string;
88
95
  error: {
89
96
  generalTitle: string;
90
97
  generalDescription: string;
@@ -63,18 +63,6 @@ export declare class TaxAndCashDashboard {
63
63
  * @uiName Inactive W-8 error message description
64
64
  */
65
65
  taxAlertNotActiveMessageW8?: string;
66
- /**
67
- * Part of the alert displayed at the top of the page.
68
- *
69
- * @uiName Verify identity warning message header
70
- */
71
- verifyIdentityAlertHeader?: string;
72
- /**
73
- * Part of the alert displayed at the top of the page.
74
- *
75
- * @uiName Verify identity warning message description
76
- */
77
- verifyIdentityAlertMessage?: string;
78
66
  /**
79
67
  * Additional text displayed next to the tax form's status badge.
80
68
  *
@@ -179,18 +167,35 @@ export declare class TaxAndCashDashboard {
179
167
  * @uiName Payout error message title
180
168
  * @uiWidget textArea
181
169
  */
182
- errorTitleText: string;
170
+ payoutHoldAlertHeader: string;
183
171
  /**
184
172
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
185
173
  * @uiName Payout error message description
186
174
  * @uiWidget textArea
187
175
  */
188
- errorDescriptionText: string;
176
+ payoutHoldAlertDescription: string;
189
177
  /**
190
178
  * Text displayed for existing publishers that do not have saved banking information.
191
179
  * @uiName Payout missing information subtext
192
180
  */
193
181
  payoutMissingInformationText: string;
182
+ /**
183
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
184
+ * @uiName Verification required alert message title
185
+ * @uiWidget textArea
186
+ */
187
+ verificationRequiredHeader: string;
188
+ /**
189
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
190
+ * @uiName Verification required alert message description
191
+ * @uiWidget textArea
192
+ */
193
+ verificationRequiredDescription: string;
194
+ /**
195
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
196
+ * @uiName Verification required alert button text
197
+ */
198
+ verificationRequiredButtonText: string;
194
199
  /**
195
200
  * Part of the alert displayed at the top of the page.
196
201
  * @uiName Form submission error message title
@@ -275,10 +280,6 @@ export declare class TaxAndCashDashboard {
275
280
  * @uiName Cancel button label
276
281
  */
277
282
  cancelButton: string;
278
- /**
279
- * @uiName Verify button label
280
- */
281
- verifyIdentityButton: string;
282
283
  /**
283
284
  * @undocumented
284
285
  * @uiType object