@gem-sdk/components 2.0.0-dev.537 → 2.0.0-dev.538
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/cjs/carousel/setting/configs/settingV2.js +16 -2
- package/dist/cjs/carousel/setting/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -2
- package/dist/cjs/video/components/HTML5Embed.js +2 -2
- package/dist/cjs/video/components/LiteVimeoEmbed.js +2 -2
- package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +2 -2
- package/dist/cjs/video/components/LiteYouTubeEmbed.js +5 -5
- package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +2 -2
- package/dist/cjs/video/components/Video.js +8 -8
- package/dist/cjs/video/components/Video.liquid.js +10 -9
- package/dist/cjs/video/setting/configs/settings.js +186 -200
- package/dist/cjs/video/setting/configs/uiV2.js +13 -13
- package/dist/esm/carousel/setting/configs/settingV2.js +16 -2
- package/dist/esm/carousel/setting/configs/uiV2.js +1 -1
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +2 -2
- package/dist/esm/video/components/HTML5Embed.js +1 -1
- package/dist/esm/video/components/LiteVimeoEmbed.js +1 -1
- package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +1 -1
- package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
- package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +1 -1
- package/dist/esm/video/components/Video.js +1 -1
- package/dist/esm/video/components/Video.liquid.js +2 -1
- package/dist/esm/video/setting/configs/settings.js +186 -200
- package/dist/esm/video/setting/configs/uiV2.js +13 -13
- package/package.json +2 -2
- /package/dist/cjs/video/components/common/{common.js → index.js} +0 -0
- /package/dist/esm/video/components/common/{common.js → index.js} +0 -0
|
@@ -22,238 +22,224 @@ const VideoSettings = [
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
id: '
|
|
26
|
-
type: '
|
|
27
|
-
label: 'Video',
|
|
28
|
-
|
|
25
|
+
id: 'type',
|
|
26
|
+
type: 'select',
|
|
27
|
+
label: 'Video Type',
|
|
28
|
+
options: [
|
|
29
29
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
label: 'Video Type',
|
|
33
|
-
options: [
|
|
34
|
-
{
|
|
35
|
-
label: 'YouTube',
|
|
36
|
-
value: 'youtube'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: 'Vimeo',
|
|
40
|
-
value: 'vimeo'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Video hosting',
|
|
44
|
-
value: 'html5'
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
default: 'html5'
|
|
30
|
+
label: 'YouTube',
|
|
31
|
+
value: 'youtube'
|
|
48
32
|
},
|
|
49
33
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
label: 'Youtube Link',
|
|
53
|
-
default: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
|
|
54
|
-
placeholder: 'E.g. gempages.net',
|
|
55
|
-
hide: true,
|
|
56
|
-
action: {
|
|
57
|
-
clear: true
|
|
58
|
-
},
|
|
59
|
-
actionChangeControls: [
|
|
60
|
-
{
|
|
61
|
-
controlID: 'loopVideo',
|
|
62
|
-
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
63
|
-
newValue: true
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
controlID: 'autoplay',
|
|
67
|
-
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
68
|
-
newValue: true
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
controlID: 'controls',
|
|
72
|
-
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
73
|
-
newValue: false
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
controlID: 'mute',
|
|
77
|
-
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
78
|
-
newValue: false
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
controlID: 'lazy',
|
|
82
|
-
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
83
|
-
newValue: false
|
|
84
|
-
}
|
|
85
|
-
]
|
|
34
|
+
label: 'Vimeo',
|
|
35
|
+
value: 'vimeo'
|
|
86
36
|
},
|
|
87
37
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
38
|
+
label: 'Video hosting',
|
|
39
|
+
value: 'html5'
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
default: 'html5'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'youtubeUrl',
|
|
46
|
+
type: 'input',
|
|
47
|
+
label: 'Youtube Link',
|
|
48
|
+
default: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
|
|
49
|
+
placeholder: 'E.g. gempages.net',
|
|
50
|
+
hide: true,
|
|
51
|
+
action: {
|
|
52
|
+
clear: true
|
|
53
|
+
},
|
|
54
|
+
actionChangeControls: [
|
|
55
|
+
{
|
|
56
|
+
controlID: 'loopVideo',
|
|
57
|
+
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
58
|
+
newValue: true
|
|
97
59
|
},
|
|
98
60
|
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
default: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
103
|
-
placeholder: 'E.g. gempages.net',
|
|
104
|
-
hide: true,
|
|
105
|
-
action: {
|
|
106
|
-
clear: true
|
|
107
|
-
}
|
|
61
|
+
controlID: 'autoplay',
|
|
62
|
+
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
63
|
+
newValue: true
|
|
108
64
|
},
|
|
109
65
|
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
66
|
+
controlID: 'controls',
|
|
67
|
+
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
68
|
+
newValue: false
|
|
113
69
|
},
|
|
114
70
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
71
|
+
controlID: 'mute',
|
|
72
|
+
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
73
|
+
newValue: false
|
|
118
74
|
},
|
|
119
75
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
76
|
+
controlID: 'lazy',
|
|
77
|
+
condition: `${helpers.youtubeShortsRegex}.test(youtubeUrl)`,
|
|
78
|
+
newValue: false
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'vimeoUrl',
|
|
84
|
+
type: 'input',
|
|
85
|
+
label: 'Vimeo Link',
|
|
86
|
+
default: 'https://vimeo.com/347119375',
|
|
87
|
+
placeholder: 'E.g. gempages.net',
|
|
88
|
+
hide: true,
|
|
89
|
+
action: {
|
|
90
|
+
clear: true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'html5Url',
|
|
95
|
+
type: 'input',
|
|
96
|
+
label: 'HTML5 Video Link',
|
|
97
|
+
default: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
98
|
+
placeholder: 'E.g. gempages.net',
|
|
99
|
+
hide: true,
|
|
100
|
+
action: {
|
|
101
|
+
clear: true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 'notes',
|
|
106
|
+
type: 'notes',
|
|
107
|
+
default: `You can upload video to a hosting server e.g Shopify. <a class="no-underline text-[#8AA4FF] font-medium leading-5" target="_blank" href="https://help.gempages.net/articles/version-7-video-element#video-url">Learn more</a>`
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'poster',
|
|
111
|
+
type: 'image',
|
|
112
|
+
label: 'Video Poster'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 'preload',
|
|
116
|
+
type: 'toggle',
|
|
117
|
+
label: 'Preload',
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 'aspectRatio',
|
|
122
|
+
type: 'select',
|
|
123
|
+
label: 'Ratio',
|
|
124
|
+
options: [
|
|
125
125
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
label: 'Ratio',
|
|
129
|
-
options: [
|
|
130
|
-
{
|
|
131
|
-
label: 'Original',
|
|
132
|
-
value: 'auto'
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
label: 'Square',
|
|
136
|
-
value: '1/1'
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: '3:2',
|
|
140
|
-
value: '3/2'
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
label: '4:3',
|
|
144
|
-
value: '4/3'
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
label: '16:9',
|
|
148
|
-
value: '16/9'
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
label: '21:9',
|
|
152
|
-
value: '21/9'
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: '2:3',
|
|
156
|
-
value: '2/3'
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
label: '3:4',
|
|
160
|
-
value: '3/4'
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
label: '9:16',
|
|
164
|
-
value: '9/16'
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: 'Custom',
|
|
168
|
-
value: 'custom'
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
devices: {
|
|
172
|
-
desktop: {
|
|
173
|
-
default: '16/9'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
126
|
+
label: 'Original',
|
|
127
|
+
value: 'auto'
|
|
176
128
|
},
|
|
177
129
|
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
min: 0,
|
|
181
|
-
label: 'Aspect Width',
|
|
182
|
-
hide: true,
|
|
183
|
-
devices: {
|
|
184
|
-
desktop: {
|
|
185
|
-
default: 16
|
|
186
|
-
}
|
|
187
|
-
}
|
|
130
|
+
label: 'Square',
|
|
131
|
+
value: '1/1'
|
|
188
132
|
},
|
|
189
133
|
{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
min: 1,
|
|
193
|
-
label: 'Aspect Height',
|
|
194
|
-
hide: true,
|
|
195
|
-
devices: {
|
|
196
|
-
desktop: {
|
|
197
|
-
default: 9
|
|
198
|
-
}
|
|
199
|
-
}
|
|
134
|
+
label: '3:2',
|
|
135
|
+
value: '3/2'
|
|
200
136
|
},
|
|
201
137
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
label: 'Start time',
|
|
205
|
-
placeholder: 'mm:ss',
|
|
206
|
-
info: 'Start video at xx seconds',
|
|
207
|
-
hide: true
|
|
138
|
+
label: '4:3',
|
|
139
|
+
value: '4/3'
|
|
208
140
|
},
|
|
209
141
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
placeholder: 'mm:ss',
|
|
214
|
-
info: 'End video at xx seconds',
|
|
215
|
-
hide: true
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
id: 'option-group',
|
|
221
|
-
type: 'group',
|
|
222
|
-
label: 'Options',
|
|
223
|
-
controls: [
|
|
142
|
+
label: '16:9',
|
|
143
|
+
value: '16/9'
|
|
144
|
+
},
|
|
224
145
|
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
type: 'toggle',
|
|
228
|
-
default: false
|
|
146
|
+
label: '21:9',
|
|
147
|
+
value: '21/9'
|
|
229
148
|
},
|
|
230
149
|
{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
type: 'toggle',
|
|
234
|
-
default: false
|
|
150
|
+
label: '2:3',
|
|
151
|
+
value: '2/3'
|
|
235
152
|
},
|
|
236
153
|
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
type: 'toggle',
|
|
240
|
-
default: false
|
|
154
|
+
label: '3:4',
|
|
155
|
+
value: '3/4'
|
|
241
156
|
},
|
|
242
157
|
{
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
type: 'toggle',
|
|
246
|
-
default: true,
|
|
247
|
-
info: 'Player controls display in the player'
|
|
158
|
+
label: '9:16',
|
|
159
|
+
value: '9/16'
|
|
248
160
|
},
|
|
249
161
|
{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
type: 'toggle',
|
|
253
|
-
default: true,
|
|
254
|
-
info: 'Optimize for pagespeed loading time'
|
|
162
|
+
label: 'Custom',
|
|
163
|
+
value: 'custom'
|
|
255
164
|
}
|
|
256
|
-
]
|
|
165
|
+
],
|
|
166
|
+
devices: {
|
|
167
|
+
desktop: {
|
|
168
|
+
default: '16/9'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: 'width',
|
|
174
|
+
type: 'input:stepper',
|
|
175
|
+
min: 0,
|
|
176
|
+
label: 'Aspect Width',
|
|
177
|
+
hide: true,
|
|
178
|
+
devices: {
|
|
179
|
+
desktop: {
|
|
180
|
+
default: 16
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: 'height',
|
|
186
|
+
type: 'input:stepper',
|
|
187
|
+
min: 1,
|
|
188
|
+
label: 'Aspect Height',
|
|
189
|
+
hide: true,
|
|
190
|
+
devices: {
|
|
191
|
+
desktop: {
|
|
192
|
+
default: 9
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: 'startTime',
|
|
198
|
+
type: 'input',
|
|
199
|
+
label: 'Start time',
|
|
200
|
+
placeholder: 'mm:ss',
|
|
201
|
+
info: 'Start video at xx seconds',
|
|
202
|
+
hide: true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: 'endTime',
|
|
206
|
+
type: 'input',
|
|
207
|
+
label: 'End time',
|
|
208
|
+
placeholder: 'mm:ss',
|
|
209
|
+
info: 'End video at xx seconds',
|
|
210
|
+
hide: true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: 'autoplay',
|
|
214
|
+
label: 'Autoplay',
|
|
215
|
+
type: 'toggle',
|
|
216
|
+
default: false
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'mute',
|
|
220
|
+
label: 'Enable Sound',
|
|
221
|
+
type: 'toggle',
|
|
222
|
+
default: false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: 'loopVideo',
|
|
226
|
+
label: 'Loop Video',
|
|
227
|
+
type: 'toggle',
|
|
228
|
+
default: false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: 'controls',
|
|
232
|
+
label: 'Show Control Bar',
|
|
233
|
+
type: 'toggle',
|
|
234
|
+
default: true,
|
|
235
|
+
info: 'Player controls display in the player'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: 'lazy',
|
|
239
|
+
label: 'Lazy load',
|
|
240
|
+
type: 'toggle',
|
|
241
|
+
default: true,
|
|
242
|
+
info: 'Optimize for pagespeed loading time'
|
|
257
243
|
}
|
|
258
244
|
]
|
|
259
245
|
}
|
|
@@ -8,7 +8,7 @@ const SettingUIV2 = [
|
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
10
|
label: {
|
|
11
|
-
en: '
|
|
11
|
+
en: 'Type'
|
|
12
12
|
},
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'type'
|
|
@@ -105,7 +105,7 @@ const SettingUIV2 = [
|
|
|
105
105
|
controls: [
|
|
106
106
|
{
|
|
107
107
|
label: {
|
|
108
|
-
en: '
|
|
108
|
+
en: 'Control bar'
|
|
109
109
|
},
|
|
110
110
|
setting: {
|
|
111
111
|
id: 'controls'
|
|
@@ -118,6 +118,14 @@ const SettingUIV2 = [
|
|
|
118
118
|
setting: {
|
|
119
119
|
id: 'mute'
|
|
120
120
|
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: {
|
|
124
|
+
en: 'Autoplay'
|
|
125
|
+
},
|
|
126
|
+
setting: {
|
|
127
|
+
id: 'autoplay'
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
130
|
],
|
|
123
131
|
moreSettings: {
|
|
@@ -125,10 +133,10 @@ const SettingUIV2 = [
|
|
|
125
133
|
controls: [
|
|
126
134
|
{
|
|
127
135
|
label: {
|
|
128
|
-
en: '
|
|
136
|
+
en: 'Lazy load'
|
|
129
137
|
},
|
|
130
138
|
setting: {
|
|
131
|
-
id: '
|
|
139
|
+
id: 'lazy'
|
|
132
140
|
}
|
|
133
141
|
},
|
|
134
142
|
{
|
|
@@ -138,14 +146,6 @@ const SettingUIV2 = [
|
|
|
138
146
|
setting: {
|
|
139
147
|
id: 'loopVideo'
|
|
140
148
|
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
label: {
|
|
144
|
-
en: 'Lazy load'
|
|
145
|
-
},
|
|
146
|
-
setting: {
|
|
147
|
-
id: 'lazy'
|
|
148
|
-
}
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
@@ -157,7 +157,7 @@ const SettingUIV2 = [
|
|
|
157
157
|
controls: [
|
|
158
158
|
{
|
|
159
159
|
label: {
|
|
160
|
-
en: '
|
|
160
|
+
en: 'Frame'
|
|
161
161
|
},
|
|
162
162
|
setting: {
|
|
163
163
|
id: 'aspectRatio'
|
|
@@ -379,12 +379,26 @@ const CarouselSettingsV2Setting = [
|
|
|
379
379
|
devices: {
|
|
380
380
|
desktop: {
|
|
381
381
|
default: {
|
|
382
|
-
type: '
|
|
382
|
+
type: 'shadow-1',
|
|
383
383
|
distance: '4px',
|
|
384
384
|
blur: '12px',
|
|
385
385
|
spread: '0px',
|
|
386
386
|
color: 'rgba(0, 0, 0, 0.20)',
|
|
387
|
-
angle: 90
|
|
387
|
+
angle: 90,
|
|
388
|
+
enable: false
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
compoDefaultValue: {
|
|
393
|
+
desktop: {
|
|
394
|
+
default: {
|
|
395
|
+
type: 'shadow-1',
|
|
396
|
+
distance: '4px',
|
|
397
|
+
blur: '4px',
|
|
398
|
+
spread: '0px',
|
|
399
|
+
color: '#121212',
|
|
400
|
+
angle: 45,
|
|
401
|
+
enable: true
|
|
388
402
|
}
|
|
389
403
|
}
|
|
390
404
|
}
|
|
@@ -326,7 +326,7 @@ const SettingUIV2 = [
|
|
|
326
326
|
id: 'sneakPeak'
|
|
327
327
|
},
|
|
328
328
|
fixedValue: 'Styled',
|
|
329
|
-
iconName: '
|
|
329
|
+
iconName: 'gp-sneak-peek-left',
|
|
330
330
|
conditionEnable: 'itemNumber > 1',
|
|
331
331
|
options: {
|
|
332
332
|
disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
|
|
@@ -297,14 +297,14 @@ const config = {
|
|
|
297
297
|
border: 'solid',
|
|
298
298
|
borderWidth: '1px',
|
|
299
299
|
width: '1px 1px 1px 1px',
|
|
300
|
-
color: '
|
|
300
|
+
color: 'line-2',
|
|
301
301
|
isCustom: false
|
|
302
302
|
},
|
|
303
303
|
hover: {
|
|
304
304
|
border: 'solid',
|
|
305
305
|
borderWidth: '1px',
|
|
306
306
|
width: '1px 1px 1px 1px',
|
|
307
|
-
color: '
|
|
307
|
+
color: 'line-1',
|
|
308
308
|
isCustom: false
|
|
309
309
|
},
|
|
310
310
|
active: {
|
|
@@ -3,7 +3,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useEditorMode } from '@gem-sdk/core';
|
|
4
4
|
import NextImage from '../../image/components/NextImage.js';
|
|
5
5
|
import { useLiteHtml5Embed } from '../hooks/useLiteHtml5Embed.js';
|
|
6
|
-
import { listSourceVideoSupport } from './common/
|
|
6
|
+
import { listSourceVideoSupport } from './common/index.js';
|
|
7
7
|
import { createAttr, createClass, createStyle } from '@gem-sdk/system';
|
|
8
8
|
import { getWrapThumbnailClasses, getButtonThumbnailClasses, getImageThumbnailClasses, getVideoYoutubeClasses } from './common/getClasses.js';
|
|
9
9
|
import { getPreloadImageStyle } from './common/getStyle.js';
|
|
@@ -4,7 +4,7 @@ import { useLiteVimeoEmbed } from '../hooks/useLiteVimeoEmbed.js';
|
|
|
4
4
|
import { createStyle, createClass } from '@gem-sdk/system';
|
|
5
5
|
import { getArticleVimeoClasses, getImageVimeoClasses, getButtonVimeoClasses, getIframeVimeoClasses } from './common/getClasses.js';
|
|
6
6
|
import { getIframeVimeoStyle, getArticleVimeoStyle } from './common/getStyle.js';
|
|
7
|
-
import { getVimeoParams } from './common/
|
|
7
|
+
import { getVimeoParams } from './common/index.js';
|
|
8
8
|
import NextImage from '../../image/components/NextImage.js';
|
|
9
9
|
|
|
10
10
|
const LiteVimeoEmbed = (props)=>{
|
|
@@ -3,7 +3,7 @@ import { getSettingPreloadData } from '../../helpers.js';
|
|
|
3
3
|
import { createStateOrContext, createStyle, createClass, If } from '@gem-sdk/system';
|
|
4
4
|
import { getArticleVimeoClasses, getImageVimeoClasses, getButtonVimeoClasses, getIframeVimeoClasses } from './common/getClasses.js';
|
|
5
5
|
import { getIframeVimeoStyle, getArticleVimeoStyle } from './common/getStyle.js';
|
|
6
|
-
import { getVimeoParams } from './common/
|
|
6
|
+
import { getVimeoParams } from './common/index.js';
|
|
7
7
|
import NextImage from '../../image/components/NextImage.liquid.js';
|
|
8
8
|
|
|
9
9
|
const LiteVimeoEmbed = (props)=>{
|
|
@@ -8,7 +8,7 @@ import { createClass, createStyle } from '@gem-sdk/system';
|
|
|
8
8
|
import { getButtonYoutubeClasses, getImageYoutubeClasses, getArticleYoutubeClasses, getIframeYoutubeClasses, getYoutubeContentClasses } from './common/getClasses.js';
|
|
9
9
|
import { getIframeYoutubeStyle, getArticleYoutubeStyle } from './common/getStyle.js';
|
|
10
10
|
import { useLiteYoutubeEmbed } from '../hooks/useLiteYoutubeEmbed.js';
|
|
11
|
-
import { getYoutubeParams } from './common/
|
|
11
|
+
import { getYoutubeParams } from './common/index.js';
|
|
12
12
|
|
|
13
13
|
const LiteYouTubeEmbed = (props)=>{
|
|
14
14
|
const mode = useEditorMode();
|
|
@@ -4,7 +4,7 @@ import { getSettingPreloadData } from '../../helpers.js';
|
|
|
4
4
|
import { createStateOrContext, createClass, createStyle, If } from '@gem-sdk/system';
|
|
5
5
|
import { getButtonYoutubeClasses, getImageYoutubeClasses, getArticleYoutubeClasses, getIframeYoutubeClasses } from './common/getClasses.js';
|
|
6
6
|
import { getIframeYoutubeStyle, getArticleYoutubeStyle } from './common/getStyle.js';
|
|
7
|
-
import { getYoutubeParams } from './common/
|
|
7
|
+
import { getYoutubeParams } from './common/index.js';
|
|
8
8
|
|
|
9
9
|
const LiteYouTubeEmbed = (props)=>{
|
|
10
10
|
const { style, preload, iframeClass, wrapperClass, title } = props;
|
|
@@ -4,7 +4,7 @@ import { useEditorMode } from '@gem-sdk/core';
|
|
|
4
4
|
import dynamic from 'next/dynamic';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { getVimeoVideoId, getYoutubeVideoId, youtubeVideoRegex, parseTimeVideo } from '../helpers/common.js';
|
|
7
|
-
import { getAspectRatioSettings } from './common/
|
|
7
|
+
import { getAspectRatioSettings } from './common/index.js';
|
|
8
8
|
import { createAttr, createStyle, createClass } from '@gem-sdk/system';
|
|
9
9
|
import { getAttr } from './common/getAttr.js';
|
|
10
10
|
import { getStyle, getYoutubeStyle, getVimeoStyle, getHtml5Style } from './common/getStyle.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { template } from '@gem-sdk/core';
|
|
2
2
|
import { getVimeoVideoId, vimeoVideoRegex, getYoutubeVideoId, youtubeVideoRegex, parseTimeVideo } from '../helpers/common.js';
|
|
3
|
-
import { getAspectRatioSettings } from './common/
|
|
3
|
+
import { getAspectRatioSettings } from './common/index.js';
|
|
4
4
|
import { createAttr, createStyle, createClass } from '@gem-sdk/system';
|
|
5
5
|
import { getAttr } from './common/getAttr.js';
|
|
6
6
|
import { getStyle, getYoutubeStyle, getVimeoStyle, getHtml5Style } from './common/getStyle.js';
|
|
@@ -57,6 +57,7 @@ const Video = ({ className, setting, style, builderAttrs, builderProps, advanced
|
|
|
57
57
|
if (endTime) {
|
|
58
58
|
params += `&end=${parseTimeVideo(endTime)}`;
|
|
59
59
|
}
|
|
60
|
+
console.log('autoplay', autoplay);
|
|
60
61
|
return LiteYouTubeEmbed({
|
|
61
62
|
uid: builderProps?.uid,
|
|
62
63
|
id: videoId,
|