@saasquatch/mint-components 2.1.8-23 → 2.1.8-25

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 (40) hide show
  1. package/dist/cjs/{ShadowViewAddon-00d53485.js → ShadowViewAddon-247ccfa4.js} +45 -14
  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 +44 -40
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
  6. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -1
  7. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +1 -1
  8. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +37 -6
  9. package/dist/collection/components/sqm-share-link/sqm-share-link.js +116 -83
  10. package/dist/collection/components/sqm-share-link/useShareLink.js +8 -8
  11. package/dist/esm/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-e7e73e36.js} +45 -14
  12. package/dist/esm/loader.js +1 -1
  13. package/dist/esm/mint-components.js +1 -1
  14. package/dist/esm/sqm-big-stat_45.entry.js +44 -40
  15. package/dist/esm/sqm-stencilbook.entry.js +3 -3
  16. package/dist/esm-es5/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-e7e73e36.js} +1 -1
  17. package/dist/esm-es5/loader.js +1 -1
  18. package/dist/esm-es5/mint-components.js +1 -1
  19. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
  20. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  21. package/dist/mint-components/mint-components.esm.js +1 -1
  22. package/dist/mint-components/{p-6fcc0439.system.js → p-0a02a7a5.system.js} +1 -1
  23. package/dist/mint-components/{p-2065e74e.entry.js → p-365363b5.entry.js} +2 -2
  24. package/dist/mint-components/{p-a5bbe968.js → p-3be90659.js} +2 -2
  25. package/dist/mint-components/{p-1cc59885.system.entry.js → p-4aede05c.system.entry.js} +1 -1
  26. package/dist/mint-components/p-4b365f1f.system.js +1 -1
  27. package/dist/mint-components/{p-01962a11.entry.js → p-c7f4a587.entry.js} +2 -2
  28. package/dist/mint-components/{p-d8e5c04c.system.entry.js → p-f62812ff.system.entry.js} +1 -1
  29. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
  30. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +41 -36
  31. package/dist/types/components/sqm-share-link/useShareLink.d.ts +6 -6
  32. package/dist/types/components.d.ts +106 -314
  33. package/dist/types/global/android.d.ts +7 -0
  34. package/dist/types/global/demo.d.ts +2 -0
  35. package/dist/types/stories/features.d.ts +4 -0
  36. package/dist/types/stories/templates.d.ts +4 -0
  37. package/docs/docs.docx +0 -0
  38. package/docs/raisins.json +1 -1
  39. package/grapesjs/grapesjs.js +1 -1
  40. package/package.json +1 -1
