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

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 (373) hide show
  1. package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-13173901.js} +33 -32
  2. package/dist/cjs/{global-c3637175.js → global-e4ebdbcc.js} +161 -10
  3. package/dist/cjs/index-56d1fa5b.js +2227 -0
  4. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-236d0403.js} +1392 -228
  5. package/dist/cjs/loader.cjs.js +4 -4
  6. package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
  7. package/dist/cjs/mint-components.cjs.js +4 -4
  8. package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
  9. package/dist/cjs/{re-render-5bde3d2e.js → re-render-5de6631a.js} +2 -2
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  11. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +409 -440
  12. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +127 -73
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-code-verification.cjs.entry.js +38 -34
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-email-verification.cjs.entry.js +34 -10
  17. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  18. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  22. package/dist/cjs/{sqm-invoice-table-view-ce9a34ac.js → sqm-invoice-table-view-dbba9bb4.js} +1 -1
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-fc865ecf.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  30. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-4bc2760b.js} +1 -1
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  32. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  33. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  34. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-cbab7c80.js} +1 -1
  35. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
  36. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  37. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
  38. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  41. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  42. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
  45. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -24
  47. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  48. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  49. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  50. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +3 -3
  51. package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
  52. package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
  53. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-23beb180.js} +2 -2
  54. package/dist/cjs/useEmailVerification-33465f36.js +155 -0
  55. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-7c125c00.js} +3 -3
  56. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-54d0ba70.js} +14 -13
  57. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-e7e820d0.js} +2 -2
  58. package/dist/cjs/{utilities-f7de6c04.js → utilities-ac5b5f2c.js} +2 -2
  59. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
  60. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
  61. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
  62. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +2 -2
  63. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +19 -9
  64. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +6 -58
  65. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -7
  66. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
  67. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
  68. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +59 -7
  69. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +88 -9
  70. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +2 -0
  71. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +29 -8
  72. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +56 -8
  73. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -16
  74. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -79
  75. package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-72e231a5.js} +7 -6
  76. package/dist/esm/{global-6306a9b8.js → global-adae7650.js} +161 -10
  77. package/dist/esm/index-0c7b14c5.js +2225 -0
  78. package/dist/esm/{index.module-6c840c4e.js → index.module-c0eb7dc2.js} +1389 -222
  79. package/dist/esm/loader.js +4 -4
  80. package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  81. package/dist/esm/mint-components.js +4 -4
  82. package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  83. package/dist/esm/{re-render-1bcfd0de.js → re-render-5882a144.js} +2 -2
  84. package/dist/esm/sqm-asset-card.entry.js +2 -2
  85. package/dist/esm/sqm-banking-info-form_16.entry.js +10 -41
  86. package/dist/esm/sqm-big-stat_39.entry.js +72 -18
  87. package/dist/esm/sqm-close-button.entry.js +2 -2
  88. package/dist/esm/sqm-code-verification.entry.js +36 -32
  89. package/dist/esm/sqm-context-router.entry.js +2 -2
  90. package/dist/esm/sqm-email-verification.entry.js +33 -9
  91. package/dist/esm/sqm-empty_4.entry.js +3 -3
  92. package/dist/esm/sqm-form-message.entry.js +1 -1
  93. package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
  94. package/dist/esm/sqm-header-logo.entry.js +1 -1
  95. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  96. package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  97. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
  98. package/dist/esm/sqm-logout-current-user.entry.js +3 -2
  99. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  100. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  101. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  102. package/dist/esm/sqm-password-field.entry.js +3 -3
  103. package/dist/esm/sqm-popup-container.entry.js +2 -2
  104. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
  105. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  106. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  107. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  108. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
  109. package/dist/esm/sqm-portal-profile.entry.js +6 -5
  110. package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
  111. package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
  112. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  113. package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
  114. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  115. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  116. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  117. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  118. package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
  119. package/dist/esm/sqm-scroll.entry.js +1 -1
  120. package/dist/esm/sqm-stencilbook.entry.js +44 -22
  121. package/dist/esm/sqm-tab.entry.js +3 -3
  122. package/dist/esm/sqm-tabs.entry.js +4 -4
  123. package/dist/esm/sqm-text-span.entry.js +1 -1
  124. package/dist/esm/sqm-widget-verification-internal.entry.js +2 -2
  125. package/dist/esm/sqm-widget-verification.entry.js +2 -2
  126. package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  127. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-fe94b660.js} +2 -2
  128. package/dist/esm/useEmailVerification-8f2dc2bd.js +152 -0
  129. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +3 -3
  130. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-52008143.js} +5 -4
  131. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-4cfd1a8d.js} +2 -2
  132. package/dist/esm/{utilities-443732be.js → utilities-98445452.js} +2 -2
  133. package/dist/esm-es5/ShadowViewAddon-72e231a5.js +1 -0
  134. package/dist/esm-es5/global-adae7650.js +285 -0
  135. package/dist/esm-es5/index-0c7b14c5.js +1 -0
  136. package/dist/esm-es5/index.module-c0eb7dc2.js +53 -0
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  139. package/dist/esm-es5/mint-components.js +1 -1
  140. package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  141. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-5882a144.js} +1 -1
  142. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  143. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  144. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  145. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  146. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  147. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  148. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  149. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  150. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  151. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  152. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  153. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  154. package/dist/esm-es5/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  155. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  156. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  157. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  158. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  159. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  160. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  161. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  162. package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
  163. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  164. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  165. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  166. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
  167. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  168. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  169. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  170. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  171. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  172. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  173. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  174. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  175. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  176. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  177. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  178. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  179. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  180. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  181. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  182. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
  183. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  184. package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  185. package/dist/esm-es5/useChildElements-fe94b660.js +1 -0
  186. package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +1 -0
  187. package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +1 -1
  188. package/dist/esm-es5/useReferralTable-52008143.js +1 -0
  189. package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +1 -0
  190. package/dist/esm-es5/{utilities-443732be.js → utilities-98445452.js} +1 -1
  191. package/dist/mint-components/mint-components.esm.js +1 -1
  192. package/dist/mint-components/mint-components.js +1 -1
  193. package/dist/mint-components/p-0078bc76.system.js +53 -0
  194. package/dist/mint-components/{p-5becb2ff.system.js → p-00ec17d4.system.js} +1 -1
  195. package/dist/mint-components/{p-cd44de66.system.js → p-06c561ea.system.js} +1 -1
  196. package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
  197. package/dist/mint-components/{p-d83b0cf3.js → p-0db003f7.js} +153 -153
  198. package/dist/mint-components/{p-0121e044.js → p-0ecb3019.js} +1 -1
  199. package/dist/mint-components/{p-04ced592.system.entry.js → p-14488d1c.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-a85f57bb.entry.js → p-15e01e7a.entry.js} +1 -1
  202. package/dist/mint-components/{p-2816bf6a.js → p-1602bf01.js} +1 -1
  203. package/dist/mint-components/p-18399da0.system.entry.js +1 -0
  204. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-18cd88c4.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
  206. package/dist/mint-components/{p-03dbe2ce.entry.js → p-1e40967f.entry.js} +1 -1
  207. package/dist/mint-components/p-1f02e20b.entry.js +1 -0
  208. package/dist/mint-components/p-253c87e1.system.entry.js +1 -0
  209. package/dist/mint-components/p-25a70095.system.entry.js +1 -0
  210. package/dist/mint-components/p-2632464d.entry.js +1 -0
  211. package/dist/mint-components/p-286190c4.system.entry.js +1 -0
  212. package/dist/mint-components/{p-4e373c3d.system.js → p-34a87e67.system.js} +1 -1
  213. package/dist/mint-components/{p-59818690.system.entry.js → p-34dab223.system.entry.js} +1 -1
  214. package/dist/mint-components/{p-947fe79b.entry.js → p-3ba349a3.entry.js} +1 -1
  215. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-3c46b3de.system.entry.js} +1 -1
  216. package/dist/mint-components/{p-bc826117.system.entry.js → p-3da2b3cf.system.entry.js} +1 -1
  217. package/dist/mint-components/p-414b3b6c.system.entry.js +1 -0
  218. package/dist/mint-components/p-4185f6f5.system.entry.js +1 -0
  219. package/dist/mint-components/{p-1d27da33.js → p-4209cd94.js} +4 -4
  220. package/dist/mint-components/{p-43621f12.system.js → p-423821b9.system.js} +1 -1
  221. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-45d0b48a.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-45d6cde6.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
  224. package/dist/mint-components/{p-5291891c.entry.js → p-4c0b7768.entry.js} +3 -3
  225. package/dist/mint-components/{p-c763c0b2.js → p-4d060f15.js} +1 -1
  226. package/dist/mint-components/p-52241ba9.system.js +1 -0
  227. package/dist/mint-components/p-556753b2.js +42 -0
  228. package/dist/mint-components/p-55dcb6ff.system.js +1 -0
  229. package/dist/mint-components/{p-9d34f4f0.entry.js → p-56b37aeb.entry.js} +3 -3
  230. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-5a2fd8e0.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
  232. package/dist/mint-components/{p-e0e7635a.js → p-611a30f0.js} +1 -1
  233. package/dist/mint-components/{p-9e0230c3.entry.js → p-64acc813.entry.js} +1 -1
  234. package/dist/mint-components/{p-76392386.entry.js → p-657b290b.entry.js} +1 -1
  235. package/dist/mint-components/{p-04348a9b.js → p-65a449de.js} +1 -1
  236. package/dist/mint-components/p-65de8fb2.js +1 -0
  237. package/dist/mint-components/{p-4671e644.entry.js → p-6a70d2d6.entry.js} +1 -1
  238. package/dist/mint-components/p-6eede6e5.system.entry.js +1 -0
  239. package/dist/mint-components/p-6fbfd683.js +1 -0
  240. package/dist/mint-components/{p-9ec008cb.system.entry.js → p-70886c65.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-c3b37bbf.js → p-7507d72b.js} +1 -1
  242. package/dist/mint-components/{p-0527d90b.system.entry.js → p-78a831e0.system.entry.js} +1 -1
  243. package/dist/mint-components/p-78c1bd77.system.js +1 -0
  244. package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
  245. package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
  246. package/dist/mint-components/p-7c4c727c.system.entry.js +1 -0
  247. package/dist/mint-components/p-7e5f0292.system.entry.js +1 -0
  248. package/dist/mint-components/{p-ead27698.system.entry.js → p-816fb64f.system.entry.js} +1 -1
  249. package/dist/mint-components/p-832eba3a.entry.js +1 -0
  250. package/dist/mint-components/p-858a87ce.entry.js +1 -0
  251. package/dist/mint-components/p-89669879.system.js +1 -0
  252. package/dist/mint-components/p-8b7d2f44.entry.js +1 -0
  253. package/dist/mint-components/{p-b651706a.js → p-8ccb4267.js} +24 -24
  254. package/dist/mint-components/{p-a5a9aa07.entry.js → p-8d696fc9.entry.js} +11 -11
  255. package/dist/mint-components/{p-39af4acd.entry.js → p-8da20810.entry.js} +17 -17
  256. package/dist/mint-components/p-8defb972.system.entry.js +1 -0
  257. package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
  258. package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
  259. package/dist/mint-components/{p-721a89c6.entry.js → p-99a09fab.entry.js} +2 -2
  260. package/dist/mint-components/p-9cdaa099.entry.js +1 -0
  261. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-a1f0d8ba.system.entry.js} +1 -1
  262. package/dist/mint-components/{p-a45b03d2.entry.js → p-a2e1af83.entry.js} +1 -1
  263. package/dist/mint-components/p-a80c8f5c.system.js +1 -0
  264. package/dist/mint-components/{p-1f9a9b70.system.entry.js → p-a9487844.system.entry.js} +1 -1
  265. package/dist/mint-components/{p-51d53165.system.entry.js → p-ab7322f0.system.entry.js} +1 -1
  266. package/dist/mint-components/{p-4eae91a9.system.js → p-ab89b44a.system.js} +1 -1
  267. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-ac69b460.system.entry.js} +1 -1
  268. package/dist/mint-components/{p-f56348dc.system.entry.js → p-b14a77e8.system.entry.js} +1 -1
  269. package/dist/mint-components/p-b28df069.js +1 -0
  270. package/dist/mint-components/p-b4771476.entry.js +1 -0
  271. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-c293f586.system.entry.js} +1 -1
  272. package/dist/mint-components/p-c9ca8473.system.entry.js +1 -0
  273. package/dist/mint-components/p-cac64545.system.entry.js +1 -0
  274. package/dist/mint-components/{p-bee1e573.entry.js → p-cadb8dba.entry.js} +1 -1
  275. package/dist/mint-components/{p-6c928c7d.entry.js → p-cafebf8a.entry.js} +1 -1
  276. package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
  277. package/dist/mint-components/{p-84b25a46.entry.js → p-cdcd825e.entry.js} +1 -1
  278. package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
  279. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-d0c4f3bf.system.entry.js} +1 -1
  280. package/dist/mint-components/{p-94454880.entry.js → p-d2a925d5.entry.js} +1 -1
  281. package/dist/mint-components/p-d3293ac3.entry.js +11 -0
  282. package/dist/mint-components/{p-b1e8a802.entry.js → p-d39da925.entry.js} +1 -1
  283. package/dist/mint-components/p-d4138847.system.entry.js +1 -0
  284. package/dist/mint-components/p-d70bfe30.entry.js +8 -0
  285. package/dist/mint-components/p-d7b701a7.entry.js +1 -0
  286. package/dist/mint-components/{p-36f7caec.system.entry.js → p-d90ef1da.system.entry.js} +1 -1
  287. package/dist/mint-components/{p-ac51940e.system.js → p-dce3d296.system.js} +1 -1
  288. package/dist/mint-components/{p-68747d88.js → p-def70672.js} +1 -1
  289. package/dist/mint-components/p-e05ff098.system.js +1 -0
  290. package/dist/mint-components/p-e4c3817a.system.entry.js +1 -0
  291. package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
  292. package/dist/mint-components/p-e7797040.entry.js +1 -0
  293. package/dist/mint-components/{p-e93e5740.entry.js → p-e810da97.entry.js} +1 -1
  294. package/dist/mint-components/p-e82eec3c.entry.js +13 -0
  295. package/dist/mint-components/p-e8bfd924.system.entry.js +1 -0
  296. package/dist/mint-components/p-e8fcaaa2.entry.js +13 -0
  297. package/dist/mint-components/{p-1b861be5.entry.js → p-ee328054.entry.js} +1 -1
  298. package/dist/mint-components/p-ef49d744.entry.js +1 -0
  299. package/dist/mint-components/{p-22425c71.system.entry.js → p-f0fba496.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-4babe350.system.js → p-f338ef55.system.js} +1 -1
  301. package/dist/mint-components/p-f5f0fc0e.entry.js +1 -0
  302. package/dist/mint-components/{p-65e2c043.system.js → p-faf019cf.system.js} +1 -1
  303. package/dist/mint-components/p-fcb224ab.js +25 -0
  304. package/dist/mint-components/{p-fc422446.system.js → p-fda3d0ca.system.js} +22 -22
  305. package/dist/mint-components/p-fe8e1071.entry.js +1 -0
  306. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
  307. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
  308. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +2 -3
  309. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -10
  310. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +1 -0
  311. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
  312. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
  313. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
  314. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +7 -0
  315. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -0
  316. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -0
  317. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
  318. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -16
  319. package/dist/types/components.d.ts +82 -52
  320. package/docs/docs.docx +0 -0
  321. package/docs/raisins.json +1 -1
  322. package/grapesjs/grapesjs.js +1 -1
  323. package/package.json +1 -1
  324. package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
  325. package/dist/esm/useEmailVerification-7135732c.js +0 -72
  326. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
  327. package/dist/esm-es5/global-6306a9b8.js +0 -285
  328. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  329. package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
  330. package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
  331. package/dist/esm-es5/useReferralTable-f6ffa103.js +0 -1
  332. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  333. package/dist/mint-components/p-012daf3c.entry.js +0 -1
  334. package/dist/mint-components/p-0893073b.entry.js +0 -1
  335. package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
  336. package/dist/mint-components/p-117b4705.system.js +0 -1
  337. package/dist/mint-components/p-11d1b212.js +0 -1
  338. package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
  339. package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
  340. package/dist/mint-components/p-23fdd44e.entry.js +0 -1
  341. package/dist/mint-components/p-2868f475.entry.js +0 -1
  342. package/dist/mint-components/p-36e9296e.system.entry.js +0 -1
  343. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  344. package/dist/mint-components/p-39397731.entry.js +0 -1
  345. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  346. package/dist/mint-components/p-663303b7.entry.js +0 -8
  347. package/dist/mint-components/p-66a04cca.system.entry.js +0 -1
  348. package/dist/mint-components/p-7dd1ff31.system.entry.js +0 -1
  349. package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
  350. package/dist/mint-components/p-8a337864.js +0 -7
  351. package/dist/mint-components/p-8d554a89.system.js +0 -1
  352. package/dist/mint-components/p-93576222.system.js +0 -1
  353. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  354. package/dist/mint-components/p-a02afa72.system.js +0 -1
  355. package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
  356. package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
  357. package/dist/mint-components/p-bdd6bb13.js +0 -1
  358. package/dist/mint-components/p-c8878e79.entry.js +0 -1
  359. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  360. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  361. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  362. package/dist/mint-components/p-cb433855.system.entry.js +0 -1
  363. package/dist/mint-components/p-d35d8c06.entry.js +0 -11
  364. package/dist/mint-components/p-d468925f.entry.js +0 -1
  365. package/dist/mint-components/p-def516b8.system.js +0 -1
  366. package/dist/mint-components/p-e12d3414.system.entry.js +0 -1
  367. package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
  368. package/dist/mint-components/p-f36e33ff.entry.js +0 -13
  369. package/dist/mint-components/p-f450654b.system.entry.js +0 -1
  370. package/dist/mint-components/p-f4cbbe47.entry.js +0 -1
  371. package/dist/mint-components/p-f531a5c9.system.entry.js +0 -1
  372. package/dist/mint-components/p-f655a7df.js +0 -1
  373. package/dist/mint-components/p-fd21ae8f.entry.js +0 -1
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
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');
6
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
7
+ const index_module = require('./index.module-236d0403.js');
8
8
  const keys = require('./keys-cff24974.js');
