@gem-sdk/core 1.23.0-staging.420 → 1.23.0-staging.426
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.
|
@@ -55,7 +55,7 @@ const getBgImageByDevice = (background, device, options)=>{
|
|
|
55
55
|
let imageByDevice = background?.[device]?.image?.src;
|
|
56
56
|
let newBackupFilekey = backupFileKey;
|
|
57
57
|
const shopifyHandleName = imageByDevice?.match(// eslint-disable-next-line
|
|
58
|
-
/\/files\/([^\/]+\.(jpg|jpeg|gif|png|webp))/)?.[1];
|
|
58
|
+
/\/files\/([^\/]+\.(jpg|jpeg|gif|png|webp|svg))/)?.[1];
|
|
59
59
|
if (backupFileKey && shopifyHandleName && shopifyHandleName != backupFileKey) {
|
|
60
60
|
newBackupFilekey = shopifyHandleName;
|
|
61
61
|
}
|
|
@@ -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)=>{
|
|
@@ -53,7 +53,7 @@ const getBgImageByDevice = (background, device, options)=>{
|
|
|
53
53
|
let imageByDevice = background?.[device]?.image?.src;
|
|
54
54
|
let newBackupFilekey = backupFileKey;
|
|
55
55
|
const shopifyHandleName = imageByDevice?.match(// eslint-disable-next-line
|
|
56
|
-
/\/files\/([^\/]+\.(jpg|jpeg|gif|png|webp))/)?.[1];
|
|
56
|
+
/\/files\/([^\/]+\.(jpg|jpeg|gif|png|webp|svg))/)?.[1];
|
|
57
57
|
if (backupFileKey && shopifyHandleName && shopifyHandleName != backupFileKey) {
|
|
58
58
|
newBackupFilekey = shopifyHandleName;
|
|
59
59
|
}
|
|
@@ -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;
|