@gem-sdk/components 2.1.8 → 2.1.9

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.
Files changed (28) hide show
  1. package/dist/cjs/third-party/components/Stamped.liquid.js +3 -2
  2. package/dist/cjs/third-party/setting/Stamped/BadgeDouble.js +1 -1
  3. package/dist/cjs/third-party/setting/Stamped/BadgeRibbon.js +1 -1
  4. package/dist/cjs/third-party/setting/Stamped/BadgeSingle.js +1 -1
  5. package/dist/cjs/third-party/setting/Stamped/Carousel.js +1 -1
  6. package/dist/cjs/third-party/setting/Stamped/FullPage.js +1 -1
  7. package/dist/cjs/third-party/setting/Stamped/MainWidget.js +1 -1
  8. package/dist/cjs/third-party/setting/Stamped/ProductRating.js +1 -1
  9. package/dist/cjs/third-party/setting/Stamped/SiteBadge.js +1 -1
  10. package/dist/cjs/third-party/setting/Stamped/VisualGallery.js +1 -1
  11. package/dist/cjs/third-party/setting/Stamped/WallPhotos.js +61 -1
  12. package/dist/cjs/third-party/setting/Stamped.js +105 -1
  13. package/dist/cjs/third-party/setting/UnlimitedBundlesDiscounts.js +14 -1
  14. package/dist/esm/third-party/components/Stamped.liquid.js +3 -2
  15. package/dist/esm/third-party/setting/Stamped/BadgeDouble.js +1 -1
  16. package/dist/esm/third-party/setting/Stamped/BadgeRibbon.js +1 -1
  17. package/dist/esm/third-party/setting/Stamped/BadgeSingle.js +1 -1
  18. package/dist/esm/third-party/setting/Stamped/Carousel.js +1 -1
  19. package/dist/esm/third-party/setting/Stamped/FullPage.js +1 -1
  20. package/dist/esm/third-party/setting/Stamped/MainWidget.js +1 -1
  21. package/dist/esm/third-party/setting/Stamped/ProductRating.js +1 -1
  22. package/dist/esm/third-party/setting/Stamped/SiteBadge.js +1 -1
  23. package/dist/esm/third-party/setting/Stamped/VisualGallery.js +1 -1
  24. package/dist/esm/third-party/setting/Stamped/WallPhotos.js +61 -1
  25. package/dist/esm/third-party/setting/Stamped.js +105 -1
  26. package/dist/esm/third-party/setting/UnlimitedBundlesDiscounts.js +14 -1
  27. package/dist/types/index.d.ts +4 -1
  28. package/package.json +2 -2
@@ -4,11 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@gem-sdk/core');
6
6
  var LiquidTemplateByWidget = require('./Stamped/LiquidTemplateByWidget.js');
7
+ var thirdParty = require('../helpers/thirdParty.js');
7
8
 
