@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
|
@@ -8,9 +8,9 @@ import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
|
8
8
|
import './useReferralCodes-52ca720f.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
11
|
-
import './sqm-text-span-view-
|
|
12
|
-
import { b as PortalRegisterView, P as PortalForgotPasswordView, a as PortalLoginView, c as PortalVerifyEmailView } from './sqm-portal-verify-email-view-
|
|
13
|
-
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-
|
|
11
|
+
import './sqm-text-span-view-72f43dff.js';
|
|
12
|
+
import { b as PortalRegisterView, P as PortalForgotPasswordView, a as PortalLoginView, c as PortalVerifyEmailView } from './sqm-portal-verify-email-view-c61536b7.js';
|
|
13
|
+
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
|
|
14
14
|
import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
|
|
15
15
|
import './useChildElements-9bccfb72.js';
|
|
16
16
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
@@ -23,14 +23,14 @@ import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-7a682cc3.j
|
|
|
23
23
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-376c1bf6.js';
|
|
24
24
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-2b66457a.js';
|
|
25
25
|
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-b3beac5a.js';
|
|
26
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
27
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
26
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-04528277.js';
|
|
27
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-b5ea620f.js';
|
|
28
28
|
import './utilities-77b1e0cc.js';
|
|
29
|
-
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-
|
|
29
|
+
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f84c04cf.js';
|
|
30
30
|
import './ErrorView-74cb3af8.js';
|
|
31
31
|
import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
|
|
32
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as
|
|
33
|
-
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-
|
|
32
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-33f1a8f7.js';
|
|
33
|
+
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
34
34
|
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-19d81a2b.js';
|
|
35
35
|
import { t as taxTypeToName, L as LoadingView } from './data-12e6aae1.js';
|
|
36
36
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-d1b91650.js';
|
|
@@ -14051,21 +14051,145 @@ const CustomStyles$1 = () => {
|
|
|
14051
14051
|
return h(CopyTextView, Object.assign({}, props));
|
|
14052
14052
|
};
|
|
14053
14053
|
const CustomStylesWithDemoHooks = () => {
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14054
|
+
return (h("sqm-share-link", { demoData: {
|
|
14055
|
+
copyTextViewProps: {
|
|
14056
|
+
copyString: "https://noah.example.com",
|
|
14057
|
+
open: false,
|
|
14058
|
+
tooltiptext: "Copied!",
|
|
14059
|
+
backgroundColor: "#1ed760",
|
|
14060
|
+
borderRadius: "30px",
|
|
14061
|
+
textColor: "red",
|
|
14062
|
+
buttonType: "primary",
|
|
14063
|
+
borderColor: "#121212",
|
|
14064
|
+
},
|
|
14065
|
+
}, backgroundColor: "#1ed760" }));
|
|
14065
14066
|
};
|
|
14066
14067
|
const FullStack = () => {
|
|
14067
14068
|
return h("sqm-share-link", null);
|
|
14068
14069
|
};
|
|
14070
|
+
// Customize URL stories
|
|
14071
|
+
const noopFn = () => { };
|
|
14072
|
+
const defaultCustomizeProps = {
|
|
14073
|
+
copyTextViewProps: {
|
|
14074
|
+
copyString: "https://ssqt.co/abc123",
|
|
14075
|
+
open: false,
|
|
14076
|
+
tooltiptext: "Copied!",
|
|
14077
|
+
},
|
|
14078
|
+
allowCustomization: true,
|
|
14079
|
+
customizeLinkLabel: "Customize Link",
|
|
14080
|
+
saveLabelText: "Save",
|
|
14081
|
+
savingLabelText: "Saving...",
|
|
14082
|
+
cancelLabelText: "Cancel",
|
|
14083
|
+
editLabelText: "Edit your link",
|
|
14084
|
+
charactersRemainingText: "{count} characters remaining",
|
|
14085
|
+
validatingLabelText: "Validating...",
|
|
14086
|
+
isEditing: false,
|
|
14087
|
+
editValue: "",
|
|
14088
|
+
domainPrefix: "https://ssqt.co/",
|
|
14089
|
+
editsRemaining: 3,
|
|
14090
|
+
maxEdits: 5,
|
|
14091
|
+
limitReached: false,
|
|
14092
|
+
validationError: null,
|
|
14093
|
+
isValidating: false,
|
|
14094
|
+
isSaving: false,
|
|
14095
|
+
characterLimit: 15,
|
|
14096
|
+
minCharacters: 3,
|
|
14097
|
+
charactersRemaining: 15,
|
|
14098
|
+
editLimitText: "You can edit your link up to 5 times.",
|
|
14099
|
+
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
14100
|
+
supportLinkText: "Support",
|
|
14101
|
+
customizeDisabled: false,
|
|
14102
|
+
customizeDisabledTooltip: "Link customization is not available.",
|
|
14103
|
+
minCharactersText: "Minimum 3 characters",
|
|
14104
|
+
onCustomizeClick: noopFn,
|
|
14105
|
+
onEditValueChange: noopFn,
|
|
14106
|
+
onSave: noopFn,
|
|
14107
|
+
onCancel: noopFn,
|
|
14108
|
+
};
|
|
14109
|
+
const CustomizeUrlDefault = () => {
|
|
14110
|
+
return h(ShareLinkView, Object.assign({}, defaultCustomizeProps));
|
|
14111
|
+
};
|
|
14112
|
+
const CustomizeUrlEditing = () => {
|
|
14113
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14114
|
+
...defaultCustomizeProps,
|
|
14115
|
+
isEditing: true,
|
|
14116
|
+
editValue: "nvoiwb18",
|
|
14117
|
+
charactersRemaining: 7,
|
|
14118
|
+
})));
|
|
14119
|
+
};
|
|
14120
|
+
const CustomizeUrlCustomized = () => {
|
|
14121
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14122
|
+
...defaultCustomizeProps,
|
|
14123
|
+
copyTextViewProps: {
|
|
14124
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
14125
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
14126
|
+
},
|
|
14127
|
+
})));
|
|
14128
|
+
};
|
|
14129
|
+
const CustomizeUrlLimitReached = () => {
|
|
14130
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14131
|
+
...defaultCustomizeProps,
|
|
14132
|
+
copyTextViewProps: {
|
|
14133
|
+
...defaultCustomizeProps.copyTextViewProps,
|
|
14134
|
+
copyString: "https://ssqt.co/bobtesterson",
|
|
14135
|
+
},
|
|
14136
|
+
editsRemaining: 0,
|
|
14137
|
+
limitReached: true,
|
|
14138
|
+
})));
|
|
14139
|
+
};
|
|
14140
|
+
const CustomizeUrlDisabled = () => {
|
|
14141
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14142
|
+
...defaultCustomizeProps,
|
|
14143
|
+
customizeDisabled: true,
|
|
14144
|
+
})));
|
|
14145
|
+
};
|
|
14146
|
+
const CustomizeUrlValidationError = () => {
|
|
14147
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14148
|
+
...defaultCustomizeProps,
|
|
14149
|
+
isEditing: true,
|
|
14150
|
+
editValue: "nvoiwb18",
|
|
14151
|
+
charactersRemaining: 7,
|
|
14152
|
+
validationError: {
|
|
14153
|
+
code: "EXISTING_CODE_CONFLICT",
|
|
14154
|
+
title: "This link is already taken",
|
|
14155
|
+
description: "Try adding numbers, a dash or underscore to create a unique link.",
|
|
14156
|
+
},
|
|
14157
|
+
})));
|
|
14158
|
+
};
|
|
14159
|
+
const CustomizeUrlInvalidCharacters = () => {
|
|
14160
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14161
|
+
...defaultCustomizeProps,
|
|
14162
|
+
isEditing: true,
|
|
14163
|
+
editValue: "nvoiwb18",
|
|
14164
|
+
charactersRemaining: 7,
|
|
14165
|
+
validationError: {
|
|
14166
|
+
code: "INVALID_CHARACTER",
|
|
14167
|
+
title: "Please use only letters, numbers, dashes and underscores",
|
|
14168
|
+
description: "Special characters can break the link when sharing.",
|
|
14169
|
+
},
|
|
14170
|
+
})));
|
|
14171
|
+
};
|
|
14172
|
+
const CustomizeUrlProfanity = () => {
|
|
14173
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14174
|
+
...defaultCustomizeProps,
|
|
14175
|
+
isEditing: true,
|
|
14176
|
+
editValue: "nvoiwb18",
|
|
14177
|
+
charactersRemaining: 7,
|
|
14178
|
+
validationError: {
|
|
14179
|
+
code: "BLOCKED_WORD",
|
|
14180
|
+
title: "Please try a different link",
|
|
14181
|
+
description: "This link contains a restricted word.",
|
|
14182
|
+
},
|
|
14183
|
+
})));
|
|
14184
|
+
};
|
|
14185
|
+
const CustomizeUrlSaving = () => {
|
|
14186
|
+
return (h(ShareLinkView, Object.assign({}, {
|
|
14187
|
+
...defaultCustomizeProps,
|
|
14188
|
+
isEditing: true,
|
|
14189
|
+
editValue: "bobtesterson",
|
|
14190
|
+
isSaving: true,
|
|
14191
|
+
})));
|
|
14192
|
+
};
|
|
14069
14193
|
|
|
14070
14194
|
const ShareLink = /*#__PURE__*/Object.freeze({
|
|
14071
14195
|
__proto__: null,
|
|
@@ -14080,7 +14204,16 @@ const ShareLink = /*#__PURE__*/Object.freeze({
|
|
|
14080
14204
|
CopyButtonBelow: CopyButtonBelow$3,
|
|
14081
14205
|
CustomStyles: CustomStyles$1,
|
|
14082
14206
|
CustomStylesWithDemoHooks: CustomStylesWithDemoHooks,
|
|
14083
|
-
FullStack: FullStack
|
|
14207
|
+
FullStack: FullStack,
|
|
14208
|
+
CustomizeUrlDefault: CustomizeUrlDefault,
|
|
14209
|
+
CustomizeUrlEditing: CustomizeUrlEditing,
|
|
14210
|
+
CustomizeUrlCustomized: CustomizeUrlCustomized,
|
|
14211
|
+
CustomizeUrlLimitReached: CustomizeUrlLimitReached,
|
|
14212
|
+
CustomizeUrlDisabled: CustomizeUrlDisabled,
|
|
14213
|
+
CustomizeUrlValidationError: CustomizeUrlValidationError,
|
|
14214
|
+
CustomizeUrlInvalidCharacters: CustomizeUrlInvalidCharacters,
|
|
14215
|
+
CustomizeUrlProfanity: CustomizeUrlProfanity,
|
|
14216
|
+
CustomizeUrlSaving: CustomizeUrlSaving
|
|
14084
14217
|
});
|
|
14085
14218
|
|
|
14086
14219
|
const UseShareLink_stories = {
|
|
@@ -14118,11 +14251,11 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
14118
14251
|
return (h("div", null,
|
|
14119
14252
|
"Sharelink:",
|
|
14120
14253
|
" ",
|
|
14121
|
-
h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyString)));
|
|
14254
|
+
h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyTextViewProps.copyString)));
|
|
14122
14255
|
});
|
|
14123
14256
|
const RegularView$2 = createHookStory(() => {
|
|
14124
14257
|
setupGraphQL$c();
|
|
14125
|
-
return (h(
|
|
14258
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
14126
14259
|
programId: "klip-referral-program",
|
|
14127
14260
|
tooltiptext: "Copied to clipboard",
|
|
14128
14261
|
tooltiplifespan: 1000,
|
|
@@ -14130,19 +14263,29 @@ const RegularView$2 = createHookStory(() => {
|
|
|
14130
14263
|
});
|
|
14131
14264
|
const FastTooltip = createHookStory(() => {
|
|
14132
14265
|
setupGraphQL$c();
|
|
14133
|
-
return (h(
|
|
14266
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
14134
14267
|
programId: "klip-referral-program",
|
|
14135
|
-
tooltiptext: "
|
|
14268
|
+
tooltiptext: "Copied to clipboard",
|
|
14136
14269
|
tooltiplifespan: 500,
|
|
14137
14270
|
}))));
|
|
14138
14271
|
});
|
|
14272
|
+
const CustomizeUrlEnabled = createHookStory(() => {
|
|
14273
|
+
setupGraphQL$c();
|
|
14274
|
+
return (h(ShareLinkView, Object.assign({}, useShareLink({
|
|
14275
|
+
programId: "klip-referral-program",
|
|
14276
|
+
tooltiptext: "Copied to clipboard",
|
|
14277
|
+
tooltiplifespan: 1000,
|
|
14278
|
+
allowCustomization: true,
|
|
14279
|
+
}))));
|
|
14280
|
+
});
|
|
14139
14281
|
|
|
14140
14282
|
const UseShareLink = /*#__PURE__*/Object.freeze({
|
|
14141
14283
|
__proto__: null,
|
|
14142
14284
|
'default': UseShareLink_stories,
|
|
14143
14285
|
BareBonesView: BareBonesView$1,
|
|
14144
14286
|
RegularView: RegularView$2,
|
|
14145
|
-
FastTooltip: FastTooltip
|
|
14287
|
+
FastTooltip: FastTooltip,
|
|
14288
|
+
CustomizeUrlEnabled: CustomizeUrlEnabled
|
|
14146
14289
|
});
|
|
14147
14290
|
|
|
14148
14291
|
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";
|
|
@@ -18697,39 +18840,6 @@ const UserInfoFormView = /*#__PURE__*/Object.freeze({
|
|
|
18697
18840
|
DisabledForm: DisabledForm
|
|
18698
18841
|
});
|
|
18699
18842
|
|
|
18700
|
-
const UserAttribute_stories = {
|
|
18701
|
-
title: "Components/User Attribute",
|
|
18702
|
-
};
|
|
18703
|
-
const Default$x = () => {
|
|
18704
|
-
return (h("sqm-user-attribute", { demoData: {
|
|
18705
|
-
loading: false,
|
|
18706
|
-
value: "impact.com",
|
|
18707
|
-
} }));
|
|
18708
|
-
};
|
|
18709
|
-
const Loading$h = () => {
|
|
18710
|
-
return (h("sqm-user-attribute", { demoData: {
|
|
18711
|
-
loading: true,
|
|
18712
|
-
value: "impact.com",
|
|
18713
|
-
} }));
|
|
18714
|
-
};
|
|
18715
|
-
const WithCustomStyles = () => {
|
|
18716
|
-
return (h("sqm-user-attribute", { demoData: {
|
|
18717
|
-
loading: false,
|
|
18718
|
-
value: "impact.com",
|
|
18719
|
-
fontSize: 24,
|
|
18720
|
-
color: "#4CAF50",
|
|
18721
|
-
fontWeight: 700,
|
|
18722
|
-
} }));
|
|
18723
|
-
};
|
|
18724
|
-
|
|
18725
|
-
const UserAttribute = /*#__PURE__*/Object.freeze({
|
|
18726
|
-
__proto__: null,
|
|
18727
|
-
'default': UserAttribute_stories,
|
|
18728
|
-
Default: Default$x,
|
|
18729
|
-
Loading: Loading$h,
|
|
18730
|
-
WithCustomStyles: WithCustomStyles
|
|
18731
|
-
});
|
|
18732
|
-
|
|
18733
18843
|
function deepFreeze(obj) {
|
|
18734
18844
|
if (obj instanceof Map) {
|
|
18735
18845
|
obj.clear = obj.delete = obj.set = function () {
|
|
@@ -21423,7 +21533,6 @@ const stories = [
|
|
|
21423
21533
|
TaxAndCashRewardsTable,
|
|
21424
21534
|
TaxAndCashReferralTableRewardsCell,
|
|
21425
21535
|
TaxAndCashReferralTable$1,
|
|
21426
|
-
UserAttribute,
|
|
21427
21536
|
];
|
|
21428
21537
|
const StencilStorybook = class {
|
|
21429
21538
|
constructor(hostRef) {
|
|
@@ -51,7 +51,7 @@ function TextSpanView(props, children) {
|
|
|
51
51
|
display: inline;
|
|
52
52
|
}
|
|
53
53
|
`;
|
|
54
|
-
return (h("span", { class: sheet.classes[type], part: "sqm-
|
|
54
|
+
return (h("span", { class: sheet.classes[type], part: "sqm-text-span" },
|
|
55
55
|
h("style", { type: "text/css" },
|
|
56
56
|
vanillaStyle,
|
|
57
57
|
styleString),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
|
|
2
2
|
import { n as h } from './dom-context-hooks.module-50442785.js';
|
|
3
3
|
import './JSS-67b5cff8.js';
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
|
|
5
5
|
|
|
6
6
|
const TextSpan = class {
|
|
7
7
|
constructor(hostRef) {
|