@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.
- package/dist/cjs/{ShadowViewAddon-00d53485.js → ShadowViewAddon-247ccfa4.js} +45 -14
- 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 +44 -40
- 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 +116 -83
- package/dist/collection/components/sqm-share-link/useShareLink.js +8 -8
- package/dist/esm/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-e7e73e36.js} +45 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_45.entry.js +44 -40
- package/dist/esm/sqm-stencilbook.entry.js +3 -3
- package/dist/esm-es5/{ShadowViewAddon-6bf9d141.js → ShadowViewAddon-e7e73e36.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-6fcc0439.system.js → p-0a02a7a5.system.js} +1 -1
- package/dist/mint-components/{p-2065e74e.entry.js → p-365363b5.entry.js} +2 -2
- package/dist/mint-components/{p-a5bbe968.js → p-3be90659.js} +2 -2
- package/dist/mint-components/{p-1cc59885.system.entry.js → p-4aede05c.system.entry.js} +1 -1
- package/dist/mint-components/p-4b365f1f.system.js +1 -1
- package/dist/mint-components/{p-01962a11.entry.js → p-c7f4a587.entry.js} +2 -2
- package/dist/mint-components/{p-d8e5c04c.system.entry.js → p-f62812ff.system.entry.js} +1 -1
- 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 +41 -36
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +6 -6
- package/dist/types/components.d.ts +106 -314
- 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
|
@@ -59,29 +59,29 @@ export class ShareLink {
|
|
|
59
59
|
*/
|
|
60
60
|
this.buttonStyle = "icon";
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Let advocates customize their share links up to 5 times.
|
|
63
63
|
*
|
|
64
|
-
* @uiName
|
|
64
|
+
* @uiName Allow customization
|
|
65
65
|
* @uiType boolean
|
|
66
|
-
* @uiGroup
|
|
66
|
+
* @uiGroup Customizable Vanity Link
|
|
67
67
|
* @requiredFlavor impact
|
|
68
68
|
*/
|
|
69
|
-
this.
|
|
69
|
+
this.allowCustomization = false;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
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
|
|
75
|
+
* @uiGroup Customizable Vanity Link
|
|
76
76
|
* @requiredFlavor impact
|
|
77
77
|
*/
|
|
78
|
-
this.
|
|
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
|
|
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
|
|
93
|
+
* @uiGroup Customizable Vanity Link
|
|
94
94
|
* @requiredFlavor impact
|
|
95
95
|
*/
|
|
96
96
|
this.cancelLabelText = "Cancel";
|
|
97
97
|
/**
|
|
98
|
-
* Title
|
|
98
|
+
* Title of the error message shown when the link has already been taken
|
|
99
99
|
*
|
|
100
|
-
* @uiName
|
|
100
|
+
* @uiName Link taken error title
|
|
101
101
|
* @uiType string
|
|
102
|
-
* @uiGroup
|
|
102
|
+
* @uiGroup Customizable Vanity Link
|
|
103
103
|
* @requiredFlavor impact
|
|
104
104
|
*/
|
|
105
|
-
this.
|
|
105
|
+
this.linkTakenErrorTitle = "This link is already taken";
|
|
106
106
|
/**
|
|
107
|
-
* Description text shown when the
|
|
107
|
+
* Description text shown when the link has already been taken
|
|
108
108
|
*
|
|
109
|
-
* @uiName
|
|
109
|
+
* @uiName Link taken error message
|
|
110
110
|
* @uiType string
|
|
111
|
-
* @
|
|
111
|
+
* @uiWidget textarea
|
|
112
|
+
* @uiGroup Customizable Vanity Link
|
|
112
113
|
* @requiredFlavor impact
|
|
113
114
|
*/
|
|
114
|
-
this.
|
|
115
|
+
this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
|
|
115
116
|
/**
|
|
116
|
-
* Title
|
|
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
|
|
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
|
-
* @
|
|
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
|
|
136
|
+
* Title of the error message shown when the link contains profanity or brand names.
|
|
135
137
|
*
|
|
136
|
-
* @uiName
|
|
138
|
+
* @uiName Restricted words error title
|
|
137
139
|
* @uiType string
|
|
138
|
-
* @uiGroup
|
|
140
|
+
* @uiGroup Customizable Vanity Link
|
|
139
141
|
* @requiredFlavor impact
|
|
140
142
|
*/
|
|
141
|
-
this.
|
|
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
|
|
147
|
+
* @uiName Restricted words error description
|
|
146
148
|
* @uiType string
|
|
147
|
-
* @
|
|
149
|
+
* @uiWidget textarea
|
|
150
|
+
* @uiGroup Customizable Vanity Link
|
|
148
151
|
* @requiredFlavor impact
|
|
149
152
|
*/
|
|
150
|
-
this.
|
|
153
|
+
this.restrictedWordsErrorDescription = "This link contains a restricted word.";
|
|
151
154
|
/**
|
|
152
|
-
*
|
|
155
|
+
* Subtext shown while the user is customizing their URL.
|
|
153
156
|
*
|
|
154
157
|
* @uiName Edit limit text
|
|
155
158
|
* @uiType string
|
|
156
|
-
* @uiGroup
|
|
159
|
+
* @uiGroup Customizable Vanity Link
|
|
157
160
|
* @requiredFlavor impact
|
|
158
161
|
*/
|
|
159
|
-
this.editLimitText = "You can edit your link up to
|
|
162
|
+
this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
|
|
160
163
|
/**
|
|
161
|
-
* Message shown when the
|
|
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
|
-
* @
|
|
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
|
|
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
|
|
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
|
-
"
|
|
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": "
|
|
514
|
+
"text": "Allow customization",
|
|
511
515
|
"name": "uiName"
|
|
512
516
|
}, {
|
|
513
517
|
"text": "boolean",
|
|
514
518
|
"name": "uiType"
|
|
515
519
|
}, {
|
|
516
|
-
"text": "
|
|
520
|
+
"text": "Customizable Vanity Link",
|
|
517
521
|
"name": "uiGroup"
|
|
518
522
|
}, {
|
|
519
523
|
"text": "impact",
|
|
520
524
|
"name": "requiredFlavor"
|
|
521
525
|
}],
|
|
522
|
-
"text": "
|
|
526
|
+
"text": "Let advocates customize their share links up to 5 times."
|
|
523
527
|
},
|
|
524
|
-
"attribute": "
|
|
528
|
+
"attribute": "allow-customization",
|
|
525
529
|
"reflect": false,
|
|
526
530
|
"defaultValue": "false"
|
|
527
531
|
},
|
|
528
|
-
"
|
|
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": "
|
|
550
|
+
"text": "Customizable Vanity Link",
|
|
547
551
|
"name": "uiGroup"
|
|
548
552
|
}, {
|
|
549
553
|
"text": "impact",
|
|
550
554
|
"name": "requiredFlavor"
|
|
551
555
|
}],
|
|
552
|
-
"text": "
|
|
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": "
|
|
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": "
|
|
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
|
-
"
|
|
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": "
|
|
634
|
+
"text": "Link taken error title",
|
|
631
635
|
"name": "uiName"
|
|
632
636
|
}, {
|
|
633
637
|
"text": "string",
|
|
634
638
|
"name": "uiType"
|
|
635
639
|
}, {
|
|
636
|
-
"text": "
|
|
640
|
+
"text": "Customizable Vanity Link",
|
|
637
641
|
"name": "uiGroup"
|
|
638
642
|
}, {
|
|
639
643
|
"text": "impact",
|
|
640
644
|
"name": "requiredFlavor"
|
|
641
645
|
}],
|
|
642
|
-
"text": "Title
|
|
646
|
+
"text": "Title of the error message shown when the link has already been taken"
|
|
643
647
|
},
|
|
644
|
-
"attribute": "
|
|
648
|
+
"attribute": "link-taken-error-title",
|
|
645
649
|
"reflect": false,
|
|
646
650
|
"defaultValue": "\"This link is already taken\""
|
|
647
651
|
},
|
|
648
|
-
"
|
|
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": "
|
|
664
|
+
"text": "Link taken error message",
|
|
661
665
|
"name": "uiName"
|
|
662
666
|
}, {
|
|
663
667
|
"text": "string",
|
|
664
668
|
"name": "uiType"
|
|
665
669
|
}, {
|
|
666
|
-
"text": "
|
|
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
|
|
679
|
+
"text": "Description text shown when the link has already been taken"
|
|
673
680
|
},
|
|
674
|
-
"attribute": "
|
|
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": "
|
|
703
|
+
"text": "Customizable Vanity Link",
|
|
697
704
|
"name": "uiGroup"
|
|
698
705
|
}, {
|
|
699
706
|
"text": "impact",
|
|
700
707
|
"name": "requiredFlavor"
|
|
701
708
|
}],
|
|
702
|
-
"text": "Title
|
|
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": "
|
|
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
|
-
"
|
|
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": "
|
|
760
|
+
"text": "Restricted words error title",
|
|
751
761
|
"name": "uiName"
|
|
752
762
|
}, {
|
|
753
763
|
"text": "string",
|
|
754
764
|
"name": "uiType"
|
|
755
765
|
}, {
|
|
756
|
-
"text": "
|
|
766
|
+
"text": "Customizable Vanity Link",
|
|
757
767
|
"name": "uiGroup"
|
|
758
768
|
}, {
|
|
759
769
|
"text": "impact",
|
|
760
770
|
"name": "requiredFlavor"
|
|
761
771
|
}],
|
|
762
|
-
"text": "Title
|
|
772
|
+
"text": "Title of the error message shown when the link contains profanity or brand names."
|
|
763
773
|
},
|
|
764
|
-
"attribute": "
|
|
774
|
+
"attribute": "restricted-words-error-title",
|
|
765
775
|
"reflect": false,
|
|
766
776
|
"defaultValue": "\"Please try a different link\""
|
|
767
777
|
},
|
|
768
|
-
"
|
|
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": "
|
|
790
|
+
"text": "Restricted words error description",
|
|
781
791
|
"name": "uiName"
|
|
782
792
|
}, {
|
|
783
793
|
"text": "string",
|
|
784
794
|
"name": "uiType"
|
|
785
795
|
}, {
|
|
786
|
-
"text": "
|
|
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": "
|
|
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": "
|
|
829
|
+
"text": "Customizable Vanity Link",
|
|
817
830
|
"name": "uiGroup"
|
|
818
831
|
}, {
|
|
819
832
|
"text": "impact",
|
|
820
833
|
"name": "requiredFlavor"
|
|
821
834
|
}],
|
|
822
|
-
"text": "
|
|
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
|
|
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": "
|
|
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
|
|
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": "
|
|
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": "
|
|
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;
|
|
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
|
-
|
|
977
|
-
customizeLinkLabel: props.
|
|
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.
|
|
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
|
"...");
|
|
@@ -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.
|
|
115
|
-
description: props.
|
|
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.
|
|
125
|
-
description: props.
|
|
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
|
-
|
|
233
|
-
customizeLinkLabel: props.
|
|
232
|
+
allowCustomization: props.allowCustomization,
|
|
233
|
+
customizeLinkLabel: props.customizeLinkButtonLabel,
|
|
234
234
|
saveLabelText: props.saveLabelText,
|
|
235
235
|
cancelLabelText: props.cancelLabelText,
|
|
236
236
|
isEditing,
|