8
9
  const Stamped = ({ setting, advanced })=>{
9
- const { align } = setting ?? {};
10
+ const { align, version, appBlockId } = setting ?? {};
10
11
  const currentTemplate = LiquidTemplateByWidget.getTemplateByWidget(setting);
11
- return core.template`
12
+ return version === 'v2' ? thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block [&_*]:gp-max-w-none`) : core.template`
12
13
  <div
13
14
  class="${advanced?.cssClass}"
14
15
  style="${{
@@ -7,7 +7,7 @@ const ui = {
7
7
  label: {
8
8
  en: 'Badge Double'
9
9
  },
10
- condition: `widgetType === 'badge-double'`,
10
+ condition: `(widgetType === 'badge-double' && version === 'v1') || (widgetTypeV2 === 'badge-double-image' && version === 'v2')`,
11
11
  controls: [
12
12
  ...Badge.badge.ui
13
13
  ],
@@ -5,7 +5,7 @@ const ui = {
5
5
  label: {
6
6
  en: 'Badge Ribbon'
7
7
  },
8
- condition: `widgetType === 'badge-ribbon'`,
8
+ condition: `(widgetType === 'badge-ribbon' && version === 'v1') || (widgetTypeV2 === 'badge-ribbon-image' && version === 'v2')`,
9
9
  controls: [
10
10
  {
11
11
  type: 'control',
@@ -7,7 +7,7 @@ const ui = {
7
7
  label: {
8
8
  en: 'Badge Single'
9
9
  },
10
- condition: `widgetType === 'badge-single'`,
10
+ condition: `(widgetType === 'badge-single' && version === 'v1') || (widgetTypeV2 === 'badge-single-image' && version === 'v2')`,
11
11
  controls: [
12
12
  ...Badge.badge.ui
13
13
  ],
@@ -38,7 +38,7 @@ const ui = {
38
38
  label: {
39
39
  en: 'Carousel'
40
40
  },
41
- condition: `widgetType === 'carousel'`,
41
+ condition: `(widgetType === 'carousel' && version === 'v1') || (widgetTypeV2 === 'carousel' && version === 'v2')`,
42
42
  controls: [
43
43
  {
44
44
  type: 'control',
@@ -20,7 +20,7 @@ const ui = {
20
20
  label: {
21
21
  en: 'Full Page'
22
22
  },
23
- condition: `widgetType === 'full-page'`,
23
+ condition: `(widgetType === 'full-page' && version === 'v1') || (widgetTypeV2 === 'full-page' && version === 'v2')`,
24
24
  controls: [
25
25
  {
26
26
  type: 'control',
@@ -58,7 +58,7 @@ const ui = {
58
58
  label: {
59
59
  en: 'Main Widget'
60
60
  },
61
- condition: `widgetType === 'main-widget'`,
61
+ condition: `(widgetType === 'main-widget' && version === 'v1') || (widgetTypeV2 === 'main-widget' && version === 'v2')`,
62
62
  controls: [
63
63
  {
64
64
  type: 'control',
@@ -5,7 +5,7 @@ const ui = {
5
5
  label: {
6
6
  en: 'Product Rating'
7
7
  },
8
- condition: `widgetType === 'product-rating'`,
8
+ condition: `(widgetType === 'product-rating' && version === 'v1') || (widgetTypeV2 === 'product-rating-image' && version === 'v2')`,
9
9
  controls: [
10
10
  {
11
11
  type: 'control',
@@ -46,7 +46,7 @@ const ui = {
46
46
  label: {
47
47
  en: 'Site Badge'
48
48
  },
49
- condition: `widgetType === 'site-badge'`,
49
+ condition: `(widgetType === 'site-badge' && version === 'v1') || (widgetTypeV2 === 'site-badge' && version === 'v2')`,
50
50
  controls: [
51
51
  {
52
52
  type: 'control',
@@ -47,7 +47,7 @@ const ui = {
47
47
  label: {
48
48
  en: 'Visual Gallery'
49
49
  },
50
- condition: `widgetType === 'visual-gallery'`,
50
+ condition: `(widgetType === 'visual-gallery' && version === 'v1') || (widgetTypeV2 === 'visual-gallery' && version === 'v2')`,
51
51
  controls: [
52
52
  {
53
53
  type: 'control',
@@ -7,8 +7,48 @@ const ui = {
7
7
  label: {
8
8
  en: 'Wall photos'
9
9
  },
10
- condition: `widgetType === 'wall-photos'`,
10
+ condition: ` (widgetType === 'wall-photos' && version === 'v1') || (widgetTypeV2 === 'wall-photos' && version === 'v2')`,
11
11
  controls: [
12
+ {
13
+ type: 'control',
14
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
15
+ label: {
16
+ en: 'Type'
17
+ },
18
+ setting: {
19
+ id: 'visualGalleryType'
20
+ }
21
+ },
22
+ {
23
+ type: 'control',
24
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
25
+ label: {
26
+ en: 'Height'
27
+ },
28
+ setting: {
29
+ id: 'carouselHeight'
30
+ }
31
+ },
32
+ {
33
+ type: 'control',
34
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
35
+ label: {
36
+ en: 'Auto Slide'
37
+ },
38
+ setting: {
39
+ id: 'autoSlide'
40
+ }
41
+ },
42
+ {
43
+ type: 'control',
44
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
45
+ label: {
46
+ en: 'Auto Slide Interval (ms)'
47
+ },
48
+ setting: {
49
+ id: 'autoSlideInterval'
50
+ }
51
+ },
12
52
  {
13
53
  type: 'control',
14
54
  label: {
@@ -18,6 +58,26 @@ const ui = {
18
58
  id: 'starColor'
19
59
  }
20
60
  },
61
+ {
62
+ type: 'control',
63
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
64
+ label: {
65
+ en: 'Hover Color'
66
+ },
67
+ setting: {
68
+ id: 'hoverColor'
69
+ }
70
+ },
71
+ {
72
+ type: 'control',
73
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
74
+ label: {
75
+ en: 'Hover Opacity'
76
+ },
77
+ setting: {
78
+ id: 'hoverOpacity'
79
+ }
80
+ },
21
81
  ...Filters.filters.ui
22
82
  ],
23
83
  setting: {
@@ -40,6 +40,11 @@ const config = {
40
40
  {
41
41
  id: 'setting',
42
42
  controls: [
43
+ {
44
+ id: 'appBlockId',
45
+ type: 'input',
46
+ default: ''
47
+ },
43
48
  {
44
49
  id: 'install',
45
50
  type: 'open-link',
@@ -56,6 +61,22 @@ const config = {
56
61
  href: 'https://admin.shopify.com/?redirect=/apps/product-reviews-addon',
57
62
  appName: Stamped.default.label
58
63
  },
64
+ {
65
+ id: 'version',
66
+ label: 'Choose version',
67
+ type: 'select',
68
+ default: 'v1',
69
+ options: [
70
+ {
71
+ label: 'V1',
72
+ value: 'v1'
73
+ },
74
+ {
75
+ label: 'V2',
76
+ value: 'v2'
77
+ }
78
+ ]
79
+ },
59
80
  {
60
81
  id: 'widgetType',
61
82
  label: 'Choose widget',
@@ -104,6 +125,69 @@ const config = {
104
125
  }
105
126
  ]
106
127
  },
128
+ {
129
+ id: 'widgetTypeV2',
130
+ label: 'Choose widget',
131
+ type: 'select',
132
+ default: 'main-widget',
133
+ options: [
134
+ {
135
+ label: 'Main Widget',
136
+ value: 'main-widget'
137
+ },
138
+ {
139
+ label: 'Product Rating',
140
+ value: 'product-rating-image'
141
+ },
142
+ {
143
+ label: 'Badge Double',
144
+ value: 'badge-double-image'
145
+ },
146
+ {
147
+ label: 'Badge Ribbon',
148
+ value: 'badge-ribbon-image'
149
+ },
150
+ {
151
+ label: 'Badge Single',
152
+ value: 'badge-single-image'
153
+ },
154
+ {
155
+ label: 'Carousel',
156
+ value: 'carousel'
157
+ },
158
+ {
159
+ label: 'Full Page',
160
+ value: 'full-page'
161
+ },
162
+ {
163
+ label: 'Site Badge',
164
+ value: 'site-badge'
165
+ },
166
+ {
167
+ label: 'Star Rating',
168
+ value: 'star-rating-badge',
169
+ hideOnPage: [
170
+ 'ARTICLE',
171
+ 'BLOG',
172
+ 'COLLECTION',
173
+ 'GP_ARTICLE',
174
+ 'GP_BLOG',
175
+ 'GP_COLLECTION',
176
+ 'GP_INDEX',
177
+ 'GP_STATIC',
178
+ 'STATIC'
179
+ ]
180
+ },
181
+ {
182
+ label: 'Visual Gallery',
183
+ value: 'visual-gallery'
184
+ },
185
+ {
186
+ label: 'Wall Photos',
187
+ value: 'wall-photos'
188
+ }
189
+ ]
190
+ },
107
191
  ...index.widgetSettings
108
192
  ]
109
193
  }
@@ -115,6 +199,15 @@ const config = {
115
199
  id: 'install'
116
200
  }
117
201
  },
202
+ {
203
+ type: 'control',
204
+ label: {
205
+ en: 'Choose version'
206
+ },
207
+ setting: {
208
+ id: 'version'
209
+ }
210
+ },
118
211
  {
119
212
  type: 'control',
120
213
  label: {
@@ -122,7 +215,18 @@ const config = {
122
215
  },
123
216
  setting: {
124
217
  id: 'widgetType'
125
- }
218
+ },
219
+ condition: 'version === "v1"'
220
+ },
221
+ {
222
+ type: 'control',
223
+ label: {
224
+ en: 'Choose widget'
225
+ },
226
+ setting: {
227
+ id: 'widgetTypeV2'
228
+ },
229
+ condition: 'version === "v2"'
126
230
  },
127
231
  ...index.widgetUIs,
128
232
  {
@@ -53,8 +53,12 @@ const config = {
53
53
  type: 'select',
54
54
  options: [
55
55
  {
56
- label: 'UnlimitedBundlesProductPage',
56
+ label: 'All Bundles',
57
57
  value: 'embed-all'
58
+ },
59
+ {
60
+ label: 'Revy Bundle Placeholder',
61
+ value: 'product-page-placeholder'
58
62
  }
59
63
  ],
60
64
  default: 'embed-all'
@@ -112,6 +116,15 @@ const config = {
112
116
  id: 'install'
113
117
  }
114
118
  },
119
+ {
120
+ type: 'control',
121
+ label: {
122
+ en: 'Choose Widget'
123
+ },
124
+ setting: {
125
+ id: 'widgetType'
126
+ }
127
+ },
115
128
  {
116
129
  type: 'control',
117
130
  setting: {
@@ -1,10 +1,11 @@
1
1
  import { template, makeStyleResponsive } from '@gem-sdk/core';
2
2
  import { getTemplateByWidget } from './Stamped/LiquidTemplateByWidget.js';
3
+ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
3
4
 
4
5
  const Stamped = ({ setting, advanced })=>{
5
- const { align } = setting ?? {};
6
+ const { align, version, appBlockId } = setting ?? {};
6
7
  const currentTemplate = getTemplateByWidget(setting);
7
- return template`
8
+ return version === 'v2' ? getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block [&_*]:gp-max-w-none`) : template`
8
9
  <div
