@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.
Files changed (33) hide show
  1. package/dist/cjs/{ShadowViewAddon-1ed8faf9.js → ShadowViewAddon-1bc48666.js} +11 -10
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_45.cjs.entry.js +61 -57
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +6 -5
  7. package/dist/collection/components/sqm-share-link/sqm-share-link.js +153 -137
  8. package/dist/collection/components/sqm-share-link/useShareLink.js +5 -5
  9. package/dist/esm/{ShadowViewAddon-395ab799.js → ShadowViewAddon-10db3e11.js} +11 -10
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/mint-components.js +1 -1
  12. package/dist/esm/sqm-big-stat_45.entry.js +61 -57
  13. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  14. package/dist/esm-es5/{ShadowViewAddon-395ab799.js → ShadowViewAddon-10db3e11.js} +1 -1
  15. package/dist/esm-es5/loader.js +1 -1
  16. package/dist/esm-es5/mint-components.js +1 -1
  17. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
  18. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  19. package/dist/mint-components/mint-components.esm.js +1 -1
  20. package/dist/mint-components/{p-d7adb7f3.system.js → p-0b5dd21b.system.js} +1 -1
  21. package/dist/mint-components/p-4b365f1f.system.js +1 -1
  22. package/dist/mint-components/{p-2b108f39.system.entry.js → p-4df9c93e.system.entry.js} +1 -1
  23. package/dist/mint-components/{p-8e5a6491.system.entry.js → p-6d10c03c.system.entry.js} +1 -1
  24. package/dist/mint-components/{p-cd79864c.js → p-72055e41.js} +2 -2
  25. package/dist/mint-components/{p-ba640335.entry.js → p-840157bd.entry.js} +2 -2
  26. package/dist/mint-components/{p-e6cf9daa.entry.js → p-a4f44c57.entry.js} +1 -1
  27. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +59 -55
  28. package/dist/types/components/sqm-share-link/useShareLink.d.ts +5 -5
  29. package/dist/types/components.d.ts +94 -86
  30. package/docs/docs.docx +0 -0
  31. package/docs/raisins.json +1 -1
  32. package/grapesjs/grapesjs.js +1 -1
  33. 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-1ed8faf9.js');
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
- * Enable users to customize their referral link
6117
+ * Let advocates customize their share links up to 5 times.
6118
6118
  *
6119
- * @uiName Customize URL
6119
+ * @uiName Allow customization
6120
6120
  * @uiType boolean
6121
- * @uiGroup Customize Vanity Link
6121
+ * @uiGroup Customizable Vanity Link
6122
6122
  * @requiredFlavor impact
6123
6123
  */
6124
6124
  this.allowCustomization = false;
6125
6125
  /**
6126
- * Text shown below the share link input to trigger customization
6126
+ * Text for the cancel button in editing mode
6127
6127
  *
6128
- * @uiName Customize link label
6128
+ * @uiName Cancel button label
6129
6129
  * @uiType string
6130
- * @uiGroup Customize Vanity Link
6130
+ * @uiGroup Customizable Vanity Link
6131
6131
  * @requiredFlavor impact
6132
6132
  */
6133
- this.customizeLinkLabel = "Customize Link";
6133
+ this.cancelLabelText = "Cancel";
6134
6134
  /**
6135
- * Text for the save button in editing mode
6135
+ * Tooltip text shown when link customization is disabled
6136
6136
  *
6137
- * @uiName Save button label
6137
+ * @uiName Customize disabled tooltip
6138
6138
  * @uiType string
6139
- * @uiGroup Customize Vanity Link
6139
+ * @uiGroup Customizable Vanity Link
6140
6140
  * @requiredFlavor impact
6141
6141
  */
6142
- this.saveLabelText = "Save";
6142
+ this.customizeDisabledTooltip = "Link customization is not available.";
6143
6143
  /**
6144
- * Text for the cancel button in editing mode
6144
+ * Displayed below the share link.
6145
6145
  *
6146
- * @uiName Cancel button label
6146
+ * @uiName Customize link button label
6147
6147
  * @uiType string
6148
- * @uiGroup Customize Vanity Link
6148
+ * @uiGroup Customizable Vanity Link
6149
6149
  * @requiredFlavor impact
6150
6150
  */
6151
- this.cancelLabelText = "Cancel";
6151
+ this.customizeLinkButtonLabel = "Customize Link";
6152
6152
  /**
6153
- * Title text shown when the custom link is already taken
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 Existing code conflict error title
6155
+ * @uiName Edit limit reached text
6156
6156
  * @uiType string
6157
- * @uiGroup Customize Vanity Link
6157
+ * @uiWidget textarea
6158
+ * @uiGroup Customizable Vanity Link
6158
6159
  * @requiredFlavor impact
6159
6160
  */
