diff --git a/package-lock.json b/package-lock.json index a7c3345..91a9a5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "dependencies": { "@heroicons/react": "^2.1.5", - "@khmyznikov/pwa-install": "^0.3.3", + "@khmyznikov/pwa-install": "^0.4.5", "@lit/react": "^1.0.5", "@types/dom-chromium-installation-events": "^101.0.4", "@types/lodash.defaultsdeep": "^4.6.9", @@ -2265,17 +2265,21 @@ } }, "node_modules/@khmyznikov/pwa-install": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@khmyznikov/pwa-install/-/pwa-install-0.3.3.tgz", - "integrity": "sha512-Ttg73jBQUSA3C0gpBrbwLYbTUP8Qw3oFbiq5bSVM+lAM3D90tb32XOVP+CK47ZpUHo6YV+HhVWlLKwHjNjnbog==", - "dependencies": { - "lit": "^3.1.0" + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@khmyznikov/pwa-install/-/pwa-install-0.4.5.tgz", + "integrity": "sha512-L/BlK2yX/zWkvGwOEt9F4GqC8Q8tOhp35urLJvA9TGJMnKqgiGBtJUDHqFrpmdMUvybFc88TVJ67z+eALKB0eQ==", + "peerDependencies": { + "@lit/react": "^1.0.5", + "@types/dom-chromium-installation-events": "^101.0.4", + "@types/web-app-manifest": "^1.0.8", + "lit": "^3.2.0" } }, "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.1.tgz", + "integrity": "sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==", + "peer": true }, "node_modules/@lit/react": { "version": "1.0.5", @@ -2289,6 +2293,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.4.tgz", "integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==", + "peer": true, "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0" } @@ -5998,29 +6003,32 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/lit": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.2.tgz", - "integrity": "sha512-VZx5iAyMtX7CV4K8iTLdCkMaYZ7ipjJZ0JcSdJ0zIdGxxyurjIn7yuuSxNBD7QmjvcNJwr0JS4cAdAtsy7gZ6w==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.2.0.tgz", + "integrity": "sha512-s6tI33Lf6VpDu7u4YqsSX78D28bYQulM+VAzsGch4fx2H0eLZnJsUBsPWmGYSGoKDNbjtRv02rio1o+UdPVwvw==", + "peer": true, "dependencies": { "@lit/reactive-element": "^2.0.4", - "lit-element": "^4.0.4", - "lit-html": "^3.1.2" + "lit-element": "^4.1.0", + "lit-html": "^3.2.0" } }, "node_modules/lit-element": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.4.tgz", - "integrity": "sha512-98CvgulX6eCPs6TyAIQoJZBCQPo80rgXR+dVBs61cstJXqtI+USQZAbA4gFHh6L/mxBx9MrgPLHLsUgDUHAcCQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.0.tgz", + "integrity": "sha512-gSejRUQJuMQjV2Z59KAS/D4iElUhwKpIyJvZ9w+DIagIQjfJnhR20h2Q5ddpzXGS+fF0tMZ/xEYGMnKmaI/iww==", + "peer": true, "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0", "@lit/reactive-element": "^2.0.4", - "lit-html": "^3.1.2" + "lit-html": "^3.2.0" } }, "node_modules/lit-html": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.2.tgz", - "integrity": "sha512-3OBZSUrPnAHoKJ9AMjRL/m01YJxQMf+TMHanNtTHG68ubjnZxK0RFl102DPzsw4mWnHibfZIBJm3LWCZ/LmMvg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.0.tgz", + "integrity": "sha512-pwT/HwoxqI9FggTrYVarkBKFN9MlTUpLrDHubTmW4SrkL3kkqW5gxwbxMMUnbbRHBC0WTZnYHcjDSCM559VyfA==", + "peer": true, "dependencies": { "@types/trusted-types": "^2.0.2" } diff --git a/package.json b/package.json index 5def522..3fcc9be 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@heroicons/react": "^2.1.5", - "@khmyznikov/pwa-install": "^0.3.3", + "@khmyznikov/pwa-install": "^0.4.5", "@lit/react": "^1.0.5", "@types/dom-chromium-installation-events": "^101.0.4", "@types/lodash.defaultsdeep": "^4.6.9", diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 6fc3c40..5a9d312 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -4,7 +4,7 @@ import { LanguageSettings } from '../header/displaySettings/LanguageSettings' import styles from './home.module.scss' import { Question } from '../generic/Question' import { questionOfTheDay } from '../questions/questionOfTheDay' -import PWAInstall from '@khmyznikov/pwa-install/src/fallback/react' +import PWAInstall from '@khmyznikov/pwa-install/react-legacy' import { PWAInstallElement } from '@khmyznikov/pwa-install' import { Ellipsis } from '../generic/Ellipsis' diff --git a/tsconfig.json b/tsconfig.json index c954602..d6d53c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "Bundler", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true,