@vanillaskyai/video 0.8.8 → 0.9.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.
Files changed (175) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/PUBLIC-API.md +5 -8
  3. package/dist/{builtin-server-CUYPIDE7.js → builtin-server-HW6HGXCZ.js} +2 -2
  4. package/dist/{catalog-types-BIhSpOWK.d.ts → catalog-types-WTbLP6Jh.d.ts} +5 -1
  5. package/dist/chapter-title-YRLIQY3V.js +7 -0
  6. package/dist/check-runtime.js +6 -15
  7. package/dist/{chunk-2USVB3CY.js → chunk-3ZTEFJIR.js} +285 -178
  8. package/dist/chunk-4YM2M62S.js +13 -0
  9. package/dist/chunk-77VY4O7A.js +390 -0
  10. package/dist/{chunk-MMUXVA47.js → chunk-7M56IUUX.js} +9 -8
  11. package/dist/chunk-7NZOMTAL.js +63 -0
  12. package/dist/{chunk-2DOLF4QN.js → chunk-AUPC6MDK.js} +12 -14
  13. package/dist/{chunk-352ZZCET.js → chunk-EGVQODKU.js} +2 -2
  14. package/dist/chunk-EWWCQFTI.js +18 -0
  15. package/dist/{chunk-MXZSDGZQ.js → chunk-G7IZBBWF.js} +14 -9
  16. package/dist/{chunk-KT3M7KDL.js → chunk-HKUI5BTB.js} +3 -3
  17. package/dist/{chunk-LMG3GHLL.js → chunk-IQMYK5DX.js} +29 -3
  18. package/dist/chunk-LH4BPALA.js +564 -0
  19. package/dist/{chunk-OWBT45EN.js → chunk-MQILEEXC.js} +1 -1
  20. package/dist/chunk-MXEYPK7M.js +552 -0
  21. package/dist/{chunk-AITKH6QT.js → chunk-OR52UMSF.js} +13 -39
  22. package/dist/{chunk-5SLENAJW.js → chunk-PAJ44TFW.js} +1 -2
  23. package/dist/{chunk-L7QGGKJ2.js → chunk-PDQFQIQW.js} +1 -1
  24. package/dist/{chunk-WJ6FLKNC.js → chunk-R3XAOMKP.js} +14 -0
  25. package/dist/{chunk-2OKB27TG.js → chunk-RXTN2CW6.js} +2 -2
  26. package/dist/{chunk-XWWLKRNU.js → chunk-TVIU23OM.js} +38 -49
  27. package/dist/{chunk-224QNWRA.js → chunk-UDIODEDK.js} +1 -5
  28. package/dist/{chunk-3VRMKFM7.js → chunk-ZDJNFA52.js} +11 -24
  29. package/dist/cinema-media-YQHSIFDA.js +11 -0
  30. package/dist/cli.js +18 -9
  31. package/dist/comparison-RZMMHZR2.js +27 -0
  32. package/dist/compose-video-TBFTONUC.js +12 -0
  33. package/dist/editorial-timeline-OZX7OS6G.js +36 -0
  34. package/dist/{events-BQ6z264n.d.ts → events-B4YCc4vc.d.ts} +1 -1
  35. package/dist/focus-cards-TJ72BT7U.js +20 -0
  36. package/dist/index.d.ts +4 -6
  37. package/dist/index.js +3 -7
  38. package/dist/key-figure-GYENXKH3.js +20 -0
  39. package/dist/{kit-tQnCPMOM.d.ts → kit-DrRpdn0p.d.ts} +2 -2
  40. package/dist/mobile-message-UZUPIKHD.js +49 -0
  41. package/dist/{preload-media-LJXWKTWG.js → preload-media-CFTZIMZL.js} +1 -1
  42. package/dist/quote-EW5HQA6H.js +23 -0
  43. package/dist/react.d.ts +21 -11
  44. package/dist/react.js +590 -833
  45. package/dist/scene-video-backdrop-PCTARAAJ.js +7 -0
  46. package/dist/server.d.ts +7 -8
  47. package/dist/server.js +91 -74
  48. package/dist/{system-prompt-RRXIWDDD.js → system-prompt-SYRT5DWM.js} +1 -1
  49. package/dist/template-catalog.d.ts +257 -16
  50. package/dist/template-catalog.js +1 -1
  51. package/dist/templates.d.ts +5 -5
  52. package/dist/test.d.ts +3 -3
  53. package/dist/test.js +18 -18
  54. package/dist/text-stream-LD364KBI.js +9 -0
  55. package/dist/{types-DWFO6qca.d.ts → types-CdBmNTGD.d.ts} +1 -1
  56. package/dist/{types-CEh9eUFu.d.ts → types-DdZw4GRQ.d.ts} +17 -48
  57. package/dist/validate-4OUD2CLX.js +10 -0
  58. package/docs/architecture.md +1 -1
  59. package/docs/concepts.md +1 -1
  60. package/docs/custom-templates.md +13 -28
  61. package/docs/customization.md +11 -59
  62. package/docs/getting-started.md +2 -2
  63. package/docs/immersive-interface.md +3 -4
  64. package/docs/maintainers/cinematic-migration.md +34 -0
  65. package/docs/media-and-audio.md +14 -14
  66. package/docs/motion-and-effects.md +6 -14
  67. package/docs/persistence.md +3 -3
  68. package/docs/production.md +11 -9
  69. package/docs/provider-integration.md +9 -16
  70. package/docs/reference/design-system.html +1 -1
  71. package/docs/reference/protocol.md +14 -4
  72. package/docs/testing.md +1 -1
  73. package/package.json +6 -3
  74. package/registry/items/backgrounds.json +1 -1
  75. package/registry/items/chapterTitle.json +80 -0
  76. package/registry/items/cinemaMedia.json +136 -0
  77. package/registry/items/comparison.json +101 -0
  78. package/registry/items/editorialTimeline.json +105 -0
  79. package/registry/items/focusCards.json +90 -0
  80. package/registry/items/keyFigure.json +97 -0
  81. package/registry/items/mobileMessage.json +153 -0
  82. package/registry/items/quote.json +94 -0
  83. package/registry/items/template-context.json +1 -1
  84. package/registry/items/theme.json +1 -1
  85. package/starters/video-chat/README.md +24 -26
  86. package/starters/video-chat/package.json +1 -1
  87. package/starters/video-chat/providers/video.ts +6 -5
  88. package/starters/video-chat/stock.ts +35 -151
  89. package/styles/fonts/OFL.txt +93 -0
  90. package/styles/fonts/manifest.json +66 -0
  91. package/styles/fonts/roboto-v51-cyrillic-ext.woff2 +0 -0
  92. package/styles/fonts/roboto-v51-cyrillic.woff2 +0 -0
  93. package/styles/fonts/roboto-v51-greek-ext.woff2 +0 -0
  94. package/styles/fonts/roboto-v51-greek.woff2 +0 -0
  95. package/styles/fonts/roboto-v51-latin-ext.woff2 +0 -0
  96. package/styles/fonts/roboto-v51-latin.woff2 +0 -0
  97. package/styles/fonts/roboto-v51-math.woff2 +0 -0
  98. package/styles/fonts/roboto-v51-symbols.woff2 +0 -0
  99. package/styles/fonts/roboto-v51-vietnamese.woff2 +0 -0
  100. package/styles/fonts/roboto.css +91 -0
  101. package/styles/video-chat.css +30 -22
  102. package/dist/bg-confetti-HITCGLGD.js +0 -89
  103. package/dist/bg-emoji-VU4UZYZN.js +0 -150
  104. package/dist/bg-media-L34PDQXJ.js +0 -106
  105. package/dist/brand-message-FUJ4STFO.js +0 -256
  106. package/dist/chart-bar-EGPHJATL.js +0 -310
  107. package/dist/chart-counter-5FFWQNZO.js +0 -306
  108. package/dist/chart-progress-ring-JMXQLMLC.js +0 -302
  109. package/dist/chunk-4UNKZEAT.js +0 -3575
  110. package/dist/chunk-5CDAM24P.js +0 -31
  111. package/dist/chunk-AOWSXU2K.js +0 -18
  112. package/dist/chunk-CJ7F2CE6.js +0 -104
  113. package/dist/chunk-FRN6WKHA.js +0 -185
  114. package/dist/chunk-G5JPHBX7.js +0 -336
  115. package/dist/chunk-L5BTTCZV.js +0 -97
  116. package/dist/chunk-P22HHFDK.js +0 -43
  117. package/dist/chunk-PP3MCPN4.js +0 -1998
  118. package/dist/chunk-QAAO7OAY.js +0 -19
  119. package/dist/chunk-S7HFLYNN.js +0 -35
  120. package/dist/chunk-W3VDIBGR.js +0 -217
  121. package/dist/chunk-XGRA2MUV.js +0 -242
  122. package/dist/chunk-XTOXFMLM.js +0 -105
  123. package/dist/chunk-YJJC4N4D.js +0 -761
  124. package/dist/compose-video-2NFH4DZY.js +0 -13
  125. package/dist/cta-logo-YR7LYUR5.js +0 -212
  126. package/dist/cta-media-DQJBKUO2.js +0 -221
  127. package/dist/incoming-call-54KQ7O5A.js +0 -323
  128. package/dist/infographic-before-after-ROS52GOW.js +0 -460
  129. package/dist/infographic-feature-list-E7MGUDAN.js +0 -272
  130. package/dist/infographic-problem-solution-3S6NGO5N.js +0 -343
  131. package/dist/infographic-stat-row-SYB7AB7H.js +0 -247
  132. package/dist/infographic-steps-KCE6JWE2.js +0 -406
  133. package/dist/prompt-input-MHX4O42G.js +0 -239
  134. package/dist/reaction-SLEGR3BE.js +0 -122
  135. package/dist/scene-video-backdrop-XFPX4O3I.js +0 -10
  136. package/dist/showcase-code-2HLAVKBM.js +0 -357
  137. package/dist/showcase-phone-Q4HEO4LH.js +0 -278
  138. package/dist/showcase-terminal-DL45LUFG.js +0 -312
  139. package/dist/showcase-web-2QZO73FZ.js +0 -396
  140. package/dist/social-conversation-75SD2637.js +0 -695
  141. package/dist/social-milestone-GEFUQSBF.js +0 -296
  142. package/dist/social-notification-FJ5VHVLK.js +0 -247
  143. package/dist/social-review-stack-KXQCKFRP.js +0 -242
  144. package/dist/social-testimonial-JZ7CHC7S.js +0 -287
  145. package/dist/social-tweet-UCDXM25F.js +0 -298
  146. package/dist/text-stream-54LXABJW.js +0 -10
  147. package/dist/validate-T7GBU2YF.js +0 -8
  148. package/registry/items/barChart.json +0 -245
  149. package/registry/items/beforeAfter.json +0 -180
  150. package/registry/items/bigNumber.json +0 -232
  151. package/registry/items/brandMessage.json +0 -164
  152. package/registry/items/cardList.json +0 -214
  153. package/registry/items/chatMessenger.json +0 -151
  154. package/registry/items/chatWhatsapp.json +0 -151
  155. package/registry/items/codeEditor.json +0 -191
  156. package/registry/items/confetti.json +0 -107
  157. package/registry/items/ctaLogo.json +0 -167
  158. package/registry/items/ctaMedia.json +0 -200
  159. package/registry/items/emojiBurst.json +0 -101
  160. package/registry/items/incomingCall.json +0 -177
  161. package/registry/items/media.json +0 -187
  162. package/registry/items/milestone.json +0 -212
  163. package/registry/items/notification.json +0 -189
  164. package/registry/items/phoneMockup.json +0 -261
  165. package/registry/items/problemSolution.json +0 -193
  166. package/registry/items/progressRing.json +0 -206
  167. package/registry/items/promptInput.json +0 -155
  168. package/registry/items/reaction.json +0 -176
  169. package/registry/items/reviewStack.json +0 -231
  170. package/registry/items/steps.json +0 -215
  171. package/registry/items/terminal.json +0 -219
  172. package/registry/items/testimonial.json +0 -171
  173. package/registry/items/tripleStats.json +0 -235
  174. package/registry/items/tweet.json +0 -210
  175. package/registry/items/webMockup.json +0 -280
