@contractspec/lib.video-gen 2.7.17 → 2.7.18

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.
Files changed (127) hide show
  1. package/dist/browser/compositions/api-overview.js +1 -645
  2. package/dist/browser/compositions/index.js +1 -1133
  3. package/dist/browser/compositions/primitives/animated-text.js +1 -144
  4. package/dist/browser/compositions/primitives/brand-frame.js +1 -181
  5. package/dist/browser/compositions/primitives/code-block.js +1 -226
  6. package/dist/browser/compositions/primitives/index.js +1 -656
  7. package/dist/browser/compositions/primitives/progress-bar.js +1 -59
  8. package/dist/browser/compositions/primitives/terminal.js +1 -265
  9. package/dist/browser/compositions/primitives/transition.js +1 -98
  10. package/dist/browser/compositions/social-clip.js +1 -500
  11. package/dist/browser/compositions/terminal-demo.js +1 -558
  12. package/dist/browser/design/index.js +1 -155
  13. package/dist/browser/design/layouts.js +1 -50
  14. package/dist/browser/design/motion.js +1 -43
  15. package/dist/browser/design/tokens.js +1 -28
  16. package/dist/browser/design/typography.js +1 -61
  17. package/dist/browser/docs/compositions.docblock.js +1 -182
  18. package/dist/browser/docs/design.docblock.js +2 -17
  19. package/dist/browser/docs/generators.docblock.js +2 -24
  20. package/dist/browser/docs/rendering.docblock.js +2 -24
  21. package/dist/browser/docs/video-gen.docblock.js +2 -17
  22. package/dist/browser/generators/index.js +7 -769
  23. package/dist/browser/generators/scene-planner.js +7 -651
  24. package/dist/browser/generators/script-generator.js +7 -599
  25. package/dist/browser/generators/video-generator.js +7 -768
  26. package/dist/browser/i18n/catalogs/en.js +3 -135
  27. package/dist/browser/i18n/catalogs/es.js +3 -135
  28. package/dist/browser/i18n/catalogs/fr.js +3 -135
  29. package/dist/browser/i18n/catalogs/index.js +7 -387
  30. package/dist/browser/i18n/index.js +7 -459
  31. package/dist/browser/i18n/keys.js +1 -54
  32. package/dist/browser/i18n/locale.js +1 -21
  33. package/dist/browser/i18n/messages.js +7 -399
  34. package/dist/browser/index.js +7 -1903
  35. package/dist/browser/player/demo-player.js +1 -1136
  36. package/dist/browser/player/index.js +1 -1136
  37. package/dist/browser/remotion/Root.js +2 -1172
  38. package/dist/browser/remotion/index.js +2 -1173
  39. package/dist/browser/renderers/config.js +1 -40
  40. package/dist/browser/renderers/index.js +1 -160
  41. package/dist/browser/renderers/local.js +1 -156
  42. package/dist/browser/types.js +1 -13
  43. package/dist/compositions/api-overview.js +1 -639
  44. package/dist/compositions/index.js +1 -1127
  45. package/dist/compositions/primitives/animated-text.js +1 -138
  46. package/dist/compositions/primitives/brand-frame.js +1 -175
  47. package/dist/compositions/primitives/code-block.js +1 -220
  48. package/dist/compositions/primitives/index.js +1 -650
  49. package/dist/compositions/primitives/progress-bar.js +1 -53
  50. package/dist/compositions/primitives/terminal.js +1 -259
  51. package/dist/compositions/primitives/transition.js +1 -92
  52. package/dist/compositions/social-clip.js +1 -494
  53. package/dist/compositions/terminal-demo.js +1 -552
  54. package/dist/design/index.js +1 -149
  55. package/dist/design/layouts.js +1 -44
  56. package/dist/design/motion.js +1 -37
  57. package/dist/design/tokens.js +1 -22
  58. package/dist/design/typography.js +1 -55
  59. package/dist/docs/compositions.docblock.js +1 -182
  60. package/dist/docs/design.docblock.js +2 -17
  61. package/dist/docs/generators.docblock.js +2 -24
  62. package/dist/docs/rendering.docblock.js +2 -24
  63. package/dist/docs/video-gen.docblock.js +2 -17
  64. package/dist/generators/index.js +7 -763
  65. package/dist/generators/scene-planner.js +7 -645
  66. package/dist/generators/script-generator.js +7 -593
  67. package/dist/generators/video-generator.js +7 -762
  68. package/dist/i18n/catalogs/en.js +3 -129
  69. package/dist/i18n/catalogs/es.js +3 -129
  70. package/dist/i18n/catalogs/fr.js +3 -129
  71. package/dist/i18n/catalogs/index.js +7 -381
  72. package/dist/i18n/index.js +7 -453
  73. package/dist/i18n/keys.js +1 -48
  74. package/dist/i18n/locale.js +1 -15
  75. package/dist/i18n/messages.js +7 -393
  76. package/dist/index.js +7 -1897
  77. package/dist/node/compositions/api-overview.js +1 -640
  78. package/dist/node/compositions/index.js +1 -1128
  79. package/dist/node/compositions/primitives/animated-text.js +1 -139
  80. package/dist/node/compositions/primitives/brand-frame.js +1 -176
  81. package/dist/node/compositions/primitives/code-block.js +1 -221
  82. package/dist/node/compositions/primitives/index.js +1 -651
  83. package/dist/node/compositions/primitives/progress-bar.js +1 -54
  84. package/dist/node/compositions/primitives/terminal.js +1 -260
  85. package/dist/node/compositions/primitives/transition.js +1 -93
  86. package/dist/node/compositions/social-clip.js +1 -495
  87. package/dist/node/compositions/terminal-demo.js +1 -553
  88. package/dist/node/design/index.js +1 -150
  89. package/dist/node/design/layouts.js +1 -45
  90. package/dist/node/design/motion.js +1 -38
  91. package/dist/node/design/tokens.js +1 -23
  92. package/dist/node/design/typography.js +1 -56
  93. package/dist/node/docs/compositions.docblock.js +1 -182
  94. package/dist/node/docs/design.docblock.js +2 -17
  95. package/dist/node/docs/generators.docblock.js +2 -24
  96. package/dist/node/docs/rendering.docblock.js +2 -24
  97. package/dist/node/docs/video-gen.docblock.js +2 -17
  98. package/dist/node/generators/index.js +7 -764
  99. package/dist/node/generators/scene-planner.js +7 -646
  100. package/dist/node/generators/script-generator.js +7 -594
  101. package/dist/node/generators/video-generator.js +7 -763
  102. package/dist/node/i18n/catalogs/en.js +3 -130
  103. package/dist/node/i18n/catalogs/es.js +3 -130
  104. package/dist/node/i18n/catalogs/fr.js +3 -130
  105. package/dist/node/i18n/catalogs/index.js +7 -382
  106. package/dist/node/i18n/index.js +7 -454
  107. package/dist/node/i18n/keys.js +1 -49
  108. package/dist/node/i18n/locale.js +1 -16
  109. package/dist/node/i18n/messages.js +7 -394
  110. package/dist/node/index.js +7 -1898
  111. package/dist/node/player/demo-player.js +1 -1131
  112. package/dist/node/player/index.js +1 -1131
  113. package/dist/node/remotion/Root.js +2 -1167
  114. package/dist/node/remotion/index.js +2 -1168
  115. package/dist/node/renderers/config.js +1 -35
  116. package/dist/node/renderers/index.js +1 -155
  117. package/dist/node/renderers/local.js +1 -151
  118. package/dist/node/types.js +1 -8
  119. package/dist/player/demo-player.js +1 -1130
  120. package/dist/player/index.js +1 -1130
  121. package/dist/remotion/Root.js +2 -1166
  122. package/dist/remotion/index.js +2 -1167
  123. package/dist/renderers/config.js +1 -34
  124. package/dist/renderers/index.js +1 -154
  125. package/dist/renderers/local.js +1 -150
  126. package/dist/types.js +1 -7
  127. package/package.json +16 -16
@@ -1,1073 +1,5 @@
1
1
  // @bun
