@gem-sdk/core 1.23.0-staging.422 → 1.23.0-staging.429
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.
|
@@ -203,7 +203,7 @@ const RenderCustomCode = (item)=>{
|
|
|
203
203
|
};
|
|
204
204
|
const appendAnimation = (props, liquid)=>{
|
|
205
205
|
const { advanced, tag } = props;
|
|
206
|
-
const { animation } = advanced ?? {};
|
|
206
|
+
const { animation, op: opacity } = advanced ?? {};
|
|
207
207
|
const getAnimationType = (settings, type)=>{
|
|
208
208
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
209
209
|
};
|
|
@@ -237,7 +237,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
237
237
|
<gp-animation
|
|
238
238
|
gp-data='${JSON.stringify({
|
|
239
239
|
config: animation,
|
|
240
|
-
tag
|
|
240
|
+
tag,
|
|
241
|
+
opacity
|
|
241
242
|
})}'
|
|
242
243
|
style="${{
|
|
243
244
|
...inheritParentStyle
|
|
@@ -29,7 +29,7 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
29
29
|
${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
|
|
30
30
|
${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
|
|
31
31
|
${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
|
|
32
|
-
${lineHeight ? `line-height: ${lineHeight} ${composeImportant};` : ''}
|
|
32
|
+
${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
|
|
33
33
|
${italic ? `font-style: italic ${composeImportant};` : ''}
|
|
34
34
|
${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
|
|
35
35
|
${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
|
|
@@ -63,10 +63,10 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
63
63
|
fs: !attrs?.italic ? value?.fontStyle : undefined,
|
|
64
64
|
ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
|
|
65
65
|
weight: !attrs?.bold ? value?.fontWeight : undefined,
|
|
66
|
-
ls: value?.letterSpacing
|
|
67
|
-
lh: value?.lineHeight
|
|
66
|
+
ls: value?.letterSpacing
|
|
68
67
|
}),
|
|
69
|
-
...makeStyle.makeStyleResponsive('size', value?.fontSize)
|
|
68
|
+
...makeStyle.makeStyleResponsive('size', value?.fontSize),
|
|
69
|
+
...makeStyle.makeStyleResponsive('lh', value?.lineHeight)
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
const composeTypographyAttr = (attrs)=>{
|
|
@@ -199,7 +199,7 @@ const RenderCustomCode = (item)=>{
|
|
|
199
199
|
};
|
|
200
200
|
const appendAnimation = (props, liquid)=>{
|
|
201
201
|
const { advanced, tag } = props;
|
|
202
|
-
const { animation } = advanced ?? {};
|
|
202
|
+
const { animation, op: opacity } = advanced ?? {};
|
|
203
203
|
const getAnimationType = (settings, type)=>{
|
|
204
204
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
205
205
|
};
|
|
@@ -233,7 +233,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
233
233
|
<gp-animation
|
|
234
234
|
gp-data='${JSON.stringify({
|
|
235
235
|
config: animation,
|
|
236
|
-
tag
|
|
236
|
+
tag,
|
|
237
|
+
opacity
|
|
237
238
|
})}'
|
|
238
239
|
style="${{
|
|
239
240
|
...inheritParentStyle
|
|
@@ -27,7 +27,7 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
27
27
|
${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
|
|
28
28
|
${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
|
|
29
29
|
${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
|
|
30
|
-
${lineHeight ? `line-height: ${lineHeight} ${composeImportant};` : ''}
|
|
30
|
+
${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
|
|
31
31
|
${italic ? `font-style: italic ${composeImportant};` : ''}
|
|
32
32
|
${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
|
|
33
33
|
${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
|
|
@@ -61,10 +61,10 @@ const composeTypographyV2 = (value, attrs)=>{
|
|
|
61
61
|
fs: !attrs?.italic ? value?.fontStyle : undefined,
|
|
62
62
|
ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
|
|
63
63
|
weight: !attrs?.bold ? value?.fontWeight : undefined,
|
|
64
|
-
ls: value?.letterSpacing
|
|
65
|
-
lh: value?.lineHeight
|
|
64
|
+
ls: value?.letterSpacing
|
|
66
65
|
}),
|
|
67
|
-
...makeStyleResponsive('size', value?.fontSize)
|
|
66
|
+
...makeStyleResponsive('size', value?.fontSize),
|
|
67
|
+
...makeStyleResponsive('lh', value?.lineHeight)
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
70
|
const composeTypographyAttr = (attrs)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6609,7 +6609,7 @@ type JudgeMeReviewsWidgetType = 'single_product_preview_badge' | 'review_widget'
|
|
|
6609
6609
|
type LooxReviewsWidgetType = 'reviews_widget' | 'rating_widget' | 'carousel_widget';
|
|
6610
6610
|
type RyviuWidgetType = 'reviews' | 'badge' | 'badgeCollection' | 'carousel' | 'masonry';
|
|
6611
6611
|
type RivyoWidgetType = 'reviews' | 'badge' | 'testimonials' | 'allReviewsPage';
|
|
6612
|
-
type VitalsWidgetType = 'addToWishlist' | 'goToWishlist' | 'paymentLogos' | 'recentlyViewed' | 'shoppableInstagramFeed' | 'trustSealsAndBadges' | 'productReviews' | 'productBundles' | 'volumeDiscounts' | 'stockScarcity';
|
|
6612
|
+
type VitalsWidgetType = 'addToWishlist' | 'goToWishlist' | 'paymentLogos' | 'recentlyViewed' | 'shoppableInstagramFeed' | 'trustSealsAndBadges' | 'productReviews' | 'productBundles' | 'volumeDiscounts' | 'stockScarcity' | 'sizeChart' | 'upsellBuilderBogo' | 'bundleCountdownBox' | 'reviewsUnderTitle' | 'productReviewsCarousel' | 'shippingBox' | 'currencyConverter' | 'relatedProducts' | 'backInStock';
|
|
6613
6613
|
type FeraReviewsWidgetType = 'productReviews' | 'testimonialCarousel' | 'allReviews' | 'averageStoreRatingBadge' | 'inStoreMedia' | 'averageRatingBadge' | 'productPageMedia';
|
|
6614
6614
|
type FeraReviewsV3WidgetType = 'allReviews' | 'testimonialCarousel' | 'mediaGallery' | 'productDetailRating' | 'productReviews' | 'productCollectionRating' | 'otherWidget';
|
|
6615
6615
|
type GrowaveWidgetType = 'reviews' | 'badge' | 'productListBadge' | 'wishList' | 'socialShare' | 'favorite';
|
|
@@ -25431,7 +25431,7 @@ type TypographyProps = {
|
|
|
25431
25431
|
};
|
|
25432
25432
|
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
25433
25433
|
fontSize?: ObjectDevices<string>;
|
|
25434
|
-
lineHeight?: string
|
|
25434
|
+
lineHeight?: ObjectDevices<string>;
|
|
25435
25435
|
};
|
|
25436
25436
|
type TypographyV2Attrs = {
|
|
25437
25437
|
bold?: boolean;
|