@saasquatch/mint-components 1.3.1-6 → 1.3.2-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/CHANGELOG.md +23 -31
  2. package/dist/cjs/{ShadowViewAddon-a33867b9.js → ShadowViewAddon-d2fde0a2.js} +1 -1
  3. package/dist/cjs/{global-f4f5e602.js → global-e04d7cde.js} +279 -70
  4. package/dist/cjs/{index.module-e9dac160.js → index.module-07ed6ad2.js} +4 -2
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/mint-components.cjs.js +3 -3
  7. package/dist/cjs/{re-render-3acba68a.js → re-render-81649c33.js} +1 -1
  8. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  10. package/dist/cjs/{sqm-divided-layout_26.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +2607 -168
  11. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  12. package/dist/cjs/{sqm-leaderboard-rank-view-54299e38.js → sqm-leaderboard-rank-view-0ba128e2.js} +2 -2
  13. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  16. package/dist/cjs/{sqm-navigation-sidebar-item-view-daa9c2e1.js → sqm-navigation-sidebar-item-view-0bad789c.js} +1 -1
  17. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  19. package/dist/cjs/{sqm-portal-email-verification-view-395079fe.js → sqm-portal-email-verification-view-3c7d8701.js} +1 -1
  20. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  21. package/dist/cjs/{sqm-portal-footer-view-c82aedb5.js → sqm-portal-footer-view-8f5d682e.js} +1 -1
  22. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
  23. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  25. package/dist/cjs/{sqm-portal-profile-view-9fa00ccd.js → sqm-portal-profile-view-14866b58.js} +1 -1
  26. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  27. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  30. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  35. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  36. package/dist/cjs/{useDemoBigStat-e99cc8a2.js → useDemoBigStat-1692a6a1.js} +119 -22
  37. package/dist/collection/collection-manifest.json +7 -3
  38. package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
  39. package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +10 -3
  40. package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
  41. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -21
  42. package/dist/collection/components/sqm-big-stat/useBigStat.js +117 -21
  43. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  44. package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
  45. package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
  46. package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
  47. package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
  48. package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
  49. package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
  50. package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
  51. package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
  52. package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
  53. package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
  54. package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
  55. package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
  56. package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
  57. package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
  58. package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
  59. package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -3
  60. package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
  61. package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -2
  62. package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
  63. package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -2
  64. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  65. package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
  66. package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
  67. package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
  68. package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
  69. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
  70. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
  71. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
  72. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  73. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
  74. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
  75. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
  76. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
  77. package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
  78. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
  79. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
  80. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +8 -0
  81. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
  82. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
  83. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +60 -0
  84. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +269 -0
  85. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +121 -0
  86. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +198 -0
  87. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  88. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  89. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
  90. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +190 -0
  91. package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
  92. package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
  93. package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
  94. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  95. package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
  96. package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
  97. package/dist/collection/components/sqm-share-link/useShareLink.js +1 -2
  98. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  99. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +48 -36
  100. package/dist/collection/components/sqm-task-card/Matrix.js +63 -0
  101. package/dist/collection/components/sqm-task-card/SVGs.js +9 -0
  102. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +330 -0
  103. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  104. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  105. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +311 -0
  106. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +53 -0
  107. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +173 -0
  108. package/dist/collection/components/sqm-task-card/sqm-task-card.js +384 -0
  109. package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
  110. package/dist/collection/global/styles.js +278 -69
  111. package/dist/collection/global/styles.ts +278 -69
  112. package/dist/collection/stories/NewPortal.stories.js +15 -15
  113. package/dist/collection/tables/GenericTableView.js +51 -0
  114. package/dist/collection/tables/TableSlots.js +22 -0
  115. package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
  116. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
  117. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
  118. package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
  119. package/dist/esm/{ShadowViewAddon-7cbc6390.js → ShadowViewAddon-aa087ef2.js} +1 -1
  120. package/dist/esm/{global-5dfb4fa8.js → global-107bb084.js} +279 -70
  121. package/dist/esm/{index.module-07f3fbb0.js → index.module-1f571929.js} +2 -2
  122. package/dist/esm/loader.js +3 -3
  123. package/dist/esm/mint-components.js +3 -3
  124. package/dist/esm/{re-render-0be5746e.js → re-render-76c9129f.js} +1 -1
  125. package/dist/esm/sqm-asset-card.entry.js +1 -1
  126. package/dist/esm/sqm-big-stat.entry.js +2 -2
  127. package/dist/esm/{sqm-divided-layout_26.entry.js → sqm-divided-layout_30.entry.js} +2605 -170
  128. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  129. package/dist/esm/{sqm-leaderboard-rank-view-04161da4.js → sqm-leaderboard-rank-view-c1aefdd5.js} +2 -2
  130. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
  131. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  132. package/dist/esm/sqm-name-fields.entry.js +1 -1
  133. package/dist/esm/{sqm-navigation-sidebar-item-view-78631800.js → sqm-navigation-sidebar-item-view-b3618185.js} +1 -1
  134. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  135. package/dist/esm/sqm-popup-container.entry.js +1 -1
  136. package/dist/esm/{sqm-portal-email-verification-view-d6ffe3b8.js → sqm-portal-email-verification-view-df0559b0.js} +1 -1
  137. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  138. package/dist/esm/{sqm-portal-footer-view-5aa288c9.js → sqm-portal-footer-view-2b2bfc9e.js} +1 -1
  139. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  140. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  141. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  142. package/dist/esm/{sqm-portal-profile-view-636a8688.js → sqm-portal-profile-view-2fbb0845.js} +1 -1
  143. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  144. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  145. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  146. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  147. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  148. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  149. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  150. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  151. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  152. package/dist/esm/sqm-share-code.entry.js +1 -1
  153. package/dist/esm/{useDemoBigStat-531a4d2a.js → useDemoBigStat-49cdfe32.js} +119 -22
  154. package/dist/esm-es5/{ShadowViewAddon-7cbc6390.js → ShadowViewAddon-aa087ef2.js} +1 -1
  155. package/dist/esm-es5/{global-5dfb4fa8.js → global-107bb084.js} +2 -2
  156. package/dist/esm-es5/{index.module-07f3fbb0.js → index.module-1f571929.js} +1 -1
  157. package/dist/esm-es5/loader.js +1 -1
  158. package/dist/esm-es5/mint-components.js +1 -1
  159. package/dist/esm-es5/{re-render-0be5746e.js → re-render-76c9129f.js} +1 -1
  160. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  161. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  162. package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -0
  163. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  164. package/dist/esm-es5/{sqm-leaderboard-rank-view-04161da4.js → sqm-leaderboard-rank-view-c1aefdd5.js} +1 -1
  165. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  166. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  167. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  168. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-78631800.js → sqm-navigation-sidebar-item-view-b3618185.js} +1 -1
  169. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  170. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  171. package/dist/esm-es5/{sqm-portal-email-verification-view-d6ffe3b8.js → sqm-portal-email-verification-view-df0559b0.js} +1 -1
  172. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  173. package/dist/esm-es5/{sqm-portal-footer-view-5aa288c9.js → sqm-portal-footer-view-2b2bfc9e.js} +1 -1
  174. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  175. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  176. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  177. package/dist/esm-es5/{sqm-portal-profile-view-636a8688.js → sqm-portal-profile-view-2fbb0845.js} +1 -1
  178. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  179. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  180. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  181. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  182. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  183. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  184. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  185. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  186. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  187. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  188. package/dist/esm-es5/useDemoBigStat-49cdfe32.js +1 -0
  189. package/dist/mint-components/assets/Reward-icon.png +0 -0
  190. package/dist/mint-components/global/styles.ts +278 -69
  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-cb8a3610.system.entry.js → p-03b7444e.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-b745adaa.system.js → p-0470556b.system.js} +1 -1
  195. package/dist/mint-components/{p-6bbb9d5a.system.entry.js → p-0ca63e9e.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-4ca49eb2.system.entry.js → p-0ddd6063.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-a12e34b0.entry.js → p-0f19ab40.entry.js} +1 -1
  198. package/dist/mint-components/{p-84da6c55.system.entry.js → p-123930ab.system.entry.js} +1 -1
  199. package/dist/mint-components/p-20991bdd.system.entry.js +1 -0
  200. package/dist/mint-components/{p-3f3b81de.system.js → p-22ee65c4.system.js} +1 -1
  201. package/dist/mint-components/{p-f05f6004.system.entry.js → p-2b9a01ce.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-705141c1.entry.js → p-3b9492a8.entry.js} +1 -1
  203. package/dist/mint-components/{p-11fe72bd.entry.js → p-3bbc61af.entry.js} +1 -1
  204. package/dist/mint-components/{p-99f85aae.js → p-3fd9db63.js} +1 -1
  205. package/dist/mint-components/p-458070cf.js +1 -0
  206. package/dist/mint-components/{p-1c69eba7.js → p-4ae9f594.js} +1 -1
  207. package/dist/mint-components/{p-7e6a38d0.system.entry.js → p-57568b23.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-453df041.entry.js → p-57aa7493.entry.js} +1 -1
  209. package/dist/mint-components/p-5986de11.entry.js +1 -0
  210. package/dist/mint-components/p-59fa991d.entry.js +335 -0
  211. package/dist/mint-components/{p-cac1ffd0.entry.js → p-5a1a2b2c.entry.js} +1 -1
  212. package/dist/mint-components/{p-552a99b9.system.js → p-5e681b4b.system.js} +1 -1
  213. package/dist/mint-components/p-62b134cb.system.entry.js +1 -0
  214. package/dist/mint-components/{p-9fb97b00.system.entry.js → p-64299f78.system.entry.js} +1 -1
  215. package/dist/mint-components/p-6466d643.entry.js +1 -0
  216. package/dist/mint-components/{p-91c46672.js → p-70008004.js} +1 -1
  217. package/dist/mint-components/{p-a1029019.system.entry.js → p-70a6f9d9.system.entry.js} +1 -1
  218. package/dist/mint-components/p-719c2664.system.js +1 -0
  219. package/dist/mint-components/p-75924795.system.entry.js +1 -0
  220. package/dist/mint-components/{p-55580223.system.js → p-8155cd07.system.js} +1 -1
  221. package/dist/mint-components/{p-f5333477.system.entry.js → p-86a55c58.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-087571f1.entry.js → p-874e7da3.entry.js} +1 -1
  223. package/dist/mint-components/{p-d9123a4a.system.entry.js → p-8ac0ec83.system.entry.js} +1 -1
  224. package/dist/mint-components/{p-d32ebb2d.system.js → p-91b0d151.system.js} +1 -1
  225. package/dist/mint-components/{p-45befbb8.system.entry.js → p-9ca6142b.system.entry.js} +1 -1
  226. package/dist/mint-components/{p-e3d75555.entry.js → p-a26457cd.entry.js} +1 -1
  227. package/dist/mint-components/{p-ccddec52.js → p-a37fc3cb.js} +1 -1
  228. package/dist/mint-components/p-a48fc54e.system.js +1 -0
  229. package/dist/mint-components/{p-6accffd6.js → p-ab378185.js} +1 -1
  230. package/dist/mint-components/p-ac92b5ea.js +235 -0
  231. package/dist/mint-components/{p-6a9b7f7c.entry.js → p-b0c6f82b.entry.js} +1 -1
  232. package/dist/mint-components/{p-df3a9a38.entry.js → p-b0e9c89c.entry.js} +1 -1
  233. package/dist/mint-components/{p-d98a6a1c.entry.js → p-b3bac2c6.entry.js} +1 -1
  234. package/dist/mint-components/{p-40f1482a.system.entry.js → p-bcb30771.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-6a95537b.system.js → p-bdfdb088.system.js} +1 -1
  236. package/dist/mint-components/{p-7f7f60ea.entry.js → p-beb02af2.entry.js} +1 -1
  237. package/dist/mint-components/{p-77cf28f1.system.js → p-beeeda0c.system.js} +2 -2
  238. package/dist/mint-components/p-bf10c781.system.js +1 -0
  239. package/dist/mint-components/{p-ab551be3.system.entry.js → p-c0e8aaa7.system.entry.js} +1 -1
  240. package/dist/mint-components/{p-24cc7ee3.system.entry.js → p-c35b54e4.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-2818f3a0.entry.js → p-c61c61e7.entry.js} +1 -1
  242. package/dist/mint-components/{p-94c25cfe.entry.js → p-c974b7d4.entry.js} +1 -1
  243. package/dist/mint-components/{p-aeb995ca.entry.js → p-cbf1db2b.entry.js} +1 -1
  244. package/dist/mint-components/{p-0d3f2c66.entry.js → p-d1e28563.entry.js} +1 -1
  245. package/dist/mint-components/{p-b95eaf63.entry.js → p-d37f227e.entry.js} +1 -1
  246. package/dist/mint-components/{p-730785e9.system.js → p-d44e98b8.system.js} +1 -1
  247. package/dist/mint-components/{p-80a40e90.js → p-d73d26ec.js} +2 -2
  248. package/dist/mint-components/{p-ab9ef09d.entry.js → p-dacbf435.entry.js} +1 -1
  249. package/dist/mint-components/{p-1af6d49d.system.entry.js → p-dbc04567.system.entry.js} +1 -1
  250. package/dist/mint-components/{p-4018d7eb.entry.js → p-de0efef2.entry.js} +1 -1
  251. package/dist/mint-components/{p-72420d6b.system.entry.js → p-e01213a2.system.entry.js} +1 -1
  252. package/dist/mint-components/p-e2a855b8.system.entry.js +1 -0
  253. package/dist/mint-components/{p-0996811b.entry.js → p-f0ad9b15.entry.js} +1 -1
  254. package/dist/mint-components/{p-23f0e229.system.entry.js → p-f0cbf76e.system.entry.js} +1 -1
  255. package/dist/mint-components/{p-48b04ef0.entry.js → p-f2db1c3b.entry.js} +1 -1
  256. package/dist/mint-components/{p-e1549548.system.entry.js → p-f538a675.system.entry.js} +1 -1
  257. package/dist/mint-components/{p-8edba448.js → p-f7e2418a.js} +1 -1
  258. package/dist/mint-components/{p-f7118fd5.js → p-f8abbd79.js} +1 -1
  259. package/dist/mint-components/{p-92671ed2.system.entry.js → p-fc90a3fe.system.entry.js} +1 -1
  260. package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
  261. package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
  262. package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
  263. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  264. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
  265. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  266. package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
  267. package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
  268. package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
  269. package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
  270. package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
  271. package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
  272. package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
  273. package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
  274. package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
  275. package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
  276. package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
  277. package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
  278. package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
  279. package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
  280. package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
  281. package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
  282. package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
  283. package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
  284. package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
  285. package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
  286. package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
  287. package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
  288. package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
  289. package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
  290. package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
  291. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
  292. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
  293. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
  294. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
  295. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +3 -0
  296. package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
  297. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
  298. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +25 -0
  299. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +20 -0
  300. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +43 -0
  301. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  302. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  303. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
  304. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +38 -0
  305. package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
  306. package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
  307. package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
  308. package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
  309. package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
  310. package/dist/types/components/sqm-task-card/Matrix.d.ts +11 -0
  311. package/dist/types/components/sqm-task-card/SVGs.d.ts +2 -0
  312. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +11 -0
  313. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  314. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  315. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +10 -0
  316. package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +12 -0
  317. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +16 -0
  318. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +73 -0
  319. package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
  320. package/dist/types/components.d.ts +269 -10
  321. package/dist/types/global/styles.d.ts +1 -1
  322. package/dist/types/tables/GenericTableView.d.ts +29 -0
  323. package/dist/types/tables/TableSlots.d.ts +8 -0
  324. package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
  325. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
  326. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
  327. package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
  328. package/grapesjs/grapesjs.js +1 -1
  329. package/package.json +2 -2
  330. package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
  331. package/dist/esm-es5/useDemoBigStat-531a4d2a.js +0 -1
  332. package/dist/mint-components/p-0ed2de6a.js +0 -1
  333. package/dist/mint-components/p-253d07a3.system.entry.js +0 -1
  334. package/dist/mint-components/p-3ace9bab.entry.js +0 -230
  335. package/dist/mint-components/p-3e5c8dc2.entry.js +0 -1
  336. package/dist/mint-components/p-3fc2b5d4.system.js +0 -1
  337. package/dist/mint-components/p-420e50a8.entry.js +0 -1
  338. package/dist/mint-components/p-44a83e6e.system.js +0 -1
  339. package/dist/mint-components/p-4a9dcc1f.system.js +0 -1
  340. package/dist/mint-components/p-52be0df6.js +0 -227
  341. package/dist/mint-components/p-54d90d9f.system.entry.js +0 -1
  342. package/dist/mint-components/p-a60e8e00.system.entry.js +0 -1
  343. package/dist/mint-components/p-c6f2d1f4.system.entry.js +0 -1
  344. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { AssetCardView } from "../components/sqm-asset-card/sqm-asset-card-view";
