@saasquatch/mint-components 1.10.2-9 → 1.11.0-0
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-721bb748.js → ShadowViewAddon-21aa34f8.js} +2 -2
- package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-5170d9f1.js} +1 -1
- package/dist/cjs/{global-02e50f09.js → global-4a59a374.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +75 -67
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-28b14d28.js → sqm-invoice-table-view-1ea0d1fe.js} +2 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +10 -9
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-07161940.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-07b99f80.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -28
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +10 -9
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +7 -7
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +18 -11
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +3 -19
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +49 -33
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-31eb5b16.js → ShadowViewAddon-90897c22.js} +2 -2
- package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js} +1 -1
- package/dist/esm/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +75 -67
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +2 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +10 -9
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-referred-registration.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +28 -28
- package/dist/esm-es5/ShadowViewAddon-90897c22.js +1 -0
- package/dist/esm-es5/email-registration-view-07d80492.js +1 -0
- package/dist/esm-es5/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.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-007383e1.entry.js +9 -0
- package/dist/mint-components/p-03deaf76.entry.js +9 -0
- package/dist/mint-components/{p-d6474614.js → p-05948592.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-0e556260.js} +1 -1
- package/dist/mint-components/p-10036f16.js +1 -0
- package/dist/mint-components/{p-0d39c815.system.entry.js → p-445ffcfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4864ed8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-01cfff8a.system.entry.js → p-55a782cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-573fab0f.system.js} +1 -1
- package/dist/mint-components/{p-56f14840.entry.js → p-57e4ef5f.entry.js} +1 -1
- package/dist/mint-components/{p-1fe65a36.entry.js → p-5956a47e.entry.js} +1 -1
- package/dist/mint-components/{p-7049e9b0.entry.js → p-5d485450.entry.js} +1 -1
- package/dist/mint-components/{p-34fd1229.system.entry.js → p-64491c96.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce621bcc.js → p-66172a05.js} +1 -1
- package/dist/mint-components/p-6bf41e0d.system.js +1 -0
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-7a572b34.entry.js} +1 -1
- package/dist/mint-components/p-869c4ee1.system.entry.js +1 -0
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-8fe21979.system.entry.js} +1 -1
- package/dist/mint-components/p-956cd716.system.js +1 -0
- package/dist/mint-components/{p-3ec16698.entry.js → p-956ed10a.entry.js} +1 -1
- package/dist/mint-components/{p-ed17e637.system.js → p-97198e2c.system.js} +1 -1
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-973f6501.system.entry.js} +1 -1
- package/dist/mint-components/{p-8704937c.js → p-9774fbc5.js} +1 -1
- package/dist/mint-components/{p-35d84041.system.entry.js → p-a61e6394.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-b8dbb809.system.entry.js} +1 -1
- package/dist/mint-components/p-be38de26.system.js +1 -0
- package/dist/mint-components/{p-b23d5520.js → p-bfdd2042.js} +1 -1
- package/dist/mint-components/{p-b45ba369.entry.js → p-c6c63bc0.entry.js} +6 -5
- package/dist/mint-components/{p-ed095674.system.js → p-c7a3fd1b.system.js} +1 -1
- package/dist/mint-components/p-cf158064.entry.js +33 -0
- package/dist/mint-components/{p-27bd5535.entry.js → p-d51eb656.entry.js} +1 -1
- package/dist/mint-components/{p-4df8f1d2.system.js → p-d7df3dfd.system.js} +1 -1
- package/dist/mint-components/{p-32d1d162.entry.js → p-dab544d9.entry.js} +1 -1
- package/dist/mint-components/p-e566b746.system.entry.js +1 -0
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e84a74fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-ebcec043.entry.js} +1 -1
- package/dist/mint-components/p-f8f6c99d.system.entry.js +1 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +6 -3
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -1
- package/dist/types/components.d.ts +2 -2
- 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-31eb5b16.js +0 -1
- package/dist/esm-es5/email-registration-view-a89a88bf.js +0 -1
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-509e29e6.js +0 -1
- package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
- package/dist/mint-components/p-a51533cb.system.js +0 -1
- package/dist/mint-components/p-b567780d.system.js +0 -1
- package/dist/mint-components/p-bc51264d.system.js +0 -1
- package/dist/mint-components/p-bf723ae9.entry.js +0 -9
- package/dist/mint-components/p-c34a507e.system.entry.js +0 -1
- package/dist/mint-components/p-e3735866.entry.js +0 -11
- package/dist/mint-components/p-f1a1e7f3.system.entry.js +0 -1
|
@@ -6,7 +6,7 @@ import { CardFeedView } from "./sqm-card-feed-view";
|
|
|
6
6
|
* @uiName Card Feed
|
|
7
7
|
* @slots [{"name":"","title":"Cards"}]
|
|
8
8
|
* @exampleGroup Rewards
|
|
9
|
-
* @example Task Card Feed - <sqm-card-feed gap="24" width="347"> <sqm-task-card reward-amount="20" goal="1" card-title="Complete a Survey" description="Fill out our NPS survey and get 20 points for giving us honest feedback." button-text="Take survey" reward-unit="Points" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" finite="0" starts-on-message="Starts {startDate}" > </sqm-task-card> <sqm-task-card reward-amount="250" goal="500" show-progress-bar card-title="Spend $500" description="Earn 250 points when you spend $500 or more." button-text="See plans" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" progress-bar-unit="$" finite="0" reward-unit="Points" starts-on-message="Starts {startDate}" > </sqm-task-card> <sqm-task-card goal="1" reward-amount="50" card-title="Follow Us on
|
|
9
|
+
* @example Task Card Feed - <sqm-card-feed gap="24" width="347"> <sqm-task-card reward-amount="20" goal="1" card-title="Complete a Survey" description="Fill out our NPS survey and get 20 points for giving us honest feedback." button-text="Take survey" reward-unit="Points" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" finite="0" starts-on-message="Starts {startDate}" > </sqm-task-card> <sqm-task-card reward-amount="250" goal="500" show-progress-bar card-title="Spend $500" description="Earn 250 points when you spend $500 or more." button-text="See plans" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" progress-bar-unit="$" finite="0" reward-unit="Points" starts-on-message="Starts {startDate}" > </sqm-task-card> <sqm-task-card goal="1" reward-amount="50" card-title="Follow Us on Twitter" description="Earn 50 points when you follow us on Twitter!" button-text="Follow" button-link="https://twitter.com/" open-new-tab="true" event-key="socialFollow" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" finite="0" reward-unit="Points" starts-on-message="Starts {startDate}" > </sqm-task-card> <sqm-task-card reward-amount="1" reward-unit="Free Month" goal="1" card-title="Upgrade Your Plan" description="Receive one free month for being a committed customer when you upgrade your plan." button-text="Upgrade" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" open-new-tab="false" finite="0" starts-on-message="Starts {startDate}" > </sqm-task-card> </sqm-card-feed>
|
|
10
10
|
*/
|
|
11
11
|
export class CardFeed {
|
|
12
12
|
constructor() {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { setUserIdentity, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { gql } from "graphql-request";
|
|
3
3
|
const GET_USER_DETAILS = gql `
|
|
4
|
-
query getUserDetails {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
email
|
|
10
|
-
}
|
|
4
|
+
query getUserDetails($id: String!, $accountId: String!) {
|
|
5
|
+
user(id: $id, accountId: $accountId) {
|
|
6
|
+
id
|
|
7
|
+
accountId
|
|
8
|
+
email
|
|
11
9
|
}
|
|
12
10
|
}
|
|
13
11
|
`;
|
|
14
12
|
export function useLogoutCurrentUser(props) {
|
|
15
13
|
var _a, _b;
|
|
16
14
|
const user = useUserIdentity();
|
|
17
|
-
const { loading, data } = useQuery(GET_USER_DETAILS, {
|
|
15
|
+
const { loading, data } = useQuery(GET_USER_DETAILS, {
|
|
16
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
17
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
18
|
+
}, !user);
|
|
18
19
|
const onSwitchClick = () => {
|
|
19
20
|
setUserIdentity(undefined);
|
|
20
21
|
};
|
|
21
|
-
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.
|
|
22
|
+
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.email);
|
|
22
23
|
return {
|
|
23
24
|
loading,
|
|
24
25
|
onSwitchClick,
|
|
@@ -13,37 +13,37 @@ export const TooWideColumn = () => (h("div", { style: { width: "200px", border:
|
|
|
13
13
|
export const TooWideRow = () => (h("div", { style: { width: "500px", border: "1px dashed grey" } },
|
|
14
14
|
h("sqm-portal-container", { gap: "xxx-large", direction: "row", "min-width": "160px" },
|
|
15
15
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
16
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
16
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
17
17
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
18
18
|
export const TooWideSmallGap = () => (h("div", { style: { width: "500px", border: "1px dashed grey" } },
|
|
19
19
|
h("sqm-portal-container", { gap: "small", direction: "row", "min-width": "160px" },
|
|
20
20
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
21
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
21
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
22
22
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
23
23
|
export const TooWidePadding = () => (h("div", { style: { width: "500px", border: "1px dashed grey" } },
|
|
24
24
|
h("sqm-portal-container", { padding: "xxx-large", gap: "xxx-large", direction: "row", "min-width": "160px" },
|
|
25
25
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
26
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
26
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
27
27
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
28
28
|
export const TooWideDisplayFlex = () => (h("div", { style: { width: "500px", border: "1px dashed grey" } },
|
|
29
29
|
h("sqm-portal-container", { gap: "xxx-large", direction: "row", display: "flex", "min-width": "160px" },
|
|
30
30
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
31
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
31
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
32
32
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
33
33
|
export const HalfWidth = () => (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
34
34
|
h("sqm-portal-container", { gap: "xxx-large", direction: "row", minWidth: "160px", maxWidth: "50%" },
|
|
35
35
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
36
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
36
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
37
37
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
38
38
|
export const HalfWidthCenter = () => (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
39
39
|
h("sqm-portal-container", { gap: "xxx-large", direction: "row", minWidth: "160px", maxWidth: "50%", center: true },
|
|
40
40
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
41
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
41
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
42
42
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
43
43
|
export const FullWidth = () => (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
44
44
|
h("sqm-portal-container", { gap: "xxx-large", direction: "row", maxWidth: "100%" },
|
|
45
45
|
h("sqm-share-button", { icon: "envelope", medium: "email", size: "medium", class: "hydrated" }, "Email a friend"),
|
|
46
|
-
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "
|
|
46
|
+
h("sqm-share-button", { medium: "twitter", size: "medium", class: "hydrated" }, "Tweet about us"),
|
|
47
47
|
h("sqm-share-button", { medium: "facebook", size: "medium", class: "hydrated" }, "Share on Facebook"))));
|
|
48
48
|
export const SpaceBetween = () => {
|
|
49
49
|
return (h("div", { style: { width: "1000px", border: "1px dashed grey" } },
|
|
@@ -19,7 +19,7 @@ const sharebutton = (slot) => {
|
|
|
19
19
|
h("sqm-portal-container", { gap: "x-small" },
|
|
20
20
|
h("sqm-share-button", { medium: "email" }, "Share via email"),
|
|
21
21
|
h("sqm-share-button", { medium: "facebook" }, "Share on Facebook"),
|
|
22
|
-
h("sqm-share-button", { medium: "twitter" }, "
|
|
22
|
+
h("sqm-share-button", { medium: "twitter" }, "Tweet about us"))));
|
|
23
23
|
};
|
|
24
24
|
const timeline = (slot, count) => {
|
|
25
25
|
return (h("sqm-timeline", { slot: slot, icon: "circle" },
|
|
@@ -83,7 +83,7 @@ export const AllMediums = () => {
|
|
|
83
83
|
h("span", null, "Linkedin")),
|
|
84
84
|
h("br", null),
|
|
85
85
|
h("sqm-share-button", { medium: "twitter" },
|
|
86
|
-
h("span", null, "
|
|
86
|
+
h("span", null, "Twitter")),
|
|
87
87
|
h("br", null),
|
|
88
88
|
h("sqm-share-button", { medium: "pinterest" },
|
|
89
89
|
h("span", null, "Pinterest")),
|
|
@@ -3,7 +3,7 @@ import { createStyleSheet } from "../../styling/JSS";
|
|
|
3
3
|
import { HostBlock } from "../../global/mixins";
|
|
4
4
|
const medium = {
|
|
5
5
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
6
|
-
twitter: { color: "#
|
|
6
|
+
twitter: { color: "#1da1f2", text: "#fff", icon: "twitter" },
|
|
7
7
|
email: { color: "#666666", text: "#fff", icon: "envelope" },
|
|
8
8
|
direct: { color: "var(--sl-color-primary-500)", text: "#fff", icon: "send" },
|
|
9
9
|
linkedin: { color: "#0077b5", text: "#fff", icon: "linkedin" },
|
|
@@ -12,7 +12,7 @@ import deepmerge from "deepmerge";
|
|
|
12
12
|
* @uiOrder ["medium", "program-id", "*", "pill", "disabled", "hideicon"]
|
|
13
13
|
* @exampleGroup Sharing
|
|
14
14
|
* @example Facebook Share Button - <sqm-share-button medium="facebook">Share on Facebook</sqm-share-button>
|
|
15
|
-
* @example
|
|
15
|
+
* @example Twitter Share Button - <sqm-share-button medium="twitter">Share via Tweet</sqm-share-button>
|
|
16
16
|
* @example Email Share Button - <sqm-share-button medium="email">Share via Email</sqm-share-button>
|
|
17
17
|
* @example Web Share Sheet Share Button - <sqm-share-button medium="direct">Share</sqm-share-button>
|
|
18
18
|
* @example LinkedIn Share Button - <sqm-share-button medium="linkedin">Share on LinkedIn</sqm-share-button>
|
|
@@ -102,7 +102,7 @@ export class ShareButton {
|
|
|
102
102
|
"text": "[\"facebook\", \"twitter\", \"email\", \"direct\", \"linkedin\", \"sms\", \"fbmessenger\", \"whatsapp\", \"linemessenger\", \"pinterest\" ]",
|
|
103
103
|
"name": "uiEnum"
|
|
104
104
|
}, {
|
|
105
|
-
"text": "[\"Facebook\", \"
|
|
105
|
+
"text": "[\"Facebook\", \"Twitter\", \"Email\", \"Web Share Sheet\", \"Linkedin\", \"SMS\", \"Facebook Messenger\", \"Whatsapp\", \"Line Messenger\", \"Pinterest\"]",
|
|
106
106
|
"name": "uiEnumNames"
|
|
107
107
|
}],
|
|
108
108
|
"text": "The social medium to share on. Share messages and links\nwill be pulled from your program config and tagged for analytics."
|
|
@@ -50,7 +50,7 @@ export const TaskCardFeed = createHookStory(() => {
|
|
|
50
50
|
return (h("sqm-card-feed", null,
|
|
51
51
|
h("sqm-task-card", { "reward-amount": "75", "card-title": "Refer a Friend", description: "Invite a friend to Klip and get 75 points when they signup for a free trial or contact our us about an enterprise license.", "button-text": "Start referring", "button-link": "https://klip-staging.vercel.app/app/klip-rewards", goal: 1, repeatable: true, "completed-text": "", demoData: "", "ended-message": "", "event-key": "", "expiry-message": "", "progress-bar-unit": "", "reward-duration": "2022-01-04T08:00:00.000Z/2022-01-20T08:00:00.000Z", "reward-unit": "", "starts-on-message": "", "stat-type": "", "display-duration": "2022-01-04T08:00:00.000Z/2022-01-05T08:00:00.000Z" }),
|
|
52
52
|
h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
53
|
-
h("sqm-task-card", { "reward-amount": "50", "card-title": "Follow Us on
|
|
53
|
+
h("sqm-task-card", { "reward-amount": "50", "card-title": "Follow Us on Twitter", description: "Earn 50 points when you follow us on Twitter!", "button-text": "Follow", "button-link": "https://twitter.com/", goal: 1, "stat-type": "/programGoals/count/Follow-on-Social-Media", "open-new-tab": "true", "event-key": "socialFollow" })),
|
|
54
54
|
h("sqm-task-card", { "reward-amount": "250", goal: 500, "show-progress-bar": "true", "card-title": "Spend $500 on Klip Products", description: "Earn 250 points when you spend $500 or more on Klip products.", "button-text": "See plans", "button-link": "https://klip-staging.vercel.app/app/plans", "stat-type": "/customFields/purchaseTotal", "open-new-tab": "false" }),
|
|
55
55
|
h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
56
56
|
h("sqm-task-card", { "reward-amount": "25", goal: 1, "card-title": "Upload Your First Video", description: "Earn 25 points for exploring the Klip platform when you upload your first video.", "button-text": "Upload", "button-link": "https://klip-staging.vercel.app/app", "stat-type": "/programGoals/count/Record-First-Video", "open-new-tab": "false" })),
|
|
@@ -13,7 +13,7 @@ import { useTaskCard } from "./useTaskCard";
|
|
|
13
13
|
* @exampleGroup Rewards
|
|
14
14
|
* @example One Time Task Card - <sqm-task-card reward-amount="1" reward-unit="Free Month" goal="1" card-title="Upgrade Your Plan" description="Receive one free month for being a committed customer when you upgrade your plan." button-text="Upgrade" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" open-new-tab="false" finite="0" starts-on-message="Starts {startDate}"></sqm-task-card>
|
|
15
15
|
* @example Repeatable Task Card - <sqm-task-card reward-amount="250" goal="500" show-progress-bar card-title="Spend $500" description="Earn 250 points when you spend $500 or more." button-text="See plans" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" progress-bar-unit="$" finite="0" repeatable="" reward-unit="Points" starts-on-message="Starts {startDate}"></sqm-task-card>
|
|
16
|
-
* @example Event Sending Task Card - <sqm-task-card goal="1" reward-amount="50" card-title="Follow Us on
|
|
16
|
+
* @example Event Sending Task Card - <sqm-task-card goal="1" reward-amount="50" card-title="Follow Us on Twitter" description="Earn 50 points when you follow us on Twitter!" button-text="Follow" button-link="https://twitter.com/" open-new-tab="true" event-key="socialFollow" completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}" ended-message="Ended {endDate}" expiry-message="Ends {endDate}" finite="0" reward-unit="Points" starts-on-message="Starts {startDate}"></sqm-task-card>
|
|
17
17
|
*/
|
|
18
18
|
export class TaskCard {
|
|
19
19
|
constructor() {
|
package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { createStyleSheet } from "../../../../styling/JSS";
|
|
3
|
-
import { useCallback, useEffect } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { useCallback, useEffect, } from "@saasquatch/universal-hooks";
|
|
4
4
|
import { DOCUSIGN_EXPIRED_STATES, DOCUSIGN_ERROR_STATES, } from "../useDocusignForm";
|
|
5
5
|
const style = {
|
|
6
6
|
DocusignStatusContainer: {
|
|
7
7
|
width: "100%",
|
|
8
|
-
|
|
8
|
+
minHeight: "600px",
|
|
9
|
+
height: "900px",
|
|
9
10
|
display: "flex",
|
|
10
11
|
flexDirection: "column",
|
|
11
12
|
alignItems: "center",
|
|
@@ -59,21 +60,26 @@ export const DocusignLoadingView = () => {
|
|
|
59
60
|
h("div", { class: classes.DocusignStatusContainer },
|
|
60
61
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
61
62
|
};
|
|
62
|
-
export const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
63
|
+
export const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
63
64
|
if (states.urlLoading)
|
|
64
65
|
return h(DocusignLoadingView, null);
|
|
66
|
+
// TODO: Confirm impact domain before launch
|
|
67
|
+
const allowedDomains = [
|
|
68
|
+
"referralsaasquatch.com",
|
|
69
|
+
"impacttech.complysandbox.com",
|
|
70
|
+
];
|
|
65
71
|
const callback = useCallback((e) => {
|
|
66
|
-
var _a;
|
|
67
|
-
if (!
|
|
72
|
+
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
73
|
+
if (!allowed)
|
|
68
74
|
return;
|
|
69
|
-
if (
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
if (e.data === "Complyexchange Thank you page Exit") {
|
|
76
|
+
callbacks.progressStep();
|
|
77
|
+
}
|
|
72
78
|
}, []);
|
|
73
79
|
useEffect(() => {
|
|
74
|
-
window.addEventListener("message", callback);
|
|
80
|
+
window.addEventListener("message", callback, false);
|
|
75
81
|
return () => {
|
|
76
|
-
window.removeEventListener("message", callback);
|
|
82
|
+
window.removeEventListener("message", callback, false);
|
|
77
83
|
};
|
|
78
84
|
}, []);
|
|
79
85
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -81,5 +87,6 @@ export const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
|
81
87
|
}
|
|
82
88
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
83
89
|
return h(DocusignExpiredView, { text: text });
|
|
84
|
-
return (h("iframe", { frameBorder: "0", src:
|
|
90
|
+
return (h("iframe", { frameBorder: "0", src: data.documentUrl, width: "100%", height: "1000px" }));
|
|
85
91
|
};
|
|
92
|
+
// NWH4QF
|
|
@@ -140,7 +140,7 @@ const vanillaStyle = `
|
|
|
140
140
|
|
|
141
141
|
`;
|
|
142
142
|
export const DocusignFormView = (props) => {
|
|
143
|
-
var _a
|
|
143
|
+
var _a;
|
|
144
144
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
145
145
|
const { classes } = sheet;
|
|
146
146
|
return (h("div", { class: classes.Container },
|
|
@@ -166,23 +166,7 @@ export const DocusignFormView = (props) => {
|
|
|
166
166
|
h("strong", null, text.error.generalTitle),
|
|
167
167
|
h("br", null),
|
|
168
168
|
text.error.generalDescription)),
|
|
169
|
-
|
|
170
|
-
h("p", { class: classes.BoldText }, text.participantType),
|
|
171
|
-
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
172
|
-
h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
173
|
-
if (states.disabled || states.participantTypeDisabled)
|
|
174
|
-
return;
|
|
175
|
-
callbacks.setParticipantType("individualParticipant");
|
|
176
|
-
} },
|
|
177
|
-
h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
178
|
-
h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
179
|
-
if (states.disabled || states.participantTypeDisabled)
|
|
180
|
-
return;
|
|
181
|
-
callbacks.setParticipantType("businessEntity");
|
|
182
|
-
} },
|
|
183
|
-
h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
184
|
-
((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (h("p", { class: classes.ErrorText }, text.error.participantType)))),
|
|
185
|
-
(states.documentType === "W9" || formState.participantType) && (h("div", null,
|
|
169
|
+
h("div", null,
|
|
186
170
|
h("div", null,
|
|
187
171
|
h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
188
172
|
h("p", null, intl.formatMessage({
|
|
@@ -197,5 +181,5 @@ export const DocusignFormView = (props) => {
|
|
|
197
181
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
198
182
|
h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
|
|
199
183
|
text.docusignSessionWarning),
|
|
200
|
-
slots.docusignIframeSlot))))
|
|
184
|
+
slots.docusignIframeSlot))));
|
|
201
185
|
};
|
|
@@ -131,12 +131,14 @@ export class DocusignForm {
|
|
|
131
131
|
const _isDemo = isDemo();
|
|
132
132
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
133
133
|
const docusignIframeSlot = (h(DocusignIframe, { states: {
|
|
134
|
-
url: props.data.documentUrl,
|
|
135
134
|
status: props.states.docusignStatus,
|
|
136
135
|
loading: props.states.loading,
|
|
137
136
|
urlLoading: props.states.urlLoading,
|
|
137
|
+
}, data: {
|
|
138
|
+
documentUrl: props.data.documentUrl,
|
|
139
|
+
returnUrl: props.data.returnUrl,
|
|
138
140
|
}, callbacks: {
|
|
139
|
-
|
|
141
|
+
progressStep: props.callbacks.progressStep,
|
|
140
142
|
}, text: props.text }));
|
|
141
143
|
return (h(Host, null,
|
|
142
144
|
h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
@@ -560,7 +562,7 @@ export class DocusignForm {
|
|
|
560
562
|
"mutable": false,
|
|
561
563
|
"complexType": {
|
|
562
564
|
"original": "DemoData<UseDocusignFormResult>",
|
|
563
|
-
"resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; participantTypeDisabled: boolean; loading: boolean; urlLoading: boolean; loadingError: boolean; formState: { participantType: ParticipantType; taxFormExpired: boolean; errors: {}; }; docusignStatus: DocusignStatus; documentType: TaxDocumentType; documentTypeString: string; }; data?: { taxForm: TaxDocumentType; documentUrl: string; }; }",
|
|
565
|
+
"resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; participantTypeDisabled: boolean; loading: boolean; urlLoading: boolean; loadingError: boolean; formState: { participantType: ParticipantType; taxFormExpired: boolean; errors: {}; }; docusignStatus: DocusignStatus; documentType: TaxDocumentType; documentTypeString: string; }; data?: { taxForm: TaxDocumentType; documentUrl: string; returnUrl: string; }; }",
|
|
564
566
|
"references": {
|
|
565
567
|
"DemoData": {
|
|
566
568
|
"location": "import",
|
|
@@ -11,6 +11,7 @@ const GET_TAX_DOCUMENT = gql `
|
|
|
11
11
|
createImpactPublisherTaxDocumentInput: $vars
|
|
12
12
|
) {
|
|
13
13
|
documentUrl
|
|
14
|
+
returnUrl
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
`;
|
|
@@ -23,7 +24,7 @@ export const DOCUSIGN_ERROR_STATES = [
|
|
|
23
24
|
export const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
24
25
|
export const DOCUSIGN_SUCCESS_STATES = ["signing_complete", "viewing_complete"];
|
|
25
26
|
export function useDocusignForm(props) {
|
|
26
|
-
var _a, _b, _c, _d, _e;
|
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27
28
|
const user = useUserIdentity();
|
|
28
29
|
const context = useParentValue(TAX_FORM_CONTEXT_NAMESPACE);
|
|
29
30
|
const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
|
|
@@ -50,15 +51,9 @@ export function useDocusignForm(props) {
|
|
|
50
51
|
}
|
|
51
52
|
}, [existingDocumentType]);
|
|
52
53
|
useEffect(() => {
|
|
53
|
-
var _a;
|
|
54
54
|
// Skip if no publisher info
|
|
55
55
|
if (!user || !publisher)
|
|
56
56
|
return;
|
|
57
|
-
// Skip on initial load of W8 case
|
|
58
|
-
if (((_a = publisher.requiredTaxDocumentType) === null || _a === void 0 ? void 0 : _a.startsWith("W8")) &&
|
|
59
|
-
!publisher.currentTaxDocument &&
|
|
60
|
-
!participantType)
|
|
61
|
-
return;
|
|
62
57
|
const fetchDocument = async () => {
|
|
63
58
|
try {
|
|
64
59
|
const result = await createTaxDocument({
|
|
@@ -81,33 +76,52 @@ export function useDocusignForm(props) {
|
|
|
81
76
|
};
|
|
82
77
|
fetchDocument();
|
|
83
78
|
}, [user, publisher, participantType]);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
catch (e) {
|
|
98
|
-
setErrors({ general: true });
|
|
99
|
-
}
|
|
100
|
-
finally {
|
|
101
|
-
setLoading(false);
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
// Handled in view
|
|
105
|
-
if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
|
|
106
|
-
return;
|
|
107
|
-
if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
108
|
-
onSubmit();
|
|
79
|
+
const progressStep = async () => {
|
|
80
|
+
// TODO: Needs graphql call to determine status of document
|
|
81
|
+
try {
|
|
82
|
+
setLoading(true);
|
|
83
|
+
await refetch();
|
|
84
|
+
// Skip banking info form if it already is saved
|
|
85
|
+
// or if brandedSignup is false
|
|
86
|
+
setStep(context.overrideNextStep ||
|
|
87
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
88
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
89
|
+
? "/dashboard"
|
|
90
|
+
: "/4");
|
|
109
91
|
}
|
|
110
|
-
|
|
92
|
+
catch (e) {
|
|
93
|
+
setErrors({ general: true });
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
setLoading(false);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
// useEffect(() => {
|
|
100
|
+
// const onSubmit = async () => {
|
|
101
|
+
// try {
|
|
102
|
+
// setLoading(true);
|
|
103
|
+
// await refetch();
|
|
104
|
+
// // Skip banking info form if it already is saved
|
|
105
|
+
// // or if brandedSignup is false
|
|
106
|
+
// setStep(
|
|
107
|
+
// context.overrideNextStep ||
|
|
108
|
+
// !!publisher?.withdrawalSettings ||
|
|
109
|
+
// !publisher?.brandedSignup
|
|
110
|
+
// ? "/dashboard"
|
|
111
|
+
// : "/4"
|
|
112
|
+
// );
|
|
113
|
+
// } catch (e) {
|
|
114
|
+
// setErrors({ general: true });
|
|
115
|
+
// } finally {
|
|
116
|
+
// setLoading(false);
|
|
117
|
+
// }
|
|
118
|
+
// };
|
|
119
|
+
// // Handled in view
|
|
120
|
+
// if (DOCUSIGN_ERROR_STATES.includes(docusignStatus)) return;
|
|
121
|
+
// if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
122
|
+
// onSubmit();
|
|
123
|
+
// }
|
|
124
|
+
// }, [docusignStatus, refetch]);
|
|
111
125
|
const allLoading = userLoading || documentLoading || loading;
|
|
112
126
|
return {
|
|
113
127
|
states: {
|
|
@@ -130,9 +144,11 @@ export function useDocusignForm(props) {
|
|
|
130
144
|
data: {
|
|
131
145
|
taxForm: actualDocumentType,
|
|
132
146
|
documentUrl: (_e = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _e === void 0 ? void 0 : _e.documentUrl,
|
|
147
|
+
returnUrl: (_f = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _f === void 0 ? void 0 : _f.returnUrl,
|
|
133
148
|
},
|
|
134
149
|
callbacks: {
|
|
135
150
|
setDocusignStatus,
|
|
151
|
+
progressStep,
|
|
136
152
|
setParticipantType,
|
|
137
153
|
},
|
|
138
154
|
text: props.getTextProps(),
|
|
@@ -42,7 +42,7 @@ export function EmailRegistrationView(props) {
|
|
|
42
42
|
h("div", { part: "erroralert-text" }, error)));
|
|
43
43
|
};
|
|
44
44
|
const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
45
|
-
return (h("div", {
|
|
45
|
+
return (h("div", { class: sheet.classes.Wrapper, style: {
|
|
46
46
|
border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
|
|
47
47
|
backgroundColor: content.backgroundColor,
|
|
48
48
|
"padding-top": `var(--sl-spacing-${content.paddingTop})`,
|
|
@@ -19,7 +19,7 @@ try {
|
|
|
19
19
|
// SlAlert.register();
|
|
20
20
|
registerIconLibrary("default", {
|
|
21
21
|
// same link that shoelace uses internally
|
|
22
|
-
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.
|
|
22
|
+
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.7.2/icons/${name}.svg`,
|
|
23
23
|
});
|
|
24
24
|
// SlAlert.register();
|
|
25
25
|
customElements.define("sl-alert", SlAlert);
|
|
@@ -152,7 +152,7 @@ export const Dashboard = () => {
|
|
|
152
152
|
gap: "xxx-large",
|
|
153
153
|
minWidth: "150px",
|
|
154
154
|
}),
|
|
155
|
-
h(ShareButtonView, Object.assign({}, twitterButtonProps), "
|
|
155
|
+
h(ShareButtonView, Object.assign({}, twitterButtonProps), "Tweet about us"),
|
|
156
156
|
h(ShareButtonView, Object.assign({}, facebookButtonProps), "Share on Facebook"),
|
|
157
157
|
h(ShareButtonView, Object.assign({}, linkedinButtonProps), "Post on Linkedin"))),
|
|
158
158
|
}))))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-e7bb0343.js';
|
|
4
4
|
import { d as dist, H, Q, y as yn, f as $e, B, a as getEnvironmentSDK, L } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
@@ -15,7 +15,7 @@ import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-c
|
|
|
15
15
|
|
|
16
16
|
const medium = {
|
|
17
17
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
18
|
-
twitter: { color: "#
|
|
18
|
+
twitter: { color: "#1da1f2", text: "#fff", icon: "twitter" },
|
|
19
19
|
email: { color: "#666666", text: "#fff", icon: "envelope" },
|
|
20
20
|
direct: { color: "var(--sl-color-primary-500)", text: "#fff", icon: "send" },
|
|
21
21
|
linkedin: { color: "#0077b5", text: "#fff", icon: "linkedin" },
|
package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js}
RENAMED
|
@@ -43,7 +43,7 @@ function EmailRegistrationView(props) {
|
|
|
43
43
|
h("div", { part: "erroralert-text" }, error)));
|
|
44
44
|
};
|
|
45
45
|
const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
46
|
-
return (h("div", {
|
|
46
|
+
return (h("div", { class: sheet.classes.Wrapper, style: {
|
|
47
47
|
border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
|
|
48
48
|
backgroundColor: content.backgroundColor,
|
|
49
49
|
"padding-top": `var(--sl-spacing-${content.paddingTop})`,
|
|
@@ -26646,7 +26646,7 @@ try {
|
|
|
26646
26646
|
// SlAlert.register();
|
|
26647
26647
|
registerIconLibrary("default", {
|
|
26648
26648
|
// same link that shoelace uses internally
|
|
26649
|
-
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.
|
|
26649
|
+
resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.7.2/icons/${name}.svg`,
|
|
26650
26650
|
});
|
|
26651
26651
|
// SlAlert.register();
|
|
26652
26652
|
customElements.define("sl-alert", alert_default2);
|
package/dist/esm/loader.js
CHANGED