Skip to content

🎥 Make videos programmatically with React

make it pass some more

Jonny Burger592dc859d9d1
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000000..3a997eafc5
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,5 @@
+packages/docs/docs/artifacts.mdx
+packages/docs/docs/calculate-metadata.mdx
+packages/docs/docs/transitions/transitionseries.mdx
+packages/docs/docs/transitions/presentations/custom.mdx
+packages/docs/docs/studio-app.mdx
diff --git a/packages/docs/docs/artifacts.mdx b/packages/docs/docs/artifacts.mdx
index 619223cf28..1a670f7870 100644
--- a/packages/docs/docs/artifacts.mdx
+++ b/packages/docs/docs/artifacts.mdx
@@ -2,7 +2,7 @@
image: /generated/articles-docs-artifacts.png
title: Emitting Artifacts
id: artifacts
-crumb: "Techniques"
+crumb: 'Techniques'
---
# Emitting Artifacts<AvailableFrom v="4.0.176" />
@@ -30,9 +30,9 @@ export const generateSubtitles = () => {
};
// @filename: MyComp.tsx
// ---cut---
-import React from "react";
-import { Artifact, useCurrentFrame } from "remotion";
-import { generateSubtitles } from "./subtitles";
+import React from 'react';
+import {Artifact, useCurrentFrame} from 'remotion';
+import {generateSubtitles} from './subtitles';
export const MyComp: React.FC = () => {
const frame = useCurrentFrame();
@@ -54,11 +54,7 @@ Otherwise, the asset will get emitted multiple times. <br />
<Step>2</Step> It is possible to emit multiple assets, but they may not have the
same filename.
<br />
-
-<Step>3</Step> For the <code>content</code> prop it is possible to pass a <code>
- string
-</code>
-, or a <code>Uint8Array</code> for binary data. Passing an <code>
+<Step>3</Step> For the <code>content</code> prop it is possible to pass a <code>string</code>, or a <code>Uint8Array</code> for binary data. Passing an <code>
Uint8Array
</code> should not be considered faster due to it having to be serialized.
<br />
@@ -76,8 +72,8 @@ Use the [`onArtifact`](/docs/renderer/render-media#onartifact) callback to recei
```tsx twoslash title="render.mjs"
// @module: es2022
// @target: es2017
-import type { VideoConfig } from "remotion";
-import fs from "fs";
+import type {VideoConfig} from 'remotion';
+import fs from 'fs';
const composition: VideoConfig = {
width: 100,
@@ -86,13 +82,13 @@ const composition: VideoConfig = {
defaultProps: {},
props: {},
defaultCodec: null,
- id: "hi",
+ id: 'hi',
durationInFrames: 100,
};
-const serveUrl = "http://localhost:8080";
+const serveUrl = 'http://localhost:8080';
const inputProps = {};
// ---cut---
-import { renderMedia, OnArtifact } from "@remotion/renderer";
+import {renderMedia, OnArtifact} from '@remotion/renderer';
const onArtifact: OnArtifact = (artifact) => {
console.log(artifact.filename); // string
@@ -107,7 +103,7 @@ await renderMedia({
composition,
serveUrl,
onArtifact,
- codec: "h264",
+ codec: 'h264',
inputProps,
});
```
@@ -128,13 +124,13 @@ You can obtain a list of currently received assets from [`getRenderProgress()`](
```tsx twoslash title="progress.ts"
// @module: es2022
// @target: es2017
-import { getRenderProgress } from "@remotion/lambda/client";
+import {getRenderProgress} from '@remotion/lambda/client';
const renderProgress = await getRenderProgress({
- renderId: "hi",
- functionName: "hi",
- bucketName: "hi",
- region: "eu-central-1",
+ renderId: 'hi',
+ functionName: 'hi',
+ bucketName: 'hi',
+ region: 'eu-central-1',
});
for (const artifact of renderProgress.artifacts) {
@@ -152,18 +148,18 @@ When using [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda), artifact
You can obtain a list of received assets from [`artifacts`](/docs/lambda/renderstillonlambda#artifacts) field of `renderStillOnLambda()`.
```tsx twoslash title="still.ts"
-const serveUrl = "http://localhost:8080";
+const serveUrl = 'http://localhost:8080';
const inputProps = {};
-const functionName = "hi";
-const composition = "hi";
-const privacy = "public" as const;
-const imageFormat = "png" as const;
-const region = "eu-central-1" as const;
+const functionName = 'hi';
+const composition = 'hi';
+const privacy = 'public' as const;
+const imageFormat = 'png' as const;
+const region = 'eu-central-1' as const;
// ---cut---
// @module: es2022
// @target: es2017
-import { renderStillOnLambda } from "@remotion/lambda/client";
+import {renderStillOnLambda} from '@remotion/lambda/client';
const stillResponse = await renderStillOnLambda({
functionName,
diff --git a/packages/docs/docs/calculate-metadata.mdx b/packages/docs/docs/calculate-metadata.mdx
index e73b9bab66..bdf59bc081 100644
--- a/packages/docs/docs/calculate-metadata.mdx
+++ b/packages/docs/docs/calculate-metadata.mdx
@@ -11,9 +11,7 @@ crumb: "API"
Use it if you:
-<Step>1</Step> need to make the duration, width, height, or fps <a href="/docs/dynamic-metadata">
- dynamic based on some data
-</a>
+<Step>1</Step> need to make the duration, width, height, or fps <a href="/docs/dynamic-metadata">dynamic based on some data</a>
<br />
<Step>2</Step> want to transform the props passed to the composition, for example
to do <a href="/docs/data-fetching">data fetching</a>
diff --git a/packages/docs/docs/chromium-flags.mdx b/packages/docs/docs/chromium-flags.mdx
index 4accae69eb..a1662ef36a 100644
--- a/packages/docs/docs/chromium-flags.mdx
+++ b/packages/docs/docs/chromium-flags.mdx
@@ -2,11 +2,9 @@
image: /generated/articles-docs-chromium-flags.png
id: chromium-flags
title: Chromium flags
-crumb: "Tweaks"
+crumb: 'Tweaks'
---
-import {AngleChangelog} from '../components/AngleChangelog';
-
We allow you to set the following flags in Chromium and Google Chrome since Remotion 2.6.5:
## `--disable-web-security`
@@ -30,7 +28,7 @@ Pass [`--disable-web-security`](/docs/cli/render#--disable-web-security) in one
Use [setChromiumDisableWebSecurity()](/docs/config#setchromiumdisablewebsecurity).
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -58,7 +56,7 @@ Pass [`--ignore-certificate-errors`](/docs/cli/render#--ignore-certificate-error
Use [setChromiumIgnoreCertificateErrors()](/docs/config#setchromiumignorecertificateerrors).
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -71,7 +69,7 @@ Prior to `v3.3.39`, the option was called `Config.Puppeteer.setChromiumIgnoreCer
## `--disable-headless`
-<Options id="disable-headless" />
+<Options id="disable-headless" />
### Via Node.JS APIs
@@ -86,7 +84,7 @@ Pass [`--disable-headless`](/docs/cli/render#--disable-headless) in one of the f
Use [setChromiumHeadlessMode()](/docs/config#setchromiumheadlessmode).
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -112,11 +110,11 @@ Pass [`--gl=swiftshader`](/docs/cli) in one of the following commands: [`remotio
### Via config file
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setChromiumOpenGlRenderer("swiftshader");
+Config.setChromiumOpenGlRenderer('swiftshader');
```
:::note
diff --git a/packages/docs/docs/cli/cli.mdx b/packages/docs/docs/cli/cli.mdx
index 236b035ede..04908b56d2 100644
--- a/packages/docs/docs/cli/cli.mdx
+++ b/packages/docs/docs/cli/cli.mdx
@@ -5,8 +5,7 @@ sidebar_label: CLI reference
id: cli
---
-import { AngleChangelog } from "../../components/AngleChangelog";
-import { TableOfContents } from "../../components/TableOfContents/cli";
+import {TableOfContents} from '../../components/TableOfContents/cli';
## How to use
diff --git a/packages/docs/docs/cli/render.mdx b/packages/docs/docs/cli/render.mdx
index d2dbe9fae9..be9fdb7a0b 100644
--- a/packages/docs/docs/cli/render.mdx
+++ b/packages/docs/docs/cli/render.mdx
@@ -5,8 +5,6 @@ sidebar_label: render
crumb: CLI Reference
---
-import { AngleChangelog } from "../../components/AngleChangelog";
-
Render a video or audio based on the entry point, the composition ID and save it to the output location.
```bash
diff --git a/packages/docs/docs/cli/still.mdx b/packages/docs/docs/cli/still.mdx
index 8eb85ea270..95456c766b 100644
--- a/packages/docs/docs/cli/still.mdx
+++ b/packages/docs/docs/cli/still.mdx
@@ -5,8 +5,6 @@ sidebar_label: still
crumb: CLI Reference
---
-import {AngleChangelog} from '../../components/AngleChangelog';
-
_Available from v2.3._
Render a still frame based on the entry point, the composition ID and save it to the output location.
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index cea71031f3..266a9579de 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -2,11 +2,9 @@
image: /generated/articles-docs-config.png
id: config
title: Configuration file
-crumb: "remotion.config.ts"
+crumb: 'remotion.config.ts'
---
-import { AngleChangelog } from "../components/AngleChangelog";
-
To configure Remotion, create a `remotion.config.ts` file in the root of your Remotion project.
These options will apply to CLI commands such as `npx remotion studio` and `npx remotion render`.
@@ -18,11 +16,11 @@ The configuration file has no effect when using [SSR](/docs/renderer) APIs.
You can control several behaviors of Remotion here.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
Config.setConcurrency(8);
-Config.setPixelFormat("yuv444p");
-Config.setCodec("h265");
+Config.setPixelFormat('yuv444p');
+Config.setCodec('h265');
```
## overrideWebpackConfig()<AvailableFrom v="1.1.0" />
@@ -30,7 +28,7 @@ Config.setCodec("h265");
Allows you to insert your custom Webpack config. [See the page about custom Webpack configs](/docs/webpack) for more information.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.overrideWebpackConfig((currentConfiguration) => {
// Return a new Webpack configuration
@@ -46,7 +44,7 @@ Config.overrideWebpackConfig((currentConfiguration) => {
Enable or disable Webpack caching. Default is `true` which will make the Webpack step in the first run a bit slower but will massively speed up subsequent runs.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setCachingEnabled(false);
```
@@ -58,7 +56,7 @@ The [command line flag](/docs/cli/render#--bundle-cache) `--bundle-cache` will t
Set the HTTP port for the Studio.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setStudioPort(3003);
```
@@ -70,7 +68,7 @@ The [command line flag](/docs/cli/studio#--port) `--port` will take precedence o
Set the port to be used to host the Webpack bundle.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setStudioPort(3004);
```
@@ -82,9 +80,9 @@ The [command line flag](/docs/cli/render#--port) `--port` will take precedence o
<Options id="public-dir" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setPublicDir("./custom-public-dir");
+Config.setPublicDir('./custom-public-dir');
```
The [command line flag](/docs/cli/render#--public-dir) `--public-dir` will take precedence over this option.
@@ -94,9 +92,9 @@ The [command line flag](/docs/cli/render#--public-dir) `--public-dir` will take
Sets the Remotion [entry point](/docs/terminology/entry-point), you don't have to specify it for CLI commands.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setEntryPoint("./src/index.ts");
+Config.setEntryPoint('./src/index.ts');
```
If you pass an entry point as a CLI argument, it will take precedence.
@@ -112,9 +110,9 @@ Acceptable values:
- `verbose`: All of the above, plus browser logs and other debug info.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setLevel("verbose");
+Config.setLevel('verbose');
```
The [command line flag](/docs/cli/render#--log) `--log` will take precedence over this option.
@@ -124,7 +122,7 @@ The [command line flag](/docs/cli/render#--log) `--log` will take precedence ove
Set how many tracks are being displayed in the timeline in the Studio at most. This does not affect your video, just the amount of tracks shown when previewing. Default `15`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setMaxTimelineTracks(20);
```
@@ -134,7 +132,7 @@ Config.setMaxTimelineTracks(20);
Whether the Studio should react to keyboard shortcuts. Default `true`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setKeyboardShortcutsEnabled(false);
```
@@ -147,7 +145,7 @@ Enables Webpack polling instead of the file system event listeners for hot reloa
This is useful if you are inside a virtual machine or have a remote file system.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setWebpackPollingInMilliseconds(1000);
```
@@ -159,7 +157,7 @@ The [command line flag](/docs/cli/studio#--webpack-poll) `--webpack-poll` will t
How many shared audio tags should be mounted in the Studio. Shared audio tags can help prevent playback issues due to audio autoplay policies of the browser. See [this article](/docs/player/autoplay#use-the-numberofsharedaudiotags-property) which covers the same option but for the Player. Default `0`, meaning no autoplay policies are circumvented.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setNumberOfSharedAudioTags(5);
@@ -170,7 +168,7 @@ Config.setNumberOfSharedAudioTags(5);
Whether Remotion should open a browser when starting the Studio. Default `true`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setShouldOpenBrowser(false);
@@ -181,9 +179,9 @@ Config.setShouldOpenBrowser(false);
Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need [support for the H264 codec](/docs/video#codec-support).
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setBrowserExecutable("/usr/bin/google-chrome-stable");
+Config.setBrowserExecutable('/usr/bin/google-chrome-stable');
```
The [command line flag](/docs/cli/render#--browser-executable) `--browser-executable` will take precedence over this option.
@@ -195,7 +193,7 @@ _previously named "setTimeoutInMilliseconds"_
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setDelayRenderTimeoutInMilliseconds(60000);
```
@@ -207,7 +205,7 @@ The [command line flag](/docs/cli/render#--timeout) `--timeout` will take preced
This will most notably disable CORS among other security features during rendering.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -221,7 +219,7 @@ The [command line flag](/docs/cli/render#--disable-web-security) `--disable-web-
Results in invalid SSL certificates, such as self-signed ones, being ignored during rendering.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -235,7 +233,7 @@ The [command line flag](/docs/cli/render#--ignore-certificate-errors) `--ignore-
<Options id="disable-headless" />
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -247,7 +245,7 @@ Config.setChromiumHeadlessMode(false);
<Options id="enable-multiprocess-on-linux" cli />
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
@@ -261,11 +259,11 @@ The [command line flag](/docs/cli/render#--enable-multiprocess-on-linux) `--enab
<Options id="gl" />
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setChromiumOpenGlRenderer("angle");
+Config.setChromiumOpenGlRenderer('angle');
```
The [command line flag](/docs/cli/render#--gl) `--gl` will take precedence over this option.
@@ -276,7 +274,7 @@ Sets how many Puppeteer instances will work on rendering your video in parallel.
Default: `null`, meaning **half of the threads** available on your CPU.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setConcurrency(8);
```
@@ -296,9 +294,9 @@ Determines which in which image format to render the frames. Either:
- `none` - don't render images, just calculate audio information
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setVideoImageFormat("png");
+Config.setVideoImageFormat('png');
```
## setStillImageFormat()<AvailableFrom v="4.0.0" />
@@ -311,9 +309,9 @@ Determines which in which image format to render the frames. Either:
- `webp`
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setStillImageFormat("pdf");
+Config.setStillImageFormat('pdf');
```
## ~~setImageFormat()~~<AvailableFrom v="1.4.0" />
@@ -329,9 +327,9 @@ Determines which in which image format to render the frames. Either:
- `none` - don't render images, just calculate audio information (available from v2.0)
```ts title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setImageFormat("png");
+Config.setImageFormat('png');
```
The [command line flag](/docs/cli/render#--image-format) `--image-format` will take precedence over this option.
@@ -341,7 +339,7 @@ The [command line flag](/docs/cli/render#--image-format) `--image-format` will t
[Scales the output frames by the factor you pass in.](/docs/scaling) For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details. Default: `1`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setScale(2);
```
@@ -353,7 +351,7 @@ The [command line flag](/docs/cli/render#--scale) `--scale` will take precedence
Disables audio output. Default `false`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setMuted(true);
```
@@ -365,7 +363,7 @@ The [command line flag](/docs/cli/render#--muted) `--muted` will take precedence
Render a silent audio track if there would be none otherwise. Default `false`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setEnforceAudioTrack(true);
```
@@ -377,7 +375,7 @@ The [command line flag](/docs/cli/render#--enforce-audio-track) `--enforce-audio
<Options id="for-seamless-aac-concatenation" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setForSeamlessAacConcatenation(true);
```
@@ -389,7 +387,7 @@ The [command line flag](/docs/cli/render#--for-seamless-aac-concatenation) `--fo
Pass a number to render a still frame or a tuple to render a subset of a video. The frame sequence is zero-indexed.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setFrameRange(90); // To render only the 91st frame
```
@@ -397,7 +395,7 @@ Config.setFrameRange(90); // To render only the 91st frame
or
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setFrameRange([0, 20]); // Render a video only containing the first 21 frames
```
@@ -409,7 +407,7 @@ The [command line flag](/docs/cli/render#--frames) `--frames` will take preceden
The JPEG quality of each frame. Must be a number between 0 and 100. Will not work if you render PNG frames. [Default: 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setJpegQuality(90);
```
@@ -425,9 +423,9 @@ Renamed to `setJpegQuality` in `v4.0.0`.
Set a custom location for a [`.env`](https://www.npmjs.com/package/dotenv) file. You can specify an absolute path or a relative path in which case it gets resolved based on the current working directory.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setDotEnvLocation(".my-env");
+Config.setDotEnvLocation('.my-env');
```
The [command line flag](/docs/cli/render#--env-file) `--env-file` will take precedence over this option.
@@ -439,7 +437,7 @@ This option may only be set when rendering GIFs. [It determines how many frames
For example, if the `fps` is 30, and `everyNthFrame` is 2, the FPS of the GIF is `15`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setEveryNthFrame(2);
```
@@ -451,7 +449,7 @@ The [command line flag](/docs/cli/render#--every-nth-frame) `--every-nth-frame`
<Options id="number-of-gif-loops" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setNumberOfGifLoops(2);
```
@@ -463,9 +461,9 @@ The [command line flag](/docs/cli/render#--number-of-gif-loops) `--number-of-gif
Set the output location of the video or still, relative to the current working directory. The default is `out/{composition}.{container}`. For example, `out/HelloWorld.mp4`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setOutputLocation("out/video.mp4");
+Config.setOutputLocation('out/video.mp4');
```
If you pass another argument to the render command, it will take precedence: `npx remotion render src/index.ts HelloWorld out/video.mp4`.
@@ -475,7 +473,7 @@ If you pass another argument to the render command, it will take precedence: `np
Set this to `false` to prevent overwriting Remotion outputs when they already exists.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setOverwriteOutput(false);
```
@@ -490,9 +488,9 @@ Controls the pixel format in FFmpeg. [Read more about it here.](https://trac.ffm
Default value: `yuv420p`
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setPixelFormat("yuv420p");
+Config.setPixelFormat('yuv420p');
```
The [command line flag](/docs/cli/render#--pixel-format) `--pixel-format` will take precedence over this option.
@@ -511,9 +509,9 @@ Choose one of the supported codecs: `h264` _(default)_, `h265`, `vp8`, `vp9`.
- `aac` will export audio only as an AAC file _(available from v2.0)_
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setCodec("h265");
+Config.setCodec('h265');
```
The [command line flag](/docs/cli/render#--codec) `--codec` will take precedence over this option.
@@ -523,9 +521,9 @@ The [command line flag](/docs/cli/render#--codec) `--codec` will take precedence
## setAudioCodec()
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setAudioCodec("pcm-16");
+Config.setAudioCodec('pcm-16');
```
Choose the encoding of your audio.
@@ -547,9 +545,9 @@ See [here](https://video.stackexchange.com/a/14715) for explanation of possible
Default: `hq`
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setProResProfile("4444");
+Config.setProResProfile('4444');
```
The [command line flag](/docs/cli/render#--prores-profile) `--prores-profile` will take precedence over this option.
@@ -561,9 +559,9 @@ Possible values: `superfast`, `veryfast`, `faster`, `fast`, `medium`, `slow`, `s
Default: `medium`
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setX264Preset("fast");
+Config.setX264Preset('fast');
```
The [command line flag](/docs/cli/render#--prores-profile) `--prores-profile` will take precedence over this option.
@@ -575,7 +573,7 @@ The [command line flag](/docs/cli/render#--prores-profile) `--prores-profile` wi
Set to true if you want to output an image sequence instead of a video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setImageSequence(true);
```
@@ -587,7 +585,7 @@ The [command line flag](/docs/cli/render#--sequence) `--sequence` will take prec
Overrides the height of the rendered video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.overrideHeight(600);
```
@@ -600,7 +598,7 @@ The [command line flag](/docs/cli/render#--height) `--height` will take preceden
Overrides the width of the rendered video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.overrideWidth(900);
```
@@ -615,9 +613,9 @@ _Deprecated_. Use `setCodec()` and `setImageSequence()` instead.
Either `'mp4'` or `'png-sequence'`.
```ts title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setOutputFormat("mp4");
+Config.setOutputFormat('mp4');
```
The [command line flags](/docs/cli) `--sequence` and `--codec` will take precedence over this option.
@@ -642,7 +640,7 @@ The range is exponential, so increasing the CRF value +6 results in roughly half
Choose the highest CRF value that still provides an acceptable quality. If the output looks good, then try a higher value. If it looks bad, choose a lower value.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setCrf(16);
```
@@ -654,9 +652,9 @@ The [command line flag](/docs/cli/render#--crf) `--crf` will take precedence ove
<Options id="video-bitrate" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setVideoBitrate("1M");
+Config.setVideoBitrate('1M');
```
The [command line flag](/docs/cli/render#--video-bitrate) `--video-bitrate` will take precedence over this option.
@@ -666,9 +664,9 @@ The [command line flag](/docs/cli/render#--video-bitrate) `--video-bitrate` will
<Options id="buffer-size" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setEncodingBufferSize("10000k");
+Config.setEncodingBufferSize('10000k');
```
The [command line flag](/docs/cli/render#--buffer-size) `--buffer-size` will take precedence over this option.
@@ -678,9 +676,9 @@ The [command line flag](/docs/cli/render#--buffer-size) `--buffer-size` will tak
<Options id="max-rate" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setEncodingMaxRate("5000k");
+Config.setEncodingMaxRate('5000k');
```
The [command line flag](/docs/cli/render#--max-rate) `--max-rate` will take precedence over this option.
@@ -690,9 +688,9 @@ The [command line flag](/docs/cli/render#--max-rate) `--max-rate` will take prec
<Options id="audio-bitrate" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setAudioBitrate("128K");
+Config.setAudioBitrate('128K');
```
The [command line flag](/docs/cli/render#--audio-bitrate) `--audio-bitrate` will take precedence over this option.
@@ -704,7 +702,7 @@ The [command line flag](/docs/cli/render#--audio-bitrate) `--audio-bitrate` will
<br />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setEnableFolderExpiry(true);
```
@@ -716,7 +714,7 @@ Config.setEnableFolderExpiry(true);
<br />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setLambdaInsights(true);
```
@@ -728,9 +726,9 @@ Config.setLambdaInsights(true);
<br />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setDeleteAfter("3-days");
+Config.setDeleteAfter('3-days');
```
## `setBeepOnFinish()`<AvailableFrom v="4.0.84" />
@@ -740,7 +738,7 @@ Config.setDeleteAfter("3-days");
<br />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setBeepOnFinish(true);
```
@@ -752,7 +750,7 @@ The [command line flag](/docs/cli/studio#--beep-on-finish) `--beep-on-finish` wi
Set the amount of milliseconds after which the Player in the Studio will display a buffering UI after the Player has entered a buffer state. Default `300`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setBufferStateDelayInMilliseconds(0);
```
@@ -762,9 +760,9 @@ Config.setBufferStateDelayInMilliseconds(0);
<Options id="binaries-directory" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setBinariesDirectory("/path/to/custom/directory");
+Config.setBinariesDirectory('/path/to/custom/directory');
```
## `setPreferLosslessAudio?`<AvailableFrom v="4.0.123" />
@@ -772,7 +770,7 @@ Config.setBinariesDirectory("/path/to/custom/directory");
<Options id="prefer-lossless" />
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setPreferLosslessAudio(true);
```
@@ -782,21 +780,21 @@ Config.setPreferLosslessAudio(true);
Modifies the FFmpeg command that Remotion uses under the hood. It works reducer-style, meaning that you pass a function that takes a command as an argument and returns a new command.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.overrideFfmpegCommand(({ args }) => {
+Config.overrideFfmpegCommand(({args}) => {
// Define the custom FFmpeg options as an array of strings
const customFfmpegOptions = [
- "-profile:v",
- "main",
- "-video_track_timescale",
- "90000",
- "-color_primaries",
- "bt709",
- "-color_trc",
- "bt709",
- "-strict",
- "experimental",
+ '-profile:v',
+ 'main',
+ '-video_track_timescale',
+ '90000',
+ '-color_primaries',
+ 'bt709',
+ '-color_trc',
+ 'bt709',
+ '-strict',
+ 'experimental',
];
// The customFfmpegOptions are inserted before the last element to ensure
// they appear before the ffmpeg's output path
@@ -830,9 +828,9 @@ _removed in v4.0_
Allows you to use a custom FFmpeg binary. Must be an absolute path. By default, this is null and the FFmpeg in `PATH` will be used.
```ts title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setFfmpegExecutable("/path/to/custom/ffmpeg");
+Config.setFfmpegExecutable('/path/to/custom/ffmpeg');
```
The [command line flag](/docs/cli/render#--ffmpeg-executable) `--ffmpeg-executable` will take precedence over this option.
@@ -844,9 +842,9 @@ _removed in v4.0_
Allows you to use a custom `ffprobe` binary. Must be an absolute path. By default, this is null and the `ffprobe` in `PATH` will be used.
```ts title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
-Config.setFfprobeExecutable("/path/to/custom/ffprobe");
+Config.setFfprobeExecutable('/path/to/custom/ffprobe');
```
The [command line flag](/docs/cli/render#--ffprobe-executable) `--ffprobe-executable` will take precedence over this option.
@@ -870,7 +868,7 @@ Use the options individually.
:::
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setPort(3003);
```
@@ -883,15 +881,15 @@ The [config file](/docs/config) gets executed in a CommonJS environment. If you
```ts twoslash title="remotion.config.ts"
// @filename: src/enable-sass.ts
-import { WebpackOverrideFn } from "@remotion/bundler";
+import {WebpackOverrideFn} from '@remotion/bundler';
export const enableSass: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
Config.overrideWebpackConfig(async (currentConfiguration) => {
- const { enableSass } = await import("./src/enable-sass");
+ const {enableSass} = await import('./src/enable-sass');
return enableSass(currentConfiguration);
});
```
@@ -909,7 +907,7 @@ Config.Bundling.setCachingEnabled(false);
From v3.3.39 on, all options can be accessed directly from the `Config` object.
```ts twoslash title="remotion.config.ts"
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
// ---cut---
Config.setCachingEnabled(false);
```
diff --git a/packages/docs/docs/lambda/cli/render.mdx b/packages/docs/docs/lambda/cli/render.mdx
index 1e967fa655..1c8280e283 100644
--- a/packages/docs/docs/lambda/cli/render.mdx
+++ b/packages/docs/docs/lambda/cli/render.mdx
@@ -8,7 +8,6 @@ crumb: 'Lambda CLI Reference'
---
import {MinimumFramesPerLambda} from '../../../components/lambda/default-frames-per-lambda';
-import {AngleChangelog} from '../../../components/AngleChangelog';
Using the `npx remotion lambda render` command, you can render a video in the cloud.
diff --git a/packages/docs/docs/recorder/source-control.mdx b/packages/docs/docs/recorder/source-control.mdx
index 50756c5c75..7babb1e392 100644
--- a/packages/docs/docs/recorder/source-control.mdx
+++ b/packages/docs/docs/recorder/source-control.mdx
@@ -45,8 +45,6 @@ git lfs install
git lfs track public/**/*.mp4
```
-import { notEqual } from "assert";
-
### 3. Commit and push
```bash
diff --git a/packages/docs/docs/renderer/get-compositions.mdx b/packages/docs/docs/renderer/get-compositions.mdx
index 8dbaa8c28d..4cd1c0e7c7 100644
--- a/packages/docs/docs/renderer/get-compositions.mdx
+++ b/packages/docs/docs/renderer/get-compositions.mdx
@@ -2,11 +2,9 @@
image: /generated/articles-docs-renderer-get-compositions.png
title: getCompositions()
id: get-compositions
-crumb: "@remotion/renderer"
+crumb: '@remotion/renderer'
---
-import { AngleChangelog } from "../../components/AngleChangelog";
-
_Part of the `@remotion/renderer` package._
Gets a list of compositions defined in a Remotion project based on a [Remotion Bundle](/docs/terminology/bundle) by evaluating the [Remotion Root](/docs/terminology/remotion-root).
@@ -84,25 +82,25 @@ type BrowserLog = {
text: string;
stackTrace: ConsoleMessageLocation[];
type:
- | "log"
- | "debug"
- | "info"
- | "error"
- | "warning"
- | "dir"
- | "dirxml"
- | "table"
- | "trace"
- | "clear"
- | "startGroup"
- | "startGroupCollapsed"
- | "endGroup"
- | "assert"
- | "profile"
- | "profileEnd"
- | "count"
- | "timeEnd"
- | "verbose";
+ | 'log'
+ | 'debug'
+ | 'info'
+ | 'error'
+ | 'warning'
+ | 'dir'
+ | 'dirxml'
+ | 'table'
+ | 'trace'
+ | 'clear'
+ | 'startGroup'
+ | 'startGroupCollapsed'
+ | 'endGroup'
+ | 'assert'
+ | 'profile'
+ | 'profileEnd'
+ | 'count'
+ | 'timeEnd'
+ | 'verbose';
};
const getCompositions = (options: {
@@ -118,7 +116,7 @@ getCompositions({
.map((stack) => {
return ` ${stack.url}:${stack.lineNumber}:${stack.columnNumber}`;
})
- .join("\n"),
+ .join('\n'),
);
},
});
@@ -173,17 +171,17 @@ Returns a promise that resolves to an array of available compositions. Example v
```ts twoslash
[
{
- id: "HelloWorld",
+ id: 'HelloWorld',
width: 1920,
height: 1080,
fps: 30,
durationInFrames: 120,
defaultProps: {
- title: "Hello World",
+ title: 'Hello World',
},
},
{
- id: "Title",
+ id: 'Title',
width: 1080,
height: 1080,
fps: 30,
diff --git a/packages/docs/docs/renderer/render-frames.mdx b/packages/docs/docs/renderer/render-frames.mdx
index 3d609da6e8..f18b80fea5 100644
--- a/packages/docs/docs/renderer/render-frames.mdx
+++ b/packages/docs/docs/renderer/render-frames.mdx
@@ -5,8 +5,6 @@ title: renderFrames()
crumb: '@remotion/renderer'
---
-import {AngleChangelog} from '../../components/AngleChangelog';
-
_Part of the `@remotion/renderer` package._
Renders a series of images using Puppeteer and computes information for mixing audio.
diff --git a/packages/docs/docs/renderer/render-still.mdx b/packages/docs/docs/renderer/render-still.mdx
index 13cfbfb1e8..7ace1b5ff6 100644
--- a/packages/docs/docs/renderer/render-still.mdx
+++ b/packages/docs/docs/renderer/render-still.mdx
@@ -2,11 +2,9 @@
image: /generated/articles-docs-renderer-render-still.png
id: render-still
title: renderStill()
-crumb: "@remotion/renderer"
+crumb: '@remotion/renderer'
---
-import { AngleChangelog } from "../../components/AngleChangelog";
-
_Part of the `@remotion/renderer` package. Available from v2.3._
Renders a single frame to an image and writes it to the specified output location.
@@ -20,19 +18,19 @@ You first need to bundle the project and fetch the compositions. Read [the code
```ts twoslash
// @module: ESNext
// @target: ESNext
-import { bundle } from "@remotion/bundler";
-import { getCompositions, renderStill } from "@remotion/renderer";
+import {bundle} from '@remotion/bundler';
+import {getCompositions, renderStill} from '@remotion/renderer';
// The composition you want to render
-const compositionId = "HelloWorld";
+const compositionId = 'HelloWorld';
const bundleLocation = await bundle({
- entryPoint: require.resolve("./src/index.ts"),
+ entryPoint: require.resolve('./src/index.ts'),
});
const comps = await getCompositions(bundleLocation, {
inputProps: {
- custom: "data",
+ custom: 'data',
},
});
const composition = comps.find((c) => c.id === compositionId);
@@ -46,9 +44,9 @@ if (!composition) {
await renderStill({
composition,
serveUrl: bundleLocation,
- output: "/tmp/still.png",
+ output: '/tmp/still.png',
inputProps: {
- custom: "data",
+ custom: 'data',
},
});
```
diff --git a/packages/docs/docs/studio-app.mdx b/packages/docs/docs/studio-app.mdx
index c9955d17ef..d364471774 100644
--- a/packages/docs/docs/studio-app.mdx
+++ b/packages/docs/docs/studio-app.mdx
@@ -53,9 +53,7 @@ If you want to remove the duplication of metadata, you can define constants such
If you use [`calculateMetadata()`](/docs/dynamic-metadata#with-the-player), see [here](/docs/dynamic-metadata#with-the-player) how you can use it with the Player.
-<Step>5</Step> If you have any Webpack override defined in <code>
- remotion.config.ts
-</code>
+<Step>5</Step> If you have any Webpack override defined in <code>remotion.config.ts</code>
, look up how to apply it to your framework as well.
## Next steps
diff --git a/packages/docs/docs/transitions/presentations/custom.mdx b/packages/docs/docs/transitions/presentations/custom.mdx
index b56461e893..fe5e1a7637 100644
--- a/packages/docs/docs/transitions/presentations/custom.mdx
+++ b/packages/docs/docs/transitions/presentations/custom.mdx
@@ -13,12 +13,9 @@ A presentation is a higher order component which wraps around the entering slide
<Step>1</Step> The current <code>presentationProgress</code>, influenced by the
timing of the transition
<br />
-<Step>2</Step> The <code>presentationDirection</code>, either <code>
- entering
-</code> or <code>exiting</code>
+<Step>2</Step> The <code>presentationDirection</code>, either <code>entering</code> or <code>exiting</code>
<br />
-<Step>3</Step> The <code>presentationDurationInFrames</code> (_available from
-v4.0.153_)
+<Step>3</Step> The <code>presentationDurationInFrames</code> (_available from v4.0.153_)
<Step>4</Step> Additional developer-defined <code>passedProps</code>
## Boilerplate
@@ -94,18 +91,12 @@ const StarPresentation: React.FC<
The following example implements a star mask transition:
-<Step>1</Step> Based on the <code>passedProps</code> <code>height</code> and <code>
- width
-</code>
+<Step>1</Step> Based on the <code>passedProps</code> <code>height</code> and <code>width</code>
, the inner radius of the star is calculated that will completely fill the canvas.
<br />
-<Step>2</Step> Using <a href="/docs/shapes">
- <code>@remotion/shapes</code>
-</a>, an SVG path is calculated, and grown from zero to the full size of the canvas. <br />
+<Step>2</Step> Using <a href="/docs/shapes"><code>@remotion/shapes</code></a>, an SVG path is calculated, and grown from zero to the full size of the canvas. <br />
<Step>3</Step> The <code>presentationProgress</code> is used to interpolate the shape
-size. <br /> <Step>4</Step> <a href="/docs/paths">
- <code>@remotion/paths</code>
-</a> is used to center the star in the middle of the canvas.
+size. <br /> <Step>4</Step> <a href="/docs/paths"><code>@remotion/paths</code></a> is used to center the star in the middle of the canvas.
<br />
<Step>5</Step> A <code>clipPath</code> is used to clip the entering slide.
Inside the container, the <code>children</code> get rendered.
diff --git a/packages/docs/docs/transitions/transitionseries.mdx b/packages/docs/docs/transitions/transitionseries.mdx
index 1f1901ede6..0830c6bb2f 100644
--- a/packages/docs/docs/transitions/transitionseries.mdx
+++ b/packages/docs/docs/transitions/transitionseries.mdx
@@ -14,18 +14,10 @@ The `<TransitionSeries>` component behaves the same as the [`<Series>`](/docs/se
Each transition consists of two parts:
<Step>1</Step> <code>presentation</code>: The effect that is being used, for
-example <a href="/docs/transitions/presentations/fade">
- <code>fade()</code>
-</a> or <a href="/docs/transitions/presentations/wipe">
- <code>wipe()</code>
-</a>.<br />
+example <a href="/docs/transitions/presentations/fade"><code>fade()</code></a> or <a href="/docs/transitions/presentations/wipe"><code>wipe()</code></a>.<br />
<Step>2</Step> <code>timing</code>: The duration and the progress curve, for
-example <a href="/docs/transitions/timings/springtiming">
- <code>springTiming()</code>
-</a> or <a href="/docs/transitions/timings/lineartiming">
- <code>linearTiming()</code>
-</a>
+example <a href="/docs/transitions/timings/springtiming"><code>springTiming()</code></a> or <a href="/docs/transitions/timings/lineartiming"><code>linearTiming()</code></a>
<br />
<br />
diff --git a/packages/docusaurus-plugin/package.json b/packages/docusaurus-plugin/package.json
index d403bab93c..3d895b66de 100644
--- a/packages/docusaurus-plugin/package.json
+++ b/packages/docusaurus-plugin/package.json
@@ -19,7 +19,8 @@
"fenceparser": "^2.2.0",
"shiki": "0.10.1",
"@typescript/twoslash": "3.2.1",
- "@docusaurus/types": "3.4.0"
+ "@docusaurus/types": "3.4.0",
+ "@types/node": "^20.14.11"
},
"private": true
}
diff --git a/packages/docusaurus-plugin/src/shiki.ts b/packages/docusaurus-plugin/src/shiki.ts
index 82e812c523..5356eb344c 100644
--- a/packages/docusaurus-plugin/src/shiki.ts
+++ b/packages/docusaurus-plugin/src/shiki.ts
@@ -224,8 +224,95 @@ const remarkVisitor =
twoslash,
twoslashSettings,
);
- node.type = 'html';
- node.value = shikiHTML;
+ // @ts-expect-error
+ node.type = 'mdxJsxFlowElement';
+ node.name = 'div';
+ // @ts-expect-error
+ node.attributes = [
+ {
+ type: 'mdxJsxAttribute',
+ name: 'dangerouslySetInnerHTML',
+ value: {
+ type: 'mdxJsxAttributeValueExpression',
+ value: `{\n __html: '',\n }`,
+ data: {
+ estree: {
+ type: 'Program',
+ start: 779,
+ end: 843,
+ body: [
+ {
+ type: 'ExpressionStatement',
+ expression: {
+ type: 'ObjectExpression',
+ start: 779,
+ end: 843,
+ loc: {
+ start: {line: 28, column: 27, offset: 779},
+ end: {line: 30, column: 3, offset: 843},
+ },
+ properties: [
+ {
+ type: 'Property',
+ start: 785,
+ end: 838,
+ loc: {
+ start: {line: 29, column: 4, offset: 785},
+ end: {line: 29, column: 57, offset: 838},
+ },
+ method: false,
+ shorthand: false,
+ computed: false,
+ key: {
+ type: 'Identifier',
+ start: 785,
+ end: 791,
+ loc: {
+ start: {line: 29, column: 4, offset: 785},
+ end: {line: 29, column: 10, offset: 791},
+ },
+ name: '__html',
+ range: [785, 791],
+ },
+ value: {
+ type: 'Literal',
+ start: 793,
+ end: 838,
+ loc: {
+ start: {line: 29, column: 12, offset: 793},
+ end: {line: 29, column: 57, offset: 838},
+ },
+ value: shikiHTML,
+ raw: JSON.stringify(shikiHTML),
+ range: [793, 838],
+ },
+ kind: 'init',
+ range: [785, 838],
+ },
+ ],
+ range: [779, 843],
+ },
+ start: 779,
+ end: 843,
+ loc: {
+ start: {line: 28, column: 27, offset: 779},
+ end: {line: 30, column: 3, offset: 843},
+ },
+ range: [779, 843],
+ },
+ ],
+ sourceType: 'module',
+ comments: [],
+ loc: {
+ start: {line: 28, column: 27, offset: 779},
+ end: {line: 30, column: 3, offset: 843},
+ },
+ range: [779, 843],
+ },
+ },
+ },
+ },
+ ];
node.children = [];
};
diff --git a/packages/docusaurus-plugin/src/unist-types.ts b/packages/docusaurus-plugin/src/unist-types.ts
index 04bd5e8c65..fe4e489277 100644
--- a/packages/docusaurus-plugin/src/unist-types.ts
+++ b/packages/docusaurus-plugin/src/unist-types.ts
@@ -90,6 +90,7 @@ export interface Node {
* Node type.
*/
type: 'code' | 'html';
+ name?: string;
/**
* Info from the ecosystem.
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 55e1b33304..27a75cbf82 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -390,7 +390,7 @@ importers:
version: 6.1.1
vitest:
specifier: 0.31.1
+ version: 0.31.1([email protected])
packages/discord-poster: {}
@@ -584,7 +584,7 @@ importers:
version: 8.3.2
vitest:
specifier: 0.31.1
+ version: 0.31.1([email protected])
zod:
specifier: 3.22.3
version: 3.22.3
@@ -613,6 +613,9 @@ importers:
'@docusaurus/types':
specifier: 3.4.0
+ '@types/node':
+ specifier: ^20.14.11
+ version: 20.14.11
'@typescript/twoslash':
specifier: 3.2.1
version: 3.2.1
@@ -683,7 +686,7 @@ importers:
devDependencies:
vitest:
specifier: 0.31.1
+ version: 0.31.1([email protected])
packages/example:
dependencies:
@@ -1089,7 +1092,7 @@ importers:
version: 0.4.13
vitest:
specifier: 0.31.1
+ version: 0.31.1([email protected])
zip-lib:
specifier: ^0.7.2
version: 0.7.2
@@ -7986,7 +7989,7 @@ packages:
dependencies:
'@types/istanbul-lib-coverage': 2.0.3
'@types/istanbul-reports': 3.0.1
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/yargs': 16.0.4
chalk: 4.1.2
dev: true
@@ -7998,7 +8001,7 @@ packages:
'@jest/schemas': 29.6.3
'@types/istanbul-lib-coverage': 2.0.3
'@types/istanbul-reports': 3.0.1
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
'@types/yargs': 17.0.32
chalk: 4.1.2
dev: false
@@ -9448,13 +9451,13 @@ packages:
resolution: {integrity: sha512-a6bTJ21vFOGIkwM0kzh9Yr89ziVxq4vYH2fQ6N8AeipEzai/cFK6aGMArIkUeIdRIgpwQa+2bXiLuUJCpSf2Cg==}
dependencies:
'@types/connect': 3.4.35
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: false
resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
dev: false
@@ -9468,7 +9471,7 @@ packages:
dependencies:
'@types/http-cache-semantics': 4.0.1
'@types/keyv': 3.1.4
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/responselike': 1.0.0
@@ -9491,13 +9494,13 @@ packages:
resolution: {integrity: sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==}
dependencies:
'@types/express-serve-static-core': 4.17.35
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
dev: false
resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: false
@@ -9542,7 +9545,7 @@ packages:
resolution: {integrity: sha512-3UJuW+Qxhzwjq3xhwXm2onQcFHn76frIYVbTu+kn24LFxI+dEhdfISDFovPB8VpEgW8oQCTpRuCe+0zJxB7NEA==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
dev: false
@@ -9550,7 +9553,7 @@ packages:
resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/qs': 6.9.7
'@types/range-parser': 1.2.4
'@types/send': 0.17.1
@@ -9618,7 +9621,7 @@ packages:
resolution: {integrity: sha512-5kPLG5BKpWYkw/LVOGWpiq3nEVqxiN32rTgI53Sk12/xHFQ2rG3ehI9IO+O3W2QoKeyB92dJkoka8SUm6BX1pA==}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
dev: false
@@ -9648,7 +9651,7 @@ packages:
resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}
@@ -9685,7 +9688,7 @@ packages:
resolution: {integrity: sha512-foLGjgrJkUjLG/o2t2ymlZGEoBNBa/TfoUZ7oCTkOjP1T43UGBJspovJou/l3ZuHvye2ewR5cZNtp2zyWgILMA==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: true
@@ -9701,7 +9704,7 @@ packages:
resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
form-data: 4.0.0
dev: false
@@ -9716,6 +9719,12 @@ packages:
resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==}
dependencies:
undici-types: 5.26.5
+ dev: true
+
+ resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==}
+ dependencies:
+ undici-types: 5.26.5
resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}
@@ -9752,7 +9761,7 @@ packages:
resolution: {integrity: sha512-Zc9YzOvjAWxxGY7qo0Q6yINMVVspAa4p68UCzucWMU+GaPujpjwbOwzI38s7Jq01k0GztzLxXlRiFcZf/aeIWA==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/revalidator': 0.3.8
dev: true
@@ -9847,7 +9856,7 @@ packages:
resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==}
dependencies:
'@types/caseless': 0.12.5
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@types/tough-cookie': 4.0.5
form-data: 2.5.1
dev: false
@@ -9859,7 +9868,7 @@ packages:
resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
resolution: {integrity: sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==}
@@ -9872,7 +9881,7 @@ packages:
resolution: {integrity: sha512-+QSw6Tqvs/KQpZX8DvIl3hZSjNFLW/OqE5nlyHXtTwODaJvioN2rOWpBNEWZp2HZUFhOh+VohmJku/WxEXU2XA==}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
dev: false
@@ -9882,7 +9891,7 @@ packages:
resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==}
dependencies:
'@types/mime': 1.3.2
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: false
@@ -9895,19 +9904,19 @@ packages:
resolution: {integrity: sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==}
dependencies:
'@types/mime': 1.3.2
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: false
resolution: {integrity: sha512-AjKjo5vk5mkcTrWL0U1zFUdCp/uqLebvbe7ezAJx0tgp6ST9JmfsYK1q1lpjfPM5S1YQ1wr5uboPSu2S8UO9yw==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: true
resolution: {integrity: sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
dev: false
@@ -9960,7 +9969,7 @@ packages:
resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==}
@@ -9981,7 +9990,7 @@ packages:
resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==}
requiresBuild: true
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
dev: false
optional: true
@@ -10764,6 +10773,7 @@ packages:
resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==}
deprecated: Use your platform's native atob() and btoa() methods instead
+ dev: true
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
@@ -10785,6 +10795,7 @@ packages:
dependencies:
acorn: 8.11.3
acorn-walk: 8.3.2
+ dev: true
resolution: {integrity: sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==}
@@ -12707,15 +12718,18 @@ packages:
resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==}
+ dev: true
resolution: {integrity: sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==}
+ dev: true
resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==}
engines: {node: '>=8'}
dependencies:
cssom: 0.3.8
+ dev: true
resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==}
@@ -12738,6 +12752,7 @@ packages:
abab: 2.0.6
whatwg-mimetype: 3.0.0
whatwg-url: 11.0.0
+ dev: true
resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==}
@@ -12808,6 +12823,7 @@ packages:
resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==}
+ dev: true
resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==}
@@ -13075,6 +13091,7 @@ packages:
deprecated: Use your platform's native DOMException instead
dependencies:
webidl-conversions: 7.0.0
+ dev: true
resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==}
@@ -13711,6 +13728,7 @@ packages:
esutils: 2.0.3
optionalDependencies:
source-map: 0.6.1
+ dev: true
resolution: {integrity: sha512-SKVKlSJXJSU34Gw1m0Hp+PBO5az4zPIRU3+nC3Ya6x+nQ3Bq3kIfQUBH6dN811CawO6sacpc538IJAqTDSMSWQ==}
@@ -14012,7 +14030,7 @@ packages:
resolution: {integrity: sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==}
engines: {node: '>= 0.8'}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
require-like: 0.1.2
dev: false
@@ -15028,6 +15046,7 @@ packages:
entities: 4.5.0
webidl-conversions: 7.0.0
whatwg-mimetype: 3.0.0
+ dev: true
resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==}
@@ -15361,6 +15380,7 @@ packages:
engines: {node: '>=12'}
dependencies:
whatwg-encoding: 2.0.0
+ dev: true
resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==}
@@ -15590,6 +15610,7 @@ packages:
engines: {node: '>=0.10.0'}
dependencies:
safer-buffer: 2.1.2
+ dev: true
resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}
@@ -15998,6 +16019,7 @@ packages:
resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
+ dev: true
resolution: {integrity: sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==}
@@ -16158,7 +16180,7 @@ packages:
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies:
'@jest/types': 29.6.3
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
chalk: 4.1.2
ci-info: 3.8.0
graceful-fs: 4.2.11
@@ -16169,7 +16191,7 @@ packages:
resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
engines: {node: '>= 10.13.0'}
dependencies:
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -16177,7 +16199,7 @@ packages:
resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
dependencies:
- '@types/node': 20.11.17
+ '@types/node': 20.14.11
jest-util: 29.7.0
merge-stream: 2.0.0
supports-color: 8.1.1
@@ -16267,6 +16289,7 @@ packages:
- bufferutil
- supports-color
- utf-8-validate
+ dev: true
resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==}
@@ -18303,6 +18326,7 @@ packages:
resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==}
+ dev: true
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
@@ -20168,7 +20192,7 @@ packages:
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
long: 5.2.3
dev: false
@@ -20182,6 +20206,7 @@ packages:
resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==}
+ dev: true
resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==}
@@ -21278,6 +21303,7 @@ packages:
engines: {node: '>=v12.22.7'}
dependencies:
xmlchars: 2.2.0
+ dev: true
resolution: {integrity: sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==}
@@ -22295,6 +22321,7 @@ packages:
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
+ dev: true
resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==}
@@ -22723,6 +22750,7 @@ packages:
punycode: 2.3.1
universalify: 0.2.0
url-parse: 1.5.3
+ dev: true
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
@@ -22739,6 +22767,7 @@ packages:
engines: {node: '>=12'}
dependencies:
punycode: 2.3.1
+ dev: true
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
@@ -23261,6 +23290,7 @@ packages:
resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}
engines: {node: '>= 4.0.0'}
+ dev: true
resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}
@@ -23511,7 +23541,29 @@ packages:
vfile-message: 4.0.2
dev: false
+ resolution: {integrity: sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==}
+ engines: {node: '>=v14.18.0'}
+ hasBin: true
+ dependencies:
+ cac: 6.7.14
+ debug: 4.3.4([email protected])
+ mlly: 1.5.0
+ pathe: 1.1.2
+ picocolors: 1.0.0
+ vite: 4.5.3(@types/[email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ dev: true
+
resolution: {integrity: sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==}
engines: {node: '>=v14.18.0'}
hasBin: true
@@ -23521,7 +23573,7 @@ packages:
mlly: 1.5.0
pathe: 1.1.2
picocolors: 1.0.0
- vite: 4.5.3(@types/[email protected])([email protected])
+ vite: 4.5.3(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -23600,7 +23652,7 @@ packages:
fsevents: 2.3.3
dev: false
resolution: {integrity: sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -23632,6 +23684,42 @@ packages:
esbuild: 0.18.20
postcss: 8.4.33
rollup: 3.29.4
+ optionalDependencies:
+ fsevents: 2.3.3
+ dev: true
+
+ resolution: {integrity: sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': '>= 14'
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ dependencies:
+ '@types/node': 20.14.11
+ esbuild: 0.18.20
+ postcss: 8.4.33
+ rollup: 3.29.4
sass: 1.77.2
optionalDependencies:
fsevents: 2.3.3
@@ -23702,8 +23790,8 @@ packages:
strip-literal: 1.3.0
tinybench: 2.6.0
tinypool: 0.5.0
- vite: 4.5.3(@types/[email protected])([email protected])
- vite-node: 0.31.1(@types/[email protected])([email protected])
+ vite: 4.5.3(@types/[email protected])
+ vite-node: 0.31.1(@types/[email protected])
why-is-node-running: 2.2.2
transitivePeerDependencies:
- less
@@ -23713,6 +23801,7 @@ packages:
- sugarss
- supports-color
- terser
+ dev: true
resolution: {integrity: sha512-/dOoOgzoFk/5pTvg1E65WVaobknWREN15+HF+0ucudo3dDG/vCZoXTQrjIfEaWvQXmqScwkRodrTbM/ScMpRcQ==}
@@ -23747,7 +23836,7 @@ packages:
dependencies:
'@types/chai': 4.3.11
'@types/chai-subset': 1.3.5
- '@types/node': 18.14.6
+ '@types/node': 20.14.11
'@vitest/expect': 0.31.1
'@vitest/runner': 0.31.1
'@vitest/snapshot': 0.31.1
@@ -23767,8 +23856,8 @@ packages:
strip-literal: 1.3.0
tinybench: 2.6.0
tinypool: 0.5.0
- vite: 4.5.3(@types/[email protected])([email protected])
- vite-node: 0.31.1(@types/[email protected])([email protected])
+ vite: 4.5.3(@types/[email protected])([email protected])
+ vite-node: 0.31.1(@types/[email protected])([email protected])
why-is-node-running: 2.2.2
transitivePeerDependencies:
- less
@@ -23778,7 +23867,6 @@ packages:
- sugarss
- supports-color
- terser
- dev: false
resolution: {integrity: sha512-9UG0s3Ss8rbaaPZL1AkGzdjrGY8F+P+Ne9snsrvD9gxltDGhsn8C2dQpqQewHrMW37OvlqJoI8sUU2AWDb+qNw==}
@@ -23854,6 +23942,7 @@ packages:
engines: {node: '>=14'}
dependencies:
xml-name-validator: 4.0.0
+ dev: true
resolution: {integrity: sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==}
@@ -23915,6 +24004,7 @@ packages:
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
engines: {node: '>=12'}
+ dev: true
resolution: {integrity: sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw==}
@@ -24249,10 +24339,12 @@ packages:
engines: {node: '>=12'}
dependencies:
iconv-lite: 0.6.3
+ dev: true
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
engines: {node: '>=12'}
+ dev: true
resolution: {integrity: sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==}
@@ -24260,6 +24352,7 @@ packages:
dependencies:
tr46: 3.0.0
webidl-conversions: 7.0.0
+ dev: true
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
@@ -24454,9 +24547,11 @@ packages:
resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==}
engines: {node: '>=12'}
+ dev: true
resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
+ dev: true
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}