@saasquatch/mint-components 1.13.5-0 → 1.14.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/cjs/{ShadowViewAddon-14a02da4.js → AutoColor-3b59126f.js} +1137 -1137
  2. package/dist/cjs/ErrorView-b2fcf954.js +35 -0
  3. package/dist/cjs/IndirectTaxDetailsView-409dae6f.js +646 -0
  4. package/dist/cjs/data-6d96b89c.js +137 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mint-components.cjs.js +1 -1
  7. package/dist/cjs/parseStates-d1effc19.js +16 -0
  8. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +209 -1885
  9. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +30 -30
  10. package/dist/cjs/sqm-code-verification.cjs.entry.js +349 -0
  11. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  12. package/dist/cjs/sqm-stencilbook.cjs.entry.js +12390 -11094
  13. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
  14. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  15. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
  16. package/dist/cjs/utils-8257e7ab.js +105 -0
  17. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
  18. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +37 -3
  19. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  20. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  24. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  25. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  26. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  27. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  29. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  30. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  31. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  32. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  33. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +75 -41
  34. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  35. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
  36. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  37. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
  38. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
  39. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  40. package/dist/collection/utils/parseStates.js +12 -0
  41. package/dist/esm/{ShadowViewAddon-23a6afab.js → AutoColor-d8d7f31d.js} +1141 -1141
  42. package/dist/esm/ErrorView-48e2b969.js +33 -0
  43. package/dist/esm/IndirectTaxDetailsView-c321099a.js +639 -0
  44. package/dist/esm/data-a05c78ae.js +121 -0
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/mint-components.js +1 -1
  47. package/dist/esm/parseStates-ed75e224.js +14 -0
  48. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +133 -1802
  49. package/dist/esm/sqm-big-stat_41.entry.js +1 -1
  50. package/dist/esm/sqm-code-verification.entry.js +345 -0
  51. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  52. package/dist/esm/sqm-stencilbook.entry.js +10501 -9205
  53. package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
  54. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  55. package/dist/esm/sqm-widget-verification.entry.js +17 -6
  56. package/dist/esm/utils-7c96856c.js +97 -0
  57. package/dist/esm-es5/AutoColor-d8d7f31d.js +1 -0
  58. package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
  59. package/dist/esm-es5/IndirectTaxDetailsView-c321099a.js +1 -0
  60. package/dist/esm-es5/data-a05c78ae.js +1 -0
  61. package/dist/esm-es5/loader.js +1 -1
  62. package/dist/esm-es5/mint-components.js +1 -1
  63. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  64. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  65. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  66. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  67. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  68. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  69. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  70. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  71. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  72. package/dist/esm-es5/utils-7c96856c.js +1 -0
  73. package/dist/mint-components/mint-components.esm.js +1 -1
  74. package/dist/mint-components/p-0603a39f.js +1 -0
  75. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  76. package/dist/mint-components/p-0b8f6a39.entry.js +11 -0
  77. package/dist/mint-components/p-115dfc03.system.js +1 -0
  78. package/dist/mint-components/p-13f3a647.js +1 -0
  79. package/dist/mint-components/p-1a7453c6.system.js +1 -0
  80. package/dist/mint-components/p-33d79be3.entry.js +93 -0
  81. package/dist/mint-components/p-37996351.system.js +1 -1
  82. package/dist/mint-components/p-3a62a7e2.system.js +1 -0
  83. package/dist/mint-components/p-4a46897f.system.js +1 -0
  84. package/dist/mint-components/p-4d11920f.entry.js +1 -0
  85. package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
  86. package/dist/mint-components/p-6ef506ba.entry.js +16 -0
  87. package/dist/mint-components/{p-33ed6f1c.system.entry.js → p-70adcf4f.system.entry.js} +1 -1
  88. package/dist/mint-components/p-70d3d873.system.entry.js +1 -0
  89. package/dist/mint-components/p-7e0bf3de.system.entry.js +1 -0
  90. package/dist/mint-components/p-83acd617.js +1 -0
  91. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  92. package/dist/mint-components/{p-01010af0.entry.js → p-84ed9923.entry.js} +5 -5
  93. package/dist/mint-components/p-889ec1df.system.entry.js +1 -0
  94. package/dist/mint-components/p-8a784f2a.system.entry.js +1 -0
  95. package/dist/mint-components/p-93e4a3c3.system.js +1 -0
  96. package/dist/mint-components/p-98a48fc4.system.entry.js +1 -0
  97. package/dist/mint-components/p-9acb5038.js +1 -0
  98. package/dist/mint-components/p-a38ca165.entry.js +9 -0
  99. package/dist/mint-components/p-c75a3b4a.js +103 -0
  100. package/dist/mint-components/p-d75c462c.entry.js +1 -0
  101. package/dist/mint-components/p-ea7f379d.js +394 -0
  102. package/dist/mint-components/p-f8175201.system.js +1 -0
  103. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +6 -0
  104. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  105. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  106. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  107. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  108. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  109. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  110. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  111. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -10
  112. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  113. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  114. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
  115. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  116. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
  117. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  118. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  119. package/dist/types/components.d.ts +96 -89
  120. package/dist/types/global/android.d.ts +7 -0
  121. package/dist/types/global/demo.d.ts +2 -0
  122. package/dist/types/stories/features.d.ts +4 -0
  123. package/dist/types/stories/templates.d.ts +4 -0
  124. package/dist/types/utils/parseStates.d.ts +1 -0
  125. package/docs/docs.docx +0 -0
  126. package/docs/raisins.json +1 -1
  127. package/grapesjs/grapesjs.js +1 -1
  128. package/package.json +2 -1
  129. package/dist/cjs/sqm-invoice-table-view-baded4af.js +0 -2067
  130. package/dist/esm/sqm-invoice-table-view-af69cd33.js +0 -2050
  131. package/dist/esm-es5/ShadowViewAddon-23a6afab.js +0 -1
  132. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +0 -1
  134. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  135. package/dist/mint-components/p-38b5f028.system.entry.js +0 -1
  136. package/dist/mint-components/p-6427e963.entry.js +0 -1
  137. package/dist/mint-components/p-7e7cbccf.system.js +0 -1
  138. package/dist/mint-components/p-9320582e.system.js +0 -1
  139. package/dist/mint-components/p-962f3200.js +0 -1
  140. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  141. package/dist/mint-components/p-b93fd99c.system.entry.js +0 -1
  142. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  143. package/dist/mint-components/p-d3d74266.js +0 -394
  144. package/dist/mint-components/p-f29eda2f.entry.js +0 -205
  145. package/dist/mint-components/p-f2cc6a6f.entry.js +0 -9
  146. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  147. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};System.register(["./p-6cd4f2b1.system.js"],(function(n){"use strict";var e;return{setters:[function(n){e=n.d}],execute:function(){var t=n("T","sq:tax-and-cash");var a=n("a","sq:tax-form-context");var i=n("c","sq:user-info-query");var r=n("U","sq:user-form-context");var o=n("F","sq:finance-network-settings");var d=n("b","sq:countries:list");var l=n("S","sq:countries:sorted");var c=n("d","sq:countries:query");var u=n("C","sq:currencies:list");var s=n("g","sq:currencies:query");var m=n("G",e.gql(__makeTemplateObject(["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n firstName\n lastName\n email\n countryCode\n customFields\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"],["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n firstName\n lastName\n email\n countryCode\n customFields\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"])));var y=n("e",e.gql(__makeTemplateObject(["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"],["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"])));var p=n("h",e.gql(__makeTemplateObject(["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"],["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"])));var g=n("f",e.gql(__makeTemplateObject(["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"],["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"])));var C=n("i",4)}}}));
