TagSpaces is an offline, open source, document manager with tagging support
feat: making the full-text search on plain text files a free feature, adding tests.
Ilian Sapundshievd56baae13915
diff --git a/package-lock.json b/package-lock.jsonindex b99a9b5de..8fdb62622 100644--- a/package-lock.json+++ b/package-lock.json@@ -21,11 +21,11 @@"@mui/material": "9.0.1","@mui/x-data-grid": "9.0.4","@mui/x-date-pickers": "9.0.4",- "@tagspaces/tagspaces-common": "4.7.2",- "@tagspaces/tagspaces-common-aws3": "4.7.2",- "@tagspaces/tagspaces-common-cordova": "4.7.2",- "@tagspaces/tagspaces-indexer": "4.8.1",- "@tagspaces/tagspaces-search": "4.7.2",+ "@tagspaces/tagspaces-common": "4.8.3",+ "@tagspaces/tagspaces-common-aws3": "4.8.3",+ "@tagspaces/tagspaces-common-cordova": "4.8.3",+ "@tagspaces/tagspaces-indexer": "4.8.3",+ "@tagspaces/tagspaces-search": "4.8.3","aws-amplify": "4.3.36","coordinate-parser": "1.0.7","crypto-js": "4.2.0",@@ -18565,9 +18565,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.7.2.tgz",- "integrity": "sha512-SIln06s6+80SktzhozUQ7PlLEHZmmsMYLBusCYDtP6v4Hnu3QGWp3iOTUpaN2I7GLu5awtzja3f/vgltp/joGg==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.8.3.tgz",+ "integrity": "sha512-Vb7kQ7SCeL5daFLSv44Hy3y0DbgHouwVgqTnrfBl/KRLixtDaBhItKNYz8gdtVPTGkOD4I6ochaEUEAZVTnQbA==","license": "MIT","dependencies": {"dompurify": "3.3.1",@@ -18578,15 +18578,15 @@}},"node_modules/@tagspaces/tagspaces-common-aws3": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.7.2.tgz",- "integrity": "sha512-0mwB1DNiMZAZSgIfatL5Sw7EGCcS/GriSgxwSxmVSv71P/rBuYZI4YVD51/zgDy3+T/17Y2v2O/AX8ak1LyGiw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.8.3.tgz",+ "integrity": "sha512-uYW1Xmm1d6p+nwGzJgR91/c7Jy0pC4UQMyClfn66+Y210bNq7hUgsfPZKMWXktyUB4ZtgGvj2XzQlLGnvZksNQ==","license": "MIT","dependencies": {"@aws-sdk/client-s3": "3.996.0","@aws-sdk/lib-storage": "3.996.0","@aws-sdk/s3-request-presigner": "3.996.0",- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","crypto-js": "4.2.0","picomatch": "^3.0.1","uuid": "^11.1.0"@@ -18606,12 +18606,12 @@}},"node_modules/@tagspaces/tagspaces-common-cordova": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.7.2.tgz",- "integrity": "sha512-VsI8kj7yjMJsuPW2vEIdWWh3SwUBIH38SezbrzBvwzlmBA+DOVcIqQQkWqiRiSZpPq+fZ6nH9y5AeUdvgVKKbw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.8.3.tgz",+ "integrity": "sha512-V7eIE4gT7h9/ylWCQymNVfzF+k3q9Wz9qzPyaWpOoh+J1ei6qxY//uAFUC8SGT+udMI0a4j3m4cH8msEULGL9w==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2"+ "@tagspaces/tagspaces-common": "^4.8.3"}},"node_modules/@tagspaces/tagspaces-common/node_modules/dompurify": {@@ -18649,21 +18649,21 @@}},"node_modules/@tagspaces/tagspaces-indexer": {- "version": "4.8.1",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.1.tgz",- "integrity": "sha512-btFUCi41soyNpEtxNpSezC5lIms5eKa7mNL6Y2o9AFbsQRmyQ6+AefMbaH4QK5sUbxkQ/XxUq2VgXQZ5MBJrlw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.3.tgz",+ "integrity": "sha512-OE5gkDuEtAIVGiGZLO5CocR1VRHVVjWdOCV4/htoSpI2chfeO2QHxPKusY/xzxNI4dMDXshjTGb1LYv9GWMIOQ==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2"+ "@tagspaces/tagspaces-common": "^4.8.3"}},"node_modules/@tagspaces/tagspaces-search": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-search/-/tagspaces-search-4.7.2.tgz",- "integrity": "sha512-nSpykAdiBR40HhXLPE7vLD2nE5l9kRqX1cwEZeOTYSxLEAf6G37MTOODB3Iz0r71oWje0hdGD+ZQVRs5OMQPgQ==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-search/-/tagspaces-search-4.8.3.tgz",+ "integrity": "sha512-v+Vd1m4qR4YycwZPXdvFM+qRcT57/Tu3rfWecVv4miCPkWFfLbVHMY2dzn/GfYtsZyDr1V+afMJWR1pnOT6c9g==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","fuse.js": "^7.0.0","mgrs": "^2.1.0","open-location-code-typescript": "^1.5.0"diff --git a/package.json b/package.jsonindex 3cb723b65..8188a0ba3 100644--- a/package.json+++ b/package.json@@ -179,11 +179,11 @@"@mui/material": "9.0.1","@mui/x-data-grid": "9.0.4","@mui/x-date-pickers": "9.0.4",- "@tagspaces/tagspaces-common": "4.7.2",- "@tagspaces/tagspaces-common-aws3": "4.7.2",- "@tagspaces/tagspaces-common-cordova": "4.7.2",- "@tagspaces/tagspaces-indexer": "4.8.1",- "@tagspaces/tagspaces-search": "4.7.2",+ "@tagspaces/tagspaces-common": "4.8.3",+ "@tagspaces/tagspaces-common-aws3": "4.8.3",+ "@tagspaces/tagspaces-common-cordova": "4.8.3",+ "@tagspaces/tagspaces-indexer": "4.8.3",+ "@tagspaces/tagspaces-search": "4.8.3","aws-amplify": "4.3.36","coordinate-parser": "1.0.7","crypto-js": "4.2.0",diff --git a/playwright.config.js b/playwright.config.jsindex 3231bdfba..43a45af8d 100644--- a/playwright.config.js+++ b/playwright.config.js@@ -39,7 +39,9 @@ export default defineConfig({},{name: 'electron',- grep: projectTagGrep('electron'),+ // require 'electron' AND forbid '_lite' — Lite-specific tests assume+ // the Pro module isn't installed and would fail in a Pro build+ grep: projectTagGrep(['electron', '!_lite']),use: {isElectron: true,isWin,diff --git a/release/app/package-lock.json b/release/app/package-lock.jsonindex 3652deeda..8b92ef06d 100644--- a/release/app/package-lock.json+++ b/release/app/package-lock.json@@ -1,18 +1,18 @@{"name": "tagspaces",- "version": "6.12.0",+ "version": "6.12.1","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "tagspaces",- "version": "6.12.0",+ "version": "6.12.1","hasInstallScript": true,"license": "AGPL-3.0","dependencies": {"@tagspaces/extensions": "1.0.245",- "@tagspaces/tagspaces-common-node": "4.7.2",- "@tagspaces/tagspaces-ws": "4.8.2",+ "@tagspaces/tagspaces-common-node": "4.8.3",+ "@tagspaces/tagspaces-ws": "4.8.3","wasm-vips": "0.0.17","ws": "8.19.0"},@@ -296,9 +296,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.7.2.tgz",- "integrity": "sha512-SIln06s6+80SktzhozUQ7PlLEHZmmsMYLBusCYDtP6v4Hnu3QGWp3iOTUpaN2I7GLu5awtzja3f/vgltp/joGg==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.8.3.tgz",+ "integrity": "sha512-Vb7kQ7SCeL5daFLSv44Hy3y0DbgHouwVgqTnrfBl/KRLixtDaBhItKNYz8gdtVPTGkOD4I6ochaEUEAZVTnQbA==","license": "MIT","dependencies": {"dompurify": "3.3.1",@@ -309,24 +309,24 @@}},"node_modules/@tagspaces/tagspaces-common-node": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.7.2.tgz",- "integrity": "sha512-gF3fiJr1H9WBPK2v3FuTZ9c/C4AD9cGO/bcC6TDUg0qNePkpOXZPxM/Ug+efdlBwfJhY9wJh9RRCjTNLst06FA==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.8.3.tgz",+ "integrity": "sha512-Bmy43KlV26Hg566QFXASuJYYg+9U72mmCtbH+VjK261jOtuigwZN+dRJMhT9rFz48L6/0RnN6qt75u5DXciijg==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","adm-zip": "0.5.16","fs-extra": "11.3.3","klaw": "4.1.0"}},"node_modules/@tagspaces/tagspaces-indexer": {- "version": "4.8.1",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.1.tgz",- "integrity": "sha512-btFUCi41soyNpEtxNpSezC5lIms5eKa7mNL6Y2o9AFbsQRmyQ6+AefMbaH4QK5sUbxkQ/XxUq2VgXQZ5MBJrlw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.3.tgz",+ "integrity": "sha512-OE5gkDuEtAIVGiGZLO5CocR1VRHVVjWdOCV4/htoSpI2chfeO2QHxPKusY/xzxNI4dMDXshjTGb1LYv9GWMIOQ==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2"+ "@tagspaces/tagspaces-common": "^4.8.3"}},"node_modules/@tagspaces/tagspaces-pdf-extraction": {@@ -339,36 +339,36 @@}},"node_modules/@tagspaces/tagspaces-thumbgen-image": {- "version": "4.8.0",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.8.0.tgz",- "integrity": "sha512-gimdfYjnvIz4unKHbNXeiAuRn50sg7KXXb93wzGj4dxTiPjPwV7RNj00/ltIL6WYgidtor1DIAop9jBGYBz5xQ==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.8.3.tgz",+ "integrity": "sha512-VlBBrxVyic/rbDiGTmGFDY4eLxIMvFvOPHmA3bdPi7P19SDcOzvcl4pssEL7WZ6pvK1wj+luc16RiIXQRFJd6w==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","wasm-vips": "0.0.17"}},"node_modules/@tagspaces/tagspaces-workers": {- "version": "4.8.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.8.2.tgz",- "integrity": "sha512-0PCMavOMa2wQys7OD/EUGwyXofp2TT4TBaUCOQ8xx+Vsl9tuU+ELSWCxTuU5z81B4ZVtUa3eGjlQd9N3aNxfJw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.8.3.tgz",+ "integrity": "sha512-Js2pMnrpA5bVMBaZWH4BBkk5LV9CYhDsOwDwNc1Cn/OJioDr8HWsUv6nYR871REV5aoMd8/Oc4DQ3v3rk78YPw==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-common": "^4.7.2",- "@tagspaces/tagspaces-common-node": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3",+ "@tagspaces/tagspaces-common-node": "^4.8.3","@tagspaces/tagspaces-pdf-extraction": "^4.8.2",- "@tagspaces/tagspaces-thumbgen-image": "^4.8.0"+ "@tagspaces/tagspaces-thumbgen-image": "^4.8.3"}},"node_modules/@tagspaces/tagspaces-ws": {- "version": "4.8.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.8.2.tgz",- "integrity": "sha512-a6E5CRnqu380MZhZb2w/vMsol5NFm+NZh8OJJNhAYdG1rFcpQ6SWhvEMUTwITzdtVC30UvkVYXuxhj7URH7q+w==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.8.3.tgz",+ "integrity": "sha512-KvWttfQZBVQ9BsTSfpir92WZW7F5XA1J3ZtwD2F3Ow2DdpbMD+BlaojVr0Tf5vRRIRgHk9w2Zi+jD4jiN8ydAA==","license": "MIT","dependencies": {- "@tagspaces/tagspaces-indexer": "^4.8.1",+ "@tagspaces/tagspaces-indexer": "^4.8.3","@tagspaces/tagspaces-pdf-extraction": "^4.8.2",- "@tagspaces/tagspaces-workers": "^4.8.2",+ "@tagspaces/tagspaces-workers": "^4.8.3","find-free-ports": "3.1.1","jsonwebtoken": "9.0.3","wasm-vips": "0.0.17",@@ -465,7 +465,8 @@"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"},"node_modules/isarray": {"version": "1.0.0",@@ -519,36 +520,6 @@"setimmediate": "^1.0.5"}},- "node_modules/jszip/node_modules/readable-stream": {- "version": "2.3.8",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",- "license": "MIT",- "dependencies": {- "core-util-is": "~1.0.0",- "inherits": "~2.0.3",- "isarray": "~1.0.0",- "process-nextick-args": "~2.0.0",- "safe-buffer": "~5.1.1",- "string_decoder": "~1.1.1",- "util-deprecate": "~1.0.1"- }- },- "node_modules/jszip/node_modules/safe-buffer": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",- "license": "MIT"- },- "node_modules/jszip/node_modules/string_decoder": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",- "license": "MIT",- "dependencies": {- "safe-buffer": "~5.1.0"- }- },"node_modules/jwa": {"version": "2.0.1","resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",@@ -691,6 +662,27 @@"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==","license": "MIT"},+ "node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "license": "MIT",+ "dependencies": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ }+ },+ "node_modules/readable-stream/node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "license": "MIT"+ },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -727,6 +719,21 @@"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==","license": "MIT"},+ "node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.1.0"+ }+ },+ "node_modules/string_decoder/node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "license": "MIT"+ },"node_modules/universalify": {"version": "2.0.1","resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",@@ -739,12 +746,14 @@"node_modules/util-deprecate": {"version": "1.0.2","resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"},"node_modules/uuid": {"version": "9.0.1","resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz","integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).","funding": ["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"@@ -877,9 +886,9 @@"integrity": "sha512-WLrdekmc9PsCc813SWI43mcS0luaVTz04cvtB0RoDZpVgQ9PDlP5sMZC62l+ZG/yIDOwGzNO60/RAERRp4JB0w=="},"@tagspaces/tagspaces-common": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.7.2.tgz",- "integrity": "sha512-SIln06s6+80SktzhozUQ7PlLEHZmmsMYLBusCYDtP6v4Hnu3QGWp3iOTUpaN2I7GLu5awtzja3f/vgltp/joGg==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.8.3.tgz",+ "integrity": "sha512-Vb7kQ7SCeL5daFLSv44Hy3y0DbgHouwVgqTnrfBl/KRLixtDaBhItKNYz8gdtVPTGkOD4I6ochaEUEAZVTnQbA==","requires": {"dompurify": "3.3.1","jszip": "3.10.1",@@ -889,22 +898,22 @@}},"@tagspaces/tagspaces-common-node": {- "version": "4.7.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.7.2.tgz",- "integrity": "sha512-gF3fiJr1H9WBPK2v3FuTZ9c/C4AD9cGO/bcC6TDUg0qNePkpOXZPxM/Ug+efdlBwfJhY9wJh9RRCjTNLst06FA==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.8.3.tgz",+ "integrity": "sha512-Bmy43KlV26Hg566QFXASuJYYg+9U72mmCtbH+VjK261jOtuigwZN+dRJMhT9rFz48L6/0RnN6qt75u5DXciijg==","requires": {- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","adm-zip": "0.5.16","fs-extra": "11.3.3","klaw": "4.1.0"}},"@tagspaces/tagspaces-indexer": {- "version": "4.8.1",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.1.tgz",- "integrity": "sha512-btFUCi41soyNpEtxNpSezC5lIms5eKa7mNL6Y2o9AFbsQRmyQ6+AefMbaH4QK5sUbxkQ/XxUq2VgXQZ5MBJrlw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.8.3.tgz",+ "integrity": "sha512-OE5gkDuEtAIVGiGZLO5CocR1VRHVVjWdOCV4/htoSpI2chfeO2QHxPKusY/xzxNI4dMDXshjTGb1LYv9GWMIOQ==","requires": {- "@tagspaces/tagspaces-common": "^4.7.2"+ "@tagspaces/tagspaces-common": "^4.8.3"}},"@tagspaces/tagspaces-pdf-extraction": {@@ -916,33 +925,33 @@}},"@tagspaces/tagspaces-thumbgen-image": {- "version": "4.8.0",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.8.0.tgz",- "integrity": "sha512-gimdfYjnvIz4unKHbNXeiAuRn50sg7KXXb93wzGj4dxTiPjPwV7RNj00/ltIL6WYgidtor1DIAop9jBGYBz5xQ==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.8.3.tgz",+ "integrity": "sha512-VlBBrxVyic/rbDiGTmGFDY4eLxIMvFvOPHmA3bdPi7P19SDcOzvcl4pssEL7WZ6pvK1wj+luc16RiIXQRFJd6w==","requires": {- "@tagspaces/tagspaces-common": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3","wasm-vips": "0.0.17"}},"@tagspaces/tagspaces-workers": {- "version": "4.8.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.8.2.tgz",- "integrity": "sha512-0PCMavOMa2wQys7OD/EUGwyXofp2TT4TBaUCOQ8xx+Vsl9tuU+ELSWCxTuU5z81B4ZVtUa3eGjlQd9N3aNxfJw==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.8.3.tgz",+ "integrity": "sha512-Js2pMnrpA5bVMBaZWH4BBkk5LV9CYhDsOwDwNc1Cn/OJioDr8HWsUv6nYR871REV5aoMd8/Oc4DQ3v3rk78YPw==","requires": {- "@tagspaces/tagspaces-common": "^4.7.2",- "@tagspaces/tagspaces-common-node": "^4.7.2",+ "@tagspaces/tagspaces-common": "^4.8.3",+ "@tagspaces/tagspaces-common-node": "^4.8.3","@tagspaces/tagspaces-pdf-extraction": "^4.8.2",- "@tagspaces/tagspaces-thumbgen-image": "^4.8.0"+ "@tagspaces/tagspaces-thumbgen-image": "^4.8.3"}},"@tagspaces/tagspaces-ws": {- "version": "4.8.2",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.8.2.tgz",- "integrity": "sha512-a6E5CRnqu380MZhZb2w/vMsol5NFm+NZh8OJJNhAYdG1rFcpQ6SWhvEMUTwITzdtVC30UvkVYXuxhj7URH7q+w==",+ "version": "4.8.3",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.8.3.tgz",+ "integrity": "sha512-KvWttfQZBVQ9BsTSfpir92WZW7F5XA1J3ZtwD2F3Ow2DdpbMD+BlaojVr0Tf5vRRIRgHk9w2Zi+jD4jiN8ydAA==","requires": {- "@tagspaces/tagspaces-indexer": "^4.8.1",+ "@tagspaces/tagspaces-indexer": "^4.8.3","@tagspaces/tagspaces-pdf-extraction": "^4.8.2",- "@tagspaces/tagspaces-workers": "^4.8.2",+ "@tagspaces/tagspaces-workers": "^4.8.3","find-free-ports": "3.1.1","jsonwebtoken": "9.0.3","wasm-vips": "0.0.17",@@ -1062,35 +1071,6 @@"pako": "~1.0.2","readable-stream": "~2.3.6","setimmediate": "^1.0.5"- },- "dependencies": {- "readable-stream": {- "version": "2.3.8",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",- "requires": {- "core-util-is": "~1.0.0",- "inherits": "~2.0.3",- "isarray": "~1.0.0",- "process-nextick-args": "~2.0.0",- "safe-buffer": "~5.1.1",- "string_decoder": "~1.1.1",- "util-deprecate": "~1.0.1"- }- },- "safe-buffer": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="- },- "string_decoder": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",- "requires": {- "safe-buffer": "~5.1.0"- }- }}},"jwa": {@@ -1200,6 +1180,27 @@"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz","integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="},+ "readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "requires": {+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"+ },+ "dependencies": {+ "safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ }+ }+ },"safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -1215,6 +1216,21 @@"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz","integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="},+ "string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "requires": {+ "safe-buffer": "~5.1.0"+ },+ "dependencies": {+ "safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="+ }+ }+ },"universalify": {"version": "2.0.1","resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",diff --git a/release/app/package.json b/release/app/package.jsonindex 1571db3f5..1237b05c3 100644--- a/release/app/package.json+++ b/release/app/package.json@@ -18,8 +18,8 @@},"dependencies": {"@tagspaces/extensions": "1.0.245",- "@tagspaces/tagspaces-common-node": "4.7.2",- "@tagspaces/tagspaces-ws": "4.8.2",+ "@tagspaces/tagspaces-common-node": "4.8.3",+ "@tagspaces/tagspaces-ws": "4.8.3","wasm-vips": "0.0.17","ws": "8.19.0"},diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 293b8ae57..cd1f9f491 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -738,7 +738,6 @@ function CreateEditLocationDialog(props: Props) {sx={{ justifyContent: 'space-between', marginLeft: 0 }}control={<TsSwitch- disabled={!Pro}data-tid="changeFullTextIndex"name="fullTextIndex"checked={fullTextIndex}@@ -768,14 +767,25 @@ function CreateEditLocationDialog(props: Props) {</div><div>Tabular: .csv</div><div>Contacts: .vcf</div>- <div>Documents: .pdf, .docx, .odt</div>- <div>Spreadsheets: .xlsx, .ods</div>- <div>Presentations: .pptx, .odp</div>- <div>Ebooks: .epub</div>+ {Pro ? (+ <>+ <div style={{ marginTop: 4 }}>+ <b>{t('core:fullTextIndexProOnly')}</b>+ </div>+ <div>Documents: .pdf, .docx, .odt</div>+ <div>Spreadsheets: .xlsx, .ods</div>+ <div>Presentations: .pptx, .odp</div>+ <div>Ebooks: .epub</div>+ </>+ ) : (+ <div style={{ marginTop: 4, fontStyle: 'italic' }}>+ {t('core:fullTextIndexRequiresPro')}+ </div>+ )}</div>}/>- {Pro ? <BetaLabel /> : <ProLabel />}+ <BetaLabel /></>}/>@@ -785,7 +795,6 @@ function CreateEditLocationDialog(props: Props) {sx={{ justifyContent: 'space-between', marginLeft: 0 }}control={<TsSwitch- disabled={!Pro}data-tid="extractLinksTID"name="extractLinks"checked={extractLinks}@@ -797,7 +806,7 @@ function CreateEditLocationDialog(props: Props) {label={<>{t('core:extractLinks')}- {Pro ? <BetaLabel /> : <ProLabel />}+ <BetaLabel /></>}/>diff --git a/src/renderer/hooks/LocationIndexContextProvider.tsx b/src/renderer/hooks/LocationIndexContextProvider.tsxindex a5a2599b2..8fce6228c 100644--- a/src/renderer/hooks/LocationIndexContextProvider.tsx+++ b/src/renderer/hooks/LocationIndexContextProvider.tsx@@ -402,6 +402,7 @@ export const LocationIndexContextProvider = ({ignorePatterns,loc.uuid,forceFullReindex,+ !!Pro,).then((result) => {if (result && result.success) {@@ -490,7 +491,7 @@ export const LocationIndexContextProvider = ({onProgress,};if (extractText) {- indexParam.extractPDFcontent = extractPDFcontent;+ indexParam.extendedExtraction = Pro ? extractPDFcontent : false;}// Try incremental indexing if an existing index is availablediff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex 8a97fe9fc..b72a5e014 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -382,6 +382,8 @@"disableIndexing": "Disable Indexing","disableThumbnailGeneration": "Disable Thumbnail Generation","createFullTextIndex": "Enable full text search",+ "fullTextIndexProOnly": "Pro only:",+ "fullTextIndexRequiresPro": "PDF and Office formats require Pro.","extractLinks": "Extract links","watchForChangesInLocation": "Watch for external changes in this location","collectedTags": "Collected Tags",diff --git a/src/renderer/utils/CommonLocation.ts b/src/renderer/utils/CommonLocation.tsindex c520962b1..d847c6a88 100644--- a/src/renderer/utils/CommonLocation.ts+++ b/src/renderer/utils/CommonLocation.ts@@ -15,7 +15,6 @@ import {} from '@tagspaces/tagspaces-common/paths';import { getUuid, loadJSONString } from '@tagspaces/tagspaces-common/utils-io';//import * as objectStoreAPI from '@tagspaces/tagspaces-common-aws';-import { Pro } from '-/pro';import { getFulfilledResults, getMimeType } from '-/services/utils-io';import { TS } from '-/tagspaces.namespace';import { offlineRejectionIfRemote } from '-/utils/OfflineError';@@ -114,8 +113,8 @@ export class CommonLocation implements TS.Location {this.disableIndexing = location.disableIndexing;this.reloadOnFocus = location.reloadOnFocus;this.disableThumbnailGeneration = location.disableThumbnailGeneration;- this.fullTextIndex = Pro && location.fullTextIndex;- this.extractLinks = Pro && location.extractLinks;+ this.fullTextIndex = location.fullTextIndex;+ this.extractLinks = location.extractLinks;this.maxIndexAge = location.maxIndexAge;this.maxLoops = location.maxLoops;this.persistTagsInSidecarFile = location.persistTagsInSidecarFile;@@ -1113,6 +1112,7 @@ export class CommonLocation implements TS.Location {ignorePatterns: Array<string>,requestId: string,forceFullReindex: boolean = false,+ extendedExtraction: boolean = false,): Promise<any> => {/*if (this.isReadOnly) {return Promise.reject(new Error('read only Location'));@@ -1128,6 +1128,7 @@ export class CommonLocation implements TS.Location {extractLinks,ignorePatterns,forceFullReindex,+ extendedExtraction,});return window.electronIO.ipcRenderer.invoke('postRequest',diff --git a/tests/e2e/fulltext-lite-pro.pw.e2e.js b/tests/e2e/fulltext-lite-pro.pw.e2e.jsnew file mode 100644index 000000000..1668f40c7--- /dev/null+++ b/tests/e2e/fulltext-lite-pro.pw.e2e.js@@ -0,0 +1,114 @@+/**+ * Verifies that fulltext indexing in Lite/Pro behaves correctly:+ * - Lite: plain-text content (.md, .txt) is indexed and searchable.+ * PDF/Office content is NOT indexed.+ * - Pro: same plain-text behavior, AND PDF content is indexed too.+ *+ * The Lite test (TST0701) is tagged `[electron,_lite]` and runs only in the+ * `electron-light` Playwright project — see playwright.config.js. The Pro+ * test (TST0702) is tagged `[electron,_pro]` and runs only in the `electron`+ * project, where the Pro module is installed and bundled.+ *+ * Search vocabulary (taken from the existing testdata files):+ * - "Lorem" — present in sample.txt+ * - "yahoo" — present in sample.md (link to yahoo.com)+ * - "Klasirane" — present ONLY in sample.pdf (extracted via pdfjs)+ */+import { expect, test } from './fixtures';+import {+ clickOn,+ expectElementExist,+ getGridFileSelector,+ isDisplayed,+} from './general.helpers';+import { startTestingApp, stopApp, testDataRefresh } from './hook';+import {+ closeLocation,+ createPwLocation,+ createS3Location,+ defaultLocationName,+} from './location.helpers';+import { searchEngine } from './search.helpers';+import { clearDataStorage } from './welcome.helpers';++const pdfSearchTerm = 'Klasirane';+const mdSearchTerm = 'yahoo';+const txtSearchTerm = 'Lorem';++test.beforeAll(async ({ isWeb, isS3, webServerPort }, testInfo) => {+ await startTestingApp(+ { isWeb, isS3, webServerPort, testInfo },+ 'extconfig-two-locations.js',+ );+});++test.afterAll(async () => {+ await stopApp();+});++test.afterEach(async ({ isS3, testDataDir }) => {+ await testDataRefresh(isS3, testDataDir);+ await clearDataStorage();+});++test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {+ await createS3Location('', defaultLocationName, true, true);+ } else {+ await createPwLocation(testDataDir, defaultLocationName, true, true);+ }+ await clickOn('[data-tid=location_' + defaultLocationName + ']');+ await expectElementExist(getGridFileSelector('empty_folder'), true, 15000);+ if (await isDisplayed('#clearSearchID', true, 1000)) {+ await clickOn('#clearSearchID');+ await expectElementExist('#textQuery', false, 5000);+ }+});++test.describe('TST07 - Fulltext indexing scope (Lite vs Pro):', () => {+ test('TST0701 - Lite: plain-text indexed, PDF skipped [electron,_lite]', async () => {+ // Force a fresh fulltext index so we know `extractTextContent` ran.+ await searchEngine(txtSearchTerm, { reindexing: true });+ await expectElementExist(+ getGridFileSelector('sample.txt'),+ true,+ 15000,+ );+ await clickOn('#clearSearchID');+ await expectElementExist('#textQuery', false, 5000);++ await searchEngine(mdSearchTerm);+ await expectElementExist(getGridFileSelector('sample.md'), true, 10000);+ await clickOn('#clearSearchID');+ await expectElementExist('#textQuery', false, 5000);++ // PDF must NOT be indexed in Lite — the search returns no hit on+ // a phrase that lives only inside the PDF stream.+ await searchEngine(pdfSearchTerm);+ await expectElementExist(+ getGridFileSelector('sample.pdf'),+ false,+ 5000,+ );+ });++ test('TST0702 - Pro: plain-text and PDF both indexed [electron,_pro]', async () => {+ await searchEngine(txtSearchTerm, { reindexing: true });+ await expectElementExist(+ getGridFileSelector('sample.txt'),+ true,+ 15000,+ );+ await clickOn('#clearSearchID');+ await expectElementExist('#textQuery', false, 5000);++ await searchEngine(mdSearchTerm);+ await expectElementExist(getGridFileSelector('sample.md'), true, 10000);+ await clickOn('#clearSearchID');+ await expectElementExist('#textQuery', false, 5000);++ // In Pro, the PDF text is extracted via pdfjs and "Klasirane" should hit.+ await searchEngine(pdfSearchTerm);+ await expectElementExist(getGridFileSelector('sample.pdf'), true, 15000);+ });+});