@saasquatch/mint-components 1.3.3-7 → 1.5.0-1

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 (381) hide show
  1. package/dist/cjs/{ShadowViewAddon-e9bacad0.js → ShadowViewAddon-475e00d3.js} +1 -1
  2. package/dist/cjs/{global-0c01d88f.js → global-89f66e76.js} +282 -70
  3. package/dist/cjs/{index.module-2925fe3b.js → index.module-c0bf9df0.js} +3 -1
  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-b1ad512d.js → re-render-124b56ee.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/{sqm-divided-layout_26.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +6661 -534
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-leaderboard-rank-view-48245b30.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-1bad646a.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-68b16f27.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -9
  20. package/dist/cjs/{sqm-portal-footer-view-edeeebab.js → sqm-portal-footer-view-03408484.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -15
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-2b48529e.js → sqm-portal-profile-view-fa2db439.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -6
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -7
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  35. package/dist/cjs/{useDemoBigStat-ee71b587.js → useDemoBigStat-5d71bbdf.js} +117 -21
  36. package/dist/collection/collection-manifest.json +7 -3
  37. package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
  38. package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +10 -3
  39. package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
  40. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  41. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  42. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  43. package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
  44. package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
  45. package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
  46. package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
  47. package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
  48. package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
  49. package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
  50. package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
  51. package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
  52. package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
  53. package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
  54. package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
  55. package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
  56. package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
  57. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +0 -25
  58. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +1 -2
  59. package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
  60. package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -7
  61. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -53
  62. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -4
  63. package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
  64. package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -8
  65. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +4 -59
  66. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +2 -4
  67. package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
  68. package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -7
  69. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +2 -53
  70. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +0 -3
  71. package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
  72. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +0 -25
  73. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
  74. package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
  75. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +0 -25
  76. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
  77. package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
  78. package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
  79. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
  80. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
  81. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
  82. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  83. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
  84. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
  85. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
  86. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
  87. package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
  88. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +20 -0
  89. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
  90. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +24 -0
  91. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
  92. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
  93. package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
  94. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +64 -0
  95. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +469 -0
  96. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +144 -0
  97. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +186 -0
  98. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  99. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  100. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
  101. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +190 -0
  102. package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
  103. package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
  104. package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
  105. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  106. package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
  107. package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
  108. package/dist/collection/components/sqm-stencilbook/AutoColor.js +26 -0
  109. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  110. package/dist/collection/components/sqm-stencilbook/Matrix.js +66 -0
  111. package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
  112. package/dist/collection/components/sqm-stencilbook/Themes.js +52 -0
  113. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +87 -38
  114. package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
  115. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +412 -0
  116. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  117. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
  118. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +370 -0
  119. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +240 -0
  120. package/dist/collection/components/sqm-task-card/sqm-task-card.js +444 -0
  121. package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
  122. package/dist/collection/global/styles.js +281 -69
  123. package/dist/collection/global/styles.ts +281 -69
  124. package/dist/collection/stories/NewPortal.stories.js +15 -15
  125. package/dist/collection/tables/GenericTableView.js +51 -0
  126. package/dist/collection/tables/TableSlots.js +22 -0
  127. package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
  128. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
  129. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
  130. package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
  131. package/dist/esm/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
  132. package/dist/esm/{global-0fcfbedf.js → global-e0e25c22.js} +282 -70
  133. package/dist/esm/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +2 -2
  134. package/dist/esm/loader.js +3 -3
  135. package/dist/esm/mint-components.js +3 -3
  136. package/dist/esm/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
  137. package/dist/esm/sqm-asset-card.entry.js +1 -1
  138. package/dist/esm/sqm-big-stat.entry.js +2 -2
  139. package/dist/esm/{sqm-divided-layout_26.entry.js → sqm-divided-layout_30.entry.js} +6659 -536
  140. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  141. package/dist/esm/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
  142. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
  143. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  144. package/dist/esm/sqm-name-fields.entry.js +1 -1
  145. package/dist/esm/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
  146. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  147. package/dist/esm/sqm-popup-container.entry.js +1 -1
  148. package/dist/esm/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  149. package/dist/esm/sqm-portal-email-verification.entry.js +4 -9
  150. package/dist/esm/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  151. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  152. package/dist/esm/sqm-portal-forgot-password.entry.js +5 -15
  153. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  154. package/dist/esm/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  155. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  156. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  157. package/dist/esm/sqm-portal-reset-password.entry.js +2 -6
  158. package/dist/esm/sqm-portal-verify-email.entry.js +3 -7
  159. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  160. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  161. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  162. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  163. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  164. package/dist/esm/sqm-share-code.entry.js +1 -1
  165. package/dist/esm/{useDemoBigStat-8865b9fa.js → useDemoBigStat-d227b2f9.js} +117 -21
  166. package/dist/esm-es5/{ShadowViewAddon-5f66de48.js → ShadowViewAddon-558fabb7.js} +1 -1
  167. package/dist/esm-es5/{global-0fcfbedf.js → global-e0e25c22.js} +2 -2
  168. package/dist/esm-es5/{index.module-1e92a7a3.js → index.module-eb50a8d2.js} +1 -1
  169. package/dist/esm-es5/loader.js +1 -1
  170. package/dist/esm-es5/mint-components.js +1 -1
  171. package/dist/esm-es5/{re-render-b8468637.js → re-render-6d5b856e.js} +1 -1
  172. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  173. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  174. package/dist/esm-es5/sqm-divided-layout_30.entry.js +58 -0
  175. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  176. package/dist/esm-es5/{sqm-leaderboard-rank-view-fd7d7f42.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
  177. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  178. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  179. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  180. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +1 -1
  181. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  182. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  183. package/dist/esm-es5/{sqm-portal-email-verification-view-6cc56c87.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  184. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  185. package/dist/esm-es5/{sqm-portal-footer-view-8a1128d5.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  186. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  187. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  188. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  189. package/dist/esm-es5/{sqm-portal-profile-view-4acf74a5.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  190. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  191. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  192. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  193. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  194. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  195. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  196. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  197. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  198. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  199. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  200. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
  201. package/dist/mint-components/assets/Reward-icon.png +0 -0
  202. package/dist/mint-components/assets/placeholder.png +0 -0
  203. package/dist/mint-components/global/styles.ts +281 -69
  204. package/dist/mint-components/mint-components.css +1 -0
  205. package/dist/mint-components/mint-components.esm.js +1 -1
  206. package/dist/mint-components/mint-components.js +1 -1
  207. package/dist/mint-components/{p-d3171b36.system.entry.js → p-0029a386.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-3452bdae.system.js → p-02dc36a4.system.js} +1 -1
  209. package/dist/mint-components/{p-de3311bf.entry.js → p-03a6becf.entry.js} +1 -1
  210. package/dist/mint-components/{p-3e3dad7a.system.js → p-03e93c82.system.js} +1 -1
  211. package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
  212. package/dist/mint-components/{p-18aa175f.system.js → p-0e8ae7e3.system.js} +2 -2
  213. package/dist/mint-components/{p-965e34ab.entry.js → p-1705e549.entry.js} +1 -1
  214. package/dist/mint-components/{p-51cfdd14.js → p-1f95b411.js} +1 -1
  215. package/dist/mint-components/{p-9ff0425e.system.entry.js → p-2027edc0.system.entry.js} +1 -1
  216. package/dist/mint-components/p-20c95798.entry.js +1 -0
  217. package/dist/mint-components/{p-e50839df.entry.js → p-21b4044a.entry.js} +1 -1
  218. package/dist/mint-components/{p-d513229d.js → p-221bd06e.js} +1 -1
  219. package/dist/mint-components/p-2338162a.entry.js +1 -0
  220. package/dist/mint-components/{p-9ff118a2.system.entry.js → p-24fa8920.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-64759dda.system.js → p-2e63dcfd.system.js} +1 -1
  222. package/dist/mint-components/{p-743882c6.entry.js → p-3143cce4.entry.js} +1 -1
  223. package/dist/mint-components/{p-4b6c316d.entry.js → p-34112d74.entry.js} +1 -1
  224. package/dist/mint-components/p-40e83a85.system.js +1 -0
  225. package/dist/mint-components/{p-337a3d6b.system.entry.js → p-46493de5.system.entry.js} +1 -1
  226. package/dist/mint-components/p-4658d225.system.entry.js +1 -0
  227. package/dist/mint-components/{p-7d996b49.js → p-4b719313.js} +1 -1
  228. package/dist/mint-components/{p-6cb81b77.entry.js → p-53e51b3f.entry.js} +1 -1
  229. package/dist/mint-components/p-58ffe936.system.entry.js +58 -0
  230. package/dist/mint-components/p-5939212e.system.entry.js +1 -0
  231. package/dist/mint-components/{p-af2d886e.js → p-5d925bb6.js} +1 -1
  232. package/dist/mint-components/{p-27e23808.system.js → p-5e4e7f01.system.js} +1 -1
  233. package/dist/mint-components/{p-af1f8bd3.js → p-61acba7a.js} +1 -1
  234. package/dist/mint-components/{p-13605359.entry.js → p-65c79eec.entry.js} +1 -1
  235. package/dist/mint-components/{p-d55abc13.entry.js → p-759d3800.entry.js} +2 -2
  236. package/dist/mint-components/p-7cdbe82a.entry.js +1 -0
  237. package/dist/mint-components/{p-9a3a0db5.system.entry.js → p-7ff22998.system.entry.js} +1 -1
  238. package/dist/mint-components/p-85efd952.entry.js +1 -0
  239. package/dist/mint-components/p-86255b95.entry.js +1 -0
  240. package/dist/mint-components/p-88d9bd59.entry.js +393 -0
  241. package/dist/mint-components/{p-b3880833.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-d0cad85c.js → p-8fd8682c.js} +2 -2
  243. package/dist/mint-components/{p-70ca623f.system.entry.js → p-97b946c2.system.entry.js} +1 -1
  244. package/dist/mint-components/{p-1e47e0a6.entry.js → p-9be0cb19.entry.js} +1 -1
  245. package/dist/mint-components/{p-6156a7ac.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
  246. package/dist/mint-components/{p-8bfebd45.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
  247. package/dist/mint-components/{p-036c5a7e.system.entry.js → p-a8246a50.system.entry.js} +1 -1
  248. package/dist/mint-components/{p-c47b83c3.entry.js → p-a831de18.entry.js} +1 -1
  249. package/dist/mint-components/{p-6ad110d3.js → p-a833dbb3.js} +1 -1
  250. package/dist/mint-components/p-a88a08bb.system.js +1 -0
  251. package/dist/mint-components/p-a9a6f205.entry.js +1 -0
  252. package/dist/mint-components/{p-624c5352.system.entry.js → p-aee83885.system.entry.js} +1 -1
  253. package/dist/mint-components/p-b86cbac3.system.entry.js +1 -0
  254. package/dist/mint-components/{p-602180a2.system.js → p-be3a0cc4.system.js} +1 -1
  255. package/dist/mint-components/{p-05a2640d.entry.js → p-c0f9d0b1.entry.js} +1 -1
  256. package/dist/mint-components/p-c65cfc9d.system.js +1 -0
  257. package/dist/mint-components/{p-991bd182.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
  258. package/dist/mint-components/p-cc189fc4.system.js +1 -0
  259. package/dist/mint-components/{p-cffc23c0.entry.js → p-cc652a53.entry.js} +1 -1
  260. package/dist/mint-components/p-d19d6012.js +235 -0
  261. package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
  262. package/dist/mint-components/{p-3772bae2.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
  263. package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
  264. package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
  265. package/dist/mint-components/{p-05a86906.entry.js → p-e608f340.entry.js} +1 -1
  266. package/dist/mint-components/{p-4068e47c.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
  267. package/dist/mint-components/p-ef7f70f2.system.entry.js +1 -0
  268. package/dist/mint-components/{p-f16bae7a.system.entry.js → p-f20d9204.system.entry.js} +1 -1
  269. package/dist/mint-components/{p-c84a5b33.js → p-f7f87338.js} +1 -1
  270. package/dist/mint-components/{p-55210498.system.js → p-f9ada3d7.system.js} +1 -1
  271. package/dist/mint-components/{p-eddcf481.js → p-faf66fdb.js} +1 -1
  272. package/dist/mint-components/{p-6305419f.entry.js → p-fcd03042.entry.js} +1 -1
  273. package/dist/mint-components/{p-09afaaac.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
  274. package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
  275. package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
  276. package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
  277. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  278. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  279. package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
  280. package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
  281. package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
  282. package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
  283. package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
  284. package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
  285. package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
  286. package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
  287. package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
  288. package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
  289. package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
  290. package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
  291. package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
  292. package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
  293. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +0 -4
  294. package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
  295. package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
  296. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -1
  297. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -8
  298. package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +1 -3
  299. package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
  300. package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
  301. package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +0 -2
  302. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -8
  303. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
  304. package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
  305. package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
  306. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +0 -1
  307. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +0 -8
  308. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +0 -1
  309. package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
  310. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +0 -4
  311. package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
  312. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +0 -4
  313. package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -2
  314. package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
  315. package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
  316. package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
  317. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
  318. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
  319. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -0
  320. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
  321. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +4 -0
  322. package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
  323. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
  324. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +25 -0
  325. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +24 -0
  326. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +44 -0
  327. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  328. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  329. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
  330. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +38 -0
  331. package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
  332. package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
  333. package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
  334. package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
  335. package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
  336. package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +1 -0
  337. package/dist/types/components/sqm-stencilbook/Matrix.d.ts +11 -0
  338. package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
  339. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  340. package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
  341. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +19 -0
  342. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  343. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  344. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
  345. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +18 -0
  346. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +80 -0
  347. package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
  348. package/dist/types/components.d.ts +297 -72
  349. package/dist/types/global/styles.d.ts +1 -1
  350. package/dist/types/tables/GenericTableView.d.ts +29 -0
  351. package/dist/types/tables/TableSlots.d.ts +8 -0
  352. package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
  353. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
  354. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
  355. package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
  356. package/grapesjs/grapesjs.js +1 -1
  357. package/package.json +4 -2
  358. package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
  359. package/dist/esm-es5/useDemoBigStat-8865b9fa.js +0 -1
  360. package/dist/mint-components/p-06d79243.system.entry.js +0 -1
  361. package/dist/mint-components/p-10a98629.entry.js +0 -1
  362. package/dist/mint-components/p-112d42ab.system.entry.js +0 -1
  363. package/dist/mint-components/p-192539d2.entry.js +0 -1
  364. package/dist/mint-components/p-2f333f89.system.entry.js +0 -1
  365. package/dist/mint-components/p-32573409.js +0 -227
  366. package/dist/mint-components/p-528aecd1.entry.js +0 -1
  367. package/dist/mint-components/p-54707082.system.js +0 -1
  368. package/dist/mint-components/p-606506d6.system.entry.js +0 -1
  369. package/dist/mint-components/p-6815e7ba.entry.js +0 -1
  370. package/dist/mint-components/p-756a5e6f.system.js +0 -1
  371. package/dist/mint-components/p-768b9014.system.entry.js +0 -1
  372. package/dist/mint-components/p-7cf335a0.entry.js +0 -1
  373. package/dist/mint-components/p-86b66e5c.entry.js +0 -1
  374. package/dist/mint-components/p-942723ad.entry.js +0 -1
  375. package/dist/mint-components/p-9f2a08a9.entry.js +0 -230
  376. package/dist/mint-components/p-a359f652.system.js +0 -1
  377. package/dist/mint-components/p-a646db48.system.entry.js +0 -1
  378. package/dist/mint-components/p-b3cddcca.entry.js +0 -1
  379. package/dist/mint-components/p-ba09d673.system.entry.js +0 -1
  380. package/dist/mint-components/p-d1cea1b1.system.js +0 -1
  381. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -35,7 +35,13 @@ _, status) => {
35
35
  }
36
36
  }
37
37
  }
38
- `, { queryFilter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
38
+ `, { queryFilter }, (res) => {
39
+ var _a, _b, _c, _d, _e, _f, _g;
40
+ return ({
41
+ value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
42
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
43
+ });
44
+ });
39
45
  };
40
46
  const programGoalsQuery = (programId, locale, metricType, goalId) => {
41
47
  // Confirm this behaviour
@@ -55,9 +61,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
55
61
  }
56
62
  }
57
63
  `, { programId, metricType, goalId, locale }, (res) => {
58
- var _a, _b, _c, _d, _e;
64
+ var _a, _b, _c, _d, _e, _f;
59
65
  const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
60
- return ((_e = (_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) === null || _e === void 0 ? void 0 : _e.toString()) || 0;
66
+ return {
67
+ value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
68
+ statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
69
+ };
70
+ });
71
+ };
72
+ const customFieldsQuery = (programId, locale, fieldName, goalId) => {
73
+ // Confirm this behaviour
74
+ if (programId === "classic")
75
+ return null;
76
+ return debugQuery(gql `
77
+ query {
78
+ viewer {
79
+ ... on User {
80
+ customFields
81
+ }
82
+ }
83
+ }
84
+ `, { programId, fieldName, goalId, locale }, (res) => {
85
+ var _a, _b, _c;
86
+ const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
87
+ return {
88
+ value: customField || 0,
89
+ statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
90
+ };
61
91
  });
62
92
  };
63
93
  const referralsMonthQuery = (programId) => {
@@ -78,7 +108,13 @@ const referralsMonthQuery = (programId) => {
78
108
  }
79
109
  }
80
110
  }
81
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
111
+ `, { filter }, (res) => {
112
+ var _a, _b, _c, _d, _e, _f, _g;
113
+ return ({
114
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
115
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
116
+ });
117
+ });
82
118
  };
83
119
  const referralsWeekQuery = (programId) => {
84
120
  const programFilter = programId === "classic"
@@ -98,7 +134,13 @@ const referralsWeekQuery = (programId) => {
98
134
  }
99
135
  }
100
136
  }
101
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
137
+ `, { filter }, (res) => {
138
+ var _a, _b, _c, _d, _e, _f, _g;
139
+ return ({
140
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
141
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
142
+ });
143
+ });
102
144
  };
103
145
  const rewardsCountQuery = (programId,
104
146
  // locale
@@ -115,7 +157,13 @@ _, global = "") => {
115
157
  }
116
158
  `, {
117
159
  programId: !global && programId !== "classic" ? programId : null,
118
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
160
+ }, (res) => {
161
+ var _a, _b, _c, _d, _e, _f, _g;
162
+ return ({
163
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
164
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
165
+ });
166
+ });
119
167
  };
120
168
  const rewardsCountFilteredQuery = (programId,
121
169
  // locale
@@ -148,7 +196,13 @@ _, type, unit, status, global = "") => {
148
196
  unit,
149
197
  type,
150
198
  statusFilter,
151
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
199
+ }, (res) => {
200
+ var _a, _b, _c, _d, _e, _f, _g;
201
+ return ({
202
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
203
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
204
+ });
205
+ });
152
206
  };
