diff --git a/docs/website/package-lock.json b/docs/website/package-lock.json index d6fd51e52..495ee1cb1 100644 --- a/docs/website/package-lock.json +++ b/docs/website/package-lock.json @@ -11,17 +11,17 @@ "dependencies": { "@exadel/esl": "^4.9.4", "@juggle/resize-observer": "^3.4.0", - "@webcomponents/custom-elements": "1.6.0", - "@webcomponents/webcomponents-platform": "1.0.1", "chokidar": "^3.5.3", "prism-themes": "^1.9.0", "prismjs": "^1.29.0", "promise-polyfill": "^8.3.0", - "rss-parser": "^3.13.0" + "rss-parser": "^3.13.0", + "smoothscroll-polyfill": "^0.4.4" }, "devDependencies": { "@11ty/eleventy": "^2.0.1", "@11ty/eleventy-dev-server": "^2.0.4", + "@types/smoothscroll-polyfill": "^0.3.1", "@typescript-eslint/eslint-plugin": "^6.2.0", "@typescript-eslint/parser": "^6.2.0", "chokidar-cli": "^3.0.0", @@ -1076,6 +1076,13 @@ "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true }, + "node_modules/@types/smoothscroll-polyfill": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@types/smoothscroll-polyfill/-/smoothscroll-polyfill-0.3.4.tgz", + "integrity": "sha512-w1krF+TJh7Azz/2/bEN1tmyKoNt3B6bLCn6SfJErzhKAr1w1b06ePx79NXA+3lTw+DbqXN12nk/Ce1UQDVY8yA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/video.js": { "version": "7.3.52", "resolved": "https://registry.npmjs.org/@types/video.js/-/video.js-7.3.52.tgz", @@ -1437,16 +1444,6 @@ "@xtuc/long": "4.2.2" } }, - "node_modules/@webcomponents/custom-elements": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webcomponents/custom-elements/-/custom-elements-1.6.0.tgz", - "integrity": "sha512-CqTpxOlUCPWRNUPZDxT5v2NnHXA4oox612iUGnmTUGQFhZ1Gkj8kirtl/2wcF6MqX7+PqqicZzOCBKKfIn0dww==" - }, - "node_modules/@webcomponents/webcomponents-platform": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@webcomponents/webcomponents-platform/-/webcomponents-platform-1.0.1.tgz", - "integrity": "sha512-7Ua2c3FvqAuiC2++gIoStG9r0B5sxleq8B7o0XKuIM052amWPTaCka0UMvnQRRJEsdGgRGIUv6sLkOyfhcr1dw==" - }, "node_modules/@webpack-cli/configtest": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", @@ -8349,6 +8346,12 @@ "node": ">=8.0.0" } }, + "node_modules/smoothscroll-polyfill": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz", + "integrity": "sha512-TK5ZA9U5RqCwMpfoMq/l1mrH0JAR7y7KRvOBx0n2869aLxch+gT9GhN3yUfjiw+d/DiF1mKo14+hd62JyMmoBg==", + "license": "MIT" + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -10668,6 +10671,12 @@ "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true }, + "@types/smoothscroll-polyfill": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@types/smoothscroll-polyfill/-/smoothscroll-polyfill-0.3.4.tgz", + "integrity": "sha512-w1krF+TJh7Azz/2/bEN1tmyKoNt3B6bLCn6SfJErzhKAr1w1b06ePx79NXA+3lTw+DbqXN12nk/Ce1UQDVY8yA==", + "dev": true + }, "@types/video.js": { "version": "7.3.52", "resolved": "https://registry.npmjs.org/@types/video.js/-/video.js-7.3.52.tgz", @@ -10925,16 +10934,6 @@ "@xtuc/long": "4.2.2" } }, - "@webcomponents/custom-elements": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webcomponents/custom-elements/-/custom-elements-1.6.0.tgz", - "integrity": "sha512-CqTpxOlUCPWRNUPZDxT5v2NnHXA4oox612iUGnmTUGQFhZ1Gkj8kirtl/2wcF6MqX7+PqqicZzOCBKKfIn0dww==" - }, - "@webcomponents/webcomponents-platform": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@webcomponents/webcomponents-platform/-/webcomponents-platform-1.0.1.tgz", - "integrity": "sha512-7Ua2c3FvqAuiC2++gIoStG9r0B5sxleq8B7o0XKuIM052amWPTaCka0UMvnQRRJEsdGgRGIUv6sLkOyfhcr1dw==" - }, "@webpack-cli/configtest": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", @@ -16061,6 +16060,11 @@ "integrity": "sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==", "dev": true }, + "smoothscroll-polyfill": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz", + "integrity": "sha512-TK5ZA9U5RqCwMpfoMq/l1mrH0JAR7y7KRvOBx0n2869aLxch+gT9GhN3yUfjiw+d/DiF1mKo14+hd62JyMmoBg==" + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", diff --git a/docs/website/package.json b/docs/website/package.json index d543a5914..78809e52c 100644 --- a/docs/website/package.json +++ b/docs/website/package.json @@ -25,17 +25,17 @@ "dependencies": { "@exadel/esl": "^4.9.4", "@juggle/resize-observer": "^3.4.0", - "@webcomponents/custom-elements": "1.6.0", - "@webcomponents/webcomponents-platform": "1.0.1", "chokidar": "^3.5.3", "prism-themes": "^1.9.0", "prismjs": "^1.29.0", "promise-polyfill": "^8.3.0", - "rss-parser": "^3.13.0" + "rss-parser": "^3.13.0", + "smoothscroll-polyfill": "^0.4.4" }, "devDependencies": { "@11ty/eleventy": "^2.0.1", "@11ty/eleventy-dev-server": "^2.0.4", + "@types/smoothscroll-polyfill": "^0.3.1", "@typescript-eslint/eslint-plugin": "^6.2.0", "@typescript-eslint/parser": "^6.2.0", "chokidar-cli": "^3.0.0", diff --git a/docs/website/src/polyfill-light.ts b/docs/website/src/polyfill-light.ts index 8f227627f..3d497338f 100644 --- a/docs/website/src/polyfill-light.ts +++ b/docs/website/src/polyfill-light.ts @@ -1,2 +1,5 @@ import {ResizeObserver} from '@juggle/resize-observer'; window.ResizeObserver = window.ResizeObserver || ResizeObserver; + +import SmoothScroll from 'smoothscroll-polyfill'; +SmoothScroll.polyfill();