@gem-sdk/components 2.0.0-dev.716 → 2.0.0-dev.717

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.
@@ -5,7 +5,7 @@ var core = require('@gem-sdk/core');
5
5
  const getCodeClasses = (uid, condition, cssClass)=>{
6
6
  return core.composeClasses(core.cls(uid, {
7
7
  'gp-sr-only': condition
8
- }, 'gp-cursor-pointer', cssClass));
8
+ }, 'gp-cursor-pointer', 'gp-custom-code', cssClass));
9
9
  };
10
10
 
11
11
  exports.getCodeClasses = getCodeClasses;
@@ -99,7 +99,7 @@ const FeatureImageWithGallery = ({ builderPropUID, children, enableLazyLoadImage
99
99
  {% assign other_image_index = media_length | minus: 1 %}
100
100
  {% endif %}
101
101
  {% assign otherImage = product.media[other_image_index] %}
102
- ${system.LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`)}
102
+ ${system.LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`, `{% assign src = otherImage.src %}`)}
103
103
  `)}
104
104
  ${NextImage_liquid.default({
105
105
  srcIsLiquidCode: true,
@@ -149,10 +149,26 @@ const horizontalThree = [
149
149
  }
150
150
  },
151
151
  type: 'paragraph-1'
152
+ },
153
+ textSizeV2: {
154
+ desktop: {
155
+ width: 'Auto',
156
+ height: 'auto',
157
+ shapeLinked: false,
158
+ disableShapeLinked: true,
159
+ hiddenShape: true,
160
+ shape: 'custom',
161
+ padding: {
162
+ top: '12px',
163
+ bottom: '12px',
164
+ left: '12px',
165
+ right: '12px'
166
+ }
167
+ }
152
168
  }
153
169
  },
154
170
  tag: 'ProductBadge',
155
- uid: 'gHRinlrdow',
171
+ uid: 'gXAaVIfN3P',
156
172
  childrens: []
157
173
  },
158
174
  {
@@ -148,10 +148,26 @@ const horizontalTwo = [
148
148
  }
149
149
  },
150
150
  type: 'paragraph-1'
151
+ },
152
+ textSizeV2: {
153
+ desktop: {
154
+ width: 'Auto',
155
+ height: 'auto',
156
+ shapeLinked: false,
157
+ disableShapeLinked: true,
158
+ hiddenShape: true,
159
+ shape: 'custom',
160
+ padding: {
161
+ top: '12px',
162
+ bottom: '12px',
163
+ left: '12px',
164
+ right: '12px'
165
+ }
166
+ }
151
167
  }
152
168
  },
153
169
  tag: 'ProductBadge',
154
- uid: 'gHRinlrdow',
170
+ uid: 'gXAaVIfN3P',
155
171
  childrens: []
156
172
  },
157
173
  {
@@ -289,10 +289,26 @@ const verticalThree = [
289
289
  }
290
290
  },
291
291
  type: 'paragraph-1'
292
+ },
293
+ textSizeV2: {
294
+ desktop: {
295
+ width: 'Auto',
296
+ height: 'auto',
297
+ shapeLinked: false,
298
+ disableShapeLinked: true,
299
+ hiddenShape: true,
300
+ shape: 'custom',
301
+ padding: {
302
+ top: '12px',
303
+ bottom: '12px',
304
+ left: '12px',
305
+ right: '12px'
306
+ }
307
+ }
292
308
  }
293
309
  },
294
310
  tag: 'ProductBadge',
295
- uid: 'gHRinlrdow',
311
+ uid: 'gXAaVIfN3P',
296
312
  childrens: []
297
313
  },
298
314
  {
@@ -289,10 +289,26 @@ const verticalTwo = [
289
289
  }
290
290
  },
291
291
  type: 'paragraph-1'
292
+ },
293
+ textSizeV2: {
294
+ desktop: {
295
+ width: 'Auto',
296
+ height: 'auto',
297
+ shapeLinked: false,
298
+ disableShapeLinked: true,
299
+ hiddenShape: true,
300
+ shape: 'custom',
301
+ padding: {
302
+ top: '12px',
303
+ bottom: '12px',
304
+ left: '12px',
305
+ right: '12px'
306
+ }
307
+ }
292
308
  }
293
309
  },
294
310
  tag: 'ProductBadge',
295
- uid: 'gHRinlrdow',
311
+ uid: 'gXAaVIfN3P',
296
312
  childrens: []
297
313
  },
298
314
  {
@@ -170,6 +170,7 @@ const TextSettings = [
170
170
  type: 'paragraph-1',
171
171
  attrs: {
172
172
  color: 'text-1',
173
+ transform: 'none',
173
174
  isAlwaysLoadBold: false
174
175
  }
175
176
  },
@@ -3,7 +3,7 @@ import { composeClasses, cls } from '@gem-sdk/core';
3
3
  const getCodeClasses = (uid, condition, cssClass)=>{
4
4
  return composeClasses(cls(uid, {
5
5
  'gp-sr-only': condition
6
- }, 'gp-cursor-pointer', cssClass));
6
+ }, 'gp-cursor-pointer', 'gp-custom-code', cssClass));
7
7
  };
8
8
 
9
9
  export { getCodeClasses };
@@ -95,7 +95,7 @@ const FeatureImageWithGallery = ({ builderPropUID, children, enableLazyLoadImage
95
95
  {% assign other_image_index = media_length | minus: 1 %}
96
96
  {% endif %}
97
97
  {% assign otherImage = product.media[other_image_index] %}
98
- ${LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`)}
98
+ ${LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`, `{% assign src = otherImage.src %}`)}
99
99
  `)}