6160
- this.existingCodeConflictErrorTitle = "This link is already taken";
6161
+ this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6161
6162
  /**
6162
- * Description text shown when the custom link is already taken
6163
+ * Subtext shown while the user is customizing their URL.
6163
6164
  *
6164
- * @uiName Existing code conflict error description
6165
+ * @uiName Edit limit text
6165
6166
  * @uiType string
6166
- * @uiGroup Customize Vanity Link
6167
+ * @uiGroup Customizable Vanity Link
6167
6168
  * @requiredFlavor impact
6168
6169
  */
6169
- this.existingCodeConflictErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6170
+ this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
6170
6171
  /**
6171
- * Title text shown when the link contains invalid characters
6172
+ * Description text shown when the link contains invalid special characters.
6172
6173
  *
6173
- * @uiName Invalid characters error title
6174
+ * @uiName Invalid characters error description
6174
6175
  * @uiType string
6175
- * @uiGroup Customize Vanity Link
6176
+ * @uiWidget textarea
6177
+ * @uiGroup Customizable Vanity Link
6176
6178
  * @requiredFlavor impact
6177
6179
  */
6178
- this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
6180
+ this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6179
6181
  /**
6180
- * Description text shown when the link contains invalid characters
6182
+ * Title of the error message shown when the link contains invalid special characters.
6181
6183
  *
6182
- * @uiName Invalid characters error description
6184
+ * @uiName Invalid characters error title
6183
6185
  * @uiType string
6184
- * @uiGroup Customize Vanity Link
6186
+ * @uiGroup Customizable Vanity Link
6185
6187
  * @requiredFlavor impact
6186
6188
  */
6187
- this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6189
+ this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
6188
6190
  /**
6189
- * Title text shown when the link contains profanity
6191
+ * Description text shown when the link has already been taken
6190
6192
  *
6191
- * @uiName Profanity error title
6193
+ * @uiName Link taken error message
6192
6194
  * @uiType string
6193
- * @uiGroup Customize Vanity Link
6195
+ * @uiWidget textarea
6196
+ * @uiGroup Customizable Vanity Link
6194
6197
  * @requiredFlavor impact
6195
6198
  */
6196
- this.profanityErrorTitle = "Please try a different link";
6199
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6197
6200
  /**
6198
- * Description text shown when the link contains profanity
6201
+ * Title of the error message shown when the link has already been taken
6199
6202
  *
6200
- * @uiName Profanity error description
6203
+ * @uiName Link taken error title
6201
6204
  * @uiType string
6202
- * @uiGroup Customize Vanity Link
6205
+ * @uiGroup Customizable Vanity Link
6203
6206
  * @requiredFlavor impact
6204
6207
  */
6205
- this.profanityErrorDescription = "This link contains a restricted word.";
6208
+ this.linkTakenErrorTitle = "This link is already taken";
6206
6209
  /**
6207
- * Text describing the edit limit
6210
+ * Description text shown when the link contains profanity or brand names.
6208
6211
  *
6209
- * @uiName Edit limit text
6212
+ * @uiName Restricted words error description
6210
6213
  * @uiType string
6211
- * @uiGroup Customize Vanity Link
6214
+ * @uiWidget textarea
6215
+ * @uiGroup Customizable Vanity Link
6212
6216
  * @requiredFlavor impact
6213
6217
  */
6214
- this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
6218
+ this.restrictedWordsErrorDescription = "This link contains a restricted word.";
6215
6219
  /**
6216
- * Message shown when the edit limit has been reached. Use {supportLink} as a placeholder for the support link.
6220
+ * Title of the error message shown when the link contains profanity or brand names.
6217
6221
  *
6218
- * @uiName Edit limit reached text
6222
+ * @uiName Restricted words error title
6219
6223
  * @uiType string
6220
- * @uiGroup Customize Vanity Link
6224
+ * @uiGroup Customizable Vanity Link
6221
6225
  * @requiredFlavor impact
6222
6226
  */
6223
- this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6227
+ this.restrictedWordsErrorTitle = "Please try a different link";
6224
6228
  /**
6225
- * Display text for the support link in the edit limit reached message
6229
+ * Text for the save button in editing mode
6226
6230
  *
6227
- * @uiName Support link text
6231
+ * @uiName Save button label
6228
6232
  * @uiType string
6229
- * @uiGroup Customize Vanity Link
6233
+ * @uiGroup Customizable Vanity Link
6230
6234
  * @requiredFlavor impact
6231
6235
  */
6232
- this.supportLinkText = "Support";
6236
+ this.saveLabelText = "Save";
6233
6237
  /**
6234
- * Tooltip text shown when link customization is disabled
6238
+ * Display text for the support link in the edit limit reached message
6235
6239
  *
6236
- * @uiName Customize disabled tooltip
6240
+ * @uiName Support link text
6237
6241
  * @uiType string
6238
- * @uiGroup Customize Vanity Link
6242
+ * @uiGroup Customizable Vanity Link
6239
6243
  * @requiredFlavor impact
6240
6244
  */
6241
- this.customizeDisabledTooltip = "Link customization is not available.";
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.customizeLinkLabel,
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-1ed8faf9.js');
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" }, supportLinkText)),
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
  }