global: use same versions for dependencies everywhere (#7365)

* global: use same versions for dependencies everywhere

* intl: fix `Cannot find module '@lingui/macro'`

* web: fix `I18n' is not assignable to parameter` type error

* setup: log post install cmd

* setup: more logging

* web: update lockfile
This commit is contained in:
Abdullah Atta
2025-01-21 09:35:38 +05:00
committed by GitHub
parent a13cbadd44
commit 5fe366f4f3
31 changed files with 10127 additions and 54442 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -33,10 +33,10 @@
"electron-trpc": "0.6.1",
"electron-updater": "^6.3.4",
"icojs": "^0.19.4",
"sqlite-better-trigram": "^0.0.2",
"sqlite-better-trigram": "0.0.2",
"typed-emitter": "^2.1.0",
"yargs": "^17.7.2",
"zod": "^3.23.8"
"zod": "3.23.8"
},
"devDependencies": {
"@streetwriters/kysely": "^0.27.4",
@@ -45,15 +45,15 @@
"chokidar": "^4.0.1",
"electron": "^31.7.4",
"electron-builder": "^25.1.8",
"esbuild": "^0.24.0",
"esbuild": "0.21.5",
"vitest": "2.1.8",
"node-abi": "^3.68.0",
"node-gyp-build": "^4.8.2",
"playwright": "^1.48.2",
"prebuildify": "^6.0.1",
"slugify": "^1.6.6",
"slugify": "1.6.6",
"tree-kill": "^1.2.2",
"undici": "^6.19.8",
"vitest": "^2.1.5"
"undici": "^6.19.8"
},
"optionalDependencies": {
"dmg-license": "^1.0.11"
@@ -262,4 +262,4 @@
}
]
}
}
}

51601
apps/web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -15,10 +15,10 @@
"@emotion/react": "11.11.1",
"@hazae41/foras": "^2.1.4",
"@henrygd/queue": "^1.0.6",
"@lingui/core": "4.11.4",
"@lingui/react": "4.11.4",
"@mdi/js": "^7.2.96",
"@mdi/react": "^1.6.1",
"@lingui/core": "5.1.2",
"@lingui/react": "5.1.2",
"@mdi/js": "7.4.47",
"@mdi/react": "1.6.1",
"@notesnook-importer/core": "^2.1.1",
"@notesnook/common": "file:../../packages/common",
"@notesnook/core": "file:../../packages/core",
@@ -39,34 +39,34 @@
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-virtual": "^3.0.1",
"@theme-ui/color": "^0.16.1",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"@trpc/client": "10.45.2",
"@trpc/react-query": "10.45.2",
"@zip.js/zip.js": "^2.7.54",
"async-mutex": "^0.4.0",
"async-mutex": "0.5.0",
"axios": "^1.7.9",
"clipboard-polyfill": "4.0.0",
"clipboard-polyfill": "4.1.0",
"comlink": "^4.3.1",
"cronosjs": "^1.7.1",
"dayjs": "1.11.9",
"dayjs": "1.11.13",
"diffblazer": "^1.0.1",
"electron-trpc": "0.5.2",
"event-source-polyfill": "^1.0.25",
"electron-trpc": "0.6.1",
"event-source-polyfill": "1.0.31",
"fflate": "^0.8.0",
"file-saver": "^2.0.5",
"hash-wasm": "^4.12.0",
"hash-wasm": "4.12.0",
"hotkeys-js": "^3.8.3",
"katex": "0.16.2",
"mac-scrollbar": "^0.13.6",
"katex": "0.16.11",
"mac-scrollbar": "0.13.6",
"mutative": "^1.1.0",
"pdfjs-dist": "3.6.172",
"phone": "^3.1.14",
"platform": "^1.3.6",
"qclone": "^1.2.0",
"react": "18.2.0",
"react": "18.3.1",
"react-avatar-editor": "^13.0.2",
"react-dom": "18.2.0",
"react-dom": "18.3.1",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^4.0.12",
"react-freeze": "^1.0.4",
@@ -80,45 +80,45 @@
"timeago.js": "4.0.2",
"w3c-keyname": "^2.2.6",
"wouter": "2.12.1",
"zustand": "4.4.7",
"zustand": "4.5.5",
"zustand-mutative": "^1.2.0"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@playwright/test": "^1.48.2",
"@babel/core": "7.22.5",
"@playwright/test": "1.48.2",
"@swc/plugin-react-remove-properties": "^6.0.2",
"@trpc/server": "10.45.2",
"@types/babel__core": "^7.20.1",
"@types/event-source-polyfill": "^1.0.5",
"@types/event-source-polyfill": "1.0.5",
"@types/file-saver": "^2.0.7",
"@types/marked": "^6.0.0",
"@types/node-fetch": "^2.6.12",
"@types/platform": "^1.3.6",
"@types/react": "^18.2.39",
"@types/react": "18.3.5",
"@types/react-avatar-editor": "^13.0.3",
"@types/react-dom": "^18.2.17",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"@types/react-scroll-sync": "^0.9.0",
"@types/wicg-file-system-access": "^2023.10.5",
"@vitejs/plugin-react-swc": "^3.7.2",
"autoprefixer": "^10.4.19",
"better-sqlite3-multiple-ciphers": "^9.4.0",
"better-sqlite3-multiple-ciphers": "11.5.0",
"buffer": "^6.0.3",
"chalk": "^4.1.0",
"dotenv": "^16.4.7",
"esbuild": "^0.24.2",
"dotenv": "16.4.7",
"esbuild": "0.21.5",
"file-loader": "^6.2.0",
"find-process": "^1.4.4",
"happy-dom": "^16.0.1",
"happy-dom": "16.0.1",
"ip": "^2.0.1",
"lorem-ipsum": "^2.0.4",
"otplib": "^12.0.1",
"rollup-plugin-visualizer": "^5.13.1",
"vite": "^5.4.11",
"vite": "5.4.11",
"vite-plugin-env-compatible": "^2.0.1",
"vite-plugin-pwa": "^0.21.1",
"vite-plugin-svgr": "^4.3.0",
"vitest": "^2.1.8",
"vitest": "2.1.8",
"workbox-core": "^7.3.0",
"workbox-expiration": "^7.3.0",
"workbox-precaching": "^7.3.0",

View File

