From 997c58878fafa154a7c6d79d5d18e6e812d03aa9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:30:39 +0000 Subject: [PATCH 1/2] Bump the production-dependencies group with 11 updates Bumps the production-dependencies group with 11 updates: | Package | From | To | | --- | --- | --- | | [@tauri-apps/api](https://github.com/tauri-apps/tauri) | `2.0.0-rc.3` | `2.0.0-rc.4` | | [@tauri-apps/plugin-clipboard-manager](https://github.com/tauri-apps/plugins-workspace) | `2.0.0-rc.0` | `2.0.0-rc.1` | | [@tauri-apps/plugin-dialog](https://github.com/tauri-apps/plugins-workspace) | `2.0.0-rc.0` | `2.0.0-rc.1` | | [@tauri-apps/plugin-process](https://github.com/tauri-apps/plugins-workspace) | `2.0.0-rc.0` | `2.0.0-rc.1` | | [@tauri-apps/plugin-shell](https://github.com/tauri-apps/plugins-workspace) | `2.0.0-rc.0` | `2.0.0-rc.1` | | [@tauri-apps/plugin-updater](https://github.com/tauri-apps/plugins-workspace) | `2.0.0-rc.0` | `2.0.0-rc.1` | | [antd](https://github.com/ant-design/ant-design) | `5.20.2` | `5.20.3` | | [html-react-parser](https://github.com/remarkablemark/html-react-parser) | `5.1.12` | `5.1.15` | | [marked](https://github.com/markedjs/marked) | `14.0.0` | `14.1.0` | | [styled-components](https://github.com/styled-components/styled-components) | `6.1.12` | `6.1.13` | | [tauri-plugin-window-state](https://github.com/tauri-apps/tauri-plugin-window-state) | ``21eac89`` | ``60a0347`` | Updates `@tauri-apps/api` from 2.0.0-rc.3 to 2.0.0-rc.4 - [Release notes](https://github.com/tauri-apps/tauri/releases) - [Commits](https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.0.0-rc.3...@tauri-apps/api-v2.0.0-rc.4) Updates `@tauri-apps/plugin-clipboard-manager` from 2.0.0-rc.0 to 2.0.0-rc.1 - [Release notes](https://github.com/tauri-apps/plugins-workspace/releases) - [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.0.0-rc.0...os-v2.0.0-rc.1) Updates `@tauri-apps/plugin-dialog` from 2.0.0-rc.0 to 2.0.0-rc.1 - [Release notes](https://github.com/tauri-apps/plugins-workspace/releases) - [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.0.0-rc.0...os-v2.0.0-rc.1) Updates `@tauri-apps/plugin-process` from 2.0.0-rc.0 to 2.0.0-rc.1 - [Release notes](https://github.com/tauri-apps/plugins-workspace/releases) - [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.0.0-rc.0...os-v2.0.0-rc.1) Updates `@tauri-apps/plugin-shell` from 2.0.0-rc.0 to 2.0.0-rc.1 - [Release notes](https://github.com/tauri-apps/plugins-workspace/releases) - [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.0.0-rc.0...os-v2.0.0-rc.1) Updates `@tauri-apps/plugin-updater` from 2.0.0-rc.0 to 2.0.0-rc.1 - [Release notes](https://github.com/tauri-apps/plugins-workspace/releases) - [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.0.0-rc.0...os-v2.0.0-rc.1) Updates `antd` from 5.20.2 to 5.20.3 - [Release notes](https://github.com/ant-design/ant-design/releases) - [Changelog](https://github.com/ant-design/ant-design/blob/master/CHANGELOG.en-US.md) - [Commits](https://github.com/ant-design/ant-design/compare/5.20.2...5.20.3) Updates `html-react-parser` from 5.1.12 to 5.1.15 - [Release notes](https://github.com/remarkablemark/html-react-parser/releases) - [Changelog](https://github.com/remarkablemark/html-react-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/remarkablemark/html-react-parser/compare/v5.1.12...v5.1.15) Updates `marked` from 14.0.0 to 14.1.0 - [Release notes](https://github.com/markedjs/marked/releases) - [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json) - [Commits](https://github.com/markedjs/marked/compare/v14.0.0...v14.1.0) Updates `styled-components` from 6.1.12 to 6.1.13 - [Release notes](https://github.com/styled-components/styled-components/releases) - [Commits](https://github.com/styled-components/styled-components/compare/v6.1.12...v6.1.13) Updates `tauri-plugin-window-state` from `21eac89` to `60a0347` - [Release notes](https://github.com/tauri-apps/tauri-plugin-window-state/releases) - [Commits](https://github.com/tauri-apps/tauri-plugin-window-state/compare/21eac8998ad4ac6549269621fc305d7df3567137...60a03473011500e8d66dbef5f1ddba4da70dee0c) --- updated-dependencies: - dependency-name: "@tauri-apps/api" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@tauri-apps/plugin-clipboard-manager" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@tauri-apps/plugin-dialog" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@tauri-apps/plugin-process" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@tauri-apps/plugin-shell" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: "@tauri-apps/plugin-updater" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: antd dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: html-react-parser dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: marked dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: styled-components dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: tauri-plugin-window-state dependency-type: direct:production dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] --- package-lock.json | 119 ++++++++++++++++++++++------------------------ package.json | 20 ++++---- 2 files changed, 67 insertions(+), 72 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3e1ac1ea..b885f67e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,29 +12,29 @@ "@fortawesome/free-regular-svg-icons": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", - "@tauri-apps/api": "^2.0.0-rc.0", - "@tauri-apps/plugin-clipboard-manager": "^2.0.0-rc.0", - "@tauri-apps/plugin-dialog": "^2.0.0-rc.0", - "@tauri-apps/plugin-process": "^2.0.0-rc.0", - "@tauri-apps/plugin-shell": "^2.0.0-rc.0", - "@tauri-apps/plugin-updater": "^2.0.0-rc.0", + "@tauri-apps/api": "^2.0.0-rc.4", + "@tauri-apps/plugin-clipboard-manager": "^2.0.0-rc.1", + "@tauri-apps/plugin-dialog": "^2.0.0-rc.1", + "@tauri-apps/plugin-process": "^2.0.0-rc.1", + "@tauri-apps/plugin-shell": "^2.0.0-rc.1", + "@tauri-apps/plugin-updater": "^2.0.0-rc.1", "@vitejs/plugin-react": "^4.3.1", - "antd": "^5.20.2", + "antd": "^5.20.3", "classnames": "^2.5.1", "dompurify": "^3.1.6", "gauth-decode": "^0.1.1", - "html-react-parser": "^5.1.12", + "html-react-parser": "^5.1.15", "html5-qrcode": "^2.3.8", "i18next": "^23.14.0", "jodit-react": "^4.1.2", - "marked": "^14.0.0", + "marked": "^14.1.0", "qrcode": "^1.5.4", "react": "^18.3.1", "react-countdown-circle-timer": "^3.2.1", "react-dom": "^18.3.1", "react-i18next": "^15.0.1", "react-secure-storage": "^1.3.2", - "styled-components": "^6.1.12", + "styled-components": "^6.1.13", "tauri-plugin-window-state": "github:tauri-apps/tauri-plugin-window-state#v2" }, "devDependencies": { @@ -1789,10 +1789,9 @@ } }, "node_modules/@tauri-apps/api": { - "version": "2.0.0-rc.3", - "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.0.0-rc.3.tgz", - "integrity": "sha512-k1erUfnoOFJwL5VNFZz0BQZ2agNstG7CNOjwpdWMl1vOaVuSn4DhJtXB0Deh9lZaaDlfrykKOyZs9c3XXpMi5Q==", - "license": "Apache-2.0 OR MIT", + "version": "2.0.0-rc.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.0.0-rc.4.tgz", + "integrity": "sha512-UNiIhhKG08j4ooss2oEEVexffmWkgkYlC2M3GcX3VPtNsqFgVNL8Mcw/4Y7rO9M9S+ffAMnLOF5ypzyuyb8tyg==", "funding": { "type": "opencollective", "url": "https://opencollective.com/tauri" @@ -1998,48 +1997,43 @@ } }, "node_modules/@tauri-apps/plugin-clipboard-manager": { - "version": "2.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-clipboard-manager/-/plugin-clipboard-manager-2.0.0-rc.0.tgz", - "integrity": "sha512-2fS3wbRQEtorkk3Np2msJUeKCXRqLQ9sSo2FzlFdUPYNzThsu43uWCF55McGLAfltNOvXQIcQLUBf05jbBL/5w==", - "license": "MIT or APACHE-2.0", + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-clipboard-manager/-/plugin-clipboard-manager-2.0.0-rc.1.tgz", + "integrity": "sha512-hFgUABMmQuVGKwHb8PR9fuqfk0WRkedbWUt/ZV5sL4Q6kLrsp3JYJvtzVPeMYdeBvMqHl8WXNxAc/zwSld2h9w==", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.0" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/@tauri-apps/plugin-dialog": { - "version": "2.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.0.0-rc.0.tgz", - "integrity": "sha512-DPOXYe8SQ6Radk/67EOdaomlxL7oF99JO/ZUaPp1IBEs3Wro7lhlz63CfdKIBfKIZTLJLzP1R7/EiPL/GTA3Bg==", - "license": "MIT or APACHE-2.0", + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.0.0-rc.1.tgz", + "integrity": "sha512-H28gh6BfZtjflHQ+HrmWwunDriBI3AQLAKnMs50GA6zeNUULqbQr7VXbAAKeJL/0CmWcecID4PKXVoSlaWRhEg==", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.0" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/@tauri-apps/plugin-process": { - "version": "2.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-process/-/plugin-process-2.0.0-rc.0.tgz", - "integrity": "sha512-Z12D/kmQzG1vCVf+jLXPhPDUA0pEjFrsg4p0uwO2sotVLM9287IuTM+aIz9cuAYOxFLKcsnDG7amSCL9IfA1gw==", - "license": "MIT or APACHE-2.0", + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-process/-/plugin-process-2.0.0-rc.1.tgz", + "integrity": "sha512-Bl22xdoiu+AqEP6rzjb7DUJwdLDnejuRFukpkdrqF1/VEWJK5PuE903l+8mIOsd17zZ1Ua8y8WaBWnOXx4QHmw==", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.0" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/@tauri-apps/plugin-shell": { - "version": "2.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-shell/-/plugin-shell-2.0.0-rc.0.tgz", - "integrity": "sha512-bhUcQcrqZoK8H1DFXapr5r1Z75oh6Kd5Tltz97XpZFLREEqp+KhN2Fvyh8r/fKAyenYsTYUIsDsyGdjdueuF9g==", - "license": "MIT or APACHE-2.0", + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-shell/-/plugin-shell-2.0.0-rc.1.tgz", + "integrity": "sha512-JtNROc0rqEwN/g93ig5pK4cl1vUo2yn+osCpY9de64cy/d9hRzof7AuYOgvt/Xcd5VPQmlgo2AGvUh5sQRSR1A==", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.0" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/@tauri-apps/plugin-updater": { - "version": "2.0.0-rc.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.0.0-rc.0.tgz", - "integrity": "sha512-EKajf/sBpFif0cwXhTo3BmNvTZ2t2DDLRyhA8FFKugZNoOeqU97bHhPT5DIqMUPRE1tyDk9o7sXm8dKf7oz+EA==", - "license": "MIT or APACHE-2.0", + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.0.0-rc.1.tgz", + "integrity": "sha512-SwQhDad/jnGIUe4eFfVBZ+0wRZthPSLwrFAl/K0Fyuu7dD/uGHS/jbATxZzwFDGfcpWOGLOsS8+LqSmY5zufHw==", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.0" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/@types/babel__core": { @@ -2474,9 +2468,9 @@ } }, "node_modules/antd": { - "version": "5.20.2", - "resolved": "https://registry.npmjs.org/antd/-/antd-5.20.2.tgz", - "integrity": "sha512-9d6Bs5ZKIV+JhB0eD7KxYnIfnhUh86kNtTGIuNiIxHFUhbuyT1DXN2SuMksDmtSfuRYZ82/C4hq+OJjWNNbmHg==", + "version": "5.20.3", + "resolved": "https://registry.npmjs.org/antd/-/antd-5.20.3.tgz", + "integrity": "sha512-v2s5LJlhuccIKLT17ESXQDkiQJdPK4jXg4x2pmSSRlrKXAxfftn8Zhd/7pdF3qR3OkwheQpSRjynrNZKp9Tgkg==", "dependencies": { "@ant-design/colors": "^7.1.0", "@ant-design/cssinjs": "^1.21.0", @@ -4782,9 +4776,9 @@ "dev": true }, "node_modules/html-dom-parser": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.9.tgz", - "integrity": "sha512-QGeoFYwgQ582EDvrBx0+ejIz76/LuQcwwkmSR4ueKncjl2yWbciA45Kfz/LrHvWR3CgtKnxKFkr4Mpq2Sh1QNg==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.10.tgz", + "integrity": "sha512-GwArYL3V3V8yU/mLKoFF7HlLBv80BZ2Ey1BzfVNRpAci0cEKhFHI/Qh8o8oyt3qlAMLlK250wsxLdYX4viedvg==", "dependencies": { "domhandler": "5.0.3", "htmlparser2": "9.1.0" @@ -4799,14 +4793,14 @@ } }, "node_modules/html-react-parser": { - "version": "5.1.12", - "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.12.tgz", - "integrity": "sha512-OPv8fsIvxxv/+pLj9mYvyNu8PE5dPMowTRdd5VHpcoZpXlstp8eYCxQ5rzqAE5Tb75rhdiWUXnPltfb62zCVjg==", + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.15.tgz", + "integrity": "sha512-LRwSTseAZtdtzYbBaN0a+pJ48x4qmwPzQC5tvwAp9IvuNf7afxtTHLpCPYCsVjRKRUqhXvfjTaKJJrhctxkHJA==", "dependencies": { "domhandler": "5.0.3", - "html-dom-parser": "5.0.9", + "html-dom-parser": "5.0.10", "react-property": "2.0.2", - "style-to-js": "1.1.12" + "style-to-js": "1.1.13" }, "peerDependencies": { "@types/react": "0.14 || 15 || 16 || 17 || 18", @@ -5644,9 +5638,9 @@ } }, "node_modules/marked": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-14.0.0.tgz", - "integrity": "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.0.tgz", + "integrity": "sha512-P93GikH/Pde0hM5TAXEd8I4JAYi8IB03n8qzW8Bh1BIEFpEyBoYxi/XWZA53LSpTeLBiMQOoSMj0u5E/tiVYTA==", "bin": { "marked": "bin/marked.js" }, @@ -7639,9 +7633,9 @@ } }, "node_modules/style-to-js": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.12.tgz", - "integrity": "sha512-tv+/FkgNYHI2fvCoBMsqPHh5xovwiw+C3X0Gfnss/Syau0Nr3IqGOJ9XiOYXoPnToHVbllKFf5qCNFJGwFg5mg==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.13.tgz", + "integrity": "sha512-+43kvxwjrW9n5gFR40Rv98A0/Mcjew7Lt+p5Nnw1KGR9SZf/ZaKqmMwl9Enj9EnYNcJ5VzuCjejC5KZzvH2lOA==", "dependencies": { "style-to-object": "1.0.6" } @@ -7655,9 +7649,9 @@ } }, "node_modules/styled-components": { - "version": "6.1.12", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.12.tgz", - "integrity": "sha512-n/O4PzRPhbYI0k1vKKayfti3C/IGcPf+DqcrOB7O/ab9x4u/zjqraneT5N45+sIe87cxrCApXM8Bna7NYxwoTA==", + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.13.tgz", + "integrity": "sha512-M0+N2xSnAtwcVAQeFEsGWFFxXDftHUD7XrKla06QbpUMmbmtFBMMTcKWvFXtWxuD5qQkB8iU5gk6QASlx2ZRMw==", "dependencies": { "@emotion/is-prop-valid": "1.2.2", "@emotion/unitless": "0.8.1", @@ -7750,11 +7744,12 @@ }, "node_modules/tauri-plugin-window-state": { "name": "@tauri-apps/plugin-window-state", - "version": "2.0.0-rc.0", - "resolved": "git+ssh://git@github.com/tauri-apps/tauri-plugin-window-state.git#21eac8998ad4ac6549269621fc305d7df3567137", + "version": "2.0.0-rc.1", + "resolved": "git+ssh://git@github.com/tauri-apps/tauri-plugin-window-state.git#60a03473011500e8d66dbef5f1ddba4da70dee0c", + "integrity": "sha512-fQG6G6G+b3mx2QE6dAFxl3iyKvz35DpGggIczKn+qRc4Mdjsb9y42iJMUpMpZAC2q9j8h3LfknguCacifVP5lA==", "license": "MIT or APACHE-2.0", "dependencies": { - "@tauri-apps/api": "^2.0.0-rc.1" + "@tauri-apps/api": "^2.0.0-rc.4" } }, "node_modules/text-table": { diff --git a/package.json b/package.json index 12e59d5b..c58190cd 100644 --- a/package.json +++ b/package.json @@ -17,29 +17,29 @@ "@fortawesome/free-regular-svg-icons": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", - "@tauri-apps/api": "^2.0.0-rc.0", - "@tauri-apps/plugin-clipboard-manager": "^2.0.0-rc.0", - "@tauri-apps/plugin-dialog": "^2.0.0-rc.0", - "@tauri-apps/plugin-process": "^2.0.0-rc.0", - "@tauri-apps/plugin-shell": "^2.0.0-rc.0", - "@tauri-apps/plugin-updater": "^2.0.0-rc.0", + "@tauri-apps/api": "^2.0.0-rc.4", + "@tauri-apps/plugin-clipboard-manager": "^2.0.0-rc.1", + "@tauri-apps/plugin-dialog": "^2.0.0-rc.1", + "@tauri-apps/plugin-process": "^2.0.0-rc.1", + "@tauri-apps/plugin-shell": "^2.0.0-rc.1", + "@tauri-apps/plugin-updater": "^2.0.0-rc.1", "@vitejs/plugin-react": "^4.3.1", - "antd": "^5.20.2", + "antd": "^5.20.3", "classnames": "^2.5.1", "dompurify": "^3.1.6", "gauth-decode": "^0.1.1", - "html-react-parser": "^5.1.12", + "html-react-parser": "^5.1.15", "html5-qrcode": "^2.3.8", "i18next": "^23.14.0", "jodit-react": "^4.1.2", - "marked": "^14.0.0", + "marked": "^14.1.0", "qrcode": "^1.5.4", "react": "^18.3.1", "react-countdown-circle-timer": "^3.2.1", "react-dom": "^18.3.1", "react-i18next": "^15.0.1", "react-secure-storage": "^1.3.2", - "styled-components": "^6.1.12", + "styled-components": "^6.1.13", "tauri-plugin-window-state": "github:tauri-apps/tauri-plugin-window-state#v2" }, "devDependencies": { From 8f298513e83766d750f8a3d8fdbccc28f9bc5975 Mon Sep 17 00:00:00 2001 From: VPKSoft Date: Mon, 2 Sep 2024 06:57:59 +0300 Subject: [PATCH 2/2] Fix type change. --- src/utilities/app/Files.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utilities/app/Files.ts b/src/utilities/app/Files.ts index af61e15f..c4f34d5f 100644 --- a/src/utilities/app/Files.ts +++ b/src/utilities/app/Files.ts @@ -61,6 +61,10 @@ const EmptyGeneralEntryString: GeneralEntry = { type: "tags", values: [] */ const failed: FileResult = { ok: false, fileData: [], fileName: "", tags: EmptyGeneralEntryString }; +type OpenDialogReturn = { + path?: string; +}; + /** * Displays an open file dialog and returns the user selected file. * @param extensionName The name of the file extension to display to the user via the open file dialog. @@ -77,7 +81,12 @@ const selectFileToOpen = async (extensionName: string, extension = "pkd") => { ], }); - return filePath?.path ?? null; + // Compatibility fix for frontend dependencies vs. backend dependencies for Tauri breaking change. TODO::Remove when fully merged. + if (filePath === null) { + return ""; + } + + return typeof filePath === "string" ? filePath : ((filePath as OpenDialogReturn)?.path ?? null); }; /**