@saasquatch/mint-components 1.6.8-2 → 1.6.8-4
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.
- package/dist/cjs/{ShadowViewAddon-7a412c0b.js → ShadowViewAddon-937f11d0.js} +20 -11
- package/dist/cjs/{global-ea52ea30.js → global-48c25606.js} +1 -1
- package/dist/cjs/{index.module-bd6e817a.js → index.module-f6afc139.js} +21 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1d12dfdd.js → re-render-552514cb.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_37.cjs.entry.js +22 -18
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-link-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-91d9d7b5.js → sqm-navigation-sidebar-item-view-c39b695c.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +2 -10
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-7e795920.js → sqm-portal-email-verification-view-2e646897.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-7c290eed.js → sqm-portal-profile-view-52bc73ad.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +10 -12
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +43 -21
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-user-identifier-view-69b42b84.js → sqm-user-identifier-view-90b36758.js} +10 -3
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +28 -5
- package/dist/cjs/{useChildElements-0a6ccd0f.js → useChildElements-a8f7f5ca.js} +1 -1
- package/dist/cjs/{usePasswordlessRegistration-9105faa4.js → usePasswordlessRegistration-b10e325f.js} +1 -1
- package/dist/cjs/{useReferralTable-259fc04d.js → useReferralTable-f53a9a1b.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-ed30c0e6.js → useRegistrationFormState-99160dad.js} +1 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +13 -13
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +1 -1
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +3 -3
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +0 -32
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -0
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +4 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +25 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +9 -35
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +13 -13
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +13 -13
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +10 -3
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +50 -7
- package/dist/collection/components/sqm-user-identifier/useUserIdentifer.js +7 -0
- package/dist/collection/components/views/EmailRegistration.stories.js +14 -0
- package/dist/collection/components/views/copy-text-view.js +13 -6
- package/dist/esm/{ShadowViewAddon-ca765d5e.js → ShadowViewAddon-751a6b84.js} +20 -11
- package/dist/esm/{global-0f137e54.js → global-170c4499.js} +1 -1
- package/dist/esm/{index.module-787e5d35.js → index.module-0ba0774e.js} +21 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-54bb3e32.js → re-render-22de5b23.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat_37.entry.js +22 -18
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-link-button.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-ee402e54.js → sqm-navigation-sidebar-item-view-5a4ac267.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-passwordless-registration.entry.js +2 -10
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-727bbfd9.js → sqm-portal-email-verification-view-889fcc01.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-1f2b6063.js → sqm-portal-profile-view-ac955752.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +10 -12
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +43 -21
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-identifier-view-379c773f.js → sqm-user-identifier-view-dbf71a5e.js} +10 -3
- package/dist/esm/sqm-user-identifier.entry.js +28 -5
- package/dist/esm/{useChildElements-0124b1a9.js → useChildElements-fd458906.js} +1 -1
- package/dist/esm/{usePasswordlessRegistration-2381025b.js → usePasswordlessRegistration-ad9a05d5.js} +1 -1
- package/dist/esm/{useReferralTable-3024490c.js → useReferralTable-a3d6051e.js} +3 -3
- package/dist/esm/{useRegistrationFormState-3c2c2f1b.js → useRegistrationFormState-29e30121.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-751a6b84.js +1 -0
- package/dist/esm-es5/{global-0f137e54.js → global-170c4499.js} +1 -1
- package/dist/esm-es5/index.module-0ba0774e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-54bb3e32.js → re-render-22de5b23.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-link-button.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-ee402e54.js → sqm-navigation-sidebar-item-view-5a4ac267.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-727bbfd9.js → sqm-portal-email-verification-view-889fcc01.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-1f2b6063.js → sqm-portal-profile-view-ac955752.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-user-identifier-view-dbf71a5e.js +1 -0
- package/dist/esm-es5/sqm-user-identifier.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-0124b1a9.js → useChildElements-fd458906.js} +1 -1
- package/dist/esm-es5/{usePasswordlessRegistration-2381025b.js → usePasswordlessRegistration-ad9a05d5.js} +1 -1
- package/dist/esm-es5/{useReferralTable-3024490c.js → useReferralTable-a3d6051e.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-3c2c2f1b.js → useRegistrationFormState-29e30121.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-32b28506.system.entry.js → p-045af9fb.system.entry.js} +1 -1
- package/dist/mint-components/p-0597b64f.js +1 -0
- package/dist/mint-components/p-0a410d79.entry.js +1 -0
- package/dist/mint-components/{p-25ce265e.entry.js → p-0b6ee047.entry.js} +2 -2
- package/dist/mint-components/{p-a9467e3e.system.entry.js → p-0c5aadd5.system.entry.js} +1 -1
- package/dist/mint-components/{p-838e5560.system.entry.js → p-0c7a3116.system.entry.js} +1 -1
- package/dist/mint-components/{p-82f341ec.system.entry.js → p-0d395b4f.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ad8c79f.entry.js → p-135c3cef.entry.js} +1 -1
- package/dist/mint-components/{p-05abfc50.system.entry.js → p-16dda971.system.entry.js} +1 -1
- package/dist/mint-components/{p-92002bbb.system.entry.js → p-18e7d7c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-aaff2c88.system.entry.js → p-19244318.system.entry.js} +1 -1
- package/dist/mint-components/{p-3855a6e0.entry.js → p-1d9cb344.entry.js} +1 -1
- package/dist/mint-components/{p-f96d239a.entry.js → p-221878e3.entry.js} +1 -1
- package/dist/mint-components/p-35d6d322.system.js +1 -0
- package/dist/mint-components/p-390b1f99.entry.js +1 -0
- package/dist/mint-components/{p-56494499.js → p-3d339fa9.js} +1 -1
- package/dist/mint-components/p-4120758d.system.entry.js +1 -0
- package/dist/mint-components/{p-ba7feba5.js → p-494829ff.js} +1 -1
- package/dist/mint-components/{p-95cc44c3.system.js → p-4994b24c.system.js} +1 -1
- package/dist/mint-components/p-515eac9c.system.entry.js +1 -0
- package/dist/mint-components/{p-3a6a59f2.system.js → p-517a5669.system.js} +1 -1
- package/dist/mint-components/{p-db297fa3.system.entry.js → p-58362d80.system.entry.js} +1 -1
- package/dist/mint-components/{p-52468c89.system.js → p-59ca1d2c.system.js} +1 -1
- package/dist/mint-components/{p-af00c9b0.entry.js → p-62306484.entry.js} +1 -1
- package/dist/mint-components/p-6332cdb6.entry.js +1 -0
- package/dist/mint-components/{p-ae00aec4.system.js → p-64242338.system.js} +1 -1
- package/dist/mint-components/p-653131de.entry.js +9 -0
- package/dist/mint-components/{p-555123c5.system.js → p-657acf81.system.js} +1 -1
- package/dist/mint-components/p-66a0332f.system.entry.js +1 -0
- package/dist/mint-components/p-689d022a.js +1 -0
- package/dist/mint-components/{p-332448db.system.entry.js → p-6c0409fe.system.entry.js} +1 -1
- package/dist/mint-components/p-6ddc2a08.js +1 -0
- package/dist/mint-components/{p-36b5b564.entry.js → p-6e9cfc74.entry.js} +1 -1
- package/dist/mint-components/{p-15cfd2cf.system.js → p-70263662.system.js} +1 -1
- package/dist/mint-components/{p-01bd9ae1.system.entry.js → p-730db569.system.entry.js} +1 -1
- package/dist/mint-components/{p-598f6e6e.entry.js → p-773cf8ec.entry.js} +4 -4
- package/dist/mint-components/{p-bc6255a0.js → p-7d31f692.js} +2 -2
- package/dist/mint-components/{p-39ac088a.entry.js → p-7d7baf55.entry.js} +2 -2
- package/dist/mint-components/{p-f63ea5f4.entry.js → p-8322ad92.entry.js} +1 -1
- package/dist/mint-components/{p-6868f6a3.system.entry.js → p-8478a86e.system.entry.js} +1 -1
- package/dist/mint-components/{p-b0ad1b74.system.entry.js → p-88ce114f.system.entry.js} +1 -1
- package/dist/mint-components/{p-dffe8bea.entry.js → p-8e0d9535.entry.js} +1 -1
- package/dist/mint-components/{p-e94f28d3.system.js → p-8f58a603.system.js} +1 -1
- package/dist/mint-components/{p-8eb9298d.js → p-9009d352.js} +2 -2
- package/dist/mint-components/{p-695d65b1.js → p-9076f688.js} +1 -1
- package/dist/mint-components/{p-9c0678aa.system.entry.js → p-919ea20a.system.entry.js} +1 -1
- package/dist/mint-components/{p-b039fb72.entry.js → p-94607792.entry.js} +1 -1
- package/dist/mint-components/{p-b91658ca.system.entry.js → p-96b05458.system.entry.js} +1 -1
- package/dist/mint-components/{p-ea76c3bc.system.entry.js → p-97988090.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d7b7618.system.entry.js → p-97fa9d3e.system.entry.js} +1 -1
- package/dist/mint-components/p-9a13cb78.system.entry.js +1 -0
- package/dist/mint-components/{p-d949b099.entry.js → p-9cdf8d74.entry.js} +1 -1
- package/dist/mint-components/{p-d27b326c.js → p-9d9da716.js} +1 -1
- package/dist/mint-components/{p-eb3278aa.js → p-a59be693.js} +1 -1
- package/dist/mint-components/{p-3ad5761c.entry.js → p-a7451d8c.entry.js} +1 -1
- package/dist/mint-components/p-b27a0503.system.entry.js +1 -0
- package/dist/mint-components/p-b6b28b95.js +1 -0
- package/dist/mint-components/{p-65aac49a.entry.js → p-bd037777.entry.js} +1 -1
- package/dist/mint-components/{p-6c69d3d5.entry.js → p-bf021a55.entry.js} +1 -1
- package/dist/mint-components/p-bfd347b4.js +1 -0
- package/dist/mint-components/p-bfecc81e.system.js +1 -0
- package/dist/mint-components/p-c0f82fc7.system.entry.js +1 -0
- package/dist/mint-components/p-c1e7a6c3.entry.js +1 -0
- package/dist/mint-components/p-c2c3d7fd.entry.js +1 -0
- package/dist/mint-components/{p-e74525d9.system.entry.js → p-c3765ad9.system.entry.js} +1 -1
- package/dist/mint-components/{p-91b1dd5f.system.entry.js → p-c3777cf3.system.entry.js} +1 -1
- package/dist/mint-components/{p-d483347f.system.entry.js → p-c4b6454d.system.entry.js} +1 -1
- package/dist/mint-components/p-d16b1f37.entry.js +1 -0
- package/dist/mint-components/{p-de9716b9.entry.js → p-d6c78b10.entry.js} +2 -2
- package/dist/mint-components/p-de055c6b.system.js +1 -0
- package/dist/mint-components/{p-cfb400c5.entry.js → p-e633ae08.entry.js} +1 -1
- package/dist/mint-components/{p-9957d667.system.js → p-eb25d055.system.js} +1 -1
- package/dist/mint-components/p-ef3e1cb8.system.js +1 -0
- package/dist/mint-components/{p-1069832a.entry.js → p-f27766d6.entry.js} +1 -1
- package/dist/mint-components/{p-911f8910.system.js → p-f8d9e861.system.js} +1 -1
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +3 -3
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +3 -3
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +0 -7
- package/dist/types/components/sqm-portal-footer/PortalFooter.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +4 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +0 -7
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -3
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +10 -3
- package/dist/types/components/sqm-user-identifier/useUserIdentifer.d.ts +3 -0
- package/dist/types/components/views/EmailRegistration.stories.d.ts +2 -0
- package/dist/types/components/views/copy-text-view.d.ts +1 -1
- package/dist/types/components.d.ts +36 -42
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/ShadowViewAddon-ca765d5e.js +0 -1
- package/dist/esm-es5/index.module-787e5d35.js +0 -1
- package/dist/esm-es5/sqm-user-identifier-view-379c773f.js +0 -1
- package/dist/mint-components/p-19cecf43.entry.js +0 -1
- package/dist/mint-components/p-27c9d3be.system.entry.js +0 -1
- package/dist/mint-components/p-3282f52a.entry.js +0 -1
- package/dist/mint-components/p-35b9bb54.entry.js +0 -1
- package/dist/mint-components/p-4359f515.system.js +0 -1
- package/dist/mint-components/p-5333d935.entry.js +0 -1
- package/dist/mint-components/p-5377e1c5.system.entry.js +0 -1
- package/dist/mint-components/p-545e2df1.entry.js +0 -1
- package/dist/mint-components/p-5938e109.js +0 -1
- package/dist/mint-components/p-5deb8687.system.entry.js +0 -1
- package/dist/mint-components/p-788fd322.system.js +0 -1
- package/dist/mint-components/p-7ed639bc.js +0 -1
- package/dist/mint-components/p-883169ad.entry.js +0 -1
- package/dist/mint-components/p-8caf0121.system.entry.js +0 -1
- package/dist/mint-components/p-9e8ea69d.system.js +0 -1
- package/dist/mint-components/p-c0685957.js +0 -1
- package/dist/mint-components/p-cce7f6ea.js +0 -1
- package/dist/mint-components/p-e0167571.js +0 -1
- package/dist/mint-components/p-e41a853f.system.entry.js +0 -1
- package/dist/mint-components/p-e869887b.system.entry.js +0 -1
- package/dist/mint-components/p-f87b1e0b.system.js +0 -1
- package/dist/mint-components/p-fd90e9db.entry.js +0 -9
|
@@ -5,25 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
9
9
|
require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
require('./JSS-8503a151.js');
|
|
13
13
|
const emailRegistrationView = require('./email-registration-view-a483578e.js');
|
|
14
|
-
const usePasswordlessRegistration = require('./usePasswordlessRegistration-
|
|
14
|
+
const usePasswordlessRegistration = require('./usePasswordlessRegistration-b10e325f.js');
|
|
15
15
|
|
|
16
16
|
const ReferredRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
19
|
this.ignored = true;
|
|
20
|
-
/**
|
|
21
|
-
* Redirect participants to this page after they successfully register.
|
|
22
|
-
*
|
|
23
|
-
* @uiName Registration Redirect
|
|
24
|
-
* @uiWidget pageSelect
|
|
25
|
-
*/
|
|
26
|
-
this.nextPage = "/";
|
|
27
20
|
/**
|
|
28
21
|
* @uiName Email Field Label
|
|
29
22
|
*/
|
|
@@ -65,16 +58,21 @@ const ReferredRegistration = class {
|
|
|
65
58
|
}
|
|
66
59
|
};
|
|
67
60
|
function useRegistrationDemo(props) {
|
|
61
|
+
const onSubmit = () => {
|
|
62
|
+
index_module.setUserIdentity({
|
|
63
|
+
id: "referrer@example.com",
|
|
64
|
+
accountId: "referrer@example.com",
|
|
65
|
+
jwt: "eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg",
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
68
|
return cjs.cjs({
|
|
69
69
|
states: {
|
|
70
70
|
error: "",
|
|
71
71
|
loading: false,
|
|
72
|
-
forgotPasswordPath: "/forgotPassword",
|
|
73
|
-
registerPath: "/register",
|
|
74
72
|
},
|
|
75
73
|
callbacks: {
|
|
76
74
|
submit: async (_event) => {
|
|
77
|
-
|
|
75
|
+
onSubmit();
|
|
78
76
|
},
|
|
79
77
|
},
|
|
80
78
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
require('./index.module-
|
|
9
|
-
const reRender = require('./re-render-
|
|
8
|
+
require('./index.module-f6afc139.js');
|
|
9
|
+
const reRender = require('./re-render-552514cb.js');
|
|
10
10
|
|
|
11
11
|
const RewardTableCustomerNoteColumn = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-48c25606.js');
|
|
8
8
|
require('./use-callback-86e9ac75.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-380b83e2.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
14
|
+
const reRender = require('./re-render-552514cb.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-a8f7f5ca.js');
|
|
16
16
|
const luxon = require('./luxon-53e983a6.js');
|
|
17
|
-
const useReferralTable = require('./useReferralTable-
|
|
17
|
+
const useReferralTable = require('./useReferralTable-f53a9a1b.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
19
|
|
|
20
20
|
const debug = stencilHooks_module.browser("sq:useRewardsTable");
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
require('./global-
|
|
7
|
+
require('./global-48c25606.js');
|
|
8
8
|
require('./use-callback-86e9ac75.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
10
10
|
require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-380b83e2.js');
|
|
14
|
-
require('./useChildElements-
|
|
14
|
+
require('./useChildElements-a8f7f5ca.js');
|
|
15
15
|
const luxon = require('./luxon-53e983a6.js');
|
|
16
16
|
require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-3c734dbb.js');
|
|
@@ -20,16 +20,16 @@ const sqmHeroView = require('./sqm-hero-view-ddd1ef43.js');
|
|
|
20
20
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
21
21
|
const sqmLinkButtonView = require('./sqm-link-button-view-8b446852.js');
|
|
22
22
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-b830e8d8.js');
|
|
23
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
23
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-c39b695c.js');
|
|
24
24
|
const emailRegistrationView = require('./email-registration-view-a483578e.js');
|
|
25
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
25
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-2e646897.js');
|
|
26
26
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-f73bb724.js');
|
|
27
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
27
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-52bc73ad.js');
|
|
28
28
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-e182df83.js');
|
|
29
29
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-fd739843.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-937f11d0.js');
|
|
31
31
|
const sqmPortalContainerView = require('./sqm-portal-container-view-6accb54a.js');
|
|
32
|
-
const sqmUserIdentifierView = require('./sqm-user-identifier-view-
|
|
32
|
+
const sqmUserIdentifierView = require('./sqm-user-identifier-view-90b36758.js');
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -1674,7 +1674,7 @@ const CopyButtonInside = () => {
|
|
|
1674
1674
|
copyString: "https://noah.example.com",
|
|
1675
1675
|
open: false,
|
|
1676
1676
|
tooltiptext: "Copied!",
|
|
1677
|
-
|
|
1677
|
+
buttonPosition: "inside",
|
|
1678
1678
|
isCopyIcon: false,
|
|
1679
1679
|
})));
|
|
1680
1680
|
};
|
|
@@ -3873,13 +3873,13 @@ const monoWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\
|
|
|
3873
3873
|
|
|
3874
3874
|
const loyaltyWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\n <sqm-portal-container\n direction=\"column\"\n padding=\"small\"\n gap=\"xxxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-hero-image\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\n header=\"MyCompany Rewards\"\n description=\"Complete tasks to earn rewards\"\n layout=\"overlay\"\n padding-image=\"xxxx-large\"\n padding-text=\"xxx-large\"\n image-pos=\"center\"\n overlay-color=\"#5e5669\"\n overlay-opacity=\"0.9\"\n >\n </sqm-hero-image>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-program-explainer header=\"How it works\">\n <sqm-program-explainer-step\n description=\"Complete tasks like uploading your first video or sharing videos with friends\"\n header=\"Earn points for using our product\"\n icon=\"cash-stack\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n <sqm-program-explainer-step\n description=\"Redeem rewards like one free month of Enterprise or two plane tickets to anywhere in North America\"\n header=\"Redeem rewards with your points\"\n icon=\"people\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n </sqm-program-explainer>\n <sqm-portal-container\n center\n direction=\"row\"\n display=\"flex\"\n justify-content=\"space-between\"\n gap=\"xxx-large\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsRedeemed/CREDIT/POINTS\"\n >\n <p>Points Redeemed</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/POINT/value/global\"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n </sqm-portal-container>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-titled-section\n label-margin=\"small\"\n padding=\"none\"\n text-align=\"center\"\n >\n <h3 slot=\"label\">Earn points</h3>\n </sqm-titled-section>\n <sqm-card-feed gap=\"24\" width=\"347\">\n <sqm-task-card\n reward-amount=\"20\"\n goal=\"1\"\n card-title=\"Complete a Survey\"\n description=\"Fill out our NPS survey and get 20 points for giving us honest feedback.\"\n button-text=\"Take survey\"\n reward-unit=\"Points\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"250\"\n goal=\"500\"\n show-progress-bar\n card-title=\"Spend $500\"\n description=\"Earn 250 points when you spend $500 or more.\"\n button-text=\"See plans\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n progress-bar-unit=\"$\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n goal=\"1\"\n reward-amount=\"50\"\n card-title=\"Follow Us on Twitter\"\n description=\"Earn 50 points when you follow us on Twitter!\"\n button-text=\"Follow\"\n button-link=\"https://twitter.com/\"\n open-new-tab=\"true\"\n event-key=\"socialFollow\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"1\"\n reward-unit=\"Free Month\"\n goal=\"1\"\n card-title=\"Upgrade Your Plan\"\n description=\"Receive one free month for being a committed customer when you upgrade your plan.\"\n button-text=\"Upgrade\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n open-new-tab=\"false\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n </sqm-card-feed>\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n padding=\"none\"\n text-align=\"center\"\n label-margin=\"xx-small\"\n >\n <h3 slot=\"label\">Reward History</h3>\n </sqm-titled-section>\n <sqm-rewards-table\n per-page=\"4\"\n hidden-columns=\"0\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-rewards-table-reward-column\n available-text=\"{availableAmount} remaining\"\n column-title=\"Reward\"\n copy-text=\"Copied!\"\n redeemed-text=\"{redeemedAmount} redeemed\"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user=\"Anonymous User\"\n column-title=\"Source\"\n deleted-user=\"Deleted User\"\n referral-text=\"{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}\"\n reward-exchange-text=\"Reward Exchange\"\n reward-source-text=\"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}\"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title=\"Status\"\n expiry-text=\"Expires on \"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title=\"Date received\"\n date-shown=\"dateGiven\"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png\"\n empty-state-header=\"View your rewards\"\n empty-state-text=\"Refer friends and complete tasks to view the details of your rewards\"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3875
3875
|
|
|
3876
|
-
const passwordlessReferrerPersonalized = "<sqm-brand>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n <sqm-portal-container\n gap=\"large\"\n slot=\"left\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p
|
|
3876
|
+
const passwordlessReferrerPersonalized = "<sqm-brand>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"header\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n <sqm-portal-container\n gap=\"large\"\n slot=\"left\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>How to get rewarded!</p>\n <sqm-timeline icon=\"circle\">\n <sqm-timeline-entry\n reward=\"$50\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases a Business plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$200\"\n unit=\"visa giftcard\"\n desc=\"Our sales team qualifies your friend as a good fit for our Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$1000\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases an Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap=\"large\"\n slot=\"right\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>Choose how you want to share:</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text=\"Copied to Clipboard\"\n tooltip-lifespan=\"1000\"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap=\"x-small\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-share-button\n medium=\"email\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium=\"linkedin\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium=\"twitter\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Tweet about us\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-container\n slot=\"footer\"\n direction=\"column\"\n gap=\"small\"\n justify-content=\"center\"\n display=\"flex\"\n padding=\"large\"\n >\n <sqm-user-identifier\n switch-user-link=\"https://www.example.com\"\n ></sqm-user-identifier\n ><sqm-portal-footer\n padding-top=\"0\"\n padding-bottom=\"0\"\n padding-left=\"0\"\n padding-right=\"0\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-referral-card>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3877
3877
|
|
|
3878
|
-
const passwordlessReferrerRegistration = "<sqm-brand>\n <sqm-passwordless-registration include-name=\"true\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"top-slot\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n\n <sqm-portal-footer\n support-
|
|
3878
|
+
const passwordlessReferrerRegistration = "<sqm-brand>\n <sqm-passwordless-registration include-name=\"true\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"top-slot\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and\n you’ll get up to $1200\n </p>\n </sqm-titled-section>\n\n <sqm-portal-footer\n hide-support-text=\"true\"\n terms-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n slot=\"bottom-slot\"\n ></sqm-portal-footer>\n </sqm-passwordless-registration>\n</sqm-brand>\n";
|
|
3879
3879
|
|
|
3880
|
-
const passwordlessReferredPersonalized = "<sqm-brand
|
|
3880
|
+
const passwordlessReferredPersonalized = "<sqm-brand>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"flex\"\n justify-content=\"center\"\n max-width=\"100%\"\n padding=\"none\"\n slot=\"header\"\n >\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n >\n <h3 slot=\"label\">You got $50 off thanks to a friend!</h3>\n\n <p slot=\"content\">\n Description about sharing the products wiht friends will make your\n life 100 times better!\n </p>\n </sqm-titled-section>\n\n <sqm-portal-container>\n <p>\n The coupon code has some conditions that are described concisely in\n this paragraph so that you don’t get upset if the code doesn’t work\n </p></sqm-portal-container\n >\n\n <sqm-coupon-code></sqm-coupon-code>\n </sqm-portal-container>\n\n <sqm-portal-footer\n slot=\"footer\"\n padding-top=\"0\"\n padding-bottom=\"0\"\n padding-left=\"0\"\n padding-right=\"0\"\n ></sqm-portal-footer>\n </sqm-referral-card>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3881
3881
|
|
|
3882
|
-
const passwordlessReferredRegistration = "<sqm-brand>\n <sqm-referred-registration\n
|
|
3882
|
+
const passwordlessReferredRegistration = "<sqm-brand>\n <sqm-referred-registration register-label=\"Get $50 off\">\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n slot=\"top-slot\"\n >\n <h3 slot=\"label\">You got $50 off thanks to a friend!</h3>\n <p slot=\"content\">\n Description about sharing the products with friends will make your life\n 100 times better!\n </p>\n </sqm-titled-section>\n\n <div slot=\"bottom-slot\">\n <p style=\"text-align: center; margin-top: 0; margin-bottom: 1.5rem\">\n *Valid on purchases of $75 or more\n </p>\n <sqm-portal-footer\n hide-support-text=\"true\"\n terms-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </div>\n </sqm-referred-registration>\n</sqm-brand>\n";
|
|
3883
3883
|
|
|
3884
3884
|
const portalTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
3885
3885
|
|
|
@@ -9817,7 +9817,7 @@ const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
|
9817
9817
|
CustomWidthAndHeight: CustomWidthAndHeight
|
|
9818
9818
|
});
|
|
9819
9819
|
|
|
9820
|
-
const scenario$f = "Feature: Portal Footer\n\n Background: A user is viewing the portal\n Given a hosted portal\n And a user is viewing the portal\n And the portal has a footer\n\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\n And prop \"terms-text\" with value \"Terms and Conditions\"\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\n And prop \"faq-text\" with value \"Visit FAQ\"\n When a user clicks on the \"Visit FAQ\" link\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\n When they go back to the portal\n And click on the \"Terms and Conditions\" link\n Then they will be redirected to \"https://example.com/terms\" in a new page\n\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\n Given the footer does not have <linkProp>\n But it <mayHave> <textProp> with <value>\n Then the <link> will not be shown in the footer\n Examples:\n | linkProp | mayHave | textProp | value | link |\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\n | terms-link | doesn't have | | | T&C Link |\n | faq-link | doesn't have | | | FAQ Link |\n\n Scenario Outline: The support email and text is configurable but has a default\n Given the footer <mayHave> <emailPropWithValue>\n And the footer <mayAlsoHave> <textPropWithValue>\n Then the footer's support email text is <renderedEmailText>\n And the email address will be a mailto link with <mailtoEmail>\n When the user clicks on the email address mailto Link\n Then the users preferred email client will open with a draft email to <mailtoEmail>\n Examples:\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\n\n Scenario Outline: Powered by SaaSquatch is shown by default\n Given the footer <mayHaveProp> \"hide-powered-by\" with <value>\n Then the powered by SaaSquatch image <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | true | isn't shown |\n | has prop | false | is shown |\n | has prop | test | isn't shown |\n | has prop | | isn't shown |\n | doesn't have prop | | is shown |\n\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\n Given the footer has the powered by SaaSquatch image\n When a user clicks on it\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
9820
|
+
const scenario$f = "Feature: Portal Footer\n\n Background: A user is viewing the portal\n Given a hosted portal\n And a user is viewing the portal\n And the portal has a footer\n\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\n And prop \"terms-text\" with value \"Terms and Conditions\"\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\n And prop \"faq-text\" with value \"Visit FAQ\"\n When a user clicks on the \"Visit FAQ\" link\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\n When they go back to the portal\n And click on the \"Terms and Conditions\" link\n Then they will be redirected to \"https://example.com/terms\" in a new page\n\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\n Given the footer does not have <linkProp>\n But it <mayHave> <textProp> with <value>\n Then the <link> will not be shown in the footer\n Examples:\n | linkProp | mayHave | textProp | value | link |\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\n | terms-link | doesn't have | | | T&C Link |\n | faq-link | doesn't have | | | FAQ Link |\n\n Scenario Outline: The support email and text is configurable but has a default\n Given the footer <mayHave> <emailPropWithValue>\n And the footer <mayAlsoHave> <textPropWithValue>\n Then the footer's support email text is <renderedEmailText>\n And the email address will be a mailto link with <mailtoEmail>\n When the user clicks on the email address mailto Link\n Then the users preferred email client will open with a draft email to <mailtoEmail>\n Examples:\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\n\n Scenario Outline: Powered by SaaSquatch is shown by default\n Given the footer <mayHaveProp> \"hide-powered-by\" with <value>\n Then the powered by SaaSquatch image <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | true | isn't shown |\n | has prop | false | is shown |\n | has prop | test | isn't shown |\n | has prop | | isn't shown |\n | doesn't have prop | | is shown |\n\n Scenario Outline: Support text is shown by default\n Given the footer <mayHaveProp> \"hide-support-text\" with <value>\n Then the support text <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | true | isn't shown |\n | has prop | false | is shown |\n | has prop | test | isn't shown |\n | has prop | | isn't shown |\n | doesn't have prop | | is shown |\n\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\n Given the footer has the powered by SaaSquatch image\n When a user clicks on it\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
9821
9821
|
|
|
9822
9822
|
const PortalFooter_stories = {
|
|
9823
9823
|
title: "Components/Portal Footer",
|
|
@@ -9840,6 +9840,7 @@ const FooterWithTerms = () => (index.h(ShadowViewAddon.PortalFooterView, Object.
|
|
|
9840
9840
|
const FooterWithFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$9, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9841
9841
|
const FooterWithTermsAndFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9842
9842
|
const FooterNoPoweredBy = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
9843
|
+
const FooterNoSupportText = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hideSupportText: true })));
|
|
9843
9844
|
|
|
9844
9845
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
9845
9846
|
__proto__: null,
|
|
@@ -9848,7 +9849,8 @@ const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
|
9848
9849
|
FooterWithTerms: FooterWithTerms,
|
|
9849
9850
|
FooterWithFAQ: FooterWithFAQ,
|
|
9850
9851
|
FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
|
|
9851
|
-
FooterNoPoweredBy: FooterNoPoweredBy
|
|
9852
|
+
FooterNoPoweredBy: FooterNoPoweredBy,
|
|
9853
|
+
FooterNoSupportText: FooterNoSupportText
|
|
9852
9854
|
});
|
|
9853
9855
|
|
|
9854
9856
|
const scenario$g = "Feature: Hero Unit\n\n Background: A portal with a hero unit exists\n Given a hosted portal\n And the portal has hero unit on the login page\n And a user is viewing the login page\n\n Scenario: The hero unit defaults to a single column layout\n Given a hero unit does not have a \"columns\" prop\n But the following html is wrapped by the hero unit\n \"\"\"\n <sqm-portal-login></sqm-portal-login>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Get Referring!</h1>\n <p style=\"text-align:center\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur.\n </p>\n </div>\n \"\"\"\n Then only a single column will be displayed\n And within it will be the login component\n\n Scenario Outline: The hero unit supports single or dual column layouts\n Given a hero unit with prop \"columns\" having <columnValue>\n And it wraps <html>\n Then the hero unit displays <columnValue> columns\n Examples:\n | columnValue | html |\n | 1 | <h1>Column 1!</h1> |\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\n\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\n Given a hero unit with \"columns\" \"2\"\n And the following html\n \"\"\"\n <h1>Column 1!</h1>\n <div>\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n When the hero unit is rendered\n Then only one column is displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 1 will contain the \"Column 2!\" text\n When the div for column two is updated to have 'slot=\"secondary-column\"'\n Then the two columns are displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 2 will contain the \"Column 2!\" text\n\n Scenario Outline: A background for the hero unit can be set as an image or colour\n Given a hero unit with <backgroundPropValue>\n Then the background will be <background>\n Examples:\n | background | background |\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\n | LightSlateGrey | light slate grey |\n | #00FF00 | green |\n | rgb(128,0,128) | purple |\n\n Scenario Outline: Wrap Direction can be configured for mobile experiences\n Given a hero unit with the following HTML\n \"\"\"\n <h1>Column 1!</h1>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n And prop \"wrap-direction\" has <value>\n When the window width is less than 600px\n Then the two columns will stack\n And <column> will be on top\n Examples:\n | value | column |\n | wrap | 1 |\n | wrap-reverse | 2 |\n | | 1 |";
|
|
@@ -13019,7 +13021,7 @@ const CopyButtonInside$1 = () => {
|
|
|
13019
13021
|
copyString: "https://noah.example.com",
|
|
13020
13022
|
open: false,
|
|
13021
13023
|
tooltiptext: "Copied!",
|
|
13022
|
-
|
|
13024
|
+
buttonPosition: "inside",
|
|
13023
13025
|
isCopyIcon: false,
|
|
13024
13026
|
})));
|
|
13025
13027
|
};
|
|
@@ -13064,13 +13066,29 @@ const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Ob
|
|
|
13064
13066
|
bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
|
|
13065
13067
|
},
|
|
13066
13068
|
})));
|
|
13069
|
+
const Loading$4 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13070
|
+
...defaultProps$d,
|
|
13071
|
+
states: {
|
|
13072
|
+
error: "",
|
|
13073
|
+
loading: true,
|
|
13074
|
+
},
|
|
13075
|
+
})));
|
|
13076
|
+
const Error$6 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
13077
|
+
...defaultProps$d,
|
|
13078
|
+
states: {
|
|
13079
|
+
error: "Something went wrong. Please try again.",
|
|
13080
|
+
loading: false,
|
|
13081
|
+
},
|
|
13082
|
+
})));
|
|
13067
13083
|
|
|
13068
13084
|
const EmailRegistration = /*#__PURE__*/Object.freeze({
|
|
13069
13085
|
__proto__: null,
|
|
13070
13086
|
'default': EmailRegistration_stories,
|
|
13071
13087
|
Default: Default$e,
|
|
13072
13088
|
HasFirstNameLastName: HasFirstNameLastName,
|
|
13073
|
-
WithSlots: WithSlots
|
|
13089
|
+
WithSlots: WithSlots,
|
|
13090
|
+
Loading: Loading$4,
|
|
13091
|
+
Error: Error$6
|
|
13074
13092
|
});
|
|
13075
13093
|
|
|
13076
13094
|
const CouponCode_stories = {
|
|
@@ -13098,7 +13116,10 @@ const CopyButton$2 = () => {
|
|
|
13098
13116
|
return index.h("sqm-coupon-code", { isCopyIcon: false });
|
|
13099
13117
|
};
|
|
13100
13118
|
const CopyButtonInside$2 = () => {
|
|
13101
|
-
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, {
|
|
13119
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { buttonPosition: "inside", isCopyIcon: false })));
|
|
13120
|
+
};
|
|
13121
|
+
const CopyButtonBelow = () => {
|
|
13122
|
+
return (index.h(ShadowViewAddon.CopyTextView, Object.assign({}, defaultProps$e, { buttonPosition: "below", isCopyIcon: false })));
|
|
13102
13123
|
};
|
|
13103
13124
|
const CustomTooltipDuration$1 = () => {
|
|
13104
13125
|
return (index.h("sqm-coupon-code", { tooltiplifespan: 5000, tooltiptext: "CUSTOM TOOLTIP TEXT" }));
|
|
@@ -13112,10 +13133,11 @@ const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
|
13112
13133
|
TextAlignCenter: TextAlignCenter$2,
|
|
13113
13134
|
CopyButton: CopyButton$2,
|
|
13114
13135
|
CopyButtonInside: CopyButtonInside$2,
|
|
13136
|
+
CopyButtonBelow: CopyButtonBelow,
|
|
13115
13137
|
CustomTooltipDuration: CustomTooltipDuration$1
|
|
13116
13138
|
});
|
|
13117
13139
|
|
|
13118
|
-
const scenario$A = "@author:noah\n@owner:noah\n\nFeature: User Identifier\n\n\
|
|
13140
|
+
const scenario$A = "@author:noah\n@owner:noah\n\nFeature: User Identifier\n\n\tScenario: A user on a passwordless widget\n\t\tGiven a user viewing a passwordless widget\n\t\tAnd the user is identified\n\t\tAnd the user is not logged in\n\t\tThen the component identifies the user by email\n\n\tScenario: Users can switch who they are identified as through a link\n\t\tGiven a user viewing a passwordless widget\n\t\tAnd the user is identified\n\t\tAnd the user is not logged in\n\t\tWhen the user clicks the link in the component\n\t\tThen they are sent back to the registration form to re-identify themselves";
|
|
13119
13141
|
|
|
13120
13142
|
const UserIdentifier_stories = {
|
|
13121
13143
|
title: "Components/User Identifier",
|
|
@@ -13138,10 +13160,10 @@ const UserIdentifier = /*#__PURE__*/Object.freeze({
|
|
|
13138
13160
|
Default: Default$f
|
|
13139
13161
|
});
|
|
13140
13162
|
|
|
13141
|
-
const scenario$B = "@author:noah\n@owner:noah\n\nFeature:
|
|
13163
|
+
const scenario$B = "@author:noah\n@owner:noah\n\nFeature: Link Button\n\n\tScenario: When a user clicks the button a link open\n\t\tWhen a user clicks the button\n\t\tThen a link opens\n\t\tAnd if `openInNewTab` is set to true then the link opens in a new tab";
|
|
13142
13164
|
|
|
13143
13165
|
const LinkButton_stories = {
|
|
13144
|
-
title: "Components/
|
|
13166
|
+
title: "Components/Link Button",
|
|
13145
13167
|
parameters: {
|
|
13146
13168
|
scenario: scenario$B,
|
|
13147
13169
|
},
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
require('./index.module-
|
|
9
|
-
const reRender = require('./re-render-
|
|
8
|
+
require('./index.module-f6afc139.js');
|
|
9
|
+
const reRender = require('./re-render-552514cb.js');
|
|
10
10
|
|
|
11
11
|
const TabView = ({}, children) => {
|
|
12
12
|
return index.h(index.Host, null, children);
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
7
|
require('./use-callback-86e9ac75.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
const reRender = require('./re-render-
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
8
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
9
|
+
const reRender = require('./re-render-552514cb.js');
|
|
10
|
+
const useChildElements = require('./useChildElements-a8f7f5ca.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
|
|
13
13
|
const TabsView = ({ content, placement, }) => {
|
package/dist/cjs/{sqm-user-identifier-view-69b42b84.js → sqm-user-identifier-view-90b36758.js}
RENAMED
|
@@ -4,7 +4,14 @@ const index = require('./index-b0129cd6.js');
|
|
|
4
4
|
const JSS = require('./JSS-8503a151.js');
|
|
5
5
|
|
|
6
6
|
const style = {
|
|
7
|
-
Container: {},
|
|
7
|
+
Container: { color: "var(--sl-color-neutral-600)" },
|
|
8
|
+
Link: {
|
|
9
|
+
textDecoration: "none",
|
|
10
|
+
color: "var(--sl-color-primary-700)",
|
|
11
|
+
"&:hover": {
|
|
12
|
+
color: "var(--sl-color-primary-800)",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
8
15
|
};
|
|
9
16
|
const vanillaStyle = `
|
|
10
17
|
:host{
|
|
@@ -15,13 +22,13 @@ const sheet = JSS.createStyleSheet(style);
|
|
|
15
22
|
const styleString = sheet.toString();
|
|
16
23
|
function UserIdentifierView(props) {
|
|
17
24
|
const { userIdentificationText, switchUserLink, switchUserText } = props;
|
|
18
|
-
return (index.h("span", { class: sheet.classes.Container },
|
|
25
|
+
return (index.h("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
19
26
|
index.h("style", { type: "text/css" },
|
|
20
27
|
styleString,
|
|
21
28
|
vanillaStyle),
|
|
22
29
|
userIdentificationText,
|
|
23
30
|
" (",
|
|
24
|
-
index.h("a", { href: switchUserLink }, switchUserText),
|
|
31
|
+
index.h("a", { class: sheet.classes.Link, href: switchUserLink, part: "sqm-link" }, switchUserText),
|
|
25
32
|
")"));
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -3,11 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
+
require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
+
require('./use-callback-86e9ac75.js');
|
|
8
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
9
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
6
10
|
require('./JSS-8503a151.js');
|
|
7
|
-
const
|
|
8
|
-
const sqmUserIdentifierView = require('./sqm-user-identifier-view-69b42b84.js');
|
|
11
|
+
const sqmUserIdentifierView = require('./sqm-user-identifier-view-90b36758.js');
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
function useUserIdentifier(props) {
|
|
14
|
+
return {
|
|
15
|
+
switchUserLink: props.switchUserLink,
|
|
16
|
+
userIdentificationText: "",
|
|
17
|
+
switchUserText: "",
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const UserIdentifier = class {
|
|
11
22
|
constructor(hostRef) {
|
|
12
23
|
index.registerInstance(this, hostRef);
|
|
13
24
|
/**
|
|
@@ -22,8 +33,20 @@ const Image = class {
|
|
|
22
33
|
this.switchUserText = "not you?";
|
|
23
34
|
}
|
|
24
35
|
render() {
|
|
25
|
-
|
|
36
|
+
const props = index_module.isDemo()
|
|
37
|
+
? useDemoUserIdentifier(this)
|
|
38
|
+
: useUserIdentifier(this);
|
|
39
|
+
return index.h(sqmUserIdentifierView.UserIdentifierView, Object.assign({}, props));
|
|
26
40
|
}
|
|
27
41
|
};
|
|
42
|
+
function useDemoUserIdentifier(props) {
|
|
43
|
+
const switchUserLink = "https://example.com";
|
|
44
|
+
const userIdentificationText = "user@example.com";
|
|
45
|
+
return cjs.cjs({
|
|
46
|
+
switchUserLink,
|
|
47
|
+
userIdentificationText,
|
|
48
|
+
switchUserText: props.switchUserText,
|
|
49
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
50
|
+
}
|
|
28
51
|
|
|
29
|
-
exports.sqm_user_identifier =
|
|
52
|
+
exports.sqm_user_identifier = UserIdentifier;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
5
5
|
|
|
6
6
|
function useChildElements() {
|
|
7
7
|
const host = index_module.R();
|
package/dist/cjs/{usePasswordlessRegistration-9105faa4.js → usePasswordlessRegistration-b10e325f.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
6
|
|
|
7
7
|
function usePasswordlessRegistration() {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
5
|
-
const index_module = require('./index.module-
|
|
6
|
-
const reRender = require('./re-render-
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
5
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
6
|
+
const reRender = require('./re-render-552514cb.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-a8f7f5ca.js');
|
|
8
8
|
const luxon = require('./luxon-53e983a6.js');
|
|
9
9
|
|
|
10
10
|
const mockRewardData = (count = 4) => {
|
package/dist/cjs/{useRegistrationFormState-ed30c0e6.js → useRegistrationFormState-99160dad.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-f6afc139.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
function useRegistrationFormState(formState) {
|
|
@@ -25,7 +25,10 @@ export const CopyButton = () => {
|
|
|
25
25
|
return h("sqm-coupon-code", { isCopyIcon: false });
|
|
26
26
|
};
|
|
27
27
|
export const CopyButtonInside = () => {
|
|
28
|
-
return (h(CopyTextView, Object.assign({}, defaultProps, {
|
|
28
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { buttonPosition: "inside", isCopyIcon: false })));
|
|
29
|
+
};
|
|
30
|
+
export const CopyButtonBelow = () => {
|
|
31
|
+
return (h(CopyTextView, Object.assign({}, defaultProps, { buttonPosition: "below", isCopyIcon: false })));
|
|
29
32
|
};
|
|
30
33
|
export const CustomTooltipDuration = () => {
|
|
31
34
|
return (h("sqm-coupon-code", { tooltiplifespan: 5000, tooltiptext: "CUSTOM TOOLTIP TEXT" }));
|
|
@@ -43,11 +43,11 @@ export class CouponCode {
|
|
|
43
43
|
*/
|
|
44
44
|
this.copyButtonLabel = "Copy Coupon";
|
|
45
45
|
/**
|
|
46
|
-
* Set the copy button
|
|
46
|
+
* Set the copy button position
|
|
47
47
|
*
|
|
48
|
-
* @uiName Copy button
|
|
48
|
+
* @uiName Copy button position
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.buttonPosition = "outside";
|
|
51
51
|
withHooks(this);
|
|
52
52
|
}
|
|
53
53
|
disconnectedCallback() { }
|
|
@@ -189,33 +189,33 @@ export class CouponCode {
|
|
|
189
189
|
"reflect": false,
|
|
190
190
|
"defaultValue": "\"Copy Coupon\""
|
|
191
191
|
},
|
|
192
|
-
"
|
|
193
|
-
"type": "
|
|
192
|
+
"buttonPosition": {
|
|
193
|
+
"type": "string",
|
|
194
194
|
"mutable": false,
|
|
195
195
|
"complexType": {
|
|
196
|
-
"original": "
|
|
197
|
-
"resolved": "
|
|
196
|
+
"original": "\"inside\" | \"outside\" | \"below\"",
|
|
197
|
+
"resolved": "\"below\" | \"inside\" | \"outside\"",
|
|
198
198
|
"references": {}
|
|
199
199
|
},
|
|
200
200
|
"required": false,
|
|
201
201
|
"optional": false,
|
|
202
202
|
"docs": {
|
|
203
203
|
"tags": [{
|
|
204
|
-
"text": "Copy button
|
|
204
|
+
"text": "Copy button position",
|
|
205
205
|
"name": "uiName"
|
|
206
206
|
}],
|
|
207
|
-
"text": "Set the copy button
|
|
207
|
+
"text": "Set the copy button position"
|
|
208
208
|
},
|
|
209
|
-
"attribute": "
|
|
209
|
+
"attribute": "copy-button-position",
|
|
210
210
|
"reflect": false,
|
|
211
|
-
"defaultValue": "
|
|
211
|
+
"defaultValue": "\"outside\""
|
|
212
212
|
},
|
|
213
213
|
"demoData": {
|
|
214
214
|
"type": "unknown",
|
|
215
215
|
"mutable": false,
|
|
216
216
|
"complexType": {
|
|
217
217
|
"original": "DemoData<CopyTextViewProps>",
|
|
218
|
-
"resolved": "{ copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; isCopyIcon?: boolean; textAlign?: \"left\" | \"center\";
|
|
218
|
+
"resolved": "{ copyString?: string; tooltiptext?: string; open?: boolean; copyButtonLabel?: string; disabled?: boolean; isCopyIcon?: boolean; textAlign?: \"left\" | \"center\"; buttonPosition?: \"inside\" | \"outside\" | \"below\"; onClick?: () => void; }",
|
|
219
219
|
"references": {
|
|
220
220
|
"DemoData": {
|
|
221
221
|
"location": "import",
|
|
@@ -250,7 +250,7 @@ function useDemoCouponCode(props) {
|
|
|
250
250
|
tooltiptext: props.tooltiptext,
|
|
251
251
|
isCopyIcon: props.isCopyIcon,
|
|
252
252
|
textAlign: props.textAlign,
|
|
253
|
-
|
|
253
|
+
buttonPosition: props.buttonPosition,
|
|
254
254
|
copyButtonLabel: props.copyButtonLabel,
|
|
255
255
|
open,
|
|
256
256
|
onClick: () => {
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import scenario from "./sqm-link-button.feature";
|
|
3
3
|
import { LinkButtonView } from "./sqm-link-button-view";
|
|
4
4
|
export default {
|
|
5
|
-
title: "Components/
|
|
5
|
+
title: "Components/Link Button",
|
|
6
6
|
parameters: {
|
|
7
7
|
scenario,
|
|
8
8
|
},
|