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