Skip to content

🎥 Make videos programmatically with React

@remotion/browser-bundler: Mark public APIs as draft

Jonny Burgerb7835093e320
diff --git a/packages/docs/docs/browser-bundler/create-browser-bundler.mdx b/packages/docs/docs/browser-bundler/create-browser-bundler.mdx
index 70a8efbc56..10fcb77730 100644
--- a/packages/docs/docs/browser-bundler/create-browser-bundler.mdx
+++ b/packages/docs/docs/browser-bundler/create-browser-bundler.mdx
@@ -8,9 +8,13 @@ crumb: '@remotion/browser-bundler'
Creates a browser-side compiler for virtual Remotion projects. Import it from `@remotion/browser-bundler`.
-<ExperimentalBadge>
-<p>This API is experimental. Read the <a href="/docs/browser-bundler#browser-setup">browser setup requirements</a> before using it.</p>
-</ExperimentalBadge>
+:::warning
+
+*Draft API*: This API is not yet stable. We are in the experimental phase of this package and reserve to change it at any time.
+
+:::
+
+Read the [browser setup requirements](/docs/browser-bundler#browser-setup) before using this API.
Given a [`VirtualProject`](#virtualproject) snapshot, such as the [overview example](/docs/browser-bundler#minimal-example):
diff --git a/packages/docs/docs/browser-bundler/get-browser-composition.mdx b/packages/docs/docs/browser-bundler/get-browser-composition.mdx
index 493c300a13..026f747a8e 100644
--- a/packages/docs/docs/browser-bundler/get-browser-composition.mdx
+++ b/packages/docs/docs/browser-bundler/get-browser-composition.mdx
@@ -8,9 +8,13 @@ crumb: '@remotion/browser-bundler'
Selects a registered composition by ID and resolves its video configuration and props. Import it from `@remotion/browser-bundler/runtime`.
-<ExperimentalBadge>
-<p>This API is experimental. It runs trusted project code in the host page.</p>
-</ExperimentalBadge>
+:::warning
+
+*Draft API*: This API is not yet stable. We are in the experimental phase of this package and reserve to change it at any time.
+
+:::
+
+This API runs trusted project code in the host page.
Use a root returned by [`loadBrowserBundle()`](/docs/browser-bundler/load-browser-bundle):
diff --git a/packages/docs/docs/browser-bundler/index.mdx b/packages/docs/docs/browser-bundler/index.mdx
index a248a0dea3..52699721f8 100644
--- a/packages/docs/docs/browser-bundler/index.mdx
+++ b/packages/docs/docs/browser-bundler/index.mdx
@@ -9,9 +9,13 @@ crumb: '@remotion/browser-bundler'
Compile a virtual Remotion project in the browser and use a registered [composition](/docs/composition) in your own UI, such as a [`<Player>`](/docs/player/player).
-<ExperimentalBadge>
-<p>This package is experimental. The initial implementation has only been tested in Chrome.</p>
-</ExperimentalBadge>
+:::warning
+
+*Draft API*: This API is not yet stable. We are in the experimental phase of this package and reserve to change it at any time.
+
+:::
+
+The initial implementation has only been tested in Chrome.
The main entry point compiles source snapshots, manages its worker and WebAssembly compiler, applies source edits incrementally, and resolves npm imports over HTTP. The separate `@remotion/browser-bundler/runtime` entry point executes a bundle and resolves a registered composition.
diff --git a/packages/docs/docs/browser-bundler/load-browser-bundle.mdx b/packages/docs/docs/browser-bundler/load-browser-bundle.mdx
index e254fedf1a..2639c90c9c 100644
--- a/packages/docs/docs/browser-bundler/load-browser-bundle.mdx
+++ b/packages/docs/docs/browser-bundler/load-browser-bundle.mdx
@@ -8,9 +8,13 @@ crumb: '@remotion/browser-bundler'
Executes a [`BrowserBundle`](/docs/browser-bundler/create-browser-bundler#browserbundle) and returns the root component it registered with [`registerRoot()`](/docs/register-root). Import it from `@remotion/browser-bundler/runtime`.
-<ExperimentalBadge>
-<p>This API is experimental and executes trusted code only. It is not a sandbox.</p>
-</ExperimentalBadge>
+:::warning
+
+*Draft API*: This API is not yet stable. We are in the experimental phase of this package and reserve to change it at any time.
+
+:::
+
+This API executes trusted code only. It is not a sandbox.
After compiling a project with [`createBrowserBundler()`](/docs/browser-bundler/create-browser-bundler):