@@ -10,26 +10,26 @@
"license": "GPL-3.0-or-later",
"dependencies": {
"@emotion/react": "11.11.1",
"@mdi/js": "^6.9.96",
"@mdi/react": "^1.6.0",
"@mdi/js": "7.4.47",
"@mdi/react": "1.6.1",
"@notesnook/clipper": "file:../../packages/clipper",
"@notesnook/theme": "file:../../packages/theme",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"comlink": "^4.3.1",
"hyperapp": "^2.0.22",
"mac-scrollbar": "0.13.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"mac-scrollbar": "0.13.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-frame-component": "^5.2.6",
"react-modal": "3.16.1",
"react-modal": "3.16.3",
"react-scripts": "5.0.0",
"svg-react-loader": "^0.4.6",
"webextension-polyfill-ts": "^0.26.0",
"zustand": "4.4.7"
"zustand": "4.5.5"
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/core": "7.22.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
@@ -38,9 +38,9 @@
"@types/inline-css": "^3.0.1",
"@types/jest": "^26.0.14",
"@types/postlight__mercury-parser": "^2.2.4",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@types/react-modal": "^3.16.3 ",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"@types/sanitize-html": "^2.6.2",
"@types/webextension-polyfill": "^0.8.3",
"babel-eslint": "^10.1.0",
@@ -68,8 +68,8 @@
"terser-webpack-plugin": "^5.3.1",
"ts-loader": "^9.2.6",
"web-ext": "^7.6.2",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2",
"webpack": "5.88.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "^4.7.4"
}
},
@@ -85,10 +85,10 @@
"specificity": "^0.4.1"
},
"devDependencies": {
"@playwright/test": "^1.27.1",
"slugify": "^1.6.5",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
"@playwright/test": "1.48.2",
"slugify": "1.6.6",
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
}
},
"../../packages/theme": {
@@ -98,14 +98,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",
@@ -168,25 +168,25 @@
}
},
"node_modules/@babel/core": {
"version": "7.23.5",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz",
"integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==",
"version": "7.22.5",
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz",
"integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==",
"dependencies": {
"@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.23.5",
"@babel/generator": "^7.23.5",
"@babel/helper-compilation-targets": "^7.22.15",
"@babel/helper-module-transforms": "^7.23.3",
"@babel/helpers": "^7.23.5",
"@babel/parser": "^7.23.5",
"@babel/template": "^7.22.15",
"@babel/traverse": "^7.23.5",
"@babel/types": "^7.23.5",
"convert-source-map": "^2.0.0",
"@babel/code-frame": "^7.22.5",
"@babel/generator": "^7.22.5",
"@babel/helper-compilation-targets": "^7.22.5",
"@babel/helper-module-transforms": "^7.22.5",
"@babel/helpers": "^7.22.5",
"@babel/parser": "^7.22.5",
"@babel/template": "^7.22.5",
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.5",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
"json5": "^2.2.3",
"semver": "^6.3.1"
"json5": "^2.2.2",
"semver": "^6.3.0"
},
"engines": {
"node": ">=6.9.0"
@@ -2398,11 +2398,6 @@
"stylis": "4.2.0"
}
},
"node_modules/@emotion/babel-plugin/node_modules/convert-source-map": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/@emotion/cache": {
"version": "11.11.0",
"resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.11.0.tgz",
@@ -3727,11 +3722,6 @@
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"node_modules/@jest/transform/node_modules/convert-source-map": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/@jest/transform/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@@ -3903,9 +3893,9 @@
"integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A=="
},
"node_modules/@mdi/js": {
"version": "6.9.96",
"resolved": "https://registry.npmjs.org/@mdi/js/-/js-6.9.96.tgz",
"integrity": "sha512-rK0/vLFaiItYS2W7uVmaKPKnhNQE4XVkylpk5njtVwENnp8elwY5uRL6qvdj2esuvUHG7DwygE4Qu3eKxxuJiQ=="
"version": "7.4.47",
"resolved": "https://registry.npmjs.org/@mdi/js/-/js-7.4.47.tgz",
"integrity": "sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ=="
},
"node_modules/@mdi/react": {
"version": "1.6.1",
@@ -5052,20 +5042,19 @@
"integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ=="
},
"node_modules/@types/react": {
"version": "18.2.39",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.39.tgz",
"integrity": "sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==",
"version": "18.3.5",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.5.tgz",
"integrity": "sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
"node_modules/@types/react-dom": {
"version": "18.2.17",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.17.tgz",
"integrity": "sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==",
"version": "18.3.0",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz",
"integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==",
"dev": true,
"dependencies": {
"@types/react": "*"
@@ -5102,12 +5091,6 @@
"htmlparser2": "^8.0.0"
}
},
"node_modules/@types/scheduler": {
"version": "0.16.8",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",
"integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==",
"dev": true
},
"node_modules/@types/semver": {
"version": "7.5.6",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz",
@@ -5659,34 +5642,42 @@
}
},
"node_modules/@webpack-cli/configtest": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz",
"integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz",
"integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==",
"dev": true,
"engines": {
"node": ">=14.15.0"
},
"peerDependencies": {
"webpack": "4.x.x || 5.x.x",
"webpack-cli": "4.x.x"
"webpack": "5.x.x",
"webpack-cli": "5.x.x"
}
},
"node_modules/@webpack-cli/info": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz",
"integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz",
"integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==",
"dev": true,
"dependencies": {
"envinfo": "^7.7.3"
"engines": {
"node": ">=14.15.0"
},
"peerDependencies": {
"webpack-cli": "4.x.x"
"webpack": "5.x.x",
"webpack-cli": "5.x.x"
}
},
"node_modules/@webpack-cli/serve": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz",
"integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==",
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz",
"integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==",
"dev": true,
"engines": {
"node": ">=14.15.0"
},
"peerDependencies": {
"webpack-cli": "4.x.x"
"webpack": "5.x.x",
"webpack-cli": "5.x.x"
},
"peerDependenciesMeta": {
"webpack-dev-server": {
@@ -8461,9 +8452,9 @@
}
},
"node_modules/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/cookie": {
"version": "0.5.0",
@@ -9814,9 +9805,9 @@
}
},
"node_modules/envinfo": {
"version": "7.11.0",
"resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.11.0.tgz",
"integrity": "sha512-G9/6xF1FPbIw0TtalAMaVPpiq2aDEuKLXM314jPVAO9r2fo2a4BLqMNkmRS7O/xPPZ+COAhGIz3ETvHEV3eUcg==",
"version": "7.14.0",
"resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz",
"integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==",
"dev": true,
"bin": {
"envinfo": "dist/cli.js"
@@ -12879,12 +12870,12 @@
}
},
"node_modules/interpret": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz",
"integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==",
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz",
"integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==",
"dev": true,
"engines": {
"node": ">= 0.10"
"node": ">=10.13.0"
}
},
"node_modules/invert-kv": {
@@ -17443,9 +17434,9 @@
}
},
"node_modules/mac-scrollbar": {
"version": "0.13.5",
"resolved": "https://registry.npmjs.org/mac-scrollbar/-/mac-scrollbar-0.13.5.tgz",
"integrity": "sha512-UeCVmDseY0wM67sncAowqHodgrJ3bgPI6nkBeG1eQWNZ3AunXK0zLjBslx2rHZqlVNq2TlNjaV1cIK0yYTrktQ=="
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/mac-scrollbar/-/mac-scrollbar-0.13.6.tgz",
"integrity": "sha512-P0eNiCTExlmWBQ0FXalfXVh42eo9b0obnZIo1khZzyZX99frTsCmZwcbH0RWZZtNYtBZVd5f/7k4iLPou+skzg=="
},
"node_modules/magic-string": {
"version": "0.25.9",
@@ -21191,9 +21182,9 @@
}
},
"node_modules/react": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
"dependencies": {
"loose-envify": "^1.1.0"
},
@@ -21329,15 +21320,15 @@
}
},
"node_modules/react-dom": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
"integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
"dependencies": {
"loose-envify": "^1.1.0",
"scheduler": "^0.23.0"
"scheduler": "^0.23.2"
},
"peerDependencies": {
"react": "^18.2.0"
"react": "^18.3.1"
}
},
"node_modules/react-error-overlay": {
@@ -21366,21 +21357,18 @@
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
"node_modules/react-modal": {
"version": "3.16.1",
"resolved": "https://registry.npmjs.org/react-modal/-/react-modal-3.16.1.tgz",
"integrity": "sha512-VStHgI3BVcGo7OXczvnJN7yT2TWHJPDXZWyI/a0ssFNhGZWsPmB8cF0z33ewDXq4VfYMO1vXgiv/g8Nj9NDyWg==",
"version": "3.16.3",
"resolved": "https://registry.npmjs.org/react-modal/-/react-modal-3.16.3.tgz",
"integrity": "sha512-yCYRJB5YkeQDQlTt17WGAgFJ7jr2QYcWa1SHqZ3PluDmnKJ/7+tVU+E6uKyZ0nODaeEj+xCpK4LcSnKXLMC0Nw==",
"dependencies": {
"exenv": "^1.2.0",
"prop-types": "^15.7.2",
"react-lifecycles-compat": "^3.0.0",
"warning": "^4.0.3"
},
"engines": {
"node": ">=8"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18",
"react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18"
"react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19",
"react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19"
}
},
"node_modules/react-refresh": {
@@ -21720,15 +21708,15 @@
}
},
"node_modules/rechoir": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz",
"integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==",
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz",
"integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==",
"dev": true,
"dependencies": {
"resolve": "^1.9.0"
"resolve": "^1.20.0"
},
"engines": {
"node": ">= 0.10"
"node": ">= 10.13.0"
}
},
"node_modules/recursive-readdir": {
@@ -22166,11 +22154,6 @@
}
}
},
"node_modules/resolve-url-loader/node_modules/convert-source-map": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/resolve-url-loader/node_modules/picocolors": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
@@ -22587,9 +22570,9 @@
}
},
"node_modules/scheduler": {
"version": "0.23.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
"integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
"version": "0.23.2",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
"dependencies": {
"loose-envify": "^1.1.0"
}
@@ -25057,9 +25040,9 @@
}
},
"node_modules/use-sync-external-store": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
"integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz",
"integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
@@ -25117,11 +25100,6 @@
"node": ">=10.12.0"
}
},
"node_modules/v8-to-istanbul/node_modules/convert-source-map": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
"node_modules/v8-to-istanbul/node_modules/source-map": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
@@ -25525,9 +25503,9 @@
}
},
"node_modules/webpack": {
"version": "5.89.0",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz",
"integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==",
"version": "5.88.2",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz",
"integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==",
"dependencies": {
"@types/eslint-scope": "^3.7.3",
"@types/estree": "^1.0.0",
@@ -25571,44 +25549,42 @@
}
},
"node_modules/webpack-cli": {
"version": "4.10.0",
"resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz",
"integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==",
"version": "5.1.4",
"resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz",
"integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==",
"dev": true,
"dependencies": {
"@discoveryjs/json-ext": "^0.5.0",
"@webpack-cli/configtest": "^1.2.0",
"@webpack-cli/info": "^1.5.0",
"@webpack-cli/serve": "^1.7.0",
"@webpack-cli/configtest": "^2.1.1",
"@webpack-cli/info": "^2.0.2",
"@webpack-cli/serve": "^2.0.5",
"colorette": "^2.0.14",
"commander": "^7.0.0",
"commander": "^10.0.1",
"cross-spawn": "^7.0.3",
"envinfo": "^7.7.3",
"fastest-levenshtein": "^1.0.12",
"import-local": "^3.0.2",
"interpret": "^2.2.0",
"rechoir": "^0.7.0",
"interpret": "^3.1.1",
"rechoir": "^0.8.0",
"webpack-merge": "^5.7.3"
},
"bin": {
"webpack-cli": "bin/cli.js"
},
"engines": {
"node": ">=10.13.0"
"node": ">=14.15.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"peerDependencies": {
"webpack": "4.x.x || 5.x.x"
"webpack": "5.x.x"
},
"peerDependenciesMeta": {
"@webpack-cli/generators": {
"optional": true
},
"@webpack-cli/migrate": {
"optional": true
},
"webpack-bundle-analyzer": {
"optional": true
},
@@ -25618,12 +25594,12 @@
}
},
"node_modules/webpack-cli/node_modules/commander": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
"integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
"version": "10.0.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",
"integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",
"dev": true,
"engines": {
"node": ">= 10"
"node": ">=14"
}
},
"node_modules/webpack-dev-middleware": {
@@ -26768,18 +26744,18 @@
}
},
"node_modules/zustand": {
"version": "4.4.7",
"resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.7.tgz",
"integrity": "sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==",
"version": "4.5.5",
"resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.5.tgz",
"integrity": "sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==",
"dependencies": {
"use-sync-external-store": "1.2.0"
"use-sync-external-store": "1.2.2"
},
"engines": {
"node": ">=12.7.0"
},
"peerDependencies": {
"@types/react": ">=16.8",
"immer": ">=9.0",
"immer": ">=9.0.6",
"react": ">=16.8"
},
"peerDependenciesMeta": {

View File

@@ -5,23 +5,23 @@
"main": "./dist/index.js",
"dependencies": {
"@emotion/react": "11.11.1",
"@mdi/js": "^6.9.96",
"@mdi/react": "^1.6.0",
"@mdi/js": "7.4.47",
"@mdi/react": "1.6.1",
"@notesnook/clipper": "file:../../packages/clipper",
"@notesnook/theme": "file:../../packages/theme",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"comlink": "^4.3.1",
"hyperapp": "^2.0.22",
"mac-scrollbar": "0.13.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"mac-scrollbar": "0.13.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-frame-component": "^5.2.6",
"react-modal": "3.16.1",
"react-modal": "3.16.3",
"react-scripts": "5.0.0",
"svg-react-loader": "^0.4.6",
"webextension-polyfill-ts": "^0.26.0",
"zustand": "4.4.7"
"zustand": "4.5.5"
},
"scripts": {
"build:firefox": "cross-env MANIFEST_VERSION=2 node build-utils/build.js",
@@ -43,7 +43,7 @@
]
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/core": "7.22.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
@@ -52,9 +52,9 @@
"@types/inline-css": "^3.0.1",
"@types/jest": "^26.0.14",
"@types/postlight__mercury-parser": "^2.2.4",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@types/react-modal": "^3.16.3 ",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"@types/sanitize-html": "^2.6.2",
"@types/webextension-polyfill": "^0.8.3",
"babel-eslint": "^10.1.0",
@@ -82,8 +82,8 @@
"terser-webpack-plugin": "^5.3.1",
"ts-loader": "^9.2.6",
"web-ext": "^7.6.2",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2",
"webpack": "5.88.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "^4.7.4"
},
"license": "GPL-3.0-or-later",
@@ -94,4 +94,4 @@
},
"homepage": "https://notesnook.com/",
"repository": "https://github.com/streetwriters/notesnook"
}
}

