@bigbinary/neeto-molecules 3.16.1 → 3.16.2-beta-2
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 +429 -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 +427 -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 +28 -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-2",
|
|
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,14 @@
|
|
|
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;
|
|
6
|
+
path: string;
|
|
12
7
|
icon: React.ReactNode;
|
|
13
|
-
onClick
|
|
8
|
+
onClick?: Function;
|
|
14
9
|
dataCy: string;
|
|
15
|
-
|
|
10
|
+
description?: string | React.ReactNode;
|
|
11
|
+
element: React.ReactNode | React.ElementType;
|
|
16
12
|
};
|
|
17
13
|
type RegenerateConfig = {
|
|
18
14
|
expiresInOptions: Array<{
|
|
@@ -45,7 +41,7 @@ type RegenerateConfig = {
|
|
|
45
41
|
* entityName="quiz"
|
|
46
42
|
* handleRegenerate={regenerateURL}
|
|
47
43
|
* isLoading={isRegenerating}
|
|
48
|
-
*
|
|
44
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
49
45
|
* url={quizUrl}
|
|
50
46
|
* />
|
|
51
47
|
* );
|
|
@@ -76,7 +72,7 @@ type RegenerateConfig = {
|
|
|
76
72
|
* handleEdit={updateUrl}
|
|
77
73
|
* handleRegenerate={regenerateURL}
|
|
78
74
|
* isLoading={isRegenerating || isUpdating}
|
|
79
|
-
*
|
|
75
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
80
76
|
* url={quizUrl}
|
|
81
77
|
* />
|
|
82
78
|
* );
|
|
@@ -92,7 +88,7 @@ type RegenerateConfig = {
|
|
|
92
88
|
* <ShareViaLink
|
|
93
89
|
* entity={quiz}
|
|
94
90
|
* entityName="quiz"
|
|
95
|
-
*
|
|
91
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
96
92
|
* url={quizUrl}
|
|
97
93
|
* />
|
|
98
94
|
* );
|
|
@@ -108,7 +104,7 @@ type RegenerateConfig = {
|
|
|
108
104
|
* entity={quiz}
|
|
109
105
|
* entityName="quiz"
|
|
110
106
|
* previewUrl={quizPreviewUrl}
|
|
111
|
-
*
|
|
107
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
112
108
|
* url={quizUrl}
|
|
113
109
|
* />
|
|
114
110
|
* );
|
|
@@ -125,28 +121,17 @@ type RegenerateConfig = {
|
|
|
125
121
|
* entity={quiz}
|
|
126
122
|
* entityName="quiz"
|
|
127
123
|
* previewUrl={quizPreviewUrl}
|
|
128
|
-
*
|
|
124
|
+
* socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
|
|
129
125
|
* url={quizUrl}
|
|
130
126
|
* moreOptions={[
|
|
131
127
|
* {
|
|
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
128
|
* title: "Notify users",
|
|
145
129
|
* onClick: () => {
|
|
146
130
|
* alert("Notified users");
|
|
147
131
|
* },
|
|
148
132
|
* icon: Notification,
|
|
149
133
|
* dataCy: "notify-users",
|
|
134
|
+
* description: "Users will be notified.",
|
|
150
135
|
* },
|
|
151
136
|
* ]}
|
|
152
137
|
* />
|
|
@@ -154,6 +139,10 @@ type RegenerateConfig = {
|
|
|
154
139
|
* @endexample
|
|
155
140
|
*/
|
|
156
141
|
declare const ShareViaLink: React.FC<{
|
|
142
|
+
title: string | React.ReactNode;
|
|
143
|
+
description?: string | React.ReactNode;
|
|
144
|
+
customTopContent?: React.ReactNode;
|
|
145
|
+
customBottomContent?: React.ReactNode;
|
|
157
146
|
isLoading?: boolean;
|
|
158
147
|
enabledOptions?: {
|
|
159
148
|
regenerate?: boolean | RegenerateConfig;
|
|
@@ -166,9 +155,20 @@ declare const ShareViaLink: React.FC<{
|
|
|
166
155
|
entityName: string;
|
|
167
156
|
handleEdit?: Function;
|
|
168
157
|
handleRegenerate?: Function;
|
|
169
|
-
|
|
158
|
+
socialMediaProps: {
|
|
159
|
+
cardTitle?: string | React.ReactNode;
|
|
160
|
+
cardDescription?: string | React.ReactNode;
|
|
161
|
+
pageTitle?: string | React.ReactNode;
|
|
162
|
+
pageDescription?: string | React.ReactNode;
|
|
163
|
+
postTitle?: string;
|
|
164
|
+
};
|
|
165
|
+
qrCodeProps: {
|
|
166
|
+
cardTitle?: string | React.ReactNode;
|
|
167
|
+
cardDescription?: string | React.ReactNode;
|
|
168
|
+
pageTitle?: string | React.ReactNode;
|
|
169
|
+
pageDescription?: string | React.ReactNode;
|
|
170
|
+
};
|
|
170
171
|
moreOptions?: MoreOptions[];
|
|
171
|
-
isOtherShareOptionsEnabled?: boolean;
|
|
172
172
|
disableShareSocialMedia?: boolean;
|
|
173
173
|
disableQRDownload?: boolean;
|
|
174
174
|
urls: {
|