@bigbinary/neeto-commons-frontend 2.0.95 → 2.0.97
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 +1 -0
- package/configs/nanos/eslint/index.js +1 -2
- package/configs/nextjs/eslint/index.js +1 -2
- package/package.json +2 -2
- package/react-utils.cjs.js +3 -0
- package/react-utils.cjs.js.map +1 -1
- package/react-utils.d.ts +76 -24
- package/react-utils.js +4 -2
- package/react-utils.js.map +1 -1
- package/configs/nanos/eslint/neeto.js +0 -94
- package/configs/nextjs/eslint/neeto.js +0 -34
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ Category
|
|
|
56
56
|
- [useStateWithDependency](./docs/react/hooks.md#usestatewithdependency)
|
|
57
57
|
- [withImmutableActions](./docs/react/utils.md#withimmutableactions)
|
|
58
58
|
- [withTitle](./docs/react/utils.md#withtitle)
|
|
59
|
+
- [withT](./docs/react/utils.md#witht)
|
|
59
60
|
- [registerBrowserNotifications](./docs/react/utils.md#registerbrowsernotifications)
|
|
60
61
|
- [destroyBrowserSubscription](./docs/react/utils.md#destroybrowsersubscription)
|
|
61
62
|
- [handleMetaClick](./docs/react/utils.md#handlemetaclick)
|
|
@@ -4,7 +4,7 @@ const commonConfiguration = require("../../eslint");
|
|
|
4
4
|
|
|
5
5
|
const nanosConfiguration = {
|
|
6
6
|
extends: [
|
|
7
|
-
"plugin:@bigbinary/neeto/recommended",
|
|
7
|
+
"plugin:@bigbinary/neeto/nanos-recommended",
|
|
8
8
|
"plugin:cypress/recommended",
|
|
9
9
|
"plugin:json/recommended",
|
|
10
10
|
"eslint:recommended",
|
|
@@ -15,7 +15,6 @@ const nanosConfiguration = {
|
|
|
15
15
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/imports/enforced",
|
|
16
16
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/react",
|
|
17
17
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/promise",
|
|
18
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/nanos/eslint/neeto",
|
|
19
18
|
"prettier",
|
|
20
19
|
],
|
|
21
20
|
};
|
|
@@ -4,7 +4,7 @@ const commonConfiguration = require("../../eslint");
|
|
|
4
4
|
|
|
5
5
|
const nextjsConfiguration = {
|
|
6
6
|
extends: [
|
|
7
|
-
"plugin:@bigbinary/neeto/recommended",
|
|
7
|
+
"plugin:@bigbinary/neeto/nextjs-recommended",
|
|
8
8
|
"plugin:cypress/recommended",
|
|
9
9
|
"plugin:json/recommended",
|
|
10
10
|
"eslint:recommended",
|
|
@@ -15,7 +15,6 @@ const nextjsConfiguration = {
|
|
|
15
15
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/imports/enforced",
|
|
16
16
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/react",
|
|
17
17
|
"./node_modules/@bigbinary/neeto-commons-frontend/configs/eslint/promise",
|
|
18
|
-
"./node_modules/@bigbinary/neeto-commons-frontend/configs/nextjs/eslint/neeto",
|
|
19
18
|
"prettier",
|
|
20
19
|
],
|
|
21
20
|
};
|
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.97",
|
|
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>",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@babel/runtime": "^7.19.0",
|
|
78
78
|
"@babel/types": "^7.20.7",
|
|
79
79
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
80
|
-
"@bigbinary/eslint-plugin-neeto": "^1.
|
|
80
|
+
"@bigbinary/eslint-plugin-neeto": "^1.1.1",
|
|
81
81
|
"@bigbinary/neeto-commons-frontend": "2.0.57",
|
|
82
82
|
"@bigbinary/neeto-icons": "^1.9.15",
|
|
83
83
|
"@bigbinary/neeto-molecules": "^1.0.9",
|
package/react-utils.cjs.js
CHANGED
|
@@ -4147,6 +4147,8 @@ var isMetaKeyPressed = function isMetaKeyPressed(event) {
|
|
|
4147
4147
|
return !!(event !== null && event !== void 0 && event.ctrlKey || event !== null && event !== void 0 && event.metaKey);
|
|
4148
4148
|
};
|
|
4149
4149
|
|
|
4150
|
+
var withT = reactI18next.withTranslation();
|
|
4151
|
+
|
|
4150
4152
|
var withTitle = function withTitle(Component) {
|
|
4151
4153
|
var title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
4152
4154
|
var PageTitle = function PageTitle(props) {
|
|
@@ -4757,5 +4759,6 @@ exports.useStateWithDependency = useStateWithDependency;
|
|
|
4757
4759
|
exports.useTimer = useTimer;
|
|
4758
4760
|
exports.useUpdateEffect = useUpdateEffect;
|
|
4759
4761
|
exports.withImmutableActions = withImmutableActions;
|
|
4762
|
+
exports.withT = withT;
|
|
4760
4763
|
exports.withTitle = withTitle;
|
|
4761
4764
|
//# sourceMappingURL=react-utils.cjs.js.map
|