View File

@@ -16,10 +16,10 @@
"specificity": "^0.4.1"
},
"devDependencies": {
"@playwright/test": "^1.27.1",
"slugify": "^1.6.5",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
"@playwright/test": "1.48.2",
"slugify": "1.6.6",
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
}
},
"node_modules/@discoveryjs/json-ext": {
@@ -98,19 +98,18 @@
}
},
"node_modules/@playwright/test": {
"version": "1.27.1",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.27.1.tgz",
"integrity": "sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==",
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.2.tgz",
"integrity": "sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==",
"dev": true,
"dependencies": {
"@types/node": "*",
"playwright-core": "1.27.1"
"playwright": "1.48.2"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
"node": ">=14"
"node": ">=18"
}
},
"node_modules/@types/eslint": {
@@ -649,6 +648,20 @@
"node": ">=8"
}
},
"node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@@ -933,16 +946,34 @@
"node": ">=8"
}
},
"node_modules/playwright-core": {
"version": "1.27.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.27.1.tgz",
"integrity": "sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q==",
"node_modules/playwright": {
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.2.tgz",
"integrity": "sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==",
"dev": true,
"dependencies": {
"playwright-core": "1.48.2"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
"node": ">=14"
"node": ">=18"
},
"optionalDependencies": {
"fsevents": "2.3.2"
}
},
"node_modules/playwright-core": {
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.2.tgz",
"integrity": "sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==",
"dev": true,
"bin": {
"playwright-core": "cli.js"
},
"engines": {
"node": ">=18"
}
},
"node_modules/punycode": {
@@ -1094,9 +1125,9 @@
}
},
"node_modules/slugify": {
"version": "1.6.5",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.5.tgz",
"integrity": "sha512-8mo9bslnBO3tr5PEVFzMPIWwWnipGS0xVbYf65zxDqfNwmzYn1LpiKNrR6DlClusuvo+hDHd1zKpmfAe83NQSQ==",
"version": "1.6.6",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz",
"integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==",
"dev": true,
"engines": {
"node": ">=8.0.0"
@@ -1476,13 +1507,12 @@
"integrity": "sha512-48MJXzi4Dhy2fJ3lGjmwdEJKoMmn3oiYew9n/1OW6cZy78hAzRIyDJDBCGrg4PBFDyY4xos+H4LCFn5QVRDcfw=="
},
"@playwright/test": {
"version": "1.27.1",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.27.1.tgz",
"integrity": "sha512-mrL2q0an/7tVqniQQF6RBL2saskjljXzqNcCOVMUjRIgE6Y38nCNaP+Dc2FBW06bcpD3tqIws/HT9qiMHbNU0A==",
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.2.tgz",
"integrity": "sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==",
"dev": true,
"requires": {
"@types/node": "*",
"playwright-core": "1.27.1"
"playwright": "1.48.2"
}
},
"@types/eslint": {
@@ -1899,6 +1929,13 @@
"path-exists": "^4.0.0"
}
},
"fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true
},
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@@ -2117,10 +2154,20 @@
"find-up": "^4.0.0"
}
},
"playwright": {
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.2.tgz",
"integrity": "sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==",
"dev": true,
"requires": {
"fsevents": "2.3.2",
"playwright-core": "1.48.2"
}
},
"playwright-core": {
"version": "1.27.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.27.1.tgz",
"integrity": "sha512-9EmeXDncC2Pmp/z+teoVYlvmPWUC6ejSSYZUln7YaP89Z6lpAaiaAnqroUt/BoLo8tn7WYShcfaCh+xofZa44Q==",
"version": "1.48.2",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.2.tgz",
"integrity": "sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==",
"dev": true
},
"punycode": {
@@ -2224,9 +2271,9 @@
"dev": true
},
"slugify": {
"version": "1.6.5",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.5.tgz",
"integrity": "sha512-8mo9bslnBO3tr5PEVFzMPIWwWnipGS0xVbYf65zxDqfNwmzYn1LpiKNrR6DlClusuvo+hDHd1zKpmfAe83NQSQ==",
"version": "1.6.6",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.6.tgz",
"integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==",
"dev": true
},
"source-map": {

View File

@@ -10,10 +10,10 @@
"license": "GPL-3.0-or-later",
"main": "dist/index.js",
"devDependencies": {
"@playwright/test": "^1.27.1",
"slugify": "^1.6.5",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
"@playwright/test": "1.48.2",
"slugify": "1.6.6",
"webpack": "5.88.2",
"webpack-cli": "5.1.4"
},
"publishConfig": {
"access": "public"
@@ -38,4 +38,4 @@
"hyperapp": "^2.0.22",
"specificity": "^0.4.1"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -32,9 +32,9 @@
"homepage": "https://github.com/streetwriters/notesnook#readme",
"devDependencies": {
"@notesnook/core": "file:../core",
"@types/react": "^18.2.39",
"react": "18.2.0",
"vitest": "^1.4.0"
"@types/react": "18.3.5",
"react": "18.3.1",
"vitest": "2.1.8"
},
"peerDependencies": {
"react": ">=18",
@@ -43,8 +43,8 @@
"dependencies": {
"@notesnook/core": "file:../core",
"@readme/data-urls": "^3.0.0",
"dayjs": "^1.11.13",
"dayjs": "1.11.13",
"pathe": "^1.1.2",
"timeago.js": "4.0.2"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -25,28 +25,28 @@
"devDependencies": {
"@notesnook/crypto": "file:../crypto",
"@types/better-sqlite3": "^7.6.5",
"@types/event-source-polyfill": "^1.0.1",
"@types/event-source-polyfill": "1.0.5",
"@types/html-to-text": "^9.0.0",
"@types/katex": "^0.16.2",
"@types/prismjs": "^1.26.0",
"@types/katex": "0.16.7",
"@types/prismjs": "1.26.4",
"@types/spark-md5": "^3.0.2",
"@types/streetwriters__showdown": "npm:@types/showdown@^2.0.6",
"@types/unist": "^3.0.3",
"@types/ws": "^8.5.5",
"@vitest/coverage-v8": "^1.0.1",
"@vitest/coverage-v8": "2.1.8",
"abortcontroller-polyfill": "^1.7.3",
"better-sqlite3-multiple-ciphers": "^11.5.0",
"better-sqlite3-multiple-ciphers": "11.5.0",
"bson-objectid": "^2.0.4",
"dotenv": "^16.0.1",
"event-source-polyfill": "^1.0.31",
"dotenv": "16.4.7",
"event-source-polyfill": "1.0.31",
"eventsource": "^2.0.2",
"hash-wasm": "^4.9.0",
"hash-wasm": "4.12.0",
"isomorphic-fetch": "^3.0.0",
"mockdate": "^3.0.5",
"nanoid": "^5.0.1",
"nanoid": "5.0.7",
"otplib": "^12.0.1",
"refractor": "^4.8.1",
"vitest": "^1.0.1",
"vitest": "2.1.8",
"vitest-fetch-mock": "^0.2.2",
"ws": "^8.13.0"
},
@@ -69,16 +69,16 @@
"@streetwriters/kysely": "^0.27.4",
"@streetwriters/showdown": "^3.0.9-alpha",
"@types/mime-db": "^1.43.5",
"async-mutex": "^0.3.2",
"dayjs": "1.11.9",
"async-mutex": "0.5.0",
"dayjs": "1.11.13",
"dom-serializer": "^2.0.0",
"domhandler": "^5.0.3",
"domutils": "^3.1.0",
"entities": "^4.3.1",
"entities": "5.0.0",
"fuzzyjs": "^5.0.1",
"html-to-text": "^9.0.5",
"htmlparser2": "^8.0.1",
"katex": "0.16.2",
"katex": "0.16.11",
"linkedom": "^0.14.17",
"liqe": "^1.13.0",
"mime-db": "^1.53.0",
@@ -86,9 +86,9 @@
"qclone": "^1.2.0",
"rfdc": "^1.3.0",
"spark-md5": "^3.0.2",
"sqlite-better-trigram": "^0.0.1"
"sqlite-better-trigram": "0.0.2"
},
"overrides": {
"htmlparser2": "^8.0.1"
}
}
}

View File

@@ -26,7 +26,7 @@
"benny": "^3.7.1",
"sodium-native": "^4.1.1",
"ts-node": "^10.9.1",
"vitest": "^0.32.2"
"vitest": "2.1.8"
},
"peerDependencies": {
"sodium-native": ">=4"

File diff suppressed because it is too large Load Diff

View File

@@ -63,14 +63,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",
@@ -83,23 +83,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"
},
@@ -128,4 +128,4 @@
"url": "git://github.com/streetwriters/notesnook.git",
"directory": "packages/editor"
}
}
}

