@bigbinary/neeto-molecules 3.16.8 → 3.16.9

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.8",
3
+ "version": "3.16.9",
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>",
@@ -411,7 +411,7 @@
411
411
  "timezoneDescription": "Your current timezone is <strong>{{timezone, anyCase}}</strong>. To change it, click <button>here</button>."
412
412
  },
413
413
  "shareViaLink": {
414
- "title": "Share link",
414
+ "title": "Share your {{productName, anyCase}}",
415
415
  "copyLink": "Copy link",
416
416
  "view": "View {{entity}}",
417
417
  "regenerateUrl": {
@@ -435,12 +435,23 @@
435
435
  "validationError": "Please enter a valid path without special characters, except '/', '-' and '_'."
436
436
  },
437
437
  "socialMediaShare": {
438
- "title": "Share via social media",
438
+ "title": "Social share",
439
+ "description": "Easily share content on Facebook, Twitter and LinkedIn.",
440
+ "pageTitle": "Share via social media",
441
+ "pageDescription": "Easily share content on Facebook, Twitter and LinkedIn.",
439
442
  "qrCodeInfo": "<button>Download</button> the QR code",
440
443
  "facebook": "Facebook",
441
444
  "twitter": "Twitter",
442
445
  "linkedIn": "LinkedIn"
443
446
  },
447
+ "qrCode": {
448
+ "title": "QR code",
449
+ "description": "Scan this QR code using your device’s camera to access the linked page.",
450
+ "pageTitle": "QR code",
451
+ "pageDescription": "Scan this QR code using your device’s camera to access the linked page.",
452
+ "download": "Download QR code",
453
+ "copy": "Copy QR code"
454
+ },
444
455
  "requirements": {
445
456
  "fileTypeAndSize": "Files must be in CSV format and not larger than {{limit}} KB.",
446
457
  "shouldContainColumns": "Your CSV file should only contain <strong>Email</strong> column"
@@ -692,53 +703,50 @@
692
703
  "tooltip": "Actions"
693
704
  },
694
705
  "productEmbed": {
695
- "embedOptions": {
696
- "title": "Embed options"
697
- },
706
+ "title": "Embed",
707
+ "embedSelectionTitle": "How do you want to add {{productName, anyCase}} to your site?",
708
+ "embedSelectionDescription": "Choose one of the following ways.",
698
709
  "backToShare": "Back to share",
699
- "customization": {
700
- "inline": {
701
- "title": "Embed window customization",
702
- "width": "Width",
703
- "height": "Height",
704
- "elementId": "Element id",
705
- "sizeOfEmbedWindow": "Size of embed window"
706
- },
707
- "floatingPopup": {
708
- "title": "Popup customization",
709
- "showCalIcon": "Show icon",
710
- "button": {
711
- "text": "Button text",
712
- "color": "Button color",
713
- "pos": "Button position",
714
- "textColor": "Button text color"
715
- }
716
- },
717
- "elementPopup": {
718
- "title": "Element popup",
719
- "description": "Make sure to set the \"id\" attribute of the element in the host app with the following \"Element Id\" value",
720
- "elementId": "Element Id",
721
- "label": "Click to open popup",
722
- "warning": "Please provide an \"id\" to see popup"
723
- },
724
- "queryParam": {
725
- "label": "Query params",
726
- "keyNamePlaceholder": "Enter key name",
727
- "keyValuePlaceholder": "Enter key value",
728
- "addQueryParam": "Add query param"
710
+ "copyCode": "Copy code",
711
+ "backToEmbedSelection": "Back to embed selection",
712
+ "embedCode": "Embed code",
713
+ "inline": {
714
+ "title": "Inline embed",
715
+ "width": "Width",
716
+ "height": "Height",
717
+ "elementId": "Element id",
718
+ "sizeOfEmbedWindow": "Size of embed window"
719
+ },
720
+ "floatingPopup": {
721
+ "title": "Popup via sticky button",
722
+ "showCalIcon": "Show icon",
723
+ "button": {
724
+ "text": "Button text",
725
+ "color": "Button color",
726
+ "pos": "Button position",
727
+ "textColor": "Button text color"
729
728
  },
730
729
  "position": {
731
730
  "bottomLeft": "Bottom left",
732
731
  "bottomRight": "Bottom right"
733
732
  }
734
733
  },
735
- "tab": {
734
+ "elementPopup": {
735
+ "title": "Popup via custom trigger",
736
+ "callout": "Make sure to set the \"id\" attribute of the element in the host app with the following \"Element Id\" value",
737
+ "elementId": "Element Id",
738
+ "label": "Click to open popup",
739
+ "warning": "Please provide an \"id\" to see popup"
740
+ },
741
+ "queryParam": {
742
+ "label": "Query params",
743
+ "keyNamePlaceholder": "Enter key name",
744
+ "keyValuePlaceholder": "Enter key value",
745
+ "addQueryParam": "Add query param"
746
+ },
747
+ "language": {
736
748
  "html": "HTML",
737
749
  "react": "React"
738
- },
739
- "position": {
740
- "bottomRight": "Bottom Right",
741
- "bottomLeft": "Bottom Left"
742
750
  }
743
751
  },
744
752
  "reactions": {
@@ -73,6 +73,7 @@ type CodeSampleType = "html" | "react";
73
73
  * @endexample
74
74
  */
75
75
  declare const ProductEmbed: React.FC<{
76
+ title?: string;
76
77
  className?: string;
77
78
  goBackLink?: string;
78
79
  customEmbedScriptPath?: string;
@@ -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: Function;
5
+ link: string;
6
+ path: string;
12
7
  icon: React.ReactNode;
13
- onClick: Function;
8
+ onClick?: Function;
14
9
  dataCy: string;
15
- subtitleProps?: SubtitleProps;
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
- * socialMediaPostTitle="Hi, can you please attend this quiz?"
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
- * socialMediaPostTitle="Hi, can you please attend this quiz?"
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
- * socialMediaPostTitle="Hi, can you please attend this quiz?"
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
- * socialMediaPostTitle="Hi, can you please attend this quiz?"
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
- * socialMediaPostTitle="Hi, can you please attend this quiz?"
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
- socialMediaPostTitle: string;
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: {