@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "3.16.2-beta-2",
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>",
@@ -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,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: string;
6
- path: string;
11
+ link: Function;
7
12
  icon: React.ReactNode;
8
- onClick?: Function;
13
+ onClick: Function;
9
14
  dataCy: string;
10
- description?: string | React.ReactNode;
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- * socialMediaProps={{ postTitle: "Hi, can you please attend this quiz?" }}
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
- 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
- };
169
+ socialMediaPostTitle: string;
171
170
  moreOptions?: MoreOptions[];
171
+ isOtherShareOptionsEnabled?: boolean;
172
172
  disableShareSocialMedia?: boolean;
173
173
  disableQRDownload?: boolean;
174
174
  urls: {