-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtex.store-video.d.ts
122 lines (121 loc) · 3.24 KB
/
vtex.store-video.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import { Block } from '.'
declare global {
namespace JSX {
interface IntrinsicElements {
/**
* The Video app allows you to display video assets on your store pages.
*
* @see {@link https://developers.vtex.com/docs/apps/vtex.store-video}
*/
video: Block<{
/**
* Video name for SEO and accessibility.
*
* @default undefined
*/
name?: string
/**
* Video description for SEO and accessibility.
*
* @default undefined
*/
description?: string
/**
* Video URL.
* It can be a `youtube` URL, `vimeo` URL or a self-hosted video URL.
*
* @default undefined
*/
src?: string
/**
* Video type.
*
* @default undefined
*/
type?: string
/**
* Cover image URL to be displayed before the video playback.
*
* @default undefined
*/
poster?: string
/**
* The type of controls.
* It can be `custom-vtex` (only works if the video URL represents a HTML5 player), `native` or `none`.
*
* @default undefined
*/
controlsType?: 'custom-vtex' | 'native' | 'none'
/**
* Whether the video will start automatically after loaded (`true`) or not (`false`).
* Note that if the value is `true`, the muted property will automatically be setted to `true`.
*
* @default false
*/
autoPlay?: boolean
/**
* Whether the video will start with the audio on (`false`) or not (`true`).
*
* @default false
*/
muted?: boolean
/**
* Whether the video will run in a loop (`true`) or not (`false`).
*
* @default false
*/
loop?: boolean
/**
* Whether the video will be played inline (`true`) or not (`false`).
*
* @default false
*/
playsInline?: boolean
/**
* The width of the video exhibition area.
* It could be as %(`string`) or pixels (`number`).
*
* @default undefined
*/
width?: number | string
/**
* The height of the video exhibition area.
* It could be as %(`string`) or pixels (`number`).
*
* @default undefined
*/
height?: number | string
/**
* Video play icon for `custom-vtex` controls.
*
* @default "icon-play"
*/
PlayIcon?: string
/**
* Video pause icon for `custom-vtex` controls.
*
* @default "icon-pause"
*/
PauseIcon?: string
/**
* Video volume on icon for `custom-vtex` controls.
*
* @default "icon-volume-on"
*/
VolumeOnIcon?: string
/**
* Video volume off icon for `custom-vtex` controls.
*
* @default "icon-volume-off"
*/
VolumeOffIcon?: string
/**
* Video fullscreen icon for `custom-vtex` controls.
*
* @default "icon-extend"
*/
FullscreenIcon?: string
}>
}
}
}