🎥 Make videos programmatically with React
Use crawlchat-client
Pramod31e9860336e9
diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex 5228860ba7..129f1a379f 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -30,6 +30,7 @@"@docusaurus/theme-common": "3.9.2","@docusaurus/types": "3.9.2","@mdx-js/react": "3.0.1",+ "@mediabunny/ac3": "catalog:","@radix-ui/react-dropdown-menu": "^2.1.16","@react-three/fiber": "catalog:","@remotion-dev/cube-presentation": "https://www.remotion.pro/pkg/cube-transition/1.0.2/docs",@@ -53,7 +54,6 @@"@remotion/layout-utils": "workspace:*","@remotion/licensing": "workspace:*","@remotion/light-leaks": "workspace:*",- "@remotion/starburst": "workspace:*","@remotion/lottie": "workspace:*","@remotion/media": "workspace:*","@remotion/media-parser": "workspace:*",@@ -71,6 +71,7 @@"@remotion/sfx": "workspace:*","@remotion/shapes": "workspace:*","@remotion/skia": "workspace:*",+ "@remotion/starburst": "workspace:*","@remotion/studio": "workspace:*","@remotion/svg-3d-engine": "workspace:*","@remotion/tailwind": "workspace:*",@@ -98,6 +99,7 @@"clsx": "^1.1.1","color-namer": "1.4.0","copy-text-to-clipboard": "^2",+ "crawlchat-client": "^1.2.1","create-video": "workspace:*","eslint": "catalog:","hls.js": "^0.14.17",@@ -105,7 +107,6 @@"lottie-web": "5.13.0","mapbox-gl": "3.18.1","mediabunny": "catalog:",- "@mediabunny/ac3": "catalog:","mux-embed": "^4.16.0","next": "catalog:","plyr": "3.7.3",diff --git a/packages/docs/src/theme/Layout/index.tsx b/packages/docs/src/theme/Layout/index.tsxindex fe0f0bf11f..0a70a0bfa5 100644--- a/packages/docs/src/theme/Layout/index.tsx+++ b/packages/docs/src/theme/Layout/index.tsx@@ -1,12 +1,16 @@+import {useHistory} from '@docusaurus/router';import type {WrapperProps} from '@docusaurus/types';import '@remotion/promo-pages/dist/tailwind.css';import Layout from '@theme-original/Layout';import type LayoutType from '@theme/Layout';+import {useCrawlChatSidePanel} from 'crawlchat-client';import React, {type ReactNode} from 'react';type Props = WrapperProps<typeof LayoutType>;const LayoutWrapper = (props: Props): ReactNode => {+ useCrawlChatSidePanel({history: useHistory()});+return (<><Layout {...props} />@@ -16,12 +20,6 @@ const LayoutWrapper = (props: Props): ReactNode => {id="crawlchat-script"data-id="67c0a28c5b075f0bb35e5366"data-sidepanel="true"- data-ask-ai="true"- data-ask-ai-background-color="#282A36"- data-ask-ai-color="#ffffff"- data-ask-ai-text="Ask AI"- data-ask-ai-position="br"- data-ask-ai-radius="20px"/></>);