-
Notifications
You must be signed in to change notification settings - Fork 2
/
properties.schema
171 lines (171 loc) · 5.09 KB
/
properties.schema
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"globals": {
"ariaRegion": {
"type": "string",
"required": true,
"title": "Vimeo: ARIA region",
"default": "This is a media component which displays a Vimeo video. Select the play / pause button to watch it.",
"inputType": "Text",
"validators": []
},
"skipToTranscript": {
"type": "string",
"required": true,
"default": "Skip to transcript",
"inputType": "Text",
"validators": [],
"translatable": true
}
},
"properties": {
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
},
"instruction": {
"type": "string",
"required": false,
"default": "Select the play button to start the video.",
"inputType": "Text",
"validators": [],
"help": "This is the instruction text",
"translatable": true
},
"_setCompletionOn": {
"type": "string",
"required": true,
"enum": ["inview", "play", "ended"],
"default": "play",
"title": "Set completion of Video on",
"inputType": {"type": "Select", "options":["inview", "play", "ended"]},
"validators": ["required"],
"help": "Defines what media event should trigger completion of this component."
},
"_media": {
"type": "object",
"required": true,
"title": "Media settings",
"properties": {
"_source": {
"type": "string",
"required": true,
"default": "",
"title": "Source URL",
"inputType": "Text",
"validators": [],
"help": "The URL of the Vimeo video you want to be displayed. This can be a direct, or an embed link"
},
"_autoplay": {
"type": "boolean",
"required": false,
"default": false,
"title": "Autoplay",
"inputType": "Checkbox",
"validators": [],
"help": "Specifies whether or not the video will automatically start to play when the player loads (where supported)."
},
"_loop": {
"type": "boolean",
"required": false,
"default": false,
"title": "Loop",
"inputType": "Checkbox",
"validators": [],
"help": "Whether to play the video on a loop or not."
},
"_pauseWhenOffScreen": {
"type": "boolean",
"required": false,
"default": false,
"title": "Pause playback when video is no longer in view.",
"inputType": "Checkbox",
"validators": []
}
}
},
"_transcript": {
"type": "object",
"required": false,
"title": "Transcript Options",
"properties": {
"_setCompletionOnView": {
"type": "boolean",
"required": false,
"default": true,
"title": "Mark this component as complete when transcript is shown",
"inputType": "Checkbox",
"validators": []
},
"_inlineTranscript": {
"type": "boolean",
"required": false,
"default": false,
"title": "Enable inline transcript",
"inputType": "Checkbox",
"validators": []
},
"_externalTranscript": {
"type": "boolean",
"required": false,
"default": false,
"title": "Enable linked transcript file",
"inputType": "Checkbox",
"validators": []
},
"inlineTranscriptButton": {
"type": "string",
"required": false,
"default": "",
"title": "Inline transcript open button label",
"inputType": "Text",
"validators": [],
"translatable": true
},
"inlineTranscriptCloseButton": {
"type": "string",
"required": false,
"default": "",
"title": "Inline transcript close button label",
"inputType": "Text",
"validators": [],
"translatable": true
},
"inlineTranscriptBody": {
"type": "string",
"required": false,
"default": "",
"title": "Inline transcript",
"inputType": "TextArea",
"validators": [],
"help": "Optional text appears below the video",
"translatable": true
},
"transcriptLinkButton": {
"type": "string",
"required": false,
"default": "",
"title": "Linked transcript file button label",
"inputType": "Text",
"validators": [],
"translatable": true
},
"transcriptLink": {
"type": "string",
"required": false,
"default": "",
"title": "Linked transcript file source",
"inputType": "Asset:other",
"validators": [],
"help": "Select a file for the transcript link"
}
}
}
}
}