Skip to content

Commit

Permalink
fix: fix style issues and import name in rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
justusmattern27 committed Mar 17, 2024
1 parent 5702d4b commit 242027b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 32 deletions.
2 changes: 1 addition & 1 deletion packages/core/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 2 additions & 4 deletions packages/docs/blog/2023-02-08-version-2.1.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/blog/2023-02-11-version-2.3.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 2 additions & 4 deletions packages/docs/blog/2023-02-18-version-2.4.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/docs/advanced/plugins/editor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/docs/advanced/plugins/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions packages/docs/docs/advanced/plugins/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions packages/docs/docs/components/bezier.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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<CubicBezier>();
Expand Down
5 changes: 2 additions & 3 deletions packages/docs/docs/migration/3.0.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/docs/migration/updating.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 242027b

Please sign in to comment.