@bigbinary/neeto-commons-frontend 4.13.110 → 4.13.112
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.
|
@@ -58,8 +58,15 @@ const getHostTranslations = () => {
|
|
|
58
58
|
const generateMergedTranslations = () => {
|
|
59
59
|
const packageTranslations = generatePackageTranslations();
|
|
60
60
|
const hostTranslations = getHostTranslations();
|
|
61
|
+
const supportedLanguages = Object.keys(hostTranslations);
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
const filteredPackageTranslations = Object.fromEntries(
|
|
64
|
+
Object.entries(packageTranslations).filter(([lang]) =>
|
|
65
|
+
supportedLanguages.includes(lang)
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
return mergeDeepLeft(hostTranslations, filteredPackageTranslations);
|
|
63
70
|
};
|
|
64
71
|
|
|
65
72
|
const writeTranslationsToDisk = mergedTranslations => {
|
package/configs/vite/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/extensions */
|
|
2
2
|
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
|
|
3
5
|
const { default: viteYaml } = require("@modyfi/vite-plugin-yaml");
|
|
4
6
|
const { default: react } = require("@vitejs/plugin-react");
|
|
5
7
|
const dotenv = require("dotenv");
|
|
@@ -20,6 +22,14 @@ const { config: esbuildConfig } = require("../esbuild/index.js");
|
|
|
20
22
|
dotenv.config({ path: ".env.development" });
|
|
21
23
|
|
|
22
24
|
const port = process.env.DEVSERVER_PORT || 8000;
|
|
25
|
+
const root = "app/javascript/packs";
|
|
26
|
+
|
|
27
|
+
const warmupClientFiles = fs.existsSync(root)
|
|
28
|
+
? fs
|
|
29
|
+
.readdirSync(root)
|
|
30
|
+
.filter(file => file.endsWith(".js"))
|
|
31
|
+
.map(file => `./${file}`)
|
|
32
|
+
: [];
|
|
23
33
|
|
|
24
34
|
const config = {
|
|
25
35
|
assestsInclude: ["**/*.yaml"],
|
|
@@ -35,7 +45,12 @@ const config = {
|
|
|
35
45
|
nanoDevelopmentPlugin(),
|
|
36
46
|
],
|
|
37
47
|
resolve: { extensions: esbuildConfig.resolveExtensions },
|
|
38
|
-
server: {
|
|
48
|
+
server: {
|
|
49
|
+
port,
|
|
50
|
+
origin: `http://localhost:${port}`,
|
|
51
|
+
cors: true,
|
|
52
|
+
warmup: { clientFiles: warmupClientFiles },
|
|
53
|
+
},
|
|
39
54
|
build: {
|
|
40
55
|
manifest: true,
|
|
41
56
|
sourcemap: true,
|
|
@@ -43,7 +58,7 @@ const config = {
|
|
|
43
58
|
rollupOptions: { input: esbuildConfig.entryPoints },
|
|
44
59
|
},
|
|
45
60
|
define: { ...esbuildConfig.define, global: "{}" },
|
|
46
|
-
root
|
|
61
|
+
root,
|
|
47
62
|
optimizeDeps: {
|
|
48
63
|
include: ["@bigbinary/neeto-icons/typeface-logos", "zustand/shallow"],
|
|
49
64
|
},
|
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.112",
|
|
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>",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@testing-library/react-hooks": "^8.0.0",
|
|
120
120
|
"@testing-library/user-event": "13.5.0",
|
|
121
121
|
"@tippyjs/react": "4.2.6",
|
|
122
|
-
"@vitejs/plugin-react": "^
|
|
122
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
123
123
|
"antd": "5.22.1",
|
|
124
124
|
"autoprefixer": "10.4.20",
|
|
125
125
|
"avvvatars-react": "0.4.2",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"unified": "11.0.0",
|
|
211
211
|
"util": "^0.12.5",
|
|
212
212
|
"uuid": "10.0.0",
|
|
213
|
-
"vite": "^
|
|
213
|
+
"vite": "^8.0.0",
|
|
214
214
|
"yup": "0.32.11",
|
|
215
215
|
"zustand": "4.4.2"
|
|
216
216
|
},
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"@tanstack/react-query": "5.59.20",
|
|
236
236
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
237
237
|
"@tippyjs/react": "4.2.6",
|
|
238
|
-
"@vitejs/plugin-react": "^
|
|
238
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
239
239
|
"antd": "5.22.1",
|
|
240
240
|
"autoprefixer": "10.4.20",
|
|
241
241
|
"avvvatars-react": "0.4.2",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"ua-parser-js": "^2.0.3",
|
|
274
274
|
"util": "^0.12.5",
|
|
275
275
|
"uuid": "10.0.0",
|
|
276
|
-
"vite": "^
|
|
276
|
+
"vite": "^8.0.0",
|
|
277
277
|
"webpack": "^5.75.0",
|
|
278
278
|
"yup": "0.32.11",
|
|
279
279
|
"zustand": "4.4.2"
|