mobile: fix build errors

This commit is contained in:
Ammar Ahmed
2025-01-21 13:01:36 +05:00
parent 76eec5f8bb
commit 7d034f7f16
9 changed files with 309 additions and 820 deletions

View File

@@ -36,8 +36,8 @@
"@streetwriters/kysely": "^0.27.4",
"pathe": "1.1.2",
"react-native-format-currency": "0.0.5",
"@lingui/react": "4.11.2",
"@lingui/core": "4.11.2",
"@lingui/core": "5.1.2",
"@lingui/react": "5.1.2",
"react-native-check-version": "^1.3.0",
"react-native-material-menu": "^2.0.0"
},

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -10,8 +10,8 @@
"hasInstallScript": true,
"dependencies": {
"@emotion/react": "11.11.1",
"@lingui/core": "4.11.4",
"@lingui/react": "4.11.4",
"@lingui/core": "5.1.2",
"@lingui/react": "5.1.2",
"@mdi/js": "^7.2.96",
"@mdi/react": "^1.6.0",
"@notesnook/editor": "file:../editor",
@@ -72,14 +72,14 @@
"@tiptap/pm": "2.6.6",
"@tiptap/starter-kit": "2.6.6",
"alfaaz": "^1.1.0",
"async-mutex": "^0.5.0",
"async-mutex": "0.5.0",
"clipboard-polyfill": "4.1.0",
"colord": "^2.9.3",
"detect-indent": "^7.0.1",
"entities": "^5.0.0",
"entities": "5.0.0",
"katex": "0.16.11",
"linkifyjs": "^4.1.3",
"nanoid": "^5.0.7",
"nanoid": "5.0.7",
"prism-themes": "^1.9.0",
"prosemirror-codemark": "^0.4.2",
"prosemirror-view": "1.34.2",
@@ -92,23 +92,23 @@
},
"devDependencies": {
"@emotion/react": "11.11.1",
"@mdi/js": "^7.4.47",
"@theme-ui/components": "^0.16.2",
"@theme-ui/core": "^0.16.2",
"@types/katex": "^0.16.7",
"@types/prismjs": "^1.26.4",
"@types/react": "^18.3.5",
"@mdi/js": "7.4.47",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"@types/katex": "0.16.7",
"@types/prismjs": "1.26.4",
"@types/react": "18.3.5",
"@types/react-color": "^3.0.12",
"@types/react-dom": "^18.3.0",
"@types/react-modal": "^3.16.3 ",
"happy-dom": "^15.7.4",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"happy-dom": "16.0.1",
"isomorphic-fetch": "^3.0.0",
"nodemon": "^3.1.7",
"prosemirror-test-builder": "^1.1.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-modal": "3.16.1",
"vitest": "^2.0.5",
"react-modal": "3.16.3",
"vitest": "2.1.8",
"web-vitals": "^4.2.3",
"zustand": "4.5.5"
},
@@ -129,16 +129,15 @@
"hasInstallScript": true,
"license": "GPL-3.0-or-later",
"devDependencies": {
"@lingui/cli": "^4.11.4",
"@lingui/macro": "^4.11.4 ",
"@lingui/swc-plugin": "^4.0.10",
"@types/react": "^18.2.39",
"@lingui/cli": "5.1.2",
"@lingui/core": "5.1.2",
"@lingui/swc-plugin": "5.0.2",
"@types/react": "18.3.5",
"babel-plugin-macros": "^3.1.0",
"nodemon": "^3.1.7",
"react": "18.2.0",
"react": "18.3.1",
"rollup": "^4.24.4",
"typescript": "5.5.3",
"vite": "^5.4.8",
"vite": "5.4.11",
"vite-plugin-dts": "^4.2.3",
"vite-plugin-static-copy": "^2.0.0",
"vite-plugin-swc-transform": "^1.0.1"
@@ -155,14 +154,14 @@
"devDependencies": {
"@emotion/react": "11.11.1",
"@theme-ui/color": "^0.16.1",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@trpc/server": "^10.45.2",
"@types/react": "^18.2.39",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"@trpc/server": "10.45.2",
"@types/react": "18.3.5",
"isomorphic-fetch": "^3.0.0",
"react": "18.2.0",
"react": "18.3.1",
"ts-json-schema-generator": "^1.2.0",
"zustand": "4.4.7"
"zustand": "4.5.5"
},
"peerDependencies": {
"@emotion/react": ">=11",
@@ -3618,46 +3617,65 @@
"dev": true
},
"node_modules/@lingui/core": {
"version": "4.11.4",
"resolved": "https://registry.npmjs.org/@lingui/core/-/core-4.11.4.tgz",
"integrity": "sha512-W0bBIFe44s//Qs+RQ+NMfzK5vAm9oEKyDddlN94Db6rzeUT/IJo7N+T75A6Bya8v/BrtF2G/W4b77eS3sd0utw==",
"license": "MIT",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@lingui/core/-/core-5.1.2.tgz",
"integrity": "sha512-biqmMCWuBBj7ERSpgGSV91hTShnSrR/RIFUcNKjWuZYgDd3HpBdEmXKCo9NTanQYbkBUpmyw/bgwsSBex6vkDA==",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@lingui/message-utils": "4.11.4",
"@lingui/message-utils": "^5.1.2",
"unraw": "^3.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"peerDependencies": {
"@lingui/babel-plugin-lingui-macro": "5.1.2",
"babel-plugin-macros": "2 || 3"
},
"peerDependenciesMeta": {
"@lingui/babel-plugin-lingui-macro": {
"optional": true
},
"babel-plugin-macros": {
"optional": true
}
}
},
"node_modules/@lingui/message-utils": {
"version": "4.11.4",
"resolved": "https://registry.npmjs.org/@lingui/message-utils/-/message-utils-4.11.4.tgz",
"integrity": "sha512-ZTCDhGbj5EN+P9Ajcj0Gq9uDP3HZTRW6/kT09WkiFgL4NayYLksPvgBk29sIglsS6M+Y6Iw2BrUK403SZjZKgw==",
"license": "MIT",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@lingui/message-utils/-/message-utils-5.1.2.tgz",
"integrity": "sha512-P/N0yBy2MuC726EaGPGiOafc/0RafHiwkvZJdFKjm1/XOMWrFZDPFXTuxguVQ3HQsRi5eUIPaboU4uRX4GepPg==",
"dependencies": {
"@messageformat/parser": "^5.0.0",
"js-sha256": "^0.10.1"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
}
},
"node_modules/@lingui/react": {
"version": "4.11.4",
"resolved": "https://registry.npmjs.org/@lingui/react/-/react-4.11.4.tgz",
"integrity": "sha512-f7re4HhjI6CLBV1CY/PcI3VYP5zS4rtfU33speWnfkymsxGIXQv4ol3BqrgPLGhypMl2nKcL5nfL+LewrLIW8g==",
"license": "MIT",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@lingui/react/-/react-5.1.2.tgz",
"integrity": "sha512-YPAvbPUd+kJrmA9H1LSJ9f6+0hkOlm0w8g+7a8FtE7olamjXd7SyIgJMbeJmvKSdztrrdcLBs9YEftUKTfjiyg==",
"dependencies": {
"@babel/runtime": "^7.20.13",
"@lingui/core": "4.11.4"
"@lingui/core": "^5.1.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
"@lingui/babel-plugin-lingui-macro": "5.1.2",
"babel-plugin-macros": "2 || 3",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@lingui/babel-plugin-lingui-macro": {
"optional": true
},
"babel-plugin-macros": {
"optional": true
}
}
},
"node_modules/@mdi/js": {
@@ -5969,12 +5987,12 @@
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"dev": true,
"dependencies": {
"fill-range": "^7.0.1"
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
@@ -8657,9 +8675,9 @@
}
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"dev": true,
"dependencies": {
"to-regex-range": "^5.0.1"
@@ -13078,12 +13096,12 @@
}
},
"node_modules/micromatch": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
"integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
"dev": true,
"dependencies": {
"braces": "^3.0.2",
"braces": "^3.0.3",
"picomatch": "^2.3.1"
},
"engines": {

View File

@@ -17,8 +17,8 @@
"react-dom": "^18.2.0",
"react-freeze": "^1.0.3",
"zustand": "^4.4.7",
"@lingui/core": "4.11.4",
"@lingui/react": "4.11.4"
"@lingui/core": "5.1.2",
"@lingui/react": "5.1.2"
},
"devDependencies": {
"@playwright/test": "^1.37.1",

View File

@@ -60,6 +60,7 @@ function loadApp() {
locale.then((locale: { [name: string]: any }) => {
i18n.load(locale);
i18n.activate(globalThis.LINGUI_LOCALE || "en");
//@ts-ignore
setI18nGlobal(i18n);
const rootElement = document.getElementById("root");

View File

@@ -185,6 +185,7 @@
"license": "GPL-3.0-or-later",
"devDependencies": {
"@lingui/cli": "5.1.2",
"@lingui/core": "5.1.2",
"@lingui/swc-plugin": "5.0.2",
"@types/react": "18.3.5",
"babel-plugin-macros": "^3.1.0",

View File

@@ -11,6 +11,7 @@
"license": "GPL-3.0-or-later",
"devDependencies": {
"@lingui/cli": "5.1.2",
"@lingui/core": "5.1.2",
"@lingui/swc-plugin": "5.0.2",
"@types/react": "18.3.5",
"babel-plugin-macros": "^3.1.0",

View File

@@ -33,6 +33,7 @@
"devDependencies": {
"@lingui/cli": "5.1.2",
"@lingui/swc-plugin": "5.0.2",
"@lingui/core": "5.1.2",
"@types/react": "18.3.5",
"babel-plugin-macros": "^3.1.0",
"nodemon": "^3.1.7",
@@ -47,4 +48,4 @@
"@lingui/macro": "*",
"react": ">=18"
}
}
}