🎥 Make videos programmatically with React
Fix Elements sidebar check and docs SSR font loading
Igor Samokhovets0945360e5312
diff --git a/packages/docs/components/demos/MotionBlurDemo.tsx b/packages/docs/components/demos/MotionBlurDemo.tsxindex e5c9de4ded..7ec33342a6 100644--- a/packages/docs/components/demos/MotionBlurDemo.tsx+++ b/packages/docs/components/demos/MotionBlurDemo.tsx@@ -16,11 +16,13 @@ import {import {HtmlInCanvasDocsVideoFallback} from './HtmlInCanvasDocsVideoFallback';import {useHtmlInCanvasDocsDemoBranch} from './useHtmlInCanvasDocsDemoBranch';-loadFont({- family: 'GT Planar',- url: staticFile('img/gt-planar-bold.woff2'),- weight: '700',-});+if (typeof window !== 'undefined') {+ loadFont({+ family: 'GT Planar',+ url: staticFile('img/gt-planar-bold.woff2'),+ weight: '700',+ });+}type MotionBlurDemoProps = {readonly darkMode?: boolean;diff --git a/packages/docs/src/test/elements.test.ts b/packages/docs/src/test/elements.test.tsindex eecaa58457..59f90681ef 100644--- a/packages/docs/src/test/elements.test.ts+++ b/packages/docs/src/test/elements.test.ts@@ -588,7 +588,8 @@ describe('Elements sidebar', () => {expect(categoryIndex).toBeLessThan(thirdPartyIndex - 1);}- const thirdPartySeparator = elementsCategory.items[thirdPartyIndex - 1];+ expect(elementsCategory.items[thirdPartyIndex - 1]).toBe('guidelines');+ const thirdPartySeparator = elementsCategory.items[thirdPartyIndex - 2];if (typeof thirdPartySeparator !== 'object' ||thirdPartySeparator === null ||