153
207
  const integrationRewardsCountFilteredQuery = (programId,
154
208
  // locale
@@ -173,7 +227,13 @@ _, status, global = "") => {
173
227
  `, {
174
228
  programId: !global && programId !== "classic" ? programId : null,
175
229
  statusFilter,
176
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
230
+ }, (res) => {
231
+ var _a, _b, _c, _d, _e, _f, _g;
232
+ return ({
233
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
234
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
235
+ });
236
+ });
177
237
  };
178
238
  const rewardsMonthQuery = (programId,
179
239
  // locale
@@ -195,7 +255,13 @@ _, global = "") => {
195
255
  }
196
256
  `, {
197
257
  programId: !global && programId !== "classic" ? programId : null,
198
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
258
+ }, (res) => {
259
+ var _a, _b, _c, _d, _e, _f, _g;
260
+ return ({
261
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
262
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
263
+ });
264
+ });
199
265
  };
200
266
  const rewardsWeekQuery = (programId,
201
267
  // locale
@@ -217,7 +283,13 @@ _, global = "") => {
217
283
  }
218
284
  `, {
219
285
  programId: !global && programId !== "classic" ? programId : null,
220
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
286
+ }, (res) => {
287
+ var _a, _b, _c, _d, _e, _f, _g;
288
+ return ({
289
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
290
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
291
+ });
292
+ });
221
293
  };
222
294
  const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
223
295
  return debugQuery(gql `
