@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "3.16.1-beta",
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>",
@@ -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 your {{productName, anyCase}}",
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": "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.",
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
- "title": "Embed",
704
- "embedSelectionTitle": "How do you want to add {{productName, anyCase}} to your site?",
705
- "embedSelectionDescription": "Choose one of the following ways.",
692
+ "embedOptions": {
693
+ "title": "Embed options"
694
+ },
706
695
  "backToShare": "Back to share",
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"
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
- "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": {
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": {
@@ -73,7 +73,6 @@ type CodeSampleType = "html" | "react";
73
73
  * @endexample
74
74
  */
75
75
  declare const ProductEmbed: React.FC<{
76
- title?: string;
77
76
  className?: string;
78
77
  goBackLink?: string;
79
78
  customEmbedScriptPath?: string;
@@ -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: string;
11
+ link: Function;
6
12
  icon: React.ReactNode;
7
- onClick?: Function;
13
+ onClick: Function;
8
14
  dataCy: string;
9
- description?: string | React.ReactNode;
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- socialMediaProps: {
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: {