9
10
  class="${advanced?.cssClass}"
10
11
  style="${{
@@ -5,7 +5,7 @@ const ui = {
5
5
  label: {
6
6
  en: 'Badge Double'
7
7
  },
8
- condition: `widgetType === 'badge-double'`,
8
+ condition: `(widgetType === 'badge-double' && version === 'v1') || (widgetTypeV2 === 'badge-double-image' && version === 'v2')`,
9
9
  controls: [
10
10
  ...badge.ui
11
11
  ],
@@ -3,7 +3,7 @@ const ui = {
3
3
  label: {
4
4
  en: 'Badge Ribbon'
5
5
  },
6
- condition: `widgetType === 'badge-ribbon'`,
6
+ condition: `(widgetType === 'badge-ribbon' && version === 'v1') || (widgetTypeV2 === 'badge-ribbon-image' && version === 'v2')`,
7
7
  controls: [
8
8
  {
9
9
  type: 'control',
@@ -5,7 +5,7 @@ const ui = {
5
5
  label: {
6
6
  en: 'Badge Single'
7
7
  },
8
- condition: `widgetType === 'badge-single'`,
8
+ condition: `(widgetType === 'badge-single' && version === 'v1') || (widgetTypeV2 === 'badge-single-image' && version === 'v2')`,
9
9
  controls: [
10
10
  ...badge.ui
11
11
  ],
@@ -36,7 +36,7 @@ const ui = {
36
36
  label: {
37
37
  en: 'Carousel'
38
38
  },
39
- condition: `widgetType === 'carousel'`,
39
+ condition: `(widgetType === 'carousel' && version === 'v1') || (widgetTypeV2 === 'carousel' && version === 'v2')`,
40
40
  controls: [
41
41
  {
42
42
  type: 'control',
@@ -18,7 +18,7 @@ const ui = {
18
18
  label: {
19
19
  en: 'Full Page'
20
20
  },
21
- condition: `widgetType === 'full-page'`,
21
+ condition: `(widgetType === 'full-page' && version === 'v1') || (widgetTypeV2 === 'full-page' && version === 'v2')`,
22
22
  controls: [
23
23
  {
24
24
  type: 'control',
@@ -56,7 +56,7 @@ const ui = {
56
56
  label: {
57
57
  en: 'Main Widget'
58
58
  },
59
- condition: `widgetType === 'main-widget'`,
59
+ condition: `(widgetType === 'main-widget' && version === 'v1') || (widgetTypeV2 === 'main-widget' && version === 'v2')`,
60
60
  controls: [
61
61
  {
62
62
  type: 'control',
@@ -3,7 +3,7 @@ const ui = {
3
3
  label: {
4
4
  en: 'Product Rating'
5
5
  },
6
- condition: `widgetType === 'product-rating'`,
6
+ condition: `(widgetType === 'product-rating' && version === 'v1') || (widgetTypeV2 === 'product-rating-image' && version === 'v2')`,
7
7
  controls: [
8
8
  {
9
9
  type: 'control',
@@ -44,7 +44,7 @@ const ui = {
44
44
  label: {
45
45
  en: 'Site Badge'
46
46
  },
47
- condition: `widgetType === 'site-badge'`,
47
+ condition: `(widgetType === 'site-badge' && version === 'v1') || (widgetTypeV2 === 'site-badge' && version === 'v2')`,
48
48
  controls: [
49
49
  {
50
50
  type: 'control',
@@ -45,7 +45,7 @@ const ui = {
45
45
  label: {
46
46
  en: 'Visual Gallery'
47
47
  },
48
- condition: `widgetType === 'visual-gallery'`,
48
+ condition: `(widgetType === 'visual-gallery' && version === 'v1') || (widgetTypeV2 === 'visual-gallery' && version === 'v2')`,
49
49
  controls: [
50
50
  {
51
51
  type: 'control',
@@ -5,8 +5,48 @@ const ui = {
5
5
  label: {
6
6
  en: 'Wall photos'
7
7
  },
8
- condition: `widgetType === 'wall-photos'`,
8
+ condition: ` (widgetType === 'wall-photos' && version === 'v1') || (widgetTypeV2 === 'wall-photos' && version === 'v2')`,
9
9
  controls: [
10
+ {
11
+ type: 'control',
12
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
13
+ label: {
14
+ en: 'Type'
15
+ },
16
+ setting: {
17
+ id: 'visualGalleryType'
18
+ }
19
+ },
20
+ {
21
+ type: 'control',
22
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
23
+ label: {
24
+ en: 'Height'
25
+ },
26
+ setting: {
27
+ id: 'carouselHeight'
28
+ }
29
+ },
30
+ {
31
+ type: 'control',
32
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
33
+ label: {
34
+ en: 'Auto Slide'
35
+ },
36
+ setting: {
37
+ id: 'autoSlide'
38
+ }
39
+ },
40
+ {
41
+ type: 'control',
42
+ condition: `visualGalleryType === 'carousel' && widgetTypeV2 === 'wall-photos' && version === 'v2'`,
43
+ label: {
44
+ en: 'Auto Slide Interval (ms)'
45
+ },
46
+ setting: {
47
+ id: 'autoSlideInterval'
48
+ }
49
+ },
10
50
  {
11
51
  type: 'control',
12
52
  label: {
@@ -16,6 +56,26 @@ const ui = {
16
56
  id: 'starColor'
17
57
  }
18
58
  },
59
+ {
60
+ type: 'control',
61
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
62
+ label: {
63
+ en: 'Hover Color'
64
+ },
65
+ setting: {
66
+ id: 'hoverColor'
67
+ }
68
+ },
69
+ {
70
+ type: 'control',
71
+ condition: `widgetTypeV2 === 'wall-photos' && version === 'v2'`,
72
+ label: {
73
+ en: 'Hover Opacity'
74
+ },
75
+ setting: {
76
+ id: 'hoverOpacity'
77
+ }
78
+ },
19
79
  ...filters.ui
20
80
  ],
21
81
  setting: {
@@ -36,6 +36,11 @@ const config = {
36
36
  {
37
37
  id: 'setting',
38
38
  controls: [
39
+ {
40
+ id: 'appBlockId',
41
+ type: 'input',
42
+ default: ''
43
+ },
39
44
  {
40
45
  id: 'install',
41
46
  type: 'open-link',
@@ -52,6 +57,22 @@ const config = {
52
57
  href: 'https://admin.shopify.com/?redirect=/apps/product-reviews-addon',
53
58
  appName: StampedConfig.label
54
59
  },
60
+ {
61
+ id: 'version',
62
+ label: 'Choose version',
63
+ type: 'select',
64
+ default: 'v1',
65
+ options: [
66
+ {
67
+ label: 'V1',
68
+ value: 'v1'
69
+ },
70
+ {
71
+ label: 'V2',
72
+ value: 'v2'
73
+ }
74
+ ]
75
+ },
55
76
  {
56
77
  id: 'widgetType',
57
78
  label: 'Choose widget',
@@ -100,6 +121,69 @@ const config = {
100
121
  }
101
122
  ]
102
123
  },
124
+ {
125
+ id: 'widgetTypeV2',
126
+ label: 'Choose widget',
127
+ type: 'select',
128
+ default: 'main-widget',
129
+ options: [
130
+ {
131
+ label: 'Main Widget',
132
+ value: 'main-widget'
133
+ },
134
+ {
135
+ label: 'Product Rating',
136
+ value: 'product-rating-image'
137
+ },
138
+ {
139
+ label: 'Badge Double',
140
+ value: 'badge-double-image'
141
+ },
142
+ {
143
+ label: 'Badge Ribbon',
144
+ value: 'badge-ribbon-image'
145
+ },
146
+ {
147
+ label: 'Badge Single',
148
+ value: 'badge-single-image'
149
+ },
150
+ {
151
+ label: 'Carousel',
152
+ value: 'carousel'
153
+ },
154
+ {
155
+ label: 'Full Page',
156
+ value: 'full-page'
157
+ },
158
+ {
159
+ label: 'Site Badge',
160
+ value: 'site-badge'
161
+ },
162
+ {
163
+ label: 'Star Rating',
164
+ value: 'star-rating-badge',
165
+ hideOnPage: [
166
+ 'ARTICLE',
167
+ 'BLOG',
168
+ 'COLLECTION',
169
+ 'GP_ARTICLE',
170
+ 'GP_BLOG',
171
+ 'GP_COLLECTION',
172
+ 'GP_INDEX',
173
+ 'GP_STATIC',
174
+ 'STATIC'
175
+ ]
176
+ },
177
+ {
178
+ label: 'Visual Gallery',
179
+ value: 'visual-gallery'
180
+ },
181
+ {
182
+ label: 'Wall Photos',
183
+ value: 'wall-photos'
184
+ }
185
+ ]
186
+ },
103
187
  ...widgetSettings
104
188
  ]
105
189
  }
@@ -111,6 +195,15 @@ const config = {
111
195
  id: 'install'
112
196
  }
113
197
  },
198
+ {
199
+ type: 'control',
200
+ label: {
201
+ en: 'Choose version'
202
+ },
203
+ setting: {
204
+ id: 'version'
205
+ }
206
+ },
114
207
  {
115
208
  type: 'control',
116
209
  label: {
@@ -118,7 +211,18 @@ const config = {
118
211
  },
119
212
  setting: {
120
213
  id: 'widgetType'
121
- }
214
+ },
215
+ condition: 'version === "v1"'
216
+ },
217
+ {
218
+ type: 'control',
219
+ label: {
220
+ en: 'Choose widget'
221
+ },
222
+ setting: {
223
+ id: 'widgetTypeV2'
224
+ },
225
+ condition: 'version === "v2"'
122
226
  },
123
227
  ...widgetUIs,
124
228
  {
@@ -49,8 +49,12 @@ const config = {
49
49
  type: 'select',
50
50
  options: [
51
51
  {
52
- label: 'UnlimitedBundlesProductPage',
52
+ label: 'All Bundles',
53
53
  value: 'embed-all'
54
+ },
55
+ {
56
+ label: 'Revy Bundle Placeholder',
57
+ value: 'product-page-placeholder'
54
58
  }
55
59
  ],
56
60
  default: 'embed-all'
@@ -108,6 +112,15 @@ const config = {
108
112
  id: 'install'
109
113
  }
110
114
  },
115
+ {
116
+ type: 'control',
117
+ label: {
118
+ en: 'Choose Widget'
119
+ },
120
+ setting: {
121
+ id: 'widgetType'
122
+ }
123
+ },
111
124
  {
112
125
  type: 'control',
113
126
  setting: {
@@ -1,5 +1,5 @@
1
1
  import * as _gem_sdk_core from '@gem-sdk/core';
2
- import { BaseProps, TypographySettingV2, ObjectDevices, Background, SizeSettingGlobal, StateProp, ColorValueType, TypographySetting, Border, SizeSetting, CornerRadius, ShadowProps, BasePropsWrap, AlignProp, NameDevices, ResponsiveStateProp, Ratio, ObjectLayoutValue, TransformProp, PageContext, ProductProviderProps, JudgeMeReviewsWidgetType, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, ProductReviewsWidgetType, RyviuWidgetType, RivyoWidgetType, VitalsWidgetType, OmnisendWidgetType, TrustooWidgetType, TrustooWidgetTypeV2, FeraReviewsWidgetType, FeraReviewsV3WidgetType, BoldSubscriptionsWidgetType, PickyStoryWidgetType, WiserWidgetType, WiserV2WidgetType, StampedWidgetType, LaiProductReviewsWidgetType, LaiProductReviewsAdvancedWidgetType, GrowaveWidgetTypeV2, GrowaveWidgetTypeV1, OpinewWidgetType, OpinewDesignWidgetType, UltimateSalesBoostWidgetType, YotpoReviewsWidgetType, AliReviewsWidgetType, BogosWidgetType, FastBundleWidgetType, PreOrderNowWodWidgetType, TagShopWidgetType, AirProductReview, InstantJudgeMeReviewsWidgetType, InstantLooxReviewsWidgetType, PostPurchaseTypo, AdvancedType, RawChild } from '@gem-sdk/core';
2
+ import { BaseProps, TypographySettingV2, ObjectDevices, Background, SizeSettingGlobal, StateProp, ColorValueType, TypographySetting, Border, SizeSetting, CornerRadius, ShadowProps, BasePropsWrap, AlignProp, NameDevices, ResponsiveStateProp, Ratio, ObjectLayoutValue, TransformProp, PageContext, ProductProviderProps, JudgeMeReviewsWidgetType, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, ProductReviewsWidgetType, RyviuWidgetType, RivyoWidgetType, VitalsWidgetType, OmnisendWidgetType, TrustooWidgetType, TrustooWidgetTypeV2, FeraReviewsWidgetType, FeraReviewsV3WidgetType, BoldSubscriptionsWidgetType, PickyStoryWidgetType, WiserWidgetType, WiserV2WidgetType, StampedWidgetType, StampedWidgetTypeV2, LaiProductReviewsWidgetType, LaiProductReviewsAdvancedWidgetType, GrowaveWidgetTypeV2, GrowaveWidgetTypeV1, OpinewWidgetType, OpinewDesignWidgetType, UltimateSalesBoostWidgetType, YotpoReviewsWidgetType, AliReviewsWidgetType, BogosWidgetType, FastBundleWidgetType, PreOrderNowWodWidgetType, TagShopWidgetType, AirProductReview, InstantJudgeMeReviewsWidgetType, InstantLooxReviewsWidgetType, PostPurchaseTypo, AdvancedType, RawChild } from '@gem-sdk/core';
3
3
  import * as csstype from 'csstype';
4
4
  import { Property } from 'csstype';
5
5
  import * as _gem_sdk_keen_slider_react from '@gem-sdk/keen-slider/react';
@@ -2629,6 +2629,7 @@ declare const Wiser$1: React.FC<WiserProps>;
2629
2629
 
2630
2630
  type StampedProps = BaseProps<{
2631
2631
  widgetType?: StampedWidgetType;
2632
+ widgetTypeV2?: StampedWidgetTypeV2;
2632
2633
  openApp?: any;
2633
2634
  install?: any;
2634
2635
  align?: ObjectDevices<AlignProp>;
@@ -2684,6 +2685,8 @@ type StampedProps = BaseProps<{
2684
2685
  siteBadgeTextSize?: string;
2685
2686
  siteBadgeHeight?: string;
2686
2687
  siteBadgeText?: string;
2688
+ appBlockId?: string;
2689
+ version?: 'v1' | 'v2';
2687
2690
  }>;
2688
2691
  declare const Stamped$1: React.FC<StampedProps>;
2689
2692
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -21,7 +21,7 @@
21
21
  "format": "prettier --write \"./src/**/*.{ts,tsx}\""
22
22
  },
23
23
  "devDependencies": {
24
- "@gem-sdk/core": "2.1.8",
24
+ "@gem-sdk/core": "2.1.9",
25
25
  "@gem-sdk/styles": "2.1.0",
26
26
  "@types/react-transition-group": "^4.4.5"
27
27
  },