@@ -252,10 +324,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
252
324
  unit,
253
325
  locale,
254
326
  }, (res) => {
255
- var _a, _b, _c, _d;
327
+ var _a, _b, _c, _d, _e;
256
328
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
257
329
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
258
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
330
+ return {
331
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
332
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
333
+ };
259
334
  });
260
335
  };
261
336
  const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
@@ -291,10 +366,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
291
366
  unit,
292
367
  locale,
293
368
  }, (res) => {
294
- var _a, _b, _c, _d;
369
+ var _a, _b, _c, _d, _e;
295
370
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
296
371
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
297
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
372
+ return {
373
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
374
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
375
+ };
298
376
  });
299
377
  };
300
378
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
@@ -330,10 +408,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
330
408
  unit,
331
409
  locale,
332
410
  }, (res) => {
333
- var _a, _b, _c, _d;
411
+ var _a, _b, _c, _d, _e;
334
412
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
335
413
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
336
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
414
+ return {
415
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
416
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
417
+ };
337
418
  });
338
419
  };
339
420
  const parseRewardValueFormat = {
@@ -376,10 +457,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
376
457
  format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
377
458
  locale,
378
459
  }, (res) => {
379
- var _a, _b, _c, _d;
460
+ var _a, _b, _c, _d, _e;
380
461
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
381
462
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
382
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
463
+ return {
464
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
465
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
466
+ };
383
467
  });