View File

@@ -13,14 +13,38 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"
#: src/strings.ts:2387
msgid " \"Notebook > Notes\""
msgstr " \"Notebook > Notes\""
#: src/strings.ts:148
msgid " Unlock with password once to enable biometric access."
msgstr " Unlock with password once to enable biometric access."
#: src/strings.ts:1920
msgid " Upgrade to Notesnook Pro to add more notebooks."
msgstr " Upgrade to Notesnook Pro to add more notebooks."
#: src/strings.ts:1923
msgid " Upgrade to Notesnook Pro to customize the toolbar."
msgstr " Upgrade to Notesnook Pro to customize the toolbar."
#: src/strings.ts:1922
msgid " Upgrade to Notesnook Pro to use custom toolbar presets."
msgstr " Upgrade to Notesnook Pro to use custom toolbar presets."
#: src/strings.ts:1921
msgid " Upgrade to Notesnook Pro to use the notes vault."
msgstr " Upgrade to Notesnook Pro to use the notes vault."
#: src/strings.ts:1924
msgid " Upgrade to Notesnook Pro to use this feature."
msgstr " Upgrade to Notesnook Pro to use this feature."
#: src/strings.ts:817
msgid "— not just the"
msgstr "— not just the"
#: src/strings.ts:2387
msgid "\"Notebook > Notes\""
msgstr "\"Notebook > Notes\""
#: src/strings.ts:43
msgid "\"Refunded"
msgstr "\"Refunded"
@@ -29,14 +53,17 @@ msgstr "\"Refunded"
msgid "(empty block)"
msgstr "(empty block)"
#. placeholder {0}: status ? status : "Exporting notes"
#: src/strings.ts:213
msgid "{0}"
msgstr "{0}"
#. placeholder {0}: name || "File"
#: src/strings.ts:507
msgid "{0} downloaded"
msgstr "{0} downloaded"
#. placeholder {0}: version ? `v${version} ` : "New version"
#: src/strings.ts:525
msgid "{0} Highlights 🎉"
msgstr "{0} Highlights 🎉"
@@ -762,8 +789,8 @@ msgid "An error occurred while migrating your data. You can logout of your accou
msgstr "An error occurred while migrating your data. You can logout of your account and try to relogin. However this is not recommended as it may result in some data loss if your data was not synced."
#: src/strings.ts:103
msgid "and"
msgstr "and"
msgid "and "
msgstr "and "
#: src/strings.ts:1770
msgid "and get a chance to win free promo codes."
@@ -1139,8 +1166,8 @@ msgid "By"
msgstr "By"
#: src/strings.ts:101
msgid "By signing up, you agree to our"
msgstr "By signing up, you agree to our"
msgid "By signing up, you agree to our "
msgstr "By signing up, you agree to our "
#: src/strings.ts:2312
msgid "Callout"
@@ -1406,19 +1433,27 @@ msgstr "Clear vault"
#: src/strings.ts:1852
msgid ""
"Clearing attachments cache will perform the following actions:\n"
"\n"
"- Downloaded images & files: **cleared**\n"
"- Pending uploads: **cleared**\n"
"- Uploaded images & files: _unaffected_\n"
"\n"
"All attachments will be downloaded & cached again on access.\n"
"\n"
"---\n"
"\n"
"**Only use this for troubleshooting purposes. If you are having persistent issues, it is recommended that you reach out to us via support@streetwriters.co so we can help you resolve it permanently.**"
msgstr ""
"Clearing attachments cache will perform the following actions:\n"
"\n"
"- Downloaded images & files: **cleared**\n"
"- Pending uploads: **cleared**\n"
"- Uploaded images & files: _unaffected_\n"
"\n"
"All attachments will be downloaded & cached again on access.\n"
"\n"
"---\n"
"\n"
"**Only use this for troubleshooting purposes. If you are having persistent issues, it is recommended that you reach out to us via support@streetwriters.co so we can help you resolve it permanently.**"
#: src/strings.ts:239
@@ -1594,6 +1629,7 @@ msgstr "Copied"
msgid "Copy"
msgstr "Copy"
#. placeholder {0}: format ? " " + format : ""
#: src/strings.ts:2015
msgid "Copy as{0}"
msgstr "Copy as{0}"
@@ -1710,6 +1746,7 @@ msgstr "Create your account"
msgid "Created at"
msgstr "Created at"
#. placeholder {0}: type === "full" ? " full" : ""
#: src/strings.ts:1325
msgid "Creating a{0} backup"
msgstr "Creating a{0} backup"
@@ -2451,6 +2488,7 @@ msgstr "Export all notes"
msgid "Export all notes as pdf, markdown, html or text in a single zip file"
msgstr "Export all notes as pdf, markdown, html or text in a single zip file"
#. placeholder {0}: format ? " " + format : ""
#: src/strings.ts:2014
msgid "Export as{0}"
msgstr "Export as{0}"
@@ -2668,14 +2706,18 @@ msgstr "Force push changes"
msgid ""
"Force push:\n"
"Use this if changes made on this device are not appearing on other devices. This will overwrite the data on the server with the data from this device.\n"
"\n"
"Force pull:\n"
"Use this if changes from other devices are not appearing on this device. This will overwrite the data on this device with the latest data from the server.\n"
"\n"
"**These must only be used for troubleshooting. Using them regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at support@streetwriters.co.**"
msgstr ""
"Force push:\n"
"Use this if changes made on this device are not appearing on other devices. This will overwrite the data on the server with the data from this device.\n"
"\n"
"Force pull:\n"
"Use this if changes from other devices are not appearing on this device. This will overwrite the data on this device with the latest data from the server.\n"
"\n"
"**These must only be used for troubleshooting. Using them regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at support@streetwriters.co.**"
#: src/strings.ts:545
@@ -2945,10 +2987,10 @@ msgstr "If you can't scan the QR code above, enter this text instead (spaces don
#: src/strings.ts:1375
msgid ""
"If you didn't get an email from us or the confirmation link isn't\n"
"working,"
" working,"
msgstr ""
"If you didn't get an email from us or the confirmation link isn't\n"
"working,"
" working,"
#: src/strings.ts:1783
msgid "If you don't have a recovery key, you can recover your data by restoring a Notesnook data backup file (.nnbackup)."
@@ -3284,6 +3326,7 @@ msgstr "Load from file"
msgid "Loading"
msgstr "Loading"
#. placeholder {0}: progress ? `(${progress})` : ""
#: src/strings.ts:146
msgid "Loading {0}, please wait..."
msgstr "Loading {0}, please wait..."
@@ -3492,6 +3535,8 @@ msgstr "Member since {date}"
msgid "Merge cells"
msgstr "Merge cells"
#. placeholder {0}: progress ? `${progress?.collection}` : null
#. placeholder {1}: progress ? `(${progress.current}/${progress.total}) ` : null
#: src/strings.ts:246
msgid "Migrating {0} {1}... please wait"
msgstr "Migrating {0} {1}... please wait"
@@ -3895,13 +3940,17 @@ msgstr "Notesnook Pro"
#: src/strings.ts:2153
msgid ""
"Notesnook uses the following DNS providers:\n"
"\n"
"1. Cloudflare DNS\n"
"2. Quad9\n"
"\n"
"This can sometimes bypass local ISP blockages on Notesnook traffic. Disable this if you want the app to use system's DNS settings."
msgstr ""
"Notesnook uses the following DNS providers:\n"
"\n"
"1. Cloudflare DNS\n"
"2. Quad9\n"
"\n"
"This can sometimes bypass local ISP blockages on Notesnook traffic. Disable this if you want the app to use system's DNS settings."
#: src/strings.ts:973
@@ -4162,6 +4211,7 @@ msgstr "Please confirm your identity by entering a recovery code."
msgid "Please confirm your identity by entering the authentication code from your authenticator app."
msgstr "Please confirm your identity by entering the authentication code from your authenticator app."
#. placeholder {0}: phoneNumber ? phoneNumber : "your registered phone number."
#: src/strings.ts:982
msgid "Please confirm your identity by entering the authentication code sent to {0}."
msgstr "Please confirm your identity by entering the authentication code sent to {0}."
@@ -4405,8 +4455,8 @@ msgid "Privacy policy"
msgstr "Privacy policy"
#: src/strings.ts:104
msgid "Privacy Policy."
msgstr "Privacy Policy."
msgid "Privacy Policy. "
msgstr "Privacy Policy. "
#: src/strings.ts:162
msgid "private analytics and bug reports."
@@ -4794,6 +4844,7 @@ msgstr "Report issue"
msgid "Resend code in ({seconds})"
msgstr "Resend code in ({seconds})"
#. placeholder {0}: seconds ? ` in ${seconds}` : ""
#: src/strings.ts:666
msgid "Resend code{0}"
msgstr "Resend code{0}"
@@ -5372,17 +5423,21 @@ msgstr "Setup a pin to lock the app"
#: src/strings.ts:2162
msgid ""
"Setup an HTTP/HTTPS/SOCKS proxy.\n"
"\n"
"For example:\n"
"http://foobar:80\n"
"socks4://proxy.example.com\n"
"http://username:password@foobar:80\n"
"\n"
"To remove the proxy, simply erase everything in the input."
msgstr ""
"Setup an HTTP/HTTPS/SOCKS proxy.\n"
"\n"
"For example:\n"
"http://foobar:80\n"
"socks4://proxy.example.com\n"
"http://username:password@foobar:80\n"
"\n"
"To remove the proxy, simply erase everything in the input."
#: src/strings.ts:1179
@@ -5808,18 +5863,20 @@ msgstr "Telemetry"
#: src/strings.ts:1476
msgid ""
"Tell us more about the issue you are facing. \n"
"Tell us more about the issue you are facing.\n"
"\n"
"For example:\n"
"- What were you trying to do in the app?\n"
"- What did you expect to happen?\n"
"- Steps to reproduce the issue \n"
"- Steps to reproduce the issue\n"
"- Things you have tried etc."
msgstr ""
"Tell us more about the issue you are facing. \n"
"Tell us more about the issue you are facing.\n"
"\n"
"For example:\n"
"- What were you trying to do in the app?\n"
"- What did you expect to happen?\n"
"- Steps to reproduce the issue \n"
"- Steps to reproduce the issue\n"
"- Things you have tried etc."
#: src/strings.ts:1475
@@ -5831,8 +5888,8 @@ msgid "Terms of service"
msgstr "Terms of service"
#: src/strings.ts:102
msgid "Terms of Service"
msgstr "Terms of Service"
msgid "Terms of Service "
msgstr "Terms of Service "
#: src/strings.ts:1601
msgid "Test connection"
@@ -6158,10 +6215,6 @@ msgstr "Unlock vault"
msgid "Unlock with biometrics"
msgstr "Unlock with biometrics"
#: src/strings.ts:148
msgid "Unlock with password once to enable biometric access."
msgstr "Unlock with password once to enable biometric access."
#: src/strings.ts:1806
msgid "Unlock with security key"
msgstr "Unlock with security key"
@@ -6223,30 +6276,10 @@ msgstr "Upgrade now"
msgid "Upgrade to Notesnook Pro to add colors."
msgstr "Upgrade to Notesnook Pro to add colors."
#: src/strings.ts:1920
msgid "Upgrade to Notesnook Pro to add more notebooks."
msgstr "Upgrade to Notesnook Pro to add more notebooks."
#: src/strings.ts:1919
msgid "Upgrade to Notesnook Pro to create more tags."
msgstr "Upgrade to Notesnook Pro to create more tags."
#: src/strings.ts:1923
msgid "Upgrade to Notesnook Pro to customize the toolbar."
msgstr "Upgrade to Notesnook Pro to customize the toolbar."
#: src/strings.ts:1922
msgid "Upgrade to Notesnook Pro to use custom toolbar presets."
msgstr "Upgrade to Notesnook Pro to use custom toolbar presets."
#: src/strings.ts:1921
msgid "Upgrade to Notesnook Pro to use the notes vault."
msgstr "Upgrade to Notesnook Pro to use the notes vault."
#: src/strings.ts:1924
msgid "Upgrade to Notesnook Pro to use this feature."
msgstr "Upgrade to Notesnook Pro to use this feature."
#: src/strings.ts:738
msgid "Upgrade to Pro"
msgstr "Upgrade to Pro"
@@ -6340,6 +6373,7 @@ msgstr "Use system theme"
#: src/strings.ts:412
msgid ""
"Use the following key to format the title:\n"
"\n"
"$date$: Current date.\n"
"$time$: Current time.\n"
"$timestamp$: Full date and time without any spaces or other symbols.\n"
@@ -6348,6 +6382,7 @@ msgid ""
"$headline$: Use starting line of the note as title."
msgstr ""
"Use the following key to format the title:\n"
"\n"
"$date$: Current date.\n"
"$time$: Current time.\n"
"$timestamp$: Full date and time without any spaces or other symbols.\n"
@@ -6644,16 +6679,20 @@ msgstr "You can swipe left anywhere in the app to start a new note."
#: src/strings.ts:2032
msgid ""
"You can track your bug report at [{url}]({url}).\n"
"\n"
"Please note that we will respond to your bug report on the link above. **We recommended that you save the above link for later reference.**\n"
"\n"
"If your issue is critical (e.g. notes not syncing, crashes etc.), please [join our Discord community](https://discord.com/invite/zQBK97EE22) for one-to-one support."
msgstr ""
"You can track your bug report at [{url}]({url}).\n"
"\n"
"Please note that we will respond to your bug report on the link above. **We recommended that you save the above link for later reference.**\n"
"\n"
"If your issue is critical (e.g. notes not syncing, crashes etc.), please [join our Discord community](https://discord.com/invite/zQBK97EE22) for one-to-one support."
#: src/strings.ts:226
msgid "You can track your issue at"
msgstr "You can track your issue at"
msgid "You can track your issue at "
msgstr "You can track your issue at "
#: src/strings.ts:1014
msgid "You can use all premium features for free for the next 14 days"

