TagSpaces is an offline, open source, document manager with tagging support
typescript 5 issues
Stanimirb7274d7ed8ed
diff --git a/app/AppConfig.ts b/app/AppConfig.tsindex 7f6c5bcb4..c40c6a6fa 100644--- a/app/AppConfig.ts+++ b/app/AppConfig.ts@@ -1,4 +1,4 @@-import * as AppConfig from '@tagspaces/tagspaces-common/AppConfig';+import { AppConfig } from '@tagspaces/tagspaces-common';AppConfig.mainToolbarHeight = 101;AppConfig.editableFiles = [diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsxindex e09bab19b..f9f320cec 100644--- a/app/components/EntryContainer.tsx+++ b/app/components/EntryContainer.tsx@@ -177,7 +177,7 @@ function EntryContainer(props: Props) {const theme = useTheme();// const [percent, setPercent] = React.useState<number | undefined>(undefined);const percent = useRef<number | undefined>(undefined);- const timer = useRef(null);+ const timer = useRef<NodeJS.Timeout>(null);const openedFile = openedFiles[0];const openedFilePath = useRef(openedFile.path);diff --git a/app/package.json b/app/package.jsonindex da245583e..571f77679 100644--- a/app/package.json+++ b/app/package.json@@ -16,7 +16,7 @@"@tagspaces/extensions": "1.0.88"},"nodeDependencies": {- "@tagspaces/tagspaces-ws": "2.1.56",+ "@tagspaces/tagspaces-ws": "3.0.17","@tagspaces/extensions": "1.0.88","sharp": "0.31.3"}diff --git a/package-lock.json b/package-lock.jsonindex 6376d5fee..6ded9f874 100644--- a/package-lock.json+++ b/package-lock.json@@ -19,8 +19,9 @@"@mui/lab": "^5.0.0-alpha.135","@mui/material": "^5.13.7","@mui/x-date-pickers": "^5.0.20",- "@tagspaces/tagspaces-md": "3.0.15",- "@tagspaces/tagspaces-platforms": "2.1.56",+ "@tagspaces/tagspaces-common": "3.0.17",+ "@tagspaces/tagspaces-md": "3.0.16",+ "@tagspaces/tagspaces-platforms": "3.0.17","aws-amplify": "^4.3.8","aws-sdk": "^2.1036.0","babel-polyfill": "^6.26.0",@@ -12200,10 +12201,39 @@"yarn": "please-use-npm"}},+ "node_modules/@tagspaces/tagspaces-common": {+ "version": "3.0.17",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-3.0.17.tgz",+ "integrity": "sha512-uP8sbaJnExrU8Et3JuBhPMRbmeW7S2g7AE0rbwJbVgaOc2zmn7bdnXkWOsV3Ot4386rjG9vv5aUDeKL+us2dHQ==",+ "dependencies": {+ "dotenv": "^16.0.2",+ "micromatch": "^4.0.5",+ "uuid": "^8.3.2"+ }+ },+ "node_modules/@tagspaces/tagspaces-common/node_modules/dotenv": {+ "version": "16.3.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",+ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/motdotla/dotenv?sponsor=1"+ }+ },+ "node_modules/@tagspaces/tagspaces-common/node_modules/uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },"node_modules/@tagspaces/tagspaces-md": {- "version": "3.0.15",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-3.0.15.tgz",- "integrity": "sha512-kwfF2e2YmxObyP/vj4vURWj/d3QlXXjZnqZtRR71Z4dLlrd1/ggTcGY14ozOL3aiXbCanyTVwXjbPWm/XpY/pA==",+ "version": "3.0.16",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-3.0.16.tgz",+ "integrity": "sha512-nVl53ik5I5xxTSZqtrr6lrBMIhLU294QCyzqRDs6EPzJpNXxWzVLSoBmTvXeUndbr2HH21g47wRnaTcKbg7VYQ==","dependencies": {"@milkdown/core": "7.2.4","@milkdown/ctx": "7.2.4",@@ -12240,9 +12270,9 @@}},"node_modules/@tagspaces/tagspaces-platforms": {- "version": "2.1.56",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-2.1.56.tgz",- "integrity": "sha512-6WSwblPl+Ajs+khdMvvAdHdAyxz5xAIOG5/MuchfMCTZimDGuS46jQBEAh2hynwB9Tm8xh91iSIKKzxks8F8jw==",+ "version": "3.0.17",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-3.0.17.tgz",+ "integrity": "sha512-XPu+PDDHnn8RkDQVbJGbfBaCU/tQhovgQGGxB2HQZQRd7xYF7FuVMeI6AHBXbVvcrKZRcfFZm1FsXUnSALozFQ==","hasInstallScript": true},"node_modules/@testim/chrome-version": {@@ -52078,10 +52108,32 @@"yargs": "^17.5.1"}},+ "@tagspaces/tagspaces-common": {+ "version": "3.0.17",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-3.0.17.tgz",+ "integrity": "sha512-uP8sbaJnExrU8Et3JuBhPMRbmeW7S2g7AE0rbwJbVgaOc2zmn7bdnXkWOsV3Ot4386rjG9vv5aUDeKL+us2dHQ==",+ "requires": {+ "dotenv": "^16.0.2",+ "micromatch": "^4.0.5",+ "uuid": "^8.3.2"+ },+ "dependencies": {+ "dotenv": {+ "version": "16.3.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",+ "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ=="+ },+ "uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="+ }+ }+ },"@tagspaces/tagspaces-md": {- "version": "3.0.15",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-3.0.15.tgz",- "integrity": "sha512-kwfF2e2YmxObyP/vj4vURWj/d3QlXXjZnqZtRR71Z4dLlrd1/ggTcGY14ozOL3aiXbCanyTVwXjbPWm/XpY/pA==",+ "version": "3.0.16",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-md/-/tagspaces-md-3.0.16.tgz",+ "integrity": "sha512-nVl53ik5I5xxTSZqtrr6lrBMIhLU294QCyzqRDs6EPzJpNXxWzVLSoBmTvXeUndbr2HH21g47wRnaTcKbg7VYQ==","requires": {"@milkdown/core": "7.2.4","@milkdown/ctx": "7.2.4",@@ -52110,9 +52162,9 @@}},"@tagspaces/tagspaces-platforms": {- "version": "2.1.56",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-2.1.56.tgz",- "integrity": "sha512-6WSwblPl+Ajs+khdMvvAdHdAyxz5xAIOG5/MuchfMCTZimDGuS46jQBEAh2hynwB9Tm8xh91iSIKKzxks8F8jw=="+ "version": "3.0.17",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-3.0.17.tgz",+ "integrity": "sha512-XPu+PDDHnn8RkDQVbJGbfBaCU/tQhovgQGGxB2HQZQRd7xYF7FuVMeI6AHBXbVvcrKZRcfFZm1FsXUnSALozFQ=="},"@testim/chrome-version": {"version": "1.1.3",diff --git a/package.json b/package.jsonindex a3a1c5836..f43d3aa73 100644--- a/package.json+++ b/package.json@@ -148,8 +148,9 @@"@mui/lab": "^5.0.0-alpha.135","@mui/material": "^5.13.7","@mui/x-date-pickers": "^5.0.20",- "@tagspaces/tagspaces-md": "3.0.15",- "@tagspaces/tagspaces-platforms": "2.1.56",+ "@tagspaces/tagspaces-common": "3.0.17",+ "@tagspaces/tagspaces-md": "3.0.16",+ "@tagspaces/tagspaces-platforms": "3.0.17","aws-amplify": "^4.3.8","aws-sdk": "^2.1036.0","babel-polyfill": "^6.26.0",diff --git a/tests/unit/paths.test.js b/tests/unit/paths.test.jsindex 220a2e3be..75e9f1de6 100644--- a/tests/unit/paths.test.js+++ b/tests/unit/paths.test.js@@ -1,5 +1,5 @@import { test, expect } from '@playwright/test';-import AppConfig from '@tagspaces/tagspaces-common/AppConfig';+import { AppConfig } from '@tagspaces/tagspaces-common';const {baseName,