@vanillaskyai/video 0.8.7 → 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.
- package/CHANGELOG.md +34 -0
- package/PUBLIC-API.md +5 -8
- package/dist/{builtin-server-CUYPIDE7.js → builtin-server-HW6HGXCZ.js} +2 -2
- package/dist/{catalog-types-BIhSpOWK.d.ts → catalog-types-WTbLP6Jh.d.ts} +5 -1
- package/dist/chapter-title-YRLIQY3V.js +7 -0
- package/dist/check-runtime.js +6 -15
- package/dist/{chunk-2USVB3CY.js → chunk-3ZTEFJIR.js} +285 -178
- package/dist/chunk-4YM2M62S.js +13 -0
- package/dist/chunk-77VY4O7A.js +390 -0
- package/dist/{chunk-MMUXVA47.js → chunk-7M56IUUX.js} +9 -8
- package/dist/chunk-7NZOMTAL.js +63 -0
- package/dist/{chunk-2DOLF4QN.js → chunk-AUPC6MDK.js} +12 -14
- package/dist/{chunk-352ZZCET.js → chunk-EGVQODKU.js} +2 -2
- package/dist/chunk-EWWCQFTI.js +18 -0
- package/dist/{chunk-MXZSDGZQ.js → chunk-G7IZBBWF.js} +14 -9
- package/dist/{chunk-KT3M7KDL.js → chunk-HKUI5BTB.js} +3 -3
- package/dist/{chunk-LMG3GHLL.js → chunk-IQMYK5DX.js} +29 -3
- package/dist/chunk-LH4BPALA.js +564 -0
- package/dist/{chunk-OWBT45EN.js → chunk-MQILEEXC.js} +1 -1
- package/dist/chunk-MXEYPK7M.js +552 -0
- package/dist/{chunk-AITKH6QT.js → chunk-OR52UMSF.js} +13 -39
- package/dist/{chunk-5SLENAJW.js → chunk-PAJ44TFW.js} +1 -2
- package/dist/{chunk-L7QGGKJ2.js → chunk-PDQFQIQW.js} +1 -1
- package/dist/{chunk-WJ6FLKNC.js → chunk-R3XAOMKP.js} +14 -0
- package/dist/{chunk-2OKB27TG.js → chunk-RXTN2CW6.js} +2 -2
- package/dist/{chunk-XWWLKRNU.js → chunk-TVIU23OM.js} +38 -49
- package/dist/{chunk-224QNWRA.js → chunk-UDIODEDK.js} +1 -5
- package/dist/{chunk-3VRMKFM7.js → chunk-ZDJNFA52.js} +11 -24
- package/dist/cinema-media-YQHSIFDA.js +11 -0
- package/dist/cli.js +18 -9
- package/dist/comparison-RZMMHZR2.js +27 -0
- package/dist/compose-video-TBFTONUC.js +12 -0
- package/dist/editorial-timeline-OZX7OS6G.js +36 -0
- package/dist/{events-BQ6z264n.d.ts → events-B4YCc4vc.d.ts} +1 -1
- package/dist/focus-cards-TJ72BT7U.js +20 -0
- package/dist/index.d.ts +4 -6
- package/dist/index.js +3 -7
- package/dist/key-figure-GYENXKH3.js +20 -0
- package/dist/{kit-tQnCPMOM.d.ts → kit-DrRpdn0p.d.ts} +2 -2
- package/dist/mobile-message-UZUPIKHD.js +49 -0
- package/dist/{preload-media-LJXWKTWG.js → preload-media-CFTZIMZL.js} +1 -1
- package/dist/quote-EW5HQA6H.js +23 -0
- package/dist/react.d.ts +21 -11
- package/dist/react.js +608 -851
- package/dist/scene-video-backdrop-PCTARAAJ.js +7 -0
- package/dist/server.d.ts +7 -8
- package/dist/server.js +91 -74
- package/dist/{system-prompt-RRXIWDDD.js → system-prompt-SYRT5DWM.js} +1 -1
- package/dist/template-catalog.d.ts +257 -16
- package/dist/template-catalog.js +1 -1
- package/dist/templates.d.ts +5 -5
- package/dist/test.d.ts +3 -3
- package/dist/test.js +18 -18
- package/dist/text-stream-LD364KBI.js +9 -0
- package/dist/{types-DWFO6qca.d.ts → types-CdBmNTGD.d.ts} +1 -1
- package/dist/{types-CEh9eUFu.d.ts → types-DdZw4GRQ.d.ts} +17 -48
- package/dist/validate-4OUD2CLX.js +10 -0
- package/docs/architecture.md +1 -1
- package/docs/concepts.md +1 -1
- package/docs/custom-templates.md +13 -28
- package/docs/customization.md +11 -59
- package/docs/getting-started.md +2 -2
- package/docs/immersive-interface.md +3 -4
- package/docs/maintainers/cinematic-migration.md +34 -0
- package/docs/media-and-audio.md +14 -14
- package/docs/motion-and-effects.md +6 -14
- package/docs/persistence.md +3 -3
- package/docs/production.md +11 -9
- package/docs/provider-integration.md +9 -16
- package/docs/reference/design-system.html +3 -3
- package/docs/reference/protocol.md +14 -4
- package/docs/testing.md +1 -1
- package/package.json +6 -3
- package/registry/items/backgrounds.json +1 -1
- package/registry/items/chapterTitle.json +80 -0
- package/registry/items/cinemaMedia.json +136 -0
- package/registry/items/comparison.json +101 -0
- package/registry/items/editorialTimeline.json +105 -0
- package/registry/items/focusCards.json +90 -0
- package/registry/items/keyFigure.json +97 -0
- package/registry/items/mobileMessage.json +153 -0
- package/registry/items/quote.json +94 -0
- package/registry/items/template-context.json +1 -1
- package/registry/items/theme.json +1 -1
- package/starters/video-chat/README.md +24 -26
- package/starters/video-chat/package.json +1 -1
- package/starters/video-chat/providers/video.ts +6 -5
- package/starters/video-chat/stock.ts +35 -151
- package/styles/fonts/OFL.txt +93 -0
- package/styles/fonts/manifest.json +66 -0
- package/styles/fonts/roboto-v51-cyrillic-ext.woff2 +0 -0
- package/styles/fonts/roboto-v51-cyrillic.woff2 +0 -0
- package/styles/fonts/roboto-v51-greek-ext.woff2 +0 -0
- package/styles/fonts/roboto-v51-greek.woff2 +0 -0
- package/styles/fonts/roboto-v51-latin-ext.woff2 +0 -0
- package/styles/fonts/roboto-v51-latin.woff2 +0 -0
- package/styles/fonts/roboto-v51-math.woff2 +0 -0
- package/styles/fonts/roboto-v51-symbols.woff2 +0 -0
- package/styles/fonts/roboto-v51-vietnamese.woff2 +0 -0
- package/styles/fonts/roboto.css +91 -0
- package/styles/video-chat.css +30 -23
- package/dist/bg-confetti-HITCGLGD.js +0 -89
- package/dist/bg-emoji-VU4UZYZN.js +0 -150
- package/dist/bg-media-L34PDQXJ.js +0 -106
- package/dist/brand-message-FUJ4STFO.js +0 -256
- package/dist/chart-bar-EGPHJATL.js +0 -310
- package/dist/chart-counter-5FFWQNZO.js +0 -306
- package/dist/chart-progress-ring-JMXQLMLC.js +0 -302
- package/dist/chunk-4UNKZEAT.js +0 -3575
- package/dist/chunk-5CDAM24P.js +0 -31
- package/dist/chunk-AOWSXU2K.js +0 -18
- package/dist/chunk-CJ7F2CE6.js +0 -104
- package/dist/chunk-FRN6WKHA.js +0 -185
- package/dist/chunk-G5JPHBX7.js +0 -336
- package/dist/chunk-L5BTTCZV.js +0 -97
- package/dist/chunk-P22HHFDK.js +0 -43
- package/dist/chunk-PP3MCPN4.js +0 -1998
- package/dist/chunk-QAAO7OAY.js +0 -19
- package/dist/chunk-S7HFLYNN.js +0 -35
- package/dist/chunk-W3VDIBGR.js +0 -217
- package/dist/chunk-XGRA2MUV.js +0 -242
- package/dist/chunk-XTOXFMLM.js +0 -105
- package/dist/chunk-YJJC4N4D.js +0 -761
- package/dist/compose-video-2NFH4DZY.js +0 -13
- package/dist/cta-logo-YR7LYUR5.js +0 -212
- package/dist/cta-media-DQJBKUO2.js +0 -221
- package/dist/incoming-call-54KQ7O5A.js +0 -323
- package/dist/infographic-before-after-ROS52GOW.js +0 -460
- package/dist/infographic-feature-list-E7MGUDAN.js +0 -272
- package/dist/infographic-problem-solution-3S6NGO5N.js +0 -343
- package/dist/infographic-stat-row-SYB7AB7H.js +0 -247
- package/dist/infographic-steps-KCE6JWE2.js +0 -406
- package/dist/prompt-input-MHX4O42G.js +0 -239
- package/dist/reaction-SLEGR3BE.js +0 -122
- package/dist/scene-video-backdrop-XFPX4O3I.js +0 -10
- package/dist/showcase-code-2HLAVKBM.js +0 -357
- package/dist/showcase-phone-Q4HEO4LH.js +0 -278
- package/dist/showcase-terminal-DL45LUFG.js +0 -312
- package/dist/showcase-web-2QZO73FZ.js +0 -396
- package/dist/social-conversation-75SD2637.js +0 -695
- package/dist/social-milestone-GEFUQSBF.js +0 -296
- package/dist/social-notification-FJ5VHVLK.js +0 -247
- package/dist/social-review-stack-KXQCKFRP.js +0 -242
- package/dist/social-testimonial-JZ7CHC7S.js +0 -287
- package/dist/social-tweet-UCDXM25F.js +0 -298
- package/dist/text-stream-54LXABJW.js +0 -10
- package/dist/validate-T7GBU2YF.js +0 -8
- package/registry/items/barChart.json +0 -245
- package/registry/items/beforeAfter.json +0 -180
- package/registry/items/bigNumber.json +0 -232
- package/registry/items/brandMessage.json +0 -164
- package/registry/items/cardList.json +0 -214
- package/registry/items/chatMessenger.json +0 -151
- package/registry/items/chatWhatsapp.json +0 -151
- package/registry/items/codeEditor.json +0 -191
- package/registry/items/confetti.json +0 -107
- package/registry/items/ctaLogo.json +0 -167
- package/registry/items/ctaMedia.json +0 -200
- package/registry/items/emojiBurst.json +0 -101
- package/registry/items/incomingCall.json +0 -177
- package/registry/items/media.json +0 -187
- package/registry/items/milestone.json +0 -212
- package/registry/items/notification.json +0 -189
- package/registry/items/phoneMockup.json +0 -261
- package/registry/items/problemSolution.json +0 -193
- package/registry/items/progressRing.json +0 -206
- package/registry/items/promptInput.json +0 -155
- package/registry/items/reaction.json +0 -176
- package/registry/items/reviewStack.json +0 -231
- package/registry/items/steps.json +0 -215
- package/registry/items/terminal.json +0 -219
- package/registry/items/testimonial.json +0 -171
- package/registry/items/tripleStats.json +0 -235
- package/registry/items/tweet.json +0 -210
- package/registry/items/webMockup.json +0 -280
|
@@ -1,154 +1,38 @@
|
|
|
1
1
|
import type { VideoOrientation } from "@vanillaskyai/video";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
const url = new URL(value);
|
|
40
|
-
if (url.protocol !== "https:" || url.hostname !== host || url.username || url.password || url.port) return undefined;
|
|
41
|
-
return url.toString();
|
|
42
|
-
} catch {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function pickVideoFile(files: unknown, orientation: VideoOrientation): string | undefined {
|
|
48
|
-
const usable = entries(files).flatMap((value) => {
|
|
49
|
-
const file = record(value);
|
|
50
|
-
const direct = trustedUrl(file.link, "videos.pexels.com");
|
|
51
|
-
const external = trustedUrl(file.link, "player.vimeo.com");
|
|
52
|
-
const link = direct ?? (external && /^\/external\/[a-zA-Z0-9._-]+\.mp4$/.test(new URL(external).pathname) ? external : undefined);
|
|
53
|
-
const { width, height } = file;
|
|
54
|
-
if (!link || typeof width !== "number" || typeof height !== "number"
|
|
55
|
-
|| !Number.isFinite(width) || !Number.isFinite(height) || width <= 0 || height <= 0) return [];
|
|
56
|
-
return [{ link, width, height }];
|
|
57
|
-
});
|
|
58
|
-
// Prefer the stage's shape without discarding other safe renditions.
|
|
59
|
-
return (usable.find((file) => orientation === "portrait"
|
|
60
|
-
? file.height >= file.width
|
|
61
|
-
: file.width >= file.height) ?? usable[0])?.link;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async function search(url: string, apiKey: string, signal: AbortSignal): Promise<unknown> {
|
|
65
|
-
const cached = cache.get(url);
|
|
66
|
-
if (cached && cached.expiresAt > Date.now()) return cached.payload;
|
|
67
|
-
|
|
68
|
-
if (signal.aborted) return null;
|
|
69
|
-
try {
|
|
70
|
-
const response = await fetch(url, {
|
|
71
|
-
headers: { Authorization: apiKey },
|
|
72
|
-
signal,
|
|
73
|
-
});
|
|
74
|
-
if (!response.ok || signal.aborted) return null;
|
|
75
|
-
const payload: unknown = await response.json();
|
|
76
|
-
if (signal.aborted) return null;
|
|
77
|
-
cache.set(url, { payload, expiresAt: Date.now() + 60 * 60 * 1_000 });
|
|
78
|
-
if (cache.size > 100) cache.delete(cache.keys().next().value!);
|
|
79
|
-
return payload;
|
|
80
|
-
} catch {
|
|
81
|
-
// A failed video search must still allow the independent photo fallback.
|
|
82
|
-
if (!signal.aborted) console.warn("[video-chat] Stock lookup unavailable; trying a fallback.");
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** Metadata is a weak mismatch filter, never visual verification. Numeric URLs
|
|
88
|
-
* and missing descriptions are unknown and retain the provider's search ranking. */
|
|
89
|
-
function matchesMetadata(item: Record<string, unknown>, keyword: string): boolean {
|
|
90
|
-
let description = typeof item.alt === "string" ? item.alt : "";
|
|
91
|
-
if (!description) {
|
|
92
|
-
const page = trustedUrl(item.url, "www.pexels.com");
|
|
93
|
-
if (page) description = new URL(page).pathname.replace(/^\/(?:video|photo)\//, "");
|
|
94
|
-
}
|
|
95
|
-
const words = (value: string) => normalizeKeyword(value).toLowerCase().split(/[\s-]+/)
|
|
96
|
-
.filter(word => /\p{L}/u.test(word) && !["a", "an", "the", "of", "in", "on", "with", "and", "video", "photo", "free", "footage"].includes(word));
|
|
97
|
-
const labels = words(description);
|
|
98
|
-
const requested = words(keyword);
|
|
99
|
-
return labels.length === 0 || requested.length === 0 || requested.some(word => labels.includes(word));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** Video queries precede photos. All work shares one deadline, including body
|
|
103
|
-
* parsing, even if a custom fetch implementation ignores its abort signal. */
|
|
104
|
-
export async function findStockFootage(subject: string, orientation: VideoOrientation, signal: AbortSignal, fallbackSubject?: string): Promise<StockMedia | null> {
|
|
105
|
-
const apiKey = process.env.PEXELS_API_KEY;
|
|
106
|
-
const keyword = normalizeKeyword(subject);
|
|
107
|
-
if (!apiKey || !keyword || signal.aborted) return null;
|
|
108
|
-
const keywords = [keyword];
|
|
109
|
-
const fallback = normalizeKeyword(fallbackSubject ?? "");
|
|
110
|
-
if (fallback && fallback.toLowerCase() !== keyword.toLowerCase()) keywords.push(fallback);
|
|
111
|
-
const controller = new AbortController();
|
|
112
|
-
let finish!: (value: null) => void;
|
|
113
|
-
const stopped = new Promise<null>(resolve => { finish = resolve; });
|
|
114
|
-
const abort = () => { controller.abort(); finish(null); };
|
|
115
|
-
signal.addEventListener("abort", abort, { once: true });
|
|
116
|
-
const timer = setTimeout(abort, LOOKUP_TIMEOUT_MS);
|
|
117
|
-
const active = controller.signal;
|
|
118
|
-
const lookup = async (): Promise<StockMedia | null> => {
|
|
119
|
-
for (const query of keywords) {
|
|
120
|
-
const params = new URLSearchParams({ query, orientation, per_page: "3", page: "1" });
|
|
121
|
-
const videos = record(await search(`${VIDEO_SEARCH}?${params}`, apiKey, active));
|
|
122
|
-
if (active.aborted) return null;
|
|
123
|
-
for (const value of entries(videos.videos)) {
|
|
124
|
-
const video = record(value);
|
|
125
|
-
if (!matchesMetadata(video, query)) continue;
|
|
126
|
-
const url = pickVideoFile(video.video_files, orientation);
|
|
127
|
-
if (!url) continue;
|
|
128
|
-
const posterUrl = trustedUrl(video.image, "images.pexels.com");
|
|
129
|
-
return { url, type: "video", ...(posterUrl ? { posterUrl } : {}) };
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
for (const query of keywords) {
|
|
133
|
-
const params = new URLSearchParams({ query, orientation, per_page: "3", page: "1" });
|
|
134
|
-
const photos = record(await search(`${PHOTO_SEARCH}?${params}`, apiKey, active));
|
|
135
|
-
if (active.aborted) return null;
|
|
136
|
-
for (const value of entries(photos.photos)) {
|
|
137
|
-
const photo = record(value);
|
|
138
|
-
if (!matchesMetadata(photo, query)) continue;
|
|
139
|
-
const source = record(photo.src);
|
|
140
|
-
for (const candidate of [source.large2x, source.large]) {
|
|
141
|
-
const url = trustedUrl(candidate, "images.pexels.com");
|
|
142
|
-
if (url) return { url, type: "image" };
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return null;
|
|
147
|
-
};
|
|
148
|
-
try {
|
|
149
|
-
return await Promise.race([lookup(), stopped]);
|
|
150
|
-
} finally {
|
|
151
|
-
clearTimeout(timer);
|
|
152
|
-
signal.removeEventListener("abort", abort);
|
|
153
|
-
}
|
|
3
|
+
export interface ApprovedStock {
|
|
4
|
+
/** Literal phrases the inspected clip actually depicts; no broad topic aliases. */
|
|
5
|
+
queries: readonly string[];
|
|
6
|
+
orientations: readonly VideoOrientation[];
|
|
7
|
+
description: string;
|
|
8
|
+
reviewedAt: string;
|
|
9
|
+
media: { url: string; type: "video" | "image"; posterUrl?: string };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Add assets only after watching the clip and checking its crop and poster.
|
|
13
|
+
* An empty collection deliberately declines stock instead of guessing from
|
|
14
|
+
* search rank. The host can maintain this reviewed index independently of the SDK.
|
|
15
|
+
*/
|
|
16
|
+
export const approvedStock: readonly ApprovedStock[] = [];
|
|
17
|
+
|
|
18
|
+
const normalize = (value: string) => value.trim().toLowerCase().replace(/\s+/g, ' ');
|
|
19
|
+
function approvedUrl(value: string): boolean {
|
|
20
|
+
try { const url=new URL(value);return url.protocol==='https:' && !url.username && !url.password && !url.port; }
|
|
21
|
+
catch { return false; }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export async function findStockFootage(
|
|
25
|
+
query: string,
|
|
26
|
+
orientation: VideoOrientation,
|
|
27
|
+
signal: AbortSignal,
|
|
28
|
+
_fallbackQuery?: string,
|
|
29
|
+
index: readonly ApprovedStock[] = approvedStock,
|
|
30
|
+
) {
|
|
31
|
+
signal.throwIfAborted();
|
|
32
|
+
const intent=normalize(query);
|
|
33
|
+
if(!intent || intent.length>80 || intent.split(' ').length>8)return null;
|
|
34
|
+
const entry=index.find(asset=>asset.reviewedAt && asset.description && asset.orientations.includes(orientation)
|
|
35
|
+
&& asset.queries.some(candidate=>normalize(candidate)===intent)
|
|
36
|
+
&& approvedUrl(asset.media.url) && (!asset.media.posterUrl || approvedUrl(asset.media.posterUrl)));
|
|
37
|
+
return entry ? {...entry.media} : null;
|
|
154
38
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"family": "Roboto",
|
|
3
|
+
"version": "v51",
|
|
4
|
+
"weights": [
|
|
5
|
+
400,
|
|
6
|
+
500
|
|
7
|
+
],
|
|
8
|
+
"license": "OFL.txt",
|
|
9
|
+
"licenseSource": "https://raw.githubusercontent.com/google/fonts/main/ofl/roboto/OFL.txt",
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"file": "roboto-v51-cyrillic-ext.woff2",
|
|
13
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBHMdazTgWw.woff2",
|
|
14
|
+
"sha256": "e44224eb71a96cb33bd046ded16a4e22bb441b170bdfbcba0268a754141b97c8",
|
|
15
|
+
"bytes": 31472
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"file": "roboto-v51-cyrillic.woff2",
|
|
19
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBHMdazTgWw.woff2",
|
|
20
|
+
"sha256": "32886c5ec61a0d06e5677a98c5ed78a5f1c788c18c5e8d7dcd931c4b6dc19830",
|
|
21
|
+
"bytes": 19624
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"file": "roboto-v51-greek-ext.woff2",
|
|
25
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBHMdazTgWw.woff2",
|
|
26
|
+
"sha256": "5fdfeaf926cac990770dfa66011bdb87d6b69f43c42aa759dcdcf0a7a197c19a",
|
|
27
|
+
"bytes": 1632
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"file": "roboto-v51-greek.woff2",
|
|
31
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBHMdazTgWw.woff2",
|
|
32
|
+
"sha256": "4813e3dfbbb23708c817ef7fd3fd9c82cd0d33c778def0897f0447f1c364ce64",
|
|
33
|
+
"bytes": 13984
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"file": "roboto-v51-math.woff2",
|
|
37
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBHMdazTgWw.woff2",
|
|
38
|
+
"sha256": "297193369eea600161f4b5219bd7b08850180fcfe0752f1a2eaa436575cd03b7",
|
|
39
|
+
"bytes": 36292
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"file": "roboto-v51-symbols.woff2",
|
|
43
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBHMdazTgWw.woff2",
|
|
44
|
+
"sha256": "fab8a0056d92fdd8d64fed4b049744144e1d24d08762c513bff78265299ed7a3",
|
|
45
|
+
"bytes": 16692
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"file": "roboto-v51-vietnamese.woff2",
|
|
49
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBHMdazTgWw.woff2",
|
|
50
|
+
"sha256": "2071148c26bd0430cad316373c26db399e0cf8f6275b9e1a2c1b831f05ee7dc3",
|
|
51
|
+
"bytes": 10572
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"file": "roboto-v51-latin-ext.woff2",
|
|
55
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBHMdazTgWw.woff2",
|
|
56
|
+
"sha256": "cdd53dc5576a79f35cf280dfbd9c1cb2a5dd2f0ede30afba9b9ccdc7fe12e7d0",
|
|
57
|
+
"bytes": 24444
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"file": "roboto-v51-latin.woff2",
|
|
61
|
+
"source": "https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2",
|
|
62
|
+
"sha256": "0a44e0bb6ba5c8537e8814c148ef7755f1bce12112361231f595ecc584a18d7a",
|
|
63
|
+
"bytes": 37520
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* Roboto v51, SIL Open Font License 1.1. Self-hosted fallback; no external requests. */
|
|
2
|
+
/* cyrillic-ext */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Roboto';
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400 500;
|
|
7
|
+
font-stretch: 100%;
|
|
8
|
+
font-display: optional;
|
|
9
|
+
src: url("./roboto-v51-cyrillic-ext.woff2") format('woff2');
|
|
10
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
11
|
+
}
|
|
12
|
+
/* cyrillic */
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Roboto';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400 500;
|
|
17
|
+
font-stretch: 100%;
|
|
18
|
+
font-display: optional;
|
|
19
|
+
src: url("./roboto-v51-cyrillic.woff2") format('woff2');
|
|
20
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
21
|
+
}
|
|
22
|
+
/* greek-ext */
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Roboto';
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 400 500;
|
|
27
|
+
font-stretch: 100%;
|
|
28
|
+
font-display: optional;
|
|
29
|
+
src: url("./roboto-v51-greek-ext.woff2") format('woff2');
|
|
30
|
+
unicode-range: U+1F00-1FFF;
|
|
31
|
+
}
|
|
32
|
+
/* greek */
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: 'Roboto';
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 400 500;
|
|
37
|
+
font-stretch: 100%;
|
|
38
|
+
font-display: optional;
|
|
39
|
+
src: url("./roboto-v51-greek.woff2") format('woff2');
|
|
40
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
41
|
+
}
|
|
42
|
+
/* math */
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: 'Roboto';
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 400 500;
|
|
47
|
+
font-stretch: 100%;
|
|
48
|
+
font-display: optional;
|
|
49
|
+
src: url("./roboto-v51-math.woff2") format('woff2');
|
|
50
|
+
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
|
|
51
|
+
}
|
|
52
|
+
/* symbols */
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: 'Roboto';
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400 500;
|
|
57
|
+
font-stretch: 100%;
|
|
58
|
+
font-display: optional;
|
|
59
|
+
src: url("./roboto-v51-symbols.woff2") format('woff2');
|
|
60
|
+
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
|
|
61
|
+
}
|
|
62
|
+
/* vietnamese */
|
|
63
|
+
@font-face {
|
|
64
|
+
font-family: 'Roboto';
|
|
65
|
+
font-style: normal;
|
|
66
|
+
font-weight: 400 500;
|
|
67
|
+
font-stretch: 100%;
|
|
68
|
+
font-display: optional;
|
|
69
|
+
src: url("./roboto-v51-vietnamese.woff2") format('woff2');
|
|
70
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
71
|
+
}
|
|
72
|
+
/* latin-ext */
|
|
73
|
+
@font-face {
|
|
74
|
+
font-family: 'Roboto';
|
|
75
|
+
font-style: normal;
|
|
76
|
+
font-weight: 400 500;
|
|
77
|
+
font-stretch: 100%;
|
|
78
|
+
font-display: optional;
|
|
79
|
+
src: url("./roboto-v51-latin-ext.woff2") format('woff2');
|
|
80
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
81
|
+
}
|
|
82
|
+
/* latin */
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: 'Roboto';
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-weight: 400 500;
|
|
87
|
+
font-stretch: 100%;
|
|
88
|
+
font-display: optional;
|
|
89
|
+
src: url("./roboto-v51-latin.woff2") format('woff2');
|
|
90
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
91
|
+
}
|
package/styles/video-chat.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "./fonts/roboto.css";
|
|
2
|
+
|
|
1
3
|
/* Scoped immersive VideoChat interface. Import this stylesheet once.
|
|
2
4
|
* All tokens, element rules and animation names belong to the component.
|
|
3
5
|
* Override --vs-chat-height / --vs-chat-min-height to fit an embedded host. */
|
|
@@ -771,7 +773,6 @@
|
|
|
771
773
|
@media (max-width: 700px) {
|
|
772
774
|
.vanillasky-video-chat .chrome .nav-label { display: none; }
|
|
773
775
|
.vanillasky-video-chat .chrome .round:has(.nav-label), .vanillasky-video-chat .chrome .pill:has(.nav-label) { width: 44px; padding: 0; }
|
|
774
|
-
.vanillasky-video-chat .chrome > .group:first-of-type { margin-left: auto; }
|
|
775
776
|
}
|
|
776
777
|
|
|
777
778
|
.vanillasky-video-chat .chrome .session-brand { flex: 1 1 auto; }
|
|
@@ -1039,6 +1040,10 @@
|
|
|
1039
1040
|
opacity: 0;
|
|
1040
1041
|
pointer-events: none;
|
|
1041
1042
|
}
|
|
1043
|
+
/* Native hover must keep controls interactive even between pointer events
|
|
1044
|
+
and the idle timer's React update. Hidden pointer events otherwise expose
|
|
1045
|
+
the underlying scene to WebKit's hit testing. */
|
|
1046
|
+
.vanillasky-video-chat .line-row:hover .caption-actions,
|
|
1042
1047
|
.vanillasky-video-chat .line-row:focus-within .caption-actions,
|
|
1043
1048
|
.vanillasky-video-chat .caption-actions:focus-within {
|
|
1044
1049
|
opacity: 1;
|
|
@@ -1048,27 +1053,6 @@
|
|
|
1048
1053
|
@media (max-width: 700px) {
|
|
1049
1054
|
.vanillasky-video-chat .sheet-popover { max-height: calc(100% - 102px); }
|
|
1050
1055
|
}
|
|
1051
|
-
|
|
1052
|
-
/* A still from the current response softly fills unused aspect-ratio space.
|
|
1053
|
-
Frame is mounted paused by the component; only the main player animates. */
|
|
1054
|
-
.vanillasky-video-chat .stage > .ambient-media {
|
|
1055
|
-
inset: -40px;
|
|
1056
|
-
width: calc(100% + 80px);
|
|
1057
|
-
height: calc(100% + 80px);
|
|
1058
|
-
display: block;
|
|
1059
|
-
overflow: hidden;
|
|
1060
|
-
z-index: 0;
|
|
1061
|
-
background: var(--vs-media-ground);
|
|
1062
|
-
opacity: 1;
|
|
1063
|
-
pointer-events: none;
|
|
1064
|
-
}
|
|
1065
|
-
.vanillasky-video-chat .ambient-media .frame-media {
|
|
1066
|
-
max-width: none;
|
|
1067
|
-
max-height: none;
|
|
1068
|
-
object-fit: cover;
|
|
1069
|
-
filter: blur(32px) saturate(.85);
|
|
1070
|
-
opacity: .62;
|
|
1071
|
-
}
|
|
1072
1056
|
.vanillasky-video-chat .opening-wash {
|
|
1073
1057
|
position: absolute;
|
|
1074
1058
|
inset: 0;
|
|
@@ -1093,7 +1077,6 @@
|
|
|
1093
1077
|
backdrop-filter: none;
|
|
1094
1078
|
-webkit-backdrop-filter: none;
|
|
1095
1079
|
}
|
|
1096
|
-
.vanillasky-video-chat .stage > .ambient-media { display: none; }
|
|
1097
1080
|
}
|
|
1098
1081
|
|
|
1099
1082
|
@media (pointer: coarse) {
|
|
@@ -1131,3 +1114,27 @@
|
|
|
1131
1114
|
.vanillasky-video-chat .recovery-notice .round { flex: 0 0 44px; width: 44px; height: 44px; }
|
|
1132
1115
|
|
|
1133
1116
|
.vanillasky-video-chat .session-new { margin-bottom: 20px; background: var(--vs-surface-hover); border-color: rgb(221 224 255 / 12%); }
|
|
1117
|
+
|
|
1118
|
+
/* The floating toolbar and subtitle row share one uninterrupted hover target. */
|
|
1119
|
+
.vanillasky-video-chat .caption-actions::after {
|
|
1120
|
+
content: "";
|
|
1121
|
+
position: absolute;
|
|
1122
|
+
left: 0;
|
|
1123
|
+
right: 0;
|
|
1124
|
+
top: 100%;
|
|
1125
|
+
height: 7px;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.vanillasky-video-chat .opening-chapter {
|
|
1129
|
+
position: absolute;
|
|
1130
|
+
inset: 0;
|
|
1131
|
+
background: #000;
|
|
1132
|
+
}
|
|
1133
|
+
.vanillasky-video-chat .opening-chapter [data-title-composition="centered"] {
|
|
1134
|
+
animation: vanillasky-video-chat-fade-in 800ms ease both;
|
|
1135
|
+
}
|
|
1136
|
+
.vanillasky-video-chat .line-row[data-opening-copy="true"] {
|
|
1137
|
+
background: transparent;
|
|
1138
|
+
backdrop-filter: none;
|
|
1139
|
+
-webkit-backdrop-filter: none;
|
|
1140
|
+
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConfettiLayer
|
|
3
|
-
} from "./chunk-CJ7F2CE6.js";
|
|
4
|
-
import "./chunk-QAAO7OAY.js";
|
|
5
|
-
import {
|
|
6
|
-
TemplateText
|
|
7
|
-
} from "./chunk-YJJC4N4D.js";
|
|
8
|
-
import "./chunk-L5BTTCZV.js";
|
|
9
|
-
import {
|
|
10
|
-
BrandGradientOverlay
|
|
11
|
-
} from "./chunk-W3VDIBGR.js";
|
|
12
|
-
import "./chunk-XTOXFMLM.js";
|
|
13
|
-
import {
|
|
14
|
-
resolveTokens
|
|
15
|
-
} from "./chunk-XWWLKRNU.js";
|
|
16
|
-
|
|
17
|
-
// src/visual-system/scene-templates/bg-confetti.tsx
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
var BgConfettiTemplate = ({
|
|
20
|
-
variables,
|
|
21
|
-
style,
|
|
22
|
-
progress,
|
|
23
|
-
motionProgress = progress,
|
|
24
|
-
beatIntensity,
|
|
25
|
-
width,
|
|
26
|
-
height,
|
|
27
|
-
textArchetype,
|
|
28
|
-
safeZone,
|
|
29
|
-
sceneDuration
|
|
30
|
-
}) => {
|
|
31
|
-
const { background, foreground, font } = resolveTokens(style);
|
|
32
|
-
const textColor = foreground;
|
|
33
|
-
return /* @__PURE__ */ jsxs(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
style: {
|
|
37
|
-
width,
|
|
38
|
-
height,
|
|
39
|
-
backgroundColor: "var(--vanillasky-template-surface, #000)",
|
|
40
|
-
position: "relative",
|
|
41
|
-
overflow: "hidden",
|
|
42
|
-
fontFamily: font
|
|
43
|
-
},
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ jsx(
|
|
46
|
-
BrandGradientOverlay,
|
|
47
|
-
{
|
|
48
|
-
style,
|
|
49
|
-
progress,
|
|
50
|
-
sceneDuration,
|
|
51
|
-
seed: String(variables.texts || "").split("").reduce((acc, c) => acc + c.charCodeAt(0), 0)
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
/* @__PURE__ */ jsx(
|
|
55
|
-
ConfettiLayer,
|
|
56
|
-
{
|
|
57
|
-
progress: motionProgress,
|
|
58
|
-
width,
|
|
59
|
-
height,
|
|
60
|
-
beatIntensity,
|
|
61
|
-
bgColor: background.type === "solid" ? background.color : background.colors[1]
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
65
|
-
TemplateText,
|
|
66
|
-
{
|
|
67
|
-
motionProgress,
|
|
68
|
-
typeTreatment: resolveTokens(style).preset.type,
|
|
69
|
-
archetype: textArchetype ?? "subtle",
|
|
70
|
-
text: String(variables.texts ?? ""),
|
|
71
|
-
progress,
|
|
72
|
-
sceneDuration: sceneDuration ?? 3,
|
|
73
|
-
width,
|
|
74
|
-
height,
|
|
75
|
-
position: "center",
|
|
76
|
-
sizeRole: "headline",
|
|
77
|
-
safeZone,
|
|
78
|
-
font,
|
|
79
|
-
color: textColor,
|
|
80
|
-
beatIntensity
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
BgConfettiTemplate
|
|
89
|
-
};
|