@saasquatch/mint-components 2.1.8-23 → 2.1.8-24
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-00d53485.js → ShadowViewAddon-1ed8faf9.js} +40 -9
- 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 +4 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -1
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +37 -6
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +24 -7
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/esm/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-395ab799.js} +40 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_45.entry.js +4 -4
- package/dist/esm/sqm-stencilbook.entry.js +3 -3
- package/dist/esm-es5/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-395ab799.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-d8e5c04c.system.entry.js → p-2b108f39.system.entry.js} +1 -1
- package/dist/mint-components/p-4b365f1f.system.js +1 -1
- package/dist/mint-components/{p-1cc59885.system.entry.js → p-8e5a6491.system.entry.js} +1 -1
- package/dist/mint-components/{p-2065e74e.entry.js → p-ba640335.entry.js} +2 -2
- package/dist/mint-components/{p-a5bbe968.js → p-cd79864c.js} +2 -2
- package/dist/mint-components/{p-6fcc0439.system.js → p-d7adb7f3.system.js} +1 -1
- package/dist/mint-components/{p-01962a11.entry.js → p-e6cf9daa.entry.js} +2 -2
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -1
- package/dist/types/components.d.ts +18 -234
- 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 +1 -1
|
@@ -9,7 +9,7 @@ const vanillaStyle = `
|
|
|
9
9
|
}
|
|
10
10
|
`;
|
|
11
11
|
export function ShareLinkView(props) {
|
|
12
|
-
const { copyTextViewProps,
|
|
12
|
+
const { copyTextViewProps, allowCustomization, customizeLinkLabel, saveLabelText, cancelLabelText, isEditing, editValue, domainPrefix, editsRemaining, maxEdits, limitReached, validationError, isValidating, isSaving, characterLimit, minCharacters, charactersRemaining, editLimitText, editLimitReachedText, supportLinkText, customizeDisabled, customizeDisabledTooltip, onCustomizeClick, onEditValueChange, onSave, onCancel, } = props;
|
|
13
13
|
const style = {
|
|
14
14
|
Container: {
|
|
15
15
|
display: "flex",
|
|
@@ -97,6 +97,32 @@ export function ShareLinkView(props) {
|
|
|
97
97
|
gap: "var(--sl-spacing-medium)",
|
|
98
98
|
alignItems: "center",
|
|
99
99
|
},
|
|
100
|
+
SaveButton: {
|
|
101
|
+
cursor: "pointer",
|
|
102
|
+
fontFamily: "var(--sl-font-sans)",
|
|
103
|
+
fontSize: "var(--sl-font-size-small)",
|
|
104
|
+
fontWeight: "600",
|
|
105
|
+
padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
|
|
106
|
+
borderRadius: "var(--sqm-border-radius-normal, 4px)",
|
|
107
|
+
border: "1px solid var(--sl-color-neutral-900)",
|
|
108
|
+
background: "var(--sl-color-neutral-900)",
|
|
109
|
+
color: "#fff",
|
|
110
|
+
"&:disabled": {
|
|
111
|
+
opacity: "0.5",
|
|
112
|
+
cursor: "default",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
CancelButton: {
|
|
116
|
+
margin: "0",
|
|
117
|
+
fontSize: "var(--sl-font-size-small)",
|
|
118
|
+
fontWeight: "600",
|
|
119
|
+
cursor: "pointer",
|
|
120
|
+
background: "none",
|
|
121
|
+
border: "none",
|
|
122
|
+
padding: "0",
|
|
123
|
+
fontFamily: "var(--sl-font-sans)",
|
|
124
|
+
color: "var(--sl-color-neutral-500)",
|
|
125
|
+
},
|
|
100
126
|
LimitReachedContainer: {
|
|
101
127
|
display: "flex",
|
|
102
128
|
alignItems: "center",
|
|
@@ -107,6 +133,11 @@ export function ShareLinkView(props) {
|
|
|
107
133
|
const styleString = sheet.toString();
|
|
108
134
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
109
135
|
const showCharactersRemaining = charactersRemaining <= 14;
|
|
136
|
+
const editLimitMessage = intl.formatMessage({
|
|
137
|
+
id: "editLimitText",
|
|
138
|
+
defaultMessage: editLimitText,
|
|
139
|
+
}, { editsRemaining });
|
|
140
|
+
console.log(domainPrefix, "domain prefix");
|
|
110
141
|
// Editing state
|
|
111
142
|
if (isEditing) {
|
|
112
143
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -121,7 +152,7 @@ export function ShareLinkView(props) {
|
|
|
121
152
|
e.preventDefault();
|
|
122
153
|
}, disabled: isSaving, maxLength: characterLimit })),
|
|
123
154
|
h("p", { class: sheet.classes.HelperText },
|
|
124
|
-
|
|
155
|
+
editLimitMessage,
|
|
125
156
|
showCharactersRemaining &&
|
|
126
157
|
` Characters remaining: ${charactersRemaining}`),
|
|
127
158
|
validationError && (h("sqm-form-message", { type: errorMessageType, style: { paddingBottom: "var(--sl-spacing-xx-small)" } },
|
|
@@ -129,12 +160,12 @@ export function ShareLinkView(props) {
|
|
|
129
160
|
validationError.description)),
|
|
130
161
|
isValidating && h("p", { class: sheet.classes.HelperText }, "Validating..."),
|
|
131
162
|
h("div", { class: sheet.classes.ActionRow },
|
|
132
|
-
h("
|
|
163
|
+
h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
|
|
133
164
|
isValidating ||
|
|
134
165
|
!!validationError ||
|
|
135
166
|
!editValue ||
|
|
136
167
|
editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
|
|
137
|
-
h("
|
|
168
|
+
h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
|
|
138
169
|
}
|
|
139
170
|
// Default / Customized / Limit reached states
|
|
140
171
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -142,13 +173,13 @@ export function ShareLinkView(props) {
|
|
|
142
173
|
styleString,
|
|
143
174
|
vanillaStyle),
|
|
144
175
|
h(CopyTextView, Object.assign({}, copyTextViewProps)),
|
|
145
|
-
|
|
176
|
+
allowCustomization &&
|
|
146
177
|
(customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
|
|
147
178
|
h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("div", { class: sheet.classes.LimitReachedContainer },
|
|
148
179
|
h("p", { class: limitReached
|
|
149
180
|
? sheet.classes.CustomizeLinkDisabled
|
|
150
181
|
: sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel),
|
|
151
|
-
|
|
182
|
+
allowCustomization && limitReached && (h("p", { class: sheet.classes.HelperText }, intl.formatMessage({
|
|
152
183
|
id: "editLimitReached",
|
|
153
184
|
defaultMessage: editLimitReachedText,
|
|
154
185
|
}, {
|
|
@@ -66,7 +66,7 @@ export class ShareLink {
|
|
|
66
66
|
* @uiGroup Customize Vanity Link
|
|
67
67
|
* @requiredFlavor impact
|
|
68
68
|
*/
|
|
69
|
-
this.
|
|
69
|
+
this.allowCustomization = false;
|
|
70
70
|
/**
|
|
71
71
|
* Text shown below the share link input to trigger customization
|
|
72
72
|
*
|
|
@@ -156,7 +156,7 @@ export class ShareLink {
|
|
|
156
156
|
* @uiGroup Customize Vanity Link
|
|
157
157
|
* @requiredFlavor impact
|
|
158
158
|
*/
|
|
159
|
-
this.editLimitText = "You can edit your link up to
|
|
159
|
+
this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
|
|
160
160
|
/**
|
|
161
161
|
* Message shown when the edit limit has been reached. Use {supportLink} as a placeholder for the support link.
|
|
162
162
|
*
|
|
@@ -495,7 +495,7 @@ export class ShareLink {
|
|
|
495
495
|
"reflect": false,
|
|
496
496
|
"defaultValue": "\"icon\""
|
|
497
497
|
},
|
|
498
|
-
"
|
|
498
|
+
"allowCustomization": {
|
|
499
499
|
"type": "boolean",
|
|
500
500
|
"mutable": false,
|
|
501
501
|
"complexType": {
|
|
@@ -521,7 +521,7 @@ export class ShareLink {
|
|
|
521
521
|
}],
|
|
522
522
|
"text": "Enable users to customize their referral link"
|
|
523
523
|
},
|
|
524
|
-
"attribute": "
|
|
524
|
+
"attribute": "allow-customization",
|
|
525
525
|
"reflect": false,
|
|
526
526
|
"defaultValue": "false"
|
|
527
527
|
},
|
|
@@ -823,7 +823,7 @@ export class ShareLink {
|
|
|
823
823
|
},
|
|
824
824
|
"attribute": "edit-limit-text",
|
|
825
825
|
"reflect": false,
|
|
826
|
-
"defaultValue": "\"You can edit your link up to
|
|
826
|
+
"defaultValue": "\"You can edit your link up to {editsRemaining} more times.\""
|
|
827
827
|
},
|
|
828
828
|
"editLimitReachedText": {
|
|
829
829
|
"type": "string",
|
|
@@ -920,7 +920,7 @@ export class ShareLink {
|
|
|
920
920
|
"mutable": false,
|
|
921
921
|
"complexType": {
|
|
922
922
|
"original": "DemoData<ShareLinkViewProps>",
|
|
923
|
-
"resolved": "{ copyTextViewProps?: CopyTextViewProps;
|
|
923
|
+
"resolved": "{ copyTextViewProps?: CopyTextViewProps; allowCustomization?: boolean; customizeLinkLabel?: string; saveLabelText?: string; cancelLabelText?: string; isEditing?: boolean; editValue?: string; domainPrefix?: string; editsRemaining?: number; maxEdits?: number; limitReached?: boolean; validationError?: ValidationErrorInfo; isValidating?: boolean; isSaving?: boolean; characterLimit?: number; minCharacters?: number; charactersRemaining?: number; editLimitText?: string; editLimitReachedText?: string; supportLinkText?: string; customizeDisabled?: boolean; customizeDisabledTooltip?: string; onCustomizeClick?: () => void; onEditValueChange?: (value: string) => void; onSave?: () => void; onCancel?: () => void; }",
|
|
924
924
|
"references": {
|
|
925
925
|
"DemoData": {
|
|
926
926
|
"location": "import",
|
|
@@ -944,6 +944,23 @@ export class ShareLink {
|
|
|
944
944
|
}],
|
|
945
945
|
"text": ""
|
|
946
946
|
}
|
|
947
|
+
},
|
|
948
|
+
"editsRemaining": {
|
|
949
|
+
"type": "number",
|
|
950
|
+
"mutable": false,
|
|
951
|
+
"complexType": {
|
|
952
|
+
"original": "number",
|
|
953
|
+
"resolved": "number",
|
|
954
|
+
"references": {}
|
|
955
|
+
},
|
|
956
|
+
"required": false,
|
|
957
|
+
"optional": true,
|
|
958
|
+
"docs": {
|
|
959
|
+
"tags": [],
|
|
960
|
+
"text": ""
|
|
961
|
+
},
|
|
962
|
+
"attribute": "edits-remaining",
|
|
963
|
+
"reflect": false
|
|
947
964
|
}
|
|
948
965
|
}; }
|
|
949
966
|
}
|
|
@@ -973,7 +990,7 @@ function useDemoShareLink(props) {
|
|
|
973
990
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
974
991
|
},
|
|
975
992
|
},
|
|
976
|
-
|
|
993
|
+
allowCustomization: props.allowCustomization,
|
|
977
994
|
customizeLinkLabel: props.customizeLinkLabel,
|
|
978
995
|
saveLabelText: props.saveLabelText,
|
|
979
996
|
cancelLabelText: props.cancelLabelText,
|
|
@@ -88,8 +88,8 @@ export function useShareLink(props) {
|
|
|
88
88
|
const [addShareLinkCode, { loading: isSaving }] = useMutation(ADD_SHARE_LINK_CODE);
|
|
89
89
|
const [validateLinkCode] = useLazyQuery(VALIDATE_LINK_CODE);
|
|
90
90
|
const { refresh } = useRefreshDispatcher();
|
|
91
|
-
const { data: linkDomainData } = useQuery(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.
|
|
92
|
-
const { data: editCountData, refetch: refetchEditCount } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.
|
|
91
|
+
const { data: linkDomainData } = useQuery(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
|
|
92
|
+
const { data: editCountData, refetch: refetchEditCount } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
|
|
93
93
|
const { url: copyString, domain: domainPrefix, path: pathSuffix, } = parseShareUrl((_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
94
94
|
// Shown during loading
|
|
95
95
|
"...");
|
|
@@ -229,7 +229,7 @@ export function useShareLink(props) {
|
|
|
229
229
|
open,
|
|
230
230
|
copyString,
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
allowCustomization: props.allowCustomization,
|
|
233
233
|
customizeLinkLabel: props.customizeLinkLabel,
|
|
234
234
|
saveLabelText: props.saveLabelText,
|
|
235
235
|
cancelLabelText: props.cancelLabelText,
|
|
@@ -4234,7 +4234,7 @@ const vanillaStyle$6 = `
|
|
|
4234
4234
|
}
|
|
4235
4235
|
`;
|
|
4236
4236
|
function ShareLinkView(props) {
|
|
4237
|
-
const { copyTextViewProps,
|
|
4237
|
+
const { copyTextViewProps, allowCustomization, customizeLinkLabel, saveLabelText, cancelLabelText, isEditing, editValue, domainPrefix, editsRemaining, maxEdits, limitReached, validationError, isValidating, isSaving, characterLimit, minCharacters, charactersRemaining, editLimitText, editLimitReachedText, supportLinkText, customizeDisabled, customizeDisabledTooltip, onCustomizeClick, onEditValueChange, onSave, onCancel, } = props;
|
|
4238
4238
|
const style = {
|
|
4239
4239
|
Container: {
|
|
4240
4240
|
display: "flex",
|
|
@@ -4322,6 +4322,32 @@ function ShareLinkView(props) {
|
|
|
4322
4322
|
gap: "var(--sl-spacing-medium)",
|
|
4323
4323
|
alignItems: "center",
|
|
4324
4324
|
},
|
|
4325
|
+
SaveButton: {
|
|
4326
|
+
cursor: "pointer",
|
|
4327
|
+
fontFamily: "var(--sl-font-sans)",
|
|
4328
|
+
fontSize: "var(--sl-font-size-small)",
|
|
4329
|
+
fontWeight: "600",
|
|
4330
|
+
padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
|
|
4331
|
+
borderRadius: "var(--sqm-border-radius-normal, 4px)",
|
|
4332
|
+
border: "1px solid var(--sl-color-neutral-900)",
|
|
4333
|
+
background: "var(--sl-color-neutral-900)",
|
|
4334
|
+
color: "#fff",
|
|
4335
|
+
"&:disabled": {
|
|
4336
|
+
opacity: "0.5",
|
|
4337
|
+
cursor: "default",
|
|
4338
|
+
},
|
|
4339
|
+
},
|
|
4340
|
+
CancelButton: {
|
|
4341
|
+
margin: "0",
|
|
4342
|
+
fontSize: "var(--sl-font-size-small)",
|
|
4343
|
+
fontWeight: "600",
|
|
4344
|
+
cursor: "pointer",
|
|
4345
|
+
background: "none",
|
|
4346
|
+
border: "none",
|
|
4347
|
+
padding: "0",
|
|
4348
|
+
fontFamily: "var(--sl-font-sans)",
|
|
4349
|
+
color: "var(--sl-color-neutral-500)",
|
|
4350
|
+
},
|
|
4325
4351
|
LimitReachedContainer: {
|
|
4326
4352
|
display: "flex",
|
|
4327
4353
|
alignItems: "center",
|
|
@@ -4332,6 +4358,11 @@ function ShareLinkView(props) {
|
|
|
4332
4358
|
const styleString = sheet.toString();
|
|
4333
4359
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
4334
4360
|
const showCharactersRemaining = charactersRemaining <= 14;
|
|
4361
|
+
const editLimitMessage = intl.formatMessage({
|
|
4362
|
+
id: "editLimitText",
|
|
4363
|
+
defaultMessage: editLimitText,
|
|
4364
|
+
}, { editsRemaining });
|
|
4365
|
+
console.log(domainPrefix, "domain prefix");
|
|
4335
4366
|
// Editing state
|
|
4336
4367
|
if (isEditing) {
|
|
4337
4368
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -4346,7 +4377,7 @@ function ShareLinkView(props) {
|
|
|
4346
4377
|
e.preventDefault();
|
|
4347
4378
|
}, disabled: isSaving, maxLength: characterLimit })),
|
|
4348
4379
|
h("p", { class: sheet.classes.HelperText },
|
|
4349
|
-
|
|
4380
|
+
editLimitMessage,
|
|
4350
4381
|
showCharactersRemaining &&
|
|
4351
4382
|
` Characters remaining: ${charactersRemaining}`),
|
|
4352
4383
|
validationError && (h("sqm-form-message", { type: errorMessageType, style: { paddingBottom: "var(--sl-spacing-xx-small)" } },
|
|
@@ -4354,12 +4385,12 @@ function ShareLinkView(props) {
|
|
|
4354
4385
|
validationError.description)),
|
|
4355
4386
|
isValidating && h("p", { class: sheet.classes.HelperText }, "Validating..."),
|
|
4356
4387
|
h("div", { class: sheet.classes.ActionRow },
|
|
4357
|
-
h("
|
|
4388
|
+
h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
|
|
4358
4389
|
isValidating ||
|
|
4359
4390
|
!!validationError ||
|
|
4360
4391
|
!editValue ||
|
|
4361
4392
|
editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
|
|
4362
|
-
h("
|
|
4393
|
+
h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
|
|
4363
4394
|
}
|
|
4364
4395
|
// Default / Customized / Limit reached states
|
|
4365
4396
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -4367,13 +4398,13 @@ function ShareLinkView(props) {
|
|
|
4367
4398
|
styleString,
|
|
4368
4399
|
vanillaStyle$6),
|
|
4369
4400
|
h(CopyTextView, Object.assign({}, copyTextViewProps)),
|
|
4370
|
-
|
|
4401
|
+
allowCustomization &&
|
|
4371
4402
|
(customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
|
|
4372
4403
|
h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("div", { class: sheet.classes.LimitReachedContainer },
|
|
4373
4404
|
h("p", { class: limitReached
|
|
4374
4405
|
? sheet.classes.CustomizeLinkDisabled
|
|
4375
4406
|
: sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel),
|
|
4376
|
-
|
|
4407
|
+
allowCustomization && limitReached && (h("p", { class: sheet.classes.HelperText }, intl.formatMessage({
|
|
4377
4408
|
id: "editLimitReached",
|
|
4378
4409
|
defaultMessage: editLimitReachedText,
|
|
4379
4410
|
}, {
|
|
@@ -4467,8 +4498,8 @@ function useShareLink(props) {
|
|
|
4467
4498
|
const [addShareLinkCode, { loading: isSaving }] = $e(ADD_SHARE_LINK_CODE);
|
|
4468
4499
|
const [validateLinkCode] = Xe(VALIDATE_LINK_CODE);
|
|
4469
4500
|
const { refresh } = Qe();
|
|
4470
|
-
const { data: linkDomainData } = wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.
|
|
4471
|
-
const { data: editCountData, refetch: refetchEditCount } = wn(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.
|
|
4501
|
+
const { data: linkDomainData } = wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
|
|
4502
|
+
const { data: editCountData, refetch: refetchEditCount } = wn(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
|
|
4472
4503
|
const { url: copyString, domain: domainPrefix, path: pathSuffix, } = parseShareUrl((_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
4473
4504
|
// Shown during loading
|
|
4474
4505
|
"...");
|
|
@@ -4608,7 +4639,7 @@ function useShareLink(props) {
|
|
|
4608
4639
|
open,
|
|
4609
4640
|
copyString,
|
|
4610
4641
|
},
|
|
4611
|
-
|
|
4642
|
+
allowCustomization: props.allowCustomization,
|
|
4612
4643
|
customizeLinkLabel: props.customizeLinkLabel,
|
|
4613
4644
|
saveLabelText: props.saveLabelText,
|
|
4614
4645
|
cancelLabelText: props.cancelLabelText,
|