@saasquatch/mint-components 2.1.8-22 → 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-643b83e2.js → ShadowViewAddon-1ed8faf9.js} +12 -8
- 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 +590 -1146
- 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 -7
- 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-fcb6446a.js → ShadowViewAddon-395ab799.js} +12 -8
- 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 +2773 -3329
- package/dist/esm-es5/{ShadowViewAddon-fcb6446a.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-3692c0da.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-8d7548fb.system.entry.js → p-8e5a6491.system.entry.js} +1 -1
- package/dist/mint-components/{p-04502b80.entry.js → p-ba640335.entry.js} +2 -2
- package/dist/mint-components/{p-0eeb5438.js → p-cd79864c.js} +6 -6
- package/dist/mint-components/{p-5284bb02.system.js → p-d7adb7f3.system.js} +1 -1
- package/dist/mint-components/{p-31757712.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
- package/dist/cjs/sqm-share-link.cjs.entry.js +0 -271
- package/dist/cjs/useShareLink-1282123e.js +0 -422
- package/dist/cjs/useShareLink-3c22b1b9.js +0 -448
- package/dist/cjs/useShareLink-54e24928.js +0 -448
- package/dist/cjs/useShareLink-b664fbc7.js +0 -450
- package/dist/cjs/useShareLink-bf04b25c.js +0 -450
- package/dist/cjs/useShareLink-e8e2ae6d.js +0 -448
- package/dist/esm/sqm-share-link.entry.js +0 -267
- package/dist/esm/useShareLink-023284f3.js +0 -445
- package/dist/esm/useShareLink-436e9cad.js +0 -445
- package/dist/esm/useShareLink-4ba01373.js +0 -447
- package/dist/esm/useShareLink-79056582.js +0 -445
- package/dist/esm/useShareLink-a3329e33.js +0 -419
- package/dist/esm/useShareLink-bc20ec4c.js +0 -447
- package/dist/esm-es5/sqm-share-link.entry.js +0 -1
- package/dist/esm-es5/useShareLink-023284f3.js +0 -1
- package/dist/esm-es5/useShareLink-436e9cad.js +0 -1
- package/dist/esm-es5/useShareLink-4ba01373.js +0 -1
- package/dist/esm-es5/useShareLink-79056582.js +0 -1
- package/dist/esm-es5/useShareLink-a3329e33.js +0 -1
- package/dist/esm-es5/useShareLink-bc20ec4c.js +0 -1
- package/dist/mint-components/sqm-share-link.entry.js +0 -267
- package/dist/mint-components/sqm-share-link.system.entry.js +0 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +0 -22106
- package/dist/mint-components/sqm-stencilbook.system.entry.js +0 -1
- package/dist/mint-components/useShareLink-023284f3.js +0 -445
- package/dist/mint-components/useShareLink-1d7c9fd8.system.js +0 -1
- package/dist/mint-components/useShareLink-211e061c.system.js +0 -1
- package/dist/mint-components/useShareLink-2de7ffce.system.js +0 -1
- package/dist/mint-components/useShareLink-436e9cad.js +0 -445
- package/dist/mint-components/useShareLink-454939f5.system.js +0 -1
- package/dist/mint-components/useShareLink-4ba01373.js +0 -447
- package/dist/mint-components/useShareLink-79056582.js +0 -445
- package/dist/mint-components/useShareLink-a3329e33.js +0 -419
- package/dist/mint-components/useShareLink-bc20ec4c.js +0 -447
- package/dist/mint-components/useShareLink-c05fe151.system.js +0 -1
- package/dist/mint-components/useShareLink-cb5abd96.system.js +0 -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,7 +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;
|
|
110
|
-
|
|
136
|
+
const editLimitMessage = intl.formatMessage({
|
|
137
|
+
id: "editLimitText",
|
|
138
|
+
defaultMessage: editLimitText,
|
|
139
|
+
}, { editsRemaining });
|
|
140
|
+
console.log(domainPrefix, "domain prefix");
|
|
111
141
|
// Editing state
|
|
112
142
|
if (isEditing) {
|
|
113
143
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -122,7 +152,7 @@ export function ShareLinkView(props) {
|
|
|
122
152
|
e.preventDefault();
|
|
123
153
|
}, disabled: isSaving, maxLength: characterLimit })),
|
|
124
154
|
h("p", { class: sheet.classes.HelperText },
|
|
125
|
-
|
|
155
|
+
editLimitMessage,
|
|
126
156
|
showCharactersRemaining &&
|
|
127
157
|
` Characters remaining: ${charactersRemaining}`),
|
|
128
158
|
validationError && (h("sqm-form-message", { type: errorMessageType, style: { paddingBottom: "var(--sl-spacing-xx-small)" } },
|
|
@@ -130,12 +160,12 @@ export function ShareLinkView(props) {
|
|
|
130
160
|
validationError.description)),
|
|
131
161
|
isValidating && h("p", { class: sheet.classes.HelperText }, "Validating..."),
|
|
132
162
|
h("div", { class: sheet.classes.ActionRow },
|
|
133
|
-
h("
|
|
163
|
+
h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
|
|
134
164
|
isValidating ||
|
|
135
165
|
!!validationError ||
|
|
136
166
|
!editValue ||
|
|
137
167
|
editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
|
|
138
|
-
h("
|
|
168
|
+
h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
|
|
139
169
|
}
|
|
140
170
|
// Default / Customized / Limit reached states
|
|
141
171
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -143,13 +173,13 @@ export function ShareLinkView(props) {
|
|
|
143
173
|
styleString,
|
|
144
174
|
vanillaStyle),
|
|
145
175
|
h(CopyTextView, Object.assign({}, copyTextViewProps)),
|
|
146
|
-
|
|
176
|
+
allowCustomization &&
|
|
147
177
|
(customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
|
|
148
178
|
h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("div", { class: sheet.classes.LimitReachedContainer },
|
|
149
179
|
h("p", { class: limitReached
|
|
150
180
|
? sheet.classes.CustomizeLinkDisabled
|
|
151
181
|
: sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel),
|
|
152
|
-
|
|
182
|
+
allowCustomization && limitReached && (h("p", { class: sheet.classes.HelperText }, intl.formatMessage({
|
|
153
183
|
id: "editLimitReached",
|
|
154
184
|
defaultMessage: editLimitReachedText,
|
|
155
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",
|
|
@@ -4358,7 +4358,11 @@ function ShareLinkView(props) {
|
|
|
4358
4358
|
const styleString = sheet.toString();
|
|
4359
4359
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
4360
4360
|
const showCharactersRemaining = charactersRemaining <= 14;
|
|
4361
|
-
|
|
4361
|
+
const editLimitMessage = intl.formatMessage({
|
|
4362
|
+
id: "editLimitText",
|
|
4363
|
+
defaultMessage: editLimitText,
|
|
4364
|
+
}, { editsRemaining });
|
|
4365
|
+
console.log(domainPrefix, "domain prefix");
|
|
4362
4366
|
// Editing state
|
|
4363
4367
|
if (isEditing) {
|
|
4364
4368
|
return (h("div", { class: sheet.classes.Container },
|
|
@@ -4373,7 +4377,7 @@ function ShareLinkView(props) {
|
|
|
4373
4377
|
e.preventDefault();
|
|
4374
4378
|
}, disabled: isSaving, maxLength: characterLimit })),
|
|
4375
4379
|
h("p", { class: sheet.classes.HelperText },
|
|
4376
|
-
|
|
4380
|
+
editLimitMessage,
|
|
4377
4381
|
showCharactersRemaining &&
|
|
4378
4382
|
` Characters remaining: ${charactersRemaining}`),
|
|
4379
4383
|
validationError && (h("sqm-form-message", { type: errorMessageType, style: { paddingBottom: "var(--sl-spacing-xx-small)" } },
|
|
@@ -4394,13 +4398,13 @@ function ShareLinkView(props) {
|
|
|
4394
4398
|
styleString,
|
|
4395
4399
|
vanillaStyle$6),
|
|
4396
4400
|
h(CopyTextView, Object.assign({}, copyTextViewProps)),
|
|
4397
|
-
|
|
4401
|
+
allowCustomization &&
|
|
4398
4402
|
(customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
|
|
4399
4403
|
h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("div", { class: sheet.classes.LimitReachedContainer },
|
|
4400
4404
|
h("p", { class: limitReached
|
|
4401
4405
|
? sheet.classes.CustomizeLinkDisabled
|
|
4402
4406
|
: sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel),
|
|
4403
|
-
|
|
4407
|
+
allowCustomization && limitReached && (h("p", { class: sheet.classes.HelperText }, intl.formatMessage({
|
|
4404
4408
|
id: "editLimitReached",
|
|
4405
4409
|
defaultMessage: editLimitReachedText,
|
|
4406
4410
|
}, {
|
|
@@ -4494,8 +4498,8 @@ function useShareLink(props) {
|
|
|
4494
4498
|
const [addShareLinkCode, { loading: isSaving }] = $e(ADD_SHARE_LINK_CODE);
|
|
4495
4499
|
const [validateLinkCode] = Xe(VALIDATE_LINK_CODE);
|
|
4496
4500
|
const { refresh } = Qe();
|
|
4497
|
-
const { data: linkDomainData } = wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.
|
|
4498
|
-
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);
|
|
4499
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 :
|
|
4500
4504
|
// Shown during loading
|
|
4501
4505
|
"...");
|
|
@@ -4635,7 +4639,7 @@ function useShareLink(props) {
|
|
|
4635
4639
|
open,
|
|
4636
4640
|
copyString,
|
|
4637
4641
|
},
|
|
4638
|
-
|
|
4642
|
+
allowCustomization: props.allowCustomization,
|
|
4639
4643
|
customizeLinkLabel: props.customizeLinkLabel,
|
|
4640
4644
|
saveLabelText: props.saveLabelText,
|
|
4641
4645
|
cancelLabelText: props.cancelLabelText,
|