Pkg upgrades

This commit is contained in:
Dustin Brett 2024-01-16 18:47:10 -08:00
parent 4aabdeb7b0
commit 2c1b7b1e96
10 changed files with 65 additions and 62 deletions

View file

@ -99,8 +99,8 @@ const useJSDOS = ({
updateWindowSize(height, width);
}
});
events.onExit(
() => window.SimpleKeyboardInstances?.emulatorKeyboard?.destroy()
events.onExit(() =>
window.SimpleKeyboardInstances?.emulatorKeyboard?.destroy()
);
setLoading(false);

View file

@ -193,9 +193,8 @@ const useV86 = ({
useEffect(() => {
const isActiveInstance = foregroundId === id;
Object.values(emulator).forEach(
(emulatorInstance) =>
emulatorInstance?.keyboard_set_status(isActiveInstance)
Object.values(emulator).forEach((emulatorInstance) =>
emulatorInstance?.keyboard_set_status(isActiveInstance)
);
}, [emulator, foregroundId, id]);

View file

@ -205,8 +205,8 @@ export const loadMilkdropWhenNeeded = (webamp: WebampCI): void => {
unsubscribe();
webamp.store.subscribe(() => {
const webampDesktop = [...document.body.children].find(
(node) => node.classList?.contains("webamp-desktop")
const webampDesktop = [...document.body.children].find((node) =>
node.classList?.contains("webamp-desktop")
);
if (webampDesktop) {

View file

@ -184,8 +184,8 @@ const useWallpaper = (
}
} else if (WALLPAPER_PATHS[wallpaperName]) {
WALLPAPER_PATHS[wallpaperName]()
.then(
({ default: wallpaper }) => wallpaper?.(desktopRef.current, config)
.then(({ default: wallpaper }) =>
wallpaper?.(desktopRef.current, config)
)
.catch(() => setWallpaper("VANTA"));
} else {

View file

@ -236,8 +236,9 @@ const useFileSystemContextState = (): FileSystemContextState => {
const dbName =
fsName ||
`${emscriptenFS._FS?.DB_NAME().replace(/\/+$/, "")}${emscriptenFS
._FS?.DB_STORE_NAME}`;
`${emscriptenFS._FS?.DB_NAME().replace(/\/+$/, "")}${
emscriptenFS._FS?.DB_STORE_NAME
}`;
try {
rootFs?.mount?.(join("/", dbName), newFs);

View file

@ -42,6 +42,10 @@ export const EXCLUDED_CONSOLE_LOGS = (browserName: string): string[] => {
// sandbox=allow-presentation is not supported in webkit
"Error while parsing the 'sandbox' attribute: 'allow-presentation' is an invalid sandbox flag."
);
} else if (browserName === "firefox") {
excludedConsoleLogs.push(
"Layout was forced before the page was fully loaded"
);
}
return excludedConsoleLogs;

View file

@ -11,9 +11,8 @@ const useIFrameFocuser = (): void => {
const focusIframeWindow = (): void => {
if (document.activeElement instanceof HTMLIFrameElement) {
const [id] =
Object.entries(processesRef.current).find(
([, { componentWindow }]) =>
componentWindow?.contains(document.activeElement)
Object.entries(processesRef.current).find(([, { componentWindow }]) =>
componentWindow?.contains(document.activeElement)
) || [];
if (id) {

View file

@ -62,7 +62,7 @@
"nostr-tools": "^1.17.0",
"opentype.js": "^1.3.4",
"playlist-parser": "^0.0.12",
"prettier": "^3.1.1",
"prettier": "^3.2.2",
"print-js": "^1.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@ -75,20 +75,20 @@
},
"devDependencies": {
"7z-wasm": "^1.1.0",
"@axe-core/playwright": "^4.8.2",
"@axe-core/playwright": "^4.8.3",
"@next/bundle-analyzer": "^14.0.4",
"@next/eslint-plugin-next": "^14.0.4",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.41.0",
"@types/dompurify": "^3.0.5",
"@types/gif.js": "^0.2.5",
"@types/ini": "^4.1.0",
"@types/jest": "^29.5.11",
"@types/lunr": "^2.3.7",
"@types/minimist": "^1.2.5",
"@types/node": "^20.10.8",
"@types/node": "^20.11.4",
"@types/offscreencanvas": "^2019.7.3",
"@types/opentype.js": "^1.3.8",
"@types/react": "^18.2.47",
"@types/react": "^18.2.48",
"@types/ua-parser-js": "^0.7.39",
"@types/video.js": "^7.3.56",
"@types/wicg-file-system-access": "^2023.10.4",
@ -103,7 +103,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.2",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-no-relative-import-paths": "^1.5.3",
"eslint-plugin-playwright": "^0.21.0",
@ -127,7 +127,7 @@
"lunr": "^2.3.9",
"monaco-editor": "^0.45.0",
"pdfjs-dist": "^4.0.379",
"playwright-core": "^1.40.1",
"playwright-core": "^1.41.0",
"postcss": "^8.4.33",
"postcss-styled-syntax": "^0.6.4",
"postcss-syntax": "^0.36.2",

View file

@ -79,8 +79,8 @@ export const toggleShowDesktop = (
});
if (restoreWindows) {
requestAnimationFrame(
() => processes[stackOrder[0]]?.componentWindow?.focus()
requestAnimationFrame(() =>
processes[stackOrder[0]]?.componentWindow?.focus()
);
}
};

View file

@ -27,12 +27,12 @@
resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.17.14.tgz#43bfe793c787180c5eb0a57ada8318fb62171b4e"
integrity sha512-+PVTOfla/0XMLRTQLJFPg4u40XcdTfon6GGea70hBGi8Pd7ZymIXyVUR+vK8wt5Jb4MVKTKPIz43Myyebw5mZA==
"@axe-core/playwright@^4.8.2":
version "4.8.2"
resolved "https://registry.yarnpkg.com/@axe-core/playwright/-/playwright-4.8.2.tgz#5d5c47d859c8fccbbebda5b8b144fd789a979ee1"
integrity sha512-9KOhX2tNuvqn9DzpBNyqoqNKRZBrexeSiN9irQ0sEdq8zH13JnatepCJxobuXn4UopNy6iIpP4342beMiH+MSQ==
"@axe-core/playwright@^4.8.3":
version "4.8.3"
resolved "https://registry.yarnpkg.com/@axe-core/playwright/-/playwright-4.8.3.tgz#14f35701d9fd13ecab763d398ffd8663ee9312de"
integrity sha512-YtbkAWeOp5oQeI8vS6KYqJDa5yTl5O1wJP8KOZAAVjhxeiK/Y1ssxnZuGRobARyVh3eS6O3jdxTv/iCK1RfgaA==
dependencies:
axe-core "~4.8.2"
axe-core "~4.8.3"
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13", "@babel/code-frame@^7.23.5":
version "7.23.5"
@ -844,12 +844,12 @@
resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.0.tgz#7d8dacb7fdef0e4387caf7396cbd77f179867d06"
integrity sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==
"@playwright/test@^1.40.1":
version "1.40.1"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.40.1.tgz#9e66322d97b1d74b9f8718bacab15080f24cde65"
integrity sha512-EaaawMTOeEItCRvfmkI9v6rBkF1svM8wjl/YPRrg2N2Wmp+4qJYkWtJsbew1szfKKDm6fPLy4YAanBhIlf9dWw==
"@playwright/test@^1.41.0":
version "1.41.0"
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.41.0.tgz#b083e976295f1fe039c15d451c66554d7f37278c"
integrity sha512-Grvzj841THwtpBOrfiHOeYTJQxDRnKofMSzCiV8XeyLWu3o89qftQ4BCKfkziJhSUQRd0utKhrddtIsiraIwmw==
dependencies:
playwright "1.40.1"
playwright "1.41.0"
"@polka/url@^1.0.0-next.20":
version "1.0.0-next.24"
@ -1076,10 +1076,10 @@
dependencies:
undici-types "~5.26.4"
"@types/node@^20.10.8":
version "20.10.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.8.tgz#f1e223cbde9e25696661d167a5b93a9b2a5d57c7"
integrity sha512-f8nQs3cLxbAFc00vEU59yf9UyGUftkPaLGfvbVOIDdx2i1b8epBqj2aNGyP19fiyXWvlmZ7qC1XLjAzw/OKIeA==
"@types/node@^20.11.4":
version "20.11.4"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.4.tgz#c724a5d6723182af758b91b994209336f4439cb7"
integrity sha512-6I0fMH8Aoy2lOejL3s4LhyIYX34DPwY8bl5xlNjBvUEk8OHrcuzsFt+Ied4LvJihbtXPM+8zUqdydfIti86v9g==
dependencies:
undici-types "~5.26.4"
@ -1127,10 +1127,10 @@
"@types/scheduler" "*"
csstype "^3.0.2"
"@types/react@^18.2.47":
version "18.2.47"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.47.tgz#85074b27ab563df01fbc3f68dc64bf7050b0af40"
integrity sha512-xquNkkOirwyCgoClNk85BjP+aqnIS+ckAJ8i37gAbDs14jfW/J23f2GItAf33oiUPQnqNMALiFeoM9Y5mbjpVQ==
"@types/react@^18.2.48":
version "18.2.48"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.48.tgz#11df5664642d0bd879c1f58bc1d37205b064e8f1"
integrity sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
@ -1770,10 +1770,10 @@ axe-core@=4.7.0:
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf"
integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==
axe-core@~4.8.2:
version "4.8.2"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.8.2.tgz#2f6f3cde40935825cf4465e3c1c9e77b240ff6ae"
integrity sha512-/dlp0fxyM3R8YW7MFzaHWXrf4zzbr0vaYb23VBFCl83R7nWNPg/yaQw2Dc8jzCMmDVLhSdzH8MjrsuIUuvX+6g==
axe-core@~4.8.3:
version "4.8.3"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.8.3.tgz#205df863dd9917d5979e9435dab4d47692759051"
integrity sha512-d5ZQHPSPkF9Tw+yfyDcRoUOc4g/8UloJJe5J8m4L5+c7AtDdjDLRxew/knnI4CxvtdxEUVgWz4x3OIQUIFiMfw==
axobject-query@^3.2.1:
version "3.2.1"
@ -2987,10 +2987,10 @@ eslint-plugin-import@^2.29.1:
semver "^6.3.1"
tsconfig-paths "^3.15.0"
eslint-plugin-jest@^27.6.2:
version "27.6.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.6.2.tgz#8e69404fcd5dfeac03cac478f0ebb9bf2d8db56b"
integrity sha512-CI1AlKrsNhYFoP48VU8BVWOi7+qHTq4bRxyUlGjeU8SfFt8abjXhjOuDzUoMp68DoXIx17KpNpIkMrl4s4ZW0g==
eslint-plugin-jest@^27.6.3:
version "27.6.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.6.3.tgz#8acb8b1e45597fe1f4d4cf25163d90119efc12be"
integrity sha512-+YsJFVH6R+tOiO3gCJon5oqn4KWc+mDq2leudk8mrp8RFubLOo9CVyi3cib4L7XMpxExmkmBZQTPDYVBzgpgOA==
dependencies:
"@typescript-eslint/utils" "^5.10.0"
@ -5773,17 +5773,17 @@ playlist-parser@^0.0.12:
dependencies:
xmldom "0.1.16"
playwright-core@1.40.1, playwright-core@^1.40.1:
version "1.40.1"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.40.1.tgz#442d15e86866a87d90d07af528e0afabe4c75c05"
integrity sha512-+hkOycxPiV534c4HhpfX6yrlawqVUzITRKwHAmYfmsVreltEl6fAZJ3DPfLMOODw0H3s1Itd6MDCWmP1fl/QvQ==
playwright-core@1.41.0, playwright-core@^1.41.0:
version "1.41.0"
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.41.0.tgz#dbda9c3948df28a8deae76cc90b424e47174f9d7"
integrity sha512-UGKASUhXmvqm2Lxa1fNr8sFwAtqjpgBRr9jQ7XBI8Rn5uFiEowGUGwrruUQsVPIom4bk7Lt+oLGpXobnXzrBIw==
playwright@1.40.1:
version "1.40.1"
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.40.1.tgz#a11bf8dca15be5a194851dbbf3df235b9f53d7ae"
integrity sha512-2eHI7IioIpQ0bS1Ovg/HszsN/XKNwEG1kbzSDDmADpclKc7CyqkHw7Mg2JCz/bbCxg25QUPcjksoMW7JcIFQmw==
playwright@1.41.0:
version "1.41.0"
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.41.0.tgz#77ab5f3a5fde479522167f74a5070e72ce884bff"
integrity sha512-XOsfl5ZtAik/T9oek4V0jAypNlaCNzuKOwVhqhgYT3os6kH34PzbRb74F0VWcLYa5WFdnmxl7qyAHBXvPv7lqQ==
dependencies:
playwright-core "1.40.1"
playwright-core "1.41.0"
optionalDependencies:
fsevents "2.3.2"
@ -5871,10 +5871,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
prettier@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848"
integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==
prettier@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.2.tgz#96e580f7ca9c96090ad054616c0c4597e2844b65"
integrity sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==
pretty-format@^29.0.0, pretty-format@^29.7.0:
version "29.7.0"