2
- var __require = import.meta.require;
3
-
4
- // src/design/motion.ts
5
- import { Easing } from "remotion";
6
- var videoEasing = {
7
- entrance: Easing.out(Easing.exp),
8
- exit: Easing.in(Easing.exp),
9
- emphasis: Easing.out(Easing.back(1.4)),
10
- linear: Easing.linear,
11
- gentle: Easing.bezier(0.25, 0.1, 0.25, 1),
12
- spring: Easing.out(Easing.back(1.7))
13
- };
14
- var videoDurations = {
15
- sceneTransition: 20,
16
- textEntrance: 15,
17
- textExit: 12,
18
- codeTypingPerChar: 2,
19
- sectionPause: 30,
20
- emphasisPause: 15,
21
- brandReveal: 25,
22
- minScene: 60,
23
- shortScene: 60,
24
- mediumScene: 120,
25
- longScene: 240
26
- };
27
- var videoTransitions = {
28
- fade: { type: "fade", durationInFrames: 20 },
29
- slideLeft: { type: "slide-left", durationInFrames: 20 },
30
- slideRight: { type: "slide-right", durationInFrames: 20 },
31
- wipe: { type: "wipe", durationInFrames: 15 },
32
- none: { type: "none", durationInFrames: 0 }
33
- };
34
-
35
- // src/design/tokens.ts
36
- import { defaultTokens } from "@contractspec/lib.design-system";
37
- var defaultVideoColors = {
38
- canvasBackground: defaultTokens.colors.background,
39
- codeBackground: "#1e1e2e",
40
- terminalBackground: "#0d1117",
41
- terminalForeground: "#c9d1d9",
42
- highlight: defaultTokens.colors.accent,
43
- gradientStart: defaultTokens.colors.primary,
44
- gradientEnd: defaultTokens.colors.accent
45
- };
46
- var defaultVideoTheme = {
47
- ...defaultTokens,
48
- video: defaultVideoColors
49
- };
50
-
51
- // src/design/typography.ts
52
- var videoTypography = {
53
- title: {
54
- fontSize: 72,
55
- lineHeight: 1.1,
56
- fontWeight: 700,
57
- letterSpacing: -1
58
- },
59
- heading: {
60
- fontSize: 56,
61
- lineHeight: 1.2,
62
- fontWeight: 600,
63
- letterSpacing: -0.5
64
- },
65
- subheading: {
66
- fontSize: 40,
67
- lineHeight: 1.25,
68
- fontWeight: 500
69
- },
70
- body: {
71
- fontSize: 32,
72
- lineHeight: 1.5,
73
- fontWeight: 400
74
- },
75
- code: {
76
- fontSize: 28,
77
- lineHeight: 1.6,
78
- fontWeight: 400
79
- },
80
- caption: {
81
- fontSize: 24,
82
- lineHeight: 1.4,
83
- fontWeight: 400
84
- },
85
- label: {
86
- fontSize: 20,
87
- lineHeight: 1.3,
88
- fontWeight: 600,
89
- letterSpacing: 1
90
- }
91
- };
92
- function scaleTypography(style, targetWidth) {
93
- const scale = targetWidth / 1920;
94
- return {
95
- ...style,
96
- fontSize: Math.round(style.fontSize * scale),
97
- letterSpacing: style.letterSpacing ? Math.round(style.letterSpacing * scale * 10) / 10 : undefined
98
- };
99
- }
100
-
101
- // src/compositions/primitives/animated-text.tsx
102
- import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";
103
- import { jsxDEV } from "react/jsx-dev-runtime";
104
- var AnimatedText = ({
105
- text,
106
- variant = "body",
107
- style: styleOverride,
108
- enterAt = 0,
109
- exitAt,
110
- color = "#ffffff",
111
- align = "left"
112
- }) => {
113
- const frame = useCurrentFrame();
114
- const { width } = useVideoConfig();
115
- const baseStyle = videoTypography[variant];
116
- const scaled = scaleTypography(baseStyle, width);
117
- const finalStyle = { ...scaled, ...styleOverride };
118
- const enterProgress = interpolate(frame, [enterAt, enterAt + videoDurations.textEntrance], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
119
- const enterOpacity = interpolate(enterProgress, [0, 1], [0, 1], {
120
- easing: videoEasing.entrance
121
- });
122
- const enterTranslateY = interpolate(enterProgress, [0, 1], [30, 0], {
123
- easing: videoEasing.entrance
124
- });
125
- let exitOpacity = 1;
126
- let exitTranslateY = 0;
127
- if (exitAt !== undefined) {
128
- const exitProgress = interpolate(frame, [exitAt, exitAt + videoDurations.textExit], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
129
- exitOpacity = interpolate(exitProgress, [0, 1], [1, 0], {
130
- easing: videoEasing.exit
131
- });
132
- exitTranslateY = interpolate(exitProgress, [0, 1], [0, -20], {
133
- easing: videoEasing.exit
134
- });
135
- }
136
- const opacity = enterOpacity * exitOpacity;
137
- const translateY = enterTranslateY + exitTranslateY;
138
- return /* @__PURE__ */ jsxDEV("div", {
139
- style: {
140
- fontSize: finalStyle.fontSize,
141
- lineHeight: finalStyle.lineHeight,
142
- fontWeight: finalStyle.fontWeight,
143
- letterSpacing: finalStyle.letterSpacing,
144
- color,
145
- textAlign: align,
146
- opacity,
147
- transform: `translateY(${translateY}px)`,
148
- willChange: "opacity, transform"
149
- },
150
- children: text
151
- }, undefined, false, undefined, this);
152
- };
153
-
154
- // src/design/layouts.ts
155
- import { VIDEO_FORMATS } from "@contractspec/lib.contracts-integrations/integrations/providers/video";
156
- var DEFAULT_FPS = 30;
157
- var videoSafeZone = {
158
- horizontal: 120,
159
- vertical: 80,
160
- contentWidth: 1680,
161
- contentHeight: 920
162
- };
163
- function scaleSafeZone(format) {
164
- const scaleX = format.width / 1920;
165
- const scaleY = format.height / 1080;
166
- return {
167
- horizontal: Math.round(videoSafeZone.horizontal * scaleX),
168
- vertical: Math.round(videoSafeZone.vertical * scaleY),
169
- contentWidth: Math.round(videoSafeZone.contentWidth * scaleX),
170
- contentHeight: Math.round(videoSafeZone.contentHeight * scaleY)
171
- };
172
- }
173
- var videoPositions = {
174
- center: { x: 960, y: 540 },
175
- topLeft: { x: 120, y: 80 },
176
- topRight: { x: 1800, y: 80 },
177
- bottomLeft: { x: 120, y: 1000 },
178
- bottomRight: { x: 1800, y: 1000 },
179
- bottomCenter: { x: 960, y: 960 }
180
- };
181
- function getAllFormatVariants() {
182
- return [
183
- VIDEO_FORMATS.landscape,
184
- VIDEO_FORMATS.square,
185
- VIDEO_FORMATS.portrait
186
- ];
187
- }
188
-
189
- // src/compositions/primitives/brand-frame.tsx
190
- import { interpolate as interpolate2, useCurrentFrame as useCurrentFrame2, useVideoConfig as useVideoConfig2 } from "remotion";
191
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
192
- var BrandFrame = ({
193
- styleOverrides,
194
- showBranding = true,
195
- animateEntrance = true,
196
- variant = "gradient",
197
- children
198
- }) => {
199
- const frame = useCurrentFrame2();
200
- const { width, height } = useVideoConfig2();
201
- const theme = defaultVideoTheme;
202
- const safeZone = scaleSafeZone({ type: "custom", width, height });
203
- const primaryColor = styleOverrides?.primaryColor ?? theme.colors.primary;
204
- const _accentColor = styleOverrides?.accentColor ?? theme.colors.accent;
205
- const isDark = styleOverrides?.darkMode ?? true;
206
- let background;
207
- switch (variant) {
208
- case "solid":
209
- background = isDark ? "#0a0a0a" : theme.colors.background;
210
- break;
211
- case "gradient":
212
- background = isDark ? `linear-gradient(135deg, #0a0a14 0%, #0f172a 50%, #0a0a14 100%)` : `linear-gradient(135deg, ${theme.colors.background} 0%, ${theme.colors.muted} 100%)`;
213
- break;
214
- case "dark":
215
- background = "#000000";
216
- break;
217
- }
218
- const entranceOpacity = animateEntrance ? interpolate2(frame, [0, 15], [0, 1], {
219
- extrapolateLeft: "clamp",
220
- extrapolateRight: "clamp",
221
- easing: videoEasing.entrance
222
- }) : 1;
223
- const brandOpacity = showBranding ? interpolate2(frame, [videoDurations.brandReveal, videoDurations.brandReveal + 15], [0, 0.3], {
224
- extrapolateLeft: "clamp",
225
- extrapolateRight: "clamp"
226
- }) : 0;
227
- return /* @__PURE__ */ jsxDEV2("div", {
228
- style: {
229
- width,
230
- height,
231
- background,
232
- position: "relative",
233
- overflow: "hidden",
234
- opacity: entranceOpacity
235
- },
236
- children: [
237
- variant === "gradient" && /* @__PURE__ */ jsxDEV2("div", {
238
- style: {
239
- position: "absolute",
240
- top: "-20%",
241
- right: "-10%",
242
- width: "50%",
243
- height: "50%",
244
- background: `radial-gradient(circle, ${primaryColor}15 0%, transparent 70%)`,
245
- borderRadius: "50%",
246
- pointerEvents: "none"
247
- }
248
- }, undefined, false, undefined, this),
249
- /* @__PURE__ */ jsxDEV2("div", {
250
- style: {
251
- position: "absolute",
252
- left: safeZone.horizontal,
253
- top: safeZone.vertical,
254
- width: safeZone.contentWidth,
255
- height: safeZone.contentHeight,
256
- display: "flex",
257
- flexDirection: "column"
258
- },
259
- children
260
- }, undefined, false, undefined, this),
261
- showBranding && /* @__PURE__ */ jsxDEV2("div", {
262
- style: {
263
- position: "absolute",
264
- bottom: safeZone.vertical / 2,
265
- right: safeZone.horizontal,
266
- opacity: brandOpacity,
267
- color: isDark ? "#ffffff" : "#000000",
268
- fontSize: Math.round(16 * (width / 1920)),
269
- fontWeight: 500,
270
- letterSpacing: 1
271
- },
272
- children: "ContractSpec"
273
- }, undefined, false, undefined, this)
274
- ]
275
- }, undefined, true, undefined, this);
276
- };
277
-
278
- // src/compositions/primitives/code-block.tsx
279
- import { interpolate as interpolate3, useCurrentFrame as useCurrentFrame3, useVideoConfig as useVideoConfig3 } from "remotion";
280
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
281
- var CodeBlock = ({
282
- code,
283
- language = "typescript",
284
- startAt = 0,
285
- typeAnimation = true,
286
- backgroundColor = defaultVideoColors.codeBackground,
287
- textColor = "#abb2bf",
288
- filename
289
- }) => {
290
- const frame = useCurrentFrame3();
291
- const { width } = useVideoConfig3();
292
- const codeStyle = scaleTypography(videoTypography.code, width);
293
- const totalChars = code.length;
294
- const typingDuration = totalChars * videoDurations.codeTypingPerChar;
295
- const charsVisible = typeAnimation ? Math.floor(interpolate3(frame, [startAt, startAt + typingDuration], [0, totalChars], {
296
- extrapolateLeft: "clamp",
297
- extrapolateRight: "clamp"
298
- })) : totalChars;
299
- const visibleCode = code.slice(0, charsVisible);
300
- const opacity = interpolate3(frame, [startAt, startAt + 10], [0, 1], {
301
- extrapolateLeft: "clamp",
302
- extrapolateRight: "clamp",
303
- easing: videoEasing.entrance
304
- });
305
- const showCursor = typeAnimation && charsVisible < totalChars && frame % 16 < 10;
306
- return /* @__PURE__ */ jsxDEV3("div", {
307
- style: {
308
- backgroundColor,
309
- borderRadius: 16,
310
- padding: 0,
311
- opacity,
312
- overflow: "hidden",
313
- boxShadow: "0 8px 32px rgba(0,0,0,0.3)"
314
- },
315
- children: [
316
- /* @__PURE__ */ jsxDEV3("div", {
317
- style: {
318
- display: "flex",
319
- alignItems: "center",
320
- padding: "12px 20px",
321
- backgroundColor: "rgba(0,0,0,0.2)",
322
- gap: 8
323
- },
324
- children: [
325
- /* @__PURE__ */ jsxDEV3("div", {
326
- style: { display: "flex", gap: 8 },
327
- children: [
328
- /* @__PURE__ */ jsxDEV3("div", {
329
- style: {
330
- width: 12,
331
- height: 12,
332
- borderRadius: "50%",
333
- backgroundColor: "#ff5f57"
334
- }
335
- }, undefined, false, undefined, this),
336
- /* @__PURE__ */ jsxDEV3("div", {
337
- style: {
338
- width: 12,
339
- height: 12,
340
- borderRadius: "50%",
341
- backgroundColor: "#febc2e"
342
- }
343
- }, undefined, false, undefined, this),
344
- /* @__PURE__ */ jsxDEV3("div", {
345
- style: {
346
- width: 12,
347
- height: 12,
348
- borderRadius: "50%",
349
- backgroundColor: "#28c840"
350
- }
351
- }, undefined, false, undefined, this)
352
- ]
353
- }, undefined, true, undefined, this),
354
- /* @__PURE__ */ jsxDEV3("div", {
355
- style: {
356
- flex: 1,
357
- textAlign: "center",
358
- color: "#666",
359
- fontSize: codeStyle.fontSize * 0.7,
360
- fontFamily: "monospace"
361
- },
362
- children: filename ?? language
363
- }, undefined, false, undefined, this)
364
- ]
365
- }, undefined, true, undefined, this),
366
- /* @__PURE__ */ jsxDEV3("div", {
367
- style: { padding: "24px 32px" },
368
- children: /* @__PURE__ */ jsxDEV3("pre", {
369
- style: {
370
- margin: 0,
371
- fontFamily: "'SF Mono', 'Fira Code', 'JetBrains Mono', monospace",
372
- fontSize: codeStyle.fontSize,
373
- lineHeight: codeStyle.lineHeight,
374
- color: textColor,
375
- whiteSpace: "pre-wrap",
376
- wordBreak: "break-word"
377
- },
378
- children: [
379
- visibleCode,
380
- showCursor && /* @__PURE__ */ jsxDEV3("span", {
381
- style: {
382
- backgroundColor: textColor,
383
- width: "2px",
384
- display: "inline-block",
385
- height: "1.2em",
386
- verticalAlign: "text-bottom"
387
- },
388
- children: "\xA0"
389
- }, undefined, false, undefined, this)
390
- ]
391
- }, undefined, true, undefined, this)
392
- }, undefined, false, undefined, this)
393
- ]
394
- }, undefined, true, undefined, this);
395
- };
396
-
397
- // src/compositions/primitives/progress-bar.tsx
398
- import { useCurrentFrame as useCurrentFrame4, useVideoConfig as useVideoConfig4 } from "remotion";
399
- import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
400
- var ProgressBar = ({
401
- height = 4,
402
- color = defaultVideoTheme.colors.primary,
403
- backgroundColor = "rgba(255,255,255,0.1)",
404
- position = "bottom"
405
- }) => {
406
- const frame = useCurrentFrame4();
407
- const { durationInFrames, width } = useVideoConfig4();
408
- const progress = frame / durationInFrames;
409
- return /* @__PURE__ */ jsxDEV4("div", {
410
- style: {
411
- position: "absolute",
412
- [position]: 0,
413
- left: 0,
414
- width,
415
- height,
416
- backgroundColor,
417
- zIndex: 100
418
- },
419
- children: /* @__PURE__ */ jsxDEV4("div", {
420
- style: {
421
- width: `${progress * 100}%`,
422
- height: "100%",
423
- backgroundColor: color,
424
- transition: "none"
425
- }
426
- }, undefined, false, undefined, this)
427
- }, undefined, false, undefined, this);
428
- };
429
-
430
- // src/compositions/api-overview.tsx
431
- import {
432
- AbsoluteFill,
433
- interpolate as interpolate4,
434
- Sequence,
435
- useCurrentFrame as useCurrentFrame5,
436
- useVideoConfig as useVideoConfig5
437
- } from "remotion";
438
- import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
439
- var ApiOverview = ({
440
- specName,
441
- method = "POST",
442
- endpoint = "/api/users",
443
- specCode,
444
- generatedOutputs = [
445
- "REST Endpoint",
446
- "GraphQL Mutation",
447
- "Prisma Model",
448
- "TypeScript SDK",
449
- "MCP Tool",
450
- "OpenAPI Spec"
451
- ],
452
- tagline = "One spec. Every surface."
453
- }) => {
454
- const { durationInFrames } = useVideoConfig5();
455
- const theme = defaultVideoTheme;
456
- const INTRO_END = 60;
457
- const CODE_START = 45;
458
- const CODE_END = INTRO_END + 150;
459
- const OUTPUTS_START = CODE_END - 30;
460
- const TAGLINE_START = durationInFrames - 90;
461
- return /* @__PURE__ */ jsxDEV5(AbsoluteFill, {
462
- children: [
463
- /* @__PURE__ */ jsxDEV5(BrandFrame, {
464
- variant: "gradient",
465
- showBranding: true,
466
- children: [
467
- /* @__PURE__ */ jsxDEV5(Sequence, {
468
- from: 0,
469
- durationInFrames: CODE_END,
470
- children: /* @__PURE__ */ jsxDEV5("div", {
471
- style: {
472
- flex: 1,
473
- display: "flex",
474
- flexDirection: "column",
475
- gap: 16
476
- },
477
- children: [
478
- /* @__PURE__ */ jsxDEV5("div", {
479
- style: { display: "flex", alignItems: "center", gap: 16 },
480
- children: [
481
- /* @__PURE__ */ jsxDEV5(MethodBadge, {
482
- method,
483
- enterAt: 10
484
- }, undefined, false, undefined, this),
485
- /* @__PURE__ */ jsxDEV5(AnimatedText, {
486
- text: endpoint,
487
- variant: "subheading",
488
- enterAt: 15,
489
- color: theme.colors.mutedForeground
490
- }, undefined, false, undefined, this)
491
- ]
492
- }, undefined, true, undefined, this),
493
- /* @__PURE__ */ jsxDEV5(AnimatedText, {
494
- text: specName,
495
- variant: "title",
496
- enterAt: 5,
497
- color: "#ffffff"
498
- }, undefined, false, undefined, this),
499
- /* @__PURE__ */ jsxDEV5("div", {
500
- style: { flex: 1, marginTop: 24 },
501
- children: /* @__PURE__ */ jsxDEV5(CodeBlock, {
502
- code: specCode,
503
- language: "typescript",
504
- filename: `${specName.toLowerCase()}.contract.ts`,
505
- startAt: CODE_START,
506
- typeAnimation: true
507
- }, undefined, false, undefined, this)
508
- }, undefined, false, undefined, this)
509
- ]
510
- }, undefined, true, undefined, this)
511
- }, undefined, false, undefined, this),
512
- /* @__PURE__ */ jsxDEV5(Sequence, {
513
- from: OUTPUTS_START,
514
- durationInFrames: durationInFrames - OUTPUTS_START,
515
- children: /* @__PURE__ */ jsxDEV5("div", {
516
- style: {
517
- flex: 1,
518
- display: "flex",
519
- flexDirection: "column",
520
- justifyContent: "center",
521
- alignItems: "center",
522
- gap: 24
523
- },
524
- children: [
525
- /* @__PURE__ */ jsxDEV5(AnimatedText, {
526
- text: "Generates:",
527
- variant: "heading",
528
- enterAt: 0,
529
- color: "#ffffff",
530
- align: "center"
531
- }, undefined, false, undefined, this),
532
- /* @__PURE__ */ jsxDEV5("div", {
533
- style: {
534
- display: "flex",
535
- flexWrap: "wrap",
536
- gap: 16,
537
- justifyContent: "center",
538
- maxWidth: "80%",
539
- marginTop: 32
540
- },
541
- children: generatedOutputs.map((output, i) => /* @__PURE__ */ jsxDEV5(OutputChip, {
542
- label: output,
543
- index: i,
544
- startFrame: 20 + i * 8
545
- }, output, false, undefined, this))
546
- }, undefined, false, undefined, this),
547
- /* @__PURE__ */ jsxDEV5(Sequence, {
548
- from: TAGLINE_START - OUTPUTS_START,
549
- children: /* @__PURE__ */ jsxDEV5("div", {
550
- style: { marginTop: 48 },
551
- children: /* @__PURE__ */ jsxDEV5(AnimatedText, {
552
- text: tagline,
553
- variant: "heading",
554
- enterAt: 0,
555
- color: theme.colors.accent,
556
- align: "center"
557
- }, undefined, false, undefined, this)
558
- }, undefined, false, undefined, this)
559
- }, undefined, false, undefined, this)
560
- ]
561
- }, undefined, true, undefined, this)
562
- }, undefined, false, undefined, this)
563
- ]
564
- }, undefined, true, undefined, this),
565
- /* @__PURE__ */ jsxDEV5(ProgressBar, {}, undefined, false, undefined, this)
566
- ]
567
- }, undefined, true, undefined, this);
568
- };
569
- var MethodBadge = ({
570
- method,
571
- enterAt
572
- }) => {
573
- const frame = useCurrentFrame5();
574
- const opacity = interpolate4(frame, [enterAt, enterAt + 10], [0, 1], {
575
- extrapolateLeft: "clamp",
576
- extrapolateRight: "clamp",
577
- easing: videoEasing.entrance
578
- });
579
- const scale = interpolate4(frame, [enterAt, enterAt + 12], [0.8, 1], {
580
- extrapolateLeft: "clamp",
581
- extrapolateRight: "clamp",
582
- easing: videoEasing.emphasis
583
- });
584
- const methodColors = {
585
- GET: "#61afef",
586
- POST: "#98c379",
587
- PUT: "#e5c07b",
588
- PATCH: "#d19a66",
589
- DELETE: "#e06c75"
590
- };
591
- return /* @__PURE__ */ jsxDEV5("div", {
592
- style: {
593
- opacity,
594
- transform: `scale(${scale})`,
595
- backgroundColor: methodColors[method] ?? "#61afef",
596
- color: "#000",
597
- padding: "8px 20px",
598
- borderRadius: 8,
599
- fontSize: 24,
600
- fontWeight: 700,
601
- fontFamily: "monospace",
602
- letterSpacing: 1
603
- },
604
- children: method
605
- }, undefined, false, undefined, this);
606
- };
607
- var OutputChip = ({ label, startFrame }) => {
608
- const frame = useCurrentFrame5();
609
- const opacity = interpolate4(frame, [startFrame, startFrame + 12], [0, 1], {
610
- extrapolateLeft: "clamp",
611
- extrapolateRight: "clamp"
612
- });
613
- const translateY = interpolate4(frame, [startFrame, startFrame + 15], [20, 0], {
614
- extrapolateLeft: "clamp",
615
- extrapolateRight: "clamp",
616
- easing: videoEasing.emphasis
617
- });
618
- const scale = interpolate4(frame, [startFrame, startFrame + 15], [0.9, 1], {
619
- extrapolateLeft: "clamp",
620
- extrapolateRight: "clamp",
621
- easing: videoEasing.emphasis
622
- });
623
- return /* @__PURE__ */ jsxDEV5("div", {
624
- style: {
625
- opacity,
626
- transform: `translateY(${translateY}px) scale(${scale})`,
627
- backgroundColor: "rgba(255,255,255,0.08)",
628
- border: "1px solid rgba(255,255,255,0.15)",
629
- color: "#ffffff",
630
- padding: "16px 32px",
631
- borderRadius: 12,
632
- fontSize: 28,
633
- fontWeight: 500
634
- },
635
- children: label
636
- }, undefined, false, undefined, this);
637
- };
638
-
639
- // src/compositions/primitives/terminal.tsx
640
- import { interpolate as interpolate5, useCurrentFrame as useCurrentFrame6, useVideoConfig as useVideoConfig6 } from "remotion";
641
- import { jsxDEV as jsxDEV6 } from "react/jsx-dev-runtime";
642
- var LINE_TYPE_COLORS = {
643
- command: "#c9d1d9",
644
- output: "#8b949e",
645
- error: "#f85149",
646
- success: "#3fb950",
647
- comment: "#6e7681"
648
- };
649
- var Terminal = ({
650
- lines,
651
- startAt = 0,
652
- prompt = "$ ",
653
- title = "Terminal",
654
- backgroundColor = defaultVideoColors.terminalBackground,
655
- typingSpeed = videoDurations.codeTypingPerChar
656
- }) => {
657
- const frame = useCurrentFrame6();
658
- const { width } = useVideoConfig6();
659
- const codeStyle = scaleTypography(videoTypography.code, width);
660
- const lineTimings = [];
661
- let currentFrame = startAt;
662
- for (const line of lines) {
663
- const delay = line.delay ?? 10;
664
- const lineStart = currentFrame + delay;
665
- if (line.type === "command") {
666
- const typeDuration = line.text.length * typingSpeed;
667
- lineTimings.push({
668
- startFrame: lineStart,
669
- endFrame: lineStart + typeDuration
670
- });
671
- currentFrame = lineStart + typeDuration;
672
- } else {
673
- lineTimings.push({ startFrame: lineStart, endFrame: lineStart + 5 });
674
- currentFrame = lineStart + 5;
675
- }
676
- }
677
- const opacity = interpolate5(frame, [startAt, startAt + 10], [0, 1], {
678
- extrapolateLeft: "clamp",
679
- extrapolateRight: "clamp",
680
- easing: videoEasing.entrance
681
- });
682
- return /* @__PURE__ */ jsxDEV6("div", {
683
- style: {
684
- backgroundColor,
685
- borderRadius: 16,
686
- overflow: "hidden",
687
- opacity,
688
- boxShadow: "0 8px 32px rgba(0,0,0,0.3)"
689
- },
690
- children: [
691
- /* @__PURE__ */ jsxDEV6("div", {
692
- style: {
693
- display: "flex",
694
- alignItems: "center",
695
- padding: "12px 20px",
696
- backgroundColor: "rgba(255,255,255,0.05)",
697
- gap: 8
698
- },
699
- children: [
700
- /* @__PURE__ */ jsxDEV6("div", {
701
- style: { display: "flex", gap: 8 },
702
- children: [
703
- /* @__PURE__ */ jsxDEV6("div", {
704
- style: {
705
- width: 12,
706
- height: 12,
707
- borderRadius: "50%",
708
- backgroundColor: "#ff5f57"
709
- }
710
- }, undefined, false, undefined, this),
711
- /* @__PURE__ */ jsxDEV6("div", {
712
- style: {
713
- width: 12,
714
- height: 12,
715
- borderRadius: "50%",
716
- backgroundColor: "#febc2e"
717
- }
718
- }, undefined, false, undefined, this),
719
- /* @__PURE__ */ jsxDEV6("div", {
720
- style: {
721
- width: 12,
722
- height: 12,
723
- borderRadius: "50%",
724
- backgroundColor: "#28c840"
725
- }
726
- }, undefined, false, undefined, this)
727
- ]
728
- }, undefined, true, undefined, this),
729
- /* @__PURE__ */ jsxDEV6("div", {
730
- style: {
731
- flex: 1,
732
- textAlign: "center",
733
- color: "#484f58",
734
- fontSize: codeStyle.fontSize * 0.7,
735
- fontFamily: "monospace"
736
- },
737
- children: title
738
- }, undefined, false, undefined, this)
739
- ]
740
- }, undefined, true, undefined, this),
741
- /* @__PURE__ */ jsxDEV6("div", {
742
- style: { padding: "24px 32px", minHeight: 200 },
743
- children: lines.map((line, i) => {
744
- const timing = lineTimings[i];
745
- if (!timing || frame < timing.startFrame)
746
- return null;
747
- const isCommand = line.type === "command";
748
- const lineColor = LINE_TYPE_COLORS[line.type];
749
- let visibleText = line.text;
750
- if (isCommand) {
751
- const typingProgress = interpolate5(frame, [timing.startFrame, timing.endFrame], [0, line.text.length], { extrapolateLeft: "clamp", extrapolateRight: "clamp" });
752
- visibleText = line.text.slice(0, Math.floor(typingProgress));
753
- }
754
- const lineOpacity = isCommand ? 1 : interpolate5(frame, [timing.startFrame, timing.startFrame + 5], [0, 1], {
755
- extrapolateLeft: "clamp",
756
- extrapolateRight: "clamp"
757
- });
758
- const isTyping = isCommand && frame >= timing.startFrame && frame <= timing.endFrame;
759
- const showCursor = isTyping && frame % 16 < 10;
760
- return /* @__PURE__ */ jsxDEV6("div", {
761
- style: {
762
- fontFamily: "'SF Mono', 'Fira Code', 'JetBrains Mono', monospace",
763
- fontSize: codeStyle.fontSize,
764
- lineHeight: 1.8,
765
- color: lineColor,
766
- opacity: lineOpacity,
767
- whiteSpace: "pre-wrap"
768
- },
769
- children: [
770
- isCommand && /* @__PURE__ */ jsxDEV6("span", {
771
- style: { color: "#3fb950" },
772
- children: prompt
773
- }, undefined, false, undefined, this),
774
- line.type === "comment" && /* @__PURE__ */ jsxDEV6("span", {
775
- style: { color: LINE_TYPE_COLORS.comment },
776
- children: "# "
777
- }, undefined, false, undefined, this),
778
- visibleText,
779
- showCursor && /* @__PURE__ */ jsxDEV6("span", {
780
- style: {
781
- backgroundColor: "#c9d1d9",
782
- width: "2px",
783
- display: "inline-block",
784
- height: "1.2em",
785
- verticalAlign: "text-bottom"
786
- },
787
- children: "\xA0"
788
- }, undefined, false, undefined, this)
789
- ]
790
- }, `${i}-${line.text.slice(0, 20)}`, true, undefined, this);
791
- })
792
- }, undefined, false, undefined, this)
793
- ]
794
- }, undefined, true, undefined, this);
795
- };
796
-
797
- // src/compositions/social-clip.tsx
798
- import {
799
- AbsoluteFill as AbsoluteFill2,
800
- interpolate as interpolate6,
801
- Sequence as Sequence2,
802
- useCurrentFrame as useCurrentFrame7,
803
- useVideoConfig as useVideoConfig7
804
- } from "remotion";
805
- import { jsxDEV as jsxDEV7 } from "react/jsx-dev-runtime";
806
- var SocialClip = ({
807
- hook,
808
- message,
809
- points = [],
810
- cta = "Learn more",
811
- ctaUrl = "contractspec.dev",
812
- accentColor
813
- }) => {
814
- const { durationInFrames, width, height } = useVideoConfig7();
815
- const theme = defaultVideoTheme;
816
- const accent = accentColor ?? theme.colors.accent;
817
- const isPortrait = height > width;
818
- const HOOK_DURATION = 75;
819
- const MESSAGE_START = 60;
820
- const POINTS_START = MESSAGE_START + 60;
821
- const CTA_START = durationInFrames - 90;
822
- return /* @__PURE__ */ jsxDEV7(AbsoluteFill2, {
823
- children: [
824
- /* @__PURE__ */ jsxDEV7(BrandFrame, {
825
- variant: "gradient",
826
- showBranding: true,
827
- children: /* @__PURE__ */ jsxDEV7("div", {
828
- style: {
829
- flex: 1,
830
- display: "flex",
831
- flexDirection: "column",
832
- justifyContent: "center",
833
- alignItems: "center",
834
- gap: isPortrait ? 48 : 32,
835
- textAlign: "center",
836
- padding: isPortrait ? "0 20px" : 0
837
- },
838
- children: [
839
- /* @__PURE__ */ jsxDEV7(Sequence2, {
840
- from: 0,
841
- durationInFrames: HOOK_DURATION + 30,
842
- children: /* @__PURE__ */ jsxDEV7("div", {
843
- style: { width: "100%" },
844
- children: /* @__PURE__ */ jsxDEV7(AnimatedText, {
845
- text: hook,
846
- variant: "title",
847
- enterAt: 5,
848
- exitAt: HOOK_DURATION,
849
- color: "#ffffff",
850
- align: "center"
851
- }, undefined, false, undefined, this)
852
- }, undefined, false, undefined, this)
853
- }, undefined, false, undefined, this),
854
- /* @__PURE__ */ jsxDEV7(Sequence2, {
855
- from: MESSAGE_START,
856
- children: /* @__PURE__ */ jsxDEV7("div", {
857
- style: { width: "100%" },
858
- children: /* @__PURE__ */ jsxDEV7(AnimatedText, {
859
- text: message,
860
- variant: isPortrait ? "subheading" : "heading",
861
- enterAt: 0,
862
- color: "#ffffff",
863
- align: "center"
864
- }, undefined, false, undefined, this)
865
- }, undefined, false, undefined, this)
866
- }, undefined, false, undefined, this),
867
- points.length > 0 && /* @__PURE__ */ jsxDEV7(Sequence2, {
868
- from: POINTS_START,
869
- children: /* @__PURE__ */ jsxDEV7("div", {
870
- style: {
871
- display: "flex",
872
- flexDirection: "column",
873
- gap: 16,
874
- alignItems: isPortrait ? "flex-start" : "center",
875
- width: "100%",
876
- maxWidth: isPortrait ? "100%" : "80%",
877
- marginTop: 16
878
- },
879
- children: points.map((point, i) => /* @__PURE__ */ jsxDEV7(PointItem, {
880
- text: point,
881
- index: i,
882
- startFrame: i * 15,
883
- accent
884
- }, point, false, undefined, this))
885
- }, undefined, false, undefined, this)
886
- }, undefined, false, undefined, this),
887
- /* @__PURE__ */ jsxDEV7(Sequence2, {
888
- from: CTA_START,
889
- children: /* @__PURE__ */ jsxDEV7(CTABlock, {
890
- cta,
891
- url: ctaUrl,
892
- accent
893
- }, undefined, false, undefined, this)
894
- }, undefined, false, undefined, this)
895
- ]
896
- }, undefined, true, undefined, this)
897
- }, undefined, false, undefined, this),
898
- /* @__PURE__ */ jsxDEV7(ProgressBar, {
899
- color: accent
900
- }, undefined, false, undefined, this)
901
- ]
902
- }, undefined, true, undefined, this);
903
- };
904
- var PointItem = ({ text, startFrame, accent }) => {
905
- const frame = useCurrentFrame7();
906
- const opacity = interpolate6(frame, [startFrame, startFrame + 12], [0, 1], {
907
- extrapolateLeft: "clamp",
908
- extrapolateRight: "clamp"
909
- });
910
- const translateX = interpolate6(frame, [startFrame, startFrame + 15], [-30, 0], {
911
- extrapolateLeft: "clamp",
912
- extrapolateRight: "clamp",
913
- easing: videoEasing.entrance
914
- });
915
- return /* @__PURE__ */ jsxDEV7("div", {
916
- style: {
917
- opacity,
918
- transform: `translateX(${translateX}px)`,
919
- display: "flex",
920
- alignItems: "center",
921
- gap: 16,
922
- fontSize: 28,
923
- color: "#ffffff"
924
- },
925
- children: [
926
- /* @__PURE__ */ jsxDEV7("div", {
927
- style: {
928
- width: 8,
929
- height: 8,
930
- borderRadius: "50%",
931
- backgroundColor: accent,
932
- flexShrink: 0
933
- }
934
- }, undefined, false, undefined, this),
935
- text
936
- ]
937
- }, undefined, true, undefined, this);
938
- };
939
- var CTABlock = ({ cta, url, accent }) => {
940
- const frame = useCurrentFrame7();
941
- const opacity = interpolate6(frame, [0, 15], [0, 1], {
942
- extrapolateLeft: "clamp",
943
- extrapolateRight: "clamp"
944
- });
945
- const scale = interpolate6(frame, [0, 18], [0.9, 1], {
946
- extrapolateLeft: "clamp",
947
- extrapolateRight: "clamp",
948
- easing: videoEasing.emphasis
949
- });
950
- return /* @__PURE__ */ jsxDEV7("div", {
951
- style: {
952
- opacity,
953
- transform: `scale(${scale})`,
954
- display: "flex",
955
- flexDirection: "column",
956
- alignItems: "center",
957
- gap: 12,
958
- marginTop: 24
959
- },
960
- children: [
961
- /* @__PURE__ */ jsxDEV7("div", {
962
- style: {
963
- backgroundColor: accent,
964
- color: "#ffffff",
965
- padding: "16px 48px",
966
- borderRadius: 12,
967
- fontSize: 28,
968
- fontWeight: 600
969
- },
970
- children: cta
971
- }, undefined, false, undefined, this),
972
- /* @__PURE__ */ jsxDEV7("div", {
973
- style: { color: "rgba(255,255,255,0.5)", fontSize: 20 },
974
- children: url
975
- }, undefined, false, undefined, this)
976
- ]
977
- }, undefined, true, undefined, this);
978
- };
979
-
980
- // src/compositions/terminal-demo.tsx
981
- import { AbsoluteFill as AbsoluteFill3, Sequence as Sequence3, useVideoConfig as useVideoConfig8 } from "remotion";
982
- import { jsxDEV as jsxDEV8 } from "react/jsx-dev-runtime";
983
- var TerminalDemo = ({
984
- title,
985
- subtitle,
986
- lines,
987
- terminalTitle = "Terminal",
988
- prompt = "$ ",
989
- summary
990
- }) => {
991
- const { durationInFrames } = useVideoConfig8();
992
- const theme = defaultVideoTheme;
993
- const TERMINAL_START = 40;
994
- const SUMMARY_START = durationInFrames - 90;
995
- return /* @__PURE__ */ jsxDEV8(AbsoluteFill3, {
996
- children: [
997
- /* @__PURE__ */ jsxDEV8(BrandFrame, {
998
- variant: "dark",
999
- showBranding: true,
1000
- children: /* @__PURE__ */ jsxDEV8("div", {
1001
- style: {
1002
- flex: 1,
1003
- display: "flex",
1004
- flexDirection: "column",
1005
- gap: 24
1006
- },
1007
- children: [
1008
- /* @__PURE__ */ jsxDEV8("div", {
1009
- children: [
1010
- /* @__PURE__ */ jsxDEV8(AnimatedText, {
1011
- text: title,
1012
- variant: "heading",
1013
- enterAt: 5,
1014
- color: "#ffffff"
1015
- }, undefined, false, undefined, this),
1016
- subtitle && /* @__PURE__ */ jsxDEV8("div", {
1017
- style: { marginTop: 8 },
1018
- children: /* @__PURE__ */ jsxDEV8(AnimatedText, {
1019
- text: subtitle,
1020
- variant: "body",
1021
- enterAt: 15,
1022
- color: theme.colors.mutedForeground
1023
- }, undefined, false, undefined, this)
1024
- }, undefined, false, undefined, this)
1025
- ]
1026
- }, undefined, true, undefined, this),
1027
- /* @__PURE__ */ jsxDEV8(Sequence3, {
1028
- from: TERMINAL_START,
1029
- children: /* @__PURE__ */ jsxDEV8("div", {
1030
- style: { flex: 1 },
1031
- children: /* @__PURE__ */ jsxDEV8(Terminal, {
1032
- lines,
1033
- startAt: 0,
1034
- prompt,
1035
- title: terminalTitle
1036
- }, undefined, false, undefined, this)
1037
- }, undefined, false, undefined, this)
1038
- }, undefined, false, undefined, this),
1039
- summary && /* @__PURE__ */ jsxDEV8(Sequence3, {
1040
- from: SUMMARY_START,
1041
- children: /* @__PURE__ */ jsxDEV8("div", {
1042
- style: {
1043
- marginTop: "auto",
1044
- paddingTop: 24
1045
- },
1046
- children: /* @__PURE__ */ jsxDEV8(AnimatedText, {
1047
- text: summary,
1048
- variant: "subheading",
1049
- enterAt: 0,
1050
- color: theme.colors.accent,
1051
- align: "center"
1052
- }, undefined, false, undefined, this)
1053
- }, undefined, false, undefined, this)
1054
- }, undefined, false, undefined, this)
1055
- ]
1056
- }, undefined, true, undefined, this)
1057
- }, undefined, false, undefined, this),
1058
- /* @__PURE__ */ jsxDEV8(ProgressBar, {}, undefined, false, undefined, this)
1059
- ]
1060
- }, undefined, true, undefined, this);
1061
- };
1062
-
1063
- // src/remotion/Root.tsx
1064
- import { Composition } from "remotion";
1065
- import { jsxDEV as jsxDEV9, Fragment } from "react/jsx-dev-runtime";
1066
- var defaultApiOverviewProps = {
1067
- specName: "CreateUser",
1068
- method: "POST",
1069
- endpoint: "/api/users",
1070
- specCode: `export const createUser = defineCommand({
2
+ var xH=import.meta.require;import{Easing as w}from"remotion";var M={entrance:w.out(w.exp),exit:w.in(w.exp),emphasis:w.out(w.back(1.4)),linear:w.linear,gentle:w.bezier(0.25,0.1,0.25,1),spring:w.out(w.back(1.7))},V={sceneTransition:20,textEntrance:15,textExit:12,codeTypingPerChar:2,sectionPause:30,emphasisPause:15,brandReveal:25,minScene:60,shortScene:60,mediumScene:120,longScene:240},dH={fade:{type:"fade",durationInFrames:20},slideLeft:{type:"slide-left",durationInFrames:20},slideRight:{type:"slide-right",durationInFrames:20},wipe:{type:"wipe",durationInFrames:15},none:{type:"none",durationInFrames:0}};import{defaultTokens as C}from"@contractspec/lib.design-system";var h={canvasBackground:C.colors.background,codeBackground:"#1e1e2e",terminalBackground:"#0d1117",terminalForeground:"#c9d1d9",highlight:C.colors.accent,gradientStart:C.colors.primary,gradientEnd:C.colors.accent},P={...C,video:h};var b={title:{fontSize:72,lineHeight:1.1,fontWeight:700,letterSpacing:-1},heading:{fontSize:56,lineHeight:1.2,fontWeight:600,letterSpacing:-0.5},subheading:{fontSize:40,lineHeight:1.25,fontWeight:500},body:{fontSize:32,lineHeight:1.5,fontWeight:400},code:{fontSize:28,lineHeight:1.6,fontWeight:400},caption:{fontSize:24,lineHeight:1.4,fontWeight:400},label:{fontSize:20,lineHeight:1.3,fontWeight:600,letterSpacing:1}};function F(J,H){let K=H/1920;return{...J,fontSize:Math.round(J.fontSize*K),letterSpacing:J.letterSpacing?Math.round(J.letterSpacing*K*10)/10:void 0}}import{interpolate as S,useCurrentFrame as RH,useVideoConfig as YH}from"remotion";import{jsx as ZH}from"react/jsx-runtime";var B=({text:J,variant:H="body",style:K,enterAt:Q=0,exitAt:z,color:$="#ffffff",align:W="left"})=>{let X=RH(),{width:q}=YH(),L=b[H],Y={...F(L,q),...K},U=S(X,[Q,Q+V.textEntrance],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),N=S(U,[0,1],[0,1],{easing:M.entrance}),G=S(U,[0,1],[30,0],{easing:M.entrance}),Z=1,k=0;if(z!==void 0){let n=S(X,[z,z+V.textExit],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"});Z=S(n,[0,1],[1,0],{easing:M.exit}),k=S(n,[0,1],[0,-20],{easing:M.exit})}let E=N*Z,o=G+k;return ZH("div",{style:{fontSize:Y.fontSize,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight,letterSpacing:Y.letterSpacing,color:$,textAlign:W,opacity:E,transform:`translateY(${o}px)`,willChange:"opacity, transform"},children:J})};import{VIDEO_FORMATS as s}from"@contractspec/lib.contracts-integrations/integrations/providers/video";var HJ=30,u={horizontal:120,vertical:80,contentWidth:1680,contentHeight:920};function HH(J){let H=J.width/1920,K=J.height/1080;return{horizontal:Math.round(u.horizontal*H),vertical:Math.round(u.vertical*K),contentWidth:Math.round(u.contentWidth*H),contentHeight:Math.round(u.contentHeight*K)}}var JJ={center:{x:960,y:540},topLeft:{x:120,y:80},topRight:{x:1800,y:80},bottomLeft:{x:120,y:1000},bottomRight:{x:1800,y:1000},bottomCenter:{x:960,y:960}};function KJ(){return[s.landscape,s.square,s.portrait]}import{interpolate as JH,useCurrentFrame as _H,useVideoConfig as IH}from"remotion";import{jsx as r,jsxs as BH}from"react/jsx-runtime";var T=({styleOverrides:J,showBranding:H=!0,animateEntrance:K=!0,variant:Q="gradient",children:z})=>{let $=_H(),{width:W,height:X}=IH(),q=P,L=HH({type:"custom",width:W,height:X}),R=J?.primaryColor??q.colors.primary,Y=J?.accentColor??q.colors.accent,U=J?.darkMode??!0,N;switch(Q){case"solid":N=U?"#0a0a0a":q.colors.background;break;case"gradient":N=U?"linear-gradient(135deg, #0a0a14 0%, #0f172a 50%, #0a0a14 100%)":`linear-gradient(135deg, ${q.colors.background} 0%, ${q.colors.muted} 100%)`;break;case"dark":N="#000000";break}let G=K?JH($,[0,15],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.entrance}):1,Z=H?JH($,[V.brandReveal,V.brandReveal+15],[0,0.3],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}):0;return BH("div",{style:{width:W,height:X,background:N,position:"relative",overflow:"hidden",opacity:G},children:[Q==="gradient"&&r("div",{style:{position:"absolute",top:"-20%",right:"-10%",width:"50%",height:"50%",background:`radial-gradient(circle, ${R}15 0%, transparent 70%)`,borderRadius:"50%",pointerEvents:"none"}}),r("div",{style:{position:"absolute",left:L.horizontal,top:L.vertical,width:L.contentWidth,height:L.contentHeight,display:"flex",flexDirection:"column"},children:z}),H&&r("div",{style:{position:"absolute",bottom:L.vertical/2,right:L.horizontal,opacity:Z,color:U?"#ffffff":"#000000",fontSize:Math.round(16*(W/1920)),fontWeight:500,letterSpacing:1},children:"ContractSpec"})]})};import{interpolate as KH,useCurrentFrame as DH,useVideoConfig as wH}from"remotion";import{jsx as A,jsxs as x}from"react/jsx-runtime";var QH=({code:J,language:H="typescript",startAt:K=0,typeAnimation:Q=!0,backgroundColor:z=h.codeBackground,textColor:$="#abb2bf",filename:W})=>{let X=DH(),{width:q}=wH(),L=F(b.code,q),R=J.length,Y=R*V.codeTypingPerChar,U=Q?Math.floor(KH(X,[K,K+Y],[0,R],{extrapolateLeft:"clamp",extrapolateRight:"clamp"})):R,N=J.slice(0,U),G=KH(X,[K,K+10],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.entrance}),Z=Q&&U<R&&X%16<10;return x("div",{style:{backgroundColor:z,borderRadius:16,padding:0,opacity:G,overflow:"hidden",boxShadow:"0 8px 32px rgba(0,0,0,0.3)"},children:[x("div",{style:{display:"flex",alignItems:"center",padding:"12px 20px",backgroundColor:"rgba(0,0,0,0.2)",gap:8},children:[x("div",{style:{display:"flex",gap:8},children:[A("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#ff5f57"}}),A("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#febc2e"}}),A("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#28c840"}})]}),A("div",{style:{flex:1,textAlign:"center",color:"#666",fontSize:L.fontSize*0.7,fontFamily:"monospace"},children:W??H})]}),A("div",{style:{padding:"24px 32px"},children:x("pre",{style:{margin:0,fontFamily:"'SF Mono', 'Fira Code', 'JetBrains Mono', monospace",fontSize:L.fontSize,lineHeight:L.lineHeight,color:$,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[N,Z&&A("span",{style:{backgroundColor:$,width:"2px",display:"inline-block",height:"1.2em",verticalAlign:"text-bottom"},children:"\xA0"})]})})]})};import{useCurrentFrame as VH,useVideoConfig as PH}from"remotion";import{jsx as $H}from"react/jsx-runtime";var v=({height:J=4,color:H=P.colors.primary,backgroundColor:K="rgba(255,255,255,0.1)",position:Q="bottom"})=>{let z=VH(),{durationInFrames:$,width:W}=PH(),X=z/$;return $H("div",{style:{position:"absolute",[Q]:0,left:0,width:W,height:J,backgroundColor:K,zIndex:100},children:$H("div",{style:{width:`${X*100}%`,height:"100%",backgroundColor:H,transition:"none"}})})};import{AbsoluteFill as OH,interpolate as f,Sequence as a,useCurrentFrame as zH,useVideoConfig as kH}from"remotion";import{jsx as _,jsxs as y}from"react/jsx-runtime";var GH=({specName:J,method:H="POST",endpoint:K="/api/users",specCode:Q,generatedOutputs:z=["REST Endpoint","GraphQL Mutation","Prisma Model","TypeScript SDK","MCP Tool","OpenAPI Spec"],tagline:$="One spec. Every surface."})=>{let{durationInFrames:W}=kH(),X=P,q=60,L=45,R=210,Y=180,U=W-90;return y(OH,{children:[y(T,{variant:"gradient",showBranding:!0,children:[_(a,{from:0,durationInFrames:210,children:y("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:16},children:[y("div",{style:{display:"flex",alignItems:"center",gap:16},children:[_(EH,{method:H,enterAt:10}),_(B,{text:K,variant:"subheading",enterAt:15,color:X.colors.mutedForeground})]}),_(B,{text:J,variant:"title",enterAt:5,color:"#ffffff"}),_("div",{style:{flex:1,marginTop:24},children:_(QH,{code:Q,language:"typescript",filename:`${J.toLowerCase()}.contract.ts`,startAt:45,typeAnimation:!0})})]})}),_(a,{from:180,durationInFrames:W-180,children:y("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:24},children:[_(B,{text:"Generates:",variant:"heading",enterAt:0,color:"#ffffff",align:"center"}),_("div",{style:{display:"flex",flexWrap:"wrap",gap:16,justifyContent:"center",maxWidth:"80%",marginTop:32},children:z.map((N,G)=>_(bH,{label:N,index:G,startFrame:20+G*8},N))}),_(a,{from:U-180,children:_("div",{style:{marginTop:48},children:_(B,{text:$,variant:"heading",enterAt:0,color:X.colors.accent,align:"center"})})})]})})]}),_(v,{})]})},EH=({method:J,enterAt:H})=>{let K=zH(),Q=f(K,[H,H+10],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.entrance}),z=f(K,[H,H+12],[0.8,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.emphasis}),$={GET:"#61afef",POST:"#98c379",PUT:"#e5c07b",PATCH:"#d19a66",DELETE:"#e06c75"};return _("div",{style:{opacity:Q,transform:`scale(${z})`,backgroundColor:$[J]??"#61afef",color:"#000",padding:"8px 20px",borderRadius:8,fontSize:24,fontWeight:700,fontFamily:"monospace",letterSpacing:1},children:J})},bH=({label:J,startFrame:H})=>{let K=zH(),Q=f(K,[H,H+12],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),z=f(K,[H,H+15],[20,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.emphasis}),$=f(K,[H,H+15],[0.9,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.emphasis});return _("div",{style:{opacity:Q,transform:`translateY(${z}px) scale(${$})`,backgroundColor:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.15)",color:"#ffffff",padding:"16px 32px",borderRadius:12,fontSize:28,fontWeight:500},children:J})};import{interpolate as i,useCurrentFrame as FH,useVideoConfig as SH}from"remotion";import{jsx as O,jsxs as p}from"react/jsx-runtime";var WH={command:"#c9d1d9",output:"#8b949e",error:"#f85149",success:"#3fb950",comment:"#6e7681"},UH=({lines:J,startAt:H=0,prompt:K="$ ",title:Q="Terminal",backgroundColor:z=h.terminalBackground,typingSpeed:$=V.codeTypingPerChar})=>{let W=FH(),{width:X}=SH(),q=F(b.code,X),L=[],R=H;for(let U of J){let N=U.delay??10,G=R+N;if(U.type==="command"){let Z=U.text.length*$;L.push({startFrame:G,endFrame:G+Z}),R=G+Z}else L.push({startFrame:G,endFrame:G+5}),R=G+5}let Y=i(W,[H,H+10],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.entrance});return p("div",{style:{backgroundColor:z,borderRadius:16,overflow:"hidden",opacity:Y,boxShadow:"0 8px 32px rgba(0,0,0,0.3)"},children:[p("div",{style:{display:"flex",alignItems:"center",padding:"12px 20px",backgroundColor:"rgba(255,255,255,0.05)",gap:8},children:[p("div",{style:{display:"flex",gap:8},children:[O("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#ff5f57"}}),O("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#febc2e"}}),O("div",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:"#28c840"}})]}),O("div",{style:{flex:1,textAlign:"center",color:"#484f58",fontSize:q.fontSize*0.7,fontFamily:"monospace"},children:Q})]}),O("div",{style:{padding:"24px 32px",minHeight:200},children:J.map((U,N)=>{let G=L[N];if(!G||W<G.startFrame)return null;let Z=U.type==="command",k=WH[U.type],E=U.text;if(Z){let qH=i(W,[G.startFrame,G.endFrame],[0,U.text.length],{extrapolateLeft:"clamp",extrapolateRight:"clamp"});E=U.text.slice(0,Math.floor(qH))}let o=Z?1:i(W,[G.startFrame,G.startFrame+5],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),NH=Z&&W>=G.startFrame&&W<=G.endFrame&&W%16<10;return p("div",{style:{fontFamily:"'SF Mono', 'Fira Code', 'JetBrains Mono', monospace",fontSize:q.fontSize,lineHeight:1.8,color:k,opacity:o,whiteSpace:"pre-wrap"},children:[Z&&O("span",{style:{color:"#3fb950"},children:K}),U.type==="comment"&&O("span",{style:{color:WH.comment},children:"# "}),E,NH&&O("span",{style:{backgroundColor:"#c9d1d9",width:"2px",display:"inline-block",height:"1.2em",verticalAlign:"text-bottom"},children:"\xA0"})]},`${N}-${U.text.slice(0,20)}`)})})]})};import{AbsoluteFill as TH,interpolate as d,Sequence as c,useCurrentFrame as XH,useVideoConfig as AH}from"remotion";import{jsx as I,jsxs as m}from"react/jsx-runtime";var l=({hook:J,message:H,points:K=[],cta:Q="Learn more",ctaUrl:z="contractspec.dev",accentColor:$})=>{let{durationInFrames:W,width:X,height:q}=AH(),R=$??P.colors.accent,Y=q>X,U=75,N=60,G=120,Z=W-90;return m(TH,{children:[I(T,{variant:"gradient",showBranding:!0,children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:Y?48:32,textAlign:"center",padding:Y?"0 20px":0},children:[I(c,{from:0,durationInFrames:105,children:I("div",{style:{width:"100%"},children:I(B,{text:J,variant:"title",enterAt:5,exitAt:75,color:"#ffffff",align:"center"})})}),I(c,{from:60,children:I("div",{style:{width:"100%"},children:I(B,{text:H,variant:Y?"subheading":"heading",enterAt:0,color:"#ffffff",align:"center"})})}),K.length>0&&I(c,{from:120,children:I("div",{style:{display:"flex",flexDirection:"column",gap:16,alignItems:Y?"flex-start":"center",width:"100%",maxWidth:Y?"100%":"80%",marginTop:16},children:K.map((k,E)=>I(vH,{text:k,index:E,startFrame:E*15,accent:R},k))})}),I(c,{from:Z,children:I(CH,{cta:Q,url:z,accent:R})})]})}),I(v,{color:R})]})},vH=({text:J,startFrame:H,accent:K})=>{let Q=XH(),z=d(Q,[H,H+12],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),$=d(Q,[H,H+15],[-30,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.entrance});return m("div",{style:{opacity:z,transform:`translateX(${$}px)`,display:"flex",alignItems:"center",gap:16,fontSize:28,color:"#ffffff"},children:[I("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:K,flexShrink:0}}),J]})},CH=({cta:J,url:H,accent:K})=>{let Q=XH(),z=d(Q,[0,15],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),$=d(Q,[0,18],[0.9,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:M.emphasis});return m("div",{style:{opacity:z,transform:`scale(${$})`,display:"flex",flexDirection:"column",alignItems:"center",gap:12,marginTop:24},children:[I("div",{style:{backgroundColor:K,color:"#ffffff",padding:"16px 48px",borderRadius:12,fontSize:28,fontWeight:600},children:J}),I("div",{style:{color:"rgba(255,255,255,0.5)",fontSize:20},children:H})]})};import{AbsoluteFill as hH,Sequence as LH,useVideoConfig as yH}from"remotion";import{jsx as D,jsxs as t}from"react/jsx-runtime";var MH=({title:J,subtitle:H,lines:K,terminalTitle:Q="Terminal",prompt:z="$ ",summary:$})=>{let{durationInFrames:W}=yH(),X=P,q=40,L=W-90;return t(hH,{children:[D(T,{variant:"dark",showBranding:!0,children:t("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:24},children:[t("div",{children:[D(B,{text:J,variant:"heading",enterAt:5,color:"#ffffff"}),H&&D("div",{style:{marginTop:8},children:D(B,{text:H,variant:"body",enterAt:15,color:X.colors.mutedForeground})})]}),D(LH,{from:40,children:D("div",{style:{flex:1},children:D(UH,{lines:K,startAt:0,prompt:z,title:Q})})}),$&&D(LH,{from:L,children:D("div",{style:{marginTop:"auto",paddingTop:24},children:D(B,{text:$,variant:"subheading",enterAt:0,color:X.colors.accent,align:"center"})})})]})}),D(v,{})]})};import{Composition as j}from"remotion";import{jsx as g,jsxs as uH,Fragment as gH}from"react/jsx-runtime";var fH={specName:"CreateUser",method:"POST",endpoint:"/api/users",specCode:`export const createUser = defineCommand({
1071
3
  meta: {
1072
4
  name: 'CreateUser',
1073
5
  version: '1.0.0',
@@ -1085,100 +17,4 @@ var defaultApiOverviewProps = {
1085
17
  createdAt: z.date(),
1086
18
  }),
1087
19
  },
1088
- });`,
1089
- generatedOutputs: [
1090
- "REST Endpoint",
1091
- "GraphQL Mutation",
1092
- "Prisma Model",
1093
- "TypeScript SDK",
1094
- "MCP Tool",
1095
- "OpenAPI Spec"
1096
- ],
1097
- tagline: "One spec. Every surface."
1098
- };
1099
- var defaultSocialClipProps = {
1100
- hook: "Stop rewriting the same API logic.",
1101
- message: "ContractSpec generates REST, GraphQL, DB, SDK, and MCP from a single spec.",
1102
- points: [
1103
- "Deterministic output",
1104
- "Fully ejectable",
1105
- "Standard tech, no lock-in"
1106
- ],
1107
- cta: "Try ContractSpec",
1108
- ctaUrl: "contractspec.dev"
1109
- };
1110
- var defaultTerminalDemoProps = {
1111
- title: "Getting Started with ContractSpec",
1112
- subtitle: "Define once, generate everything.",
1113
- lines: [
1114
- { type: "comment", text: "Initialize a new ContractSpec project" },
1115
- { type: "command", text: "npx contractspec init my-api" },
1116
- { type: "output", text: "Created my-api/ with 3 sample contracts" },
1117
- { type: "command", text: "cd my-api && npx contractspec build" },
1118
- { type: "success", text: "Built 3 contracts -> 18 generated files" },
1119
- { type: "output", text: " REST endpoints: 3" },
1120
- { type: "output", text: " GraphQL types: 3" },
1121
- { type: "output", text: " Prisma models: 3" },
1122
- { type: "output", text: " TypeScript SDK: 3" },
1123
- { type: "output", text: " MCP tools: 3" },
1124
- { type: "output", text: " OpenAPI specs: 3" },
1125
- { type: "command", text: "npx contractspec validate" },
1126
- { type: "success", text: "All contracts valid. 0 warnings." }
1127
- ],
1128
- terminalTitle: "contractspec",
1129
- summary: "Ship faster. Stay coherent."
1130
- };
1131
- var RemotionRoot = () => {
1132
- return /* @__PURE__ */ jsxDEV9(Fragment, {
1133
- children: [
1134
- /* @__PURE__ */ jsxDEV9(Composition, {
1135
- id: "ApiOverview",
1136
- component: ApiOverview,
1137
- durationInFrames: 450,
1138
- fps: 30,
1139
- width: 1920,
1140
- height: 1080,
1141
- defaultProps: defaultApiOverviewProps
1142
- }, undefined, false, undefined, this),
1143
- /* @__PURE__ */ jsxDEV9(Composition, {
1144
- id: "SocialClip",
1145
- component: SocialClip,
1146
- durationInFrames: 300,
1147
- fps: 30,
1148
- width: 1920,
1149
- height: 1080,
1150
- defaultProps: defaultSocialClipProps
1151
- }, undefined, false, undefined, this),
1152
- /* @__PURE__ */ jsxDEV9(Composition, {
1153
- id: "SocialClipSquare",
1154
- component: SocialClip,
1155
- durationInFrames: 300,
1156
- fps: 30,
1157
- width: 1080,
1158
- height: 1080,
1159
- defaultProps: defaultSocialClipProps
1160
- }, undefined, false, undefined, this),
1161
- /* @__PURE__ */ jsxDEV9(Composition, {
1162
- id: "SocialClipPortrait",
1163
- component: SocialClip,
1164
- durationInFrames: 300,
1165
- fps: 30,
1166
- width: 1080,
1167
- height: 1920,
1168
- defaultProps: defaultSocialClipProps
1169
- }, undefined, false, undefined, this),
1170
- /* @__PURE__ */ jsxDEV9(Composition, {
1171
- id: "TerminalDemo",
1172
- component: TerminalDemo,
1173
- durationInFrames: 600,
1174
- fps: 30,
1175
- width: 1920,
1176
- height: 1080,
1177
- defaultProps: defaultTerminalDemoProps
1178
- }, undefined, false, undefined, this)
1179
- ]
1180
- }, undefined, true, undefined, this);
1181
- };
1182
- export {
1183
- RemotionRoot
1184
- };
20
+ });`,generatedOutputs:["REST Endpoint","GraphQL Mutation","Prisma Model","TypeScript SDK","MCP Tool","OpenAPI Spec"],tagline:"One spec. Every surface."},e={hook:"Stop rewriting the same API logic.",message:"ContractSpec generates REST, GraphQL, DB, SDK, and MCP from a single spec.",points:["Deterministic output","Fully ejectable","Standard tech, no lock-in"],cta:"Try ContractSpec",ctaUrl:"contractspec.dev"},jH={title:"Getting Started with ContractSpec",subtitle:"Define once, generate everything.",lines:[{type:"comment",text:"Initialize a new ContractSpec project"},{type:"command",text:"npx contractspec init my-api"},{type:"output",text:"Created my-api/ with 3 sample contracts"},{type:"command",text:"cd my-api && npx contractspec build"},{type:"success",text:"Built 3 contracts -> 18 generated files"},{type:"output",text:" REST endpoints: 3"},{type:"output",text:" GraphQL types: 3"},{type:"output",text:" Prisma models: 3"},{type:"output",text:" TypeScript SDK: 3"},{type:"output",text:" MCP tools: 3"},{type:"output",text:" OpenAPI specs: 3"},{type:"command",text:"npx contractspec validate"},{type:"success",text:"All contracts valid. 0 warnings."}],terminalTitle:"contractspec",summary:"Ship faster. Stay coherent."},JK=()=>{return uH(gH,{children:[g(j,{id:"ApiOverview",component:GH,durationInFrames:450,fps:30,width:1920,height:1080,defaultProps:fH}),g(j,{id:"SocialClip",component:l,durationInFrames:300,fps:30,width:1920,height:1080,defaultProps:e}),g(j,{id:"SocialClipSquare",component:l,durationInFrames:300,fps:30,width:1080,height:1080,defaultProps:e}),g(j,{id:"SocialClipPortrait",component:l,durationInFrames:300,fps:30,width:1080,height:1920,defaultProps:e}),g(j,{id:"TerminalDemo",component:MH,durationInFrames:600,fps:30,width:1920,height:1080,defaultProps:jH})]})};export{JK as RemotionRoot};