diff --git a/package-lock.json b/package-lock.json index 2b2c9eabb..5f7c663fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,12 +17,13 @@ "@codemirror/view": "^6.26.3", "@microbit/microbit-connection": "^1.0.0", "@microbit/microbit-fs": "^0.10.0", - "@microbit/ui": "^0.2.0", - "@microbit/ui-patterns": "^0.2.0", + "@microbit/ui": "^0.2.2", + "@microbit/ui-patterns": "^0.3.0", "@sanity/block-content-to-react": "^3.0.0", "@sanity/image-url": "^1.0.1", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.4.3", "@types/lodash.debounce": "^4.0.6", "@types/lodash.sortby": "^4.7.6", "@types/lunr": "^2.3.4", @@ -3276,9 +3277,9 @@ } }, "node_modules/@microbit/ui": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@microbit/ui/-/ui-0.2.1.tgz", - "integrity": "sha512-Pg2JPGGySsNX3F1pT40zCDiqFeevHQV0KSuGzkpwG0qyiDV4NuYwdCsstbhOuWYDHQY9iLR5LUPfYGU6V5+nhg==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@microbit/ui/-/ui-0.2.2.tgz", + "integrity": "sha512-vQ/JA+oVbNpwyXzB7Fr3JR2IcwiQyzFtbRY5O0YW5RE6Fb8obFaGcFW6OvkZF6PpAZqDbKnKh6WaMx2nsUvawQ==", "license": "MIT", "peerDependencies": { "@pandacss/dev": "^1.11.4", @@ -3290,9 +3291,9 @@ } }, "node_modules/@microbit/ui-patterns": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@microbit/ui-patterns/-/ui-patterns-0.2.1.tgz", - "integrity": "sha512-ZiEF+V8kTv+HyIcIg4cXkyUmP1KZT5frSF02r2FUmneM9DQRU05B9da9pGeTrrYNHJMDN8epBTUUC8/wEvhW+g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@microbit/ui-patterns/-/ui-patterns-0.3.0.tgz", + "integrity": "sha512-5leAKreA9iTYwqGM90J5O7DVxAE5nCHpb6NNMr0tp4nYgemSrCI4stQUhFRKP2dbIqmdCsG7Q0GhLT+8tM2p7A==", "license": "MIT", "dependencies": { "@formatjs/intl-localematcher": "^0.8.0" diff --git a/package.json b/package.json index bc291d90f..224118a10 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "@codemirror/view": "^6.26.3", "@microbit/microbit-connection": "^1.0.0", "@microbit/microbit-fs": "^0.10.0", - "@microbit/ui": "^0.2.0", - "@microbit/ui-patterns": "^0.2.0", + "@microbit/ui": "^0.2.2", + "@microbit/ui-patterns": "^0.3.0", "@sanity/block-content-to-react": "^3.0.0", "@sanity/image-url": "^1.0.1", "@testing-library/jest-dom": "^5.14.1", diff --git a/src/common/YoutubeVideoEmbed.tsx b/src/common/YoutubeVideoEmbed.tsx deleted file mode 100644 index 08c535523..000000000 --- a/src/common/YoutubeVideoEmbed.tsx +++ /dev/null @@ -1,39 +0,0 @@ -/** - * (c) 2021, Micro:bit Educational Foundation and contributors - * - * SPDX-License-Identifier: MIT - */ -import { AspectRatio } from "styled-system/jsx"; - -export interface YoutubeVideo { - alt: string; - youtubeId: string; -} - -interface YoutubeVideoProps { - alt: string; - youtubeId: string; -} - -const YoutubeVideoEmbed = ({ alt, youtubeId }: YoutubeVideoProps) => { - return ( -
- -