@saasquatch/mint-components 2.1.10-57 → 2.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-a26deae6.js → ShadowViewAddon-c97e80de.js} +422 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +264 -92
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-c81fe7f1.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-639337e3.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-020f661c.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-6b1acd90.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-424e406a.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +168 -59
- package/dist/cjs/{sqm-text-span-view-f274fdf2.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/esm/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-33f1a8f7.js} +424 -22
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +265 -92
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-04528277.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
- package/dist/esm/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +168 -59
- package/dist/esm/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/ShadowViewAddon-33f1a8f7.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-04528277.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-ab0ea688.system.entry.js → p-00b235c5.system.entry.js} +1 -1
- package/dist/mint-components/p-08930b83.js +499 -0
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
- package/dist/mint-components/{p-25558a33.entry.js → p-13292317.entry.js} +1 -1
- package/dist/mint-components/{p-d65991d0.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-d4570314.entry.js → p-1d92c169.entry.js} +1 -1
- package/dist/mint-components/{p-7161e1a6.js → p-2668335b.js} +1 -1
- package/dist/mint-components/{p-6e512063.entry.js → p-3af3e2c1.entry.js} +1 -1
- package/dist/mint-components/{p-5ff7b000.entry.js → p-40bad95a.entry.js} +1 -1
- package/dist/mint-components/{p-f35d856a.system.js → p-43c31fd5.system.js} +1 -1
- package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
- package/dist/mint-components/{p-dac20392.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/{p-7b909aa5.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/p-76271ec4.entry.js +9 -0
- package/dist/mint-components/p-78b40f71.system.js +1 -0
- package/dist/mint-components/{p-cb0a5990.entry.js → p-7939e4af.entry.js} +1 -1
- package/dist/mint-components/{p-e6ace3ab.js → p-832aea99.js} +1 -1
- package/dist/mint-components/{p-746500b2.entry.js → p-8784539d.entry.js} +21 -29
- package/dist/mint-components/{p-b9f57e84.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/{p-fbe00c97.system.entry.js → p-892797eb.system.entry.js} +1 -1
- package/dist/mint-components/{p-d997001a.js → p-8962e023.js} +1 -1
- package/dist/mint-components/{p-dd368927.system.entry.js → p-9390586b.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c46b4dd.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/{p-058aefe1.entry.js → p-af407cce.entry.js} +1 -1
- package/dist/mint-components/{p-56ca7e3c.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-70570e4d.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-c67f8558.system.entry.js → p-bba16a46.system.entry.js} +1 -1
- package/dist/mint-components/{p-669d52c4.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/p-c3c8d4ee.system.entry.js +1 -0
- package/dist/mint-components/{p-cabf6326.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -1
- package/dist/mint-components/{p-18133026.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/{p-692e14c5.system.js → p-d55c50af.system.js} +1 -1
- package/dist/mint-components/p-dd12c32a.system.entry.js +1 -0
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-fb5c9802.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/{p-aefc6c4f.system.entry.js → p-e9485160.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0baeed0.entry.js → p-f6528f8a.entry.js} +1 -1
- package/dist/mint-components/{p-5141769d.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
- package/dist/mint-components/{p-e4f17c21.system.js → p-f8026ed6.system.js} +1 -1
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components.d.ts +349 -80
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +122783 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +0 -25
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +0 -19
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +0 -172
- package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +0 -26
- package/dist/esm-es5/ShadowViewAddon-47f1e579.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/mint-components/p-217dedde.js +0 -463
- package/dist/mint-components/p-4007afba.system.entry.js +0 -1
- package/dist/mint-components/p-445f50cc.entry.js +0 -9
- package/dist/mint-components/p-55676213.entry.js +0 -1
- package/dist/mint-components/p-89a20547.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-ce050888.system.js +0 -1
- package/dist/mint-components/p-e3497e0e.system.entry.js +0 -1
- package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +0 -7
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +0 -8
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +0 -45
- package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +0 -3
|
@@ -12,9 +12,9 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
12
12
|
require('./useReferralCodes-0f7948af.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
14
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
15
|
-
require('./sqm-text-span-view-
|
|
16
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-
|
|
17
|
-
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-
|
|
15
|
+
require('./sqm-text-span-view-b9e10f5d.js');
|
|
16
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-717d0633.js');
|
|
17
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
|
|
18
18
|
const GenericTableView = require('./GenericTableView-be5648e4.js');
|
|
19
19
|
require('./useChildElements-041127d7.js');
|
|
20
20
|
const luxon = require('./luxon-c1ad356a.js');
|
|
@@ -27,14 +27,14 @@ const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-67fd7934.js'
|
|
|
27
27
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-f330d641.js');
|
|
28
28
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-6616e3e0.js');
|
|
29
29
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-49b152dd.js');
|
|
30
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
31
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
30
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-abb773a7.js');
|
|
31
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-3515e1e5.js');
|
|
32
32
|
require('./utilities-fcdb9504.js');
|
|
33
|
-
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-
|
|
33
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-a767b044.js');
|
|
34
34
|
require('./ErrorView-ee7b0f36.js');
|
|
35
35
|
const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
|
|
36
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
37
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
36
|
+
const ShadowViewAddon = require('./ShadowViewAddon-c97e80de.js');
|
|
37
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-757f921b.js');
|
|
38
38
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
|
|
39
39
|
const data = require('./data-8c8a08f6.js');
|
|
40
40
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-0cd7ebdb.js');
|
|
@@ -14055,21 +14055,145 @@ const CustomStyles$1 = () => {
|
|
|
14055
14055
|
return index.h(copyTextView.CopyTextView, Object.assign({}, props));
|
|
14056
14056
|
};
|
|
14057
14057
|
const CustomStylesWithDemoHooks = () => {
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14058
|
+
return (index.h("sqm-share-link", { demoData: {
|
|
14059
|
+
copyTextViewProps: {
|
|
14060
|
+
copyString: "https://noah.example.com",
|
|
14061
|
+
open: false,
|
|
14062
|
+
tooltiptext: "Copied!",
|
|
14063
|
+
backgroundColor: "#1ed760",
|
|
14064
|
+
borderRadius: "30px",
|
|
14065
|
+
textColor: "red",
|
|
14066
|
+
buttonType: "primary",
|
|
14067
|
+
borderColor: "#121212",
|
|
14068
|
+
},
|
|
14069
|
+
}, backgroundColor: "#1ed760" }));
|
|
14069
14070
|
};
|
|
14070
14071
|
const FullStack = () => {
|
|
14071
14072
|
return index.h("sqm-share-link", null);
|
|
14072
14073
|
};
|
|
14074
|
+
// Customize URL stories
|
|
14075
|
+
const noopFn = () => { };
|
|
14076
|
+
const defaultCustomizeProps = {
|
|
14077
|
+
copyTextViewProps: {
|
|
14078
|
+
copyString: "https://ssqt.co/abc123",
|
|
14079
|
+
open: false,
|
|
14080
|
+
tooltiptext: "Copied!",
|
|
14081
|
+
},
|
|
14082
|
+
allowCustomization: true,
|
|
14083
|
+
customizeLinkLabel: "Customize Link",
|
|
14084
|
+
saveLabelText: "Save",
|
|
14085
|
+
savingLabelText: "Saving...",
|
|
14086
|
+
cancelLabelText: "Cancel",
|
|
14087
|
+
editLabelText: "Edit your link",
|
|
14088
|
+
charactersRemainingText: "{count} characters remaining",
|
|
14089
|
+
validatingLabelText: "Validating...",
|
|
14090
|
+
isEditing: false,
|
|
14091
|
+
editValue: "",
|
|
14092
|
+
domainPrefix: "https://ssqt.co/",
|
|
14093
|
+
editsRemaining: 3,
|
|
14094
|
+
maxEdits: 5,
|
|
14095
|
+
limitReached: false,
|
|
14096
|
+
validationError: null,
|
|
14097
|
+
isValidating: false,
|
|
14098
|
+
isSaving: false,
|
|
14099
|
+
characterLimit: 15,
|
|
14100
|
+
minCharacters: 3,
|
|
14101
|
+
charactersRemaining: 15,
|
|
14102
|
+
editLimitText: "You can edit your link up to 5 times.",
|
|
14103
|
+
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
14104
|
+
supportLinkText: "Support",
|
|
14105
|
+
customizeDisabled: false,
|
|
14106
|
+
customizeDisabledTooltip: "Link customization is not available.",
|
|
14107
|
+
minCharactersText: "Minimum 3 characters",
|
|
14108
|
+
onCustomizeClick: noopFn,
|
|
14109
|
+
onEditValueChange: noopFn,
|
|
14110
|
+
onSave: noopFn,
|
|
14111
|
+
onCancel: noopFn,
|
|
14112
|
+
};
|
|
14113
|
+
const CustomizeUrlDefault = () => {
|
|
14114
|
+
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, defaultCustomizeProps));
|
|
14115
|
+
};
|
|
14116
|
+
const CustomizeUrlEditing = () => {
|
|
14117
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14118
|
+
...defaultCustomizeProps,
|
|
14119
|
+
isEditing: true,
|
|
14120
|
+
editValue: "nvoiwb18",
|
|
14121
|
+
charactersRemaining: 7,
|
|
14122
|
+
})));
|
|
14123
|
+
};
|
|
14124
|
+
const CustomizeUrlCustomized = () => {
|
|
14125
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14126
|
+
...defaultCustomizeProps,
|
|
14127
|
+
copyTextViewProps: {
|
|
14128
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
14129
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
14130
|
+
},
|
|
14131
|
+
})));
|
|
14132
|
+
};
|
|
14133
|
+
const CustomizeUrlLimitReached = () => {
|
|
14134
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14135
|
+
...defaultCustomizeProps,
|
|
14136
|
+
copyTextViewProps: {
|
|
14137
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
14138
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
14139
|
+
},
|
|
14140
|
+
editsRemaining: 0,
|
|
14141
|
+
limitReached: true,
|
|
14142
|
+
})));
|
|
14143
|
+
};
|
|
14144
|
+
const CustomizeUrlDisabled = () => {
|
|
14145
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14146
|
+
...defaultCustomizeProps,
|
|
14147
|
+
customizeDisabled: true,
|
|
14148
|
+
})));
|
|
14149
|
+
};
|
|
14150
|
+
const CustomizeUrlValidationError = () => {
|
|
14151
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14152
|
+
...defaultCustomizeProps,
|
|
14153
|
+
isEditing: true,
|
|
14154
|
+
editValue: "nvoiwb18",
|
|
14155
|
+
charactersRemaining: 7,
|
|
14156
|
+
validationError: {
|
|
14157
|
+
code: "EXISTING_CODE_CONFLICT",
|
|
14158
|
+
title: "This link is already taken",
|
|
14159
|
+
description: "Try adding numbers, a dash or underscore to create a unique link.",
|
|
14160
|
+
},
|
|
14161
|
+
})));
|
|
14162
|
+
};
|
|
14163
|
+
const CustomizeUrlInvalidCharacters = () => {
|
|
14164
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14165
|
+
...defaultCustomizeProps,
|
|
14166
|
+
isEditing: true,
|
|
14167
|
+
editValue: "nvoiwb18",
|
|
14168
|
+
charactersRemaining: 7,
|
|
14169
|
+
validationError: {
|
|
14170
|
+
code: "INVALID_CHARACTER",
|
|
14171
|
+
title: "Please use only letters, numbers, dashes and underscores",
|
|
14172
|
+
description: "Special characters can break the link when sharing.",
|
|
14173
|
+
},
|
|
14174
|
+
})));
|
|
14175
|
+
};
|
|
14176
|
+
const CustomizeUrlProfanity = () => {
|
|
14177
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14178
|
+
...defaultCustomizeProps,
|
|
14179
|
+
isEditing: true,
|
|
14180
|
+
editValue: "nvoiwb18",
|
|
14181
|
+
charactersRemaining: 7,
|
|
14182
|
+
validationError: {
|
|
14183
|
+
code: "BLOCKED_WORD",
|
|
14184
|
+
title: "Please try a different link",
|
|
14185
|
+
description: "This link contains a restricted word.",
|
|
14186
|
+
},
|
|
14187
|
+
})));
|
|
14188
|
+
};
|
|
14189
|
+
const CustomizeUrlSaving = () => {
|
|
14190
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, {
|
|
14191
|
+
...defaultCustomizeProps,
|
|
14192
|
+
isEditing: true,
|
|
14193
|
+
editValue: "bobtesterson",
|
|
14194
|
+
isSaving: true,
|
|
14195
|
+
})));
|
|
14196
|
+
};
|
|
14073
14197
|
|
|
14074
14198
|
const ShareLink = /*#__PURE__*/Object.freeze({
|
|
14075
14199
|
__proto__: null,
|
|
@@ -14084,7 +14208,16 @@ const ShareLink = /*#__PURE__*/Object.freeze({
|
|
|
14084
14208
|
CopyButtonBelow: CopyButtonBelow$3,
|
|
14085
14209
|
CustomStyles: CustomStyles$1,
|
|
14086
14210
|
CustomStylesWithDemoHooks: CustomStylesWithDemoHooks,
|
|
14087
|
-
FullStack: FullStack
|
|
14211
|
+
FullStack: FullStack,
|
|
14212
|
+
CustomizeUrlDefault: CustomizeUrlDefault,
|
|
14213
|
+
CustomizeUrlEditing: CustomizeUrlEditing,
|
|
14214
|
+
CustomizeUrlCustomized: CustomizeUrlCustomized,
|
|
14215
|
+
CustomizeUrlLimitReached: CustomizeUrlLimitReached,
|
|
14216
|
+
CustomizeUrlDisabled: CustomizeUrlDisabled,
|
|
14217
|
+
CustomizeUrlValidationError: CustomizeUrlValidationError,
|
|
14218
|
+
CustomizeUrlInvalidCharacters: CustomizeUrlInvalidCharacters,
|
|
14219
|
+
CustomizeUrlProfanity: CustomizeUrlProfanity,
|
|
14220
|
+
CustomizeUrlSaving: CustomizeUrlSaving
|
|
14088
14221
|
});
|
|
14089
14222
|
|
|
14090
14223
|
const UseShareLink_stories = {
|
|
@@ -14122,11 +14255,11 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
14122
14255
|
return (index.h("div", null,
|
|
14123
14256
|
"Sharelink:",
|
|
14124
14257
|
" ",
|
|
14125
|
-
index.h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyString)));
|
|
14258
|
+
index.h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyTextViewProps.copyString)));
|
|
14126
14259
|
});
|
|
14127
14260
|
const RegularView$2 = createHookStory(() => {
|
|
14128
14261
|
setupGraphQL$c();
|
|
14129
|
-
return (index.h(
|
|
14262
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, ShadowViewAddon.useShareLink({
|
|
14130
14263
|
programId: "klip-referral-program",
|
|
14131
14264
|
tooltiptext: "Copied to clipboard",
|
|
14132
14265
|
tooltiplifespan: 1000,
|
|
@@ -14134,19 +14267,29 @@ const RegularView$2 = createHookStory(() => {
|
|
|
14134
14267
|
});
|
|
14135
14268
|
const FastTooltip = createHookStory(() => {
|
|
14136
14269
|
setupGraphQL$c();
|
|
14137
|
-
return (index.h(
|
|
14270
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, ShadowViewAddon.useShareLink({
|
|
14138
14271
|
programId: "klip-referral-program",
|
|
14139
|
-
tooltiptext: "
|
|
14272
|
+
tooltiptext: "Copied to clipboard",
|
|
14140
14273
|
tooltiplifespan: 500,
|
|
14141
14274
|
}))));
|
|
14142
14275
|
});
|
|
14276
|
+
const CustomizeUrlEnabled = createHookStory(() => {
|
|
14277
|
+
setupGraphQL$c();
|
|
14278
|
+
return (index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, ShadowViewAddon.useShareLink({
|
|
14279
|
+
programId: "klip-referral-program",
|
|
14280
|
+
tooltiptext: "Copied to clipboard",
|
|
14281
|
+
tooltiplifespan: 1000,
|
|
14282
|
+
allowCustomization: true,
|
|
14283
|
+
}))));
|
|
14284
|
+
});
|
|
14143
14285
|
|
|
14144
14286
|
const UseShareLink = /*#__PURE__*/Object.freeze({
|
|
14145
14287
|
__proto__: null,
|
|
14146
14288
|
'default': UseShareLink_stories,
|
|
14147
14289
|
BareBonesView: BareBonesView$1,
|
|
14148
14290
|
RegularView: RegularView$2,
|
|
14149
|
-
FastTooltip: FastTooltip
|
|
14291
|
+
FastTooltip: FastTooltip,
|
|
14292
|
+
CustomizeUrlEnabled: CustomizeUrlEnabled
|
|
14150
14293
|
});
|
|
14151
14294
|
|
|
14152
14295
|
const scenario$C = "@author:Zach\n@owner:Zach\nFeature: Tabs\n\n The Tabs takes in the Tab component as children and maps through to display their header and content.\n\n Background: A user on the portal is viewing the widget\n Given a user viewing the Tabs component\n\n @motivating\n Scenario: Content inside the active tab is shown\n Given the header is set to <tabHeader>\n And the content inside is <tabContent>\n And the user has clicked <tabHeader>\n Then the <tabContent> is shown\n Examples:\n | tabHeader | tabContent |\n | Settings | This is the settings tab |\n | General | This is the general tab |\n | History | This is the history tab |\n\n @motivating\n @ui\n Scenario: The placement of the tabs is configurable\n Given The placement prop has been passed a valid <placement>\n Then tabs are placed on the <placementResult>\n Examples:\n | placement | placementResult |\n | | top of the content |\n | left | left hand side of the content |\n | right | right hand side of the content |\n | bottom | bottom of the content |\n\n\n @minutia\n @ui\n Scenario Outline: Tabs are setup to use the brand color\n Given the brand color is set to darkblue\n Then the text inside the active tab is darkblue\n And the underline of the active tab is darkblue\n\n @ui\n Scenario: Tabs are responsive\n Given the user is on a mobile device\n When there are more tabs than the horizontal space allows for\n Then clickable arrows appear on the left and right of the tabs\n And the tabs are scrollable\n\n @landmine\n Scenario: Program section cannot be used inside of tabs\n Given a tabs component\n And tab containing a program section with program-id \"test123\"\n And the program section wraps a component using program context\n When the tabs component is rendered\n Then the \"sq:program-id\" event listener for the program section is removed\n And the component does not use program-id \"test123\" to source its data\n And falls back to the global program id";
|
|
@@ -18701,39 +18844,6 @@ const UserInfoFormView = /*#__PURE__*/Object.freeze({
|
|
|
18701
18844
|
DisabledForm: DisabledForm
|
|
18702
18845
|
});
|
|
18703
18846
|
|
|
18704
|
-
const UserAttribute_stories = {
|
|
18705
|
-
title: "Components/User Attribute",
|
|
18706
|
-
};
|
|
18707
|
-
const Default$x = () => {
|
|
18708
|
-
return (index.h("sqm-user-attribute", { demoData: {
|
|
18709
|
-
loading: false,
|
|
18710
|
-
value: "impact.com",
|
|
18711
|
-
} }));
|
|
18712
|
-
};
|
|
18713
|
-
const Loading$h = () => {
|
|
18714
|
-
return (index.h("sqm-user-attribute", { demoData: {
|
|
18715
|
-
loading: true,
|
|
18716
|
-
value: "impact.com",
|
|
18717
|
-
} }));
|
|
18718
|
-
};
|
|
18719
|
-
const WithCustomStyles = () => {
|
|
18720
|
-
return (index.h("sqm-user-attribute", { demoData: {
|
|
18721
|
-
loading: false,
|
|
18722
|
-
value: "impact.com",
|
|
18723
|
-
fontSize: 24,
|
|
18724
|
-
color: "#4CAF50",
|
|
18725
|
-
fontWeight: 700,
|
|
18726
|
-
} }));
|
|
18727
|
-
};
|
|
18728
|
-
|
|
18729
|
-
const UserAttribute = /*#__PURE__*/Object.freeze({
|
|
18730
|
-
__proto__: null,
|
|
18731
|
-
'default': UserAttribute_stories,
|
|
18732
|
-
Default: Default$x,
|
|
18733
|
-
Loading: Loading$h,
|
|
18734
|
-
WithCustomStyles: WithCustomStyles
|
|
18735
|
-
});
|
|
18736
|
-
|
|
18737
18847
|
function deepFreeze(obj) {
|
|
18738
18848
|
if (obj instanceof Map) {
|
|
18739
18849
|
obj.clear = obj.delete = obj.set = function () {
|
|
@@ -21427,7 +21537,6 @@ const stories = [
|
|
|
21427
21537
|
TaxAndCashRewardsTable,
|
|
21428
21538
|
TaxAndCashReferralTableRewardsCell,
|
|
21429
21539
|
TaxAndCashReferralTable$1,
|
|
21430
|
-
UserAttribute,
|
|
21431
21540
|
];
|
|
21432
21541
|
const StencilStorybook = class {
|
|
21433
21542
|
constructor(hostRef) {
|
|
@@ -53,7 +53,7 @@ function TextSpanView(props, children) {
|
|
|
53
53
|
display: inline;
|
|
54
54
|
}
|
|
55
55
|
`;
|
|
56
|
-
return (index.h("span", { class: sheet.classes[type], part: "sqm-
|
|
56
|
+
return (index.h("span", { class: sheet.classes[type], part: "sqm-text-span" },
|
|
57
57
|
index.h("style", { type: "text/css" },
|
|
58
58
|
vanillaStyle,
|
|
59
59
|
styleString),
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8277cbb3.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
7
7
|
require('./JSS-8503a151.js');
|
|
8
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
8
|
+
const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
|
|
9
9
|
|
|
10
10
|
const TextSpan = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -121,7 +121,6 @@
|
|
|
121
121
|
"./components/sqm-timeline/sqm-timeline-entry.js",
|
|
122
122
|
"./components/sqm-timeline/sqm-timeline.js",
|
|
123
123
|
"./components/sqm-titled-section/sqm-titled-section.js",
|
|
124
|
-
"./components/sqm-user-attribute/sqm-user-attribute.js",
|
|
125
124
|
"./components/sqm-user-name/sqm-user-name.js",
|
|
126
125
|
"./components/sqm-widget-verification/sqm-widget-verification-controller.js",
|
|
127
126
|
"./components/sqm-widget-verification/sqm-widget-verification.js",
|
|
@@ -61,6 +61,7 @@ export class PortalPasswordField {
|
|
|
61
61
|
return h(PortalResetPasswordView, { states: states, callbacks: callbacks });
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "sqm-password-field"; }
|
|
64
|
+
static get encapsulation() { return "shadow"; }
|
|
64
65
|
static get properties() { return {
|
|
65
66
|
"fieldLabel": {
|
|
66
67
|
"type": "string",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { createStyleSheet } from "../../styling/JSS";
|
|
3
3
|
export function PortalContainerView(props, children) {
|
|
4
4
|
const style = {
|
|
@@ -24,10 +24,9 @@ export function PortalContainerView(props, children) {
|
|
|
24
24
|
}`;
|
|
25
25
|
const sheet = createStyleSheet(style);
|
|
26
26
|
const styleString = sheet.toString();
|
|
27
|
-
return (h(
|
|
28
|
-
h("
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
children)));
|
|
27
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
28
|
+
h("style", { type: "text/css" },
|
|
29
|
+
vanillaStyle,
|
|
30
|
+
styleString),
|
|
31
|
+
children));
|
|
33
32
|
}
|
|
@@ -87,7 +87,7 @@ export class PortalGoogleLogin {
|
|
|
87
87
|
const styleString = sheet.toString();
|
|
88
88
|
const content = {
|
|
89
89
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
90
|
-
h("a", { onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
90
|
+
h("a", { part: "forgot-password-link", onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
91
91
|
googleButton: (h("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })),
|
|
92
92
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
93
93
|
h("style", null, styleString),
|
|
@@ -79,7 +79,7 @@ export class PortalLogin {
|
|
|
79
79
|
const styleString = sheet.toString();
|
|
80
80
|
const content = {
|
|
81
81
|
forgotPasswordButton: (h("slot", { name: "forgotPassword" },
|
|
82
|
-
h("a", { onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
82
|
+
h("a", { part: "forgot-password-link", onClick: () => navigation.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
83
83
|
googleButton: null,
|
|
84
84
|
secondaryButton: (h("slot", { name: "secondaryButton" },
|
|
85
85
|
h("style", null, styleString),
|
|
@@ -415,7 +415,6 @@ function useDemoShareCode(props) {
|
|
|
415
415
|
borderRadius: props.borderRadius,
|
|
416
416
|
borderColor: props.borderColor,
|
|
417
417
|
buttonType: props.buttonType,
|
|
418
|
-
rewardStatus: "AVAILABLE",
|
|
419
418
|
open,
|
|
420
419
|
onClick: () => {
|
|
421
420
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { CopyTextView } from "../views/copy-text-view";
|
|
3
|
+
import { ShareLinkView } from "./sqm-share-link-view";
|
|
3
4
|
import scenario from "./ShareLink.feature";
|
|
4
5
|
export default {
|
|
5
6
|
title: "Components/Share Link",
|
|
@@ -77,18 +78,142 @@ export const CustomStyles = () => {
|
|
|
77
78
|
return h(CopyTextView, Object.assign({}, props));
|
|
78
79
|
};
|
|
79
80
|
export const CustomStylesWithDemoHooks = () => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
return (h("sqm-share-link", { demoData: {
|
|
82
|
+
copyTextViewProps: {
|
|
83
|
+
copyString: "https://noah.example.com",
|
|
84
|
+
open: false,
|
|
85
|
+
tooltiptext: "Copied!",
|
|
86
|
+
backgroundColor: "#1ed760",
|
|
87
|
+
borderRadius: "30px",
|
|
88
|
+
textColor: "red",
|
|
89
|
+
buttonType: "primary",
|
|
90
|
+
borderColor: "#121212",
|
|
91
|
+
},
|
|
92
|
+
}, backgroundColor: "#1ed760" }));
|
|
91
93
|
};
|
|
92
94
|
export const FullStack = () => {
|
|
93
95
|
return h("sqm-share-link", null);
|
|
94
96
|
};
|
|
97
|
+
// Customize URL stories
|
|
98
|
+
const noopFn = () => { };
|
|
99
|
+
const defaultCustomizeProps = {
|
|
100
|
+
copyTextViewProps: {
|
|
101
|
+
copyString: "https://ssqt.co/abc123",
|
|
102
|
+
open: false,
|
|
103
|
+
tooltiptext: "Copied!",
|
|
104
|
+
},
|
|
105
|
+
allowCustomization: true,
|
|
106
|
+
customizeLinkLabel: "Customize Link",
|
|
107
|
+
saveLabelText: "Save",
|
|
108
|
+
savingLabelText: "Saving...",
|
|
109
|
+
cancelLabelText: "Cancel",
|
|
110
|
+
editLabelText: "Edit your link",
|
|
111
|
+
charactersRemainingText: "{count} characters remaining",
|
|
112
|
+
validatingLabelText: "Validating...",
|
|
113
|
+
isEditing: false,
|
|
114
|
+
editValue: "",
|
|
115
|
+
domainPrefix: "https://ssqt.co/",
|
|
116
|
+
editsRemaining: 3,
|
|
117
|
+
maxEdits: 5,
|
|
118
|
+
limitReached: false,
|
|
119
|
+
validationError: null,
|
|
120
|
+
isValidating: false,
|
|
121
|
+
isSaving: false,
|
|
122
|
+
characterLimit: 15,
|
|
123
|
+
minCharacters: 3,
|
|
124
|
+
charactersRemaining: 15,
|
|
125
|
+
editLimitText: "You can edit your link up to 5 times.",
|
|
126
|
+
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
127
|
+
supportLinkText: "Support",
|
|
128
|
+
customizeDisabled: false,
|
|
129
|
+
customizeDisabledTooltip: "Link customization is not available.",
|
|
130
|
+
minCharactersText: "Minimum 3 characters",
|
|
131
|
+
onCustomizeClick: noopFn,
|
|
132
|
+
onEditValueChange: noopFn,
|
|
133
|
+
onSave: noopFn,
|
|
134
|
+
onCancel: noopFn,
|
|
135
|
+
};
|
|
136
|
+
export const CustomizeUrlDefault = () => {
|
|
137
|
+
return h(ShareLinkView, Object.assign({}, defaultCustomizeProps));
|
|
138
|
+
};
|
|
139
|
+
export const CustomizeUrlEditing = () => {
|
|
140
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
141
|
+
...defaultCustomizeProps,
|
|
142
|
+
isEditing: true,
|
|
143
|
+
editValue: "nvoiwb18",
|
|
144
|
+
charactersRemaining: 7,
|
|
145
|
+
})));
|
|
146
|
+
};
|
|
147
|
+
export const CustomizeUrlCustomized = () => {
|
|
148
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
149
|
+
...defaultCustomizeProps,
|
|
150
|
+
copyTextViewProps: {
|
|
151
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
152
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
153
|
+
},
|
|
154
|
+
})));
|
|
155
|
+
};
|
|
156
|
+
export const CustomizeUrlLimitReached = () => {
|
|
157
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
158
|
+
...defaultCustomizeProps,
|
|
159
|
+
copyTextViewProps: {
|
|
160
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
161
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
162
|
+
},
|
|
163
|
+
editsRemaining: 0,
|
|
164
|
+
limitReached: true,
|
|
165
|
+
})));
|
|
166
|
+
};
|
|
167
|
+
export const CustomizeUrlDisabled = () => {
|
|
168
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
169
|
+
...defaultCustomizeProps,
|
|
170
|
+
customizeDisabled: true,
|
|
171
|
+
})));
|
|
172
|
+
};
|
|
173
|
+
export const CustomizeUrlValidationError = () => {
|
|
174
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
175
|
+
...defaultCustomizeProps,
|
|
176
|
+
isEditing: true,
|
|
177
|
+
editValue: "nvoiwb18",
|
|
178
|
+
charactersRemaining: 7,
|
|
179
|
+
validationError: {
|
|
180
|
+
code: "EXISTING_CODE_CONFLICT",
|
|
181
|
+
title: "This link is already taken",
|
|
182
|
+
description: "Try adding numbers, a dash or underscore to create a unique link.",
|
|
183
|
+
},
|
|
184
|
+
})));
|
|
185
|
+
};
|
|
186
|
+
export const CustomizeUrlInvalidCharacters = () => {
|
|
187
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
188
|
+
...defaultCustomizeProps,
|
|
189
|
+
isEditing: true,
|
|
190
|
+
editValue: "nvoiwb18",
|
|
191
|
+
charactersRemaining: 7,
|
|
192
|
+
validationError: {
|
|
193
|
+
code: "INVALID_CHARACTER",
|
|
194
|
+
title: "Please use only letters, numbers, dashes and underscores",
|
|
195
|
+
description: "Special characters can break the link when sharing.",
|
|
196
|
+
},
|
|
197
|
+
})));
|
|
198
|
+
};
|
|
199
|
+
export const CustomizeUrlProfanity = () => {
|
|
200
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
201
|
+
...defaultCustomizeProps,
|
|
202
|
+
isEditing: true,
|
|
203
|
+
editValue: "nvoiwb18",
|
|
204
|
+
charactersRemaining: 7,
|
|
205
|
+
validationError: {
|
|
206
|
+
code: "BLOCKED_WORD",
|
|
207
|
+
title: "Please try a different link",
|
|
208
|
+
description: "This link contains a restricted word.",
|
|
209
|
+
},
|
|
210
|
+
})));
|
|
211
|
+
};
|
|
212
|
+
export const CustomizeUrlSaving = () => {
|
|
213
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
214
|
+
...defaultCustomizeProps,
|
|
215
|
+
isEditing: true,
|
|
216
|
+
editValue: "bobtesterson",
|
|
217
|
+
isSaving: true,
|
|
218
|
+
})));
|
|
219
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
|
-
import {
|
|
4
|
+
import { ShareLinkView } from "./sqm-share-link-view";
|
|
5
5
|
import { useShareLink } from "./useShareLink";
|
|
6
6
|
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
7
7
|
export default {
|
|
@@ -39,11 +39,11 @@ export const BareBonesView = createHookStory(() => {
|
|
|
39
39
|
return (h("div", null,
|
|
40
40
|
"Sharelink:",
|
|
41
41
|
" ",
|
|
42
|
-
h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyString)));
|
|
42
|
+
h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyTextViewProps.copyString)));
|
|
43
43
|
});
|
|
44
44
|
export const RegularView = createHookStory(() => {
|
|
45
45
|
setupGraphQL();
|
|
46
|
-
return (h(
|
|
46
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
47
47
|
programId: "klip-referral-program",
|
|
48
48
|
tooltiptext: "Copied to clipboard",
|
|
49
49
|
tooltiplifespan: 1000,
|
|
@@ -51,9 +51,18 @@ export const RegularView = createHookStory(() => {
|
|
|
51
51
|
});
|
|
52
52
|
export const FastTooltip = createHookStory(() => {
|
|
53
53
|
setupGraphQL();
|
|
54
|
-
return (h(
|
|
54
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
55
55
|
programId: "klip-referral-program",
|
|
56
|
-
tooltiptext: "
|
|
56
|
+
tooltiptext: "Copied to clipboard",
|
|
57
57
|
tooltiplifespan: 500,
|
|
58
58
|
}))));
|
|
59
59
|
});
|
|
60
|
+
export const CustomizeUrlEnabled = createHookStory(() => {
|
|
61
|
+
setupGraphQL();
|
|
62
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
63
|
+
programId: "klip-referral-program",
|
|
64
|
+
tooltiptext: "Copied to clipboard",
|
|
65
|
+
tooltiplifespan: 1000,
|
|
66
|
+
allowCustomization: true,
|
|
67
|
+
}))));
|
|
68
|
+
});
|