@bigbinary/neeto-molecules 3.16.1 → 3.16.2-beta
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/CardLayout.js +3 -3
- package/dist/CardLayout.js.map +1 -1
- package/dist/Container.js +1 -1
- package/dist/CopyToClipboardButton.js +3 -2
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/OptionFields.js +1 -1
- package/dist/OptionFields.js.map +1 -1
- package/dist/ProductEmbed.js +985 -302
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/ShareViaLink.js +428 -183
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/CardLayout.js +3 -3
- package/dist/cjs/CardLayout.js.map +1 -1
- package/dist/cjs/Container.js +1 -1
- package/dist/cjs/CopyToClipboardButton.js +3 -2
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/OptionFields.js +1 -1
- package/dist/cjs/OptionFields.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +984 -301
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +426 -181
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +48 -40
- package/types/ProductEmbed.d.ts +1 -0
- package/types/ShareViaLink.d.ts +27 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.2-beta",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/src/translations/en.json
CHANGED
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
"timezoneDescription": "Your current timezone is <strong>{{timezone, anyCase}}</strong>. To change it, click <button>here</button>."
|
|
409
409
|
},
|
|
410
410
|
"shareViaLink": {
|
|
411
|
-
"title": "Share
|
|
411
|
+
"title": "Share your {{productName, anyCase}}",
|
|
412
412
|
"copyLink": "Copy link",
|
|
413
413
|
"view": "View {{entity}}",
|
|
414
414
|
"regenerateUrl": {
|
|
@@ -432,12 +432,23 @@
|
|
|
432
432
|
"validationError": "Please enter a valid path without special characters, except '/', '-' and '_'."
|
|
433
433
|
},
|
|
434
434
|
"socialMediaShare": {
|
|
435
|
-
"title": "
|
|
435
|
+
"title": "Social share",
|
|
436
|
+
"description": "Easily share content on Facebook, Twitter and LinkedIn.",
|
|
437
|
+
"pageTitle": "Share via social media",
|
|
438
|
+
"pageDescription": "Easily share content on Facebook, Twitter and LinkedIn.",
|
|
436
439
|
"qrCodeInfo": "<button>Download</button> the QR code",
|
|
437
440
|
"facebook": "Facebook",
|
|
438
441
|
"twitter": "Twitter",
|
|
439
442
|
"linkedIn": "LinkedIn"
|
|
440
443
|
},
|
|
444
|
+
"qrCode": {
|
|
445
|
+
"title": "QR code",
|
|
446
|
+
"description": "Scan this QR code using your device’s camera to access the linked page.",
|
|
447
|
+
"pageTitle": "QR code",
|
|
448
|
+
"pageDescription": "Scan this QR code using your device’s camera to access the linked page.",
|
|
449
|
+
"download": "Download QR code",
|
|
450
|
+
"copy": "Copy QR code"
|
|
451
|
+
},
|
|
441
452
|
"requirements": {
|
|
442
453
|
"fileTypeAndSize": "Files must be in CSV format and not larger than {{limit}} KB.",
|
|
443
454
|
"shouldContainColumns": "Your CSV file should only contain <strong>Email</strong> column"
|
|
@@ -689,53 +700,50 @@
|
|
|
689
700
|
"tooltip": "Actions"
|
|
690
701
|
},
|
|
691
702
|
"productEmbed": {
|
|
692
|
-
"
|
|
693
|
-
|
|
694
|
-
|
|
703
|
+
"title": "Embed",
|
|
704
|
+
"embedSelectionTitle": "How do you want to add {{productName, anyCase}} to your site?",
|
|
705
|
+
"embedSelectionDescription": "Choose one of the following ways.",
|
|
695
706
|
"backToShare": "Back to share",
|
|
696
|
-
"
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
"elementPopup": {
|
|
715
|
-
"title": "Element popup",
|
|
716
|
-
"description": "Make sure to set the \"id\" attribute of the element in the host app with the following \"Element Id\" value",
|
|
717
|
-
"elementId": "Element Id",
|
|
718
|
-
"label": "Click to open popup",
|
|
719
|
-
"warning": "Please provide an \"id\" to see popup"
|
|
720
|
-
},
|
|
721
|
-
"queryParam": {
|
|
722
|
-
"label": "Query params",
|
|
723
|
-
"keyNamePlaceholder": "Enter key name",
|
|
724
|
-
"keyValuePlaceholder": "Enter key value",
|
|
725
|
-
"addQueryParam": "Add query param"
|
|
707
|
+
"copyCode": "Copy code",
|
|
708
|
+
"backToEmbedSelection": "Back to embed selection",
|
|
709
|
+
"embedCode": "Embed code",
|
|
710
|
+
"inline": {
|
|
711
|
+
"title": "Inline embed",
|
|
712
|
+
"width": "Width",
|
|
713
|
+
"height": "Height",
|
|
714
|
+
"elementId": "Element id",
|
|
715
|
+
"sizeOfEmbedWindow": "Size of embed window"
|
|
716
|
+
},
|
|
717
|
+
"floatingPopup": {
|
|
718
|
+
"title": "Popup via sticky button",
|
|
719
|
+
"showCalIcon": "Show icon",
|
|
720
|
+
"button": {
|
|
721
|
+
"text": "Button text",
|
|
722
|
+
"color": "Button color",
|
|
723
|
+
"pos": "Button position",
|
|
724
|
+
"textColor": "Button text color"
|
|
726
725
|
},
|
|
727
726
|
"position": {
|
|
728
727
|
"bottomLeft": "Bottom left",
|
|
729
728
|
"bottomRight": "Bottom right"
|
|
730
729
|
}
|
|
731
730
|
},
|
|
732
|
-
"
|
|
731
|
+
"elementPopup": {
|
|
732
|
+
"title": "Popup via custom trigger",
|
|
733
|
+
"callout": "Make sure to set the \"id\" attribute of the element in the host app with the following \"Element Id\" value",
|
|
734
|
+
"elementId": "Element Id",
|
|
735
|
+
"label": "Click to open popup",
|
|
736
|
+
"warning": "Please provide an \"id\" to see popup"
|
|
737
|
+
},
|
|
738
|
+
"queryParam": {
|
|
739
|
+
"label": "Query params",
|
|
740
|
+
"keyNamePlaceholder": "Enter key name",
|
|
741
|
+
"keyValuePlaceholder": "Enter key value",
|
|
742
|
+
"addQueryParam": "Add query param"
|
|
743
|
+
},
|
|
744
|
+
"language": {
|
|
733
745
|
"html": "HTML",
|
|
734
746
|
"react": "React"
|
|
735
|
-
},
|
|
736
|
-
"position": {
|
|
737
|
-
"bottomRight": "Bottom Right",
|
|
738
|
-
"bottomLeft": "Bottom Left"
|
|
739
747
|
}
|
|
740
748
|
},
|
|
741
749
|
"reactions": {
|
package/types/ProductEmbed.d.ts
CHANGED
package/types/ShareViaLink.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
type SubtitleProps = {
|
|
4
|
-
subtitle: string;
|
|
5
|
-
dataCy?: string;
|
|
6
|
-
link?: string;
|
|
7
|
-
onClick?: func;
|
|
8
|
-
};
|
|
9
3
|
type MoreOptions = {
|
|
10
4
|
title: string;
|
|
11
|
-
link:
|
|
5
|
+
link: string;
|
|
12
6
|
icon: React.ReactNode;
|
|
13
|
-
onClick
|
|
7
|
+
onClick?: Function;
|
|
14
8
|
dataCy: string;
|
|
15
|
-
|
|
9
|
+
description?: string | React.ReactNode;
|
|
10
|
+
element: React.ReactNode | React.ElementType;
|
|
16
11
|
};
|
|
17
12
|
type RegenerateConfig = {
|
|
18
13
|
expiresInOptions: Array<{
|
|
@@ -45,7 +40,7 @@ type RegenerateConfig = {
|
|
|
45
40
|
* entityName="quiz"
|
|
46
41
|
* handleRegenerate={regenerateURL}
|
|
47
42
|
* isLoading={isRegenerating}
|
|
48
|
-
*
|
|
43
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
49
44
|
* url={quizUrl}
|
|
50
45
|
* />
|
|
51
46
|
* );
|
|
@@ -76,7 +71,7 @@ type RegenerateConfig = {
|
|
|
76
71
|
* handleEdit={updateUrl}
|
|
77
72
|
* handleRegenerate={regenerateURL}
|
|
78
73
|
* isLoading={isRegenerating || isUpdating}
|
|
79
|
-
*
|
|
74
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
80
75
|
* url={quizUrl}
|
|
81
76
|
* />
|
|
82
77
|
* );
|
|
@@ -92,7 +87,7 @@ type RegenerateConfig = {
|
|
|
92
87
|
* <ShareViaLink
|
|
93
88
|
* entity={quiz}
|
|
94
89
|
* entityName="quiz"
|
|
95
|
-
*
|
|
90
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
96
91
|
* url={quizUrl}
|
|
97
92
|
* />
|
|
98
93
|
* );
|
|
@@ -108,7 +103,7 @@ type RegenerateConfig = {
|
|
|
108
103
|
* entity={quiz}
|
|
109
104
|
* entityName="quiz"
|
|
110
105
|
* previewUrl={quizPreviewUrl}
|
|
111
|
-
*
|
|
106
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
112
107
|
* url={quizUrl}
|
|
113
108
|
* />
|
|
114
109
|
* );
|
|
@@ -125,28 +120,17 @@ type RegenerateConfig = {
|
|
|
125
120
|
* entity={quiz}
|
|
126
121
|
* entityName="quiz"
|
|
127
122
|
* previewUrl={quizPreviewUrl}
|
|
128
|
-
*
|
|
123
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
129
124
|
* url={quizUrl}
|
|
130
125
|
* moreOptions={[
|
|
131
126
|
* {
|
|
132
|
-
* title: "Invite via email",
|
|
133
|
-
* link: "/",
|
|
134
|
-
* icon: Message,
|
|
135
|
-
* dataCy: "share-via-email-link",
|
|
136
|
-
* subtitleProps: {
|
|
137
|
-
* subtitle: "7 People invited.",
|
|
138
|
-
* onClick: () => {
|
|
139
|
-
* alert("7 People invited");
|
|
140
|
-
* },
|
|
141
|
-
* },
|
|
142
|
-
* },
|
|
143
|
-
* {
|
|
144
127
|
* title: "Notify users",
|
|
145
128
|
* onClick: () => {
|
|
146
129
|
* alert("Notified users");
|
|
147
130
|
* },
|
|
148
131
|
* icon: Notification,
|
|
149
132
|
* dataCy: "notify-users",
|
|
133
|
+
* description: "Users will be notified.",
|
|
150
134
|
* },
|
|
151
135
|
* ]}
|
|
152
136
|
* />
|
|
@@ -154,6 +138,10 @@ type RegenerateConfig = {
|
|
|
154
138
|
* @endexample
|
|
155
139
|
*/
|
|
156
140
|
declare const ShareViaLink: React.FC<{
|
|
141
|
+
title: string | React.ReactNode;
|
|
142
|
+
description?: string | React.ReactNode;
|
|
143
|
+
customTopContent?: React.ReactNode;
|
|
144
|
+
customBottomContent?: React.ReactNode;
|
|
157
145
|
isLoading?: boolean;
|
|
158
146
|
enabledOptions?: {
|
|
159
147
|
regenerate?: boolean | RegenerateConfig;
|
|
@@ -166,9 +154,20 @@ declare const ShareViaLink: React.FC<{
|
|
|
166
154
|
entityName: string;
|
|
167
155
|
handleEdit?: Function;
|
|
168
156
|
handleRegenerate?: Function;
|
|
169
|
-
|
|
157
|
+
socialMediaProps: {
|
|
158
|
+
cardTitle: string | React.ReactNode;
|
|
159
|
+
cardDescription: string | React.ReactNode;
|
|
160
|
+
pageTitle: string | React.ReactNode;
|
|
161
|
+
pageDescription: string | React.ReactNode;
|
|
162
|
+
postTitle: string;
|
|
163
|
+
};
|
|
164
|
+
qrCodeProps: {
|
|
165
|
+
cardTitle: string | React.ReactNode;
|
|
166
|
+
cardDescription: string | React.ReactNode;
|
|
167
|
+
pageTitle: string | React.ReactNode;
|
|
168
|
+
pageDescription: string | React.ReactNode;
|
|
169
|
+
};
|
|
170
170
|
moreOptions?: MoreOptions[];
|
|
171
|
-
isOtherShareOptionsEnabled?: boolean;
|
|
172
171
|
disableShareSocialMedia?: boolean;
|
|
173
172
|
disableQRDownload?: boolean;
|
|
174
173
|
urls: {
|