Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: add missing motion dependency for highlighter registry (#950)

Jinho Yeomb0c42e7c83b5
diff --git a/apps/www/content/docs/components/highlighter.mdx b/apps/www/content/docs/components/highlighter.mdx
index e295c153..9e43850d 100644
--- a/apps/www/content/docs/components/highlighter.mdx
+++ b/apps/www/content/docs/components/highlighter.mdx
@@ -28,6 +28,12 @@ npx shadcn@latest add @magicui/highlighter
<Steps>
+<Step>Install the following dependencies:</Step>
+
+```bash
+pnpm add motion rough-notation
+```
+
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="highlighter" />
diff --git a/apps/www/public/r/highlighter-demo.json b/apps/www/public/r/highlighter-demo.json
index 01a22a36..8afe4d31 100644
--- a/apps/www/public/r/highlighter-demo.json
+++ b/apps/www/public/r/highlighter-demo.json
@@ -5,6 +5,7 @@
"title": "Highlighter Demo",
"description": "Example showing the demo of a Highlighter",
"dependencies": [
+ "motion",
"rough-notation"
],
"registryDependencies": [
diff --git a/apps/www/public/r/highlighter.json b/apps/www/public/r/highlighter.json
index c6adc0f5..7dd6a172 100644
--- a/apps/www/public/r/highlighter.json
+++ b/apps/www/public/r/highlighter.json
@@ -5,6 +5,7 @@
"title": "Highlighter",
"description": "A text highlighter that mimics the effect of a human-drawn marker stroke.",
"dependencies": [
+ "motion",
"rough-notation"
],
"files": [
diff --git a/apps/www/public/r/registry.json b/apps/www/public/r/registry.json
index b118a2ce..88697286 100644
--- a/apps/www/public/r/registry.json
+++ b/apps/www/public/r/registry.json
@@ -1231,6 +1231,7 @@
"title": "Highlighter",
"description": "A text highlighter that mimics the effect of a human-drawn marker stroke.",
"dependencies": [
+ "motion",
"rough-notation"
],
"files": [
@@ -3543,6 +3544,7 @@
"title": "Highlighter Demo",
"description": "Example showing the demo of a Highlighter",
"dependencies": [
+ "motion",
"rough-notation"
],
"registryDependencies": [
diff --git a/apps/www/public/registry.json b/apps/www/public/registry.json
index b118a2ce..88697286 100644
--- a/apps/www/public/registry.json
+++ b/apps/www/public/registry.json
@@ -1231,6 +1231,7 @@
"title": "Highlighter",
"description": "A text highlighter that mimics the effect of a human-drawn marker stroke.",
"dependencies": [
+ "motion",
"rough-notation"
],
"files": [
@@ -3543,6 +3544,7 @@
"title": "Highlighter Demo",
"description": "Example showing the demo of a Highlighter",
"dependencies": [
+ "motion",
"rough-notation"
],
"registryDependencies": [
diff --git a/apps/www/registry.json b/apps/www/registry.json
index b118a2ce..88697286 100644
--- a/apps/www/registry.json
+++ b/apps/www/registry.json
@@ -1231,6 +1231,7 @@
"title": "Highlighter",
"description": "A text highlighter that mimics the effect of a human-drawn marker stroke.",
"dependencies": [
+ "motion",
"rough-notation"
],
"files": [
@@ -3543,6 +3544,7 @@
"title": "Highlighter Demo",
"description": "Example showing the demo of a Highlighter",
"dependencies": [
+ "motion",
"rough-notation"
],
"registryDependencies": [
diff --git a/apps/www/registry/registry-examples.ts b/apps/www/registry/registry-examples.ts
index 45d62d17..01fae25a 100644
--- a/apps/www/registry/registry-examples.ts
+++ b/apps/www/registry/registry-examples.ts
@@ -1941,7 +1941,7 @@ export const examples: Registry["items"] = [
type: "registry:ui",
},
],
- dependencies: ["rough-notation"],
+ dependencies: ["motion", "rough-notation"],
},
{
name: "animated-theme-toggler-demo",
diff --git a/apps/www/registry/registry-ui.ts b/apps/www/registry/registry-ui.ts
index 0a7dbaf5..bdf33824 100644
--- a/apps/www/registry/registry-ui.ts
+++ b/apps/www/registry/registry-ui.ts
@@ -1195,7 +1195,7 @@ export const ui: Registry["items"] = [
type: "registry:ui",
},
],
- dependencies: ["rough-notation"],
+ dependencies: ["motion", "rough-notation"],
},
{
name: "animated-theme-toggler",