@saasquatch/mint-components 2.1.10-57 → 2.1.10-60
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 +271 -29
- 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 +173 -25
- 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/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-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -0
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +2 -1
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +1 -1
- package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +5 -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 +271 -29
- 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 +173 -25
- 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_46.entry.js +1 -1
- 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-37dd039d.system.entry.js +1 -0
- 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-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-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-746500b2.entry.js → p-a9fdf5a3.entry.js} +22 -22
- 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-c592f273.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-d91075a5.entry.js +9 -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/sqm-user-attribute/UserAttribute.stories.d.ts +3 -0
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +1 -1
- package/dist/types/components.d.ts +349 -2
- 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/grapesjs/grapesjs.js +1 -1
- package/package.json +15 -3
- package/readme.md +60 -1
- package/dist/esm-es5/ShadowViewAddon-47f1e579.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a}from"./p-083180bf.js";import{c as t}from"./p-cef45012.js";function n(n){const s=t({LabelContainer:{"margin-bottom":"none"===n.labelMargin?n.labelMargin:`var(--sl-spacing-${n.labelMargin})`},SectionContainer:{textAlign:n.textAlign||"left",padding:"none"===n.padding?"0":`var(--sl-spacing-${n.padding})`}}),r=s.toString();return a("div",{class:s.classes.SectionContainer,part:"sqm-base"},a("style",{type:"text/css"},r),a("div",{class:s.classes.LabelContainer,part:"sqm-label"},n.label),n.content)}function s(n,s){const r=t({Container:{boxSizing:"border-box",display:n.display||"grid",flexWrap:n.flexWrap||"wrap","grid-template-columns":"row"===n.direction?`repeat(auto-fill, minmax(${n.minWidth}, auto))`:"100%","grid-gap":`var(--sl-spacing-${n.gap})`,padding:"none"===n.padding?"0":`var(--sl-spacing-${n.padding})`,maxWidth:n.maxWidth,margin:n.center&&"auto",justifyContent:n.justifyContent,backgroundColor:n.backgroundColor||"var(--sqm-portal-background)"}}),o=r.toString();return a("div",{class:r.classes.Container,part:"sqm-base"},a("style",{type:"text/css"},"\n :host{\n width: 100%;\n display: block;\n }",o),s)}export{s as P,n as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-083180bf.js";import{n as o}from"./p-a7fc1e02.js";import"./p-cef45012.js";import{T as r}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-083180bf.js";import{n as o}from"./p-a7fc1e02.js";import"./p-cef45012.js";import{T as r}from"./p-c813ec64.js";const e=class{constructor(s){t(this,s),this.ignored=!0,o(this)}disconnectedCallback(){}componentWillLoad(){}render(){return s(r,{type:this.type,fontSize:this.fontSize,textColor:this.textColor},this.text)}};export{e as sqm_text_span}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-a43a9fa9.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-a43a9fa9.system.js","./p-0b1e90fe.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,l,m;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){i=t.i},function(t){o=t.n},function(){},function(t){a=t.g},function(){},function(t){r=t.o},function(t){l=t.P;m=t.a}],execute:function(){function p(t){var n=t.emptyStateHeader,s=t.emptyStateImage,o=t.emptyStateText,a=t.supportText,l=t.missingFeature,m=l===void 0?"":l;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:r(s,{height:200}),decoding:"async"}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text"},i.formatMessage({id:"emptyStateText",defaultMessage:o},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for "+m+" feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the "+m+" feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: "+m+"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you"},a)})))))}var c=t("sqm_empty",function(){function t(t){n(this,t)}t.prototype.render=function(){return e(s,{slot:"empty"},e(p,{emptyStateImage:this.emptyStateImage||"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png",emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var f=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.gap="xxx-large";this.display="grid";this.maxWidth="100%";this.flexWrap="wrap";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(l,Object.assign({},a(this)),e("slot",null))};return t}());var h=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){var t="\n sqm-text {\n display: block;\n color: "+(this.textColor||"var(--sqm-text)")+";\n }\n\n sqm-text h1 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xxx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-x-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-large)")+";\n font-weight: var(--sl-font-weight-bold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text p {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-medium)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text sub {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-small)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n ";return e("div",null,e("style",null,t),e("slot",null))};return t}());var u=t("sqm_titled_section",function(){function t(t){n(this,t);this.textAlign="left";this.labelMargin="small";this.padding="none";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(m,Object.assign({},__assign(__assign({},a(this)),{label:t,content:n})))};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as s}from"./p-083180bf.js";import{k as t,f as o,n as r}from"./p-a7fc1e02.js";import{f as a,T as i,j as n,i as d}from"./p-d0993bb9.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-
|
|
1
|
+
import{r as e,h as s}from"./p-083180bf.js";import{k as t,f as o,n as r}from"./p-a7fc1e02.js";import{f as a,T as i,j as n,i as d}from"./p-d0993bb9.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-c813ec64.js";import{P as u}from"./p-b3ad957c.js";const p=class{constructor(s){e(this,s),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",this.passwordMismatchText="Passwords do not match.",this.codeInvalidText="The password reset code is invalid or has expired, please try again.",this.resetSuccessText="Your password has been reset and you are being redirected. If you are not redirected, please click Continue.",this.networkErrorMessage="An error occurred while resetting your password. Please refresh the page and try again.",r(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r}=d()?l({states:{error:"",loading:!1,reset:!1,confirmPassword:(p=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:p.passwordResetHeader,resetPasswordHeader:p.resetPasswordHeader,continueButtonText:p.continueButtonText,resetPasswordButtonText:p.resetPasswordButtonText,confirmPasswordFieldLabel:p.confirmPasswordFieldLabel,passwordFieldLabel:p.passwordFieldLabel,meetsRequirementsText:p.meetsRequirementsText,doesNotMeetRequirementsText:p.doesNotMeetRequirementsText,minErrorText:p.minErrorText,uppercaseErrorText:p.uppercaseErrorText,lowercaseErrorText:p.lowercaseErrorText,hasErrorText:p.hasErrorText,passwordMismatchText:p.passwordMismatchText,codeInvalidText:p.codeInvalidText,resetSuccessText:p.resetSuccessText}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},p.demoData||{},{arrayMerge:(e,s)=>s}):function(e){var s,r,d,l,u,p,h,w,b,f;const[x,v]=t(!1),[T,P]=t(""),[g,j]=a(),[C,y]=i(),E=new URLSearchParams(n.location.search),R=E.get("oobCode");E.delete("oobCode");const k=E.get("nextPage");o((()=>{(async()=>{await g({oobCode:R})instanceof Error&&P(e.networkErrorMessage)})()}),[]);const q=()=>{E.delete("nextPage");const s=m(k||e.nextPage);n.push(s.href)};return{states:{loading:y.loading,reset:x,confirmPassword:e.confirmPassword,error:(null===(u=null===(l=null===(d=null===(r=null===(s=y.errors)||void 0===s?void 0:s.response)||void 0===r?void 0:r.errors)||void 0===d?void 0:d[0])||void 0===l?void 0:l.extensions)||void 0===u?void 0:u.message)||(null===(b=null===(w=null===(h=null===(p=y.errors)||void 0===p?void 0:p.response)||void 0===h?void 0:h.errors)||void 0===w?void 0:w[0])||void 0===b?void 0:b.message)||T,oobCodeValidating:j.loading,oobCodeValid:null===(f=j.data)||void 0===f?void 0:f.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText,passwordMismatchText:e.passwordMismatchText,codeInvalidText:e.codeInvalidText,resetSuccessText:e.resetSuccessText}},callbacks:{submit:async s=>{P("");let t=s.detail.formData;null==t||t.forEach(((e,s)=>{c.set(t,s,e)}));const o={oobCode:R,password:t.password};if(t.password!==t.confirmPassword)return void P(e.passwordMismatchText);const r=await C(o);if(r instanceof Error)return P(e.networkErrorMessage);r.resetManagedIdentityPassword&&(v(!0),setTimeout((()=>{q()}),5e3))},failed:()=>{n.push({pathname:e.failedPage,search:E.toString()&&"?"+E.toString()})},gotoNextPage:q}}}(this);var p;return s(u,{states:e,callbacks:r})}};export{p as sqm_portal_reset_password}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-7562cd98.system.js","./p-43c31fd5.system.js","./p-5b1d2866.system.js"],(function(e){"use strict";var t,n,i,r,s,a,o,u,l,d,m,f,c,v;return{setters:[function(e){t=e.r;n=e.h},function(){},function(e){i=e.k;r=e.f;s=e.n},function(e){a=e.d;o=e.J;u=e.w;l=e.$;d=e.i},function(e){m=e.c},function(e){f=e.g},function(){},function(){},function(e){c=e.P},function(e){v=e.i}],execute:function(){var g=a.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var _=a.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var h={country:"",email:"",firstName:"",lastName:"",errors:{},error:""};function p(e){var t=o();var n=i(false),s=n[0],a=n[1];var d=i(undefined),m=d[0],f=d[1];var c=i(h),p=c[0],y=c[1];var b=u(g,{},!(t===null||t===void 0?void 0:t.jwt));var x=l(_),N=x[0],S=x[1];r((function(){if(S===null||S===void 0?void 0:S.loading)return;if(S===null||S===void 0?void 0:S.errors){y((function(e){var t,n,i;return __assign(__assign({},e),{error:(i=(n=(t=S===null||S===void 0?void 0:S.errors)===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0].message})}))}else{f((function(e){var t;return __assign(__assign({},e),(t=S===null||S===void 0?void 0:S.data)===null||t===void 0?void 0:t.upsertUser)}));if(S===null||S===void 0?void 0:S.data)a(true)}}),[S===null||S===void 0?void 0:S.loading]);r((function(){var e,t;f((function(e){var t;return __assign(__assign({},e),(t=b===null||b===void 0?void 0:b.data)===null||t===void 0?void 0:t.viewer)}));y(__assign(__assign(__assign({},h),(e=b.data)===null||e===void 0?void 0:e.viewer),(t=S.data)===null||t===void 0?void 0:t.upsertUser))}),[b===null||b===void 0?void 0:b.data]);r((function(){var t,n;if((t=S===null||S===void 0?void 0:S.errors)===null||t===void 0?void 0:t.message){y(__assign(__assign({},(n=b.data)===null||n===void 0?void 0:n.viewer),{error:e.networkRequestMessage}))}}),[S===null||S===void 0?void 0:S.errors]);var j=function(){a(false);if(p.firstName&&p.lastName){N({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:p.firstName,lastName:p.lastName});y((function(e){return __assign(__assign({},e),{errors:{},error:""})}));return}var n={};if(!p.firstName){n["firstName"]={message:e.fieldEmptyText}}if(!p.lastName){n["lastName"]={message:e.fieldEmptyText}}if(!v(n)){y((function(t){return __assign(__assign({},t),{error:e.formErrorText})}))}y((function(e){return __assign(__assign({},e),{errors:n})}))};return{states:{success:s,loading:(b===null||b===void 0?void 0:b.loading)||S.loading,submitDisabled:false,showCountry:!e.hideCountry,formState:p,user:m,text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,countrytext:e.countrytext,emailtext:e.emailtext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText}},callbacks:{onSubmit:j,onChange:function(e){var t=e.target,n=t.name,i=t.value;y((function(e){var t;return __assign(__assign({},e),(t={},t[n]=i,t))}))}}}}var y=e("sqm_portal_profile",function(){function e(e){t(this,e);this.ignored=true;this.firstnametext="First Name";this.lastnametext="Last Name";this.emailtext="Email";this.countrytext="Country";this.editProfileHeader="Edit your profile";this.editProfileSubHeader="Personal Information";this.submitChangeButtonText="Submit Changes";this.hideCountry=false;this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.";this.fieldEmptyText="Field is required";this.formErrorText="Please correct the errors below to update your profile.";this.submissionSuccessText="Your profile has been successfully updated.";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d()?b(f(this)):p(f(this));return n(c,Object.assign({},e))};return e}());function b(e){return m({states:{success:false,loading:false,submitDisabled:false,showCountry:!e.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,emailtext:e.emailtext,countrytext:e.countrytext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText,submissionSuccessText:e.submissionSuccessText,fieldEmptyText:e.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++){e=arguments[s];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++){e=arguments[s];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-7265bbcb.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-7562cd98.system.js"],(function(t){"use strict";var e,s,n,r,i,a;return{setters:[function(t){e=t.h},function(t){s=t.i},function(t){n=t.c},function(t){r=t.A;i=t.a},function(t){a=t.T}],execute:function(){t("P",u);var o={Wrapper:r,Column:__assign({},i),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sqm-text-subdued)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=n(o);var p=l.toString();function u(t){var n=t.states,r=t.callbacks,i=t.content,o=i.email,u=i.verifyMessage,f=i.emailVerificationHeader,d=i.resendEmailButtonText,m=i.verificationStatusMessage,g=i.verificationLoadingMessage,y=i.verificationResentMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,p),e(a,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},t.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),t.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},y)),e(a,{type:"p"},s.formatMessage({id:"verifyMessage",defaultMessage:u},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sqm-text-subdued)",fontSize:"14px"}},s.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?g+" {countdown}":m},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:r.submit,loading:n.loading},d)))}}}}));
|
|
@@ -16,3 +16,12 @@ export declare const CopyButtonBelow: () => any;
|
|
|
16
16
|
export declare const CustomStyles: () => any;
|
|
17
17
|
export declare const CustomStylesWithDemoHooks: () => any;
|
|
18
18
|
export declare const FullStack: () => any;
|
|
19
|
+
export declare const CustomizeUrlDefault: () => any;
|
|
20
|
+
export declare const CustomizeUrlEditing: () => any;
|
|
21
|
+
export declare const CustomizeUrlCustomized: () => any;
|
|
22
|
+
export declare const CustomizeUrlLimitReached: () => any;
|
|
23
|
+
export declare const CustomizeUrlDisabled: () => any;
|
|
24
|
+
export declare const CustomizeUrlValidationError: () => any;
|
|
25
|
+
export declare const CustomizeUrlInvalidCharacters: () => any;
|
|
26
|
+
export declare const CustomizeUrlProfanity: () => any;
|
|
27
|
+
export declare const CustomizeUrlSaving: () => any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CopyTextViewProps } from "../views/copy-text-view";
|
|
2
|
+
export declare type ValidationErrorCode = "EXISTING_CODE_CONFLICT" | "INVALID_CHARACTER" | "BLOCKED_WORD" | null;
|
|
3
|
+
export interface ValidationErrorInfo {
|
|
4
|
+
code: ValidationErrorCode;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ShareLinkViewProps {
|
|
9
|
+
copyTextViewProps: CopyTextViewProps;
|
|
10
|
+
allowCustomization: boolean;
|
|
11
|
+
customizeLinkLabel: string;
|
|
12
|
+
saveLabelText: string;
|
|
13
|
+
savingLabelText: string;
|
|
14
|
+
cancelLabelText: string;
|
|
15
|
+
editLabelText: string;
|
|
16
|
+
charactersRemainingText: string;
|
|
17
|
+
validatingLabelText: string;
|
|
18
|
+
isEditing: boolean;
|
|
19
|
+
editValue: string;
|
|
20
|
+
domainPrefix: string;
|
|
21
|
+
editsRemaining: number;
|
|
22
|
+
maxEdits: number;
|
|
23
|
+
limitReached: boolean;
|
|
24
|
+
validationError: ValidationErrorInfo | null;
|
|
25
|
+
isValidating: boolean;
|
|
26
|
+
isSaving: boolean;
|
|
27
|
+
characterLimit: number;
|
|
28
|
+
minCharacters: number;
|
|
29
|
+
charactersRemaining: number;
|
|
30
|
+
editLimitText: string;
|
|
31
|
+
editLimitReachedText: string;
|
|
32
|
+
minCharactersText: string;
|
|
33
|
+
supportLinkText: string;
|
|
34
|
+
customizeDisabled: boolean;
|
|
35
|
+
customizeDisabledTooltip: string;
|
|
36
|
+
onCustomizeClick: () => void;
|
|
37
|
+
onEditValueChange: (value: string) => void;
|
|
38
|
+
onSave: () => void;
|
|
39
|
+
onCancel: () => void;
|
|
40
|
+
}
|
|
41
|
+
export declare function ShareLinkView(props: ShareLinkViewProps): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DemoData } from "../../global/demo";
|
|
2
|
-
import {
|
|
2
|
+
import { ShareLinkViewProps } from "./sqm-share-link-view";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Share Link
|
|
5
5
|
* @exampleGroup Sharing
|
|
@@ -90,11 +90,204 @@ export declare class ShareLink {
|
|
|
90
90
|
* @uiGroup Style
|
|
91
91
|
*/
|
|
92
92
|
buttonStyle?: "icon" | "button-outside" | "button-below";
|
|
93
|
+
/**
|
|
94
|
+
* Let advocates customize their share links up to 5 times.
|
|
95
|
+
*
|
|
96
|
+
* @uiName Allow customization
|
|
97
|
+
* @uiType boolean
|
|
98
|
+
* @uiGroup Customizable Vanity Link
|
|
99
|
+
* @uiWidget CustomLinkSwitch
|
|
100
|
+
* @requiredFlavor impact
|
|
101
|
+
*/
|
|
102
|
+
allowCustomization?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Text for the cancel button in editing mode
|
|
105
|
+
*
|
|
106
|
+
* @uiName Cancel button label
|
|
107
|
+
* @uiType string
|
|
108
|
+
* @uiGroup Customizable Vanity Link
|
|
109
|
+
* @requiredFlavor impact
|
|
110
|
+
*/
|
|
111
|
+
cancelLabelText?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Tooltip text shown when link customization is disabled
|
|
114
|
+
*
|
|
115
|
+
* @uiName Customize disabled tooltip
|
|
116
|
+
* @uiType string
|
|
117
|
+
* @uiGroup Customizable Vanity Link
|
|
118
|
+
* @requiredFlavor impact
|
|
119
|
+
*/
|
|
120
|
+
customizeDisabledTooltip?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Displayed below the share link.
|
|
123
|
+
*
|
|
124
|
+
* @uiName Customize link button label
|
|
125
|
+
* @uiType string
|
|
126
|
+
* @uiGroup Customizable Vanity Link
|
|
127
|
+
* @requiredFlavor impact
|
|
128
|
+
*/
|
|
129
|
+
customizeLinkButtonLabel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
|
|
132
|
+
*
|
|
133
|
+
* @uiName Edit limit reached text
|
|
134
|
+
* @uiType string
|
|
135
|
+
* @uiWidget textarea
|
|
136
|
+
* @uiGroup Customizable Vanity Link
|
|
137
|
+
* @requiredFlavor impact
|
|
138
|
+
*/
|
|
139
|
+
editLimitReachedText?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Subtext shown while the user is customizing their URL.
|
|
142
|
+
*
|
|
143
|
+
* @uiName Edit limit text
|
|
144
|
+
* @uiType string
|
|
145
|
+
* @uiGroup Customizable Vanity Link
|
|
146
|
+
* @requiredFlavor impact
|
|
147
|
+
*/
|
|
148
|
+
editLimitText?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Description text shown when the link contains invalid special characters.
|
|
151
|
+
*
|
|
152
|
+
* @uiName Invalid characters error description
|
|
153
|
+
* @uiType string
|
|
154
|
+
* @uiWidget textarea
|
|
155
|
+
* @uiGroup Customizable Vanity Link
|
|
156
|
+
* @requiredFlavor impact
|
|
157
|
+
*/
|
|
158
|
+
invalidCharactersErrorDescription?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Title of the error message shown when the link contains invalid special characters.
|
|
161
|
+
*
|
|
162
|
+
* @uiName Invalid characters error title
|
|
163
|
+
* @uiType string
|
|
164
|
+
* @uiGroup Customizable Vanity Link
|
|
165
|
+
* @requiredFlavor impact
|
|
166
|
+
*/
|
|
167
|
+
invalidCharactersErrorTitle?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Description text shown when the link has already been taken
|
|
170
|
+
*
|
|
171
|
+
* @uiName Link taken error message
|
|
172
|
+
* @uiType string
|
|
173
|
+
* @uiWidget textarea
|
|
174
|
+
* @uiGroup Customizable Vanity Link
|
|
175
|
+
* @requiredFlavor impact
|
|
176
|
+
*/
|
|
177
|
+
linkTakenErrorDescription?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Title of the error message shown when the link has already been taken
|
|
180
|
+
*
|
|
181
|
+
* @uiName Link taken error title
|
|
182
|
+
* @uiType string
|
|
183
|
+
* @uiGroup Customizable Vanity Link
|
|
184
|
+
* @requiredFlavor impact
|
|
185
|
+
*/
|
|
186
|
+
linkTakenErrorTitle?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Description text shown when the link contains profanity or brand names.
|
|
189
|
+
*
|
|
190
|
+
* @uiName Restricted words error description
|
|
191
|
+
* @uiType string
|
|
192
|
+
* @uiWidget textarea
|
|
193
|
+
* @uiGroup Customizable Vanity Link
|
|
194
|
+
* @requiredFlavor impact
|
|
195
|
+
*/
|
|
196
|
+
restrictedWordsErrorDescription?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Title of the error message shown when the link contains profanity or brand names.
|
|
199
|
+
*
|
|
200
|
+
* @uiName Restricted words error title
|
|
201
|
+
* @uiType string
|
|
202
|
+
* @uiGroup Customizable Vanity Link
|
|
203
|
+
* @requiredFlavor impact
|
|
204
|
+
*/
|
|
205
|
+
restrictedWordsErrorTitle?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Text for the save button in editing mode
|
|
208
|
+
*
|
|
209
|
+
* @uiName Save button label
|
|
210
|
+
* @uiType string
|
|
211
|
+
* @uiGroup Customizable Vanity Link
|
|
212
|
+
* @requiredFlavor impact
|
|
213
|
+
*/
|
|
214
|
+
saveLabelText?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Text for the save button while saving is in progress
|
|
217
|
+
*
|
|
218
|
+
* @uiName Saving button label
|
|
219
|
+
* @uiType string
|
|
220
|
+
* @uiGroup Customizable Vanity Link
|
|
221
|
+
* @requiredFlavor impact
|
|
222
|
+
*/
|
|
223
|
+
savingLabelText?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Label shown above the link input while editing
|
|
226
|
+
*
|
|
227
|
+
* @uiName Edit input label
|
|
228
|
+
* @uiType string
|
|
229
|
+
* @uiGroup Customizable Vanity Link
|
|
230
|
+
* @requiredFlavor impact
|
|
231
|
+
*/
|
|
232
|
+
editLabelText?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
|
|
235
|
+
*
|
|
236
|
+
* @uiName Characters remaining text
|
|
237
|
+
* @uiType string
|
|
238
|
+
* @uiGroup Customizable Vanity Link
|
|
239
|
+
* @requiredFlavor impact
|
|
240
|
+
*/
|
|
241
|
+
charactersRemainingText?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Text shown while the link is being validated
|
|
244
|
+
*
|
|
245
|
+
* @uiName Validating label
|
|
246
|
+
* @uiType string
|
|
247
|
+
* @uiGroup Customizable Vanity Link
|
|
248
|
+
* @requiredFlavor impact
|
|
249
|
+
*/
|
|
250
|
+
validatingLabelText?: string;
|
|
251
|
+
/**
|
|
252
|
+
* @uiName Min characters text
|
|
253
|
+
* @uiType string
|
|
254
|
+
* @uiGroup Customizable Vanity Link
|
|
255
|
+
* @requiredFlavor impact
|
|
256
|
+
*/
|
|
257
|
+
minCharactersText?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Display text for the support link in the edit limit reached message
|
|
260
|
+
*
|
|
261
|
+
* @uiName Support link text
|
|
262
|
+
* @uiType string
|
|
263
|
+
* @uiGroup Customizable Vanity Link
|
|
264
|
+
* @requiredFlavor impact
|
|
265
|
+
*/
|
|
266
|
+
supportLinkText?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Title shown when saving fails with an unknown error
|
|
269
|
+
*
|
|
270
|
+
* @uiName Save error title
|
|
271
|
+
* @uiType string
|
|
272
|
+
* @uiGroup Customizable Vanity Link
|
|
273
|
+
* @requiredFlavor impact
|
|
274
|
+
*/
|
|
275
|
+
saveErrorTitle?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Description shown when saving fails with an unknown error
|
|
278
|
+
*
|
|
279
|
+
* @uiName Save error description
|
|
280
|
+
* @uiType string
|
|
281
|
+
* @uiWidget textarea
|
|
282
|
+
* @uiGroup Customizable Vanity Link
|
|
283
|
+
* @requiredFlavor impact
|
|
284
|
+
*/
|
|
285
|
+
saveErrorDescription?: string;
|
|
93
286
|
/**
|
|
94
287
|
* @undocumented
|
|
95
288
|
* @uiType object
|
|
96
289
|
*/
|
|
97
|
-
demoData?: DemoData<
|
|
290
|
+
demoData?: DemoData<ShareLinkViewProps>;
|
|
98
291
|
constructor();
|
|
99
292
|
disconnectedCallback(): void;
|
|
100
293
|
render(): any;
|
|
@@ -1,9 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface ShareLinkProps {
|
|
1
|
+
import { ShareLinkViewProps } from "./sqm-share-link-view";
|
|
2
|
+
export interface ShareLinkProps {
|
|
3
3
|
programId?: string;
|
|
4
4
|
tooltiptext: string;
|
|
5
5
|
tooltiplifespan: number;
|
|
6
6
|
linkOverride?: string;
|
|
7
|
+
allowCustomization?: boolean;
|
|
8
|
+
customizeUrlText?: string;
|
|
9
|
+
customizeLinkButtonLabel?: string;
|
|
10
|
+
saveLabelText?: string;
|
|
11
|
+
savingLabelText?: string;
|
|
12
|
+
cancelLabelText?: string;
|
|
13
|
+
editLabelText?: string;
|
|
14
|
+
charactersRemainingText?: string;
|
|
15
|
+
validatingLabelText?: string;
|
|
16
|
+
textAlign?: "left" | "center" | "right";
|
|
17
|
+
buttonStyle?: "icon" | "button-outside" | "button-below";
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
textColor?: string;
|
|
20
|
+
borderRadius?: string;
|
|
21
|
+
buttonType?: "primary" | "secondary";
|
|
22
|
+
copyButtonLabel?: string;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
linkTakenErrorTitle?: string;
|
|
25
|
+
linkTakenErrorDescription?: string;
|
|
26
|
+
invalidCharactersErrorTitle?: string;
|
|
27
|
+
invalidCharactersErrorDescription?: string;
|
|
28
|
+
restrictedWordsErrorTitle?: string;
|
|
29
|
+
restrictedWordsErrorDescription?: string;
|
|
30
|
+
editLimitText?: string;
|
|
31
|
+
editLimitReachedText?: string;
|
|
32
|
+
supportLinkText?: string;
|
|
33
|
+
customizeDisabledTooltip?: string;
|
|
34
|
+
minCharactersText?: string;
|
|
35
|
+
saveErrorTitle?: string;
|
|
36
|
+
saveErrorDescription?: string;
|
|
7
37
|
}
|
|
8
|
-
export declare function useShareLink(props: ShareLinkProps):
|
|
9
|
-
export {};
|
|
38
|
+
export declare function useShareLink(props: ShareLinkProps): ShareLinkViewProps;
|
|
@@ -3,7 +3,7 @@ import { UserAttributeViewProps } from "./sqm-user-attribute-view";
|
|
|
3
3
|
/**
|
|
4
4
|
* @uiName User Attribute
|
|
5
5
|
* @exampleGroup Advanced
|
|
6
|
-
* @example User Attribute - <sqm-user-attribute value="
|
|
6
|
+
* @example User Attribute - <sqm-user-attribute value="lastSeenDate"></sqm-user-attribute>
|
|
7
7
|
*/
|
|
8
8
|
export declare class UserAttribute {
|
|
9
9
|
ignored: boolean;
|