@saasquatch/mint-components 2.1.11-0 → 2.1.11-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 (459) hide show
  1. package/dist/cjs/{ShadowViewAddon-2b3f51be.js → ShadowViewAddon-c97e80de.js} +428 -25
  2. package/dist/cjs/{data-6b5095f8.js → data-8c8a08f6.js} +91 -2
  3. package/dist/cjs/extractProps-e9c55ba8.js +35 -0
  4. package/dist/cjs/{global-0f8b1267.js → global-b7b1b8fe.js} +3126 -3177
  5. package/dist/cjs/{index.module-42d413d9.js → index.module-f8c8495f.js} +149 -154
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/mint-components.cjs.js +3 -3
  8. package/dist/cjs/{re-render-69bde9ee.js → re-render-72a0ef45.js} +1 -1
  9. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +99 -484
  10. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +291 -427
  11. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-code-verification.cjs.entry.js +8 -7
  13. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  19. package/dist/cjs/{sqm-lead-checkbox-field-view-d90f8941.js → sqm-lead-checkbox-field-view-0af2a157.js} +1 -1
  20. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
  21. package/dist/cjs/{sqm-lead-input-field-view-818d9e9a.js → sqm-lead-input-field-view-0cd7ebdb.js} +1 -1
  22. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-20693e59.js → sqm-navigation-sidebar-item-view-49b152dd.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  31. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  32. package/dist/cjs/{sqm-portal-email-verification-view-60f8e0a7.js → sqm-portal-email-verification-view-abb773a7.js} +2 -2
  33. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  34. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +8 -8
  35. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  36. package/dist/cjs/{sqm-portal-profile-view-2bfd7afd.js → sqm-portal-profile-view-3515e1e5.js} +2 -2
  37. package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
  38. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  39. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  40. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  41. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  42. package/dist/cjs/{sqm-portal-verify-email-view-b31638f8.js → sqm-portal-verify-email-view-717d0633.js} +2 -2
  43. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
  44. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
  45. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  46. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  47. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  48. package/dist/cjs/sqm-stencilbook.cjs.entry.js +219 -291
  49. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  50. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  51. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  52. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  53. package/dist/cjs/{sqm-user-info-form-view-01bf2f41.js → sqm-user-info-form-view-53306f6e.js} +40 -33
  54. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  55. package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
  56. package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
  57. package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
  58. package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
  59. package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
  60. package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
  61. package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
  62. package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
  63. package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
  64. package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
  65. package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
  66. package/dist/collection/collection-manifest.json +0 -1
  67. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  68. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  69. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  70. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  71. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  72. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  73. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  74. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +1 -13
  75. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  76. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +1 -12
  77. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  78. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  79. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  80. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  81. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  82. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  83. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
  84. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  85. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
  86. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
  87. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -510
  88. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
  89. package/dist/collection/components/tax-and-cash/data.js +0 -1
  90. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  91. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  92. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  93. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  94. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -49
  95. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  96. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  97. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
  98. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  99. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +17 -9
  100. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -34
  101. package/dist/esm/{ShadowViewAddon-78b791d2.js → ShadowViewAddon-33f1a8f7.js} +429 -27
  102. package/dist/esm/{data-33c16dff.js → data-12e6aae1.js} +85 -3
  103. package/dist/esm/extractProps-54064fb0.js +32 -0
  104. package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
  105. package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
  106. package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/mint-components.js +3 -3
  109. package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  110. package/dist/esm/sqm-banking-info-form_10.entry.js +89 -474
  111. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +286 -421
  112. package/dist/esm/sqm-close-button.entry.js +1 -1
  113. package/dist/esm/sqm-code-verification.entry.js +9 -8
  114. package/dist/esm/sqm-context-router.entry.js +1 -1
  115. package/dist/esm/sqm-email-verification.entry.js +414 -0
  116. package/dist/esm/sqm-empty_4.entry.js +3 -3
  117. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  118. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  119. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  120. package/dist/esm/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  121. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  122. package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  123. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  124. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  125. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  126. package/dist/esm/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  127. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  128. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  129. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  130. package/dist/esm/sqm-password-field.entry.js +2 -2
  131. package/dist/esm/sqm-popup-container.entry.js +1 -1
  132. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  133. package/dist/esm/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +2 -2
  134. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  135. package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
  136. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  137. package/dist/esm/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
  138. package/dist/esm/sqm-portal-profile.entry.js +5 -5
  139. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  140. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  141. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  142. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  143. package/dist/esm/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
  144. package/dist/esm/sqm-qr-code.entry.js +2 -2
  145. package/dist/esm/sqm-referral-table_11.entry.js +6 -6
  146. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  147. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  148. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  149. package/dist/esm/sqm-stencilbook.entry.js +185 -257
  150. package/dist/esm/sqm-tab.entry.js +2 -2
  151. package/dist/esm/sqm-tabs.entry.js +3 -3
  152. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  153. package/dist/esm/sqm-text-span.entry.js +1 -1
  154. package/dist/esm/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-19d81a2b.js} +19 -12
  155. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  156. package/dist/esm/sqm-widget-verification.entry.js +210 -0
  157. package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  158. package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
  159. package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
  160. package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
  161. package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
  162. package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  163. package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
  164. package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  165. package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  166. package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  167. package/dist/esm-es5/ShadowViewAddon-33f1a8f7.js +1 -0
  168. package/dist/esm-es5/data-12e6aae1.js +1 -0
  169. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  170. package/dist/esm-es5/global-96c14d63.js +271 -0
  171. package/dist/esm-es5/index.module-b23fdad8.js +1 -0
  172. package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  173. package/dist/esm-es5/loader.js +1 -1
  174. package/dist/esm-es5/mint-components.js +1 -1
  175. package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  176. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  177. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
  178. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  179. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  180. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  181. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  182. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  183. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  184. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  185. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  187. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  189. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  190. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  191. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  192. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  193. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  194. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  195. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  196. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  197. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  198. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  199. package/dist/esm-es5/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  200. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  201. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  202. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  204. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  205. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  206. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  207. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  208. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  210. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  211. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  212. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  213. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  214. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  215. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  216. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  217. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  219. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  220. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
  221. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  222. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  223. package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  224. package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
  225. package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
  226. package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
  227. package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
  228. package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  229. package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
  230. package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  231. package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  232. package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  233. package/dist/mint-components/mint-components.esm.js +1 -1
  234. package/dist/mint-components/mint-components.js +1 -1
  235. package/dist/mint-components/{p-d01949f7.system.entry.js → p-00b235c5.system.entry.js} +1 -1
  236. package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
  237. package/dist/mint-components/p-02499e08.entry.js +1 -0
  238. package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
  240. package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
  241. package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
  242. package/dist/mint-components/p-0797a946.js +1 -0
  243. package/dist/mint-components/p-08930b83.js +499 -0
  244. package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
  245. package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
  246. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  247. package/dist/mint-components/{p-8ecc8875.js → p-0c0d4065.js} +5 -6
  248. package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
  249. package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
  250. package/dist/mint-components/{p-2d3a12f2.entry.js → p-13292317.entry.js} +2 -2
  251. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  252. package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
  253. package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
  254. package/dist/mint-components/{p-1d49dddc.entry.js → p-1d92c169.entry.js} +1 -1
  255. package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
  256. package/dist/mint-components/{p-4723526d.js → p-2668335b.js} +1 -1
  257. package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
  259. package/dist/mint-components/p-30c1ef36.system.js +1 -0
  260. package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
  261. package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
  262. package/dist/mint-components/p-38c7775a.js +1 -0
  263. package/dist/mint-components/p-3adbfd0b.system.js +6 -0
  264. package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
  265. package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
  266. package/dist/mint-components/{p-9d6984e7.entry.js → p-40bad95a.entry.js} +2 -2
  267. package/dist/mint-components/{p-00463c83.system.js → p-43c31fd5.system.js} +1 -1
  268. package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
  269. package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
  270. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  271. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  272. package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
  273. package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
  274. package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
  275. package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
  276. package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
  277. package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
  278. package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
  279. package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
  280. package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
  281. package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
  282. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  283. package/dist/mint-components/p-6c4ad51a.js +1 -0
  284. package/dist/mint-components/p-7265bbcb.system.js +271 -0
  285. package/dist/mint-components/p-738dce27.system.entry.js +1 -0
  286. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  287. package/dist/mint-components/p-76271ec4.entry.js +9 -0
  288. package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
  289. package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
  290. package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
  291. package/dist/mint-components/p-78b40f71.system.js +1 -0
  292. package/dist/mint-components/{p-55627a5c.entry.js → p-7939e4af.entry.js} +1 -1
  293. package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
  294. package/dist/mint-components/p-7efb8782.system.js +1 -0
  295. package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
  296. package/dist/mint-components/{p-370e0d75.js → p-832aea99.js} +1 -1
  297. package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
  298. package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
  299. package/dist/mint-components/p-8784539d.entry.js +273 -0
  300. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  301. package/dist/mint-components/p-892797eb.system.entry.js +1 -0
  302. package/dist/mint-components/{p-567a5ded.js → p-8962e023.js} +1 -1
  303. package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
  304. package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
  305. package/dist/mint-components/p-91a96e98.entry.js +1 -0
  306. package/dist/mint-components/{p-7a08d288.system.entry.js → p-9390586b.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
  308. package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
  309. package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
  310. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  311. package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
  312. package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
  313. package/dist/mint-components/{p-886fb141.entry.js → p-af407cce.entry.js} +1 -1
  314. package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
  315. package/dist/mint-components/p-b395470f.entry.js +16 -0
  316. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  317. package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
  318. package/dist/mint-components/{p-691d34f1.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
  320. package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
  321. package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
  322. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  323. package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
  324. package/dist/mint-components/p-c3c8d4ee.system.entry.js +1 -0
  325. package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
  326. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  327. package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
  328. package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
  329. package/dist/mint-components/p-ca098be1.system.js +1 -0
  330. package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
  331. package/dist/mint-components/p-d0993bb9.js +1 -0
  332. package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
  333. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  334. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  335. package/dist/mint-components/{p-6b1a6b0c.system.js → p-d55c50af.system.js} +1 -1
  336. package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
  337. package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
  338. package/dist/mint-components/p-dd12c32a.system.entry.js +1 -0
  339. package/dist/mint-components/p-de0d6fd7.js +49 -0
  340. package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
  341. package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
  342. package/dist/mint-components/p-e30abc44.js +1 -0
  343. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  344. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  345. package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
  346. package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
  347. package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
  348. package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-e9485160.system.entry.js} +1 -1
  349. package/dist/mint-components/p-ea03e50e.system.js +1 -0
  350. package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
  351. package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
  352. package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
  353. package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
  354. package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
  355. package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
  356. package/dist/mint-components/{p-19293c16.entry.js → p-f6528f8a.entry.js} +1 -1
  357. package/dist/mint-components/{p-247cfbdc.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
  358. package/dist/mint-components/{p-0fec43e8.system.js → p-f8026ed6.system.js} +1 -1
  359. package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
  360. package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
  361. package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
  362. package/dist/mint-components/p-fe70e20c.entry.js +1 -0
  363. package/dist/mint-components/p-ff118a19.system.js +1 -0
  364. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  365. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  366. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -2
  367. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +1 -2
  368. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  369. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  370. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  371. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  372. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  373. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -78
  374. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
  375. package/dist/types/components/tax-and-cash/data.d.ts +0 -1
  376. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  377. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  378. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  379. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
  380. package/dist/types/components.d.ts +359 -616
  381. package/dist/types/saasquatch.d.ts +0 -1
  382. package/docs/docs.docx +0 -0
  383. package/docs/raisins.json +1 -1
  384. package/docs/stats.json +122783 -0
  385. package/grapesjs/grapesjs.js +1 -1
  386. package/package.json +2 -2
  387. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  388. package/dist/cjs/parseStates-d1effc19.js +0 -16
  389. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -892
  390. package/dist/cjs/sqm-partner-info-modal-view-464c52c9.js +0 -135
  391. package/dist/cjs/utils-a8e0bd9b.js +0 -93
  392. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -150
  393. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -129
  394. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -670
  395. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -284
  396. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
  397. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  398. package/dist/esm/parseStates-ed75e224.js +0 -14
  399. package/dist/esm/sqm-email-verification_2.entry.js +0 -887
  400. package/dist/esm/sqm-partner-info-modal-view-a6324934.js +0 -132
  401. package/dist/esm/utils-8267d3d8.js +0 -85
  402. package/dist/esm-es5/ShadowViewAddon-78b791d2.js +0 -1
  403. package/dist/esm-es5/data-33c16dff.js +0 -1
  404. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  405. package/dist/esm-es5/global-39f55ec2.js +0 -285
  406. package/dist/esm-es5/index.module-cede12c6.js +0 -1
  407. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  408. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  409. package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
  410. package/dist/esm-es5/sqm-partner-info-modal-view-a6324934.js +0 -1
  411. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  412. package/dist/esm-es5/sqm-user-info-form-view-365cef98.js +0 -1
  413. package/dist/esm-es5/utils-8267d3d8.js +0 -1
  414. package/dist/mint-components/p-037c1a4f.system.entry.js +0 -1
  415. package/dist/mint-components/p-038d0b8f.entry.js +0 -133
  416. package/dist/mint-components/p-0553e659.js +0 -463
  417. package/dist/mint-components/p-115dfc03.system.js +0 -1
  418. package/dist/mint-components/p-13f3a647.js +0 -1
  419. package/dist/mint-components/p-1c413a06.system.js +0 -1
  420. package/dist/mint-components/p-1e35f151.system.js +0 -1
  421. package/dist/mint-components/p-28ed2ae9.js +0 -1
  422. package/dist/mint-components/p-28fe7357.system.entry.js +0 -1
  423. package/dist/mint-components/p-38dc2f60.entry.js +0 -1
  424. package/dist/mint-components/p-39840341.js +0 -1
  425. package/dist/mint-components/p-52eca331.js +0 -1
  426. package/dist/mint-components/p-5e26014d.system.js +0 -1
  427. package/dist/mint-components/p-63c299f1.system.js +0 -1
  428. package/dist/mint-components/p-64041ee1.entry.js +0 -291
  429. package/dist/mint-components/p-647933ac.entry.js +0 -122
  430. package/dist/mint-components/p-64f56cc9.system.js +0 -285
  431. package/dist/mint-components/p-6562cbec.system.entry.js +0 -1
  432. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  433. package/dist/mint-components/p-70e34ae1.system.js +0 -6
  434. package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
  435. package/dist/mint-components/p-8b258a3e.system.js +0 -1
  436. package/dist/mint-components/p-996eb820.entry.js +0 -1
  437. package/dist/mint-components/p-a0986077.system.entry.js +0 -1
  438. package/dist/mint-components/p-a1e1c42a.js +0 -1
  439. package/dist/mint-components/p-a2db4345.system.js +0 -1
  440. package/dist/mint-components/p-a8891ebd.js +0 -1
  441. package/dist/mint-components/p-a8ecdc44.system.js +0 -1
  442. package/dist/mint-components/p-aa319fbe.entry.js +0 -9
  443. package/dist/mint-components/p-b2a99637.system.js +0 -1
  444. package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
  445. package/dist/mint-components/p-b451970a.system.entry.js +0 -1
  446. package/dist/mint-components/p-b699f76e.system.js +0 -1
  447. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  448. package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
  449. package/dist/mint-components/p-d20188db.js +0 -1
  450. package/dist/mint-components/p-d6714617.entry.js +0 -1
  451. package/dist/mint-components/p-e95402dc.js +0 -49
  452. package/dist/mint-components/p-ee0f1cf1.system.js +0 -1
  453. package/dist/mint-components/p-f9671d6a.system.entry.js +0 -1
  454. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -12
  455. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -51
  456. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
  457. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
  458. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
  459. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -3,7 +3,7 @@ import { useState, withHooks } from "@saasquatch/stencil-hooks";
3
3
  import { Component, Prop, h } from "@stencil/core";
4
4
  import deepmerge from "deepmerge";
5
5
  import { getProps } from "../../utils/utils";
6
- import { CopyTextView } from "../views/copy-text-view";
6
+ import { ShareLinkView } from "./sqm-share-link-view";
7
7
  import { useShareLink } from "./useShareLink";
8
8
  /**
9
9
  * @uiName Share Link
@@ -58,6 +58,199 @@ export class ShareLink {
58
58
  * @uiGroup Style
59
59
  */
60
60
  this.buttonStyle = "icon";
61
+ /**
62
+ * Let advocates customize their share links up to 5 times.
63
+ *
64
+ * @uiName Allow customization
65
+ * @uiType boolean
66
+ * @uiGroup Customizable Vanity Link
67
+ * @uiWidget CustomLinkSwitch
68
+ * @requiredFlavor impact
69
+ */
70
+ this.allowCustomization = false;
71
+ /**
72
+ * Text for the cancel button in editing mode
73
+ *
74
+ * @uiName Cancel button label
75
+ * @uiType string
76
+ * @uiGroup Customizable Vanity Link
77
+ * @requiredFlavor impact
78
+ */
79
+ this.cancelLabelText = "Cancel";
80
+ /**
81
+ * Tooltip text shown when link customization is disabled
82
+ *
83
+ * @uiName Customize disabled tooltip
84
+ * @uiType string
85
+ * @uiGroup Customizable Vanity Link
86
+ * @requiredFlavor impact
87
+ */
88
+ this.customizeDisabledTooltip = "Link customization is not available.";
89
+ /**
90
+ * Displayed below the share link.
91
+ *
92
+ * @uiName Customize link button label
93
+ * @uiType string
94
+ * @uiGroup Customizable Vanity Link
95
+ * @requiredFlavor impact
96
+ */
97
+ this.customizeLinkButtonLabel = "Customize Link";
98
+ /**
99
+ * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
100
+ *
101
+ * @uiName Edit limit reached text
102
+ * @uiType string
103
+ * @uiWidget textarea
104
+ * @uiGroup Customizable Vanity Link
105
+ * @requiredFlavor impact
106
+ */
107
+ this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
108
+ /**
109
+ * Subtext shown while the user is customizing their URL.
110
+ *
111
+ * @uiName Edit limit text
112
+ * @uiType string
113
+ * @uiGroup Customizable Vanity Link
114
+ * @requiredFlavor impact
115
+ */
116
+ this.editLimitText = "You can edit your link up to {editsRemaining} more time(s).";
117
+ /**
118
+ * Description text shown when the link contains invalid special characters.
119
+ *
120
+ * @uiName Invalid characters error description
121
+ * @uiType string
122
+ * @uiWidget textarea
123
+ * @uiGroup Customizable Vanity Link
124
+ * @requiredFlavor impact
125
+ */
126
+ this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
127
+ /**
128
+ * Title of the error message shown when the link contains invalid special characters.
129
+ *
130
+ * @uiName Invalid characters error title
131
+ * @uiType string
132
+ * @uiGroup Customizable Vanity Link
133
+ * @requiredFlavor impact
134
+ */
135
+ this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
136
+ /**
137
+ * Description text shown when the link has already been taken
138
+ *
139
+ * @uiName Link taken error message
140
+ * @uiType string
141
+ * @uiWidget textarea
142
+ * @uiGroup Customizable Vanity Link
143
+ * @requiredFlavor impact
144
+ */
145
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
146
+ /**
147
+ * Title of the error message shown when the link has already been taken
148
+ *
149
+ * @uiName Link taken error title
150
+ * @uiType string
151
+ * @uiGroup Customizable Vanity Link
152
+ * @requiredFlavor impact
153
+ */
154
+ this.linkTakenErrorTitle = "This link is already taken";
155
+ /**
156
+ * Description text shown when the link contains profanity or brand names.
157
+ *
158
+ * @uiName Restricted words error description
159
+ * @uiType string
160
+ * @uiWidget textarea
161
+ * @uiGroup Customizable Vanity Link
162
+ * @requiredFlavor impact
163
+ */
164
+ this.restrictedWordsErrorDescription = "This link contains a restricted word.";
165
+ /**
166
+ * Title of the error message shown when the link contains profanity or brand names.
167
+ *
168
+ * @uiName Restricted words error title
169
+ * @uiType string
170
+ * @uiGroup Customizable Vanity Link
171
+ * @requiredFlavor impact
172
+ */
173
+ this.restrictedWordsErrorTitle = "Please try a different link";
174
+ /**
175
+ * Text for the save button in editing mode
176
+ *
177
+ * @uiName Save button label
178
+ * @uiType string
179
+ * @uiGroup Customizable Vanity Link
180
+ * @requiredFlavor impact
181
+ */
182
+ this.saveLabelText = "Save";
183
+ /**
184
+ * Text for the save button while saving is in progress
185
+ *
186
+ * @uiName Saving button label
187
+ * @uiType string
188
+ * @uiGroup Customizable Vanity Link
189
+ * @requiredFlavor impact
190
+ */
191
+ this.savingLabelText = "Saving...";
192
+ /**
193
+ * Label shown above the link input while editing
194
+ *
195
+ * @uiName Edit input label
196
+ * @uiType string
197
+ * @uiGroup Customizable Vanity Link
198
+ * @requiredFlavor impact
199
+ */
200
+ this.editLabelText = "Enter your link";
201
+ /**
202
+ * Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
203
+ *
204
+ * @uiName Characters remaining text
205
+ * @uiType string
206
+ * @uiGroup Customizable Vanity Link
207
+ * @requiredFlavor impact
208
+ */
209
+ this.charactersRemainingText = "Characters remaining: {charactersRemaining}";
210
+ /**
211
+ * Text shown while the link is being validated
212
+ *
213
+ * @uiName Validating label
214
+ * @uiType string
215
+ * @uiGroup Customizable Vanity Link
216
+ * @requiredFlavor impact
217
+ */
218
+ this.validatingLabelText = "Validating...";
219
+ /**
220
+ * @uiName Min characters text
221
+ * @uiType string
222
+ * @uiGroup Customizable Vanity Link
223
+ * @requiredFlavor impact
224
+ */
225
+ this.minCharactersText = "Minimum 3 characters.";
226
+ /**
227
+ * Display text for the support link in the edit limit reached message
228
+ *
229
+ * @uiName Support link text
230
+ * @uiType string
231
+ * @uiGroup Customizable Vanity Link
232
+ * @requiredFlavor impact
233
+ */
234
+ this.supportLinkText = "Support";
235
+ /**
236
+ * Title shown when saving fails with an unknown error
237
+ *
238
+ * @uiName Save error title
239
+ * @uiType string
240
+ * @uiGroup Customizable Vanity Link
241
+ * @requiredFlavor impact
242
+ */
243
+ this.saveErrorTitle = "Error";
244
+ /**
245
+ * Description shown when saving fails with an unknown error
246
+ *
247
+ * @uiName Save error description
248
+ * @uiType string
249
+ * @uiWidget textarea
250
+ * @uiGroup Customizable Vanity Link
251
+ * @requiredFlavor impact
252
+ */
253
+ this.saveErrorDescription = "Failed to save custom link. Please try again.";
61
254
  withHooks(this);
62
255
  }
63
256
  disconnectedCallback() { }
@@ -66,7 +259,7 @@ export class ShareLink {
66
259
  const props = isDemo()
67
260
  ? useDemoShareLink(thisProps)
68
261
  : useShareLink(thisProps);
69
- return h(CopyTextView, Object.assign({}, props));
262
+ return h(ShareLinkView, Object.assign({}, props));
70
263
  }
71
264
  static get is() { return "sqm-share-link"; }
72
265
  static get encapsulation() { return "shadow"; }
@@ -369,60 +562,754 @@ export class ShareLink {
369
562
  "reflect": false,
370
563
  "defaultValue": "\"icon\""
371
564
  },
372
- "demoData": {
373
- "type": "unknown",
565
+ "allowCustomization": {
566
+ "type": "boolean",
374
567
  "mutable": false,
375
568
  "complexType": {
376
- "original": "DemoData<CopyTextViewProps>",
377
- "resolved": "{ loading?: boolean; textColor?: string; buttonType?: \"primary\" | \"secondary\"; copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; textAlign?: \"left\" | \"right\" | \"center\"; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; error?: boolean; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; backgroundColor?: string; borderRadius?: string; borderColor?: string; onClick?: () => void; }",
378
- "references": {
379
- "DemoData": {
380
- "location": "import",
381
- "path": "../../global/demo"
382
- },
383
- "CopyTextViewProps": {
384
- "location": "import",
385
- "path": "../views/copy-text-view"
386
- }
387
- }
569
+ "original": "boolean",
570
+ "resolved": "boolean",
571
+ "references": {}
388
572
  },
389
573
  "required": false,
390
574
  "optional": true,
391
575
  "docs": {
392
576
  "tags": [{
393
- "text": undefined,
394
- "name": "undocumented"
577
+ "text": "Allow customization",
578
+ "name": "uiName"
395
579
  }, {
396
- "text": "object",
580
+ "text": "boolean",
397
581
  "name": "uiType"
582
+ }, {
583
+ "text": "Customizable Vanity Link",
584
+ "name": "uiGroup"
585
+ }, {
586
+ "text": "CustomLinkSwitch",
587
+ "name": "uiWidget"
588
+ }, {
589
+ "text": "impact",
590
+ "name": "requiredFlavor"
398
591
  }],
399
- "text": ""
400
- }
401
- }
402
- }; }
403
- }
404
- function useDemoShareLink(props) {
405
- const [open, setOpen] = useState(false);
406
- const copyString = "https://www.example.com/sharelink/abc";
407
- return deepmerge({
408
- copyString: copyString,
409
- tooltiptext: props.tooltiptext,
410
- textAlign: props.textAlign,
411
- buttonStyle: props.buttonStyle,
412
- backgroundColor: props.backgroundColor,
413
- textColor: props.textColor,
414
- borderRadius: props.borderRadius,
415
- buttonType: props.buttonType,
416
- copyButtonLabel: props.copyButtonLabel,
417
- borderColor: props.borderColor,
418
- rewardStatus: "AVAILABLE",
419
- open,
420
- onClick: () => {
421
- // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
422
- // Only if called from a user-initiated event
423
- navigator.clipboard.writeText(copyString);
424
- setOpen(true);
425
- setTimeout(() => setOpen(false), props.tooltiplifespan);
426
- },
427
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
592
+ "text": "Let advocates customize their share links up to 5 times."
593
+ },
594
+ "attribute": "allow-customization",
595
+ "reflect": false,
596
+ "defaultValue": "false"
597
+ },
598
+ "cancelLabelText": {
599
+ "type": "string",
600
+ "mutable": false,
601
+ "complexType": {
602
+ "original": "string",
603
+ "resolved": "string",
604
+ "references": {}
605
+ },
606
+ "required": false,
607
+ "optional": true,
608
+ "docs": {
609
+ "tags": [{
610
+ "text": "Cancel button label",
611
+ "name": "uiName"
612
+ }, {
613
+ "text": "string",
614
+ "name": "uiType"
615
+ }, {
616
+ "text": "Customizable Vanity Link",
617
+ "name": "uiGroup"
618
+ }, {
619
+ "text": "impact",
620
+ "name": "requiredFlavor"
621
+ }],
622
+ "text": "Text for the cancel button in editing mode"
623
+ },
624
+ "attribute": "cancel-label-text",
625
+ "reflect": false,
626
+ "defaultValue": "\"Cancel\""
627
+ },
628
+ "customizeDisabledTooltip": {
629
+ "type": "string",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "string",
633
+ "resolved": "string",
634
+ "references": {}
635
+ },
636
+ "required": false,
637
+ "optional": true,
638
+ "docs": {
639
+ "tags": [{
640
+ "text": "Customize disabled tooltip",
641
+ "name": "uiName"
642
+ }, {
643
+ "text": "string",
644
+ "name": "uiType"
645
+ }, {
646
+ "text": "Customizable Vanity Link",
647
+ "name": "uiGroup"
648
+ }, {
649
+ "text": "impact",
650
+ "name": "requiredFlavor"
651
+ }],
652
+ "text": "Tooltip text shown when link customization is disabled"
653
+ },
654
+ "attribute": "customize-disabled-tooltip",
655
+ "reflect": false,
656
+ "defaultValue": "\"Link customization is not available.\""
657
+ },
658
+ "customizeLinkButtonLabel": {
659
+ "type": "string",
660
+ "mutable": false,
661
+ "complexType": {
662
+ "original": "string",
663
+ "resolved": "string",
664
+ "references": {}
665
+ },
666
+ "required": false,
667
+ "optional": true,
668
+ "docs": {
669
+ "tags": [{
670
+ "text": "Customize link button label",
671
+ "name": "uiName"
672
+ }, {
673
+ "text": "string",
674
+ "name": "uiType"
675
+ }, {
676
+ "text": "Customizable Vanity Link",
677
+ "name": "uiGroup"
678
+ }, {
679
+ "text": "impact",
680
+ "name": "requiredFlavor"
681
+ }],
682
+ "text": "Displayed below the share link."
683
+ },
684
+ "attribute": "customize-link-button-label",
685
+ "reflect": false,
686
+ "defaultValue": "\"Customize Link\""
687
+ },
688
+ "editLimitReachedText": {
689
+ "type": "string",
690
+ "mutable": false,
691
+ "complexType": {
692
+ "original": "string",
693
+ "resolved": "string",
694
+ "references": {}
695
+ },
696
+ "required": false,
697
+ "optional": true,
698
+ "docs": {
699
+ "tags": [{
700
+ "text": "Edit limit reached text",
701
+ "name": "uiName"
702
+ }, {
703
+ "text": "string",
704
+ "name": "uiType"
705
+ }, {
706
+ "text": "textarea",
707
+ "name": "uiWidget"
708
+ }, {
709
+ "text": "Customizable Vanity Link",
710
+ "name": "uiGroup"
711
+ }, {
712
+ "text": "impact",
713
+ "name": "requiredFlavor"
714
+ }],
715
+ "text": "Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder."
716
+ },
717
+ "attribute": "edit-limit-reached-text",
718
+ "reflect": false,
719
+ "defaultValue": "\"5 edit limit reached. To make more changes, please contact {supportLink}.\""
720
+ },
721
+ "editLimitText": {
722
+ "type": "string",
723
+ "mutable": false,
724
+ "complexType": {
725
+ "original": "string",
726
+ "resolved": "string",
727
+ "references": {}
728
+ },
729
+ "required": false,
730
+ "optional": true,
731
+ "docs": {
732
+ "tags": [{
733
+ "text": "Edit limit text",
734
+ "name": "uiName"
735
+ }, {
736
+ "text": "string",
737
+ "name": "uiType"
738
+ }, {
739
+ "text": "Customizable Vanity Link",
740
+ "name": "uiGroup"
741
+ }, {
742
+ "text": "impact",
743
+ "name": "requiredFlavor"
744
+ }],
745
+ "text": "Subtext shown while the user is customizing their URL."
746
+ },
747
+ "attribute": "edit-limit-text",
748
+ "reflect": false,
749
+ "defaultValue": "\"You can edit your link up to {editsRemaining} more time(s).\""
750
+ },
751
+ "invalidCharactersErrorDescription": {
752
+ "type": "string",
753
+ "mutable": false,
754
+ "complexType": {
755
+ "original": "string",
756
+ "resolved": "string",
757
+ "references": {}
758
+ },
759
+ "required": false,
760
+ "optional": true,
761
+ "docs": {
762
+ "tags": [{
763
+ "text": "Invalid characters error description",
764
+ "name": "uiName"
765
+ }, {
766
+ "text": "string",
767
+ "name": "uiType"
768
+ }, {
769
+ "text": "textarea",
770
+ "name": "uiWidget"
771
+ }, {
772
+ "text": "Customizable Vanity Link",
773
+ "name": "uiGroup"
774
+ }, {
775
+ "text": "impact",
776
+ "name": "requiredFlavor"
777
+ }],
778
+ "text": "Description text shown when the link contains invalid special characters."
779
+ },
780
+ "attribute": "invalid-characters-error-description",
781
+ "reflect": false,
782
+ "defaultValue": "\"Special characters can break the link when sharing.\""
783
+ },
784
+ "invalidCharactersErrorTitle": {
785
+ "type": "string",
786
+ "mutable": false,
787
+ "complexType": {
788
+ "original": "string",
789
+ "resolved": "string",
790
+ "references": {}
791
+ },
792
+ "required": false,
793
+ "optional": true,
794
+ "docs": {
795
+ "tags": [{
796
+ "text": "Invalid characters error title",
797
+ "name": "uiName"
798
+ }, {
799
+ "text": "string",
800
+ "name": "uiType"
801
+ }, {
802
+ "text": "Customizable Vanity Link",
803
+ "name": "uiGroup"
804
+ }, {
805
+ "text": "impact",
806
+ "name": "requiredFlavor"
807
+ }],
808
+ "text": "Title of the error message shown when the link contains invalid special characters."
809
+ },
810
+ "attribute": "invalid-characters-error-title",
811
+ "reflect": false,
812
+ "defaultValue": "\"Please use only letters, numbers, dashes and underscores\""
813
+ },
814
+ "linkTakenErrorDescription": {
815
+ "type": "string",
816
+ "mutable": false,
817
+ "complexType": {
818
+ "original": "string",
819
+ "resolved": "string",
820
+ "references": {}
821
+ },
822
+ "required": false,
823
+ "optional": true,
824
+ "docs": {
825
+ "tags": [{
826
+ "text": "Link taken error message",
827
+ "name": "uiName"
828
+ }, {
829
+ "text": "string",
830
+ "name": "uiType"
831
+ }, {
832
+ "text": "textarea",
833
+ "name": "uiWidget"
834
+ }, {
835
+ "text": "Customizable Vanity Link",
836
+ "name": "uiGroup"
837
+ }, {
838
+ "text": "impact",
839
+ "name": "requiredFlavor"
840
+ }],
841
+ "text": "Description text shown when the link has already been taken"
842
+ },
843
+ "attribute": "link-taken-error-description",
844
+ "reflect": false,
845
+ "defaultValue": "\"Try adding numbers, a dash or underscore to create a unique link.\""
846
+ },
847
+ "linkTakenErrorTitle": {
848
+ "type": "string",
849
+ "mutable": false,
850
+ "complexType": {
851
+ "original": "string",
852
+ "resolved": "string",
853
+ "references": {}
854
+ },
855
+ "required": false,
856
+ "optional": true,
857
+ "docs": {
858
+ "tags": [{
859
+ "text": "Link taken error title",
860
+ "name": "uiName"
861
+ }, {
862
+ "text": "string",
863
+ "name": "uiType"
864
+ }, {
865
+ "text": "Customizable Vanity Link",
866
+ "name": "uiGroup"
867
+ }, {
868
+ "text": "impact",
869
+ "name": "requiredFlavor"
870
+ }],
871
+ "text": "Title of the error message shown when the link has already been taken"
872
+ },
873
+ "attribute": "link-taken-error-title",
874
+ "reflect": false,
875
+ "defaultValue": "\"This link is already taken\""
876
+ },
877
+ "restrictedWordsErrorDescription": {
878
+ "type": "string",
879
+ "mutable": false,
880
+ "complexType": {
881
+ "original": "string",
882
+ "resolved": "string",
883
+ "references": {}
884
+ },
885
+ "required": false,
886
+ "optional": true,
887
+ "docs": {
888
+ "tags": [{
889
+ "text": "Restricted words error description",
890
+ "name": "uiName"
891
+ }, {
892
+ "text": "string",
893
+ "name": "uiType"
894
+ }, {
895
+ "text": "textarea",
896
+ "name": "uiWidget"
897
+ }, {
898
+ "text": "Customizable Vanity Link",
899
+ "name": "uiGroup"
900
+ }, {
901
+ "text": "impact",
902
+ "name": "requiredFlavor"
903
+ }],
904
+ "text": "Description text shown when the link contains profanity or brand names."
905
+ },
906
+ "attribute": "restricted-words-error-description",
907
+ "reflect": false,
908
+ "defaultValue": "\"This link contains a restricted word.\""
909
+ },
910
+ "restrictedWordsErrorTitle": {
911
+ "type": "string",
912
+ "mutable": false,
913
+ "complexType": {
914
+ "original": "string",
915
+ "resolved": "string",
916
+ "references": {}
917
+ },
918
+ "required": false,
919
+ "optional": true,
920
+ "docs": {
921
+ "tags": [{
922
+ "text": "Restricted words error title",
923
+ "name": "uiName"
924
+ }, {
925
+ "text": "string",
926
+ "name": "uiType"
927
+ }, {
928
+ "text": "Customizable Vanity Link",
929
+ "name": "uiGroup"
930
+ }, {
931
+ "text": "impact",
932
+ "name": "requiredFlavor"
933
+ }],
934
+ "text": "Title of the error message shown when the link contains profanity or brand names."
935
+ },
936
+ "attribute": "restricted-words-error-title",
937
+ "reflect": false,
938
+ "defaultValue": "\"Please try a different link\""
939
+ },
940
+ "saveLabelText": {
941
+ "type": "string",
942
+ "mutable": false,
943
+ "complexType": {
944
+ "original": "string",
945
+ "resolved": "string",
946
+ "references": {}
947
+ },
948
+ "required": false,
949
+ "optional": true,
950
+ "docs": {
951
+ "tags": [{
952
+ "text": "Save button label",
953
+ "name": "uiName"
954
+ }, {
955
+ "text": "string",
956
+ "name": "uiType"
957
+ }, {
958
+ "text": "Customizable Vanity Link",
959
+ "name": "uiGroup"
960
+ }, {
961
+ "text": "impact",
962
+ "name": "requiredFlavor"
963
+ }],
964
+ "text": "Text for the save button in editing mode"
965
+ },
966
+ "attribute": "save-label-text",
967
+ "reflect": false,
968
+ "defaultValue": "\"Save\""
969
+ },
970
+ "savingLabelText": {
971
+ "type": "string",
972
+ "mutable": false,
973
+ "complexType": {
974
+ "original": "string",
975
+ "resolved": "string",
976
+ "references": {}
977
+ },
978
+ "required": false,
979
+ "optional": true,
980
+ "docs": {
981
+ "tags": [{
982
+ "text": "Saving button label",
983
+ "name": "uiName"
984
+ }, {
985
+ "text": "string",
986
+ "name": "uiType"
987
+ }, {
988
+ "text": "Customizable Vanity Link",
989
+ "name": "uiGroup"
990
+ }, {
991
+ "text": "impact",
992
+ "name": "requiredFlavor"
993
+ }],
994
+ "text": "Text for the save button while saving is in progress"
995
+ },
996
+ "attribute": "saving-label-text",
997
+ "reflect": false,
998
+ "defaultValue": "\"Saving...\""
999
+ },
1000
+ "editLabelText": {
1001
+ "type": "string",
1002
+ "mutable": false,
1003
+ "complexType": {
1004
+ "original": "string",
1005
+ "resolved": "string",
1006
+ "references": {}
1007
+ },
1008
+ "required": false,
1009
+ "optional": true,
1010
+ "docs": {
1011
+ "tags": [{
1012
+ "text": "Edit input label",
1013
+ "name": "uiName"
1014
+ }, {
1015
+ "text": "string",
1016
+ "name": "uiType"
1017
+ }, {
1018
+ "text": "Customizable Vanity Link",
1019
+ "name": "uiGroup"
1020
+ }, {
1021
+ "text": "impact",
1022
+ "name": "requiredFlavor"
1023
+ }],
1024
+ "text": "Label shown above the link input while editing"
1025
+ },
1026
+ "attribute": "edit-label-text",
1027
+ "reflect": false,
1028
+ "defaultValue": "\"Enter your link\""
1029
+ },
1030
+ "charactersRemainingText": {
1031
+ "type": "string",
1032
+ "mutable": false,
1033
+ "complexType": {
1034
+ "original": "string",
1035
+ "resolved": "string",
1036
+ "references": {}
1037
+ },
1038
+ "required": false,
1039
+ "optional": true,
1040
+ "docs": {
1041
+ "tags": [{
1042
+ "text": "Characters remaining text",
1043
+ "name": "uiName"
1044
+ }, {
1045
+ "text": "string",
1046
+ "name": "uiType"
1047
+ }, {
1048
+ "text": "Customizable Vanity Link",
1049
+ "name": "uiGroup"
1050
+ }, {
1051
+ "text": "impact",
1052
+ "name": "requiredFlavor"
1053
+ }],
1054
+ "text": "Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count."
1055
+ },
1056
+ "attribute": "characters-remaining-text",
1057
+ "reflect": false,
1058
+ "defaultValue": "\"Characters remaining: {charactersRemaining}\""
1059
+ },
1060
+ "validatingLabelText": {
1061
+ "type": "string",
1062
+ "mutable": false,
1063
+ "complexType": {
1064
+ "original": "string",
1065
+ "resolved": "string",
1066
+ "references": {}
1067
+ },
1068
+ "required": false,
1069
+ "optional": true,
1070
+ "docs": {
1071
+ "tags": [{
1072
+ "text": "Validating label",
1073
+ "name": "uiName"
1074
+ }, {
1075
+ "text": "string",
1076
+ "name": "uiType"
1077
+ }, {
1078
+ "text": "Customizable Vanity Link",
1079
+ "name": "uiGroup"
1080
+ }, {
1081
+ "text": "impact",
1082
+ "name": "requiredFlavor"
1083
+ }],
1084
+ "text": "Text shown while the link is being validated"
1085
+ },
1086
+ "attribute": "validating-label-text",
1087
+ "reflect": false,
1088
+ "defaultValue": "\"Validating...\""
1089
+ },
1090
+ "minCharactersText": {
1091
+ "type": "string",
1092
+ "mutable": false,
1093
+ "complexType": {
1094
+ "original": "string",
1095
+ "resolved": "string",
1096
+ "references": {}
1097
+ },
1098
+ "required": false,
1099
+ "optional": true,
1100
+ "docs": {
1101
+ "tags": [{
1102
+ "text": "Min characters text",
1103
+ "name": "uiName"
1104
+ }, {
1105
+ "text": "string",
1106
+ "name": "uiType"
1107
+ }, {
1108
+ "text": "Customizable Vanity Link",
1109
+ "name": "uiGroup"
1110
+ }, {
1111
+ "text": "impact",
1112
+ "name": "requiredFlavor"
1113
+ }],
1114
+ "text": ""
1115
+ },
1116
+ "attribute": "min-characters-text",
1117
+ "reflect": false,
1118
+ "defaultValue": "\"Minimum 3 characters.\""
1119
+ },
1120
+ "supportLinkText": {
1121
+ "type": "string",
1122
+ "mutable": false,
1123
+ "complexType": {
1124
+ "original": "string",
1125
+ "resolved": "string",
1126
+ "references": {}
1127
+ },
1128
+ "required": false,
1129
+ "optional": true,
1130
+ "docs": {
1131
+ "tags": [{
1132
+ "text": "Support link text",
1133
+ "name": "uiName"
1134
+ }, {
1135
+ "text": "string",
1136
+ "name": "uiType"
1137
+ }, {
1138
+ "text": "Customizable Vanity Link",
1139
+ "name": "uiGroup"
1140
+ }, {
1141
+ "text": "impact",
1142
+ "name": "requiredFlavor"
1143
+ }],
1144
+ "text": "Display text for the support link in the edit limit reached message"
1145
+ },
1146
+ "attribute": "support-link-text",
1147
+ "reflect": false,
1148
+ "defaultValue": "\"Support\""
1149
+ },
1150
+ "saveErrorTitle": {
1151
+ "type": "string",
1152
+ "mutable": false,
1153
+ "complexType": {
1154
+ "original": "string",
1155
+ "resolved": "string",
1156
+ "references": {}
1157
+ },
1158
+ "required": false,
1159
+ "optional": true,
1160
+ "docs": {
1161
+ "tags": [{
1162
+ "text": "Save error title",
1163
+ "name": "uiName"
1164
+ }, {
1165
+ "text": "string",
1166
+ "name": "uiType"
1167
+ }, {
1168
+ "text": "Customizable Vanity Link",
1169
+ "name": "uiGroup"
1170
+ }, {
1171
+ "text": "impact",
1172
+ "name": "requiredFlavor"
1173
+ }],
1174
+ "text": "Title shown when saving fails with an unknown error"
1175
+ },
1176
+ "attribute": "save-error-title",
1177
+ "reflect": false,
1178
+ "defaultValue": "\"Error\""
1179
+ },
1180
+ "saveErrorDescription": {
1181
+ "type": "string",
1182
+ "mutable": false,
1183
+ "complexType": {
1184
+ "original": "string",
1185
+ "resolved": "string",
1186
+ "references": {}
1187
+ },
1188
+ "required": false,
1189
+ "optional": true,
1190
+ "docs": {
1191
+ "tags": [{
1192
+ "text": "Save error description",
1193
+ "name": "uiName"
1194
+ }, {
1195
+ "text": "string",
1196
+ "name": "uiType"
1197
+ }, {
1198
+ "text": "textarea",
1199
+ "name": "uiWidget"
1200
+ }, {
1201
+ "text": "Customizable Vanity Link",
1202
+ "name": "uiGroup"
1203
+ }, {
1204
+ "text": "impact",
1205
+ "name": "requiredFlavor"
1206
+ }],
1207
+ "text": "Description shown when saving fails with an unknown error"
1208
+ },
1209
+ "attribute": "save-error-description",
1210
+ "reflect": false,
1211
+ "defaultValue": "\"Failed to save custom link. Please try again.\""
1212
+ },
1213
+ "demoData": {
1214
+ "type": "unknown",
1215
+ "mutable": false,
1216
+ "complexType": {
1217
+ "original": "DemoData<ShareLinkViewProps>",
1218
+ "resolved": "{ copyTextViewProps?: CopyTextViewProps; allowCustomization?: boolean; customizeLinkLabel?: string; saveLabelText?: string; savingLabelText?: string; cancelLabelText?: string; editLabelText?: string; charactersRemainingText?: string; validatingLabelText?: string; isEditing?: boolean; editValue?: string; domainPrefix?: string; editsRemaining?: number; maxEdits?: number; limitReached?: boolean; validationError?: ValidationErrorInfo; isValidating?: boolean; isSaving?: boolean; characterLimit?: number; minCharacters?: number; charactersRemaining?: number; editLimitText?: string; editLimitReachedText?: string; minCharactersText?: string; supportLinkText?: string; customizeDisabled?: boolean; customizeDisabledTooltip?: string; onCustomizeClick?: () => void; onEditValueChange?: (value: string) => void; onSave?: () => void; onCancel?: () => void; }",
1219
+ "references": {
1220
+ "DemoData": {
1221
+ "location": "import",
1222
+ "path": "../../global/demo"
1223
+ },
1224
+ "ShareLinkViewProps": {
1225
+ "location": "import",
1226
+ "path": "./sqm-share-link-view"
1227
+ }
1228
+ }
1229
+ },
1230
+ "required": false,
1231
+ "optional": true,
1232
+ "docs": {
1233
+ "tags": [{
1234
+ "text": undefined,
1235
+ "name": "undocumented"
1236
+ }, {
1237
+ "text": "object",
1238
+ "name": "uiType"
1239
+ }],
1240
+ "text": ""
1241
+ }
1242
+ }
1243
+ }; }
1244
+ }
1245
+ function useDemoShareLink(props) {
1246
+ var _a;
1247
+ const [open, setOpen] = useState(false);
1248
+ const [isEditing, setIsEditing] = useState(false);
1249
+ const [editValue, setEditValue] = useState("");
1250
+ const copyString = "https://www.example.com/sharelink/abc";
1251
+ const domainPrefix = "https://www.example.com/";
1252
+ const baseProps = {
1253
+ copyTextViewProps: {
1254
+ copyString,
1255
+ tooltiptext: props.tooltiptext,
1256
+ textAlign: props.textAlign,
1257
+ buttonStyle: props.buttonStyle,
1258
+ backgroundColor: props.backgroundColor,
1259
+ textColor: props.textColor,
1260
+ borderRadius: props.borderRadius,
1261
+ buttonType: props.buttonType,
1262
+ copyButtonLabel: props.copyButtonLabel,
1263
+ borderColor: props.borderColor,
1264
+ open,
1265
+ onClick: () => {
1266
+ navigator.clipboard.writeText(copyString);
1267
+ setOpen(true);
1268
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
1269
+ },
1270
+ },
1271
+ allowCustomization: props.allowCustomization,
1272
+ customizeLinkLabel: props.customizeLinkButtonLabel,
1273
+ saveLabelText: props.saveLabelText,
1274
+ savingLabelText: props.savingLabelText,
1275
+ cancelLabelText: props.cancelLabelText,
1276
+ editLabelText: props.editLabelText,
1277
+ charactersRemainingText: props.charactersRemainingText,
1278
+ validatingLabelText: props.validatingLabelText,
1279
+ isEditing,
1280
+ editValue,
1281
+ domainPrefix,
1282
+ editsRemaining: 5,
1283
+ maxEdits: 5,
1284
+ limitReached: false,
1285
+ validationError: null,
1286
+ isValidating: false,
1287
+ isSaving: false,
1288
+ characterLimit: 15,
1289
+ minCharacters: 3,
1290
+ charactersRemaining: 15 - editValue.length,
1291
+ editLimitText: props.editLimitText,
1292
+ editLimitReachedText: props.editLimitReachedText,
1293
+ supportLinkText: props.supportLinkText,
1294
+ minCharactersText: props.minCharactersText,
1295
+ customizeDisabled: false,
1296
+ customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
1297
+ onCustomizeClick: () => {
1298
+ setIsEditing(true);
1299
+ setEditValue("");
1300
+ },
1301
+ onEditValueChange: (value) => {
1302
+ setEditValue(value);
1303
+ },
1304
+ onSave: () => {
1305
+ setIsEditing(false);
1306
+ },
1307
+ onCancel: () => {
1308
+ setIsEditing(false);
1309
+ setEditValue("");
1310
+ },
1311
+ };
1312
+ return deepmerge(baseProps, props.demoData || {}, {
1313
+ arrayMerge: (_, a) => a,
1314
+ });
428
1315
  }