@@ -59,29 +59,29 @@ export class ShareLink {
59
59
  */
60
60
  this.buttonStyle = "icon";
61
61
  /**
62
- * Enable users to customize their referral link
62
+ * Let advocates customize their share links up to 5 times.
63
63
  *
64
- * @uiName Customize URL
64
+ * @uiName Allow customization
65
65
  * @uiType boolean
66
- * @uiGroup Customize Vanity Link
66
+ * @uiGroup Customizable Vanity Link
67
67
  * @requiredFlavor impact
68
68
  */
69
- this.customizeUrl = false;
69
+ this.allowCustomization = false;
70
70
  /**
71
- * Text shown below the share link input to trigger customization
71
+ * Displayed below the share link.
72
72
  *
73
- * @uiName Customize link label
73
+ * @uiName Customize link button label
74
74
  * @uiType string
75
- * @uiGroup Customize Vanity Link
75
+ * @uiGroup Customizable Vanity Link
76
76
  * @requiredFlavor impact
77
77
  */
78
- this.customizeLinkLabel = "Customize Link";
78
+ this.customizeLinkButtonLabel = "Customize Link";
79
79
  /**
80
80
  * Text for the save button in editing mode
81
81
  *
82
82
  * @uiName Save button label
83
83
  * @uiType string
84
- * @uiGroup Customize Vanity Link
84
+ * @uiGroup Customizable Vanity Link
85
85
  * @requiredFlavor impact
86
86
  */
87
87
  this.saveLabelText = "Save";
@@ -90,79 +90,83 @@ export class ShareLink {
90
90
  *
91
91
  * @uiName Cancel button label
92
92
  * @uiType string
93
- * @uiGroup Customize Vanity Link
93
+ * @uiGroup Customizable Vanity Link
94
94
  * @requiredFlavor impact
95
95
  */
96
96
  this.cancelLabelText = "Cancel";
97
97
  /**
98
- * Title text shown when the custom link is already taken
98
+ * Title of the error message shown when the link has already been taken
99
99
  *
100
- * @uiName Existing code conflict error title
100
+ * @uiName Link taken error title
101
101
  * @uiType string
102
- * @uiGroup Customize Vanity Link
102
+ * @uiGroup Customizable Vanity Link
103
103
  * @requiredFlavor impact
104
104
  */
105
- this.existingCodeConflictErrorTitle = "This link is already taken";
105
+ this.linkTakenErrorTitle = "This link is already taken";
106
106
  /**
107
- * Description text shown when the custom link is already taken
107
+ * Description text shown when the link has already been taken
108
108
  *
109
- * @uiName Existing code conflict error description
109
+ * @uiName Link taken error message
110
110
  * @uiType string
111
- * @uiGroup Customize Vanity Link
111
+ * @uiWidget textarea
112
+ * @uiGroup Customizable Vanity Link
112
113
  * @requiredFlavor impact
113
114
  */
114
- this.existingCodeConflictErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
115
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
115
116
  /**
116
- * Title text shown when the link contains invalid characters
117
+ * Title of the error message shown when the link contains invalid special characters.
117
118
  *
118
119
  * @uiName Invalid characters error title
119
120
  * @uiType string
120
- * @uiGroup Customize Vanity Link
121
+ * @uiGroup Customizable Vanity Link
121
122
  * @requiredFlavor impact
122
123
  */
123
124
  this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
124
125
  /**
125
- * Description text shown when the link contains invalid characters
126
+ * Description text shown when the link contains invalid special characters.
126
127
  *
127
128
  * @uiName Invalid characters error description
128
129
  * @uiType string
129
- * @uiGroup Customize Vanity Link
130
+ * @uiWidget textarea
131
+ * @uiGroup Customizable Vanity Link
130
132
  * @requiredFlavor impact
131
133
  */
132
134
  this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
133
135
  /**
134
- * Title text shown when the link contains profanity
136
+ * Title of the error message shown when the link contains profanity or brand names.
135
137
  *
136
- * @uiName Profanity error title
138
+ * @uiName Restricted words error title
137
139
  * @uiType string
138
- * @uiGroup Customize Vanity Link
140
+ * @uiGroup Customizable Vanity Link
139
141
  * @requiredFlavor impact
140
142
  */
141
- this.profanityErrorTitle = "Please try a different link";
143
+ this.restrictedWordsErrorTitle = "Please try a different link";
142
144
  /**
143
- * Description text shown when the link contains profanity
145
+ * Description text shown when the link contains profanity or brand names.
144
146
  *
145
- * @uiName Profanity error description
147
+ * @uiName Restricted words error description
146
148
  * @uiType string
147
- * @uiGroup Customize Vanity Link
149
+ * @uiWidget textarea
150
+ * @uiGroup Customizable Vanity Link
148
151
  * @requiredFlavor impact
149
152
  */
150
- this.profanityErrorDescription = "This link contains a restricted word.";
153
+ this.restrictedWordsErrorDescription = "This link contains a restricted word.";
151
154
  /**
152
- * Text describing the edit limit
155
+ * Subtext shown while the user is customizing their URL.
153
156
  *
154
157
  * @uiName Edit limit text
155
158
  * @uiType string
156
- * @uiGroup Customize Vanity Link
159
+ * @uiGroup Customizable Vanity Link
157
160
  * @requiredFlavor impact
158
161
  */
159
- this.editLimitText = "You can edit your link up to 5 times.";
162
+ this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
160
163
  /**
161
- * Message shown when the edit limit has been reached. Use {supportLink} as a placeholder for the support link.
164
+ * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
162
165
  *
163
166
  * @uiName Edit limit reached text
164
167
  * @uiType string
165
- * @uiGroup Customize Vanity Link
168
+ * @uiWidget textarea
169
+ * @uiGroup Customizable Vanity Link
166
170
  * @requiredFlavor impact
167
171
  */
168
172
  this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
@@ -171,7 +175,7 @@ export class ShareLink {
171
175
  *
172
176
  * @uiName Support link text
173
177
  * @uiType string
174
- * @uiGroup Customize Vanity Link
178
+ * @uiGroup Customizable Vanity Link
175
179
  * @requiredFlavor impact
176
180
  */
177
181
  this.supportLinkText = "Support";
@@ -180,7 +184,7 @@ export class ShareLink {
180
184
  *
181
185
  * @uiName Customize disabled tooltip
182
186
  * @uiType string
183
- * @uiGroup Customize Vanity Link
187
+ * @uiGroup Customizable Vanity Link
184
188
  * @requiredFlavor impact
185
189
  */
186
190
  this.customizeDisabledTooltip = "Link customization is not available.";
@@ -495,7 +499,7 @@ export class ShareLink {
495
499
  "reflect": false,
496
500
  "defaultValue": "\"icon\""
497
501
  },
498
- "customizeUrl": {
502
+ "allowCustomization": {
499
503
  "type": "boolean",
500
504
  "mutable": false,
501
505
  "complexType": {
@@ -507,25 +511,25 @@ export class ShareLink {
507
511
  "optional": true,
508
512
  "docs": {
509
513
  "tags": [{
510
- "text": "Customize URL",
514
+ "text": "Allow customization",
511
515
  "name": "uiName"
512
516
  }, {
513
517
  "text": "boolean",
514
518
  "name": "uiType"
515
519
  }, {
516
- "text": "Customize Vanity Link",
520
+ "text": "Customizable Vanity Link",
517
521
  "name": "uiGroup"
518
522
  }, {
519
523
  "text": "impact",
520
524
  "name": "requiredFlavor"
521
525
  }],
522
- "text": "Enable users to customize their referral link"
526
+ "text": "Let advocates customize their share links up to 5 times."
523
527
  },
524
- "attribute": "customize-url",
528
+ "attribute": "allow-customization",
525
529
  "reflect": false,
526
530
  "defaultValue": "false"
527
531
  },
528
- "customizeLinkLabel": {
532
+ "customizeLinkButtonLabel": {
529
533
  "type": "string",
530
534
  "mutable": false,
531
535
  "complexType": {
@@ -537,21 +541,21 @@ export class ShareLink {
537
541
  "optional": true,
538
542
  "docs": {
539
543
  "tags": [{
540
- "text": "Customize link label",
544
+ "text": "Customize link button label",
541
545
  "name": "uiName"
542
546
  }, {
543
547
  "text": "string",
544
548
  "name": "uiType"
545
549
  }, {
546
- "text": "Customize Vanity Link",
550
+ "text": "Customizable Vanity Link",
547
551
  "name": "uiGroup"
548
552
  }, {
549
553
  "text": "impact",
550
554
  "name": "requiredFlavor"
551
555
  }],
552
- "text": "Text shown below the share link input to trigger customization"
556
+ "text": "Displayed below the share link."
553
557
  },
554
- "attribute": "customize-link-label",
558
+ "attribute": "customize-link-button-label",
555
559
  "reflect": false,
556
560
  "defaultValue": "\"Customize Link\""
557
561
  },
@@ -573,7 +577,7 @@ export class ShareLink {
573
577
  "text": "string",
574
578
  "name": "uiType"
575
579
  }, {
576
- "text": "Customize Vanity Link",
580
+ "text": "Customizable Vanity Link",
577
581
  "name": "uiGroup"
578
582
  }, {
579
583
  "text": "impact",
@@ -603,7 +607,7 @@ export class ShareLink {
603
607
  "text": "string",
604
608
  "name": "uiType"
605
609
  }, {
606
- "text": "Customize Vanity Link",
610
+ "text": "Customizable Vanity Link",
607
611
  "name": "uiGroup"
608
612
  }, {
609
613
  "text": "impact",
@@ -615,7 +619,7 @@ export class ShareLink {
615
619
  "reflect": false,
616
620
  "defaultValue": "\"Cancel\""
617
621
  },
618
- "existingCodeConflictErrorTitle": {
622
+ "linkTakenErrorTitle": {
619
623
  "type": "string",
620
624
  "mutable": false,
621
625
  "complexType": {
@@ -627,25 +631,25 @@ export class ShareLink {
627
631
  "optional": true,
628
632
  "docs": {
629
633
  "tags": [{
630
- "text": "Existing code conflict error title",
634
+ "text": "Link taken error title",
631
635
  "name": "uiName"
632
636
  }, {
633
637
  "text": "string",
634
638
  "name": "uiType"
635
639
  }, {
636
- "text": "Customize Vanity Link",
640
+ "text": "Customizable Vanity Link",
637
641
  "name": "uiGroup"
638
642
  }, {
639
643
  "text": "impact",
640
644
  "name": "requiredFlavor"
641
645
  }],
642
- "text": "Title text shown when the custom link is already taken"
646
+ "text": "Title of the error message shown when the link has already been taken"
643
647
  },
644
- "attribute": "existing-code-conflict-error-title",
648
+ "attribute": "link-taken-error-title",
645
649
  "reflect": false,
646
650
  "defaultValue": "\"This link is already taken\""
647
651
  },
648
- "existingCodeConflictErrorDescription": {
652
+ "linkTakenErrorDescription": {
649
653
  "type": "string",
650
654
  "mutable": false,
651
655
  "complexType": {
@@ -657,21 +661,24 @@ export class ShareLink {
657
661
  "optional": true,
658
662
  "docs": {
659
663
  "tags": [{
660
- "text": "Existing code conflict error description",
664
+ "text": "Link taken error message",
661
665
  "name": "uiName"
662
666
  }, {
663
667
  "text": "string",
664
668
  "name": "uiType"
665
669
  }, {
666
- "text": "Customize Vanity Link",
670
+ "text": "textarea",
671
+ "name": "uiWidget"
672
+ }, {
673
+ "text": "Customizable Vanity Link",
667
674
  "name": "uiGroup"
668
675
  }, {
669
676
  "text": "impact",
670
677
  "name": "requiredFlavor"
671
678
  }],
672
- "text": "Description text shown when the custom link is already taken"
679
+ "text": "Description text shown when the link has already been taken"
673
680
  },
674
- "attribute": "existing-code-conflict-error-description",
681
+ "attribute": "link-taken-error-description",
675
682
  "reflect": false,
676
683
  "defaultValue": "\"Try adding numbers, a dash or underscore to create a unique link.\""
677
684
  },
@@ -693,13 +700,13 @@ export class ShareLink {
693
700
  "text": "string",
694
701
  "name": "uiType"
695
702
  }, {
696
- "text": "Customize Vanity Link",
703
+ "text": "Customizable Vanity Link",
697
704
  "name": "uiGroup"
698
705
  }, {
699
706
  "text": "impact",
700
707
  "name": "requiredFlavor"
701
708
  }],
702
- "text": "Title text shown when the link contains invalid characters"
709
+ "text": "Title of the error message shown when the link contains invalid special characters."
703
710
  },
704
711
  "attribute": "invalid-characters-error-title",
705
712
  "reflect": false,
@@ -723,19 +730,22 @@ export class ShareLink {
723
730
  "text": "string",
724
731
  "name": "uiType"
725
732
  }, {
726
- "text": "Customize Vanity Link",
733
+ "text": "textarea",
734
+ "name": "uiWidget"
735
+ }, {
736
+ "text": "Customizable Vanity Link",
727
737
  "name": "uiGroup"
728
738
  }, {
729
739
  "text": "impact",
730
740
  "name": "requiredFlavor"
731
741
  }],
732
- "text": "Description text shown when the link contains invalid characters"
742
+ "text": "Description text shown when the link contains invalid special characters."
733
743
  },
734
744
  "attribute": "invalid-characters-error-description",
735
745
  "reflect": false,
736
746
  "defaultValue": "\"Special characters can break the link when sharing.\""
737
747
  },
738
- "profanityErrorTitle": {
748
+ "restrictedWordsErrorTitle": {
739
749
  "type": "string",
740
750
  "mutable": false,
741
751
  "complexType": {
@@ -747,25 +757,25 @@ export class ShareLink {
747
757
  "optional": true,
748
758
  "docs": {
749
759
  "tags": [{
750
- "text": "Profanity error title",
760
+ "text": "Restricted words error title",
751
761
  "name": "uiName"
752
762
  }, {
753
763
  "text": "string",
754
764
  "name": "uiType"
755
765
  }, {
756
- "text": "Customize Vanity Link",
766
+ "text": "Customizable Vanity Link",
757
767
  "name": "uiGroup"
758
768
  }, {
759
769
  "text": "impact",
760
770
  "name": "requiredFlavor"
761
771
  }],
762
- "text": "Title text shown when the link contains profanity"
772
+ "text": "Title of the error message shown when the link contains profanity or brand names."
763
773
  },
764
- "attribute": "profanity-error-title",
774
+ "attribute": "restricted-words-error-title",
765
775
  "reflect": false,
766
776
  "defaultValue": "\"Please try a different link\""
767
777
  },
768
- "profanityErrorDescription": {
778
+ "restrictedWordsErrorDescription": {
769
779
  "type": "string",
770
780
  "mutable": false,
771
781
  "complexType": {
@@ -777,21 +787,24 @@ export class ShareLink {
777
787
  "optional": true,
778
788
  "docs": {
779
789
  "tags": [{
780
- "text": "Profanity error description",
790
+ "text": "Restricted words error description",
781
791
  "name": "uiName"
782
792
  }, {
783
793
  "text": "string",
784
794
  "name": "uiType"
785
795
  }, {
786
- "text": "Customize Vanity Link",
796
+ "text": "textarea",
797
+ "name": "uiWidget"
798
+ }, {
799
+ "text": "Customizable Vanity Link",
787
800
  "name": "uiGroup"
788
801
  }, {
789
802
  "text": "impact",
790
803
  "name": "requiredFlavor"
791
804
  }],
792
- "text": "Description text shown when the link contains profanity"
805
+ "text": "Description text shown when the link contains profanity or brand names."
793
806
  },
794
- "attribute": "profanity-error-description",
807
+ "attribute": "restricted-words-error-description",
795
808
  "reflect": false,
796
809
  "defaultValue": "\"This link contains a restricted word.\""
797
810
  },
@@ -813,17 +826,17 @@ export class ShareLink {
813
826
  "text": "string",
814
827
  "name": "uiType"
815
828
  }, {
816
- "text": "Customize Vanity Link",
829
+ "text": "Customizable Vanity Link",
817
830
  "name": "uiGroup"
818
831
  }, {
819
832
  "text": "impact",
820
833
  "name": "requiredFlavor"
821
834
  }],
822
- "text": "Text describing the edit limit"
835
+ "text": "Subtext shown while the user is customizing their URL."
823
836
  },
824
837
  "attribute": "edit-limit-text",
825
838
  "reflect": false,
826
- "defaultValue": "\"You can edit your link up to 5 times.\""
839
+ "defaultValue": "\"You can edit your link up to {editsRemaining} more times.\""
827
840
  },
828
841
  "editLimitReachedText": {
829
842
  "type": "string",
@@ -843,13 +856,16 @@ export class ShareLink {
843
856
  "text": "string",
844
857
  "name": "uiType"
845
858
  }, {
846
- "text": "Customize Vanity Link",
859
+ "text": "textarea",
860
+ "name": "uiWidget"
861
+ }, {
862
+ "text": "Customizable Vanity Link",
847
863
  "name": "uiGroup"
848
864
  }, {
849
865
  "text": "impact",
850
866
  "name": "requiredFlavor"
851
867
  }],
852
- "text": "Message shown when the edit limit has been reached. Use {supportLink} as a placeholder for the support link."
868
+ "text": "Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder."
853
869
  },
854
870
  "attribute": "edit-limit-reached-text",
855
871
  "reflect": false,
@@ -873,7 +889,7 @@ export class ShareLink {
873
889
  "text": "string",
874
890
  "name": "uiType"
875
891
  }, {
876
- "text": "Customize Vanity Link",
892
+ "text": "Customizable Vanity Link",
877
893
  "name": "uiGroup"
878
894
  }, {
879
895
  "text": "impact",
@@ -903,7 +919,7 @@ export class ShareLink {
903
919
  "text": "string",
904
920
  "name": "uiType"
905
921
  }, {
906
- "text": "Customize Vanity Link",
922
+ "text": "Customizable Vanity Link",
907
923
  "name": "uiGroup"
908
924
  }, {
909
925
  "text": "impact",
@@ -920,7 +936,7 @@ export class ShareLink {
920
936
  "mutable": false,
921
937
  "complexType": {
922
938
  "original": "DemoData<ShareLinkViewProps>",
923
- "resolved": "{ copyTextViewProps?: CopyTextViewProps; customizeUrl?: 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; }",
939
+ "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
940
  "references": {
925
941
  "DemoData": {
926
942
  "location": "import",
@@ -944,6 +960,23 @@ export class ShareLink {
944
960
  }],
945
961
  "text": ""
946
962
  }
963
+ },
964
+ "editsRemaining": {
965
+ "type": "number",
966
+ "mutable": false,
967
+ "complexType": {
968
+ "original": "number",
969
+ "resolved": "number",
970
+ "references": {}
971
+ },
972
+ "required": false,
973
+ "optional": true,
974
+ "docs": {
975
+ "tags": [],
976
+ "text": ""
977
+ },
978
+ "attribute": "edits-remaining",
979
+ "reflect": false
947
980
  }
948
981
  }; }
949
982
  }
@@ -973,8 +1006,8 @@ function useDemoShareLink(props) {
973
1006
  setTimeout(() => setOpen(false), props.tooltiplifespan);
974
1007
  },
975
1008
  },
976
- customizeUrl: props.customizeUrl,
977
- customizeLinkLabel: props.customizeLinkLabel,
1009
+ allowCustomization: props.allowCustomization,
1010
+ customizeLinkLabel: props.customizeLinkButtonLabel,
978
1011
  saveLabelText: props.saveLabelText,
979
1012
  cancelLabelText: props.cancelLabelText,
980
1013
  isEditing,
@@ -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.customizeUrl);
92
- const { data: editCountData, refetch: refetchEditCount } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
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
  "...");
@@ -111,8 +111,8 @@ export function useShareLink(props) {
111
111
  const errorMap = {
112
112
  EXISTING_CODE_CONFLICT: {
113
113
  code: "EXISTING_CODE_CONFLICT",
114
- title: props.existingCodeConflictErrorTitle,
115
- description: props.existingCodeConflictErrorDescription,
114
+ title: props.linkTakenErrorTitle,
115
+ description: props.linkTakenErrorDescription,
116
116
  },
117
117
  INVALID_CHARACTER: {
118
118
  code: "INVALID_CHARACTER",
@@ -121,8 +121,8 @@ export function useShareLink(props) {
121
121
  },
122
122
  BLOCKED_WORD: {
123
123
  code: "BLOCKED_WORD",
124
- title: props.profanityErrorTitle,
125
- description: props.profanityErrorDescription,
124
+ title: props.restrictedWordsErrorTitle,
125
+ description: props.restrictedWordsErrorDescription,
126
126
  },
127
127
  };
128
128
  return errorMap[errorCode];
@@ -229,8 +229,8 @@ export function useShareLink(props) {
229
229
  open,
230
230
  copyString,
231
231
  },
232
- customizeUrl: props.customizeUrl,
233
- customizeLinkLabel: props.customizeLinkLabel,
232
+ allowCustomization: props.allowCustomization,
233
+ customizeLinkLabel: props.customizeLinkButtonLabel,
234
234
  saveLabelText: props.saveLabelText,
235
235
  cancelLabelText: props.cancelLabelText,
236
236
  isEditing,