2
+ import { AssetCardView } from "./sqm-asset-card-view";
3
3
  export default {
4
- title: "Asset Card",
4
+ title: "Components/Asset Card",
5
5
  };
6
6
  export const Default = () => {
7
7
  const props = {
@@ -1,14 +1,15 @@
1
1
  import { h } from "@stencil/core";
2
- import { BigStatView } from "../components/sqm-big-stat/sqm-big-stat-view";
2
+ import { BigStatView } from "./sqm-big-stat-view";
3
3
  export default {
4
- title: "Big Stat",
4
+ title: "Components/Big Stat",
5
5
  };
6
6
  export const Default = () => {
7
- const props = { statvalue: "9.900,00" };
7
+ const props = { value: 990000, statvalue: "9.900,00" };
8
8
  return h(BigStatView, Object.assign({}, props), "Big stat");
9
9
  };
10
10
  export const LeftAlign = () => {
11
11
  const props = {
12
+ value: 500,
12
13
  statvalue: "500",
13
14
  alignment: "left",
14
15
  };
@@ -16,6 +17,7 @@ export const LeftAlign = () => {
16
17
  };
17
18
  export const RightAlign = () => {
18
19
  const props = {
20
+ value: 500,
19
21
  statvalue: "500",
20
22
  alignment: "right",
21
23
  };
@@ -23,6 +25,7 @@ export const RightAlign = () => {
23
25
  };
24
26
  export const FlexReverse = () => {
25
27
  const props = {
28
+ value: 500,
26
29
  statvalue: "500",
27
30
  flexReverse: true,
28
31
  };
@@ -30,6 +33,7 @@ export const FlexReverse = () => {
30
33
  };
31
34
  export const FlexReverseRight = () => {
32
35
  const props = {
36
+ value: 500,
33
37
  statvalue: "500",
34
38
  flexReverse: true,
35
39
  alignment: "right",
@@ -38,6 +42,7 @@ export const FlexReverseRight = () => {
38
42
  };
39
43
  export const FlexReverseLeft = () => {
40
44
  const props = {
45
+ value: 500,
41
46
  statvalue: "500",
42
47
  flexReverse: true,
43
48
  alignment: "left",
@@ -46,12 +51,14 @@ export const FlexReverseLeft = () => {
46
51
  };
47
52
  export const NoStatValue = () => {
48
53
  const props = {
54
+ value: 0,
49
55
  statvalue: "...",
50
56
  };
51
57
  return h(BigStatView, Object.assign({}, props), "Big stat");
52
58
  };
53
59
  export const InvalidStatValue = () => {
54
60
  const props = {
61
+ value: 0,
55
62
  statvalue: "!!!",
56
63
  };
57
64
  return h(BigStatView, Object.assign({}, props), "Big stat");
@@ -1,9 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
- import { BigStatView } from "../components/sqm-big-stat/sqm-big-stat-view";
3
- import { useDemoBigStat } from "../components/sqm-big-stat/useDemoBigStat";
4
- import { useBigStat } from "../components/sqm-big-stat/useBigStat";
2
+ import { BigStatView } from "./sqm-big-stat-view";
3
+ import { useDemoBigStat } from "./useDemoBigStat";
4
+ import { useBigStat } from "./useBigStat";
5
5
  import { useState } from "@saasquatch/stencil-hooks";
6
- import { createHookStory } from "../components/sqm-stencilbook/HookStoryAddon";
6
+ import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
7
7
  import { useEffect } from "@saasquatch/universal-hooks";
8
8
  import { setUserIdentity } from "@saasquatch/component-boilerplate";
9
9
  export default {
@@ -103,3 +103,6 @@ export const ProgramGoals = createHookStory(() => {
103
103
  const dummy = encodeURIComponent("Paid-Member-Goal/referrals");
104
104
  return View(`/programGoals/count/${dummy}`, "/(programGoals)/:metricType/:goalId");
105
105
  });
106
+ export const CustomField = createHookStory(() => {
107
+ return View(`/customFields/thingCount`, "/(customFields)/:customField");
108
+ });
@@ -100,32 +100,12 @@ export class BigStat {
100
100
  "attribute": "alignment",
101
101
  "reflect": false
102
102
  },
103
- "programId": {
104
- "type": "string",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "string",
108
- "resolved": "string",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": true,
113
- "docs": {
114
- "tags": [{
115
- "text": "Program ID",
116
- "name": "uiName"
117
- }],
118
- "text": "The ID of the program that is used to scope stats. Defaults to the program ID in context where this widget is loaded."
119
- },
120
- "attribute": "program-id",
121
- "reflect": false
122
- },
123
103
  "demoData": {
124
104
  "type": "unknown",
125
105
  "mutable": false,
126
106
  "complexType": {
127
107
  "original": "DemoData<BigStatViewProps>",
128
- "resolved": "{ statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
108
+ "resolved": "{ value?: number; statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
129
109
  "references": {
130
110
  "DemoData": {
131
111
  "location": "import",
@@ -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,13 +562,15 @@ export const StatPaths = [
473
562
  ];
474
563
  export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
475
564
  export function useBigStat(props) {
476
- const { statType, flexReverse, alignment, programId = useProgramId(), } = props;
565
+ var _a;
566
+ const { statType, flexReverse, alignment } = props;
567
+ const programId = useProgramId();
477
568
  const locale = useLocale();
478
569
  const userIdent = useUserIdentity();
479
570
  const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
480
571
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
481
572
  return {
482
- props: { statvalue: "!!!", flexReverse, alignment },
573
+ props: { value: 0, statvalue: "!!!", flexReverse, alignment },
483
574
  label: "BAD PROP TYPE",
484
575
  };
485
576
  }
@@ -502,7 +593,12 @@ export function useBigStat(props) {
502
593
  const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
503
594
  debug("stat:", stat);
504
595
  return {
505
- 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
+ },
506
602
  label,
507
603
  };
508
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
  },
@@ -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
  },
@@ -1,6 +1,6 @@
1
1
  import { navigation, useCurrentPage } from "@saasquatch/component-boilerplate";
2
2
  import { h } from "@stencil/core";
3
- import { PortalFrameView } from "../components/sqm-portal-frame/sqm-portal-frame-view";
3
+ import { PortalFrameView } from "./sqm-portal-frame-view";
4
4
  function setupGraphQL() {
5
5
  const id = "worried-camera@uexwltgh.mailosaur.net";
6
6
  const accountId = id;
@@ -32,7 +32,7 @@ function setupLoggedOut() {
32
32
  };
33
33
  }
34
34
  export default {
35
- title: "Portal Frame",
35
+ title: "Components/Portal Frame",
36
36
  };
37
37
  const defaultProps = {
38
38
  data: {
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalLoginView, } from "../components/sqm-portal-login/sqm-portal-login-view";
2
+ import { PortalLoginView, } from "./sqm-portal-login-view";
3
3
  export default {
4
- title: "Portal Login",
4
+ title: "Components/Portal Login",
5
5
  };
6
6
  const defaultProps = {
7
7
  states: {
@@ -1,9 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
2
  import jss from "jss";
3
3
  import preset from "jss-preset-default";
4
- import { PortalProfileView, } from "../components/sqm-portal-profile/sqm-portal-profile-view";
4
+ import { PortalProfileView, } from "./sqm-portal-profile-view";
5
5
  export default {
6
- title: "Portal Profile",
6
+ title: "Components/Portal Profile",
7
7
  };
8
8
  // const style = {};
9
9
  jss.setup(preset());
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { PortalRegisterView, } from "../components/sqm-portal-register/sqm-portal-register-view";
2
+ import { PortalRegisterView, } from "./sqm-portal-register-view";
3
3
  export default {
4
- title: "Portal Register",
4
+ title: "Components/Portal Register",
5
5
  };
6
6
  const defaultProps = {
7
7
  states: {