@gem-sdk/components 2.0.0-dev.451 → 2.0.0-dev.452
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/accordion/setting/configs/settings.js +8 -11
- package/dist/cjs/accordion/setting/configs/uiV2.js +138 -35
- package/dist/cjs/third-party/components/Trustoo.liquid.js +2 -2
- package/dist/esm/accordion/setting/configs/settings.js +8 -11
- package/dist/esm/accordion/setting/configs/uiV2.js +138 -35
- package/dist/esm/third-party/components/Trustoo.liquid.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -304,10 +304,7 @@ const AccordionSettings = [
|
|
|
304
304
|
label: 'Background Color',
|
|
305
305
|
devices: {
|
|
306
306
|
desktop: {
|
|
307
|
-
default:
|
|
308
|
-
type: 'color',
|
|
309
|
-
color: 'transparent'
|
|
310
|
-
}
|
|
307
|
+
default: 'transparent'
|
|
311
308
|
}
|
|
312
309
|
}
|
|
313
310
|
},
|
|
@@ -684,7 +681,12 @@ const AccordionSettings = [
|
|
|
684
681
|
{
|
|
685
682
|
id: 'align',
|
|
686
683
|
label: 'Alignment',
|
|
687
|
-
type: '
|
|
684
|
+
type: 'segment',
|
|
685
|
+
devices: {
|
|
686
|
+
desktop: {
|
|
687
|
+
default: 'center'
|
|
688
|
+
}
|
|
689
|
+
},
|
|
688
690
|
options: [
|
|
689
691
|
{
|
|
690
692
|
label: 'Left',
|
|
@@ -701,12 +703,7 @@ const AccordionSettings = [
|
|
|
701
703
|
value: 'right',
|
|
702
704
|
type: 'align'
|
|
703
705
|
}
|
|
704
|
-
]
|
|
705
|
-
devices: {
|
|
706
|
-
desktop: {
|
|
707
|
-
default: 'center'
|
|
708
|
-
}
|
|
709
|
-
}
|
|
706
|
+
]
|
|
710
707
|
},
|
|
711
708
|
{
|
|
712
709
|
id: 'hasActiveShadow',
|
|
@@ -26,31 +26,6 @@ const SettingUIV2 = [
|
|
|
26
26
|
setting: {
|
|
27
27
|
id: 'childItem'
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: {
|
|
32
|
-
en: 'Expand mode'
|
|
33
|
-
},
|
|
34
|
-
setting: {
|
|
35
|
-
id: 'expandedMode'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: {
|
|
40
|
-
en: 'Default expanded item'
|
|
41
|
-
},
|
|
42
|
-
setting: {
|
|
43
|
-
id: 'expandItem'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: {
|
|
48
|
-
en: 'Select item'
|
|
49
|
-
},
|
|
50
|
-
setting: {
|
|
51
|
-
id: 'activeKey'
|
|
52
|
-
},
|
|
53
|
-
conditionDisplay: 'expandItem === true'
|
|
54
29
|
}
|
|
55
30
|
]
|
|
56
31
|
},
|
|
@@ -61,14 +36,17 @@ const SettingUIV2 = [
|
|
|
61
36
|
controls: [
|
|
62
37
|
{
|
|
63
38
|
label: {
|
|
64
|
-
en: '
|
|
39
|
+
en: 'Item gap'
|
|
65
40
|
},
|
|
66
41
|
controlConfig: {
|
|
67
42
|
id: 'gap',
|
|
68
|
-
type: 'input:
|
|
43
|
+
type: 'input:slider',
|
|
69
44
|
units: [
|
|
70
45
|
'px'
|
|
71
46
|
],
|
|
47
|
+
min: 0,
|
|
48
|
+
max: 100,
|
|
49
|
+
step: 1,
|
|
72
50
|
linkWithSetting: {
|
|
73
51
|
name: 'contentSizePadding',
|
|
74
52
|
field: 'gap'
|
|
@@ -149,6 +127,14 @@ const SettingUIV2 = [
|
|
|
149
127
|
id: 'headerBorder',
|
|
150
128
|
state: 'normal'
|
|
151
129
|
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: {
|
|
133
|
+
en: 'Alignment'
|
|
134
|
+
},
|
|
135
|
+
setting: {
|
|
136
|
+
id: 'alignment'
|
|
137
|
+
}
|
|
152
138
|
}
|
|
153
139
|
]
|
|
154
140
|
},
|
|
@@ -180,14 +166,6 @@ const SettingUIV2 = [
|
|
|
180
166
|
moreSettings: {
|
|
181
167
|
type: 'collapse',
|
|
182
168
|
controls: [
|
|
183
|
-
{
|
|
184
|
-
label: {
|
|
185
|
-
en: 'Background'
|
|
186
|
-
},
|
|
187
|
-
setting: {
|
|
188
|
-
id: 'backgroundContent'
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
169
|
{
|
|
192
170
|
label: {
|
|
193
171
|
en: 'Border'
|
|
@@ -533,6 +511,131 @@ const SettingUIV2 = [
|
|
|
533
511
|
}
|
|
534
512
|
]
|
|
535
513
|
},
|
|
514
|
+
{
|
|
515
|
+
label: {
|
|
516
|
+
en: 'Background'
|
|
517
|
+
},
|
|
518
|
+
controls: [
|
|
519
|
+
{
|
|
520
|
+
label: {
|
|
521
|
+
en: 'Color'
|
|
522
|
+
},
|
|
523
|
+
setting: {
|
|
524
|
+
id: 'backgroundContent'
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
label: {
|
|
531
|
+
en: 'Shape'
|
|
532
|
+
},
|
|
533
|
+
controls: [
|
|
534
|
+
{
|
|
535
|
+
label: {
|
|
536
|
+
en: 'Border'
|
|
537
|
+
},
|
|
538
|
+
setting: {
|
|
539
|
+
id: 'border',
|
|
540
|
+
state: 'normal'
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
label: {
|
|
545
|
+
en: 'Corner'
|
|
546
|
+
},
|
|
547
|
+
setting: {
|
|
548
|
+
id: 'rounded',
|
|
549
|
+
state: 'normal'
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
label: {
|
|
554
|
+
en: 'Shadow'
|
|
555
|
+
},
|
|
556
|
+
setting: {
|
|
557
|
+
id: 'boxShadow',
|
|
558
|
+
state: 'normal'
|
|
559
|
+
},
|
|
560
|
+
options: {
|
|
561
|
+
updateFields: [
|
|
562
|
+
{
|
|
563
|
+
field: 'enable',
|
|
564
|
+
settingId: 'hasBoxShadow',
|
|
565
|
+
state: 'normal'
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
controlChangeTrigger: {
|
|
570
|
+
settings: [
|
|
571
|
+
{
|
|
572
|
+
condition: `boxShadow.normal.enable === true`,
|
|
573
|
+
source: [
|
|
574
|
+
'boxShadow',
|
|
575
|
+
'hasBoxShadow'
|
|
576
|
+
],
|
|
577
|
+
action: {
|
|
578
|
+
controlId: 'hasBoxShadow',
|
|
579
|
+
groupType: 'advanced',
|
|
580
|
+
controlType: 'advanced',
|
|
581
|
+
state: 'normal',
|
|
582
|
+
newValue: true
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
condition: `boxShadow.normal.enable === false`,
|
|
587
|
+
source: [
|
|
588
|
+
'boxShadow',
|
|
589
|
+
'hasBoxShadow'
|
|
590
|
+
],
|
|
591
|
+
action: {
|
|
592
|
+
controlId: 'hasBoxShadow',
|
|
593
|
+
groupType: 'advanced',
|
|
594
|
+
controlType: 'advanced',
|
|
595
|
+
state: 'normal',
|
|
596
|
+
newValue: false
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
options: {
|
|
601
|
+
noRecordHistory: true
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
label: {
|
|
609
|
+
en: 'Display condition'
|
|
610
|
+
},
|
|
611
|
+
controls: [
|
|
612
|
+
{
|
|
613
|
+
label: {
|
|
614
|
+
en: 'Expand mode'
|
|
615
|
+
},
|
|
616
|
+
setting: {
|
|
617
|
+
id: 'expandedMode'
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
label: {
|
|
622
|
+
en: 'Default expanded item'
|
|
623
|
+
},
|
|
624
|
+
setting: {
|
|
625
|
+
id: 'expandItem'
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
label: {
|
|
630
|
+
en: 'Select item'
|
|
631
|
+
},
|
|
632
|
+
setting: {
|
|
633
|
+
id: 'activeKey'
|
|
634
|
+
},
|
|
635
|
+
conditionDisplay: 'expandItem === true'
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
},
|
|
536
639
|
{
|
|
537
640
|
controls: [
|
|
538
641
|
{
|
|
@@ -28,10 +28,10 @@ const Trustoo = ({ setting, advanced })=>{
|
|
|
28
28
|
{% assign widget = '${widgetType}' %}
|
|
29
29
|
{% case widget %}
|
|
30
30
|
{% when "starRating" %}
|
|
31
|
-
<div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star"></div>
|
|
31
|
+
<div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star gp-block"></div>
|
|
32
32
|
<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="https://cdn.shopify.com/extensions/da25a851-7e4c-4ab7-9a2d-0b3d699025b5/trustoo-product-ali-reviews-7/assets/star-rating-widget.min.js" defer="defer"></script>
|
|
33
33
|
{% when "reviews" %}
|
|
34
|
-
<div id="seal-review-widget"></div>
|
|
34
|
+
<div id="seal-review-widget" class="gp-block"></div>
|
|
35
35
|
<link ${helpers.getSettingPreloadData('class="gps-link" delay', 'href')}="https://cdn.shopify.com/extensions/0519f63f-61ca-467d-975d-a60b2cc82088/7.3.0/assets/star-rating.css" rel="stylesheet" type="text/css" media="all">
|
|
36
36
|
{% endcase %}
|
|
37
37
|
{% endif %}
|
|
@@ -302,10 +302,7 @@ const AccordionSettings = [
|
|
|
302
302
|
label: 'Background Color',
|
|
303
303
|
devices: {
|
|
304
304
|
desktop: {
|
|
305
|
-
default:
|
|
306
|
-
type: 'color',
|
|
307
|
-
color: 'transparent'
|
|
308
|
-
}
|
|
305
|
+
default: 'transparent'
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
308
|
},
|
|
@@ -682,7 +679,12 @@ const AccordionSettings = [
|
|
|
682
679
|
{
|
|
683
680
|
id: 'align',
|
|
684
681
|
label: 'Alignment',
|
|
685
|
-
type: '
|
|
682
|
+
type: 'segment',
|
|
683
|
+
devices: {
|
|
684
|
+
desktop: {
|
|
685
|
+
default: 'center'
|
|
686
|
+
}
|
|
687
|
+
},
|
|
686
688
|
options: [
|
|
687
689
|
{
|
|
688
690
|
label: 'Left',
|
|
@@ -699,12 +701,7 @@ const AccordionSettings = [
|
|
|
699
701
|
value: 'right',
|
|
700
702
|
type: 'align'
|
|
701
703
|
}
|
|
702
|
-
]
|
|
703
|
-
devices: {
|
|
704
|
-
desktop: {
|
|
705
|
-
default: 'center'
|
|
706
|
-
}
|
|
707
|
-
}
|
|
704
|
+
]
|
|
708
705
|
},
|
|
709
706
|
{
|
|
710
707
|
id: 'hasActiveShadow',
|
|
@@ -24,31 +24,6 @@ const SettingUIV2 = [
|
|
|
24
24
|
setting: {
|
|
25
25
|
id: 'childItem'
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: {
|
|
30
|
-
en: 'Expand mode'
|
|
31
|
-
},
|
|
32
|
-
setting: {
|
|
33
|
-
id: 'expandedMode'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: {
|
|
38
|
-
en: 'Default expanded item'
|
|
39
|
-
},
|
|
40
|
-
setting: {
|
|
41
|
-
id: 'expandItem'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: {
|
|
46
|
-
en: 'Select item'
|
|
47
|
-
},
|
|
48
|
-
setting: {
|
|
49
|
-
id: 'activeKey'
|
|
50
|
-
},
|
|
51
|
-
conditionDisplay: 'expandItem === true'
|
|
52
27
|
}
|
|
53
28
|
]
|
|
54
29
|
},
|
|
@@ -59,14 +34,17 @@ const SettingUIV2 = [
|
|
|
59
34
|
controls: [
|
|
60
35
|
{
|
|
61
36
|
label: {
|
|
62
|
-
en: '
|
|
37
|
+
en: 'Item gap'
|
|
63
38
|
},
|
|
64
39
|
controlConfig: {
|
|
65
40
|
id: 'gap',
|
|
66
|
-
type: 'input:
|
|
41
|
+
type: 'input:slider',
|
|
67
42
|
units: [
|
|
68
43
|
'px'
|
|
69
44
|
],
|
|
45
|
+
min: 0,
|
|
46
|
+
max: 100,
|
|
47
|
+
step: 1,
|
|
70
48
|
linkWithSetting: {
|
|
71
49
|
name: 'contentSizePadding',
|
|
72
50
|
field: 'gap'
|
|
@@ -147,6 +125,14 @@ const SettingUIV2 = [
|
|
|
147
125
|
id: 'headerBorder',
|
|
148
126
|
state: 'normal'
|
|
149
127
|
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: {
|
|
131
|
+
en: 'Alignment'
|
|
132
|
+
},
|
|
133
|
+
setting: {
|
|
134
|
+
id: 'alignment'
|
|
135
|
+
}
|
|
150
136
|
}
|
|
151
137
|
]
|
|
152
138
|
},
|
|
@@ -178,14 +164,6 @@ const SettingUIV2 = [
|
|
|
178
164
|
moreSettings: {
|
|
179
165
|
type: 'collapse',
|
|
180
166
|
controls: [
|
|
181
|
-
{
|
|
182
|
-
label: {
|
|
183
|
-
en: 'Background'
|
|
184
|
-
},
|
|
185
|
-
setting: {
|
|
186
|
-
id: 'backgroundContent'
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
167
|
{
|
|
190
168
|
label: {
|
|
191
169
|
en: 'Border'
|
|
@@ -531,6 +509,131 @@ const SettingUIV2 = [
|
|
|
531
509
|
}
|
|
532
510
|
]
|
|
533
511
|
},
|
|
512
|
+
{
|
|
513
|
+
label: {
|
|
514
|
+
en: 'Background'
|
|
515
|
+
},
|
|
516
|
+
controls: [
|
|
517
|
+
{
|
|
518
|
+
label: {
|
|
519
|
+
en: 'Color'
|
|
520
|
+
},
|
|
521
|
+
setting: {
|
|
522
|
+
id: 'backgroundContent'
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
label: {
|
|
529
|
+
en: 'Shape'
|
|
530
|
+
},
|
|
531
|
+
controls: [
|
|
532
|
+
{
|
|
533
|
+
label: {
|
|
534
|
+
en: 'Border'
|
|
535
|
+
},
|
|
536
|
+
setting: {
|
|
537
|
+
id: 'border',
|
|
538
|
+
state: 'normal'
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
label: {
|
|
543
|
+
en: 'Corner'
|
|
544
|
+
},
|
|
545
|
+
setting: {
|
|
546
|
+
id: 'rounded',
|
|
547
|
+
state: 'normal'
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
label: {
|
|
552
|
+
en: 'Shadow'
|
|
553
|
+
},
|
|
554
|
+
setting: {
|
|
555
|
+
id: 'boxShadow',
|
|
556
|
+
state: 'normal'
|
|
557
|
+
},
|
|
558
|
+
options: {
|
|
559
|
+
updateFields: [
|
|
560
|
+
{
|
|
561
|
+
field: 'enable',
|
|
562
|
+
settingId: 'hasBoxShadow',
|
|
563
|
+
state: 'normal'
|
|
564
|
+
}
|
|
565
|
+
]
|
|
566
|
+
},
|
|
567
|
+
controlChangeTrigger: {
|
|
568
|
+
settings: [
|
|
569
|
+
{
|
|
570
|
+
condition: `boxShadow.normal.enable === true`,
|
|
571
|
+
source: [
|
|
572
|
+
'boxShadow',
|
|
573
|
+
'hasBoxShadow'
|
|
574
|
+
],
|
|
575
|
+
action: {
|
|
576
|
+
controlId: 'hasBoxShadow',
|
|
577
|
+
groupType: 'advanced',
|
|
578
|
+
controlType: 'advanced',
|
|
579
|
+
state: 'normal',
|
|
580
|
+
newValue: true
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
condition: `boxShadow.normal.enable === false`,
|
|
585
|
+
source: [
|
|
586
|
+
'boxShadow',
|
|
587
|
+
'hasBoxShadow'
|
|
588
|
+
],
|
|
589
|
+
action: {
|
|
590
|
+
controlId: 'hasBoxShadow',
|
|
591
|
+
groupType: 'advanced',
|
|
592
|
+
controlType: 'advanced',
|
|
593
|
+
state: 'normal',
|
|
594
|
+
newValue: false
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
options: {
|
|
599
|
+
noRecordHistory: true
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
label: {
|
|
607
|
+
en: 'Display condition'
|
|
608
|
+
},
|
|
609
|
+
controls: [
|
|
610
|
+
{
|
|
611
|
+
label: {
|
|
612
|
+
en: 'Expand mode'
|
|
613
|
+
},
|
|
614
|
+
setting: {
|
|
615
|
+
id: 'expandedMode'
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
label: {
|
|
620
|
+
en: 'Default expanded item'
|
|
621
|
+
},
|
|
622
|
+
setting: {
|
|
623
|
+
id: 'expandItem'
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
label: {
|
|
628
|
+
en: 'Select item'
|
|
629
|
+
},
|
|
630
|
+
setting: {
|
|
631
|
+
id: 'activeKey'
|
|
632
|
+
},
|
|
633
|
+
conditionDisplay: 'expandItem === true'
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
},
|
|
534
637
|
{
|
|
535
638
|
controls: [
|
|
536
639
|
{
|
|
@@ -24,10 +24,10 @@ const Trustoo = ({ setting, advanced })=>{
|
|
|
24
24
|
{% assign widget = '${widgetType}' %}
|
|
25
25
|
{% case widget %}
|
|
26
26
|
{% when "starRating" %}
|
|
27
|
-
<div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star"></div>
|
|
27
|
+
<div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star gp-block"></div>
|
|
28
28
|
<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="https://cdn.shopify.com/extensions/da25a851-7e4c-4ab7-9a2d-0b3d699025b5/trustoo-product-ali-reviews-7/assets/star-rating-widget.min.js" defer="defer"></script>
|
|
29
29
|
{% when "reviews" %}
|
|
30
|
-
<div id="seal-review-widget"></div>
|
|
30
|
+
<div id="seal-review-widget" class="gp-block"></div>
|
|
31
31
|
<link ${getSettingPreloadData('class="gps-link" delay', 'href')}="https://cdn.shopify.com/extensions/0519f63f-61ca-467d-975d-a60b2cc82088/7.3.0/assets/star-rating.css" rel="stylesheet" type="text/css" media="all">
|
|
32
32
|
{% endcase %}
|
|
33
33
|
{% endif %}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ type AccordionProps = BaseProps<{
|
|
|
41
41
|
width?: ObjectDevices$1<string | number | undefined>;
|
|
42
42
|
itemHeaderSpacing?: SizeSetting;
|
|
43
43
|
itemContentSpacing?: SizeSetting;
|
|
44
|
-
backgroundContent?: ObjectDevices$1<
|
|
44
|
+
backgroundContent?: ObjectDevices$1<ColorValueType$1>;
|
|
45
45
|
roundedContent?: CornerRadius;
|
|
46
46
|
borderContent?: Border;
|
|
47
47
|
contentSizePadding?: ObjectDevices$1<SizeSettingGlobal>;
|