@saasquatch/mint-components 2.1.8-24 → 2.1.8-26
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-1ed8faf9.js → ShadowViewAddon-1bc48666.js} +11 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_45.cjs.entry.js +61 -57
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +6 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +153 -137
- package/dist/collection/components/sqm-share-link/useShareLink.js +5 -5
- package/dist/esm/{ShadowViewAddon-395ab799.js → ShadowViewAddon-10db3e11.js} +11 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_45.entry.js +61 -57
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-395ab799.js → ShadowViewAddon-10db3e11.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-d7adb7f3.system.js → p-0b5dd21b.system.js} +1 -1
- package/dist/mint-components/p-4b365f1f.system.js +1 -1
- package/dist/mint-components/{p-2b108f39.system.entry.js → p-4df9c93e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8e5a6491.system.entry.js → p-6d10c03c.system.entry.js} +1 -1
- package/dist/mint-components/{p-cd79864c.js → p-72055e41.js} +2 -2
- package/dist/mint-components/{p-ba640335.entry.js → p-840157bd.entry.js} +2 -2
- package/dist/mint-components/{p-e6cf9daa.entry.js → p-a4f44c57.entry.js} +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +59 -55
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +5 -5
- package/dist/types/components.d.ts +94 -86
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-651
|
|
|
27
27
|
const useLeadFormState = require('./useLeadFormState-76d3b511.js');
|
|
28
28
|
const utilities = require('./utilities-096934ea.js');
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-1bc48666.js');
|
|
31
31
|
require('./sqm-portal-container-view-70a47420.js');
|
|
32
32
|
const data = require('./data-e83f8a41.js');
|
|
33
33
|
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
@@ -6114,131 +6114,135 @@ const ShareLink = class {
|
|
|
6114
6114
|
*/
|
|
6115
6115
|
this.buttonStyle = "icon";
|
|
6116
6116
|
/**
|
|
6117
|
-
*
|
|
6117
|
+
* Let advocates customize their share links up to 5 times.
|
|
6118
6118
|
*
|
|
6119
|
-
* @uiName
|
|
6119
|
+
* @uiName Allow customization
|
|
6120
6120
|
* @uiType boolean
|
|
6121
|
-
* @uiGroup
|
|
6121
|
+
* @uiGroup Customizable Vanity Link
|
|
6122
6122
|
* @requiredFlavor impact
|
|
6123
6123
|
*/
|
|
6124
6124
|
this.allowCustomization = false;
|
|
6125
6125
|
/**
|
|
6126
|
-
* Text
|
|
6126
|
+
* Text for the cancel button in editing mode
|
|
6127
6127
|
*
|
|
6128
|
-
* @uiName
|
|
6128
|
+
* @uiName Cancel button label
|
|
6129
6129
|
* @uiType string
|
|
6130
|
-
* @uiGroup
|
|
6130
|
+
* @uiGroup Customizable Vanity Link
|
|
6131
6131
|
* @requiredFlavor impact
|
|
6132
6132
|
*/
|
|
6133
|
-
this.
|
|
6133
|
+
this.cancelLabelText = "Cancel";
|
|
6134
6134
|
/**
|
|
6135
|
-
*
|
|
6135
|
+
* Tooltip text shown when link customization is disabled
|
|
6136
6136
|
*
|
|
6137
|
-
* @uiName
|
|
6137
|
+
* @uiName Customize disabled tooltip
|
|
6138
6138
|
* @uiType string
|
|
6139
|
-
* @uiGroup
|
|
6139
|
+
* @uiGroup Customizable Vanity Link
|
|
6140
6140
|
* @requiredFlavor impact
|
|
6141
6141
|
*/
|
|
6142
|
-
this.
|
|
6142
|
+
this.customizeDisabledTooltip = "Link customization is not available.";
|
|
6143
6143
|
/**
|
|
6144
|
-
*
|
|
6144
|
+
* Displayed below the share link.
|
|
6145
6145
|
*
|
|
6146
|
-
* @uiName
|
|
6146
|
+
* @uiName Customize link button label
|
|
6147
6147
|
* @uiType string
|
|
6148
|
-
* @uiGroup
|
|
6148
|
+
* @uiGroup Customizable Vanity Link
|
|
6149
6149
|
* @requiredFlavor impact
|
|
6150
6150
|
*/
|
|
6151
|
-
this.
|
|
6151
|
+
this.customizeLinkButtonLabel = "Customize Link";
|
|
6152
6152
|
/**
|
|
6153
|
-
*
|
|
6153
|
+
* Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
|
|
6154
6154
|
*
|
|
6155
|
-
* @uiName
|
|
6155
|
+
* @uiName Edit limit reached text
|
|
6156
6156
|
* @uiType string
|
|
6157
|
-
* @
|
|
6157
|
+
* @uiWidget textarea
|
|
6158
|
+
* @uiGroup Customizable Vanity Link
|
|
6158
6159
|
* @requiredFlavor impact
|
|
6159
6160
|
*/
|
|
6160
|
-
this.
|
|
6161
|
+
this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
|
|
6161
6162
|
/**
|
|
6162
|
-
*
|
|
6163
|
+
* Subtext shown while the user is customizing their URL.
|
|
6163
6164
|
*
|
|
6164
|
-
* @uiName
|
|
6165
|
+
* @uiName Edit limit text
|
|
6165
6166
|
* @uiType string
|
|
6166
|
-
* @uiGroup
|
|
6167
|
+
* @uiGroup Customizable Vanity Link
|
|
6167
6168
|
* @requiredFlavor impact
|
|
6168
6169
|
*/
|
|
6169
|
-
this.
|
|
6170
|
+
this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
|
|
6170
6171
|
/**
|
|
6171
|
-
*
|
|
6172
|
+
* Description text shown when the link contains invalid special characters.
|
|
6172
6173
|
*
|
|
6173
|
-
* @uiName Invalid characters error
|
|
6174
|
+
* @uiName Invalid characters error description
|
|
6174
6175
|
* @uiType string
|
|
6175
|
-
* @
|
|
6176
|
+
* @uiWidget textarea
|
|
6177
|
+
* @uiGroup Customizable Vanity Link
|
|
6176
6178
|
* @requiredFlavor impact
|
|
6177
6179
|
*/
|
|
6178
|
-
this.
|
|
6180
|
+
this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
|
|
6179
6181
|
/**
|
|
6180
|
-
*
|
|
6182
|
+
* Title of the error message shown when the link contains invalid special characters.
|
|
6181
6183
|
*
|
|
6182
|
-
* @uiName Invalid characters error
|
|
6184
|
+
* @uiName Invalid characters error title
|
|
6183
6185
|
* @uiType string
|
|
6184
|
-
* @uiGroup
|
|
6186
|
+
* @uiGroup Customizable Vanity Link
|
|
6185
6187
|
* @requiredFlavor impact
|
|
6186
6188
|
*/
|
|
6187
|
-
this.
|
|
6189
|
+
this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
|
|
6188
6190
|
/**
|
|
6189
|
-
*
|
|
6191
|
+
* Description text shown when the link has already been taken
|
|
6190
6192
|
*
|
|
6191
|
-
* @uiName
|
|
6193
|
+
* @uiName Link taken error message
|
|
6192
6194
|
* @uiType string
|
|
6193
|
-
* @
|
|
6195
|
+
* @uiWidget textarea
|
|
6196
|
+
* @uiGroup Customizable Vanity Link
|
|
6194
6197
|
* @requiredFlavor impact
|
|
6195
6198
|
*/
|
|
6196
|
-
this.
|
|
6199
|
+
this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
|
|
6197
6200
|
/**
|
|
6198
|
-
*
|
|
6201
|
+
* Title of the error message shown when the link has already been taken
|
|
6199
6202
|
*
|
|
6200
|
-
* @uiName
|
|
6203
|
+
* @uiName Link taken error title
|
|
6201
6204
|
* @uiType string
|
|
6202
|
-
* @uiGroup
|
|
6205
|
+
* @uiGroup Customizable Vanity Link
|
|
6203
6206
|
* @requiredFlavor impact
|
|
6204
6207
|
*/
|
|
6205
|
-
this.
|
|
6208
|
+
this.linkTakenErrorTitle = "This link is already taken";
|
|
6206
6209
|
/**
|
|
6207
|
-
*
|
|
6210
|
+
* Description text shown when the link contains profanity or brand names.
|
|
6208
6211
|
*
|
|
6209
|
-
* @uiName
|
|
6212
|
+
* @uiName Restricted words error description
|
|
6210
6213
|
* @uiType string
|
|
6211
|
-
* @
|
|
6214
|
+
* @uiWidget textarea
|
|
6215
|
+
* @uiGroup Customizable Vanity Link
|
|
6212
6216
|
* @requiredFlavor impact
|
|
6213
6217
|
*/
|
|
6214
|
-
this.
|
|
6218
|
+
this.restrictedWordsErrorDescription = "This link contains a restricted word.";
|
|
6215
6219
|
/**
|
|
6216
|
-
*
|
|
6220
|
+
* Title of the error message shown when the link contains profanity or brand names.
|
|
6217
6221
|
*
|
|
6218
|
-
* @uiName
|
|
6222
|
+
* @uiName Restricted words error title
|
|
6219
6223
|
* @uiType string
|
|
6220
|
-
* @uiGroup
|
|
6224
|
+
* @uiGroup Customizable Vanity Link
|
|
6221
6225
|
* @requiredFlavor impact
|
|
6222
6226
|
*/
|
|
6223
|
-
this.
|
|
6227
|
+
this.restrictedWordsErrorTitle = "Please try a different link";
|
|
6224
6228
|
/**
|
|
6225
|
-
*
|
|
6229
|
+
* Text for the save button in editing mode
|
|
6226
6230
|
*
|
|
6227
|
-
* @uiName
|
|
6231
|
+
* @uiName Save button label
|
|
6228
6232
|
* @uiType string
|
|
6229
|
-
* @uiGroup
|
|
6233
|
+
* @uiGroup Customizable Vanity Link
|
|
6230
6234
|
* @requiredFlavor impact
|
|
6231
6235
|
*/
|
|
6232
|
-
this.
|
|
6236
|
+
this.saveLabelText = "Save";
|
|
6233
6237
|
/**
|
|
6234
|
-
*
|
|
6238
|
+
* Display text for the support link in the edit limit reached message
|
|
6235
6239
|
*
|
|
6236
|
-
* @uiName
|
|
6240
|
+
* @uiName Support link text
|
|
6237
6241
|
* @uiType string
|
|
6238
|
-
* @uiGroup
|
|
6242
|
+
* @uiGroup Customizable Vanity Link
|
|
6239
6243
|
* @requiredFlavor impact
|
|
6240
6244
|
*/
|
|
6241
|
-
this.
|
|
6245
|
+
this.supportLinkText = "Support";
|
|
6242
6246
|
domContextHooks_module.h$1(this);
|
|
6243
6247
|
}
|
|
6244
6248
|
disconnectedCallback() { }
|
|
@@ -6277,7 +6281,7 @@ function useDemoShareLink(props) {
|
|
|
6277
6281
|
},
|
|
6278
6282
|
},
|
|
6279
6283
|
allowCustomization: props.allowCustomization,
|
|
6280
|
-
customizeLinkLabel: props.
|
|
6284
|
+
customizeLinkLabel: props.customizeLinkButtonLabel,
|
|
6281
6285
|
saveLabelText: props.saveLabelText,
|
|
6282
6286
|
cancelLabelText: props.cancelLabelText,
|
|
6283
6287
|
isEditing,
|
|
@@ -33,7 +33,7 @@ require('./utilities-096934ea.js');
|
|
|
33
33
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-6b1acd90.js');
|
|
34
34
|
require('./ErrorView-ee7b0f36.js');
|
|
35
35
|
const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
|
|
36
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
36
|
+
const ShadowViewAddon = require('./ShadowViewAddon-1bc48666.js');
|
|
37
37
|
const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
|
|
38
38
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-93e996d6.js');
|
|
39
39
|
const data = require('./data-e83f8a41.js');
|
|
@@ -24,7 +24,6 @@ export function ShareLinkView(props) {
|
|
|
24
24
|
cursor: "pointer",
|
|
25
25
|
color: "var(--sl-color-neutral-900)",
|
|
26
26
|
textAlign: "left",
|
|
27
|
-
padding: "var(--sl-spacing-small)",
|
|
28
27
|
"&:hover": {
|
|
29
28
|
textDecoration: "underline",
|
|
30
29
|
},
|
|
@@ -36,7 +35,6 @@ export function ShareLinkView(props) {
|
|
|
36
35
|
color: "var(--sl-color-neutral-400)",
|
|
37
36
|
cursor: "default",
|
|
38
37
|
textAlign: "left",
|
|
39
|
-
padding: "var(--sl-spacing-small)",
|
|
40
38
|
},
|
|
41
39
|
EditContainer: {
|
|
42
40
|
display: "flex",
|
|
@@ -119,9 +117,11 @@ export function ShareLinkView(props) {
|
|
|
119
117
|
cursor: "pointer",
|
|
120
118
|
background: "none",
|
|
121
119
|
border: "none",
|
|
122
|
-
padding: "0",
|
|
123
120
|
fontFamily: "var(--sl-font-sans)",
|
|
124
121
|
color: "var(--sl-color-neutral-500)",
|
|
122
|
+
"&::part(label)": {
|
|
123
|
+
padding: "0",
|
|
124
|
+
},
|
|
125
125
|
},
|
|
126
126
|
LimitReachedContainer: {
|
|
127
127
|
display: "flex",
|
|
@@ -165,7 +165,7 @@ export function ShareLinkView(props) {
|
|
|
165
165
|
!!validationError ||
|
|
166
166
|
!editValue ||
|
|
167
167
|
editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
|
|
168
|
-
h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
|
|
168
|
+
h("sl-button", { type: "text", class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
|
|
169
169
|
}
|
|
170
170
|
// Default / Customized / Limit reached states
|
|
171
171
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -183,6 +183,7 @@ export function ShareLinkView(props) {
|
|
|
183
183
|
id: "editLimitReached",
|
|
184
184
|
defaultMessage: editLimitReachedText,
|
|
185
185
|
}, {
|
|
186
|
-
supportLink: (h("a", { target: "_blank", href: "https://help.impact.com/other/readme/get-help-and-support" },
|
|
186
|
+
supportLink: (h("a", { target: "_blank", href: "https://help.impact.com/other/readme/get-help-and-support" },
|
|
187
|
+
h("p", null, supportLinkText))),
|
|
187
188
|
}))))))));
|
|
188
189
|
}
|