@gem-sdk/components 2.0.0-dev.537 → 2.0.0-dev.539
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 +7 -2
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +1 -0
- 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 +7 -2
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +1 -0
- 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/dist/types/index.d.ts +1 -0
- 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
|
@@ -20,238 +20,224 @@ const VideoSettings = [
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
id: '
|
|
24
|
-
type: '
|
|
25
|
-
label: 'Video',
|
|
26
|
-
|
|
23
|
+
id: 'type',
|
|
24
|
+
type: 'select',
|
|
25
|
+
label: 'Video Type',
|
|
26
|
+
options: [
|
|
27
27
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
label: 'Video Type',
|
|
31
|
-
options: [
|
|
32
|
-
{
|
|
33
|
-
label: 'YouTube',
|
|
34
|
-
value: 'youtube'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: 'Vimeo',
|
|
38
|
-
value: 'vimeo'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: 'Video hosting',
|
|
42
|
-
value: 'html5'
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
default: 'html5'
|
|
28
|
+
label: 'YouTube',
|
|
29
|
+
value: 'youtube'
|
|
46
30
|
},
|
|
47
31
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
label: 'Youtube Link',
|
|
51
|
-
default: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
|
|
52
|
-
placeholder: 'E.g. gempages.net',
|
|
53
|
-
hide: true,
|
|
54
|
-
action: {
|
|
55
|
-
clear: true
|
|
56
|
-
},
|
|
57
|
-
actionChangeControls: [
|
|
58
|
-
{
|
|
59
|
-
controlID: 'loopVideo',
|
|
60
|
-
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
61
|
-
newValue: true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
controlID: 'autoplay',
|
|
65
|
-
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
66
|
-
newValue: true
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
controlID: 'controls',
|
|
70
|
-
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
71
|
-
newValue: false
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
controlID: 'mute',
|
|
75
|
-
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
76
|
-
newValue: false
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
controlID: 'lazy',
|
|
80
|
-
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
81
|
-
newValue: false
|
|
82
|
-
}
|
|
83
|
-
]
|
|
32
|
+
label: 'Vimeo',
|
|
33
|
+
value: 'vimeo'
|
|
84
34
|
},
|
|
85
35
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
36
|
+
label: 'Video hosting',
|
|
37
|
+
value: 'html5'
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
default: 'html5'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'youtubeUrl',
|
|
44
|
+
type: 'input',
|
|
45
|
+
label: 'Youtube Link',
|
|
46
|
+
default: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
|
|
47
|
+
placeholder: 'E.g. gempages.net',
|
|
48
|
+
hide: true,
|
|
49
|
+
action: {
|
|
50
|
+
clear: true
|
|
51
|
+
},
|
|
52
|
+
actionChangeControls: [
|
|
53
|
+
{
|
|
54
|
+
controlID: 'loopVideo',
|
|
55
|
+
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
56
|
+
newValue: true
|
|
95
57
|
},
|
|
96
58
|
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
default: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
101
|
-
placeholder: 'E.g. gempages.net',
|
|
102
|
-
hide: true,
|
|
103
|
-
action: {
|
|
104
|
-
clear: true
|
|
105
|
-
}
|
|
59
|
+
controlID: 'autoplay',
|
|
60
|
+
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
61
|
+
newValue: true
|
|
106
62
|
},
|
|
107
63
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
64
|
+
controlID: 'controls',
|
|
65
|
+
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
66
|
+
newValue: false
|
|
111
67
|
},
|
|
112
68
|
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
69
|
+
controlID: 'mute',
|
|
70
|
+
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
71
|
+
newValue: false
|
|
116
72
|
},
|
|
117
73
|
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
74
|
+
controlID: 'lazy',
|
|
75
|
+
condition: `${youtubeShortsRegex}.test(youtubeUrl)`,
|
|
76
|
+
newValue: false
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'vimeoUrl',
|
|
82
|
+
type: 'input',
|
|
83
|
+
label: 'Vimeo Link',
|
|
84
|
+
default: 'https://vimeo.com/347119375',
|
|
85
|
+
placeholder: 'E.g. gempages.net',
|
|
86
|
+
hide: true,
|
|
87
|
+
action: {
|
|
88
|
+
clear: true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'html5Url',
|
|
93
|
+
type: 'input',
|
|
94
|
+
label: 'HTML5 Video Link',
|
|
95
|
+
default: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
96
|
+
placeholder: 'E.g. gempages.net',
|
|
97
|
+
hide: true,
|
|
98
|
+
action: {
|
|
99
|
+
clear: true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'notes',
|
|
104
|
+
type: 'notes',
|
|
105
|
+
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>`
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'poster',
|
|
109
|
+
type: 'image',
|
|
110
|
+
label: 'Video Poster'
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: 'preload',
|
|
114
|
+
type: 'toggle',
|
|
115
|
+
label: 'Preload',
|
|
116
|
+
default: false
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'aspectRatio',
|
|
120
|
+
type: 'select',
|
|
121
|
+
label: 'Ratio',
|
|
122
|
+
options: [
|
|
123
123
|
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
label: 'Ratio',
|
|
127
|
-
options: [
|
|
128
|
-
{
|
|
129
|
-
label: 'Original',
|
|
130
|
-
value: 'auto'
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
label: 'Square',
|
|
134
|
-
value: '1/1'
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: '3:2',
|
|
138
|
-
value: '3/2'
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
label: '4:3',
|
|
142
|
-
value: '4/3'
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
label: '16:9',
|
|
146
|
-
value: '16/9'
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
label: '21:9',
|
|
150
|
-
value: '21/9'
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
label: '2:3',
|
|
154
|
-
value: '2/3'
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
label: '3:4',
|
|
158
|
-
value: '3/4'
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
label: '9:16',
|
|
162
|
-
value: '9/16'
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
label: 'Custom',
|
|
166
|
-
value: 'custom'
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
devices: {
|
|
170
|
-
desktop: {
|
|
171
|
-
default: '16/9'
|
|
172
|
-
}
|
|
173
|
-
}
|
|
124
|
+
label: 'Original',
|
|
125
|
+
value: 'auto'
|
|
174
126
|
},
|
|
175
127
|
{
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
min: 0,
|
|
179
|
-
label: 'Aspect Width',
|
|
180
|
-
hide: true,
|
|
181
|
-
devices: {
|
|
182
|
-
desktop: {
|
|
183
|
-
default: 16
|
|
184
|
-
}
|
|
185
|
-
}
|
|
128
|
+
label: 'Square',
|
|
129
|
+
value: '1/1'
|
|
186
130
|
},
|
|
187
131
|
{
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
min: 1,
|
|
191
|
-
label: 'Aspect Height',
|
|
192
|
-
hide: true,
|
|
193
|
-
devices: {
|
|
194
|
-
desktop: {
|
|
195
|
-
default: 9
|
|
196
|
-
}
|
|
197
|
-
}
|
|
132
|
+
label: '3:2',
|
|
133
|
+
value: '3/2'
|
|
198
134
|
},
|
|
199
135
|
{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
label: 'Start time',
|
|
203
|
-
placeholder: 'mm:ss',
|
|
204
|
-
info: 'Start video at xx seconds',
|
|
205
|
-
hide: true
|
|
136
|
+
label: '4:3',
|
|
137
|
+
value: '4/3'
|
|
206
138
|
},
|
|
207
139
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
placeholder: 'mm:ss',
|
|
212
|
-
info: 'End video at xx seconds',
|
|
213
|
-
hide: true
|
|
214
|
-
}
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
id: 'option-group',
|
|
219
|
-
type: 'group',
|
|
220
|
-
label: 'Options',
|
|
221
|
-
controls: [
|
|
140
|
+
label: '16:9',
|
|
141
|
+
value: '16/9'
|
|
142
|
+
},
|
|
222
143
|
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
type: 'toggle',
|
|
226
|
-
default: false
|
|
144
|
+
label: '21:9',
|
|
145
|
+
value: '21/9'
|
|
227
146
|
},
|
|
228
147
|
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
type: 'toggle',
|
|
232
|
-
default: false
|
|
148
|
+
label: '2:3',
|
|
149
|
+
value: '2/3'
|
|
233
150
|
},
|
|
234
151
|
{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
type: 'toggle',
|
|
238
|
-
default: false
|
|
152
|
+
label: '3:4',
|
|
153
|
+
value: '3/4'
|
|
239
154
|
},
|
|
240
155
|
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
type: 'toggle',
|
|
244
|
-
default: true,
|
|
245
|
-
info: 'Player controls display in the player'
|
|
156
|
+
label: '9:16',
|
|
157
|
+
value: '9/16'
|
|
246
158
|
},
|
|
247
159
|
{
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
type: 'toggle',
|
|
251
|
-
default: true,
|
|
252
|
-
info: 'Optimize for pagespeed loading time'
|
|
160
|
+
label: 'Custom',
|
|
161
|
+
value: 'custom'
|
|
253
162
|
}
|
|
254
|
-
]
|
|
163
|
+
],
|
|
164
|
+
devices: {
|
|
165
|
+
desktop: {
|
|
166
|
+
default: '16/9'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'width',
|
|
172
|
+
type: 'input:stepper',
|
|
173
|
+
min: 0,
|
|
174
|
+
label: 'Aspect Width',
|
|
175
|
+
hide: true,
|
|
176
|
+
devices: {
|
|
177
|
+
desktop: {
|
|
178
|
+
default: 16
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: 'height',
|
|
184
|
+
type: 'input:stepper',
|
|
185
|
+
min: 1,
|
|
186
|
+
label: 'Aspect Height',
|
|
187
|
+
hide: true,
|
|
188
|
+
devices: {
|
|
189
|
+
desktop: {
|
|
190
|
+
default: 9
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'startTime',
|
|
196
|
+
type: 'input',
|
|
197
|
+
label: 'Start time',
|
|
198
|
+
placeholder: 'mm:ss',
|
|
199
|
+
info: 'Start video at xx seconds',
|
|
200
|
+
hide: true
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: 'endTime',
|
|
204
|
+
type: 'input',
|
|
205
|
+
label: 'End time',
|
|
206
|
+
placeholder: 'mm:ss',
|
|
207
|
+
info: 'End video at xx seconds',
|
|
208
|
+
hide: true
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: 'autoplay',
|
|
212
|
+
label: 'Autoplay',
|
|
213
|
+
type: 'toggle',
|
|
214
|
+
default: false
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: 'mute',
|
|
218
|
+
label: 'Enable Sound',
|
|
219
|
+
type: 'toggle',
|
|
220
|
+
default: false
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: 'loopVideo',
|
|
224
|
+
label: 'Loop Video',
|
|
225
|
+
type: 'toggle',
|
|
226
|
+
default: false
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: 'controls',
|
|
230
|
+
label: 'Show Control Bar',
|
|
231
|
+
type: 'toggle',
|
|
232
|
+
default: true,
|
|
233
|
+
info: 'Player controls display in the player'
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: 'lazy',
|
|
237
|
+
label: 'Lazy load',
|
|
238
|
+
type: 'toggle',
|
|
239
|
+
default: true,
|
|
240
|
+
info: 'Optimize for pagespeed loading time'
|
|
255
241
|
}
|
|
256
242
|
]
|
|
257
243
|
}
|
|
@@ -6,7 +6,7 @@ const SettingUIV2 = [
|
|
|
6
6
|
controls: [
|
|
7
7
|
{
|
|
8
8
|
label: {
|
|
9
|
-
en: '
|
|
9
|
+
en: 'Type'
|
|
10
10
|
},
|
|
11
11
|
setting: {
|
|
12
12
|
id: 'type'
|
|
@@ -103,7 +103,7 @@ const SettingUIV2 = [
|
|
|
103
103
|
controls: [
|
|
104
104
|
{
|
|
105
105
|
label: {
|
|
106
|
-
en: '
|
|
106
|
+
en: 'Control bar'
|
|
107
107
|
},
|
|
108
108
|
setting: {
|
|
109
109
|
id: 'controls'
|
|
@@ -116,6 +116,14 @@ const SettingUIV2 = [
|
|
|
116
116
|
setting: {
|
|
117
117
|
id: 'mute'
|
|
118
118
|
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: {
|
|
122
|
+
en: 'Autoplay'
|
|
123
|
+
},
|
|
124
|
+
setting: {
|
|
125
|
+
id: 'autoplay'
|
|
126
|
+
}
|
|
119
127
|
}
|
|
120
128
|
],
|
|
121
129
|
moreSettings: {
|
|
@@ -123,10 +131,10 @@ const SettingUIV2 = [
|
|
|
123
131
|
controls: [
|
|
124
132
|
{
|
|
125
133
|
label: {
|
|
126
|
-
en: '
|
|
134
|
+
en: 'Lazy load'
|
|
127
135
|
},
|
|
128
136
|
setting: {
|
|
129
|
-
id: '
|
|
137
|
+
id: 'lazy'
|
|
130
138
|
}
|
|
131
139
|
},
|
|
132
140
|
{
|
|
@@ -136,14 +144,6 @@ const SettingUIV2 = [
|
|
|
136
144
|
setting: {
|
|
137
145
|
id: 'loopVideo'
|
|
138
146
|
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
label: {
|
|
142
|
-
en: 'Lazy load'
|
|
143
|
-
},
|
|
144
|
-
setting: {
|
|
145
|
-
id: 'lazy'
|
|
146
|
-
}
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
149
|
}
|
|
@@ -155,7 +155,7 @@ const SettingUIV2 = [
|
|
|
155
155
|
controls: [
|
|
156
156
|
{
|
|
157
157
|
label: {
|
|
158
|
-
en: '
|
|
158
|
+
en: 'Frame'
|
|
159
159
|
},
|
|
160
160
|
setting: {
|
|
161
161
|
id: 'aspectRatio'
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4043,6 +4043,7 @@ type FileUploadProps = BasePropsWrap<Setting, Style> & {
|
|
|
4043
4043
|
};
|
|
4044
4044
|
|
|
4045
4045
|
type ProductBundleDiscountProps = BasePropsWrap<{
|
|
4046
|
+
enableDisplayCondition?: boolean;
|
|
4046
4047
|
childItem?: string[];
|
|
4047
4048
|
hideNoDiscountItem?: boolean;
|
|
4048
4049
|
hasPreSelectItem?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.539",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.538",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.535",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|
|
File without changes
|
|
File without changes
|