9
9
 
10
10
  const debug = stencilHooks_module.browser("sq:widget-verification");
@@ -37,7 +37,7 @@ function useTemplateChildren({ parent, callback }) {
37
37
  const WidgetVerification = class {
38
38
  constructor(hostRef) {
39
39
  index.registerInstance(this, hostRef);
40
- stencilHooks_module.h$1(this);
40
+ stencilHooks_module.h(this);
41
41
  }
42
42
  disconnectedCallback() { }
43
43
  render() {
@@ -1114,17 +1114,14 @@ function c$1(){return (c$1=Object.assign||function(e){for(var t=1;t<arguments.le
1114
1114
  function s$2(){return index.getRenderingRef()}function l$1(){var e=s$2();return index.getElement(e)}function d$2(e,t){void 0===t&&(t={});var n=l$1();return h$1(n,e,t)}function m$2(e,t){var n=l$1();return y$1(n,e,t)}var p$1=browser("stencil-hook");function h$2(t){var r,u=index.getElement(t),c=(r=!1,new State(function(){p$1("Queue update on element",u),r||(r=!0,Promise.resolve().then(function(){p$1("Forced update on element",u),r=!1,index.forceUpdate(u);}));},u)),a=t.disconnectedCallback;if(!a)throw new Error("Stencil hooks requires `disconnectedCallback` to be defined (even if it's empty). This is because of how the Stencil compiler works internally");t.disconnectedCallback=function(){c.teardown(),v(a);};var i=t.connectedCallback;t.connectedCallback=function(){c.update(),v(i);};var f=t.render.bind(t);t.render=function(){var e=c.run(f);return c.runEffects(),e};}function v(e){"function"==typeof e&&e();}
1115
1115
 
1116
1116
  exports.browser = browser;
1117
- exports.c = c;
1118
1117
  exports.commonjsGlobal = commonjsGlobal;
1119
1118
  exports.createCommonjsModule = createCommonjsModule;
1120
1119
  exports.d = d$2;
1121
1120
  exports.getAugmentedNamespace = getAugmentedNamespace;
1122
1121
  exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
1123
- exports.h = h$1;
1124
- exports.h$1 = h$2;
1122
+ exports.h = h$2;
1125
1123
  exports.l = l$1;
1126
1124
  exports.m = m$2;
1127
- exports.s = s$1;
1128
1125
  exports.useEffect = useEffect;
1129
1126
  exports.useMemo = useMemo;
1130
1127
  exports.useReducer = useReducer;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
3
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
+ const index_module = require('./index.module-236d0403.js');
5
5
 
6
6
  function useChildElements() {
7
7
  const host = index_module.T();
@@ -0,0 +1,155 @@
1
+ 'use strict';
2
+
3
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
+ const index_module = require('./index.module-236d0403.js');
5
+ const index = require('./index-56d1fa5b.js');
6
+ const keys = require('./keys-cff24974.js');
7
+
8
+ const VerificationEmailMutation = index.dist.gql `
9
+ mutation requestUserEmailVerification($user: UserIdInput!) {
10
+ requestUserEmailVerification(user: $user) {
11
+ success
12
+ }
13
+ }
14
+ `;
15
+ const UpsertUserEmailMutation = index.dist.gql `
16
+ mutation upsertUser($userInput: UserInput!) {
17
+ user(userInput: $userInput) {
18
+ id
19
+ accountId
20
+ email
21
+ }
22
+ }
23
+ `;
24
+ const UserLookupQuery = index.dist.gql `
25
+ query user {
26
+ viewer {
27
+ ... on User {
28
+ id
29
+ accountId
30
+ email
31
+ }
32
+ }
33
+ }
34
+ `;
35
+ // TODO: Move to component-boilerplate
36
+ function useVerificationEmailMutation() {
37
+ const user = index_module.K();
38
+ const [request, { loading: loading, data, errors }] = index_module.xe(VerificationEmailMutation);
39
+ const sendVerificationEmailMutation = async () => {
40
+ try {
41
+ const result = await request({
42
+ user: {
43
+ id: user.id,
44
+ accountId: user.accountId,
45
+ },
46
+ });
47
+ if (result instanceof Error || !result)
48
+ throw new Error();
49
+ return result;
50
+ }
51
+ catch (e) {
52
+ console.error("Could not send verification email", e);
53
+ return undefined;
54
+ }
55
+ };
56
+ return [
57
+ sendVerificationEmailMutation,
58
+ {
59
+ loading,
60
+ data,
61
+ errors,
62
+ },
63
+ ];
64
+ }
65
+ function useUpsertUserEmail() {
66
+ const user = index_module.K();
67
+ const [request, { loading: loading, data, errors }] = index_module.xe(UpsertUserEmailMutation);
68
+ const upsertUserEmail = async (email) => {
69
+ try {
70
+ const result = await request({
71
+ user: {
72
+ id: user.id,
73
+ accountId: user.accountId,
74
+ email,
75
+ },
76
+ });
77
+ if (result instanceof Error || !result)
78
+ throw new Error();
79
+ return result;
80
+ }
81
+ catch (e) {
82
+ console.error("Could not set email on user", e);
83
+ return undefined;
84
+ }
85
+ };
86
+ return [
87
+ upsertUserEmail,
88
+ {
89
+ loading,
90
+ data,
91
+ errors,
92
+ },
93
+ ];
94
+ }
95
+ function useWidgetEmailVerification(props) {
96
+ const [_, setShowCode] = index_module.Mn(keys.SHOW_CODE_NAMESPACE);
97
+ const [email, setEmail] = index_module.Mn(keys.VERIFICATION_EMAIL_NAMESPACE);
98
+ const [emailExists, setEmailExists] = stencilHooks_module.useState(false);
99
+ const [error, setError] = stencilHooks_module.useState(false);
100
+ const [mutationError, setMutationError] = stencilHooks_module.useState(false);
101
+ const [sendVerificationEmailMutation] = useVerificationEmailMutation();
102
+ const [upsertUserEmail] = useUpsertUserEmail();
103
+ const [loading, setLoading] = stencilHooks_module.useState(false);
104
+ const { data, loading: initialLoading } = index_module.En(UserLookupQuery, {});
105
+ const emailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
106
+ stencilHooks_module.useEffect(() => {
107
+ if (!(data === null || data === void 0 ? void 0 : data.viewer))
108
+ return;
109
+ setEmailExists(!!data.viewer.email);
110
+ }, [data]);
111
+ const submitEmail = async (e) => {
112
+ e.preventDefault();
113
+ if (!(data === null || data === void 0 ? void 0 : data.viewer))
114
+ return;
115
+ setLoading(true);
116
+ const toAddress = data.viewer.email;
117
+ if (!toAddress) {
118
+ // If no email on the user, set one
119
+ const formData = e.detail.formData;
120
+ const newEmail = formData.get("email").toString();
121
+ if (!emailRegex.test(newEmail)) {
122
+ setError(true);
123
+ return;
124
+ }
125
+ const result = await upsertUserEmail(newEmail);
126
+ if (!result || !result.user.email)
127
+ setError(true);
128
+ }
129
+ const result = await sendVerificationEmailMutation();
130
+ if (!result || !result.requestUserEmailVerification.success)
131
+ setMutationError(true);
132
+ else {
133
+ // This is used to let the code verification widget know an email was already sent
134
+ setEmail(toAddress);
135
+ setShowCode(true);
136
+ }
137
+ setLoading(false);
138
+ };
139
+ return {
140
+ callbacks: {
141
+ submitEmail,
142
+ },
143
+ states: {
144
+ loading,
145
+ initialLoading,
146
+ error,
147
+ email: data === null || data === void 0 ? void 0 : data.viewer.email,
148
+ sendCodeError: mutationError,
149
+ },
150
+ text: props.getTextProps(),
151
+ };
152
+ }
153
+
154
+ exports.useVerificationEmailMutation = useVerificationEmailMutation;
155
+ exports.useWidgetEmailVerification = useWidgetEmailVerification;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
3
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
+ const index_module = require('./index.module-236d0403.js');
5
5
  const jsonpointer = require('./jsonpointer-11327262.js');
6
- const useRegistrationFormState = require('./useRegistrationFormState-f9ce55be.js');
6
+ const useRegistrationFormState = require('./useRegistrationFormState-e7e820d0.js');
7
7
 
8
8
  function useInstantAccessRegistration(props) {
9
9
  const cookie = new URLSearchParams(window.location.search);
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-b0129cd6.js');
4
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
5
- const index_module = require('./index.module-b8d9d0ba.js');
6
- const reRender = require('./re-render-5bde3d2e.js');
7
- const useChildElements = require('./useChildElements-410d2435.js');
3
+ const index$1 = require('./index-b0129cd6.js');
4
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
5
+ const index_module = require('./index.module-236d0403.js');
6
+ const reRender = require('./re-render-5de6631a.js');
7
+ const useChildElements = require('./useChildElements-23beb180.js');
8
+ const index = require('./index-56d1fa5b.js');
8
9
 
9
10
  const debug = stencilHooks_module.browser("sq:useReferralTable");
10
11
  const CSS_NAMESPACE = "sqm-referral-table";
11
- const GET_REFERRER_DATA = index_module.dist.gql `
12
+ const GET_REFERRER_DATA = index.dist.gql `
12
13
  query getReferrals(
13
14
  $programId: ID
14
15
  $rewardFilter: RewardFilterInput
@@ -77,7 +78,7 @@ const GET_REFERRER_DATA = index_module.dist.gql `
77
78
  }
78
79
  }
79
80
  `;
80
- const GET_REFERRAL_DATA = index_module.dist.gql `
81
+ const GET_REFERRAL_DATA = index.dist.gql `
81
82
  query getReferrals(
82
83
  $limit: Int!
83
84
  $offset: Int!
@@ -214,7 +215,7 @@ const GET_REFERRAL_DATA = index_module.dist.gql `
214
215
  }
215
216
  }
216
217
  `;
217
- const GET_IMPACT_TAX = index_module.dist.gql `
218
+ const GET_IMPACT_TAX = index.dist.gql `
218
219
  query getImpactTax {
219
220
  viewer {
220
221
  ... on User {
@@ -311,12 +312,12 @@ function useReferralTable(props, emptyElement, loadingElement) {
311
312
  // show the referrer row before any other rows
312
313
  let referrerRow;
313
314
  if (showReferrerRow && states.currentPage === 0) {
314
- const referrerPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderReferrerCell(referrerData, locale, index.h)));
315
+ const referrerPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderReferrerCell(referrerData, locale, index$1.h)));
315
316
  referrerRow = await Promise.all(referrerPromise);
316
317
  }
317
318
  // get the column cells (renderCell is asynchronous)
318
319
  const cellsPromise = data === null || data === void 0 ? void 0 : data.map(async (r) => {
319
- const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(r, { locale, taxConnection }, index.h)));
320
+ const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(r, { locale, taxConnection }, index$1.h)));
320
321
  const cells = (await Promise.all(cellPromise));
321
322
  return cells;
322
323
  });
@@ -404,7 +405,7 @@ async function tryMethod(c, callback) {
404
405
  debug("label promise failed", e);
405
406
  }
406
407
  debug("label promise failed", e);
407
- return index.h("span", null);
408
+ return index$1.h("span", null);
408
409
  }
409
410
  try {
410
411
  return await renderPromise;
@@ -414,8 +415,8 @@ async function tryMethod(c, callback) {
414
415
  // This should not happen so we fail fast
415
416
  debug("Error rendering label", e);
416
417
  const userError = generateUserError(e);
417
- return (index.h("details", null,
418
- index.h("summary", null, "Error"),
418
+ return (index$1.h("details", null,
419
+ index$1.h("summary", null, "Error"),
419
420
  userError));
420
421
  }
421
422
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
3
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
+ const index_module = require('./index.module-236d0403.js');
5
5
 
6
6
  const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
7
7
  function useRegistrationFormState(formState) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
4
- const index_module = require('./index.module-b8d9d0ba.js');
3
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
+ const index_module = require('./index.module-236d0403.js');
5
5
 
6
6
  // import { IntlMessageFormat } from 'intl-messageformat';
7
7
  function isMobile(breakPoint) {
@@ -3,7 +3,6 @@ export default {
3
3
  title: "Components/Payout Scroll Button",
4
4
  };
5
5
  const defaultProps = {
6
- payoutSettingsComplete: false,
6
+ payoutSettingsComplete: true,
7
7
  };
8
- export const Default = () => (h("sqm-payout-button-scroll", { demoData: { states: defaultProps } }));
9
8
  export const CompletedTaxForm = () => (h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } }));
@@ -7,6 +7,7 @@ const style = {
7
7
  PayoutButtonDescription: {
8
8
  color: "var(--sl-color-neutral-500)",
9
9
  fontSize: "var(--sl-font-size-small)",
10
+ margin: "0",
10
11
  },
11
12
  };
12
13
  const sheet = createStyleSheet(style);
@@ -8,7 +8,14 @@ import deepmerge from "deepmerge";
8
8
  */
9
9
  export class PayoutButtonScroll {
10
10
  constructor() {
11
+ /**
12
+ * @uiName Payout button text
13
+ */
11
14
  this.payoutButtonText = "Payouts & Tax Settings";
15
+ /**
16
+ * Description text under payout button
17
+ * @uiName Payout button description text
18
+ */
12
19
  this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
13
20
  this.ignored = true;
14
21
  withHooks(this);
@@ -35,7 +42,10 @@ export class PayoutButtonScroll {
35
42
  "required": false,
36
43
  "optional": false,
37
44
  "docs": {
38
- "tags": [],
45
+ "tags": [{
46
+ "text": "Payout button text",
47
+ "name": "uiName"
48
+ }],
39
49
  "text": ""
40
50
  },
41
51
  "attribute": "payout-button-text",
@@ -53,8 +63,11 @@ export class PayoutButtonScroll {
53
63
  "required": false,
54
64
  "optional": false,
55
65
  "docs": {
56
- "tags": [],
57
- "text": ""
66
+ "tags": [{
67
+ "text": "Payout button description text",
68
+ "name": "uiName"
69
+ }],
70
+ "text": "Description text under payout button"
58
71
  },
59
72
  "attribute": "payout-button-description",
60
73
  "reflect": false,
@@ -6,7 +6,7 @@ const defaultProps = {
6
6
  email: "testemail@example.com",
7
7
  loading: false,
8
8
  verifyFailed: false,
9
- codeResent: false,
9
+ emailResent: false,
10
10
  };
11
11
  export const Default = () => (h("sqm-code-verification", { demoData: { states: defaultProps } }));
12
12
  export const Loading = () => (h("sqm-code-verification", { demoData: {
@@ -18,7 +18,7 @@ export const Loading = () => (h("sqm-code-verification", { demoData: {
18
18
  export const CodeResent = () => (h("sqm-code-verification", { demoData: {
19
19
  states: {
20
20
  ...defaultProps,
21
- codeResent: true,
21
+ emailResent: true,
22
22
  },
23
23
  } }));
24
24
  export const VerificationFailed = () => (h("sqm-code-verification", { demoData: {
@@ -85,7 +85,16 @@ export function WidgetCodeVerificationView(props) {
85
85
  id: "resendCodeText",
86
86
  defaultMessage: text.resendCodeText,
87
87
  }, {
88
- resendCodeLink: (h("a", { href: text.resendCodeLink, target: "_blank", style: { textDecoration: "none" } }, text.resendCodeLabel)),
88
+ resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
89
+ e.preventDefault();
90
+ callbacks.resendEmail();
91
+ } }, text.resendCodeLabel)),
92
+ });
93
+ const codeResentSuccessfully = intl.formatMessage({
94
+ id: "codeResentSuccessfully",
95
+ defaultMessage: text.codeResentSuccessfullyText,
96
+ }, {
97
+ email: states.email,
89
98
  });
90
99
  const inputClass = states.verifyFailed
91
100
  ? sheet.classes.CodeInputError
@@ -96,11 +105,14 @@ export function WidgetCodeVerificationView(props) {
96
105
  styleString),
97
106
  h("div", { class: sheet.classes.Wrapper },
98
107
  h("div", { class: sheet.classes.HeaderContainer },
99
- h(TextSpanView, { type: "p" }, states.verifyFailed
100
- ? text.reverifyCodeHeaderText
101
- : text.verifyCodeHeaderText)),
102
- states.codeResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
103
- h("b", null, text.codeResentSuccessfullyText))),
108
+ h(TextSpanView, { type: "p" }, intl.formatMessage({
109
+ id: `emailHeaderText`,
110
+ defaultMessage: states.verifyFailed
111
+ ? text.reverifyCodeHeaderText
112
+ : text.verifyCodeHeaderText,
113
+ }, { email: states.email }))),
114
+ states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
115
+ h("b", null, codeResentSuccessfully))),
104
116
  h("div", { class: sheet.classes.InputsContainer },
105
117
  h("div", { ref: refs.codeWrapperRef, class: sheet.classes.CodeInputContainer },
106
118
  h("sl-input", { class: inputClass, name: "code" }),
@@ -112,7 +124,5 @@ export function WidgetCodeVerificationView(props) {
112
124
  states.verifyFailed && (h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
113
125
  h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
114
126
  h("div", { class: sheet.classes.FooterContainer },
115
- h(TextSpanView, { type: "p" }, resendCodeText),
116
- h(TextSpanView, { type: "p" },
117
- h("a", { href: "/", style: { textDecoration: "none" } }, text.useDifferentEmailText))))));
127
+ h(TextSpanView, { type: "p" }, resendCodeText)))));
118
128
  }
@@ -10,7 +10,7 @@ export class WidgetCodeVerification {
10
10
  /**
11
11
  * @uiName Verify code widget header text
12
12
  */
13
- this.verifyCodeHeaderText = "Enter the code sent to email@example.com from our referral provider, impact.com.";
13
+ this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
14
14
  /**
15
15
  * @uiName Reverify code widget header text
16
16
  */
@@ -25,27 +25,16 @@ export class WidgetCodeVerification {
25
25
  * @uiName Resend code label
26
26
  */
27
27
  this.resendCodeLabel = "Resend code";
28
- /**
29
- * The link that appears in the resend code link
30
- * @uiName Resend code link
31
- */
32
- // AL: TODO connect route to resend verification code
33
- this.resendCodeLink = "/resend-code";
34
28
  /**
35
29
  * Link text displayed under verify button
36
30
  * @uiName Resend code text
37
31
  */
38
32
  this.codeResentSuccessfullyText = "Another code has been sent to {email}";
39
- /**
40
- * Link text displayed under the verify button
41
- * @uiName Use different email text
42
- */
43
- this.useDifferentEmailText = "Use a different email";
44
33
  /**
45
34
  * Error text displayed under verification input
46
35
  * @uiName Invalid code text
47
36
  */
48
- this.invalidCodeText = " Please check your code and try again. If you’re still having trouble, try resending your code.";
37
+ this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
49
38
  /**
50
39
  * @uiName Verify code button text
51
40
  */
@@ -89,7 +78,7 @@ export class WidgetCodeVerification {
89
78
  },
90
79
  "attribute": "verify-code-header-text",
91
80
  "reflect": false,
92
- "defaultValue": "\"Enter the code sent to email@example.com from our referral provider, impact.com.\""
81
+ "defaultValue": "\"Enter the code sent to {email} from our referral provider, impact.com.\""
93
82
  },
94
83
  "reverifyCodeHeaderText": {
95
84
  "type": "string",
@@ -154,27 +143,6 @@ export class WidgetCodeVerification {
154
143
  "reflect": false,
155
144
  "defaultValue": "\"Resend code\""
156
145
  },
157
- "resendCodeLink": {
158
- "type": "string",
159
- "mutable": false,
160
- "complexType": {
161
- "original": "string",
162
- "resolved": "string",
163
- "references": {}
164
- },
165
- "required": false,
166
- "optional": false,
167
- "docs": {
168
- "tags": [{
169
- "text": "Resend code link",
170
- "name": "uiName"
171
- }],
172
- "text": "The link that appears in the resend code link"
173
- },
174
- "attribute": "resend-code-link",
175
- "reflect": false,
176
- "defaultValue": "\"/resend-code\""
177
- },
178
146
  "codeResentSuccessfullyText": {
179
147
  "type": "string",
180
148
  "mutable": false,
@@ -196,27 +164,6 @@ export class WidgetCodeVerification {
196
164
  "reflect": false,
197
165
  "defaultValue": "\"Another code has been sent to {email}\""
198
166
  },
199
- "useDifferentEmailText": {
200
- "type": "string",
201
- "mutable": false,
202
- "complexType": {
203
- "original": "string",
204
- "resolved": "string",
205
- "references": {}
206
- },
207
- "required": false,
208
- "optional": false,
209
- "docs": {
210
- "tags": [{
211
- "text": "Use different email text",
212
- "name": "uiName"
213
- }],
214
- "text": "Link text displayed under the verify button"
215
- },
216
- "attribute": "use-different-email-text",
217
- "reflect": false,
218
- "defaultValue": "\"Use a different email\""
219
- },
220
167
  "invalidCodeText": {
221
168
  "type": "string",
222
169
  "mutable": false,
@@ -236,7 +183,7 @@ export class WidgetCodeVerification {
236
183
  },
237
184
  "attribute": "invalid-code-text",
238
185
  "reflect": false,
239
- "defaultValue": "\" Please check your code and try again. If you\u2019re still having trouble, try resending your code.\""
186
+ "defaultValue": "\"Please check your code and try again. If you\u2019re still having trouble, try resending your code.\""
240
187
  },
241
188
  "verifyText": {
242
189
  "type": "string",
@@ -285,7 +232,7 @@ export class WidgetCodeVerification {
285
232
  "mutable": false,
286
233
  "complexType": {
287
234
  "original": "DemoData<WidgetCodeVerificationViewProps>",
288
- "resolved": "{ states?: { loading: boolean; email: string; verifyFailed?: boolean; codeResent?: boolean; }; refs?: { codeWrapperRef: any; }; }",
235
+ "resolved": "{ states?: { loading: boolean; email: string; verifyFailed?: boolean; emailResent: boolean; }; refs?: { codeWrapperRef: any; }; }",
289
236
  "references": {
290
237
  "DemoData": {
291
238
  "location": "import",
@@ -323,6 +270,7 @@ function useDemoWidgetCodeVerification(props) {
323
270
  codeWrapperRef: () => { },
324
271
  },
325
272
  callbacks: {
273
+ resendEmail: async () => { },
326
274
  submitCode: async () => { },
327
275
  },
328
276
  text: props.getTextProps(),
@@ -1,8 +1,8 @@
1
1
  import { useMutation, useParent, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useHost, useState } from "@saasquatch/stencil-hooks";
3
+ import { gql } from "graphql-request";
3
4
  import { SHOW_CODE_NAMESPACE, VERIFICATION_EMAIL_NAMESPACE, VERIFICATION_EVENT_KEY, } from "../keys";
4
5
  import { useVerificationEmailMutation } from "../sqm-email-verification/useEmailVerification";
5
- import { gql } from "graphql-request";
6
6
  // TODO: Move to component-boilerplate
7
7
  export const VerifyEmailWithCodeMutation = gql `
8
8
  mutation verifyUserEmail($user: UserIdInput!, $code: String!) {
@@ -43,6 +43,7 @@ export function useWidgetCodeVerification(props) {
43
43
  const [emailResent, setEmailResent] = useState(false);
44
44
  const [codeRef, setCodeRef] = useState(null);
45
45
  const [validationError, setValidationError] = useState(false);
46
+ const [emailError, setEmailError] = useState(false);
46
47
  // TODO: Need to handle error states for these errors
47
48
  const [verifyUser, { loading: verifyLoading, errors: verifyErrors }] = useCodeVerificationMutation();
48
49
  const [request, { loading: resendLoading, data, errors: resendErrors }] = useVerificationEmailMutation();
@@ -83,14 +84,13 @@ export function useWidgetCodeVerification(props) {
83
84
  setValidationError(false);
84
85
  };
85
86
  const resendEmail = async () => {
86
- // TODO: Error checks, depends on what mutation is set up as
87
87
  const result = await request();
88
- if (emailSent) {
89
- setEmailResent(true);
90
- setTimeout(() => {
91
- setEmailResent(false);
92
- }, 500);
88
+ if (!result) {
89
+ setEmailError(true);
90
+ return;
93
91
  }
92
+ if (emailSent)
93
+ setEmailResent(true);
94
94
  setEmailSent(true);
95
95
  };
96
96
  const submitCode = async () => {
@@ -124,6 +124,8 @@ export function useWidgetCodeVerification(props) {
124
124
  // email should already exist if user has completed email-verification
125
125
  if (!email)
126
126
  resendEmail();
127
+ else
128
+ setEmailSent(true);
127
129
  }, []);
128
130
  return {
129
131
  refs: {
@@ -132,6 +134,7 @@ export function useWidgetCodeVerification(props) {
132
134
  states: {
133
135
  email,
134
136
  emailResent,
137
+ resendError: !!(resendErrors === null || resendErrors === void 0 ? void 0 : resendErrors.message) || emailError,
135
138
  loading: verifyLoading || resendLoading,
136
139
  verifyFailed: !!validationError,
137
140
  },
@@ -4,19 +4,39 @@ export default {
4
4
  };
5
5
  const defaultProps = {
6
6
  email: "",
7
- error: "",
7
+ error: false,
8
8
  loading: false,
9
+ initialLoading: false,
10
+ sendCodeError: false,
9
11
  };
10
12
  export const Default = () => (h("sqm-email-verification", { demoData: {} }));
13
+ export const EmailIsPrefilled = () => (h("sqm-email-verification", { demoData: {
14
+ states: {
15
+ ...defaultProps,
16
+ email: "test@example.com",
17
+ },
18
+ } }));
11
19
  export const Loading = () => (h("sqm-email-verification", { demoData: {
20
+ states: {
21
+ ...defaultProps,
22
+ initialLoading: true,
23
+ },
24
+ } }));
25
+ export const SaveLoading = () => (h("sqm-email-verification", { demoData: {
12
26
  states: {
13
27
  ...defaultProps,
14
28
  loading: true,
15
29
  },
16
30
  } }));
17
- export const Error = () => (h("sqm-email-verification", { demoData: {
31
+ export const InvalidEmail = () => (h("sqm-email-verification", { demoData: {
32
+ states: {
33
+ ...defaultProps,
34
+ error: true,
35
+ },
36
+ } }));
37
+ export const SendCodeError = () => (h("sqm-email-verification", { demoData: {
18
38
  states: {
19
39
  ...defaultProps,
20
- error: "Email is invalid",
40
+ sendCodeError: true,
21
41
  },
22
42
  } }));