diff --git a/package.json b/package.json index 96c156b..c027d14 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@aws-sdk/s3-request-presigner": "^3.705.0", "@dotenvx/dotenvx": "^1.22.0", "@paralleldrive/cuid2": "^2.2.2", - "@serlo/editor": "0.19.0", + "@serlo/editor": "0.20.1", "express": "^4.19.2", "fp-ts": "2.16.9", "http-proxy-middleware": "^3.0.3", @@ -42,7 +42,7 @@ "lodash": "^4.17.21", "ltijs": "^5.9.5", "mongodb": "5.1.0", - "mysql2": "^3.11.3", + "mysql2": "^3.11.5", "openai": "^4.73.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -65,7 +65,7 @@ "codeceptjs": "^3.6.7", "codeceptjs-chai": "^2.3.5", "esbuild": "^0.24.0", - "eslint": "^9.14.0", + "eslint": "^9.17.0", "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-react-refresh": "^0.4.14", @@ -75,7 +75,7 @@ "multer": "^1.4.5-lts.1", "npm-run-all": "^4.1.5", "playwright": "^1.48.2", - "prettier": "3.3.3", + "prettier": "3.4.2", "prettier-plugin-packagejson": "^2.5.6", "ts-node": "^10.9.2", "tsx": "4.19.2", diff --git a/scripts/wait_for_server.sh b/scripts/wait_for_server.sh index 0f4d080..69b612a 100755 --- a/scripts/wait_for_server.sh +++ b/scripts/wait_for_server.sh @@ -1,6 +1,8 @@ LATEST_LOG_BEFORE_READY="Registered platform: itslearning-mock" if ! timeout 60 bash -c "while [ ! -f output.log ] || ! grep -m 1 \"$LATEST_LOG_BEFORE_READY\" output.log; do sleep 1; done"; then + echo "Check why the server is not ready" + cat output.log echo "Error: Server is not working correctly." >&2 exit 1 fi diff --git a/yarn.lock b/yarn.lock index 274b234..8488258 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2204,10 +2204,10 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:9.15.0": - version: 9.15.0 - resolution: "@eslint/js@npm:9.15.0" - checksum: 10/cdea71574a8be164147f426ffa5eca05a9c7fbfbae98387ed0cf772292fc9fb5ded69ce96eac110aaa633f6b7504ec551e1d33f2d6690ae95b11ec395553bae1 +"@eslint/js@npm:9.17.0": + version: 9.17.0 + resolution: "@eslint/js@npm:9.17.0" + checksum: 10/1a89e62f5c50e75d44565b7f3b91701455a999132c991e10bac59c118fbb54bdd54be22b9bda1ac730f78a2e64604403d65ce5dd7726d80b2632982cfc3d84ac languageName: node linkType: hard @@ -2248,6 +2248,32 @@ __metadata: languageName: node linkType: hard +"@floating-ui/core@npm:^1.6.0": + version: 1.6.8 + resolution: "@floating-ui/core@npm:1.6.8" + dependencies: + "@floating-ui/utils": "npm:^0.2.8" + checksum: 10/87d52989c3d2cc80373bc153b7a40814db3206ce7d0b2a2bdfb63e2ff39ffb8b999b1b0ccf28e548000ebf863bf16e2bed45eab4c4d287a5dbe974ef22368d82 + languageName: node + linkType: hard + +"@floating-ui/dom@npm:^1.6.10": + version: 1.6.12 + resolution: "@floating-ui/dom@npm:1.6.12" + dependencies: + "@floating-ui/core": "npm:^1.6.0" + "@floating-ui/utils": "npm:^0.2.8" + checksum: 10/5c8e5fdcd3843140a606ab6dc6c12ad740f44e66b898966ef877393faaede0bbe14586e1049e2c2f08856437da8847e884a2762e78275fefa65a5a9cd71e580d + languageName: node + linkType: hard + +"@floating-ui/utils@npm:^0.2.8": + version: 0.2.8 + resolution: "@floating-ui/utils@npm:0.2.8" + checksum: 10/3e3ea3b2de06badc4baebdf358b3dbd77ccd9474a257a6ef237277895943db2acbae756477ec64de65a2a1436d94aea3107129a1feeef6370675bf2b161c1abc + languageName: node + linkType: hard + "@hapi/hoek@npm:^9.0.0, @hapi/hoek@npm:^9.3.0": version: 9.3.0 resolution: "@hapi/hoek@npm:9.3.0" @@ -2560,6 +2586,25 @@ __metadata: languageName: node linkType: hard +"@open-iframe-resizer/core@npm:1.2.1": + version: 1.2.1 + resolution: "@open-iframe-resizer/core@npm:1.2.1" + checksum: 10/9bd18f036408d75eaef29b1ca7ae8a8c799953ec4ef8e2a962100de56b27d76deff60c55e34d947bdda213dd4d4d4b5433854311028128fdfb1f235aafdddbfa + languageName: node + linkType: hard + +"@open-iframe-resizer/react@npm:1.2.1": + version: 1.2.1 + resolution: "@open-iframe-resizer/react@npm:1.2.1" + dependencies: + "@open-iframe-resizer/core": "npm:1.2.1" + peerDependencies: + react: ">=17.0.0" + react-dom: ">=17.0.0" + checksum: 10/5016bf8cc9350cfebcfe4ac9f95eb3dd2b2058e03fee24c2e61fadebfcd046f508ef61459b16284f912fbba48c27d874217305483a99c2311d4af6a8dbb41284 + languageName: node + linkType: hard + "@paralleldrive/cuid2@npm:^2.2.2": version: 2.2.2 resolution: "@paralleldrive/cuid2@npm:2.2.2" @@ -3096,18 +3141,21 @@ __metadata: languageName: node linkType: hard -"@serlo/editor@npm:0.19.0": - version: 0.19.0 - resolution: "@serlo/editor@npm:0.19.0" +"@serlo/editor@npm:0.20.1": + version: 0.20.1 + resolution: "@serlo/editor@npm:0.20.1" dependencies: + "@open-iframe-resizer/react": "npm:1.2.1" "@serlo/katex-styles": "npm:1.0.1" - dompurify: "npm:^3.1.7" + "@vidstack/react": "npm:next" + dompurify: "npm:^3.2.0" lit: "npm:^3.2.1" + motion: "npm:^11.11.17" react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" + react-dom: "npm:^18.3.1" react-hot-toast: "npm:^2.4.1" react-resizable: "npm:^3.0.5" - checksum: 10/6ba1ab3de3284a3ef41a65a138c01ef7d8a91f21844682f036152cd6c9bec78a329bb521d2d01fed68ec1fe4fbd2edc91070fca8f44e3b8bf5a43b8340b2591c + checksum: 10/f453dd5c53a9815564a039d704092511888d39bd3fa45300d5b3cb4d8f5fccf6e5c2f3bd0bfc16db0b9326f75b9059299dc23607d0b119f6506afe2c339f8f19 languageName: node linkType: hard @@ -4254,7 +4302,7 @@ __metadata: languageName: node linkType: hard -"@types/trusted-types@npm:^2.0.2": +"@types/trusted-types@npm:^2.0.2, @types/trusted-types@npm:^2.0.7": version: 2.0.7 resolution: "@types/trusted-types@npm:2.0.7" checksum: 10/8e4202766a65877efcf5d5a41b7dd458480b36195e580a3b1085ad21e948bc417d55d6f8af1fd2a7ad008015d4117d5fdfe432731157da3c68678487174e4ba3 @@ -4468,6 +4516,19 @@ __metadata: languageName: node linkType: hard +"@vidstack/react@npm:next": + version: 1.12.12 + resolution: "@vidstack/react@npm:1.12.12" + dependencies: + "@floating-ui/dom": "npm:^1.6.10" + media-captions: "npm:^1.0.4" + peerDependencies: + "@types/react": ^18.0.0 + react: ^18.0.0 + checksum: 10/24e95adb4012c77b7e2266803bc1155cef8f7bbf6aa3b50e7d0b0d7e272c2f8bca4ea246a6b5baebc7d87bc447057c5a28ed6838f4cb1c9ddd90438429288823 + languageName: node + linkType: hard + "@vitejs/plugin-react-swc@npm:^3.7.1": version: 3.7.1 resolution: "@vitejs/plugin-react-swc@npm:3.7.1" @@ -6328,7 +6389,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.5": +"cross-spawn@npm:^7.0.6": version: 7.0.6 resolution: "cross-spawn@npm:7.0.6" dependencies: @@ -6751,10 +6812,15 @@ __metadata: languageName: node linkType: hard -"dompurify@npm:^3.1.7": - version: 3.1.7 - resolution: "dompurify@npm:3.1.7" - checksum: 10/dc637a064306f83cf911caa267ffe1f973552047602020e3b6723c90f67962813edf8a65a0b62e8c9bc13fcd173a2691212a3719bc116226967f46bcd6181277 +"dompurify@npm:^3.2.0": + version: 3.2.3 + resolution: "dompurify@npm:3.2.3" + dependencies: + "@types/trusted-types": "npm:^2.0.7" + dependenciesMeta: + "@types/trusted-types": + optional: true + checksum: 10/aad472bcdff40afdbb307fd02abbca86acefee9c39cb35e9634ebbc5e047750a7eeb021b02cd66894d60cf75ad021f69394de2e9e8786b0dd91c5832f497a9af languageName: node linkType: hard @@ -7430,16 +7496,16 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^9.14.0": - version: 9.15.0 - resolution: "eslint@npm:9.15.0" +"eslint@npm:^9.17.0": + version: 9.17.0 + resolution: "eslint@npm:9.17.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" "@eslint-community/regexpp": "npm:^4.12.1" "@eslint/config-array": "npm:^0.19.0" "@eslint/core": "npm:^0.9.0" "@eslint/eslintrc": "npm:^3.2.0" - "@eslint/js": "npm:9.15.0" + "@eslint/js": "npm:9.17.0" "@eslint/plugin-kit": "npm:^0.2.3" "@humanfs/node": "npm:^0.16.6" "@humanwhocodes/module-importer": "npm:^1.0.1" @@ -7448,7 +7514,7 @@ __metadata: "@types/json-schema": "npm:^7.0.15" ajv: "npm:^6.12.4" chalk: "npm:^4.0.0" - cross-spawn: "npm:^7.0.5" + cross-spawn: "npm:^7.0.6" debug: "npm:^4.3.2" escape-string-regexp: "npm:^4.0.0" eslint-scope: "npm:^8.2.0" @@ -7475,7 +7541,7 @@ __metadata: optional: true bin: eslint: bin/eslint.js - checksum: 10/7ac1a2e6070bae64b2b0588fabad528cd3e478a6ba5e9f8185d8d9f2dce17a36630bd019b5d32d1052ea177444ab9c83f3c08baa76121c13e1ed0584ef158956 + checksum: 10/a48ee67dd4e737974bbb49ca5d12d0ce35bcd874507807599e3655bb398320ab27c9deed1aad508a963967815e626c21208f52158c2fc0796d0cc8186528efeb languageName: node linkType: hard @@ -8084,6 +8150,28 @@ __metadata: languageName: node linkType: hard +"framer-motion@npm:^11.14.4": + version: 11.14.4 + resolution: "framer-motion@npm:11.14.4" + dependencies: + motion-dom: "npm:^11.14.3" + motion-utils: "npm:^11.14.3" + tslib: "npm:^2.4.0" + peerDependencies: + "@emotion/is-prop-valid": "*" + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@emotion/is-prop-valid": + optional: true + react: + optional: true + react-dom: + optional: true + checksum: 10/303e996fb309bddf7b3fc220d0d4c07186b397a38589ed7d35175e03c1ea96243a2182780403d0dd7f5a510720ab9f08955b45b7ef5913ad05915ffea388219e + languageName: node + linkType: hard + "fresh@npm:0.5.2": version: 0.5.2 resolution: "fresh@npm:0.5.2" @@ -10378,6 +10466,13 @@ __metadata: languageName: node linkType: hard +"media-captions@npm:^1.0.4": + version: 1.0.4 + resolution: "media-captions@npm:1.0.4" + checksum: 10/f42835fb325ee9fb15ee243940ebb8339fd20a463d579bbaa60ab89d66c1b53efe9c951bb62cfddfa356c35687efe9e974cb286829319f648404f50a8c743403 + languageName: node + linkType: hard + "media-typer@npm:0.3.0": version: 0.3.0 resolution: "media-typer@npm:0.3.0" @@ -11082,6 +11177,41 @@ __metadata: languageName: node linkType: hard +"motion-dom@npm:^11.14.3": + version: 11.14.3 + resolution: "motion-dom@npm:11.14.3" + checksum: 10/24bd9a78c278e7622dd9347da3cb0f0e356ae72b9ef5ecba71a5b8dce9b5df05ee190d862b59d793e3d6b65756683689e7c2f96b0add72f40c2bb8268c037c8c + languageName: node + linkType: hard + +"motion-utils@npm:^11.14.3": + version: 11.14.3 + resolution: "motion-utils@npm:11.14.3" + checksum: 10/594b69d60a4cabea823a7ebf0f1e2fa13df9128ee2db9c6385ab23c6d1224dcd0d09fab67c361000d8f0288d75c56cb94d00c431023d22c052c5496a4757c5e5 + languageName: node + linkType: hard + +"motion@npm:^11.11.17": + version: 11.14.4 + resolution: "motion@npm:11.14.4" + dependencies: + framer-motion: "npm:^11.14.4" + tslib: "npm:^2.4.0" + peerDependencies: + "@emotion/is-prop-valid": "*" + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@emotion/is-prop-valid": + optional: true + react: + optional: true + react-dom: + optional: true + checksum: 10/55c421d33535b115f34abb95eab2029846324df67d7c4128f571441f755a588933a0320b9fdd553fb5f017e679b3e05fa6578a41db2873987b779f785b07363b + languageName: node + linkType: hard + "mpath@npm:0.9.0": version: 0.9.0 resolution: "mpath@npm:0.9.0" @@ -11169,9 +11299,9 @@ __metadata: languageName: node linkType: hard -"mysql2@npm:^3.11.3": - version: 3.11.3 - resolution: "mysql2@npm:3.11.3" +"mysql2@npm:^3.11.5": + version: 3.11.5 + resolution: "mysql2@npm:3.11.5" dependencies: aws-ssl-profiles: "npm:^1.1.1" denque: "npm:^2.1.0" @@ -11182,7 +11312,7 @@ __metadata: named-placeholders: "npm:^1.1.3" seq-queue: "npm:^0.0.5" sqlstring: "npm:^2.3.2" - checksum: 10/9f07cecce5b27588564210dbdcae1c79729f04d25475a028f00d639f8a0fd84bde24d09e24b6449b238724d84303c82288f493f6dccd9e96c13d0a24c1494811 + checksum: 10/912dc364f6f9684721add5474c732f5d7c2403ec17cb05b06f95adafab3cb32daa2798b283d48d0951d11af94a58558581ed22635803fc6baab651d3651c1cc9 languageName: node linkType: hard @@ -12142,12 +12272,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.3.3": - version: 3.3.3 - resolution: "prettier@npm:3.3.3" +"prettier@npm:3.4.2": + version: 3.4.2 + resolution: "prettier@npm:3.4.2" bin: prettier: bin/prettier.cjs - checksum: 10/5beac1f30b5b40162532b8e2f7c3a4eb650910a2695e9c8512a62ffdc09dae93190c29db9107fa7f26d1b6c71aad3628ecb9b5de1ecb0911191099be109434d7 + checksum: 10/a3e806fb0b635818964d472d35d27e21a4e17150c679047f5501e1f23bd4aa806adf660f0c0d35214a210d5d440da6896c2e86156da55f221a57938278dc326e languageName: node linkType: hard @@ -12448,7 +12578,7 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^18.2.0, react-dom@npm:^18.3.1": +"react-dom@npm:^18.3.1": version: 18.3.1 resolution: "react-dom@npm:18.3.1" dependencies: @@ -13297,7 +13427,7 @@ __metadata: "@eslint/compat": "npm:^1.2.3" "@eslint/js": "npm:^9.14.0" "@paralleldrive/cuid2": "npm:^2.2.2" - "@serlo/editor": "npm:0.19.0" + "@serlo/editor": "npm:0.20.1" "@types/jsonwebtoken": "npm:9.0.7" "@types/lodash": "npm:^4" "@types/ltijs": "npm:4.0.11" @@ -13311,7 +13441,7 @@ __metadata: codeceptjs: "npm:^3.6.7" codeceptjs-chai: "npm:^2.3.5" esbuild: "npm:^0.24.0" - eslint: "npm:^9.14.0" + eslint: "npm:^9.17.0" eslint-plugin-react: "npm:^7.37.2" eslint-plugin-react-hooks: "npm:^4.6.2" eslint-plugin-react-refresh: "npm:^0.4.14" @@ -13328,11 +13458,11 @@ __metadata: ltijs: "npm:^5.9.5" mongodb: "npm:5.1.0" multer: "npm:^1.4.5-lts.1" - mysql2: "npm:^3.11.3" + mysql2: "npm:^3.11.5" npm-run-all: "npm:^4.1.5" openai: "npm:^4.73.0" playwright: "npm:^1.48.2" - prettier: "npm:3.3.3" + prettier: "npm:3.4.2" prettier-plugin-packagejson: "npm:^2.5.6" react: "npm:^18.3.1" react-dom: "npm:^18.3.1" @@ -14325,6 +14455,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^2.4.0": + version: 2.8.1 + resolution: "tslib@npm:2.8.1" + checksum: 10/3e2e043d5c2316461cb54e5c7fe02c30ef6dccb3384717ca22ae5c6b5bc95232a6241df19c622d9c73b809bea33b187f6dbc73030963e29950c2141bc32a79f7 + languageName: node + linkType: hard + "tslib@npm:^2.6.2": version: 2.6.3 resolution: "tslib@npm:2.6.3"