@@ -38,6 +38,12 @@ export declare class WidgetCodeVerification {
38
38
  * @uiName Network error message
39
39
  */
40
40
  networkErrorMessage: string;
41
+ /**
42
+ * @parentState {"parent": "sqm-widget-verification", "title": "Code Step" }
43
+ * @componentState { "title": "Verification Failed", "props": { "states": { "verifyFailed": true } } }
44
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
45
+ */
46
+ stateController: string;
41
47
  /**
42
48
  * @undocumented
43
49
  * @uiType object
@@ -6,6 +6,11 @@
6
6
  * @example Widget Verification Controller - <sqm-widget-verification-controller><template slot="not-verified"><sqm-widget-verification></sqm-widget-verification></template><template slot="verified"><sqm-tax-and-cash></sqm-tax-and-cash></template></sqm-widget-verification-controller>
7
7
  */
8
8
  export declare class WidgetVerificationController {
9
+ /**
10
+ * @componentState { "title": "Not Verified", "slot": "not-verified", "props": { "isAuth": false } }
11
+ * @componentState { "title": "Verified", "slot": "verified", "props": { "isAuth": true } }
12
+ */
13
+ stateController: string;
9
14
  constructor();
10
15
  disconnectedCallback(): void;
11
16
  render(): any;
@@ -89,6 +89,11 @@ export declare class WidgetVerification {
89
89
  * @uiGroup Code Verification Step
90
90
  */
91
91
  codeStep_networkErrorMessage: string;
92
+ /**
93
+ * @componentState { "title": "Email Step", "props": { "showCode": false } }
94
+ * @componentState { "title": "Code Step", "props": { "showCode": true } }
95
+ */
96
+ stateController: string;
92
97
  constructor();
93
98
  disconnectedCallback(): void;
94
99
  getStepTextProps<T extends string>(prefix: T): { [K in keyof this as K extends `${T}${infer Suffix}` ? `${Suffix}` : never]: this[K]; };
@@ -66,4 +66,3 @@ export declare const TaxAndCashDashboardLoading: () => any;
66
66
  export declare const TaxAndCashDashboardWithLoadingError: () => any;
67
67
  export declare const TaxAndCashDashboardWithGeneralError: () => any;
68
68
  export declare const TaxAndCashDashboardDisabled: () => any;
69
- export declare const TaxAndCashTextProps: () => any;
@@ -1,5 +1,5 @@
1
1
  import { VNode } from "../../../stencil-public-runtime";
2
- import { TaxDocumentType } from "../sqm-tax-and-cash/data";
2
+ import { TaxDocumentType } from "../data";
3
3
  import { ParticipantType } from "./useDocusignForm";
4
4
  export interface DocusignFormViewProps {
5
5
  states: {
@@ -19,12 +19,12 @@ export declare function useDocusignForm(props: DocusignForm): {
19
19
  errors: {};
20
20
  };
21
21
  docusignStatus: DocusignStatus;
22
- documentType: import("../sqm-tax-and-cash/data").TaxDocumentType;
22
+ documentType: import("../data").TaxDocumentType;
23
23
  documentTypeString: string;
24
24
  showExitButton: boolean;
25
25
  };
26
26
  data: {
27
- taxForm: import("../sqm-tax-and-cash/data").TaxDocumentType;
27
+ taxForm: import("../data").TaxDocumentType;
28
28
  documentUrl: string;
29
29
  };
30
30
  callbacks: {
@@ -24,6 +24,10 @@ export declare class PayoutDetailsCard {
24
24
  * @uiName Payout missing information subtext
25
25
  */
26
26
  payoutMissingInformationText: string;
27
+ /**
28
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
29
+ */
30
+ stateController?: string;
27
31
  /**
28
32
  * @undocumented
29
33
  */
@@ -1,4 +1,4 @@
1
- import { UserQuery } from "../sqm-tax-and-cash/data";
1
+ import { UserQuery } from "../data";
2
2
  import { PayoutStatusAlert } from "./sqm-payout-status-alert";
3
3
  export declare type PayoutStatus = "INFORMATION_REQUIRED" | "VERIFICATION:REQUIRED" | "VERIFICATION:INTERNAL" | "VERIFICATION:REVIEW" | "VERIFICATION:FAILED" | "HOLD" | "DONE";
4
4
  export declare function getStatus(data: UserQuery): PayoutStatus;
@@ -1,5 +1,4 @@
1
1
  import { DemoData } from "../../../global/demo";
2
- import { UseTaxAndCashResultType } from "./useTaxAndCash";
3
2
  /**
4
3
  * @uiName Tax and Cash
5
4
  * @exampleGroup Tax and Cash
@@ -947,16 +946,18 @@ export declare class TaxAndCashMonolith {
947
946
  */
948
947
  supportLink: string;
949
948
  /**
950
- *
949
+ * @uiName Monolith States
950
+ * @componentState { "title": "Step 1", "props": { "step": "/1" } }
951
+ * @componentState { "title": "Step 2", "props": { "step": "/2" } }
952
+ * @componentState { "title": "Step 3", "props": { "step": "/3" } }
953
+ * @componentState { "title": "Step 4", "props": { "step": "/4" } }
954
+ * @componentState { "title": "Dashboard", "props": { "step": "/dashboard" } }
955
+ */
956
+ stateController: string;
957
+ /**
951
958
  * @undocumented
952
- * @uiType object
953
- * @demo Step 1 - { "step": "/1" }
954
- * @demo Step 2 - { "step": "/2" }
955
- * @demo Step 3 - { "step": "/3" }
956
- * @demo Step 3 - { "step": "/4" }
957
- * @demo Dashboard - { "step": "/dashboard" }
958
- */
959
- demoData?: DemoData<UseTaxAndCashResultType>;
959
+ */
960
+ demoData?: DemoData<TaxAndCashMonolith>;
960
961
  constructor();
961
962
  disconnectedCallback(): void;
962
963
  getGeneralStepTextProps(prefix: string): { [K in keyof this as K extends `${string}${infer Suffix}` ? `${Suffix}` : never]: this[K]; } & {
@@ -1,4 +1,4 @@
1
- import { TaxContext } from "./data";
1
+ import { TaxContext } from "../data";
2
2
  export declare function useTaxAndCash(): {
3
3
  step: string;
4
4
  setStep: (value: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { VNode } from "../../../stencil-public-runtime";
2
- import { TaxDocumentType } from "../sqm-tax-and-cash/data";
2
+ import { TaxDocumentType } from "../data";
3
3
  import { PayoutStatus } from "../sqm-payout-status-alert/usePayoutStatus";
4
4
  export interface TaxAndCashDashboardProps {
5
5
  states: {
@@ -308,6 +308,16 @@ export declare class TaxAndCashDashboard {
308
308
  * @uiName Cancel button label
309
309
  */
310
310
  cancelButton: string;
311
+ /**
312
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
313
+ * @componentState { "title": "Default", "props": { } }
314
+ * @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
315
+ * @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
316
+ * @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
317
+ * @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
318
+ * @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
319
+ */
320
+ stateController?: string;
311
321
  /**
312
322
  * @undocumented
313
323
  * @uiType object
@@ -1,4 +1,4 @@
1
- import { TaxCountry } from "../../sqm-tax-and-cash/data";
1
+ import { TaxCountry } from "../../data";
2
2
  export interface IndirectDetailsSlotViewProps {
3
3
  states: {
4
4
  disabled: boolean;
@@ -156,6 +156,13 @@ export declare class TaxForm {
156
156
  * @uiName Support link text
157
157
  */
158
158
  supportLink: string;
159
+ /**
160
+ * @uiName States
161
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
162
+ * @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
163
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
164
+ */
165
+ stateController: string;
159
166
  /**
160
167
  * @undocumented
161
168
  * @uiType object
@@ -1,4 +1,4 @@
1
- import { TaxCountry } from "../sqm-tax-and-cash/data";
1
+ import { TaxCountry } from "../data";
2
2
  import { TaxForm } from "./sqm-user-info-form";
3
3
  export declare type ValidationErrorFunction = (input: {
4
4
  control: any;
@@ -1,4 +1,4 @@
1
- import { TaxDocumentType } from "./sqm-tax-and-cash/data";
1
+ import { TaxDocumentType } from "./data";
2
2
  export declare function validTaxDocument(requiredType: TaxDocumentType | undefined): boolean;
3
3
  export declare const objectIsFull: (obj: Record<string, unknown>) => boolean;
4
4
  export declare const taxTypeToName: (taxType: TaxDocumentType) => "" | "W-9" | "W-8";
@@ -43,14 +43,12 @@ import { PortalProfileViewProps } from "./components/sqm-portal-profile/sqm-port
43
43
  import { PortalRegisterViewProps } from "./components/sqm-portal-register/sqm-portal-register-view";
44
44
  import { PortalResetPasswordViewProps } from "./components/sqm-portal-reset-password/sqm-portal-reset-password-view";
45
45
  import { PortalVerifyEmailViewProps } from "./components/sqm-portal-verify-email/sqm-portal-verify-email-view";
46
- import { QRCodeViewProps } from "./components/sqm-qr-code/sqm-qr-code-view";
47
46
  import { ReferralCodesViewProps } from "./components/sqm-referral-codes/sqm-referral-codes-view";
48
47
  import { ReferralIframeViewProps } from "./components/sqm-referral-iframe/sqm-referral-iframe-view";
49
48
  import { ReferralDates } from "./components/sqm-referral-table/useReferralTable";
50
49
  import { RewardExchangeViewProps } from "./components/sqm-reward-exchange-list/sqm-reward-exchange-list-view";
51
50
  import { ShareButtonViewProps } from "./components/sqm-share-button/sqm-share-button-view";
52
51
  import { TaskCardViewProps } from "./components/sqm-task-card/sqm-task-card-view";
53
- import { UseTaxAndCashResultType } from "./components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash";
54
52
  import { UseTaxAndCashDashboardResult } from "./components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard";
55
53
  import { UseUserInfoFormResult } from "./components/tax-and-cash/sqm-user-info-form/useUserInfoForm";
56
54
  import { UserNameViewProps } from "./components/sqm-user-name/sqm-user-name-view";
@@ -476,6 +474,12 @@ export namespace Components {
476
474
  * @uiName Reverify code widget header text
477
475
  */
478
476
  "reverifyCodeHeaderText": string;
477
+ /**
478
+ * @parentState {"parent": "sqm-widget-verification", "title": "Code Step" }
479
+ * @componentState { "title": "Verification Failed", "props": { "states": { "verifyFailed": true } } }
480
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
481
+ */
482
+ "stateController": string;
479
483
  /**
480
484
  * @uiName Verify code widget header text
481
485
  */
@@ -1760,6 +1764,10 @@ export namespace Components {
1760
1764
  * @uiName Payout missing information subtext
1761
1765
  */
1762
1766
  "payoutMissingInformationText": string;
1767
+ /**
1768
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
1769
+ */
1770
+ "stateController"?: string;
1763
1771
  /**
1764
1772
  * Badge text indicating payout status
1765
1773
  * @uiName Payout badge status text
@@ -2992,37 +3000,6 @@ export namespace Components {
2992
3000
  }
2993
3001
  interface SqmProgramMenu {
2994
3002
  }
2995
- interface SqmQrCode {
2996
- /**
2997
- * @undocumented
2998
- * @uiType object
2999
- */
3000
- "demoData"?: DemoData<QRCodeViewProps>;
3001
- /**
3002
- * @uiName Download QR code text
3003
- */
3004
- "downloadCodeText"?: string;
3005
- /**
3006
- * @uiName Description for error banner
3007
- */
3008
- "errorDescriptionText"?: string;
3009
- /**
3010
- * @uiName Header for error banner
3011
- */
3012
- "errorHeaderText"?: string;
3013
- /**
3014
- * @uiName Print QR code text
3015
- */
3016
- "printCodeText"?: string;
3017
- /**
3018
- * @uiName Title
3019
- */
3020
- "titleText"?: string;
3021
- /**
3022
- * @uiName View QR code text
3023
- */
3024
- "viewCodeText"?: string;
3025
- }
3026
3003
  interface SqmReferralCard {
3027
3004
  /**
3028
3005
  * @uiName Background color
@@ -4695,15 +4672,9 @@ export namespace Components {
4695
4672
  */
4696
4673
  "dashboard_verificationReviewInternalHeader": string;
4697
4674
  /**
4698
- * @undocumented
4699
- * @uiType object
4700
- * @demo Step 1 - { "step": "/1" }
4701
- * @demo Step 2 - { "step": "/2" }
4702
- * @demo Step 3 - { "step": "/3" }
4703
- * @demo Step 3 - { "step": "/4" }
4704
- * @demo Dashboard - { "step": "/dashboard" }
4675
+ * @undocumented
4705
4676
  */
4706
- "demoData"?: DemoData<UseTaxAndCashResultType>;
4677
+ "demoData"?: DemoData<TaxAndCashMonolith>;
4707
4678
  /**
4708
4679
  * Displayed under a field when it has an invalid entry.
4709
4680
  * @uiName Form field error message
@@ -4775,6 +4746,15 @@ export namespace Components {
4775
4746
  * @uiGroup General Form Properties
4776
4747
  */
4777
4748
  "searchForCountryText": string;
4749
+ /**
4750
+ * @uiName Monolith States
4751
+ * @componentState { "title": "Step 1", "props": { "step": "/1" } }
4752
+ * @componentState { "title": "Step 2", "props": { "step": "/2" } }
4753
+ * @componentState { "title": "Step 3", "props": { "step": "/3" } }
4754
+ * @componentState { "title": "Step 4", "props": { "step": "/4" } }
4755
+ * @componentState { "title": "Dashboard", "props": { "step": "/dashboard" } }
4756
+ */
4757
+ "stateController": string;
4778
4758
  /**
4779
4759
  * @uiName Address field label
4780
4760
  * @uiGroup Step 1 Properties
@@ -5480,6 +5460,16 @@ export namespace Components {
5480
5460
  * @uiName Replace tax form modal header
5481
5461
  */
5482
5462
  "replaceTaxFormModalHeader": string;
5463
+ /**
5464
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
5465
+ * @componentState { "title": "Default", "props": { } }
5466
+ * @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
5467
+ * @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
5468
+ * @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
5469
+ * @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
5470
+ * @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
5471
+ */
5472
+ "stateController"?: string;
5483
5473
  /**
5484
5474
  * @uiName Payout status badge
5485
5475
  */
@@ -5802,6 +5792,13 @@ export namespace Components {
5802
5792
  * @uiName State field label
5803
5793
  */
5804
5794
  "state": string;
5795
+ /**
5796
+ * @uiName States
5797
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
5798
+ * @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
5799
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5800
+ */
5801
+ "stateController": string;
5805
5802
  /**
5806
5803
  * @uiName Support link text
5807
5804
  */
@@ -5925,8 +5922,18 @@ export namespace Components {
5925
5922
  * @uiGroup General Text
5926
5923
  */
5927
5924
  "general_verifyEmailHeader": string;
5925
+ /**
5926
+ * @componentState { "title": "Email Step", "props": { "showCode": false } }
5927
+ * @componentState { "title": "Code Step", "props": { "showCode": true } }
5928
+ */
5929
+ "stateController": string;
5928
5930
  }
5929
5931
  interface SqmWidgetVerificationController {
5932
+ /**
5933
+ * @componentState { "title": "Not Verified", "slot": "not-verified", "props": { "isAuth": false } }
5934
+ * @componentState { "title": "Verified", "slot": "verified", "props": { "isAuth": true } }
5935
+ */
5936
+ "stateController": string;
5930
5937
  }
5931
5938
  }
5932
5939
  declare global {
@@ -6350,12 +6357,6 @@ declare global {
6350
6357
  prototype: HTMLSqmProgramMenuElement;
6351
6358
  new (): HTMLSqmProgramMenuElement;
6352
6359
  };
6353
- interface HTMLSqmQrCodeElement extends Components.SqmQrCode, HTMLStencilElement {
6354
- }
6355
- var HTMLSqmQrCodeElement: {
6356
- prototype: HTMLSqmQrCodeElement;
6357
- new (): HTMLSqmQrCodeElement;
6358
- };
6359
6360
  interface HTMLSqmReferralCardElement extends Components.SqmReferralCard, HTMLStencilElement {
6360
6361
  }
6361
6362
  var HTMLSqmReferralCardElement: {
@@ -6739,7 +6740,6 @@ declare global {
6739
6740
  "sqm-program-explainer": HTMLSqmProgramExplainerElement;
6740
6741
  "sqm-program-explainer-step": HTMLSqmProgramExplainerStepElement;
6741
6742
  "sqm-program-menu": HTMLSqmProgramMenuElement;
6742
- "sqm-qr-code": HTMLSqmQrCodeElement;
6743
6743
  "sqm-referral-card": HTMLSqmReferralCardElement;
6744
6744
  "sqm-referral-code": HTMLSqmReferralCodeElement;
6745
6745
  "sqm-referral-codes": HTMLSqmReferralCodesElement;
@@ -7214,6 +7214,12 @@ declare namespace LocalJSX {
7214
7214
  * @uiName Reverify code widget header text
7215
7215
  */
7216
7216
  "reverifyCodeHeaderText"?: string;
7217
+ /**
7218
+ * @parentState {"parent": "sqm-widget-verification", "title": "Code Step" }
7219
+ * @componentState { "title": "Verification Failed", "props": { "states": { "verifyFailed": true } } }
7220
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
7221
+ */
7222
+ "stateController"?: string;
7217
7223
  /**
7218
7224
  * @uiName Verify code widget header text
7219
7225
  */
@@ -8493,6 +8499,10 @@ declare namespace LocalJSX {
8493
8499
  * @uiName Payout missing information subtext
8494
8500
  */
8495
8501
  "payoutMissingInformationText"?: string;
8502
+ /**
8503
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
8504
+ */
8505
+ "stateController"?: string;
8496
8506
  /**
8497
8507
  * Badge text indicating payout status
8498
8508
  * @uiName Payout badge status text
@@ -9725,37 +9735,6 @@ declare namespace LocalJSX {
9725
9735
  }
9726
9736
  interface SqmProgramMenu {
9727
9737
  }
9728
- interface SqmQrCode {
9729
- /**
9730
- * @undocumented
9731
- * @uiType object
9732
- */
9733
- "demoData"?: DemoData<QRCodeViewProps>;
9734
- /**
9735
- * @uiName Download QR code text
9736
- */
9737
- "downloadCodeText"?: string;
9738
- /**
9739
- * @uiName Description for error banner
9740
- */
9741
- "errorDescriptionText"?: string;
9742
- /**
9743
- * @uiName Header for error banner
9744
- */
9745
- "errorHeaderText"?: string;
9746
- /**
9747
- * @uiName Print QR code text
9748
- */
9749
- "printCodeText"?: string;
9750
- /**
9751
- * @uiName Title
9752
- */
9753
- "titleText"?: string;
9754
- /**
9755
- * @uiName View QR code text
9756
- */
9757
- "viewCodeText"?: string;
9758
- }
9759
9738
  interface SqmReferralCard {
9760
9739
  /**
9761
9740
  * @uiName Background color
@@ -11404,15 +11383,9 @@ declare namespace LocalJSX {
11404
11383
  */
11405
11384
  "dashboard_verificationReviewInternalHeader"?: string;
11406
11385
  /**
11407
- * @undocumented
11408
- * @uiType object
11409
- * @demo Step 1 - { "step": "/1" }
11410
- * @demo Step 2 - { "step": "/2" }
11411
- * @demo Step 3 - { "step": "/3" }
11412
- * @demo Step 3 - { "step": "/4" }
11413
- * @demo Dashboard - { "step": "/dashboard" }
11386
+ * @undocumented
11414
11387
  */
11415
- "demoData"?: DemoData<UseTaxAndCashResultType>;
11388
+ "demoData"?: DemoData<TaxAndCashMonolith>;
11416
11389
  /**
11417
11390
  * Displayed under a field when it has an invalid entry.
11418
11391
  * @uiName Form field error message
@@ -11484,6 +11457,15 @@ declare namespace LocalJSX {
11484
11457
  * @uiGroup General Form Properties
11485
11458
  */
11486
11459
  "searchForCountryText"?: string;
11460
+ /**
11461
+ * @uiName Monolith States
11462
+ * @componentState { "title": "Step 1", "props": { "step": "/1" } }
11463
+ * @componentState { "title": "Step 2", "props": { "step": "/2" } }
11464
+ * @componentState { "title": "Step 3", "props": { "step": "/3" } }
11465
+ * @componentState { "title": "Step 4", "props": { "step": "/4" } }
11466
+ * @componentState { "title": "Dashboard", "props": { "step": "/dashboard" } }
11467
+ */
11468
+ "stateController"?: string;
11487
11469
  /**
11488
11470
  * @uiName Address field label
11489
11471
  * @uiGroup Step 1 Properties
@@ -12189,6 +12171,16 @@ declare namespace LocalJSX {
12189
12171
  * @uiName Replace tax form modal header
12190
12172
  */
12191
12173
  "replaceTaxFormModalHeader"?: string;
12174
+ /**
12175
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
12176
+ * @componentState { "title": "Default", "props": { } }
12177
+ * @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
12178
+ * @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
12179
+ * @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
12180
+ * @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
12181
+ * @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
12182
+ */
12183
+ "stateController"?: string;
12192
12184
  /**
12193
12185
  * @uiName Payout status badge
12194
12186
  */
@@ -12510,6 +12502,13 @@ declare namespace LocalJSX {
12510
12502
  * @uiName State field label
12511
12503
  */
12512
12504
  "state"?: string;
12505
+ /**
12506
+ * @uiName States
12507
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
12508
+ * @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
12509
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
12510
+ */
12511
+ "stateController"?: string;
12513
12512
  /**
12514
12513
  * @uiName Support link text
12515
12514
  */
@@ -12633,8 +12632,18 @@ declare namespace LocalJSX {
12633
12632
  * @uiGroup General Text
12634
12633
  */
12635
12634
  "general_verifyEmailHeader"?: string;
12635
+ /**
12636
+ * @componentState { "title": "Email Step", "props": { "showCode": false } }
12637
+ * @componentState { "title": "Code Step", "props": { "showCode": true } }
12638
+ */
12639
+ "stateController"?: string;
12636
12640
  }
12637
12641
  interface SqmWidgetVerificationController {
12642
+ /**
12643
+ * @componentState { "title": "Not Verified", "slot": "not-verified", "props": { "isAuth": false } }
12644
+ * @componentState { "title": "Verified", "slot": "verified", "props": { "isAuth": true } }
12645
+ */
12646
+ "stateController"?: string;
12638
12647
  }
12639
12648
  interface IntrinsicElements {
12640
12649
  "raisins-plop-target": RaisinsPlopTarget;
@@ -12707,7 +12716,6 @@ declare namespace LocalJSX {
12707
12716
  "sqm-program-explainer": SqmProgramExplainer;
12708
12717
  "sqm-program-explainer-step": SqmProgramExplainerStep;
12709
12718
  "sqm-program-menu": SqmProgramMenu;
12710
- "sqm-qr-code": SqmQrCode;
12711
12719
  "sqm-referral-card": SqmReferralCard;
12712
12720
  "sqm-referral-code": SqmReferralCode;
12713
12721
  "sqm-referral-codes": SqmReferralCodes;
@@ -12836,7 +12844,6 @@ declare module "@stencil/core" {
12836
12844
  "sqm-program-explainer": LocalJSX.SqmProgramExplainer & JSXBase.HTMLAttributes<HTMLSqmProgramExplainerElement>;
12837
12845
  "sqm-program-explainer-step": LocalJSX.SqmProgramExplainerStep & JSXBase.HTMLAttributes<HTMLSqmProgramExplainerStepElement>;
12838
12846
  "sqm-program-menu": LocalJSX.SqmProgramMenu & JSXBase.HTMLAttributes<HTMLSqmProgramMenuElement>;
12839
- "sqm-qr-code": LocalJSX.SqmQrCode & JSXBase.HTMLAttributes<HTMLSqmQrCodeElement>;
12840
12847
  "sqm-referral-card": LocalJSX.SqmReferralCard & JSXBase.HTMLAttributes<HTMLSqmReferralCardElement>;
12841
12848
  "sqm-referral-code": LocalJSX.SqmReferralCode & JSXBase.HTMLAttributes<HTMLSqmReferralCodeElement>;
12842
12849
  "sqm-referral-codes": LocalJSX.SqmReferralCodes & JSXBase.HTMLAttributes<HTMLSqmReferralCodesElement>;
@@ -0,0 +1,7 @@
1
+ interface AndroidInterface {
2
+ platform: 'android';
3
+ shareOnFacebook(shareUrl: string, fallbackUrl: string): void;
4
+ showToast(toast: string): void;
5
+ }
6
+
7
+ export type PlatformNativeActions = AndroidInterface | undefined;
@@ -0,0 +1,2 @@
1
+ export type DemoData<T extends {}> = Partial<Omit<T, "callbacks" | "text">>;
2
+ export type StoryDemoData<T extends {}> = Partial<Omit<T, "text">>;
@@ -0,0 +1,4 @@
1
+ declare module "*.feature" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,4 @@
1
+ declare module "*.html" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1 @@
1
+ export declare function parseStates(states: any): any;
package/docs/docs.docx CHANGED
Binary file