100
100
  ${NextImage({
101
101
  srcIsLiquidCode: true,
@@ -147,10 +147,26 @@ const horizontalThree = [
147
147
  }
148
148
  },
149
149
  type: 'paragraph-1'
150
+ },
151
+ textSizeV2: {
152
+ desktop: {
153
+ width: 'Auto',
154
+ height: 'auto',
155
+ shapeLinked: false,
156
+ disableShapeLinked: true,
157
+ hiddenShape: true,
158
+ shape: 'custom',
159
+ padding: {
160
+ top: '12px',
161
+ bottom: '12px',
162
+ left: '12px',
163
+ right: '12px'
164
+ }
165
+ }
150
166
  }
151
167
  },
152
168
  tag: 'ProductBadge',
153
- uid: 'gHRinlrdow',
169
+ uid: 'gXAaVIfN3P',
154
170
  childrens: []
155
171
  },
156
172
  {
@@ -146,10 +146,26 @@ const horizontalTwo = [
146
146
  }
147
147
  },
148
148
  type: 'paragraph-1'
149
+ },
150
+ textSizeV2: {
151
+ desktop: {
152
+ width: 'Auto',
153
+ height: 'auto',
154
+ shapeLinked: false,
155
+ disableShapeLinked: true,
156
+ hiddenShape: true,
157
+ shape: 'custom',
158
+ padding: {
159
+ top: '12px',
160
+ bottom: '12px',
161
+ left: '12px',
162
+ right: '12px'
163
+ }
164
+ }
149
165
  }
150
166
  },
151
167
  tag: 'ProductBadge',
152
- uid: 'gHRinlrdow',
168
+ uid: 'gXAaVIfN3P',
153
169
  childrens: []
154
170
  },
155
171
  {
@@ -287,10 +287,26 @@ const verticalThree = [
287
287
  }
288
288
  },
289
289
  type: 'paragraph-1'
290
+ },
291
+ textSizeV2: {
292
+ desktop: {
293
+ width: 'Auto',
294
+ height: 'auto',
295
+ shapeLinked: false,
296
+ disableShapeLinked: true,
297
+ hiddenShape: true,
298
+ shape: 'custom',
299
+ padding: {
300
+ top: '12px',
301
+ bottom: '12px',
302
+ left: '12px',
303
+ right: '12px'
304
+ }
305
+ }
290
306
  }
291
307
  },
292
308
  tag: 'ProductBadge',
293
- uid: 'gHRinlrdow',
309
+ uid: 'gXAaVIfN3P',
294
310
  childrens: []
295
311
  },
296
312
  {
@@ -287,10 +287,26 @@ const verticalTwo = [
287
287
  }
288
288
  },
289
289
  type: 'paragraph-1'
290
+ },
291
+ textSizeV2: {
292
+ desktop: {
293
+ width: 'Auto',
294
+ height: 'auto',
295
+ shapeLinked: false,
296
+ disableShapeLinked: true,
297
+ hiddenShape: true,
298
+ shape: 'custom',
299
+ padding: {
300
+ top: '12px',
301
+ bottom: '12px',
302
+ left: '12px',
303
+ right: '12px'
304
+ }
305
+ }
290
306
  }
291
307
  },
292
308
  tag: 'ProductBadge',
293
- uid: 'gHRinlrdow',
309
+ uid: 'gXAaVIfN3P',
294
310
  childrens: []
295
311
  },
296
312
  {
@@ -168,6 +168,7 @@ const TextSettings = [
168
168
  type: 'paragraph-1',
169
169
  attrs: {
170
170
  color: 'text-1',
171
+ transform: 'none',
171
172
  isAlwaysLoadBold: false
172
173
  }
173
174
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.716",
3
+ "version": "2.0.0-dev.717",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",