@saasquatch/mint-components 1.12.0-9 → 1.12.1-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 (387) hide show
  1. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-c3e91cee.js} +22 -25
  2. package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
  3. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/mint-components.cjs.js +3 -3
  6. package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +139 -262
  9. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +218 -339
  10. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
  12. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
  14. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  15. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-e3b03a00.js} +1 -99
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  17. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
  18. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
  19. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
  23. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
  24. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
  25. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  26. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
  27. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
  28. package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
  29. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  30. package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
  31. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +13 -88
  32. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
  33. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
  34. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  35. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  36. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  37. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
  38. package/dist/cjs/sqm-stencilbook.cjs.entry.js +366 -377
  39. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  40. package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
  41. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
  42. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
  43. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
  44. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
  45. package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
  46. package/dist/collection/collection-manifest.json +1 -6
  47. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  48. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
  49. package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
  50. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
  51. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
  52. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  53. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
  54. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
  55. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
  56. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
  57. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
  58. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
  59. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
  60. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
  61. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  62. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  63. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
  64. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
  65. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
  66. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  67. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
  68. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-e012b2aa.js} +22 -25
  69. package/dist/esm/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
  70. package/dist/esm/{index.module-6c840c4e.js → index.module-def4aec5.js} +3 -40
  71. package/dist/esm/loader.js +3 -3
  72. package/dist/esm/mint-components.js +3 -3
  73. package/dist/esm/{re-render-1bcfd0de.js → re-render-12fd274a.js} +4 -4
  74. package/dist/esm/sqm-asset-card.entry.js +1 -1
  75. package/dist/esm/sqm-banking-info-form_16.entry.js +138 -261
  76. package/dist/esm/sqm-big-stat_39.entry.js +217 -338
  77. package/dist/esm/sqm-close-button.entry.js +1 -1
  78. package/dist/esm/sqm-context-router.entry.js +2 -2
  79. package/dist/esm/sqm-empty_4.entry.js +2 -2
  80. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
  81. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  82. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-6e13a323.js} +1 -99
  83. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  84. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  85. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
  86. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  87. package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
  88. package/dist/esm/sqm-password-field.entry.js +2 -2
  89. package/dist/esm/sqm-popup-container.entry.js +4 -4
  90. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
  91. package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
  92. package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
  93. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  94. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  95. package/dist/esm/sqm-portal-profile.entry.js +7 -7
  96. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  97. package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
  98. package/dist/esm/sqm-portal-registration-form.entry.js +18 -93
  99. package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
  100. package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
  101. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  102. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  103. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  104. package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
  105. package/dist/esm/sqm-stencilbook.entry.js +366 -377
  106. package/dist/esm/sqm-tab.entry.js +2 -2
  107. package/dist/esm/sqm-tabs.entry.js +4 -4
  108. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  109. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +2 -2
  110. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46b89952.js} +3 -3
  111. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +9 -9
  112. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-9fc1ac80.js} +2 -2
  113. package/dist/esm/{utilities-443732be.js → utilities-3f5bba22.js} +1 -1
  114. package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
  115. package/dist/esm-es5/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
  116. package/dist/esm-es5/index.module-def4aec5.js +1 -0
  117. package/dist/esm-es5/loader.js +1 -1
  118. package/dist/esm-es5/mint-components.js +1 -1
  119. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-12fd274a.js} +1 -1
  120. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  121. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  122. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  123. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  124. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  125. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  126. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  127. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  128. package/dist/esm-es5/sqm-invoice-table-view-6e13a323.js +1 -0
  129. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  130. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  131. package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +1 -0
  132. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  133. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  134. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  135. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  136. package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
  137. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  138. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  139. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  140. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  141. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  142. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  143. package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
  144. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  145. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  146. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  147. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  148. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  149. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  150. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  151. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  152. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  153. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  154. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  155. package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +1 -1
  156. package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
  157. package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +1 -1
  158. package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
  159. package/dist/esm-es5/{utilities-443732be.js → utilities-3f5bba22.js} +1 -1
  160. package/dist/mint-components/mint-components.esm.js +1 -1
  161. package/dist/mint-components/mint-components.js +1 -1
  162. package/dist/mint-components/{p-f450654b.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-94454880.entry.js → p-021a735d.entry.js} +1 -1
  164. package/dist/mint-components/{p-ac51940e.system.js → p-02424350.system.js} +1 -1
  165. package/dist/mint-components/p-03494732.entry.js +1 -0
  166. package/dist/mint-components/{p-59818690.system.entry.js → p-07f675ab.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-11d1b212.js → p-0b9fa97f.js} +1 -1
  168. package/dist/mint-components/{p-5becb2ff.system.js → p-0d8c53ac.system.js} +1 -1
  169. package/dist/mint-components/{p-9eae245f.js → p-10685090.js} +4 -7
  170. package/dist/mint-components/p-10e89d0a.entry.js +1 -0
  171. package/dist/mint-components/{p-012daf3c.entry.js → p-137ea86e.entry.js} +1 -1
  172. package/dist/mint-components/p-1c857edb.entry.js +33 -0
  173. package/dist/mint-components/{p-e12d3414.system.entry.js → p-1dd69917.system.entry.js} +1 -1
  174. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  175. package/dist/mint-components/{p-d468925f.entry.js → p-2dd67762.entry.js} +1 -1
  176. package/dist/mint-components/{p-1d27da33.js → p-2ee2ebba.js} +2 -2
  177. package/dist/mint-components/{p-84b25a46.entry.js → p-3223ba7b.entry.js} +1 -1
  178. package/dist/mint-components/{p-f4cbbe47.entry.js → p-32d1d162.entry.js} +1 -1
  179. package/dist/mint-components/{p-cb433855.system.entry.js → p-35d84041.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-4babe350.system.js → p-3d4656bb.system.js} +1 -1
  181. package/dist/mint-components/{p-f36e33ff.entry.js → p-3ec16698.entry.js} +2 -2
  182. package/dist/mint-components/p-40b1de58.js +1 -0
  183. package/dist/mint-components/p-4112e198.system.js +1 -0
  184. package/dist/mint-components/{p-04348a9b.js → p-41a11a7f.js} +1 -1
  185. package/dist/mint-components/p-44787d6e.system.js +1 -0
  186. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4502ed11.system.entry.js} +1 -1
  187. package/dist/mint-components/p-458b2894.entry.js +9 -0
  188. package/dist/mint-components/{p-e0e7635a.js → p-4d233cd4.js} +1 -1
  189. package/dist/mint-components/{p-cd44de66.system.js → p-4df8f1d2.system.js} +1 -1
  190. package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-4ea58025.system.entry.js} +1 -1
  191. package/dist/mint-components/{p-a45b03d2.entry.js → p-4edde470.entry.js} +1 -1
  192. package/dist/mint-components/p-51f517a2.js +1 -0
  193. package/dist/mint-components/{p-bee1e573.entry.js → p-56f14840.entry.js} +1 -1
  194. package/dist/mint-components/{p-0527d90b.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-fc422446.system.js → p-59fe4ad1.system.js} +1 -1
  196. package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
  197. package/dist/mint-components/p-5be235f9.entry.js +1 -0
  198. package/dist/mint-components/{p-bc826117.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
  199. package/dist/mint-components/{p-22425c71.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-0121e044.js → p-61eab172.js} +1 -1
  201. package/dist/mint-components/{p-4eae91a9.system.js → p-674a64fe.system.js} +1 -1
  202. package/dist/mint-components/{p-76392386.entry.js → p-6cef104b.entry.js} +1 -1
  203. package/dist/mint-components/{p-0893073b.entry.js → p-7049e9b0.entry.js} +1 -1
  204. package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
  205. package/dist/mint-components/p-770368bc.system.js +1 -0
  206. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-7731f793.system.entry.js} +1 -1
  207. package/dist/mint-components/p-79191f88.entry.js +1 -0
  208. package/dist/mint-components/p-7f088154.entry.js +1 -0
  209. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-6c928c7d.entry.js → p-86990110.entry.js} +1 -1
  211. package/dist/mint-components/{p-d83b0cf3.js → p-8704937c.js} +1 -1
  212. package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
  213. package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
  214. package/dist/mint-components/p-91669312.entry.js +1 -0
  215. package/dist/mint-components/p-95771f79.system.js +1 -0
  216. package/dist/mint-components/p-96242551.system.entry.js +1 -0
  217. package/dist/mint-components/{p-f56348dc.system.entry.js → p-9c310991.system.entry.js} +1 -1
  218. package/dist/mint-components/{p-9ec008cb.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-f531a5c9.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
  220. package/dist/mint-components/p-a6a7dcaa.js +1 -0
  221. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
  222. package/dist/mint-components/p-a8f7cb95.js +1 -0
  223. package/dist/mint-components/{p-03dbe2ce.entry.js → p-a9050eb0.entry.js} +1 -1
  224. package/dist/mint-components/{p-fd21ae8f.entry.js → p-aad11a68.entry.js} +1 -1
  225. package/dist/mint-components/p-aee2304a.entry.js +223 -0
  226. package/dist/mint-components/{p-04ced592.system.entry.js → p-af062c8f.system.entry.js} +1 -1
  227. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-afd366ae.system.entry.js} +1 -1
  228. package/dist/mint-components/p-b370fca8.system.js +1 -0
  229. package/dist/mint-components/{p-5291891c.entry.js → p-b4c52c5a.entry.js} +2 -2
  230. package/dist/mint-components/{p-36e9296e.system.entry.js → p-b5861974.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
  232. package/dist/mint-components/p-bb00db59.js +1 -0
  233. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-be4b748a.system.entry.js} +1 -1
  234. package/dist/mint-components/{p-8d554a89.system.js → p-c84659a3.system.js} +1 -1
  235. package/dist/mint-components/{p-9e0230c3.entry.js → p-ce5afa40.entry.js} +1 -1
  236. package/dist/mint-components/{p-2816bf6a.js → p-ce621bcc.js} +1 -1
  237. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-cf690d55.system.entry.js} +1 -1
  238. package/dist/mint-components/p-d5de2646.system.entry.js +1 -0
  239. package/dist/mint-components/{p-4671e644.entry.js → p-d8d2de11.entry.js} +1 -1
  240. package/dist/mint-components/p-d8e68e16.entry.js +13 -0
  241. package/dist/mint-components/{p-4e373c3d.system.js → p-dd7ee007.system.js} +1 -1
  242. package/dist/mint-components/{p-d35d8c06.entry.js → p-e3735866.entry.js} +2 -2
  243. package/dist/mint-components/p-e6d74386.system.entry.js +1 -0
  244. package/dist/mint-components/{p-68747d88.js → p-eaada4da.js} +1 -1
  245. package/dist/mint-components/{p-51d53165.system.entry.js → p-eba44835.system.entry.js} +1 -1
  246. package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
  247. package/dist/mint-components/{p-43621f12.system.js → p-ed095674.system.js} +1 -1
  248. package/dist/mint-components/p-ed17e637.system.js +1 -0
  249. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
  250. package/dist/mint-components/p-fd2c5407.js +2 -2
  251. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  252. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
  253. package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
  254. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
  255. package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
  256. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  257. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
  258. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
  259. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
  260. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  261. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
  262. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  263. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
  264. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
  265. package/dist/types/components.d.ts +108 -625
  266. package/docs/docs.docx +0 -0
  267. package/docs/raisins.json +1 -1
  268. package/grapesjs/grapesjs.js +1 -1
  269. package/package.json +2 -2
  270. package/dist/cjs/extractProps-fd93ba62.js +0 -21
  271. package/dist/cjs/keys-cff24974.js +0 -11
  272. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  273. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
  274. package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
  275. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  276. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
  277. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  278. package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
  279. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
  280. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
  281. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
  282. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
  283. package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
  284. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
  285. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
  286. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
  287. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
  288. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
  289. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
  290. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
  291. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
  292. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  293. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
  294. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
  295. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
  296. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
  297. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
  298. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
  299. package/dist/esm/extractProps-ae1afbb3.js +0 -19
  300. package/dist/esm/keys-db1897ae.js +0 -6
  301. package/dist/esm/sqm-code-verification.entry.js +0 -338
  302. package/dist/esm/sqm-email-verification.entry.js +0 -279
  303. package/dist/esm/sqm-scroll.entry.js +0 -105
  304. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  305. package/dist/esm/sqm-widget-verification.entry.js +0 -206
  306. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  307. package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
  308. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  309. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  310. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  311. package/dist/esm-es5/keys-db1897ae.js +0 -1
  312. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  313. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  314. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  315. package/dist/esm-es5/sqm-navigation-sidebar-item-view-f8e78810.js +0 -1
  316. package/dist/esm-es5/sqm-scroll.entry.js +0 -1
  317. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  318. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  319. package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +0 -1
  320. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  321. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  322. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  323. package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
  324. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  325. package/dist/mint-components/p-1b861be5.entry.js +0 -1
  326. package/dist/mint-components/p-1e616d45.system.js +0 -1
  327. package/dist/mint-components/p-24092973.entry.js +0 -9
  328. package/dist/mint-components/p-26468242.js +0 -1
  329. package/dist/mint-components/p-2868f475.entry.js +0 -1
  330. package/dist/mint-components/p-331d060e.entry.js +0 -223
  331. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  332. package/dist/mint-components/p-39840341.js +0 -1
  333. package/dist/mint-components/p-4364001c.entry.js +0 -12
  334. package/dist/mint-components/p-4bd7a472.js +0 -1
  335. package/dist/mint-components/p-517224ef.js +0 -19
  336. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  337. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  338. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  339. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  340. package/dist/mint-components/p-93576222.system.js +0 -1
  341. package/dist/mint-components/p-947fe79b.entry.js +0 -1
  342. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  343. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  344. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  345. package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
  346. package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
  347. package/dist/mint-components/p-a85f57bb.entry.js +0 -1
  348. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  349. package/dist/mint-components/p-b1e8a802.entry.js +0 -1
  350. package/dist/mint-components/p-b2a99637.system.js +0 -1
  351. package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
  352. package/dist/mint-components/p-bdd6bb13.js +0 -1
  353. package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
  354. package/dist/mint-components/p-c3b37bbf.js +0 -1
  355. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  356. package/dist/mint-components/p-c7057066.system.entry.js +0 -1
  357. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  358. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  359. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  360. package/dist/mint-components/p-d7806f31.js +0 -48
  361. package/dist/mint-components/p-def516b8.system.js +0 -1
  362. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  363. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  364. package/dist/mint-components/p-e990dc21.system.js +0 -1
  365. package/dist/mint-components/p-ead27698.system.entry.js +0 -1
  366. package/dist/mint-components/p-f340214f.entry.js +0 -25
  367. package/dist/mint-components/p-f655a7df.js +0 -1
  368. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
  369. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
  370. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
  371. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
  372. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
  373. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
  374. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
  375. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
  376. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
  377. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
  378. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
  379. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
  380. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
  381. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  382. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
  383. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
  384. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
  385. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
  386. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
  387. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
