@stackable-labs/embeddables 2.4.0 → 2.6.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/dist/components.js +2422 -2291
- package/dist/embeddables/src/lib/extensionClassSafelist.d.ts +1 -1
- package/dist/embeddables.css +1 -1
- package/dist/react.js +1896 -1755
- package/dist/stackable-widget.external.js +76 -56
- package/dist/stackable-widget.js +89 -69
- package/dist/ui/src/components/video.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface VideoProps {
|
|
2
|
+
/** Embed provider. Default: 'youtube'. v1 enum is just 'youtube'; widens later. */
|
|
3
|
+
provider?: "youtube";
|
|
4
|
+
/** Show YouTube player controls (play/pause, scrubber, volume). Default: TRUE. Maps to YouTube `controls=0` when false. */
|
|
5
|
+
showControls?: boolean;
|
|
6
|
+
/** Provider video ID (e.g. 'dQw4w9WgXcQ' for YouTube). */
|
|
7
|
+
videoId?: string;
|
|
8
|
+
/** YouTube playlist ID (e.g. 'PLxxxxxxxx'). When set with videoId, the playlist starts from that video. When set alone, embeds the playlist directly. NOT exposed to extensions — primitive-only. */
|
|
9
|
+
playlistId?: string;
|
|
10
|
+
/** Autoplay on render. Browser policy requires muted=true to actually fire (host enforces). Default: false. */
|
|
11
|
+
autoPlay?: boolean;
|
|
12
|
+
/** Render muted. Default: TRUE — silence > surprise audio on third-party sites. */
|
|
13
|
+
muted?: boolean;
|
|
14
|
+
/** Loop playback. Default: false. NOTE: YouTube requires `playlist={videoId}` URL param to also be set for loop to work — handled internally. */
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
/** Iframe `title` attribute (a11y). Falls back to 'Embedded video' when not provided. */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Start time offset in SECONDS. Default: 0 (omit param). Maps to YouTube `start=N`. */
|
|
19
|
+
start?: number;
|
|
20
|
+
/** Opt IN to standard youtube.com cookie domain. Default: false → uses youtube-nocookie.com. */
|
|
21
|
+
allowTracking?: boolean;
|
|
22
|
+
/** Aspect ratio preset. Default: 'horizontal' (16:9). 'auto' applies no aspect class — author must size via className. */
|
|
23
|
+
shape?: "horizontal" | "vertical" | "square" | "auto";
|
|
24
|
+
/** Tailwind classes appended after SHAPE_CLASS via cn() — trailing override wins. */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function Video({ provider: _provider, shape, playlistId, videoId, muted, loop, start, title, autoPlay, showControls, allowTracking, className, }: VideoProps): import("react/jsx-runtime").JSX.Element;
|