@bigbinary/neeto-commons-frontend 4.13.33 → 4.13.35
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/configs/eslint/helpers/index.mjs +4 -1
- package/configs/eslint/index.mjs +8 -6
- package/configs/nanos/eslint/index.mjs +11 -10
- package/configs/nextjs/eslint/index.mjs +11 -3
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +1 -1
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/package.json +34 -34
- package/react-utils.d.ts +10 -2
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import path from "path";
|
|
3
4
|
import { fileURLToPath } from "url";
|
|
4
5
|
|
|
5
6
|
import { mergeDeepLeft, mergeLeft, keys } from "ramda";
|
|
6
7
|
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
|
|
7
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
8
11
|
const __dirname = path.dirname(__filename);
|
|
9
12
|
|
|
@@ -38,7 +41,7 @@ const generatePathGroupsFromAssets = assetsPath => {
|
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
const buildPathGroupsBasedOnWebpackAliases = ({
|
|
41
|
-
customAliasPath = "config/
|
|
44
|
+
customAliasPath = "config/esbuild/config.js",
|
|
42
45
|
commonAliasPath = "node_modules/@bigbinary/neeto-commons-frontend/configs/webpack/resolve.js",
|
|
43
46
|
}) => {
|
|
44
47
|
const rootOfProject = path.join(__dirname, "../../../../../../");
|
package/configs/eslint/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import js from "@eslint/js";
|
|
|
7
7
|
import { defineConfig } from "eslint/config";
|
|
8
8
|
import jam3 from "eslint-plugin-jam3";
|
|
9
9
|
import prettier from "eslint-plugin-prettier";
|
|
10
|
+
import pluginPromise from "eslint-plugin-promise";
|
|
10
11
|
import react from "eslint-plugin-react";
|
|
11
12
|
import * as reactHooks from "eslint-plugin-react-hooks";
|
|
12
13
|
import security from "eslint-plugin-security";
|
|
@@ -51,7 +52,7 @@ export default defineConfig([
|
|
|
51
52
|
"**/.prettierrc.js",
|
|
52
53
|
"!.scripts/**",
|
|
53
54
|
"**/node_modules/**",
|
|
54
|
-
"**/eslint.config.
|
|
55
|
+
"**/eslint.config.mjs",
|
|
55
56
|
"**/package.json",
|
|
56
57
|
"**/jsconfig.json",
|
|
57
58
|
],
|
|
@@ -59,15 +60,16 @@ export default defineConfig([
|
|
|
59
60
|
|
|
60
61
|
js.configs.recommended,
|
|
61
62
|
security.configs.recommended,
|
|
63
|
+
pluginPromise.configs["flat/recommended"],
|
|
62
64
|
|
|
63
65
|
...compat.extends(
|
|
64
|
-
"plugin:@bigbinary/neeto/recommended",
|
|
65
66
|
"plugin:import/recommended",
|
|
66
67
|
"plugin:promise/recommended",
|
|
67
|
-
|
|
68
|
+
"plugin:json/recommended-legacy",
|
|
68
69
|
"plugin:cypress/recommended",
|
|
69
70
|
"plugin:react/recommended",
|
|
70
|
-
"plugin:prettier/recommended"
|
|
71
|
+
"plugin:prettier/recommended",
|
|
72
|
+
"plugin:@bigbinary/neeto/recommended"
|
|
71
73
|
),
|
|
72
74
|
globalsConfig,
|
|
73
75
|
orderConfig,
|
|
@@ -99,7 +101,7 @@ export default defineConfig([
|
|
|
99
101
|
...globals.commonjs,
|
|
100
102
|
...globals.node,
|
|
101
103
|
},
|
|
102
|
-
parser: babelParser,
|
|
104
|
+
parser: babelParser,
|
|
103
105
|
ecmaVersion: 2018,
|
|
104
106
|
sourceType: "module",
|
|
105
107
|
parserOptions: {
|
|
@@ -227,7 +229,7 @@ export default defineConfig([
|
|
|
227
229
|
"sonarjs/no-useless-catch": "error",
|
|
228
230
|
// not-auto-fixable: This rule warns against "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
|
|
229
231
|
"security/detect-eval-with-expression": "warn",
|
|
230
|
-
// TODO
|
|
232
|
+
// TODO Temporarily disabled for ESlint major version upgrade.
|
|
231
233
|
"import/no-unresolved": "off",
|
|
232
234
|
},
|
|
233
235
|
},
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
2
5
|
import { defineConfig } from "eslint/config";
|
|
3
6
|
|
|
7
|
+
import orderConfig from "./imports/order.mjs";
|
|
8
|
+
|
|
4
9
|
import commonConfiguration from "../../eslint/index.mjs";
|
|
5
10
|
import globalsConfig from "../../eslint/globals.mjs";
|
|
6
11
|
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
7
|
-
import orderConfig from "../../eslint/imports/order.mjs";
|
|
8
12
|
import overridesConfig from "../../eslint/overrides.mjs";
|
|
9
13
|
import promiseConfig from "../../eslint/promise.mjs";
|
|
10
14
|
import reactConfig from "../../eslint/react.mjs";
|
|
11
15
|
|
|
16
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
+
const __dirname = path.dirname(__filename);
|
|
18
|
+
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
19
|
+
|
|
12
20
|
export default defineConfig([
|
|
13
|
-
js.configs.recommended,
|
|
14
21
|
...commonConfiguration,
|
|
22
|
+
...compat.extends("plugin:@bigbinary/neeto/nanos-recommended"),
|
|
15
23
|
globalsConfig,
|
|
16
24
|
orderConfig,
|
|
17
25
|
overridesConfig,
|
|
18
26
|
enforcedConfig,
|
|
19
27
|
reactConfig,
|
|
20
28
|
promiseConfig,
|
|
21
|
-
{
|
|
22
|
-
rules: {
|
|
23
|
-
// TODO: Temporarily disabled the rule for major version release.
|
|
24
|
-
"@bigbinary/neeto/webpack-aliases-and-jsconfig-paths-should-be-in-sync":
|
|
25
|
-
"off",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
29
|
]);
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
2
5
|
import { defineConfig } from "eslint/config";
|
|
3
6
|
|
|
7
|
+
import orderConfig from "./imports/order.mjs";
|
|
8
|
+
|
|
4
9
|
import commonConfiguration from "../../eslint/index.mjs";
|
|
5
10
|
import globalsConfig from "../../eslint/globals.mjs";
|
|
6
11
|
import enforcedConfig from "../../eslint/imports/enforced.mjs";
|
|
7
|
-
import orderConfig from "../../eslint/imports/order.mjs";
|
|
8
12
|
import overridesConfig from "../../eslint/overrides.mjs";
|
|
9
13
|
import promiseConfig from "../../eslint/promise.mjs";
|
|
10
14
|
import reactConfig from "../../eslint/react.mjs";
|
|
11
15
|
|
|
16
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
17
|
+
const __dirname = path.dirname(__filename);
|
|
18
|
+
const compat = new FlatCompat({ baseDirectory: __dirname });
|
|
19
|
+
|
|
12
20
|
export default defineConfig([
|
|
13
|
-
js.configs.recommended,
|
|
14
21
|
...commonConfiguration,
|
|
22
|
+
...compat.extends("plugin:@bigbinary/neeto/nextjs-recommended"),
|
|
15
23
|
globalsConfig,
|
|
16
24
|
orderConfig,
|
|
17
25
|
overridesConfig,
|
|
@@ -36,7 +36,7 @@ var AppContainer = function AppContainer(_ref) {
|
|
|
36
36
|
var children = _ref.children,
|
|
37
37
|
browserSupportProps = _ref.browserSupportProps,
|
|
38
38
|
_ref$enableStickyRibb = _ref.enableStickyRibbons,
|
|
39
|
-
enableStickyRibbons = _ref$enableStickyRibb === void 0 ?
|
|
39
|
+
enableStickyRibbons = _ref$enableStickyRibb === void 0 ? globalProps.ssoEnabled : _ref$enableStickyRibb,
|
|
40
40
|
honeybadgerErrorBoundaryProps = _ref.honeybadgerErrorBoundaryProps,
|
|
41
41
|
reactQueryDevtoolsProps = _ref.reactQueryDevtoolsProps,
|
|
42
42
|
toastContainerProps = _ref.toastContainerProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.js","sources":["../../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons =
|
|
1
|
+
{"version":3,"file":"AppContainer.js","sources":["../../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons = globalProps.ssoEnabled,\n honeybadgerErrorBoundaryProps,\n reactQueryDevtoolsProps,\n toastContainerProps,\n}) => (\n <HoneybadgerErrorBoundary {...honeybadgerErrorBoundaryProps}>\n <BrowserSupport {...browserSupportProps}>\n <ToastContainer {...toastContainerProps} />\n <QueryClientProvider>\n {globalProps.authenticated && enableStickyRibbons && (\n <StickyRibbonsContainer />\n )}\n <BrowserRouter>{children}</BrowserRouter>\n <ReactQueryDevtools\n initialIsOpen={false}\n position=\"bottom\"\n {...reactQueryDevtoolsProps}\n />\n </QueryClientProvider>\n </BrowserSupport>\n </HoneybadgerErrorBoundary>\n);\n\nexport default AppContainer;\n"],"names":["AppContainer","_ref","children","browserSupportProps","_ref$enableStickyRibb","enableStickyRibbons","globalProps","ssoEnabled","honeybadgerErrorBoundaryProps","reactQueryDevtoolsProps","toastContainerProps","_jsx","HoneybadgerErrorBoundary","_objectSpread","_jsxs","BrowserSupport","ToastContainer","QueryClientProvider","authenticated","StickyRibbonsContainer","BrowserRouter","ReactQueryDevtools","initialIsOpen","position"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,C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C,mBAAmB,GAAAT,IAAA,CAAnBS,mBAAmB;EAAA,oBAEnBC,cAAA,CAACC,4DAAwB,EAAAC,aAAA,CAAAA,aAAA,KAAKL,6BAA6B,CAAA,EAAA,EAAA,EAAA;IAAAN,QAAA,eACzDY,eAAA,CAACC,cAAc,EAAAF,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAKV,mBAAmB,CAAA,EAAA,EAAA,EAAA;AAAAD,MAAAA,QAAA,EACrCS,cAAAA,cAAA,CAACK,4BAAc,EAAAH,aAAA,CAAKH,EAAAA,EAAAA,mBAAmB,CAAG,CAAC,eAC3CI,eAAA,CAACG,kDAAmB,EAAA;AAAAf,QAAAA,QAAA,EACjBI,CAAAA,WAAW,CAACY,aAAa,IAAIb,mBAAmB,iBAC/CM,cAAA,CAACQ,sBAAsB,EAAE,EAAA,CAC1B,eACDR,cAAA,CAACS,4BAAa,EAAA;AAAAlB,UAAAA,QAAA,EAAEA;AAAQ,SAAgB,CAAC,eACzCS,cAAA,CAACU,qCAAkB,EAAAR,aAAA,CAAA;AACjBS,UAAAA,aAAa,EAAE,KAAM;AACrBC,UAAAA,QAAQ,EAAC;SACLd,EAAAA,uBAAuB,CAC5B,CAAC;AAAA,OACiB,CAAC;KACR,CAAA;AAAC,GAAA,CACO,CAAC;AAAA;;;;","x_google_ignoreList":[0]}
|
|
@@ -34,7 +34,7 @@ var AppContainer = function AppContainer(_ref) {
|
|
|
34
34
|
var children = _ref.children,
|
|
35
35
|
browserSupportProps = _ref.browserSupportProps,
|
|
36
36
|
_ref$enableStickyRibb = _ref.enableStickyRibbons,
|
|
37
|
-
enableStickyRibbons = _ref$enableStickyRibb === void 0 ?
|
|
37
|
+
enableStickyRibbons = _ref$enableStickyRibb === void 0 ? globalProps.ssoEnabled : _ref$enableStickyRibb,
|
|
38
38
|
honeybadgerErrorBoundaryProps = _ref.honeybadgerErrorBoundaryProps,
|
|
39
39
|
reactQueryDevtoolsProps = _ref.reactQueryDevtoolsProps,
|
|
40
40
|
toastContainerProps = _ref.toastContainerProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.js","sources":["../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons =
|
|
1
|
+
{"version":3,"file":"AppContainer.js","sources":["../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../../src/react-utils/AppContainer/AppContainer.jsx"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\nimport \"assets/stylesheets/app-container.css\";\nimport BrowserSupport from \"neetomolecules/BrowserSupport\";\nimport StickyRibbonsContainer from \"neetomolecules/StickyRibbonsContainer\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ToastContainer } from \"react-toastify\";\nimport HoneybadgerErrorBoundary from \"react-utils/HoneybadgerErrorBoundary\";\nimport QueryClientProvider from \"react-utils/QueryClientProvider/QueryClientProvider\";\n\nconst AppContainer = ({\n children,\n browserSupportProps,\n enableStickyRibbons = globalProps.ssoEnabled,\n honeybadgerErrorBoundaryProps,\n reactQueryDevtoolsProps,\n toastContainerProps,\n}) => (\n <HoneybadgerErrorBoundary {...honeybadgerErrorBoundaryProps}>\n <BrowserSupport {...browserSupportProps}>\n <ToastContainer {...toastContainerProps} />\n <QueryClientProvider>\n {globalProps.authenticated && enableStickyRibbons && (\n <StickyRibbonsContainer />\n )}\n <BrowserRouter>{children}</BrowserRouter>\n <ReactQueryDevtools\n initialIsOpen={false}\n position=\"bottom\"\n {...reactQueryDevtoolsProps}\n />\n </QueryClientProvider>\n </BrowserSupport>\n </HoneybadgerErrorBoundary>\n);\n\nexport default AppContainer;\n"],"names":["AppContainer","_ref","children","browserSupportProps","_ref$enableStickyRibb","enableStickyRibbons","globalProps","ssoEnabled","honeybadgerErrorBoundaryProps","reactQueryDevtoolsProps","toastContainerProps","_jsx","HoneybadgerErrorBoundary","_objectSpread","_jsxs","BrowserSupport","ToastContainer","QueryClientProvider","authenticated","StickyRibbonsContainer","BrowserRouter","ReactQueryDevtools","initialIsOpen","position"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,C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BAEnBC,GAAA,CAACC,wBAAwB,EAAAC,aAAA,CAAAA,aAAA,KAAKL,6BAA6B,CAAA,EAAA,EAAA,EAAA;IAAAN,QAAA,eACzDY,IAAA,CAACC,cAAc,EAAAF,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAKV,mBAAmB,CAAA,EAAA,EAAA,EAAA;AAAAD,MAAAA,QAAA,EACrCS,cAAAA,GAAA,CAACK,cAAc,EAAAH,aAAA,CAAKH,EAAAA,EAAAA,mBAAmB,CAAG,CAAC,eAC3CI,IAAA,CAACG,mBAAmB,EAAA;AAAAf,QAAAA,QAAA,EACjBI,CAAAA,WAAW,CAACY,aAAa,IAAIb,mBAAmB,iBAC/CM,GAAA,CAACQ,sBAAsB,EAAE,EAAA,CAC1B,eACDR,GAAA,CAACS,aAAa,EAAA;AAAAlB,UAAAA,QAAA,EAAEA;AAAQ,SAAgB,CAAC,eACzCS,GAAA,CAACU,kBAAkB,EAAAR,aAAA,CAAA;AACjBS,UAAAA,aAAa,EAAE,KAAM;AACrBC,UAAAA,QAAQ,EAAC;SACLd,EAAAA,uBAAuB,CAC5B,CAAC;AAAA,OACiB,CAAC;KACR,CAAA;AAAC,GAAA,CACO,CAAC;AAAA;;;;","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.35",
|
|
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>",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"@babel/types": "^7.20.7",
|
|
92
92
|
"@bigbinary/babel-preset-neeto": "1.0.8",
|
|
93
93
|
"@bigbinary/eslint-plugin-neeto": "^1.6.0",
|
|
94
|
-
"@bigbinary/neeto-audit-frontend": "2.1.
|
|
95
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
96
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
97
|
-
"@bigbinary/neeto-editor": "1.
|
|
98
|
-
"@bigbinary/neeto-hotkeys": "1.0.
|
|
99
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
100
|
-
"@bigbinary/neeto-molecules": "3.
|
|
101
|
-
"@bigbinary/neetoui": "8.
|
|
94
|
+
"@bigbinary/neeto-audit-frontend": "^2.1.0",
|
|
95
|
+
"@bigbinary/neeto-cist": "1.0.11",
|
|
96
|
+
"@bigbinary/neeto-commons-frontend": "4.4.6",
|
|
97
|
+
"@bigbinary/neeto-editor": "1.38.1",
|
|
98
|
+
"@bigbinary/neeto-hotkeys": "^1.0.7",
|
|
99
|
+
"@bigbinary/neeto-icons": "1.20.5",
|
|
100
|
+
"@bigbinary/neeto-molecules": "3.5.2",
|
|
101
|
+
"@bigbinary/neetoui": "8.2.13",
|
|
102
102
|
"@eslint/compat": "^1.2.8",
|
|
103
103
|
"@eslint/eslintrc": "^3.3.1",
|
|
104
104
|
"@eslint/js": "^9.25.1",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"antd": "5.22.0",
|
|
134
134
|
"autoprefixer": "10.4.20",
|
|
135
135
|
"avvvatars-react": "0.4.2",
|
|
136
|
-
"axios": "1.
|
|
136
|
+
"axios": "1.8.2",
|
|
137
137
|
"babel-jest": "27.0.6",
|
|
138
138
|
"babel-loader": "^8.2.5",
|
|
139
139
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
@@ -157,19 +157,19 @@
|
|
|
157
157
|
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
|
|
158
158
|
"esbuild-rails": "^1.0.7",
|
|
159
159
|
"esbuild-sass-plugin": "^3.3.1",
|
|
160
|
-
"eslint": "
|
|
161
|
-
"eslint-config-prettier": "
|
|
162
|
-
"eslint-plugin-cypress": "
|
|
163
|
-
"eslint-plugin-import": "2.31.0",
|
|
164
|
-
"eslint-plugin-jam3": "0.2.3",
|
|
165
|
-
"eslint-plugin-json": "
|
|
166
|
-
"eslint-plugin-prettier": "
|
|
167
|
-
"eslint-plugin-promise": "
|
|
168
|
-
"eslint-plugin-react": "7.37.
|
|
169
|
-
"eslint-plugin-react-hooks": "
|
|
170
|
-
"eslint-plugin-security": "^
|
|
171
|
-
"eslint-plugin-sonarjs": "^0.
|
|
172
|
-
"eslint-plugin-unused-imports": "
|
|
160
|
+
"eslint": "^9.25.1",
|
|
161
|
+
"eslint-config-prettier": "^10.1.2",
|
|
162
|
+
"eslint-plugin-cypress": "^4.3.0",
|
|
163
|
+
"eslint-plugin-import": "^2.31.0",
|
|
164
|
+
"eslint-plugin-jam3": "^0.2.3",
|
|
165
|
+
"eslint-plugin-json": "^4.0.1",
|
|
166
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
167
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
168
|
+
"eslint-plugin-react": "^7.37.5",
|
|
169
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
170
|
+
"eslint-plugin-security": "^3.0.1",
|
|
171
|
+
"eslint-plugin-sonarjs": "^3.0.2",
|
|
172
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
173
173
|
"eslint-plugin-xss": "^0.1.12",
|
|
174
174
|
"formik": "2.4.6",
|
|
175
175
|
"framer-motion": "11.11.11",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"postcss-import": "^15.0.0",
|
|
192
192
|
"postcss-loader": "^7.0.1",
|
|
193
193
|
"postcss-preset-env": "7.8.2",
|
|
194
|
-
"prettier": "
|
|
194
|
+
"prettier": "3",
|
|
195
195
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
196
196
|
"qs": "6.13.0",
|
|
197
197
|
"ramda": "0.29.1",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"rollup-plugin-styles": "4.0.0",
|
|
213
213
|
"sass": "1.62.0",
|
|
214
214
|
"sass-loader": "^13.0.2",
|
|
215
|
-
"tailwindcss": "3.4.
|
|
215
|
+
"tailwindcss": "^3.4.1",
|
|
216
216
|
"unified": "11.0.0",
|
|
217
217
|
"util": "^0.12.5",
|
|
218
218
|
"uuid": "10.0.0",
|
|
@@ -222,13 +222,13 @@
|
|
|
222
222
|
},
|
|
223
223
|
"peerDependencies": {
|
|
224
224
|
"@bigbinary/babel-preset-neeto": "1.0.8",
|
|
225
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
226
|
-
"@bigbinary/neeto-commons-frontend": "4.
|
|
227
|
-
"@bigbinary/neeto-editor": "1.
|
|
228
|
-
"@bigbinary/neeto-hotkeys": "1.0.
|
|
229
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
230
|
-
"@bigbinary/neeto-molecules": "3.
|
|
231
|
-
"@bigbinary/neetoui": "8.
|
|
225
|
+
"@bigbinary/neeto-cist": "1.0.11",
|
|
226
|
+
"@bigbinary/neeto-commons-frontend": "4.4.6",
|
|
227
|
+
"@bigbinary/neeto-editor": "1.38.1",
|
|
228
|
+
"@bigbinary/neeto-hotkeys": "^1.0.7",
|
|
229
|
+
"@bigbinary/neeto-icons": "1.20.5",
|
|
230
|
+
"@bigbinary/neeto-molecules": "3.5.2",
|
|
231
|
+
"@bigbinary/neetoui": "8.2.13",
|
|
232
232
|
"@faker-js/faker": "8.2.0",
|
|
233
233
|
"@honeybadger-io/js": "6.10.1",
|
|
234
234
|
"@honeybadger-io/react": "6.1.25",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"antd": "5.22.0",
|
|
243
243
|
"autoprefixer": "10.4.20",
|
|
244
244
|
"avvvatars-react": "0.4.2",
|
|
245
|
-
"axios": "1.
|
|
245
|
+
"axios": "1.8.2",
|
|
246
246
|
"cypress": "11.2.0",
|
|
247
247
|
"dayjs": "1.11.13",
|
|
248
248
|
"dompurify": "^2.4.0",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"react-toastify": "8.0.2",
|
|
273
273
|
"sass": "1.62.0",
|
|
274
274
|
"shakapacker": "^6.5.5",
|
|
275
|
-
"tailwindcss": "3.4.
|
|
275
|
+
"tailwindcss": "^3.4.1",
|
|
276
276
|
"util": "^0.12.5",
|
|
277
277
|
"uuid": "10.0.0",
|
|
278
278
|
"vite": "^6.0.3",
|
package/react-utils.d.ts
CHANGED
|
@@ -83,7 +83,15 @@ export const QueryClientProvider: React.FC<{
|
|
|
83
83
|
}>;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
|
-
* The AppContainer component serves as a wrapper around your main application
|
|
86
|
+
* The AppContainer component serves as a wrapper around your main application
|
|
87
|
+
*
|
|
88
|
+
* components,it includes error handling with HoneybadgerErrorBoundary, browser
|
|
89
|
+
*
|
|
90
|
+
* support detection with BrowserSupport, client-side routing with
|
|
91
|
+
*
|
|
92
|
+
* BrowserRouter, query management with QueryClientProvider, and development
|
|
93
|
+
*
|
|
94
|
+
* tools with ReactQueryDevtools.
|
|
87
95
|
*
|
|
88
96
|
* @example
|
|
89
97
|
*
|
|
@@ -93,7 +101,7 @@ export const QueryClientProvider: React.FC<{
|
|
|
93
101
|
* <AppContainer
|
|
94
102
|
* honeybadgerErrorBoundaryProps={{
|
|
95
103
|
* ErrorComponent: FallbackErrorComponent,
|
|
96
|
-
* filterErrors:
|
|
104
|
+
* filterErrors: notice => !/IgnorableError/.test(notice.message),
|
|
97
105
|
* }}
|
|
98
106
|
* browserSupportProps={{
|
|
99
107
|
* checkOnMount: true,
|