View File

@@ -13,12 +13,36 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"
#: src/strings.ts:817
msgid "— not just the"
#: src/strings.ts:2387
msgid " \"Notebook > Notes\""
msgstr ""
#: src/strings.ts:2387
msgid "\"Notebook > Notes\""
#: src/strings.ts:148
msgid " Unlock with password once to enable biometric access."
msgstr ""
#: src/strings.ts:1920
msgid " Upgrade to Notesnook Pro to add more notebooks."
msgstr ""
#: src/strings.ts:1923
msgid " Upgrade to Notesnook Pro to customize the toolbar."
msgstr ""
#: src/strings.ts:1922
msgid " Upgrade to Notesnook Pro to use custom toolbar presets."
msgstr ""
#: src/strings.ts:1921
msgid " Upgrade to Notesnook Pro to use the notes vault."
msgstr ""
#: src/strings.ts:1924
msgid " Upgrade to Notesnook Pro to use this feature."
msgstr ""
#: src/strings.ts:817
msgid "— not just the"
msgstr ""
#: src/strings.ts:43
@@ -29,14 +53,17 @@ msgstr ""
msgid "(empty block)"
msgstr ""
#. placeholder {0}: status ? status : "Exporting notes"
#: src/strings.ts:213
msgid "{0}"
msgstr ""
#. placeholder {0}: name || "File"
#: src/strings.ts:507
msgid "{0} downloaded"
msgstr ""
#. placeholder {0}: version ? `v${version} ` : "New version"
#: src/strings.ts:525
msgid "{0} Highlights 🎉"
msgstr ""
@@ -762,7 +789,7 @@ msgid "An error occurred while migrating your data. You can logout of your accou
msgstr ""
#: src/strings.ts:103
msgid "and"
msgid "and "
msgstr ""
#: src/strings.ts:1770
@@ -1139,7 +1166,7 @@ msgid "By"
msgstr ""
#: src/strings.ts:101
msgid "By signing up, you agree to our"
msgid "By signing up, you agree to our "
msgstr ""
#: src/strings.ts:2312
@@ -1406,11 +1433,15 @@ msgstr ""
#: src/strings.ts:1852
msgid ""
"Clearing attachments cache will perform the following actions:\n"
"\n"
"- Downloaded images & files: **cleared**\n"
"- Pending uploads: **cleared**\n"
"- Uploaded images & files: _unaffected_\n"
"\n"
"All attachments will be downloaded & cached again on access.\n"
"\n"
"---\n"
"\n"
"**Only use this for troubleshooting purposes. If you are having persistent issues, it is recommended that you reach out to us via support@streetwriters.co so we can help you resolve it permanently.**"
msgstr ""
@@ -1587,6 +1618,7 @@ msgstr ""
msgid "Copy"
msgstr ""
#. placeholder {0}: format ? " " + format : ""
#: src/strings.ts:2015
msgid "Copy as{0}"
msgstr ""
@@ -1703,6 +1735,7 @@ msgstr ""
msgid "Created at"
msgstr ""
#. placeholder {0}: type === "full" ? " full" : ""
#: src/strings.ts:1325
msgid "Creating a{0} backup"
msgstr ""
@@ -2444,6 +2477,7 @@ msgstr ""
msgid "Export all notes as pdf, markdown, html or text in a single zip file"
msgstr ""
#. placeholder {0}: format ? " " + format : ""
#: src/strings.ts:2014
msgid "Export as{0}"
msgstr ""
@@ -2661,8 +2695,10 @@ msgstr ""
msgid ""
"Force push:\n"
"Use this if changes made on this device are not appearing on other devices. This will overwrite the data on the server with the data from this device.\n"
"\n"
"Force pull:\n"
"Use this if changes from other devices are not appearing on this device. This will overwrite the data on this device with the latest data from the server.\n"
"\n"
"**These must only be used for troubleshooting. Using them regularly for sync is not recommended and will lead to unexpected data loss and other issues. If you are having persistent issues with sync, please report them to us at support@streetwriters.co.**"
msgstr ""
@@ -2933,7 +2969,7 @@ msgstr ""
#: src/strings.ts:1375
msgid ""
"If you didn't get an email from us or the confirmation link isn't\n"
"working,"
" working,"
msgstr ""
#: src/strings.ts:1783
@@ -3270,6 +3306,7 @@ msgstr ""
msgid "Loading"
msgstr ""
#. placeholder {0}: progress ? `(${progress})` : ""
#: src/strings.ts:146
msgid "Loading {0}, please wait..."
msgstr ""
@@ -3478,6 +3515,8 @@ msgstr ""
msgid "Merge cells"
msgstr ""
#. placeholder {0}: progress ? `${progress?.collection}` : null
#. placeholder {1}: progress ? `(${progress.current}/${progress.total}) ` : null
#: src/strings.ts:246
msgid "Migrating {0} {1}... please wait"
msgstr ""
@@ -3881,8 +3920,10 @@ msgstr ""
#: src/strings.ts:2153
msgid ""
"Notesnook uses the following DNS providers:\n"
"\n"
"1. Cloudflare DNS\n"
"2. Quad9\n"
"\n"
"This can sometimes bypass local ISP blockages on Notesnook traffic. Disable this if you want the app to use system's DNS settings."
msgstr ""
@@ -4144,6 +4185,7 @@ msgstr ""
msgid "Please confirm your identity by entering the authentication code from your authenticator app."
msgstr ""
#. placeholder {0}: phoneNumber ? phoneNumber : "your registered phone number."
#: src/strings.ts:982
msgid "Please confirm your identity by entering the authentication code sent to {0}."
msgstr ""
@@ -4387,7 +4429,7 @@ msgid "Privacy policy"
msgstr ""
#: src/strings.ts:104
msgid "Privacy Policy."
msgid "Privacy Policy. "
msgstr ""
#: src/strings.ts:162
@@ -4776,6 +4818,7 @@ msgstr ""
msgid "Resend code in ({seconds})"
msgstr ""
#. placeholder {0}: seconds ? ` in ${seconds}` : ""
#: src/strings.ts:666
msgid "Resend code{0}"
msgstr ""
@@ -5354,10 +5397,12 @@ msgstr ""
#: src/strings.ts:2162
msgid ""
"Setup an HTTP/HTTPS/SOCKS proxy.\n"
"\n"
"For example:\n"
"http://foobar:80\n"
"socks4://proxy.example.com\n"
"http://username:password@foobar:80\n"
"\n"
"To remove the proxy, simply erase everything in the input."
msgstr ""
@@ -5784,11 +5829,12 @@ msgstr ""
#: src/strings.ts:1476
msgid ""
"Tell us more about the issue you are facing. \n"
"Tell us more about the issue you are facing.\n"
"\n"
"For example:\n"
"- What were you trying to do in the app?\n"
"- What did you expect to happen?\n"
"- Steps to reproduce the issue \n"
"- Steps to reproduce the issue\n"
"- Things you have tried etc."
msgstr ""
@@ -5801,7 +5847,7 @@ msgid "Terms of service"
msgstr ""
#: src/strings.ts:102
msgid "Terms of Service"
msgid "Terms of Service "
msgstr ""
#: src/strings.ts:1601
@@ -6128,10 +6174,6 @@ msgstr ""
msgid "Unlock with biometrics"
msgstr ""
#: src/strings.ts:148
msgid "Unlock with password once to enable biometric access."
msgstr ""
#: src/strings.ts:1806
msgid "Unlock with security key"
msgstr ""
@@ -6193,30 +6235,10 @@ msgstr ""
msgid "Upgrade to Notesnook Pro to add colors."
msgstr ""
#: src/strings.ts:1920
msgid "Upgrade to Notesnook Pro to add more notebooks."
msgstr ""
#: src/strings.ts:1919
msgid "Upgrade to Notesnook Pro to create more tags."
msgstr ""
#: src/strings.ts:1923
msgid "Upgrade to Notesnook Pro to customize the toolbar."
msgstr ""
#: src/strings.ts:1922
msgid "Upgrade to Notesnook Pro to use custom toolbar presets."
msgstr ""
#: src/strings.ts:1921
msgid "Upgrade to Notesnook Pro to use the notes vault."
msgstr ""
#: src/strings.ts:1924
msgid "Upgrade to Notesnook Pro to use this feature."
msgstr ""
#: src/strings.ts:738
msgid "Upgrade to Pro"
msgstr ""
@@ -6310,6 +6332,7 @@ msgstr ""
#: src/strings.ts:412
msgid ""
"Use the following key to format the title:\n"
"\n"
"$date$: Current date.\n"
"$time$: Current time.\n"
"$timestamp$: Full date and time without any spaces or other symbols.\n"
@@ -6607,12 +6630,14 @@ msgstr ""
#: src/strings.ts:2032
msgid ""
"You can track your bug report at [{url}]({url}).\n"
"\n"
"Please note that we will respond to your bug report on the link above. **We recommended that you save the above link for later reference.**\n"
"\n"
"If your issue is critical (e.g. notes not syncing, crashes etc.), please [join our Discord community](https://discord.com/invite/zQBK97EE22) for one-to-one support."
msgstr ""
#: src/strings.ts:226
msgid "You can track your issue at"
msgid "You can track your issue at "
msgstr ""
#: src/strings.ts:1014

