@bigbinary/neeto-molecules 3.16.1-beta → 3.16.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 +2 -3
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/OptionFields.js +1 -1
- package/dist/OptionFields.js.map +1 -1
- package/dist/ProductEmbed.js +302 -985
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/ShareViaLink.js +182 -421
- 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 +2 -3
- 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 +301 -984
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +180 -419
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +40 -48
- package/types/ProductEmbed.d.ts +0 -1
- package/types/ShareViaLink.d.ts +28 -25
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",
|
|
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 link",
|
|
412
412
|
"copyLink": "Copy link",
|
|
413
413
|
"view": "View {{entity}}",
|
|
414
414
|
"regenerateUrl": {
|
|
@@ -432,23 +432,12 @@
|
|
|
432
432
|
"validationError": "Please enter a valid path without special characters, except '/', '-' and '_'."
|
|
433
433
|
},
|
|
434
434
|
"socialMediaShare": {
|
|
435
|
-
"title": "
|
|
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.",
|
|
435
|
+
"title": "Share via social media",
|
|
439
436
|
"qrCodeInfo": "<button>Download</button> the QR code",
|
|
440
437
|
"facebook": "Facebook",
|
|
441
438
|
"twitter": "Twitter",
|
|
442
439
|
"linkedIn": "LinkedIn"
|
|
443
440
|
},
|
|
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
|
-
},
|
|
452
441
|
"requirements": {
|
|
453
442
|
"fileTypeAndSize": "Files must be in CSV format and not larger than {{limit}} KB.",
|
|
454
443
|
"shouldContainColumns": "Your CSV file should only contain <strong>Email</strong> column"
|
|
@@ -700,50 +689,53 @@
|
|
|
700
689
|
"tooltip": "Actions"
|
|
701
690
|
},
|
|
702
691
|
"productEmbed": {
|
|
703
|
-
"
|
|
704
|
-
|
|
705
|
-
|
|
692
|
+
"embedOptions": {
|
|
693
|
+
"title": "Embed options"
|
|
694
|
+
},
|
|
706
695
|
"backToShare": "Back to share",
|
|
707
|
-
"
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
"
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
696
|
+
"customization": {
|
|
697
|
+
"inline": {
|
|
698
|
+
"title": "Embed window customization",
|
|
699
|
+
"width": "Width",
|
|
700
|
+
"height": "Height",
|
|
701
|
+
"elementId": "Element id",
|
|
702
|
+
"sizeOfEmbedWindow": "Size of embed window"
|
|
703
|
+
},
|
|
704
|
+
"floatingPopup": {
|
|
705
|
+
"title": "Popup customization",
|
|
706
|
+
"showCalIcon": "Show icon",
|
|
707
|
+
"button": {
|
|
708
|
+
"text": "Button text",
|
|
709
|
+
"color": "Button color",
|
|
710
|
+
"pos": "Button position",
|
|
711
|
+
"textColor": "Button text color"
|
|
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"
|
|
725
726
|
},
|
|
726
727
|
"position": {
|
|
727
728
|
"bottomLeft": "Bottom left",
|
|
728
729
|
"bottomRight": "Bottom right"
|
|
729
730
|
}
|
|
730
731
|
},
|
|
731
|
-
"
|
|
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": {
|
|
732
|
+
"tab": {
|
|
745
733
|
"html": "HTML",
|
|
746
734
|
"react": "React"
|
|
735
|
+
},
|
|
736
|
+
"position": {
|
|
737
|
+
"bottomRight": "Bottom Right",
|
|
738
|
+
"bottomLeft": "Bottom Left"
|
|
747
739
|
}
|
|
748
740
|
},
|
|
749
741
|
"reactions": {
|
package/types/ProductEmbed.d.ts
CHANGED
package/types/ShareViaLink.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
type SubtitleProps = {
|
|
4
|
+
subtitle: string;
|
|
5
|
+
dataCy?: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
onClick?: func;
|
|
8
|
+
};
|
|
3
9
|
type MoreOptions = {
|
|
4
10
|
title: string;
|
|
5
|
-
link:
|
|
11
|
+
link: Function;
|
|
6
12
|
icon: React.ReactNode;
|
|
7
|
-
onClick
|
|
13
|
+
onClick: Function;
|
|
8
14
|
dataCy: string;
|
|
9
|
-
|
|
10
|
-
element: React.ReactNode | React.ElementType;
|
|
15
|
+
subtitleProps?: SubtitleProps;
|
|
11
16
|
};
|
|
12
17
|
type RegenerateConfig = {
|
|
13
18
|
expiresInOptions: Array<{
|
|
@@ -40,7 +45,7 @@ type RegenerateConfig = {
|
|
|
40
45
|
* entityName="quiz"
|
|
41
46
|
* handleRegenerate={regenerateURL}
|
|
42
47
|
* isLoading={isRegenerating}
|
|
43
|
-
*
|
|
48
|
+
* socialMediaPostTitle="Hi, can you please attend this quiz?"
|
|
44
49
|
* url={quizUrl}
|
|
45
50
|
* />
|
|
46
51
|
* );
|
|
@@ -71,7 +76,7 @@ type RegenerateConfig = {
|
|
|
71
76
|
* handleEdit={updateUrl}
|
|
72
77
|
* handleRegenerate={regenerateURL}
|
|
73
78
|
* isLoading={isRegenerating || isUpdating}
|
|
74
|
-
*
|
|
79
|
+
* socialMediaPostTitle="Hi, can you please attend this quiz?"
|
|
75
80
|
* url={quizUrl}
|
|
76
81
|
* />
|
|
77
82
|
* );
|
|
@@ -87,7 +92,7 @@ type RegenerateConfig = {
|
|
|
87
92
|
* <ShareViaLink
|
|
88
93
|
* entity={quiz}
|
|
89
94
|
* entityName="quiz"
|
|
90
|
-
*
|
|
95
|
+
* socialMediaPostTitle="Hi, can you please attend this quiz?"
|
|
91
96
|
* url={quizUrl}
|
|
92
97
|
* />
|
|
93
98
|
* );
|
|
@@ -103,7 +108,7 @@ type RegenerateConfig = {
|
|
|
103
108
|
* entity={quiz}
|
|
104
109
|
* entityName="quiz"
|
|
105
110
|
* previewUrl={quizPreviewUrl}
|
|
106
|
-
*
|
|
111
|
+
* socialMediaPostTitle="Hi, can you please attend this quiz?"
|
|
107
112
|
* url={quizUrl}
|
|
108
113
|
* />
|
|
109
114
|
* );
|
|
@@ -120,17 +125,28 @@ type RegenerateConfig = {
|
|
|
120
125
|
* entity={quiz}
|
|
121
126
|
* entityName="quiz"
|
|
122
127
|
* previewUrl={quizPreviewUrl}
|
|
123
|
-
*
|
|
128
|
+
* socialMediaPostTitle="Hi, can you please attend this quiz?"
|
|
124
129
|
* url={quizUrl}
|
|
125
130
|
* moreOptions={[
|
|
126
131
|
* {
|
|
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
|
+
* {
|
|
127
144
|
* title: "Notify users",
|
|
128
145
|
* onClick: () => {
|
|
129
146
|
* alert("Notified users");
|
|
130
147
|
* },
|
|
131
148
|
* icon: Notification,
|
|
132
149
|
* dataCy: "notify-users",
|
|
133
|
-
* description: "Users will be notified.",
|
|
134
150
|
* },
|
|
135
151
|
* ]}
|
|
136
152
|
* />
|
|
@@ -138,8 +154,6 @@ type RegenerateConfig = {
|
|
|
138
154
|
* @endexample
|
|
139
155
|
*/
|
|
140
156
|
declare const ShareViaLink: React.FC<{
|
|
141
|
-
title: string | React.ReactNode;
|
|
142
|
-
description?: string | React.ReactNode;
|
|
143
157
|
isLoading?: boolean;
|
|
144
158
|
enabledOptions?: {
|
|
145
159
|
regenerate?: boolean | RegenerateConfig;
|
|
@@ -152,20 +166,9 @@ declare const ShareViaLink: React.FC<{
|
|
|
152
166
|
entityName: string;
|
|
153
167
|
handleEdit?: Function;
|
|
154
168
|
handleRegenerate?: Function;
|
|
155
|
-
|
|
156
|
-
cardTitle: string | React.ReactNode;
|
|
157
|
-
cardDescription: string | React.ReactNode;
|
|
158
|
-
pageTitle: string | React.ReactNode;
|
|
159
|
-
pageDescription: string | React.ReactNode;
|
|
160
|
-
postTitle: string;
|
|
161
|
-
};
|
|
162
|
-
qrCodeProps: {
|
|
163
|
-
cardTitle: string | React.ReactNode;
|
|
164
|
-
cardDescription: string | React.ReactNode;
|
|
165
|
-
pageTitle: string | React.ReactNode;
|
|
166
|
-
pageDescription: string | React.ReactNode;
|
|
167
|
-
};
|
|
169
|
+
socialMediaPostTitle: string;
|
|
168
170
|
moreOptions?: MoreOptions[];
|
|
171
|
+
isOtherShareOptionsEnabled?: boolean;
|
|
169
172
|
disableShareSocialMedia?: boolean;
|
|
170
173
|
disableQRDownload?: boolean;
|
|
171
174
|
urls: {
|