@bigbinary/neeto-molecules 1.0.2 → 1.0.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": "1.0.2",
3
+ "version": "1.0.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>",
@@ -36,9 +36,9 @@
36
36
  "@babel/preset-env": "^7.17.10",
37
37
  "@babel/preset-react": "^7.16.7",
38
38
  "@bigbinary/neeto-commons-frontend": "^2.0.39",
39
- "@bigbinary/neeto-editor": "^1.23.1",
40
- "@bigbinary/neeto-icons": "^1.9.12",
41
- "@bigbinary/neetoui": "4.3.3-cjs",
39
+ "@bigbinary/neeto-editor": "^1.23.3",
40
+ "@bigbinary/neeto-icons": "^1.9.15",
41
+ "@bigbinary/neetoui": "4.4.3",
42
42
  "@honeybadger-io/react": "2.0.1",
43
43
  "@rollup/plugin-alias": "^3.1.9",
44
44
  "@rollup/plugin-babel": "^5.3.1",
@@ -89,6 +89,7 @@
89
89
  "mixpanel-browser": "^2.45.0",
90
90
  "mousetrap": "^1.6.5",
91
91
  "mousetrap-global-bind": "^1.1.0",
92
+ "papaparse": "^5.4.0",
92
93
  "platform": "1.3.6",
93
94
  "prettier": "^2.6.2",
94
95
  "qrcode.react": "^3.1.0",
@@ -116,9 +117,9 @@
116
117
  "dependencies": {},
117
118
  "peerDependencies": {
118
119
  "@bigbinary/neeto-commons-frontend": "^2.0.39",
119
- "@bigbinary/neeto-icons": "^1.9.2",
120
+ "@bigbinary/neeto-icons": "^1.9.15",
120
121
  "@bigbinary/neeto-molecules": "^1.0.0",
121
- "@bigbinary/neetoui": "^4.3.3",
122
+ "@bigbinary/neetoui": "^4.4.3",
122
123
  "@honeybadger-io/react": "2.0.1",
123
124
  "@svgr/webpack": "^6.5.1",
124
125
  "antd": "4.24.3",
@@ -31,7 +31,8 @@
31
31
  "reset": "Reset",
32
32
  "saveChanges": "Save changes",
33
33
  "publish": "Publish",
34
- "draft": "Draft"
34
+ "draft": "Draft",
35
+ "changeTimezone": "Change timezone"
35
36
  },
36
37
  "andSentence": "{{first}} {{and}} {{last}}",
37
38
  "and": "and",
@@ -138,6 +139,7 @@
138
139
  "copySchedule": "Copy schedule to..",
139
140
  "copyScheduleTooltip": "Copy this schedule to another day",
140
141
  "addNewPeriod": "Add new period",
142
+ "timezoneTooltip": "Your timezone",
141
143
  "days": {
142
144
  "monday": "Monday",
143
145
  "tuesday": "Tuesday",
@@ -164,6 +166,8 @@
164
166
  "last24Hours": "Last 24 hours",
165
167
  "thisMonth": "This month",
166
168
  "lastMonth": "Last month",
169
+ "thisYear": "This year",
170
+ "lastYear": "Last year",
167
171
  "thisQuarter": "This quarter",
168
172
  "lastQuarter": "Last quarter",
169
173
  "thisWeek": "This week",
@@ -227,6 +231,7 @@
227
231
  },
228
232
  "keyboardShortcuts": {
229
233
  "title": "Keyboard shortcuts",
234
+ "viewFullListOfShortcuts": "View full list of shortcuts",
230
235
  "global": {
231
236
  "categoryName": "GLOBAL",
232
237
  "openKeyboardShortcutsPane": "Open the keyboard shortcuts pane",
@@ -239,6 +244,37 @@
239
244
  "subject": "Subject",
240
245
  "poweredBy": "Powered by neeto",
241
246
  "logoAltText": "Logo"
247
+ },
248
+ "shareViaEmail": {
249
+ "title": "Share via email",
250
+ "description": "Share form via email",
251
+ "backToShare": "Back to share",
252
+ "sendTo": "Send to",
253
+ "uploadCsv": "Upload CSV",
254
+ "uploadCsvTooltip": "Accepts only CSV files with an 'email' column",
255
+ "sendFrom": "Send from",
256
+ "replyTo": "Reply to",
257
+ "subject": "Subject",
258
+ "emailBody": "Email body",
259
+ "sendLater": "Send later",
260
+ "emailAddress": "Email address",
261
+ "additionalOptions": "Additional options",
262
+ "reset": "Reset",
263
+ "sendEmail": "Send email",
264
+ "sendFromInput": {
265
+ "errorLabel": "Send from email address"
266
+ },
267
+ "replyToInput": {
268
+ "errorLabel": "Reply to email address"
269
+ },
270
+ "sendLaterDateInput": {
271
+ "label": "Send later date"
272
+ },
273
+ "validations": {
274
+ "requiredField": "{{entity}} is required",
275
+ "invalidField": "{{entity}} is invalid",
276
+ "atleastOneIsRequired": "Please enter atleast one {{entity}}"
277
+ }
242
278
  }
243
279
  }
244
280
  }
@@ -1,14 +1,16 @@
1
1
  import React from "react";
2
+ import { TFunction } from "i18next";
2
3
 
3
4
  interface Shortcut {
4
5
  sequence: string;
5
- description: string;
6
+ description: TFunction;
6
7
  }
7
8
  interface Category {
8
- [index: string]: Shortcut;
9
+ [index: string]: Shortcut | string;
10
+ fullShortcutsLink?: string;
9
11
  }
10
12
  interface ProductShortcuts {
11
- [index: any]: Category;
13
+ [index: string | TFunction]: Category;
12
14
  }
13
15
 
14
16
  const KeyboardShortcutsPane: {
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+
3
+ const ShareViaEmail: React.FC<{
4
+ backToUrl: string;
5
+ handleSubmit: (data: {
6
+ sendFromEmail: string;
7
+ replyToEmail: string;
8
+ notifyEmails: { label: string; value: string; valid: boolean }[];
9
+ emailSubject: string;
10
+ emailBody: string;
11
+ isSendLaterEnabled: boolean;
12
+ sendEmailDatetime: string;
13
+ category: string;
14
+ }) => void;
15
+ children?: React.ReactNode;
16
+ }>;
17
+
18
+ export default ShareViaEmail;