@@ -1,109 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const JSS = require('./JSS-8503a151.js');
8
-
9
- const REVEAL_EVENT = "sq:reveal";
10
- function useScroll(props) {
11
- const { scrollTagName, scrollId } = props;
12
- async function scroll() {
13
- const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
14
- element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
15
- detail: scrollTagName || `#${scrollId}`,
16
- bubbles: true,
17
- composed: true,
18
- }));
19
- await new Promise((resolve) => setTimeout(resolve, 500));
20
- element.scrollIntoView({ behavior: props.scrollAnimation });
21
- }
22
- return {
23
- callbacks: { scroll },
24
- };
25
- }
26
-
27
- const Scroll = class {
28
- constructor(hostRef) {
29
- index.registerInstance(this, hostRef);
30
- this.ignored = true;
31
- /**
32
- * @uiName Button type
33
- * @uiType string
34
- * @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
35
- * @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
36
-
37
- */
38
- this.buttonType = "default";
39
- /**
40
- * @uiName Scroll animation style
41
- * @uiType string
42
- * @uiEnum ["smooth", "auto"]
43
- * @uiEnumNames ["Smooth", "Auto"]
44
- */
45
- this.scrollAnimation = "smooth";
46
- stencilHooks_module.h$1(this);
47
- }
48
- disconnectedCallback() { }
49
- render() {
50
- var _a;
51
- const { callbacks } = useScroll(this);
52
- const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
53
- const style = {
54
- Button: {
55
- "& .outline": {
56
- "&::part(base)": {
57
- color: "var(--sl-color-" + outlineColor + "-500)",
58
- borderColor: "var(--sl-color-" + outlineColor + "-500)",
59
- backgroundColor: "transparent",
60
- "&:hover": {
61
- color: "var(--sl-color-primary-text)",
62
- backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
63
- },
64
- },
65
- },
66
- "& .neutral": {
67
- "&::part(base)": {
68
- color: "var(--sl-color-primary-text)",
69
- background: "var(--sl-color-neutral-500)",
70
- "&:hover": {
71
- opacity: "0.8",
72
- },
73
- },
74
- },
75
- "& .mobile": {
76
- "@media (max-width: 499px)": {
77
- width: "100%",
78
- },
79
- },
80
- },
81
- };
82
- const sheet = JSS.createStyleSheet(style);
83
- const styleString = sheet.toString();
84
- const vanillaStyle = `
85
- :host{
86
- display: contents;
87
- }
88
- ${this.mobile &&
89
- `
90
- @media only screen and (max-width: 499px) {
91
- :host {
92
- display: block;
93
- width: 100%;
94
- }
95
- }
96
- `}
97
- `;
98
- let classStack = "";
99
- if (this.outline && this.buttonType != "default")
100
- classStack += "outline ";
101
- if (this.buttonType === "neutral")
102
- classStack += "neutral ";
103
- if (this.mobile)
104
- classStack += "mobile ";
105
- return (index.h("div", { class: sheet.classes.Button }, index.h("style", { type: "text/css" }, vanillaStyle, styleString), index.h("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (index.h("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, index.h("slot", null))));
106
- }
107
- };
108
-
109
- exports.sqm_scroll = Scroll;
@@ -1,103 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const index_module = require('./index.module-b8d9d0ba.js');
8
- const utils = require('./utils-6847bc06.js');
9
- const keys = require('./keys-cff24974.js');
10
- const extractProps = require('./extractProps-fd93ba62.js');
11
-
12
- const USER_LOOKUP = index_module.dist.gql `
13
- query checkUserVerification {
14
- viewer {
15
- ... on User {
16
- id
17
- accountId
18
- email
19
- emailVerified
20
- }
21
- }
22
- }
23
- `;
24
- function useWidgetVerificationInternal() {
25
- const userIdentity = index_module.K();
26
- const [showCode, setShowCode] = index_module.Fn({
27
- namespace: keys.SHOW_CODE_NAMESPACE,
28
- initialValue: false,
29
- });
30
- const [email, setEmail] = index_module.Fn({
31
- namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
32
- initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
33
- });
34
- const setContext = index_module.Sn(keys.VERIFICATION_PARENT_NAMESPACE);
35
- const [loading, setLoading] = stencilHooks_module.useState(true);
36
- const [fetch] = index_module.an(USER_LOOKUP);
37
- stencilHooks_module.useEffect(() => {
38
- const checkUser = async () => {
39
- var _a;
40
- try {
41
- const res = await fetch({});
42
- if (!res || res instanceof Error)
43
- throw new Error();
44
- if ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified)
45
- setContext(true);
46
- }
47
- catch (e) {
48
- console.error("Could not fetch user information:", e);
49
- }
50
- finally {
51
- setLoading(false);
52
- }
53
- };
54
- checkUser();
55
- }, []);
56
- const onVerification = () => {
57
- setContext(true);
58
- };
59
- return { showCode, onVerification, loading };
60
- }
61
- const WidgetVerificationInternal = class {
62
- constructor(hostRef) {
63
- index.registerInstance(this, hostRef);
64
- stencilHooks_module.h$1(this);
65
- }
66
- disconnectedCallback() { }
67
- getStepTextProps(prefix) {
68
- const props = utils.getProps(this);
69
- return extractProps.extractProps(props, prefix);
70
- }
71
- render() {
72
- const { showCode, onVerification, loading } = index_module.isDemo()
73
- ? useDemoWidgetVerificationInternal()
74
- : useWidgetVerificationInternal();
75
- // TODO: Shoelace spinner is throwing errors
76
- if (loading)
77
- return index.h("div", null);
78
- // if (loading) {
79
- // return <sl-spinner style="font-size: 2rem;"></sl-spinner>;
80
- // }
81
- if (showCode) {
82
- return (index.h("sqm-code-verification", Object.assign({ onVerification: onVerification }, this.getStepTextProps("codeStep_"))));
83
- }
84
- return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"))));
85
- }
86
- };
87
- function useDemoWidgetVerificationInternal() {
88
- const [showCode, setShowCode] = index_module.Fn({
89
- namespace: keys.SHOW_CODE_NAMESPACE,
90
- initialValue: false,
91
- });
92
- const [email, setEmail] = index_module.Fn({
93
- namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
94
- initialValue: undefined,
95
- });
96
- const setContext = index_module.Sn(keys.VERIFICATION_PARENT_NAMESPACE);
97
- const onVerification = () => {
98
- setContext(true);
99
- };
100
- return { showCode, onVerification, loading: false };
101
- }
102
-
103
- exports.sqm_widget_verification_internal = WidgetVerificationInternal;
@@ -1,210 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const index_module = require('./index.module-b8d9d0ba.js');
8
- const utils = require('./utils-6847bc06.js');
9
- const keys = require('./keys-cff24974.js');
10
-
11
- const debug = stencilHooks_module.browser("sq:widget-verification");
12
- function useTemplateChildren({ parent, callback }) {
13
- const parentObserver = new MutationObserver(listenForTemplateChanges);
14
- const childTemplateObserver = new MutationObserver(callback);
15
- parentObserver.observe(parent, {
16
- childList: true,
17
- // We only care about immediate children templates
18
- subtree: false,
19
- });
20
- listenForTemplateChanges({ addedNodes: parent.querySelectorAll("template") });
21
- function listenForTemplateChanges(mutationList) {
22
- var _a;
23
- // Be smart, only look at the mutation list
24
- (_a = mutationList.addedNodes) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
25
- childTemplateObserver.observe(t.content, {
26
- childList: true,
27
- attributes: true,
28
- // Look deep into the templates for re-rendering
29
- subtree: true,
30
- });
31
- });
32
- }
33
- return () => {
34
- parentObserver.disconnect();
35
- childTemplateObserver.disconnect();
36
- };
37
- }
38
- const WidgetVerification = class {
39
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40
- CODE STEP PROPS
41
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
42
- constructor(hostRef) {
43
- index.registerInstance(this, hostRef);
44
- // ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification
45
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
- EMAIL STEP PROPS
47
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
48
- /**
49
- * @uiName Verify email widget header text
50
- * @uiGroup Email Verification Step
51
- */
52
- this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
53
- /**
54
- * @uiName Send code to email alert header
55
- * @uiGroup Email Verification Step
56
- */
57
- this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
58
- /**
59
- * @uiName Send code to email alert description
60
- * @uiGroup Email Verification Step
61
- */
62
- this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
63
- /**
64
- * @uiName Email input label
65
- * @uiGroup Email Verification Step
66
- */
67
- this.emailStep_emailLabel = "Email";
68
- /**
69
- * @uiName Send code button text
70
- * @uiGroup Email Verification Step
71
- */
72
- this.emailStep_sendCodeText = "Send code";
73
- /**
74
- * @uiName Send code button text
75
- * @uiGroup Email Verification Step
76
- */
77
- this.emailStep_emailValidationErrorText = "Please enter a valid email";
78
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79
- EMAIL STEP PROPS
80
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
81
- /**
82
- * @uiName Verify code widget header text
83
- * @uiGroup Code Verification Step
84
- */
85
- this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
86
- /**
87
- * @uiName Reverify code widget header text
88
- * @uiGroup Code Verification Step
89
- */
90
- this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
91
- /**
92
- * Text displayed under verify button
93
- * @uiName Resend code text
94
- * @uiGroup Code Verification Step
95
- */
96
- this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
97
- /**
98
- * The link that appears in the resend code link
99
- * @uiName Resend code label
100
- * @uiGroup Code Verification Step
101
- */
102
- this.codeStep_resendCodeLabel = "Resend code";
103
- /**
104
- * Link text displayed under verify button
105
- * @uiName Resend code text
106
- * @uiGroup Code Verification Step
107
- */
108
- this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
109
- /**
110
- * Error text displayed under verification input
111
- * @uiName Invalid code text
112
- * @uiGroup Code Verification Step
113
- */
114
- this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
115
- /**
116
- * @uiName Verify code button text
117
- * @uiGroup Code Verification Step
118
- */
119
- this.codeStep_verifyText = "Verify";
120
- /**
121
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
122
- * @uiName Network error message
123
- * @uiGroup Code Verification Step
124
- */
125
- this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
126
- stencilHooks_module.h$1(this);
127
- }
128
- disconnectedCallback() { }
129
- render() {
130
- const [context, setContext] = index_module.Fn({
131
- namespace: keys.VERIFICATION_PARENT_NAMESPACE,
132
- initialValue: false,
133
- });
134
- const [container, setContainer] = stencilHooks_module.useState(undefined);
135
- const [slot, setSlot] = stencilHooks_module.useState(undefined);
136
- const updateTemplates = index_module.useCallback(() => {
137
- const isAuth = context;
138
- const templates = slot.querySelectorAll(`template`);
139
- const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
140
- if (template) {
141
- // use outerHTML if template's innerHTML is unset (only happens in Stencilbook)
142
- const newContent = template.innerHTML || template.firstElementChild.outerHTML;
143
- // if template contents are an exact match
144
- if (newContent === container.innerHTML) {
145
- debug("don't rerender");
146
- }
147
- else if (template) {
148
- container.innerHTML = newContent;
149
- }
150
- }
151
- const plopTargets = Array.from(slot.children).filter((el) => el.tagName === "RAISINS-PLOP-TARGET");
152
- // if editing in raisins
153
- if (plopTargets.length) {
154
- const loggedInPlopTargets = plopTargets.filter((el) => el.slot === "verified");
155
- const loggedOutPlopTargets = plopTargets.filter((el) => el.slot === "not-verified");
156
- loggedOutPlopTargets.forEach((target, i) => {
157
- if (isAuth) {
158
- target.style.display = "none";
159
- return;
160
- }
161
- // Place last plop target at the bottom of the parent
162
- if (i === loggedOutPlopTargets.length - 1) {
163
- target.style.bottom = "0px";
164
- target.style.left = "0px";
165
- target.style.right = "0px";
166
- target.style.position = "absolute";
167
- }
168
- target.style.height = "25px";
169
- });
170
- loggedInPlopTargets.forEach((target, i) => {
171
- if (!isAuth) {
172
- target.style.display = "none";
173
- return;
174
- }
175
- // Place last plop target at the bottom of the parent
176
- if (i === loggedInPlopTargets.length - 1) {
177
- target.style.bottom = "0px";
178
- target.style.left = "0px";
179
- target.style.right = "0px";
180
- target.style.position = "absolute";
181
- }
182
- target.style.height = "25px";
183
- });
184
- }
185
- }, [container, slot, context]);
186
- stencilHooks_module.useEffect(() => {
187
- if (!container || !slot) {
188
- debug("DOM not ready:");
189
- return;
190
- }
191
- // Run on first render
192
- updateTemplates();
193
- return useTemplateChildren({ parent: slot, callback: updateTemplates });
194
- }, [slot, container, context]);
195
- // useEffect(() => {
196
- // const host = useHost();
197
- // const callback = (e: CustomEvent) => {
198
- // e.stopPropagation();
199
- // setContext({ token: e.detail.token });
200
- // };
201
- // host.addEventListener(VERIFICATION_EVENT_KEY, callback);
202
- // return () => {
203
- // host.removeEventListener(VERIFICATION_EVENT_KEY, callback);
204
- // };
205
- // }, []);
206
- return (index.h(index.Host, null, index.h("div", { ref: setSlot, style: { display: "contents" } }, index.h("template", { slot: "not-verified" }, index.h("sqm-widget-verification-internal", Object.assign({}, utils.getProps(this)))), index.h("slot", { name: "not-verified" }), index.h("slot", { name: "verified" })), index.h("div", { ref: setContainer }, index.h("slot", { name: "shown" }))));
207
- }
208
- };
209
-
210
- exports.sqm_widget_verification = WidgetVerification;
@@ -1,70 +0,0 @@
1
- 'use strict';
2
-
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
5
-
6
- const GET_USER_STATUS = index_module.dist.gql `
7
- query getUserStatus {
8
- user: viewer {
9
- ... on User {
10
- id
11
- impactConnection {
12
- connected
13
- publisher {
14
- id
15
- payoutsAccount {
16
- hold
17
- holdReasons
18
- }
19
- }
20
- }
21
- }
22
- }
23
- }
24
- `;
25
- function getStatus(data) {
26
- var _a, _b, _c, _d, _e;
27
- const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
28
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
29
- return "INFORMATION_REQUIRED";
30
- if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
31
- return "VERIFICATION_NEEDED";
32
- if (account.hold)
33
- return "HOLD";
34
- return "DONE";
35
- }
36
- function usePayoutStatus(props) {
37
- const { type } = index_module.getEnvironmentSDK();
38
- const { loading, data, errors, refetch } = index_module.En(GET_USER_STATUS, {});
39
- const [status, setStatus] = stencilHooks_module.useState(undefined);
40
- const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
41
- stencilHooks_module.useEffect(() => {
42
- if (!data)
43
- return;
44
- const s = getStatus(data);
45
- setStatus(s);
46
- }, [data]);
47
- stencilHooks_module.useEffect(() => {
48
- const cb = () => refetch();
49
- window.addEventListener("sqm:tax-form-updated", cb);
50
- return () => window.removeEventListener("sqm:tax-form-updated", cb);
51
- }, []);
52
- return {
53
- states: {
54
- loading,
55
- status,
56
- showVerifyIdentity: showDialog,
57
- error: !!errors,
58
- },
59
- data: { type },
60
- text: props.getTextProps(),
61
- callbacks: {
62
- onTermsClick: () => window.open(props.termsUrl, "_blank").focus(),
63
- onClick: () => setShowDialog(true),
64
- onCancel: () => setShowDialog(false),
65
- },
66
- };
67
- }
68
-
69
- exports.getStatus = getStatus;
70
- exports.usePayoutStatus = usePayoutStatus;
@@ -1,169 +0,0 @@
1
- 'use strict';
2
-
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
5
-
6
- const UserLookupQuery = index_module.dist.gql `
7
- query userLookup {
8
- viewer {
9
- ... on User {
10
- id
11
- accountId
12
- email
13
- impactConnection {
14
- user {
15
- id
16
- email
17
- }
18
- }
19
- }
20
- }
21
- }
22
- `;
23
- const ParticipantVerificationEmailMutation = index_module.dist.gql `
24
- mutation requestUserEmailVerification($user: UserIdInput!) {
25
- requestUserEmailVerification(user: $user) {
26
- success
27
- }
28
- }
29
- `;
30
- const ImpactVerificationEmailMutation = index_module.dist.gql `
31
- mutation requestImpactPublisherEmail2FA($user: UserIdInput!) {
32
- requestImpactPublisherEmail2FA(user: $user) {
33
- success
34
- }
35
- }
36
- `;
37
- const VerifyUserEmailMutation = index_module.dist.gql `
38
- mutation verifyUserEmail($user: UserIdInput!, $code: String!) {
39
- verifyUserEmail(user: $user, code: $code) {
40
- id
41
- accountId
42
- email
43
- emailVerified
44
- }
45
- }
46
- `;
47
- const SubmitImpactCodeMutation = index_module.dist.gql `
48
- mutation submitImpactPublisherEmail2FACode(
49
- $user: UserIdInput!
50
- $code: String!
51
- ) {
52
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
53
- verifiedEmail
54
- accessKey
55
- }
56
- }
57
- `;
58
- // ! It's important when using this hook to ensure initialisation
59
- // ! is done before calling any mutations
60
- function useVerificationEmail() {
61
- const userIdentity = index_module.K();
62
- const [hasEmails, setHasEmails] = stencilHooks_module.useState({
63
- participant: false,
64
- impact: false,
65
- });
66
- const [fetch] = index_module.an(UserLookupQuery);
67
- // Send mutations
68
- const [sendParticipantEmail, { loading: participantEmailLoading, errors: participantEmailErrors },] = index_module.xe(ParticipantVerificationEmailMutation);
69
- const [sendImpactEmail, { loading: impactEmailLoading, errors: impactEmailErrors },] = index_module.xe(ImpactVerificationEmailMutation);
70
- const sendLoading = participantEmailLoading || impactEmailLoading;
71
- const sendErrors = participantEmailErrors || impactEmailErrors;
72
- // Verification mutations
73
- const [verifyUserEmail, { loading: verifyMutationLoading, errors: verifyMutationErrors },] = index_module.xe(VerifyUserEmailMutation);
74
- const [submitImpactCode, { loading: submitImpactCodeLoading, errors: submitImpactCodeErrors },] = index_module.xe(SubmitImpactCodeMutation);
75
- const verifyLoading = verifyMutationLoading || submitImpactCodeLoading;
76
- const verifyErrors = verifyMutationErrors || submitImpactCodeErrors;
77
- const [initialized, setInitialized] = stencilHooks_module.useState(false);
78
- const initialise = async () => {
79
- var _a, _b, _c, _d;
80
- try {
81
- const lookup = await fetch({});
82
- if (!lookup || lookup instanceof Error)
83
- throw new Error();
84
- setHasEmails({
85
- participant: !!((_a = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _a === void 0 ? void 0 : _a.email),
86
- impact: !!((_d = (_c = (_b = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.email),
87
- });
88
- setInitialized(true);
89
- }
90
- catch (e) {
91
- console.error("Could not initialise verification", e);
92
- }
93
- };
94
- const sendVerificationEmail = async () => {
95
- let result = null;
96
- if (!initialized)
97
- return result;
98
- if (!hasEmails.participant && !hasEmails.impact)
99
- return result;
100
- try {
101
- const request = hasEmails.impact ? sendImpactEmail : sendParticipantEmail;
102
- const res = await request({
103
- user: {
104
- id: userIdentity.id,
105
- accountId: userIdentity.accountId,
106
- },
107
- });
108
- if (res instanceof Error || !res)
109
- throw new Error();
110
- result = hasEmails.impact
111
- ? res.requestImpactPublisherEmail2FA
112
- : res.requestUserEmailVerification;
113
- }
114
- catch (e) {
115
- console.error("Could not send verification email", e);
116
- }
117
- finally {
118
- return result;
119
- }
120
- };
121
- const verifyVerificationEmail = async (code) => {
122
- var _a;
123
- let result = null;
124
- if (!initialized)
125
- return result;
126
- if (!hasEmails.participant && !hasEmails.impact)
127
- return result;
128
- try {
129
- const request = hasEmails.impact ? submitImpactCode : verifyUserEmail;
130
- const res = await request({
131
- user: {
132
- id: userIdentity.id,
133
- accountId: userIdentity.accountId,
134
- },
135
- code,
136
- });
137
- if (res instanceof Error || !res)
138
- throw new Error();
139
- result = {
140
- success: true,
141
- accessKey: hasEmails.impact
142
- ? (_a = res.submitImpactPublisherEmail2FACode) === null || _a === void 0 ? void 0 : _a.accessKey : undefined,
143
- };
144
- }
145
- catch (e) {
146
- console.error("Could not verify email", e);
147
- }
148
- finally {
149
- return result;
150
- }
151
- };
152
- stencilHooks_module.useEffect(() => {
153
- if (!initialized)
154
- initialise();
155
- }, []);
156
- return {
157
- initialized,
158
- send: [
159
- sendVerificationEmail,
160
- { loading: sendLoading, errors: sendErrors },
161
- ],
162
- verify: [
163
- verifyVerificationEmail,
164
- { loading: verifyLoading, errors: verifyErrors },
165
- ],
166
- };
167
- }
168
-
169
- exports.useVerificationEmail = useVerificationEmail;
@@ -1,8 +0,0 @@
1
- import { h } from "@stencil/core";
2
- export default {
3
- title: "Components/Payout Scroll Button",
4
- };
5
- const defaultProps = {
6
- payoutSettingsComplete: true,
7
- };
8
- export const CompletedTaxForm = () => (h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } }));
@@ -1,23 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { createStyleSheet } from "../../styling/JSS";
3
- const style = {
4
- Wrapper: {
5
- maxWidth: "200px",
6
- },
7
- PayoutButtonDescription: {
8
- color: "var(--sl-color-neutral-500)",
9
- fontSize: "var(--sl-font-size-small)",
10
- margin: "0",
11
- },
12
- };
13
- const sheet = createStyleSheet(style);
14
- const styleString = sheet.toString();
15
- export function PayoutButtonScrollView(props) {
16
- const { text, states } = props;
17
- if (!states.payoutSettingsComplete)
18
- return h("div", null);
19
- return (h("div", { part: "sqm-base", class: sheet.classes.Wrapper },
20
- h("style", { type: "text/css" }, styleString),
21
- h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
22
- h("p", { class: sheet.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
23
- }