@@ -1,298 +0,0 @@
1
- import {
2
- stripPipe
3
- } from "./chunk-S7HFLYNN.js";
4
- import {
5
- SceneBackground,
6
- getMediaBackgroundProps
7
- } from "./chunk-MXZSDGZQ.js";
8
- import {
9
- renderWithEmoji
10
- } from "./chunk-L5BTTCZV.js";
11
- import "./chunk-FRN6WKHA.js";
12
- import {
13
- autoTextColor
14
- } from "./chunk-W3VDIBGR.js";
15
- import {
16
- SPRING_SMOOTH,
17
- interpolate,
18
- spring
19
- } from "./chunk-XTOXFMLM.js";
20
- import "./chunk-224QNWRA.js";
21
- import "./chunk-5CDAM24P.js";
22
- import {
23
- resolveTokens
24
- } from "./chunk-XWWLKRNU.js";
25
-
26
- // src/visual-system/primitives/social/TweetCard.tsx
27
- import { jsx, jsxs } from "react/jsx-runtime";
28
- var CLAMP = { extrapolateLeft: "clamp", extrapolateRight: "clamp" };
29
- var X = {
30
- cardBg: "#16181c",
31
- cardBorder: "#2f3336",
32
- text: "rgb(230, 230, 230)",
33
- muted: "#71767b",
34
- verified: "#1d9bf0"
35
- };
36
- function formatCount(n) {
37
- const abs = Math.abs(n);
38
- const sign = n < 0 ? "-" : "";
39
- if (abs < 1e3) return n.toLocaleString();
40
- if (abs < 1e4) {
41
- const v2 = abs / 1e3;
42
- const rounded = Number(v2.toFixed(1));
43
- if (rounded < 10) return `${sign}${rounded.toString().replace(/\.0$/, "")}K`;
44
- }
45
- if (abs < 1e6) {
46
- const k = Math.round(abs / 1e3);
47
- if (k < 1e3) return `${sign}${k}K`;
48
- }
49
- if (abs < 1e7) {
50
- const v2 = abs / 1e6;
51
- const rounded = Number(v2.toFixed(1));
52
- if (rounded < 10) return `${sign}${rounded.toString().replace(/\.0$/, "")}M`;
53
- }
54
- if (abs < 1e9) {
55
- const m = Math.round(abs / 1e6);
56
- if (m < 1e3) return `${sign}${m}M`;
57
- }
58
- const v = abs / 1e9;
59
- return `${sign}${v.toFixed(1).replace(/\.0$/, "")}B`;
60
- }
61
- function hashHue(str) {
62
- let h = 0;
63
- for (let i = 0; i < str.length; i++) h = (h * 31 + str.charCodeAt(i)) % 360;
64
- return h;
65
- }
66
- function deriveHandle(brandName) {
67
- const slug = brandName.toLowerCase().replace(/[^a-z0-9]/g, "");
68
- return slug ? `@${slug}` : "";
69
- }
70
- var XLogo = ({ size }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 1200 1227", fill: "none", children: /* @__PURE__ */ jsx(
71
- "path",
72
- {
73
- d: "M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z",
74
- fill: X.text
75
- }
76
- ) });
77
- var VerifiedBadge = ({ size }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 22 22", fill: "none", children: /* @__PURE__ */ jsx(
78
- "path",
79
- {
80
- d: "M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44C12.276 1.819 11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85L6.8 12.46l1.41-1.42 2.262 2.26 4.798-5.23 1.47 1.36-6.198 6.77z",
81
- fill: X.verified
82
- }
83
- ) });
84
- var CommentIcon = ({ size }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: X.muted, strokeWidth: 1.8, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" }) });
85
- var HeartIcon = ({ size }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: X.muted, strokeWidth: 1.8, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) });
86
- var TweetCard = ({
87
- progress,
88
- motionProgress = progress,
89
- authorName: rawName,
90
- authorHandle: rawHandle,
91
- authorVerified,
92
- message: rawMessage,
93
- targetLikes = 0,
94
- targetReplies = 0,
95
- accent,
96
- width,
97
- height,
98
- beatIntensity = 0
99
- }) => {
100
- const dim = Math.min(width, height);
101
- const s = dim / 1080;
102
- const resolvedAccent = accent || `hsl(${hashHue(String(rawName))}, 60%, 55%)`;
103
- const authorName = stripPipe(rawName);
104
- const customHandle = stripPipe(rawHandle || "").trim();
105
- const authorHandle = customHandle || deriveHandle(authorName);
106
- const isVerified = authorVerified !== false;
107
- const message = stripPipe(rawMessage);
108
- const initialChar = authorName.charAt(0).toUpperCase() || "\u2022";
109
- const cardScale = spring(interpolate(motionProgress, [0, 0.24], [0, 1], CLAMP), SPRING_SMOOTH);
110
- const cardOpacity = interpolate(motionProgress, [0, 0.18], [0, 1], CLAMP);
111
- const replyCount = Math.round(interpolate(progress, [0.3, 0.75], [0, targetReplies], CLAMP));
112
- const likeCount = Math.round(interpolate(progress, [0.35, 0.8], [0, targetLikes], CLAMP));
113
- const replyDisplay = formatCount(replyCount);
114
- const likeDisplay = formatCount(likeCount);
115
- const replyIsTransient = replyDisplay !== formatCount(Math.round(targetReplies));
116
- const likeIsTransient = likeDisplay !== formatCount(Math.round(targetLikes));
117
- const beatScale = 1 + beatIntensity * 0.01;
118
- const cardWidth = Math.min(width * 0.92, dim * 0.95);
119
- const cardPad = dim * 0.05;
120
- const cardRadius = dim * 0.026;
121
- const avatarSize = dim * 0.09;
122
- const xLogoSize = dim * 0.072;
123
- const verifiedSize = dim * 0.028;
124
- const nameFontSize = dim * 0.04;
125
- const handleFontSize = dim * 0.03;
126
- const messageFontSize = dim * 0.046;
127
- const footerIconSize = dim * 0.032;
128
- const footerFontSize = dim * 0.03;
129
- const headerToBodyGap = dim * 0.028;
130
- const bodyToFooterGap = dim * 0.032;
131
- return /* @__PURE__ */ jsx(
132
- "div",
133
- {
134
- style: {
135
- position: "absolute",
136
- inset: 0,
137
- display: "flex",
138
- justifyContent: "center",
139
- alignItems: "center"
140
- },
141
- children: /* @__PURE__ */ jsxs(
142
- "div",
143
- {
144
- style: {
145
- width: cardWidth,
146
- backgroundColor: X.cardBg,
147
- borderRadius: cardRadius,
148
- padding: cardPad,
149
- border: `1px solid ${X.cardBorder}`,
150
- boxShadow: [
151
- `0 ${1 * s}px ${3 * s}px 0 rgba(0,0,0,0.1)`,
152
- `0 ${1 * s}px ${2 * s}px ${-1 * s}px rgba(0,0,0,0.1)`,
153
- `0 ${20 * s}px ${60 * s}px rgba(0,0,0,0.45)`
154
- ].join(", "),
155
- opacity: cardOpacity,
156
- transform: `scale(${cardScale * beatScale})`
157
- },
158
- children: [
159
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: dim * 0.018 }, children: [
160
- /* @__PURE__ */ jsx(
161
- "div",
162
- {
163
- style: {
164
- width: avatarSize,
165
- height: avatarSize,
166
- borderRadius: "50%",
167
- flexShrink: 0,
168
- overflow: "hidden",
169
- backgroundColor: resolvedAccent,
170
- display: "flex",
171
- alignItems: "center",
172
- justifyContent: "center"
173
- },
174
- children: /* @__PURE__ */ jsx("span", { style: { color: autoTextColor(resolvedAccent), fontSize: avatarSize * 0.46, fontWeight: 700, letterSpacing: -0.5, lineHeight: 1 }, children: initialChar })
175
- }
176
- ),
177
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", flex: 1, minWidth: 0, gap: dim * 2e-3 }, children: [
178
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: dim * 6e-3 }, children: [
179
- /* @__PURE__ */ jsx("span", { style: { color: X.text, fontSize: nameFontSize, fontWeight: 700, letterSpacing: -0.3, lineHeight: 1.1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: authorName }),
180
- isVerified && /* @__PURE__ */ jsx(VerifiedBadge, { size: verifiedSize })
181
- ] }),
182
- /* @__PURE__ */ jsx("span", { style: { color: X.muted, fontSize: handleFontSize, fontWeight: 400, lineHeight: 1.1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: authorHandle })
183
- ] }),
184
- /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx(XLogo, { size: xLogoSize }) })
185
- ] }),
186
- /* @__PURE__ */ jsx("div", { style: { color: X.text, fontSize: messageFontSize, lineHeight: 1.4, letterSpacing: -0.1, marginTop: headerToBodyGap, wordBreak: "break-word" }, children: renderWithEmoji(message, messageFontSize) }),
187
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: dim * 0.04, marginTop: bodyToFooterGap }, children: [
188
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: dim * 8e-3 }, children: [
189
- /* @__PURE__ */ jsx(CommentIcon, { size: footerIconSize }),
190
- /* @__PURE__ */ jsx(
191
- "span",
192
- {
193
- "data-transition-semantic": replyIsTransient ? "transient" : void 0,
194
- style: {
195
- color: X.muted,
196
- fontSize: footerFontSize,
197
- fontVariantNumeric: "tabular-nums",
198
- ...replyIsTransient ? { visibility: "var(--vanillasky-transition-semantic-visibility,visible)" } : {}
199
- },
200
- children: replyDisplay
201
- }
202
- )
203
- ] }),
204
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: dim * 8e-3 }, children: [
205
- /* @__PURE__ */ jsx(HeartIcon, { size: footerIconSize }),
206
- /* @__PURE__ */ jsx(
207
- "span",
208
- {
209
- "data-transition-semantic": likeIsTransient ? "transient" : void 0,
210
- style: {
211
- color: X.muted,
212
- fontSize: footerFontSize,
213
- fontVariantNumeric: "tabular-nums",
214
- ...likeIsTransient ? { visibility: "var(--vanillasky-transition-semantic-visibility,visible)" } : {}
215
- },
216
- children: likeDisplay
217
- }
218
- )
219
- ] })
220
- ] })
221
- ]
222
- }
223
- )
224
- }
225
- );
226
- };
227
-
228
- // src/visual-system/scene-templates/social-tweet.tsx
229
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
230
- var SocialTweetTemplate = ({
231
- variables,
232
- style,
233
- progress,
234
- motionProgress = progress,
235
- beatIntensity,
236
- width,
237
- height,
238
- sceneDuration,
239
- isPlaying = true,
240
- backgroundEffect
241
- }) => {
242
- const authorName = String(variables.authorName || "Your brand");
243
- const message = String(variables.message || "");
244
- const { primary } = resolveTokens(style);
245
- const seed = (authorName + message).split("").reduce((acc, c) => acc + c.charCodeAt(0), 0);
246
- const verifiedRaw = variables.authorVerified;
247
- const isVerified = verifiedRaw === true || String(verifiedRaw ?? "").toLowerCase() === "true";
248
- return /* @__PURE__ */ jsxs2(
249
- "div",
250
- {
251
- style: {
252
- width,
253
- height,
254
- backgroundColor: "var(--vanillasky-template-surface, #000)",
255
- position: "relative",
256
- overflow: "hidden",
257
- fontFamily: "'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
258
- },
259
- children: [
260
- /* @__PURE__ */ jsx2(
261
- SceneBackground,
262
- {
263
- style,
264
- progress,
265
- sceneDuration,
266
- width,
267
- height,
268
- ...getMediaBackgroundProps(variables),
269
- backgroundEffect,
270
- seed,
271
- isPlaying,
272
- beatIntensity
273
- }
274
- ),
275
- /* @__PURE__ */ jsx2(
276
- TweetCard,
277
- {
278
- progress,
279
- motionProgress,
280
- authorName,
281
- authorHandle: String(variables.authorHandle || ""),
282
- authorVerified: isVerified,
283
- message,
284
- targetLikes: Number(variables.likes) || 0,
285
- targetReplies: Number(variables.replies) || 0,
286
- accent: primary,
287
- width,
288
- height,
289
- beatIntensity
290
- }
291
- )
292
- ]
293
- }
294
- );
295
- };
296
- export {
297
- SocialTweetTemplate
298
- };
@@ -1,10 +0,0 @@
1
- import {
2
- createTextDeltaVideoPlanner
3
- } from "./chunk-L7QGGKJ2.js";
4
- import "./chunk-E7CL7UPB.js";
5
- import "./chunk-MMUXVA47.js";
6
- import "./chunk-AOWSXU2K.js";
7
- import "./chunk-XGRA2MUV.js";
8
- export {
9
- createTextDeltaVideoPlanner
10
- };
@@ -1,8 +0,0 @@
1
- import {
2
- createTemplateSceneValidator
3
- } from "./chunk-LMG3GHLL.js";
4
- import "./chunk-352ZZCET.js";
5
- import "./chunk-73NTSFFI.js";
6
- export {
7
- createTemplateSceneValidator
8
- };