From 242027b4aaad7fbc836f3c64276bc9ca2d93623b Mon Sep 17 00:00:00 2001 From: justusmattern27 Date: Sun, 17 Mar 2024 20:07:50 +0100 Subject: [PATCH] fix: fix style issues and import name in rollup --- packages/core/rollup.config.mjs | 2 +- packages/docs/blog/2023-02-08-version-2.1.0.mdx | 6 ++---- packages/docs/blog/2023-02-11-version-2.3.0.mdx | 3 +-- packages/docs/blog/2023-02-18-version-2.4.0.mdx | 6 ++---- packages/docs/docs/advanced/plugins/editor.mdx | 12 ++++++------ packages/docs/docs/advanced/plugins/index.mdx | 3 +-- packages/docs/docs/advanced/plugins/node.mdx | 4 ++-- packages/docs/docs/components/bezier.mdx | 7 +------ packages/docs/docs/migration/3.0.0.mdx | 5 ++--- packages/docs/docs/migration/updating.mdx | 3 +-- 10 files changed, 19 insertions(+), 32 deletions(-) diff --git a/packages/core/rollup.config.mjs b/packages/core/rollup.config.mjs index 0d6b2b8b..e0fa1979 100644 --- a/packages/core/rollup.config.mjs +++ b/packages/core/rollup.config.mjs @@ -1,4 +1,4 @@ -import typescript from '@motion-canvas/internal/rollup/typescript.mjs'; +import typescript from '@revideo/internal/rollup/typescript.mjs'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; import terser from '@rollup/plugin-terser'; diff --git a/packages/docs/blog/2023-02-08-version-2.1.0.mdx b/packages/docs/blog/2023-02-08-version-2.1.0.mdx index f3d8a8f8..353ad584 100644 --- a/packages/docs/blog/2023-02-08-version-2.1.0.mdx +++ b/packages/docs/blog/2023-02-08-version-2.1.0.mdx @@ -16,8 +16,7 @@ authors: aarthificial - **2d:** fix font ligatures in CodeBlock ([#231](https://github.com/revideo/revideo/issues/231)) ([11ee3fe](https://github.com/revideo/revideo/commit/11ee3fef5ad878313cf19833df6881333ced4dac)) -- **2d:** fix Line cache - ([#232](https://github.com/revideo/revideo/issues/232)) +- **2d:** fix Line cache ([#232](https://github.com/revideo/revideo/issues/232)) ([a953b64](https://github.com/revideo/revideo/commit/a953b64540c020657845efc84d4179142a7a0974)), closes [#205](https://github.com/revideo/revideo/issues/205) - **2d:** handle lines with no points @@ -31,8 +30,7 @@ authors: aarthificial - **2d:** stop code highlighting from jumping ([#230](https://github.com/revideo/revideo/issues/230)) ([67ef1c4](https://github.com/revideo/revideo/commit/67ef1c497056dd1f8f9e20d1d7fc1af03ec3849e)) -- **core:** fix looping - ([#217](https://github.com/revideo/revideo/issues/217)) +- **core:** fix looping ([#217](https://github.com/revideo/revideo/issues/217)) ([a38e1a7](https://github.com/revideo/revideo/commit/a38e1a7c8fc21384cc17f3f982802071b8cd0cbf)), closes [#178](https://github.com/revideo/revideo/issues/178) - fix compound property setter diff --git a/packages/docs/blog/2023-02-11-version-2.3.0.mdx b/packages/docs/blog/2023-02-11-version-2.3.0.mdx index 85dc2e59..4f148c41 100644 --- a/packages/docs/blog/2023-02-11-version-2.3.0.mdx +++ b/packages/docs/blog/2023-02-11-version-2.3.0.mdx @@ -39,8 +39,7 @@ authors: aarthificial ([#287](https://github.com/revideo/revideo/issues/287)) ([cb07f4b](https://github.com/revideo/revideo/commit/cb07f4bdf07edc8a086b934ca5ab769682b9a010)) - Using space to play/pause the animation when focused on the play button now - works properly - ([#299](https://github.com/revideo/revideo/issues/299)) + works properly ([#299](https://github.com/revideo/revideo/issues/299)) ([191f54a](https://github.com/revideo/revideo/commit/191f54a0a5a9de2fd2dc27bffc6d21d692ce6f72)) - The glossy effect on the select element has been removed in Safari ([#292](https://github.com/revideo/revideo/issues/292)) diff --git a/packages/docs/blog/2023-02-18-version-2.4.0.mdx b/packages/docs/blog/2023-02-18-version-2.4.0.mdx index c5e8eabd..dd356611 100644 --- a/packages/docs/blog/2023-02-18-version-2.4.0.mdx +++ b/packages/docs/blog/2023-02-18-version-2.4.0.mdx @@ -7,8 +7,7 @@ authors: aarthificial ### Features - [`DEFAULT`](/docs/signals#default-values) signal values. `lineHeight` now - supports percentages. - ([#259](https://github.com/revideo/revideo/issues/259)) + supports percentages. ([#259](https://github.com/revideo/revideo/issues/259)) ([18f61a6](https://github.com/revideo/revideo/commit/18f61a668420dec8afba52d52a6557e7a7919ba2)) - New [`moveBelow`](/api/2d/components/Node#moveBelow), [`moveAbove`](/api/2d/components/Node#moveAbove) and @@ -55,8 +54,7 @@ authors: aarthificial ([#204](https://github.com/revideo/revideo/issues/204)). ([#339](https://github.com/revideo/revideo/issues/339)) ([6771e5e](https://github.com/revideo/revideo/commit/6771e5e17edcdc4cce074d7da0962cf71ba6c228)) -- **docs:** fix search - ([#336](https://github.com/revideo/revideo/issues/336)) +- **docs:** fix search ([#336](https://github.com/revideo/revideo/issues/336)) ([e44ec02](https://github.com/revideo/revideo/commit/e44ec02539a67f099471a6aa84f673a236494687)) - typo on codeblock remove comments ([#368](https://github.com/revideo/revideo/issues/368)) diff --git a/packages/docs/docs/advanced/plugins/editor.mdx b/packages/docs/docs/advanced/plugins/editor.mdx index 190b3d50..c5be7b04 100644 --- a/packages/docs/docs/advanced/plugins/editor.mdx +++ b/packages/docs/docs/advanced/plugins/editor.mdx @@ -73,18 +73,18 @@ export const CustomTabConfig: PluginTabConfig = { First of all, the editor is built on top of [Preact](https://preactjs.com/). Just like Motion Canvas, Preact uses JSX to define components. This means that in `tsx` files extending the editor, we need to let TypeScript know that it -should import the `jsx` factory function from `preact` and not -`@revideo/2d`. This can be done in multiple different ways. In this simple -example, we'll just use a comment at the top of the file: +should import the `jsx` factory function from `preact` and not `@revideo/2d`. +This can be done in multiple different ways. In this simple example, we'll just +use a comment at the top of the file: ```tsx /* @jsxImportSource preact */ ``` Next, we define a component for the tab itself. This component will be rendered -in the navigation bar on the left. We use the `Tab` component from -`@revideo/ui` to stay consistent with the rest of the editor. We also -borrow the `PhotoCamera` icon and put it inside: +in the navigation bar on the left. We use the `Tab` component from `@revideo/ui` +to stay consistent with the rest of the editor. We also borrow the `PhotoCamera` +icon and put it inside: ```tsx function TabComponent({tab}: PluginTabProps) { diff --git a/packages/docs/docs/advanced/plugins/index.mdx b/packages/docs/docs/advanced/plugins/index.mdx index 6660e57f..4917cf93 100644 --- a/packages/docs/docs/advanced/plugins/index.mdx +++ b/packages/docs/docs/advanced/plugins/index.mdx @@ -32,5 +32,4 @@ fully-fledged plugin. It's runtime portion provides the editor with a Video [exporter](/api/core/app/Exporter) that sends the rendered frames over to Node.js. The server portion then uses FFmpeg to convert the frames into a video. -[ffmpeg-plugin]: - https://github.com/revideo/exporters/tree/main/packages/ffmpeg +[ffmpeg-plugin]: https://github.com/revideo/exporters/tree/main/packages/ffmpeg diff --git a/packages/docs/docs/advanced/plugins/node.mdx b/packages/docs/docs/advanced/plugins/node.mdx index 446b2f88..012a40ec 100644 --- a/packages/docs/docs/advanced/plugins/node.mdx +++ b/packages/docs/docs/advanced/plugins/node.mdx @@ -11,8 +11,8 @@ sidebar_position: 3 Motion Canvas builds on top of the Vite plugin system. To create a plugin that runs on Node.js, you just create a [Vite plugin][vite-plugin] and import it in -your `vite.config.ts` file. On top of that, `@revideo/vite-plugin` -provides a symbol that lets you define revideo-specific options. +your `vite.config.ts` file. On top of that, `@revideo/vite-plugin` provides a +symbol that lets you define revideo-specific options. Let's start by creating a file for our plugin. This time we'll put it in the root directory of our project because Vite plugins are not part of the runtime diff --git a/packages/docs/docs/components/bezier.mdx b/packages/docs/docs/components/bezier.mdx index 09e7d86a..607dac35 100644 --- a/packages/docs/docs/components/bezier.mdx +++ b/packages/docs/docs/components/bezier.mdx @@ -253,12 +253,7 @@ export default makeScene2D(function* (view) { // snippet Moving nodes along a curve import {makeScene2D, CubicBezier, Rect} from '@revideo/2d'; -import { - createRef, - waitFor, - createSignal, - createComputed, -} from '@revideo/core'; +import {createRef, waitFor, createSignal, createComputed} from '@revideo/core'; export default makeScene2D(function* (view) { const bezier = createRef(); diff --git a/packages/docs/docs/migration/3.0.0.mdx b/packages/docs/docs/migration/3.0.0.mdx index b0fe3e73..44b64484 100644 --- a/packages/docs/docs/migration/3.0.0.mdx +++ b/packages/docs/docs/migration/3.0.0.mdx @@ -83,9 +83,8 @@ Over to the meta file: ## `CodeBlock` revert -Due to technical issues, -[PR #401](https://github.com/revideo/revideo/pull/401) has been -reverted. +Due to technical issues, [PR #401](https://github.com/revideo/revideo/pull/401) +has been reverted. - The [`CodeBlock`](/docs/code-block) should be imported using the full path again: diff --git a/packages/docs/docs/migration/updating.mdx b/packages/docs/docs/migration/updating.mdx index 1f29cb5b..ecd5b5bf 100644 --- a/packages/docs/docs/migration/updating.mdx +++ b/packages/docs/docs/migration/updating.mdx @@ -8,8 +8,7 @@ slug: /updating The latest patch notes can be found [here](https://github.com/revideo/revideo/releases). -To update all the `@revideo` packages to the latest version use the -following: +To update all the `@revideo` packages to the latest version use the following: ```bash npm update --save @revideo/2d @revideo/core @revideo/ui @revideo/vite-plugin