agentcut 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -2
- package/dist/bridge.d.ts +45 -0
- package/dist/bridge.js +691 -0
- package/dist/bridge.js.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +50 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.js +14 -0
- package/dist/log.js.map +1 -0
- package/dist/studio/agents/claude.d.ts +7 -0
- package/dist/studio/agents/claude.js +155 -0
- package/dist/studio/agents/claude.js.map +1 -0
- package/dist/studio/agents/codex.d.ts +4 -0
- package/dist/studio/agents/codex.js +169 -0
- package/dist/studio/agents/codex.js.map +1 -0
- package/dist/studio/agents/index.d.ts +8 -0
- package/dist/studio/agents/index.js +50 -0
- package/dist/studio/agents/index.js.map +1 -0
- package/dist/studio/agents/types.d.ts +131 -0
- package/dist/studio/agents/types.js +11 -0
- package/dist/studio/agents/types.js.map +1 -0
- package/dist/studio/bundler.d.ts +29 -0
- package/dist/studio/bundler.js +136 -0
- package/dist/studio/bundler.js.map +1 -0
- package/dist/studio/chat.d.ts +147 -0
- package/dist/studio/chat.js +681 -0
- package/dist/studio/chat.js.map +1 -0
- package/dist/studio/cli.d.ts +2 -0
- package/dist/studio/cli.js +194 -0
- package/dist/studio/cli.js.map +1 -0
- package/dist/studio/components.d.ts +4 -0
- package/dist/studio/components.js +36 -0
- package/dist/studio/components.js.map +1 -0
- package/dist/studio/host.d.ts +105 -0
- package/dist/studio/host.js +634 -0
- package/dist/studio/host.js.map +1 -0
- package/dist/studio/http.d.ts +21 -0
- package/dist/studio/http.js +240 -0
- package/dist/studio/http.js.map +1 -0
- package/dist/studio/music.d.ts +35 -0
- package/dist/studio/music.js +130 -0
- package/dist/studio/music.js.map +1 -0
- package/dist/studio/proc.d.ts +11 -0
- package/dist/studio/proc.js +69 -0
- package/dist/studio/proc.js.map +1 -0
- package/dist/studio/projects.d.ts +84 -0
- package/dist/studio/projects.js +369 -0
- package/dist/studio/projects.js.map +1 -0
- package/dist/studio/render.d.ts +24 -0
- package/dist/studio/render.js +197 -0
- package/dist/studio/render.js.map +1 -0
- package/dist/studio/reveal.d.ts +7 -0
- package/dist/studio/reveal.js +49 -0
- package/dist/studio/reveal.js.map +1 -0
- package/dist/studio/schema.d.ts +4152 -0
- package/dist/studio/schema.js +358 -0
- package/dist/studio/schema.js.map +1 -0
- package/dist/studio/tools.d.ts +2 -0
- package/dist/studio/tools.js +165 -0
- package/dist/studio/tools.js.map +1 -0
- package/dist/studio/voice.d.ts +150 -0
- package/dist/studio/voice.js +434 -0
- package/dist/studio/voice.js.map +1 -0
- package/dist/studio/workspace.d.ts +31 -0
- package/dist/studio/workspace.js +187 -0
- package/dist/studio/workspace.js.map +1 -0
- package/package.json +50 -4
- package/template/AGENTS.md +13 -0
- package/template/components/CATALOG.md +1306 -0
- package/template/components/README.md +61 -0
- package/template/components/STYLES.md +246 -0
- package/template/components/arcade-title/ArcadeTitle.tsx +860 -0
- package/template/components/arcade-title/meta.json +28 -0
- package/template/components/aurora/Aurora.tsx +63 -0
- package/template/components/aurora/meta.json +28 -0
- package/template/components/bar-wipe-title/BarWipeTitle.tsx +94 -0
- package/template/components/bar-wipe-title/meta.json +29 -0
- package/template/components/before-after/BeforeAfter.tsx +89 -0
- package/template/components/before-after/meta.json +233 -0
- package/template/components/bento-grid/BentoGrid.tsx +202 -0
- package/template/components/bento-grid/meta.json +25 -0
- package/template/components/blur-in-title/BlurInTitle.tsx +121 -0
- package/template/components/blur-in-title/meta.json +32 -0
- package/template/components/catalog.json +8730 -0
- package/template/components/catalog.ts +103 -0
- package/template/components/chat-thread/ChatThread.tsx +128 -0
- package/template/components/chat-thread/meta.json +24 -0
- package/template/components/checklist/Checklist.tsx +129 -0
- package/template/components/checklist/meta.json +25 -0
- package/template/components/confetti/Confetti.tsx +109 -0
- package/template/components/confetti/meta.json +28 -0
- package/template/components/countdown/Countdown.tsx +166 -0
- package/template/components/countdown/meta.json +28 -0
- package/template/components/cut-and-paste/CutAndPaste.tsx +654 -0
- package/template/components/cut-and-paste/meta.json +29 -0
- package/template/components/decode-text/DecodeText.tsx +97 -0
- package/template/components/decode-text/meta.json +29 -0
- package/template/components/editorial-quote/EditorialQuote.tsx +122 -0
- package/template/components/editorial-quote/meta.json +28 -0
- package/template/components/glitch-title/GlitchTitle.tsx +171 -0
- package/template/components/glitch-title/meta.json +32 -0
- package/template/components/halftone-wave/HalftoneWave.tsx +106 -0
- package/template/components/halftone-wave/meta.json +28 -0
- package/template/components/highlighter/Highlighter.tsx +142 -0
- package/template/components/highlighter/meta.json +28 -0
- package/template/components/hook-card/HookCard.tsx +552 -0
- package/template/components/hook-card/meta.json +304 -0
- package/template/components/index.ts +149 -0
- package/template/components/iris-wipe/IrisWipe.tsx +76 -0
- package/template/components/iris-wipe/meta.json +24 -0
- package/template/components/kinetic-poster/KineticPoster.tsx +437 -0
- package/template/components/kinetic-poster/meta.json +31 -0
- package/template/components/kinetic-punch/KineticPunch.tsx +80 -0
- package/template/components/kinetic-punch/meta.json +30 -0
- package/template/components/lava-lamp/LavaLamp.tsx +92 -0
- package/template/components/lava-lamp/meta.json +28 -0
- package/template/components/letter-cascade/LetterCascade.tsx +102 -0
- package/template/components/letter-cascade/meta.json +29 -0
- package/template/components/lib.ts +179 -0
- package/template/components/light-leak/LightLeakTransition.tsx +43 -0
- package/template/components/light-leak/meta.json +74 -0
- package/template/components/line-diagram/LineDiagram.tsx +205 -0
- package/template/components/line-diagram/meta.json +217 -0
- package/template/components/list-card/ListCard.tsx +104 -0
- package/template/components/list-card/meta.json +232 -0
- package/template/components/logo-sting/LogoSting.tsx +129 -0
- package/template/components/logo-sting/meta.json +29 -0
- package/template/components/looks.tsx +1447 -0
- package/template/components/lower-third/LowerThird.tsx +100 -0
- package/template/components/lower-third/meta.json +24 -0
- package/template/components/marquee/Marquee.tsx +100 -0
- package/template/components/marquee/meta.json +30 -0
- package/template/components/notification/Notification.tsx +115 -0
- package/template/components/notification/meta.json +27 -0
- package/template/components/outline-fill/OutlineFill.tsx +106 -0
- package/template/components/outline-fill/meta.json +28 -0
- package/template/components/panel-sweep/PanelSweep.tsx +86 -0
- package/template/components/panel-sweep/meta.json +25 -0
- package/template/components/prompt-box/PromptBox.tsx +131 -0
- package/template/components/prompt-box/meta.json +24 -0
- package/template/components/props.ts +73 -0
- package/template/components/quote-card/QuoteCard.tsx +71 -0
- package/template/components/quote-card/meta.json +216 -0
- package/template/components/shape-shift/ShapeShift.tsx +420 -0
- package/template/components/shape-shift/meta.json +31 -0
- package/template/components/slide-zoom-message/SlideZoomMessage.tsx +179 -0
- package/template/components/slide-zoom-message/meta.json +199 -0
- package/template/components/social-post/SocialPost.tsx +185 -0
- package/template/components/social-post/meta.json +30 -0
- package/template/components/split-flap/SplitFlap.tsx +191 -0
- package/template/components/split-flap/meta.json +29 -0
- package/template/components/spotlight-grid/SpotlightGrid.tsx +84 -0
- package/template/components/spotlight-grid/meta.json +25 -0
- package/template/components/stat-counter/StatCounter.tsx +117 -0
- package/template/components/stat-counter/meta.json +27 -0
- package/template/components/sticker-badge/StickerBadge.tsx +46 -0
- package/template/components/sticker-badge/meta.json +220 -0
- package/template/components/sticker-slam/StickerSlam.tsx +941 -0
- package/template/components/sticker-slam/meta.json +34 -0
- package/template/components/style-layer.tsx +233 -0
- package/template/components/styles.json +762 -0
- package/template/components/styles.ts +113 -0
- package/template/components/target-lock/TargetLock.tsx +662 -0
- package/template/components/target-lock/meta.json +32 -0
- package/template/components/text-reveal/TextReveal.tsx +99 -0
- package/template/components/text-reveal/meta.json +28 -0
- package/template/components/tile-wipe/TileWipe.tsx +75 -0
- package/template/components/tile-wipe/meta.json +24 -0
- package/template/components/type-zoom/TypeZoom.tsx +103 -0
- package/template/components/type-zoom/meta.json +27 -0
- package/template/components/types.ts +66 -0
- package/template/components/typewriter/Typewriter.tsx +112 -0
- package/template/components/typewriter/meta.json +29 -0
- package/template/components/word-pop/WordPop.tsx +59 -0
- package/template/components/word-pop/meta.json +237 -0
- package/template/components/word-stack/WordStack.tsx +122 -0
- package/template/components/word-stack/meta.json +27 -0
- package/template/components/word-swap/WordSwap.tsx +127 -0
- package/template/components/word-swap/meta.json +30 -0
- package/template/presets/charcoal-sketch/PROMPT.md +48 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-0.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-1.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-2.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/sketch-paper.jpg +0 -0
- package/template/presets/charcoal-sketch/assets/paper/smudge.png +0 -0
- package/template/presets/charcoal-sketch/poster.jpg +0 -0
- package/template/presets/charcoal-sketch/preset.json +17 -0
- package/template/presets/charcoal-sketch/preview.mp4 +0 -0
- package/template/presets/charcoal-sketch/scenes/Grain.tsx +23 -0
- package/template/presets/charcoal-sketch/scenes/Paper.tsx +17 -0
- package/template/presets/charcoal-sketch/scenes/examples/Agents.tsx +100 -0
- package/template/presets/charcoal-sketch/scenes/examples/Approvals.tsx +110 -0
- package/template/presets/charcoal-sketch/scenes/examples/Blog.tsx +105 -0
- package/template/presets/charcoal-sketch/scenes/examples/EndCard.tsx +41 -0
- package/template/presets/charcoal-sketch/scenes/examples/Hook.tsx +130 -0
- package/template/presets/charcoal-sketch/scenes/examples/Ideas.tsx +92 -0
- package/template/presets/charcoal-sketch/scenes/examples/Posting.tsx +128 -0
- package/template/presets/charcoal-sketch/scenes/lib/painfix.tsx +119 -0
- package/template/presets/charcoal-sketch/scenes/lib/sketch.tsx +291 -0
- package/template/presets/charcoal-sketch/scripts/build_layers.example.py +193 -0
- package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -0
- package/template/presets/charcoal-sketch/scripts/make_textures.py +93 -0
- package/template/presets/punk-cut-paper/PROMPT.md +37 -0
- package/template/presets/punk-cut-paper/assets/paper/desk-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/grain-overlay.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-black.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-red.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-yellow.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/kraft.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/newsprint.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-white.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/tape.png +0 -0
- package/template/presets/punk-cut-paper/build_layers.example.py +150 -0
- package/template/presets/punk-cut-paper/poster.jpg +0 -0
- package/template/presets/punk-cut-paper/preset.json +15 -0
- package/template/presets/punk-cut-paper/preview.mp4 +0 -0
- package/template/presets/punk-cut-paper/scenes/Backdrop.tsx +76 -0
- package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -0
- package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -0
- package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -0
- package/template/presets/punk-cut-paper/scenes/Xerox.tsx +31 -0
- package/template/presets/punk-cut-paper/scenes/lib/punk.tsx +208 -0
- package/template/runtime/composition.tsx +918 -0
- package/template/runtime/helpers.tsx +228 -0
- package/template/runtime/index.tsx +22 -0
- package/template/runtime/types.ts +248 -0
- package/template/skill/SKILL.md +149 -0
- package/template/skill/references/browser-export.md +61 -0
- package/template/skill/references/components.md +38 -0
- package/template/skill/references/craft.md +53 -0
- package/template/skill/references/cursor.md +91 -0
- package/template/skill/references/footage.md +73 -0
- package/template/skill/references/format.md +140 -0
- package/template/skill/references/presets.md +56 -0
- package/template/skill/references/sound.md +128 -0
- package/template/starter/.studio/chat.json +1 -0
- package/template/starter/assets/.keep +0 -0
- package/template/starter/layers.json +46 -0
- package/template/starter/notes.md +4 -0
- package/template/starter/project.json +13 -0
- package/template/starter/renders/.keep +0 -0
- package/template/starter/scenes/Title.tsx +38 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "hook-card",
|
|
3
|
+
"name": "Hook Card",
|
|
4
|
+
"category": "Talking Head",
|
|
5
|
+
"durationInFrames": 105,
|
|
6
|
+
"layer": "overlay",
|
|
7
|
+
"stillAt": 0.6,
|
|
8
|
+
"description": "The opening title of a talking-head video, laid out around the speaker the project style's way: split with a torn or ruled seam, a taped photo, a terminal window or a rounded inset.",
|
|
9
|
+
"useWhen": "The first 2–4 s of a talking-head or creator video, a section opener, a big promise. Layouts that frame the speaker (top, stack, collage, window, hud, frame, tv, inset) leave a hole: give the speaker's video clip this box for the hook's duration (split the clip at the hook's end). Mobile — top/stack: {x:0,y:split/100,width:1,height:1-split/100}; collage: {x:0.11,y:0.45,width:0.78,height:0.41}; window: {x:0.07,y:0.47,width:0.86,height:0.42}; hud: {x:0.06,y:0.45,width:0.88,height:0.45}; frame: {x:0.1,y:0.44,width:0.8,height:0.46}; tv: {x:0.13,y:0.45,width:0.74,height:0.34} with radius 44; inset: {x:0.08,y:0.47,width:0.84,height:0.43} with radius 36. Wide — top/stack: {x:split/100,y:0,width:1-split/100,height:1}; collage: {x:0.53,y:0.14,width:0.38,height:0.72}; window: {x:0.5,y:0.2,width:0.44,height:0.66}; hud: {x:0.5,y:0.14,width:0.44,height:0.72}; frame: {x:0.52,y:0.14,width:0.4,height:0.72}; tv: {x:0.53,y:0.16,width:0.36,height:0.56} with radius 44; inset: {x:0.52,y:0.12,width:0.4,height:0.76} with radius 36. \"full\" covers the frame; \"card\" floats over full-frame footage. Mark the accent with *stars*.",
|
|
10
|
+
"tags": [
|
|
11
|
+
"hook",
|
|
12
|
+
"title",
|
|
13
|
+
"talking head",
|
|
14
|
+
"creator",
|
|
15
|
+
"split",
|
|
16
|
+
"intro"
|
|
17
|
+
],
|
|
18
|
+
"props": {
|
|
19
|
+
"kicker": {
|
|
20
|
+
"type": "text",
|
|
21
|
+
"label": "Kicker",
|
|
22
|
+
"default": "Claude Code just got",
|
|
23
|
+
"help": "Small line above (empty for none)."
|
|
24
|
+
},
|
|
25
|
+
"lines": {
|
|
26
|
+
"type": "lines",
|
|
27
|
+
"label": "Headline",
|
|
28
|
+
"default": [
|
|
29
|
+
"Mods"
|
|
30
|
+
],
|
|
31
|
+
"max": 3
|
|
32
|
+
},
|
|
33
|
+
"sub": {
|
|
34
|
+
"type": "text",
|
|
35
|
+
"label": "Sub line",
|
|
36
|
+
"default": "*5* to install now",
|
|
37
|
+
"help": "*Starred* words get the accent chip."
|
|
38
|
+
},
|
|
39
|
+
"tagline": {
|
|
40
|
+
"type": "text",
|
|
41
|
+
"label": "Tagline",
|
|
42
|
+
"default": "five mods that feel *illegal*",
|
|
43
|
+
"help": "A phrase on the seam, under the photo or on the window bar (empty for none)."
|
|
44
|
+
},
|
|
45
|
+
"layout": {
|
|
46
|
+
"type": "select",
|
|
47
|
+
"label": "Layout",
|
|
48
|
+
"default": "top",
|
|
49
|
+
"options": [
|
|
50
|
+
{
|
|
51
|
+
"value": "top",
|
|
52
|
+
"label": "Split, torn/ruled seam"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"value": "stack",
|
|
56
|
+
"label": "Split, centered"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "collage",
|
|
60
|
+
"label": "Taped photo"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"value": "window",
|
|
64
|
+
"label": "Terminal window"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "hud",
|
|
68
|
+
"label": "HUD brackets"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": "frame",
|
|
72
|
+
"label": "Thin frame"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"value": "tv",
|
|
76
|
+
"label": "90s TV set"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"value": "inset",
|
|
80
|
+
"label": "Rounded inset"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": "full",
|
|
84
|
+
"label": "Full frame"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "card",
|
|
88
|
+
"label": "Card over video"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"split": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"label": "Split",
|
|
95
|
+
"default": 54,
|
|
96
|
+
"min": 30,
|
|
97
|
+
"max": 75,
|
|
98
|
+
"step": 1,
|
|
99
|
+
"unit": "%",
|
|
100
|
+
"help": "Where the speaker starts (top and stack)."
|
|
101
|
+
},
|
|
102
|
+
"align": {
|
|
103
|
+
"type": "select",
|
|
104
|
+
"label": "Align",
|
|
105
|
+
"default": "left",
|
|
106
|
+
"options": [
|
|
107
|
+
{
|
|
108
|
+
"value": "left",
|
|
109
|
+
"label": "Left"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "center",
|
|
113
|
+
"label": "Center"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"size": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"label": "Size",
|
|
120
|
+
"default": 22,
|
|
121
|
+
"min": 6,
|
|
122
|
+
"max": 34,
|
|
123
|
+
"step": 0.5,
|
|
124
|
+
"unit": "% of frame"
|
|
125
|
+
},
|
|
126
|
+
"look": {
|
|
127
|
+
"type": "select",
|
|
128
|
+
"style": "look",
|
|
129
|
+
"label": "Look",
|
|
130
|
+
"default": "ink",
|
|
131
|
+
"options": [
|
|
132
|
+
{
|
|
133
|
+
"value": "ink",
|
|
134
|
+
"label": "Ink (bold borders)"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"value": "paper",
|
|
138
|
+
"label": "Cut paper"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"value": "notebook",
|
|
142
|
+
"label": "Notebook"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"value": "crt",
|
|
146
|
+
"label": "Terminal"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"value": "neon",
|
|
150
|
+
"label": "Neon (cyberpunk)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"value": "line",
|
|
154
|
+
"label": "Line (black & white)"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "vhs",
|
|
158
|
+
"label": "VHS (90s tape)"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"value": "clean",
|
|
162
|
+
"label": "Clean"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"help": "The graphic language. Follows the project style."
|
|
166
|
+
},
|
|
167
|
+
"font": {
|
|
168
|
+
"type": "select",
|
|
169
|
+
"style": "font",
|
|
170
|
+
"label": "Headline font",
|
|
171
|
+
"default": "archivo",
|
|
172
|
+
"options": [
|
|
173
|
+
{
|
|
174
|
+
"value": "archivo",
|
|
175
|
+
"label": "Archivo Black"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"value": "condensed",
|
|
179
|
+
"label": "Anton"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"value": "grotesk",
|
|
183
|
+
"label": "Space Grotesk"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"value": "caveat",
|
|
187
|
+
"label": "Caveat"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"value": "pixel",
|
|
191
|
+
"label": "VT323"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"value": "tech",
|
|
195
|
+
"label": "Orbitron"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"value": "heavy",
|
|
199
|
+
"label": "Montserrat"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"value": "retro",
|
|
203
|
+
"label": "Bungee"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"value": "sans",
|
|
207
|
+
"label": "Inter"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"value": "display",
|
|
211
|
+
"label": "Bricolage"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"value": "serif",
|
|
215
|
+
"label": "Instrument Serif"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"value": "fraunces",
|
|
219
|
+
"label": "Fraunces"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"value": "wide",
|
|
223
|
+
"label": "Unbounded"
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"accent": {
|
|
228
|
+
"type": "color",
|
|
229
|
+
"style": "accent",
|
|
230
|
+
"label": "Accent",
|
|
231
|
+
"default": "#ff3d8b"
|
|
232
|
+
},
|
|
233
|
+
"panel": {
|
|
234
|
+
"type": "color",
|
|
235
|
+
"style": "panel",
|
|
236
|
+
"label": "Card",
|
|
237
|
+
"default": "#ffffff"
|
|
238
|
+
},
|
|
239
|
+
"panelText": {
|
|
240
|
+
"type": "color",
|
|
241
|
+
"style": "panelText",
|
|
242
|
+
"label": "Card text",
|
|
243
|
+
"default": "#111111"
|
|
244
|
+
},
|
|
245
|
+
"line": {
|
|
246
|
+
"type": "color",
|
|
247
|
+
"style": "line",
|
|
248
|
+
"label": "Ink",
|
|
249
|
+
"default": "#111111",
|
|
250
|
+
"help": "Borders, hard shadows, pen strokes."
|
|
251
|
+
},
|
|
252
|
+
"backdrop": {
|
|
253
|
+
"type": "color",
|
|
254
|
+
"style": "backdrop",
|
|
255
|
+
"label": "Backdrop",
|
|
256
|
+
"default": "#ffe14d",
|
|
257
|
+
"help": "Full-frame and split backgrounds."
|
|
258
|
+
},
|
|
259
|
+
"onVideo": {
|
|
260
|
+
"type": "color",
|
|
261
|
+
"style": "text",
|
|
262
|
+
"label": "Text on video",
|
|
263
|
+
"default": "#ffffff"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"examples": [
|
|
267
|
+
{
|
|
268
|
+
"name": "Split hook",
|
|
269
|
+
"props": {}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "Centered stack",
|
|
273
|
+
"props": {
|
|
274
|
+
"layout": "stack",
|
|
275
|
+
"kicker": "",
|
|
276
|
+
"lines": [
|
|
277
|
+
"Mods"
|
|
278
|
+
],
|
|
279
|
+
"sub": "*5* to install now"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "Terminal window",
|
|
284
|
+
"props": {
|
|
285
|
+
"layout": "window",
|
|
286
|
+
"look": "crt",
|
|
287
|
+
"font": "pixel",
|
|
288
|
+
"tagline": ""
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "Full frame",
|
|
293
|
+
"props": {
|
|
294
|
+
"layout": "full",
|
|
295
|
+
"kicker": "What it costs you",
|
|
296
|
+
"lines": [
|
|
297
|
+
"Per *month*"
|
|
298
|
+
],
|
|
299
|
+
"sub": "",
|
|
300
|
+
"tagline": ""
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// The registry. Add a component: create its folder (Component.tsx + meta.json), add its meta to
|
|
2
|
+
// catalog.ts and its component to COMPONENTS below. The studio preview, the browser export, the
|
|
3
|
+
// gallery, the inspector form and Claude's catalog all read from here.
|
|
4
|
+
import { createElement, type ComponentType } from "react";
|
|
5
|
+
import type { MotionBaseProps, MotionComponent, PropValues } from "./types";
|
|
6
|
+
|
|
7
|
+
import { COMPONENT_METAS } from "./catalog";
|
|
8
|
+
import { useMotionFonts } from "./lib";
|
|
9
|
+
import { LightLeakTransition } from "./light-leak/LightLeakTransition";
|
|
10
|
+
import { LowerThird } from "./lower-third/LowerThird";
|
|
11
|
+
import { PromptBox } from "./prompt-box/PromptBox";
|
|
12
|
+
import { SlideZoomMessage } from "./slide-zoom-message/SlideZoomMessage";
|
|
13
|
+
import { StatCounter } from "./stat-counter/StatCounter";
|
|
14
|
+
import { TextReveal } from "./text-reveal/TextReveal";
|
|
15
|
+
import { BlurInTitle } from "./blur-in-title/BlurInTitle";
|
|
16
|
+
import { LetterCascade } from "./letter-cascade/LetterCascade";
|
|
17
|
+
import { Typewriter } from "./typewriter/Typewriter";
|
|
18
|
+
import { WordSwap } from "./word-swap/WordSwap";
|
|
19
|
+
import { BarWipeTitle } from "./bar-wipe-title/BarWipeTitle";
|
|
20
|
+
import { KineticPunch } from "./kinetic-punch/KineticPunch";
|
|
21
|
+
import { DecodeText } from "./decode-text/DecodeText";
|
|
22
|
+
import { OutlineFill } from "./outline-fill/OutlineFill";
|
|
23
|
+
import { EditorialQuote } from "./editorial-quote/EditorialQuote";
|
|
24
|
+
import { Highlighter } from "./highlighter/Highlighter";
|
|
25
|
+
import { LogoSting } from "./logo-sting/LogoSting";
|
|
26
|
+
import { Marquee } from "./marquee/Marquee";
|
|
27
|
+
import { Aurora } from "./aurora/Aurora";
|
|
28
|
+
import { LavaLamp } from "./lava-lamp/LavaLamp";
|
|
29
|
+
import { SpotlightGrid } from "./spotlight-grid/SpotlightGrid";
|
|
30
|
+
import { IrisWipe } from "./iris-wipe/IrisWipe";
|
|
31
|
+
import { PanelSweep } from "./panel-sweep/PanelSweep";
|
|
32
|
+
import { TileWipe } from "./tile-wipe/TileWipe";
|
|
33
|
+
import { Notification } from "./notification/Notification";
|
|
34
|
+
import { ChatThread } from "./chat-thread/ChatThread";
|
|
35
|
+
import { StickerSlam } from "./sticker-slam/StickerSlam";
|
|
36
|
+
import { GlitchTitle } from "./glitch-title/GlitchTitle";
|
|
37
|
+
import { SplitFlap } from "./split-flap/SplitFlap";
|
|
38
|
+
import { Countdown } from "./countdown/Countdown";
|
|
39
|
+
import { WordStack } from "./word-stack/WordStack";
|
|
40
|
+
import { TypeZoom } from "./type-zoom/TypeZoom";
|
|
41
|
+
import { HalftoneWave } from "./halftone-wave/HalftoneWave";
|
|
42
|
+
import { BentoGrid } from "./bento-grid/BentoGrid";
|
|
43
|
+
import { SocialPost } from "./social-post/SocialPost";
|
|
44
|
+
import { Checklist } from "./checklist/Checklist";
|
|
45
|
+
import { Confetti } from "./confetti/Confetti";
|
|
46
|
+
import { KineticPoster } from "./kinetic-poster/KineticPoster";
|
|
47
|
+
import { ArcadeTitle } from "./arcade-title/ArcadeTitle";
|
|
48
|
+
import { CutAndPaste } from "./cut-and-paste/CutAndPaste";
|
|
49
|
+
import { TargetLock } from "./target-lock/TargetLock";
|
|
50
|
+
import { ShapeShift } from "./shape-shift/ShapeShift";
|
|
51
|
+
import { HookCard } from "./hook-card/HookCard";
|
|
52
|
+
import { WordPop } from "./word-pop/WordPop";
|
|
53
|
+
import { StickerBadge } from "./sticker-badge/StickerBadge";
|
|
54
|
+
import { ListCard } from "./list-card/ListCard";
|
|
55
|
+
import { QuoteCard } from "./quote-card/QuoteCard";
|
|
56
|
+
import { BeforeAfter } from "./before-after/BeforeAfter";
|
|
57
|
+
import { LineDiagram } from "./line-diagram/LineDiagram";
|
|
58
|
+
|
|
59
|
+
type AnyComponent = ComponentType<MotionBaseProps & PropValues>;
|
|
60
|
+
const COMPONENTS: Record<string, unknown> = {
|
|
61
|
+
"text-reveal": TextReveal,
|
|
62
|
+
"slide-zoom-message": SlideZoomMessage,
|
|
63
|
+
"lower-third": LowerThird,
|
|
64
|
+
"stat-counter": StatCounter,
|
|
65
|
+
"prompt-box": PromptBox,
|
|
66
|
+
"light-leak": LightLeakTransition,
|
|
67
|
+
"blur-in-title": BlurInTitle,
|
|
68
|
+
"letter-cascade": LetterCascade,
|
|
69
|
+
"typewriter": Typewriter,
|
|
70
|
+
"word-swap": WordSwap,
|
|
71
|
+
"bar-wipe-title": BarWipeTitle,
|
|
72
|
+
"kinetic-punch": KineticPunch,
|
|
73
|
+
"decode-text": DecodeText,
|
|
74
|
+
"outline-fill": OutlineFill,
|
|
75
|
+
"editorial-quote": EditorialQuote,
|
|
76
|
+
"highlighter": Highlighter,
|
|
77
|
+
"logo-sting": LogoSting,
|
|
78
|
+
"marquee": Marquee,
|
|
79
|
+
"aurora": Aurora,
|
|
80
|
+
"lava-lamp": LavaLamp,
|
|
81
|
+
"spotlight-grid": SpotlightGrid,
|
|
82
|
+
"iris-wipe": IrisWipe,
|
|
83
|
+
"panel-sweep": PanelSweep,
|
|
84
|
+
"tile-wipe": TileWipe,
|
|
85
|
+
"notification": Notification,
|
|
86
|
+
"chat-thread": ChatThread,
|
|
87
|
+
"sticker-slam": StickerSlam,
|
|
88
|
+
"glitch-title": GlitchTitle,
|
|
89
|
+
"split-flap": SplitFlap,
|
|
90
|
+
"countdown": Countdown,
|
|
91
|
+
"word-stack": WordStack,
|
|
92
|
+
"type-zoom": TypeZoom,
|
|
93
|
+
"halftone-wave": HalftoneWave,
|
|
94
|
+
"bento-grid": BentoGrid,
|
|
95
|
+
"social-post": SocialPost,
|
|
96
|
+
"checklist": Checklist,
|
|
97
|
+
"confetti": Confetti,
|
|
98
|
+
"kinetic-poster": KineticPoster,
|
|
99
|
+
"arcade-title": ArcadeTitle,
|
|
100
|
+
"cut-and-paste": CutAndPaste,
|
|
101
|
+
"target-lock": TargetLock,
|
|
102
|
+
"shape-shift": ShapeShift,
|
|
103
|
+
"hook-card": HookCard,
|
|
104
|
+
"word-pop": WordPop,
|
|
105
|
+
"sticker-badge": StickerBadge,
|
|
106
|
+
"list-card": ListCard,
|
|
107
|
+
"quote-card": QuoteCard,
|
|
108
|
+
"before-after": BeforeAfter,
|
|
109
|
+
"line-diagram": LineDiagram,
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** Every component waits for the library's fonts, so previews, stills and exports never use a fallback. */
|
|
113
|
+
function withFonts(Component: AnyComponent, name: string): AnyComponent {
|
|
114
|
+
function WithFonts(props: MotionBaseProps & PropValues) {
|
|
115
|
+
useMotionFonts();
|
|
116
|
+
return createElement(Component, props);
|
|
117
|
+
}
|
|
118
|
+
WithFonts.displayName = `WithFonts(${name})`;
|
|
119
|
+
return WithFonts;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const MOTION_COMPONENTS: Record<string, MotionComponent> = Object.fromEntries(
|
|
123
|
+
Object.entries(COMPONENT_METAS).map(([id, meta]) => [
|
|
124
|
+
id,
|
|
125
|
+
{ meta, Component: withFonts(COMPONENTS[id] as AnyComponent, meta.name) },
|
|
126
|
+
]),
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
export const COMPONENT_CATEGORIES = [
|
|
130
|
+
"Talking Head",
|
|
131
|
+
"Text & Titles",
|
|
132
|
+
"Overlays",
|
|
133
|
+
"Charts & Stats",
|
|
134
|
+
"AI & Product",
|
|
135
|
+
"Backgrounds",
|
|
136
|
+
"Transitions",
|
|
137
|
+
] as const;
|
|
138
|
+
|
|
139
|
+
export { checkComponentProps, resolveComponentProps, styledPropKeys } from "./props";
|
|
140
|
+
export { getMotionStyle, MOTION_STYLES, STYLE_TOKENS } from "./styles";
|
|
141
|
+
export type { MotionStyle, StyleToken } from "./styles";
|
|
142
|
+
// The runtime calls this when a project has a style, so caption and text clips get the style's fonts.
|
|
143
|
+
export { loadMotionFonts, useMotionFonts } from "./lib";
|
|
144
|
+
// Called by the studio runtime for a project with a style: camera on footage, texture, captions.
|
|
145
|
+
export { StyleOverlay, StyledCaptions, styleCamera, styleLookProps } from "./style-layer";
|
|
146
|
+
export { hookSpeakerBox, type SpeakerBox } from "./hook-card/HookCard";
|
|
147
|
+
|
|
148
|
+
export { COMPONENT_METAS } from "./catalog";
|
|
149
|
+
export type { ComponentMeta, MotionBaseProps, MotionComponent, PropSpec, PropValues } from "./types";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useId } from "react";
|
|
2
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
3
|
+
import { easeInOut, ramp } from "../lib";
|
|
4
|
+
import type { MotionBaseProps } from "../types";
|
|
5
|
+
|
|
6
|
+
type Props = MotionBaseProps & {
|
|
7
|
+
color: string;
|
|
8
|
+
accent: string;
|
|
9
|
+
rings: boolean;
|
|
10
|
+
originX: number;
|
|
11
|
+
originY: number;
|
|
12
|
+
shape: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A shape transition: colored circles (or diamonds) burst out from a point and cover the frame by
|
|
17
|
+
* the clip's midpoint, then a hole opens in them from the same point to reveal the next shot.
|
|
18
|
+
* Center the clip on the cut.
|
|
19
|
+
*/
|
|
20
|
+
export function IrisWipe(props: Props) {
|
|
21
|
+
const frame = useCurrentFrame();
|
|
22
|
+
const { width, height, durationInFrames: d } = props;
|
|
23
|
+
const id = `iris${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
24
|
+
const mid = d / 2;
|
|
25
|
+
const cx = (props.originX / 100) * width;
|
|
26
|
+
const cy = (props.originY / 100) * height;
|
|
27
|
+
// Far enough to cover the farthest corner from the origin.
|
|
28
|
+
const reach = Math.max(
|
|
29
|
+
Math.hypot(cx, cy),
|
|
30
|
+
Math.hypot(width - cx, cy),
|
|
31
|
+
Math.hypot(cx, height - cy),
|
|
32
|
+
Math.hypot(width - cx, height - cy),
|
|
33
|
+
) * (props.shape === "diamond" ? 1.45 : 1.02);
|
|
34
|
+
const layers = props.rings ? [props.accent, props.color] : [props.color];
|
|
35
|
+
const lag = Math.max(2, d * 0.08);
|
|
36
|
+
|
|
37
|
+
const shapeAt = (r: number, fill: string, key: string) =>
|
|
38
|
+
props.shape === "diamond" ? (
|
|
39
|
+
<polygon key={key} points={`${cx},${cy - r} ${cx + r},${cy} ${cx},${cy + r} ${cx - r},${cy}`} fill={fill} />
|
|
40
|
+
) : (
|
|
41
|
+
<circle key={key} cx={cx} cy={cy} r={r} fill={fill} />
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
// Opening: the last layer to land is the first to open.
|
|
45
|
+
const open = ramp(frame, mid, mid - 1, easeInOut);
|
|
46
|
+
const openLag = ramp(frame, mid + lag, mid - 1 - lag, easeInOut);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<AbsoluteFill>
|
|
50
|
+
<svg width={width} height={height} style={{ position: "absolute", inset: 0 }}>
|
|
51
|
+
<defs>
|
|
52
|
+
<mask id={`${id}-hole`}>
|
|
53
|
+
<rect width={width} height={height} fill="white" />
|
|
54
|
+
{shapeAt(reach * open, "black", "hole")}
|
|
55
|
+
</mask>
|
|
56
|
+
<mask id={`${id}-hole2`}>
|
|
57
|
+
<rect width={width} height={height} fill="white" />
|
|
58
|
+
{shapeAt(reach * openLag, "black", "hole2")}
|
|
59
|
+
</mask>
|
|
60
|
+
</defs>
|
|
61
|
+
{layers.map((fill, i) => {
|
|
62
|
+
const delay = i * lag;
|
|
63
|
+
const grow = ramp(frame, delay, mid - delay, easeInOut);
|
|
64
|
+
if (grow <= 0) return null;
|
|
65
|
+
// Rings: the outer (accent) layer opens last, so it rims the reveal.
|
|
66
|
+
const mask = layers.length > 1 && i === 0 ? `url(#${id}-hole2)` : `url(#${id}-hole)`;
|
|
67
|
+
return (
|
|
68
|
+
<g key={i} mask={frame >= mid ? mask : undefined}>
|
|
69
|
+
{shapeAt(reach * grow, fill, `s${i}`)}
|
|
70
|
+
</g>
|
|
71
|
+
);
|
|
72
|
+
})}
|
|
73
|
+
</svg>
|
|
74
|
+
</AbsoluteFill>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "iris-wipe",
|
|
3
|
+
"name": "Iris Burst",
|
|
4
|
+
"category": "Transitions",
|
|
5
|
+
"description": "Colored circles or diamonds burst out from a point to cover the frame, then open a hole from the same point to reveal the next shot.",
|
|
6
|
+
"useWhen": "Playful, graphic cuts between scenes: from a clicked button to the next screen (set the origin to the click), between chapters, into a title card. Put it on a track above both clips and center it on the cut (from = cut frame − half its length).",
|
|
7
|
+
"durationInFrames": 30,
|
|
8
|
+
"layer": "overlay",
|
|
9
|
+
"tags": ["transition", "iris", "circle", "wipe", "reveal", "burst", "shape"],
|
|
10
|
+
"props": {
|
|
11
|
+
"color": { "type": "color", "label": "Color", "default": "#111111" },
|
|
12
|
+
"accent": { "type": "color", "label": "Ring color", "default": "#f97316" },
|
|
13
|
+
"rings": { "type": "boolean", "label": "Two rings", "default": true, "help": "An accent ring leads the main color in and trails it out." },
|
|
14
|
+
"originX": { "type": "number", "label": "Origin X", "default": 50, "min": 0, "max": 100, "step": 1, "unit": "%" },
|
|
15
|
+
"originY": { "type": "number", "label": "Origin Y", "default": 50, "min": 0, "max": 100, "step": 1, "unit": "%" },
|
|
16
|
+
"shape": { "type": "select", "label": "Shape", "default": "circle", "options": [{ "value": "circle", "label": "Circle" }, { "value": "diamond", "label": "Diamond" }] }
|
|
17
|
+
},
|
|
18
|
+
"examples": [
|
|
19
|
+
{ "name": "Center burst", "props": {} },
|
|
20
|
+
{ "name": "From a click", "props": { "originX": 78, "originY": 30, "color": "#2563eb", "accent": "#93c5fd" } },
|
|
21
|
+
{ "name": "Diamond", "props": { "shape": "diamond", "color": "#fafafa", "accent": "#ec4899" } }
|
|
22
|
+
],
|
|
23
|
+
"stillAt": 0.25
|
|
24
|
+
}
|