384
468
  };
385
469
  // functions are of the form (programId: string, ...args: string) => string
@@ -436,10 +520,15 @@ export const queries = {
436
520
  label: "Program Goals",
437
521
  query: programGoalsQuery,
438
522
  },
523
+ customFields: {
524
+ label: "Custom Fields",
525
+ query: customFieldsQuery,
526
+ },
439
527
  };
440
528
  // this should be exposed in documentation somehow
441
529
  export const StatPaths = [
442
530
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
531
+ { name: "customFields", route: "/(customFields)/:customField" },
443
532
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
444
533
  { name: "referralsMonth", route: "/(referralsMonth)" },
445
534
  { name: "referralsWeek", route: "/(referralsWeek)" },
@@ -473,6 +562,7 @@ export const StatPaths = [
473
562
  ];
474
563
  export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
475
564
  export function useBigStat(props) {
565
+ var _a;
476
566
  const { statType, flexReverse, alignment } = props;
477
567
  const programId = useProgramId();
478
568
  const locale = useLocale();
@@ -480,7 +570,7 @@ export function useBigStat(props) {
480
570
  const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
481
571
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
482
572
  return {
483
- props: { statvalue: "!!!", flexReverse, alignment },
573
+ props: { value: 0, statvalue: "!!!", flexReverse, alignment },
484
574
  label: "BAD PROP TYPE",
485
575
  };
486
576
  }
@@ -503,7 +593,12 @@ export function useBigStat(props) {
503
593
  const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
504
594
  debug("stat:", stat);
505
595
  return {
506
- props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
596
+ props: {
597
+ value: stat === null || stat === void 0 ? void 0 : stat.value,
598
+ statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
599
+ flexReverse,
600
+ alignment,
601
+ },
507
602
  label,
508
603
  };
509
604
  }
@@ -7,6 +7,7 @@ export function useDemoBigStat(props) {
7
7
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
8
8
  return {
9
9
  props: {
10
+ value: 0,
10
11
  statvalue: "!!!",
11
12
  flexReverse: false,
12
13
  alignment: "center",
@@ -1,9 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
- import { NavigationSidebarItemView } from "../components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
3
- import { NavigationSidebarView } from "../components/sqm-navigation-sidebar/sqm-navigation-sidebar-view";
4
- import { PortalSectionView } from "../components/sqm-titled-section/sqm-portal-section-view";
2
+ import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
3
+ import { NavigationSidebarView } from "../sqm-navigation-sidebar/sqm-navigation-sidebar-view";
4
+ import { PortalSectionView } from "../sqm-titled-section/sqm-portal-section-view";
5
5
  export default {
6
- title: "Divided Layout",
6
+ title: "Components/Divided Layout",
7
7
  };
8
8
  const barProps = {
9
9
  data: {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import EditProfileView from "../components/sqm-edit-profile/sqm-edit-profile-view";
2
+ import EditProfileView from "./sqm-edit-profile-view";
3
3
  export default {
4
- title: "Edit Profile Form",
4
+ title: "Components/Edit Profile Form",
5
5
  };
6
6
  const defaultProps = {
7
7
  states: {
@@ -1,7 +1,7 @@
1
1
  import { setUserIdentity } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect } from "@saasquatch/universal-hooks";
3
3
  import { h } from "@stencil/core";
4
- import { createHookStory } from "../components/sqm-stencilbook/HookStoryAddon";
4
+ import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
5
5
  function setupGraphQL() {
6
6
  const id = "worried-camera@uexwltgh.mailosaur.net";
7
7
  const accountId = id;
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  export default {
3
- title: "Form Message",
3
+ title: "Components/Form Message",
4
4
  };
5
5
  export const SuccessAlert = () => {
6
6
  return (h("sqm-form-message", { type: "success" },
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { HeroView } from "../components/sqm-hero/sqm-hero-view";
3
- import scenario from "../components/sqm-hero/sqm-hero.feature";
2
+ import { HeroView } from "./sqm-hero-view";
3
+ import scenario from "../sqm-hero/sqm-hero.feature";
4
4
  export default {
5
5
  title: "Hero Layout",
6
6
  parameters: {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { LeaderboardView } from "../components/sqm-leaderboard/sqm-leaderboard-view";
2
+ import { LeaderboardView } from "./sqm-leaderboard-view";
3
3
  export default {
4
- title: "Leaderboard",
4
+ title: "Components/Leaderboard",
5
5
  parameters: {
6
6
  tagname: "sqm-leaderboard",
7
7
  },
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { createHookStory } from "../components/sqm-stencilbook/HookStoryAddon";
3
- import { useLeaderboard, } from "../components/sqm-leaderboard/useLeaderboard";
4
- import { LeaderboardView } from "../components/sqm-leaderboard/sqm-leaderboard-view";
2
+ import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
3
+ import { useLeaderboard, } from "./useLeaderboard";
4
+ import { LeaderboardView } from "./sqm-leaderboard-view";
5
5
  import { useEffect } from "@saasquatch/universal-hooks";
6
6
  import { setUserIdentity } from "@saasquatch/component-boilerplate";
7
7
  export default {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { LeaderboardRankView } from "../components/sqm-leaderboard-rank/sqm-leaderboard-rank-view";
2
+ import { LeaderboardRankView } from "./sqm-leaderboard-rank-view";
3
3
  export default {
4
- title: "Leaderboard Rank",
4
+ title: "Components/Leaderboard Rank",
5
5
  };
6
6
  export const First = () => {
7
7
  const props = { data: { rank: "1st" } };
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { NameFieldsView, } from "../components/sqm-name-fields/sqm-name-fields-view";
3
- import scenario from "../components/sqm-name-fields/sqm-name-fields.feature";
2
+ import { NameFieldsView, } from "./sqm-name-fields-view";
3
+ import scenario from "../sqm-name-fields/sqm-name-fields.feature";
4
4
  export default {
5
5
  title: "Name Fields",
6
6
  parameters: {
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
- import { NavigationSidebarView } from "../components/sqm-navigation-sidebar/sqm-navigation-sidebar-view";
3
- import { NavigationSidebarItemView } from "../components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
2
+ import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
3
+ import { NavigationSidebarItemView } from "../sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
4
4
  export default {
5
- title: "Navigation Sidebar",
5
+ title: "Components/Navigation Sidebar",
6
6
  };
7
7
  export const DefaultNavigationSidebar = () => {
8
8
  const barProps = {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { NavigationSidebarItemView } from "../components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view";
2
+ import { NavigationSidebarItemView } from "./sqm-navigation-sidebar-item-view";
3
3
  export default {
4
- title: "Sidebar Item",
4
+ title: "Components/Sidebar Item",
5
5
  };
6
6
  export const InactiveItem = () => {
7
7
  const props = {
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  export default {
3
- title: "Portal Password Field",
3
+ title: "Components/Portal Password Field",
4
4
  };
5
5
  export const Start = () => {
6
6
  return (h("sqm-password-field", { demoData: {
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalChangePasswordView } from "../components/sqm-portal-change-password/sqm-portal-change-password-view";
3
- import scenario from "../components/sqm-portal-change-password/sqm-portal-change-password.feature";
2
+ import { PortalChangePasswordView } from "./sqm-portal-change-password-view";
3
+ import scenario from "./sqm-portal-change-password.feature";
4
4
  export default {
5
- title: "Change Password",
5
+ title: "Components/Change Password",
6
6
  parameters: {
7
7
  scenario,
8
8
  },
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalEmailVerificationView, } from "../components/sqm-portal-email-verification/sqm-portal-email-verification-view";
3
- import scenario from "../components/sqm-portal-email-verification/sqm-portal-email-verification.feature";
2
+ import { PortalEmailVerificationView, } from "./sqm-portal-email-verification-view";
3
+ import scenario from "./sqm-portal-email-verification.feature";
4
4
  export default {
5
- title: "Portal Email Verification",
5
+ title: "Components/Portal Email Verification",
6
6
  parameters: {
7
7
  scenario,
8
8
  },
@@ -10,10 +10,6 @@ import { usePortalEmailVerification } from "./usePortalEmailVerification";
10
10
  export class PortalEmailVerification {
11
11
  constructor() {
12
12
  this.ignored = true;
13
- /**
14
- * @uiName Base path of verify email link
15
- */
16
- this.redirectPath = "/verifyEmail";
17
13
  /**
18
14
  * @uiName Email verification header text
19
15
  */
@@ -38,27 +34,6 @@ export class PortalEmailVerification {
38
34
  static get is() { return "sqm-portal-email-verification"; }
39
35
  static get encapsulation() { return "shadow"; }
40
36
  static get properties() { return {
41
- "redirectPath": {
42
- "type": "string",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "string",
46
- "resolved": "string",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [{
53
- "text": "Base path of verify email link",
54
- "name": "uiName"
55
- }],
56
- "text": ""
57
- },
58
- "attribute": "redirect-path",
59
- "reflect": false,
60
- "defaultValue": "\"/verifyEmail\""
61
- },
62
37
  "emailVerificationHeader": {
63
38
  "type": "string",
64
39
  "mutable": false,
@@ -14,8 +14,7 @@ export function usePortalEmailVerification(props) {
14
14
  return;
15
15
  setError("");
16
16
  const urlParams = nextPage ? { nextPage } : null;
17
- const redirectPath = props.redirectPath;
18
- const variables = { email, urlParams, redirectPath };
17
+ const variables = { email, urlParams };
19
18
  await request(variables);
20
19
  };
21
20
  useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalFooterView } from "../components/sqm-portal-footer/sqm-portal-footer-view";
3
- import scenario from "../components/sqm-portal-footer/sqm-portal-footer.feature";
2
+ import { PortalFooterView } from "./sqm-portal-footer-view";
3
+ import scenario from "../sqm-portal-footer/sqm-portal-footer.feature";
4
4
  export default {
5
5
  title: "Portal Footer",
6
6
  parameters: {
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalForgotPasswordView, } from "../components/sqm-portal-forgot-password/sqm-portal-forgot-password-view";
3
- import scenario from "../components/sqm-portal-forgot-password/sqm-portal-forgot-password.feature";
2
+ import { PortalForgotPasswordView, } from "./sqm-portal-forgot-password-view";
3
+ import scenario from "./sqm-portal-forgot-password.feature";
4
4
  export default {
5
- title: "Portal Forgot Password",
5
+ title: "Components/Portal Forgot Password",
6
6
  parameters: {
7
7
  scenario,
8
8
  },
@@ -12,7 +12,6 @@ const defaultProps = {
12
12
  error: "",
13
13
  loading: false,
14
14
  success: false,
15
- loginPath: "/login",
16
15
  },
17
16
  callbacks: {
18
17
  submit: async (e) => await e,
@@ -27,7 +26,6 @@ const errorProps = {
27
26
  error: "Something went wrong. Please try again.",
28
27
  loading: false,
29
28
  success: false,
30
- loginPath: "/login",
31
29
  },
32
30
  callbacks: {
33
31
  submit: async (e) => await e,
@@ -42,7 +40,6 @@ const loadingProps = {
42
40
  error: "",
43
41
  loading: true,
44
42
  success: false,
45
- loginPath: "/login",
46
43
  },
47
44
  callbacks: {
48
45
  submit: async (e) => await e,
@@ -57,7 +54,6 @@ const successProps = {
57
54
  error: "",
58
55
  loading: false,
59
56
  success: true,
60
- loginPath: "/login",
61
57
  },
62
58
  callbacks: {
63
59
  submit: async (e) => await e,
@@ -10,10 +10,6 @@ import { usePortalForgotPassword } from "./usePortalForgotPassword";
10
10
  export class PortalForgotPassword {
11
11
  constructor() {
12
12
  this.ignored = true;
13
- /**
14
- * @uiName Base path of reset password email link
15
- */
16
- this.redirectPath = "/resetPassword";
17
13
  /**
18
14
  * @uiName Email label
19
15
  */
@@ -22,20 +18,16 @@ export class PortalForgotPassword {
22
18
  * @uiName Password reset button text
23
19
  */
24
20
  this.submitLabel = "Request Password Reset";
25
- /**
26
- * @uiName Routing path to login page
27
- */
28
- this.loginPath = "/login";
29
21
  withHooks(this);
30
22
  }
31
23
  disconnectedCallback() { }
32
24
  render() {
33
25
  const { states, callbacks } = isDemo()
34
26
  ? usePortalForgotPasswordDemo(this)
35
- : usePortalForgotPassword(this);
27
+ : usePortalForgotPassword();
36
28
  const content = {
37
29
  secondaryButton: (h("slot", { name: "secondaryButton" },
38
- h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push(states.loginPath) }, "Sign In"))),
30
+ h("sl-button", { type: "text", disabled: states.loading, onClick: () => navigation.push("/login") }, "Sign In"))),
39
31
  messageSlot: (h("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
40
32
  emailLabel: this.emailLabel,
41
33
  submitLabel: this.submitLabel,
@@ -45,27 +37,6 @@ export class PortalForgotPassword {
45
37
  static get is() { return "sqm-portal-forgot-password"; }
46
38
  static get encapsulation() { return "shadow"; }
47
39
  static get properties() { return {
48
- "redirectPath": {
49
- "type": "string",
50
- "mutable": false,
51
- "complexType": {
52
- "original": "string",
53
- "resolved": "string",
54
- "references": {}
55
- },
56
- "required": false,
57
- "optional": false,
58
- "docs": {
59
- "tags": [{
60
- "text": "Base path of reset password email link",
61
- "name": "uiName"
62
- }],
63
- "text": ""
64
- },
65
- "attribute": "redirect-path",
66
- "reflect": false,
67
- "defaultValue": "\"/resetPassword\""
68
- },
69
40
  "emailLabel": {
70
41
  "type": "string",
71
42
  "mutable": false,
@@ -108,33 +79,12 @@ export class PortalForgotPassword {
108
79
  "reflect": false,
109
80
  "defaultValue": "\"Request Password Reset\""
110
81
  },
111
- "loginPath": {
112
- "type": "string",
113
- "mutable": false,
114
- "complexType": {
115
- "original": "string",
116
- "resolved": "string",
117
- "references": {}
118
- },
119
- "required": false,
120
- "optional": false,
121
- "docs": {
122
- "tags": [{
123
- "text": "Routing path to login page",
124
- "name": "uiName"
125
- }],
126
- "text": ""
127
- },
128
- "attribute": "login-path",
129
- "reflect": false,
130
- "defaultValue": "\"/login\""
131
- },
132
82
  "demoData": {
133
83
  "type": "unknown",
134
84
  "mutable": false,
135
85
  "complexType": {
136
86
  "original": "DemoData<PortalForgotPasswordViewProps>",
137
- "resolved": "{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
87
+ "resolved": "{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }",
138
88
  "references": {
139
89
  "DemoData": {
140
90
  "location": "import",