@bigbinary/neeto-commons-frontend 2.0.9 → 2.0.11
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/README.md +7 -7
- package/initializers.cjs.js +35 -1
- package/initializers.js +35 -1
- package/package.json +10 -3
- package/react-utils.cjs.js +89379 -929
- package/react-utils.d.ts +43 -5
- package/react-utils.js +89380 -933
- package/utils.cjs.js +27 -29
- package/utils.js +25 -27
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The commons frontend library for Neeto Applications.
|
|
|
7
7
|
Install from npm:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
yarn add "@bigbinary/neeto-commons-frontend@2.0.
|
|
10
|
+
yarn add "@bigbinary/neeto-commons-frontend@2.0.11"
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
This package relies on the host project's tailwind configuration. So add
|
|
@@ -87,16 +87,16 @@ When you are migrating from version 1 to version 2, do the following:
|
|
|
87
87
|
This is how releases are managed in this repo.
|
|
88
88
|
|
|
89
89
|
- We will create a branch with the next release version as its name (`1.0.x`)
|
|
90
|
-
from
|
|
90
|
+
from main branch.
|
|
91
91
|
- Version in
|
|
92
|
-
[README.md](https://github.com/bigbinary/neeto-commons-frontend/blob/
|
|
92
|
+
[README.md](https://github.com/bigbinary/neeto-commons-frontend/blob/main/README.md#L10)
|
|
93
93
|
and
|
|
94
|
-
[package.json](https://github.com/bigbinary/neeto-commons-frontend/blob/
|
|
94
|
+
[package.json](https://github.com/bigbinary/neeto-commons-frontend/blob/main/package.json#L3)
|
|
95
95
|
will be updated to the current branch name.
|
|
96
96
|
- From now on, we can install the package to neeto-applications using the
|
|
97
97
|
version `2.X.Y`.
|
|
98
|
-
- We will create a draft PR of this branch targeting
|
|
99
|
-
|
|
98
|
+
- We will create a draft PR of this branch targeting main. This keeps the branch
|
|
99
|
+
in sync with main branch (bot-bigbinary will auto-merge the changes).
|
|
100
100
|
- When all features have been built, we will deploy it to all neeto-applications
|
|
101
101
|
locally using `yalc` package manager. We won't raise PR until the deployment
|
|
102
102
|
and verification is successfully done locally for all neeto-applications. The
|
|
@@ -113,7 +113,7 @@ This is how releases are managed in this repo.
|
|
|
113
113
|
intact even if that branch gets deleted.
|
|
114
114
|
- Whenever a new release is created with a new version number, the github
|
|
115
115
|
actions will automatically publish the built package to npm.
|
|
116
|
-
- Now we will squash and merge the PR `2.X.Y` to
|
|
116
|
+
- Now we will squash and merge the PR `2.X.Y` to main and delete its source
|
|
117
117
|
branch. This will delete all commits except the top one (since we have created
|
|
118
118
|
a tag with it).
|
|
119
119
|
- Immediately, we will open another branch with the next version (`2.X.Y`) and
|
package/initializers.cjs.js
CHANGED
|
@@ -359,7 +359,9 @@ var neetoCommons = {
|
|
|
359
359
|
actions: {
|
|
360
360
|
cancel: "Cancel",
|
|
361
361
|
save: "Save"
|
|
362
|
-
}
|
|
362
|
+
},
|
|
363
|
+
andSentence: "{{first}} {{and}} {{last}}",
|
|
364
|
+
and: "and"
|
|
363
365
|
},
|
|
364
366
|
toastr: {
|
|
365
367
|
success: {
|
|
@@ -372,6 +374,38 @@ var neetoCommons = {
|
|
|
372
374
|
},
|
|
373
375
|
notice: {
|
|
374
376
|
errorOccurred: "Some error occurred."
|
|
377
|
+
},
|
|
378
|
+
widget: {
|
|
379
|
+
installation: {
|
|
380
|
+
snippet: {
|
|
381
|
+
copied: "Copied to clipboard!",
|
|
382
|
+
copy: "Copy",
|
|
383
|
+
sendViaEmail: "Send code via email",
|
|
384
|
+
disabledError: "Please enable atleast 1 widget."
|
|
385
|
+
},
|
|
386
|
+
instructions: {
|
|
387
|
+
placement: "Place the embed code in your HTML file. This will embed <fontBold>{{selectedWidgets}}</fontBold> in your website."
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
email: {
|
|
391
|
+
title: "Widget installation script",
|
|
392
|
+
fields: {
|
|
393
|
+
emails: {
|
|
394
|
+
label: "Emails",
|
|
395
|
+
placeholder: "Enter recipient email",
|
|
396
|
+
invalidError: "Please enter valid email addresses."
|
|
397
|
+
},
|
|
398
|
+
subject: {
|
|
399
|
+
label: "Subject",
|
|
400
|
+
"default": "neetoWidget script for installing {{selectedWidgets}}"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
body: "Hey there, We're going to use {{selectedWidgets}} on our website and I was hoping you could help us with the installation steps. Please find the code snippet for widget installation attached below.",
|
|
404
|
+
actions: {
|
|
405
|
+
send: "Send",
|
|
406
|
+
cancel: "Cancel"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
375
409
|
}
|
|
376
410
|
};
|
|
377
411
|
var en = {
|
package/initializers.js
CHANGED
|
@@ -349,7 +349,9 @@ var neetoCommons = {
|
|
|
349
349
|
actions: {
|
|
350
350
|
cancel: "Cancel",
|
|
351
351
|
save: "Save"
|
|
352
|
-
}
|
|
352
|
+
},
|
|
353
|
+
andSentence: "{{first}} {{and}} {{last}}",
|
|
354
|
+
and: "and"
|
|
353
355
|
},
|
|
354
356
|
toastr: {
|
|
355
357
|
success: {
|
|
@@ -362,6 +364,38 @@ var neetoCommons = {
|
|
|
362
364
|
},
|
|
363
365
|
notice: {
|
|
364
366
|
errorOccurred: "Some error occurred."
|
|
367
|
+
},
|
|
368
|
+
widget: {
|
|
369
|
+
installation: {
|
|
370
|
+
snippet: {
|
|
371
|
+
copied: "Copied to clipboard!",
|
|
372
|
+
copy: "Copy",
|
|
373
|
+
sendViaEmail: "Send code via email",
|
|
374
|
+
disabledError: "Please enable atleast 1 widget."
|
|
375
|
+
},
|
|
376
|
+
instructions: {
|
|
377
|
+
placement: "Place the embed code in your HTML file. This will embed <fontBold>{{selectedWidgets}}</fontBold> in your website."
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
email: {
|
|
381
|
+
title: "Widget installation script",
|
|
382
|
+
fields: {
|
|
383
|
+
emails: {
|
|
384
|
+
label: "Emails",
|
|
385
|
+
placeholder: "Enter recipient email",
|
|
386
|
+
invalidError: "Please enter valid email addresses."
|
|
387
|
+
},
|
|
388
|
+
subject: {
|
|
389
|
+
label: "Subject",
|
|
390
|
+
"default": "neetoWidget script for installing {{selectedWidgets}}"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
body: "Hey there, We're going to use {{selectedWidgets}} on our website and I was hoping you could help us with the installation steps. Please find the code snippet for widget installation attached below.",
|
|
394
|
+
actions: {
|
|
395
|
+
send: "Send",
|
|
396
|
+
cancel: "Cancel"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
365
399
|
}
|
|
366
400
|
};
|
|
367
401
|
var en = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@babel/preset-env": "^7.17.10",
|
|
48
48
|
"@babel/preset-react": "^7.16.7",
|
|
49
49
|
"@bigbinary/neeto-icons": "^1.8.35",
|
|
50
|
-
"@bigbinary/neetoui": "^
|
|
50
|
+
"@bigbinary/neetoui": "^4.0.0",
|
|
51
51
|
"@honeybadger-io/react": "2.0.1",
|
|
52
52
|
"@rollup/plugin-alias": "^3.1.9",
|
|
53
53
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@testing-library/react": "12.1.3",
|
|
60
60
|
"@testing-library/react-hooks": "^8.0.0",
|
|
61
61
|
"@testing-library/user-event": "13.5.0",
|
|
62
|
+
"antd": "4.18.7",
|
|
62
63
|
"autoprefixer": "^10.4.7",
|
|
63
64
|
"axios": "^0.27.2",
|
|
64
65
|
"babel-jest": "27.0.6",
|
|
@@ -86,7 +87,10 @@
|
|
|
86
87
|
"react": "^17.0.2",
|
|
87
88
|
"react-dom": "17.0.2",
|
|
88
89
|
"react-i18next": "11.16.8",
|
|
90
|
+
"react-query": "^3.39.2",
|
|
89
91
|
"react-router-dom": "^5.2.0",
|
|
92
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
93
|
+
"react-toastify": "^9.0.8",
|
|
90
94
|
"rollup": "^2.76.0",
|
|
91
95
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
92
96
|
"rollup-plugin-cleaner": "^1.0.0",
|
|
@@ -96,8 +100,9 @@
|
|
|
96
100
|
"dependencies": {},
|
|
97
101
|
"peerDependencies": {
|
|
98
102
|
"@bigbinary/neeto-icons": "^1.8.35",
|
|
99
|
-
"@bigbinary/neetoui": "^
|
|
103
|
+
"@bigbinary/neetoui": "^4.0.0",
|
|
100
104
|
"@honeybadger-io/react": "2.0.1",
|
|
105
|
+
"antd": "4.18.7",
|
|
101
106
|
"axios": "^0.27.2",
|
|
102
107
|
"dayjs": "1.11.1",
|
|
103
108
|
"formik": "^2.2.9",
|
|
@@ -106,7 +111,9 @@
|
|
|
106
111
|
"ramda": "^0.28.0",
|
|
107
112
|
"react": "^17.0.2",
|
|
108
113
|
"react-i18next": "11.16.8",
|
|
114
|
+
"react-query": "^3.39.2",
|
|
109
115
|
"react-router-dom": "^5.2.0",
|
|
116
|
+
"react-toastify": "^9.0.8",
|
|
110
117
|
"yup": "^0.32.11"
|
|
111
118
|
}
|
|
112
119
|
}
|