File diff suppressed because it is too large Load Diff

View File

@@ -31,16 +31,14 @@
"postinstall": "patch-package"
},
"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/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"
@@ -49,4 +47,4 @@
"@lingui/macro": "*",
"react": ">=18"
}
}
}

View File

@@ -225,7 +225,7 @@ const UNKNOWN_DATA_TYPE_TEMPLATE = (
one: \`${fallbackSingularTemplate}\`,
other: \`${fallbackPluralTemplate}\`
});
}
}
}`;
const DATA_TYPES_TEMPLATE = (
@@ -241,7 +241,7 @@ const MODULE_TEMPLATE = (exportName, strings) =>
`/* eslint-disable header/header */
// THIS FILE IS GENERATED. DO NOT EDIT MANUALLY.
import { plural } from "@lingui/macro";
import { plural } from "@lingui/core/macro";
export const ${exportName} = {
${strings}

View File

@@ -16,7 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { plural, select, t } from "@lingui/macro";
import { plural, select, t } from "@lingui/core/macro";
import { actionConfirmations } from "../generated/action-confirmations";
import { actionErrors } from "../generated/action-errors";
import { actions } from "../generated/actions";
@@ -1473,12 +1473,12 @@ $headline$: Use starting line of the note as title.`,
enterNewEmail: () => t`Enter your new email`,
verifyNewEmail: () => t`Enter verification code sent to your new email`,
issueTitlePlaceholder: () => t`Tell us what happened`,
issuePlaceholder: () => t`Tell us more about the issue you are facing.
issuePlaceholder: () => t`Tell us more about the issue you are facing.
For example:
- What were you trying to do in the app?
- What did you expect to happen?
- Steps to reproduce the issue
- Steps to reproduce the issue
- Things you have tried etc.`,
searchSectionToLinkPlaceholder: () => t`Type # to search for headings`,
searchNoteToLinkPlaceholder: () => t`Search a note to link to`,
@@ -1850,7 +1850,7 @@ For example:
clearCacheConfirm: () => t`Clear attachments cache?`,
clearCacheConfirmDesc:
() => t`Clearing attachments cache will perform the following actions:
- Downloaded images & files: **cleared**
- Pending uploads: **cleared**
- Uploaded images & files: _unaffected_
@@ -2030,9 +2030,9 @@ All attachments will be downloaded & cached again on access.
bugReportMessage: (
url: string
) => t`You can track your bug report at [${url}](${url}).
Please note that we will respond to your bug report on the link above. **We recommended that you save the above link for later reference.**
If your issue is critical (e.g. notes not syncing, crashes etc.), please [join our Discord community](https://discord.com/invite/zQBK97EE22) for one-to-one support.`,
safeEncryptedNotes: () => t`Safe & encrypted notes`,
@@ -2160,7 +2160,7 @@ This can sometimes bypass local ISP blockages on Notesnook traffic. Disable this
proxy: () => t`Proxy`,
proxyDescription: () =>
t`Setup an HTTP/HTTPS/SOCKS proxy.
For example:
http://foobar:80
socks4://proxy.example.com

File diff suppressed because it is too large Load Diff

View File

@@ -53,7 +53,7 @@
"sodium-native": "^4.1.1",
"benny": "^3.7.1",
"ts-node": "^10.9.1",
"vitest": "^0.32.2"
"vitest": "2.1.8"
},
"dependencies": {
"libsodium-wrappers-sumo": "^0.7.15"

View File

@@ -11,14 +11,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",
@@ -456,22 +456,15 @@
"dev": true
},
"node_modules/@types/react": {
"version": "18.2.39",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.39.tgz",
"integrity": "sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==",
"version": "18.3.5",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.5.tgz",
"integrity": "sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
"node_modules/@types/scheduler": {
"version": "0.16.8",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",
"integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==",
"dev": true
},
"node_modules/@types/styled-system": {
"version": "5.1.22",
"resolved": "https://registry.npmjs.org/@types/styled-system/-/styled-system-5.1.22.tgz",
@@ -926,9 +919,9 @@
}
},
"node_modules/react": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
"dev": true,
"dependencies": {
"loose-envify": "^1.1.0"
@@ -1094,9 +1087,9 @@
}
},
"node_modules/use-sync-external-store": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
"integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz",
"integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==",
"dev": true,
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
@@ -1140,19 +1133,19 @@
}
},
"node_modules/zustand": {
"version": "4.4.7",
"resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.7.tgz",
"integrity": "sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==",
"version": "4.5.5",
"resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.5.tgz",
"integrity": "sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==",
"dev": true,
"dependencies": {
"use-sync-external-store": "1.2.0"
"use-sync-external-store": "1.2.2"
},
"engines": {
"node": ">=12.7.0"
},
"peerDependencies": {
"@types/react": ">=16.8",
"immer": ">=9.0",
"immer": ">=9.0.6",
"react": ">=16.8"
},
"peerDependenciesMeta": {

View File

@@ -35,14 +35,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",
@@ -59,4 +59,4 @@
"prepublishOnly": "npm run build",
"watch": "npm run build -- --watch"
}
}
}

View File

@@ -13,16 +13,16 @@
},
"devDependencies": {
"@emotion/react": "11.11.1",
"@mdi/js": "^7.2.96",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@mdi/js": "7.4.47",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"mac-scrollbar": "^0.10.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-modal": "3.16.1"
"mac-scrollbar": "0.13.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-modal": "3.16.3"
},
"peerDependencies": {
"@emotion/react": ">=11",
@@ -42,14 +42,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",
@@ -1282,9 +1282,10 @@
"license": "MIT"
},
"node_modules/@mdi/js": {
"version": "7.3.67",
"dev": true,
"license": "Apache-2.0"
"version": "7.4.47",
"resolved": "https://registry.npmjs.org/@mdi/js/-/js-7.4.47.tgz",
"integrity": "sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==",
"dev": true
},
"node_modules/@notesnook/theme": {
"resolved": "../theme",
@@ -1426,13 +1427,12 @@
}
},
"node_modules/@theme-ui/core": {
"version": "0.16.2",
"resolved": "https://registry.npmjs.org/@theme-ui/core/-/core-0.16.2.tgz",
"integrity": "sha512-bBd/ltbwO9vIUjF1jtlOX6XN0IIOdf1vzBp2JCKsSOqdfn84m+XL8OogIe/zOhQ+aM94Nrq4+32tFJc8sFav4Q==",
"version": "0.16.1",
"resolved": "https://registry.npmjs.org/@theme-ui/core/-/core-0.16.1.tgz",
"integrity": "sha512-9Z0Fn50zdIWre0Apz3ObwfHXZ/zjw7NUhgRrSLYn/gdkJSPZZ8fcaY7Q2rnjfcrMt9DRCg5CPfQGLJqL1NY8xw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@theme-ui/css": "^0.16.2",
"@theme-ui/css": "^0.16.1",
"deepmerge": "^4.2.2"
},
"peerDependencies": {
@@ -1464,19 +1464,20 @@
"license": "MIT"
},
"node_modules/@types/react": {
"version": "18.2.39",
"version": "18.3.5",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.5.tgz",
"integrity": "sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
"node_modules/@types/react-dom": {
"version": "18.2.17",
"version": "18.3.0",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz",
"integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/react": "*"
}
@@ -1489,11 +1490,6 @@
"@types/react": "*"
}
},
"node_modules/@types/scheduler": {
"version": "0.16.8",
"dev": true,
"license": "MIT"
},
"node_modules/@types/styled-system": {
"version": "5.1.22",
"dev": true,
@@ -1724,9 +1720,10 @@
}
},
"node_modules/mac-scrollbar": {
"version": "0.10.7",
"dev": true,
"license": "MIT"
"version": "0.13.6",
"resolved": "https://registry.npmjs.org/mac-scrollbar/-/mac-scrollbar-0.13.6.tgz",
"integrity": "sha512-P0eNiCTExlmWBQ0FXalfXVh42eo9b0obnZIo1khZzyZX99frTsCmZwcbH0RWZZtNYtBZVd5f/7k4iLPou+skzg==",
"dev": true
},
"node_modules/object-assign": {
"version": "4.1.1",
@@ -1788,9 +1785,10 @@
}
},
"node_modules/react": {
"version": "18.2.0",
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0"
},
@@ -1799,15 +1797,16 @@
}
},
"node_modules/react-dom": {
"version": "18.2.0",
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
"dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0",
"scheduler": "^0.23.0"
"scheduler": "^0.23.2"
},
"peerDependencies": {
"react": "^18.2.0"
"react": "^18.3.1"
}
},
"node_modules/react-is": {
@@ -1821,21 +1820,19 @@
"license": "MIT"
},
"node_modules/react-modal": {
"version": "3.16.1",
"version": "3.16.3",
"resolved": "https://registry.npmjs.org/react-modal/-/react-modal-3.16.3.tgz",
"integrity": "sha512-yCYRJB5YkeQDQlTt17WGAgFJ7jr2QYcWa1SHqZ3PluDmnKJ/7+tVU+E6uKyZ0nODaeEj+xCpK4LcSnKXLMC0Nw==",
"dev": true,
"license": "MIT",
"dependencies": {
"exenv": "^1.2.0",
"prop-types": "^15.7.2",
"react-lifecycles-compat": "^3.0.0",
"warning": "^4.0.3"
},
"engines": {
"node": ">=8"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18",
"react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18"
"react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19",
"react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 || ^19"
}
},
"node_modules/regenerator-runtime": {
@@ -1868,9 +1865,10 @@
}
},
"node_modules/scheduler": {
"version": "0.23.0",
"version": "0.23.2",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"loose-envify": "^1.1.0"
}

View File

@@ -23,17 +23,17 @@
"@notesnook/theme": "file:../theme"
},
"devDependencies": {
"mac-scrollbar": "^0.10.3",
"@mdi/js": "^7.2.96",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"mac-scrollbar": "0.13.6",
"@mdi/js": "7.4.47",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@types/react-modal": "3.16.3",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@theme-ui/components": "0.16.1",
"@theme-ui/core": "0.16.1",
"@emotion/react": "11.11.1",
"react-modal": "3.16.1",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-modal": "3.16.3",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"peerDependencies": {
"mac-scrollbar": ">=0.10",
@@ -50,4 +50,4 @@
"prepublishOnly": "npm run build",
"watch": "npm run build -- --watch"
}
}
}

View File

@@ -18,12 +18,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { exec } from "child_process";
import { readFile } from "fs/promises";
import { readFile, writeFile } from "fs/promises";
import path from "path";
import os from "os";
import parser from "yargs-parser";
import { fdir } from "fdir";
import { Listr } from "listr2";
import { createInterface } from "readline/promises";
const args = parser(process.argv, { alias: { scope: ["s"], offline: ["o"] } });
const IS_CI = process.env.CI;
@@ -83,7 +84,12 @@ if (IS_BOOTSTRAP_ALL) {
await bootstrapPackages(dependencies);
} else {
const dependencies = await findDependencies(scopes[args.scope]);
const dependencyMap = {};
const dependencies = await findDependencies(
scopes[args.scope],
dependencyMap
);
// analyzeDependencyMap(dependencyMap);
await bootstrapPackages(dependencies);
}
@@ -148,7 +154,9 @@ async function bootstrapPackage(cwd, outputs) {
const packages = await needsRebuild(cwd);
if (packages.length > 0) {
postInstallCommands.push(`npm rebuild ${packages.join(" ")}`);
postInstallCommands.push(
`npm rebuild --foreground-scripts ${packages.join(" ")}`
);
}
if (await hasScript(cwd, "postinstall"))
@@ -158,6 +166,7 @@ async function bootstrapPackage(cwd, outputs) {
let retries = 3;
while (--retries > 0) {
try {
console.log("Running postinstall command:", cmd, "in", cwd);
await execute(cmd, cwd, outputs);
break;
} catch (e) {
@@ -167,7 +176,7 @@ async function bootstrapPackage(cwd, outputs) {
}
}
async function findDependencies(scope) {
async function findDependencies(scope, dependencyMap = {}) {
try {
const packageJsonPath = path.join(scope, "package.json");
const packageJson = JSON.parse(await readFile(packageJsonPath, "utf-8"));
@@ -179,8 +188,20 @@ async function findDependencies(scope) {
...filterDependencies(scope, packageJson.peerDependencies)
]);
for (const depArray of [
packageJson.dependencies,
packageJson.devDependencies
]) {
for (const dep in depArray) {
dependencyMap[dep] = dependencyMap[dep] || {};
dependencyMap[dep][packageJsonPath] = depArray[dep];
}
}
for (const dependency of dependencies) {
(await findDependencies(dependency)).forEach((v) => dependencies.add(v));
(await findDependencies(dependency, dependencyMap)).forEach((v) =>
dependencies.add(v)
);
}
dependencies.add(path.resolve(scope));
@@ -235,3 +256,47 @@ async function hasScript(cwd, scriptName) {
.catch(Object);
return pkg && pkg.scripts && pkg.scripts[scriptName];
}
async function prompt(question) {
const rl = createInterface({
input: process.stdin,
output: process.stdout
});
const answer = await rl.question(question);
rl.close();
return answer.trim();
}
async function analyzeDependencyMap(map) {
for (const dep in map) {
const versions = Object.values(map[dep]);
if (versions.length <= 1) continue;
const baseVersion = versions[0];
if (baseVersion.startsWith("file")) continue;
if (versions.some((v) => v !== baseVersion)) {
console.error(
`There are multiple different versions of "${dep}" in the monorepo. This can cause issues.`
);
console.table(map[dep]);
const version = await prompt(
"Which version would you like to use everywhere?"
);
for (const packageJsonPath in map[dep]) {
const packageJson = JSON.parse(
await readFile(packageJsonPath, "utf-8")
);
for (const key of ["dependencies", "devDependencies"]) {
if (packageJson[key] && packageJson[key][dep]) {
packageJson[key][dep] = version;
}
}
await writeFile(
packageJsonPath,
JSON.stringify(packageJson, undefined, 2)
);
}
continue;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,16 +12,15 @@
"dependencies": {
"@orama/orama": "^1.0.8",
"@trpc/server": "10.45.2",
"async-mutex": "^0.4.0",
"async-mutex": "0.5.0",
"cors": "^2.8.5",
"util": "^0.12.5",
"zod": "^3.21.4"
"zod": "3.23.8"
},
"devDependencies": {
"@notesnook/theme": "file:../../packages/theme",
"@types/cors": "^2.8.13",
"@vitejs/plugin-react": "^4.0.3",
"react": "18.2.0",
"vite-node": "^0.33.0"
"react": "18.3.1",
"vite-node": "2.1.8"
}
}
}

View File

@@ -18,12 +18,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [
react({
jsxRuntime: "classic"
})
]
});
export default defineConfig({});