@gem-sdk/core 1.44.0-dev.76 → 1.44.0-dev.78

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.
@@ -27,16 +27,16 @@ const composeTypographyV2Css = (typography, isImportant)=>{
27
27
  const { bold, italic, underline, transform } = typographyAttrs ?? {};
28
28
  const composeImportant = isImportant ? '!important' : '';
29
29
  return `
30
- ${fontFamily ? composeFontFamilyTypographyV2({
30
+ ${fontFamily ? `font-family: ${composeFontFamilyTypographyV2({
31
31
  fontFamily
32
- }) : ''}
33
- ${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
34
- ${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
35
- ${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
36
- ${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
37
- ${italic ? `font-style: italic ${composeImportant};` : ''}
38
- ${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
39
- ${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
32
+ })} ${composeImportant}` : ''};
33
+ ${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant}` : ''};
34
+ ${bold ? `font-weight: bold ${composeImportant}` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant}` : ''};
35
+ ${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant}` : ''};
36
+ ${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant}` : ''};
37
+ ${italic ? `font-style: italic ${composeImportant}` : ''};
38
+ ${underline ? `text-decoration-line: underline ${composeImportant}` : ''};
39
+ ${transform ? `text-transform: ${transform} ${composeImportant}` : ''};
40
40
  `;
41
41
  };
42
42
  function getCustomCSSByDevice(typography, device) {
@@ -25,16 +25,16 @@ const composeTypographyV2Css = (typography, isImportant)=>{
25
25
  const { bold, italic, underline, transform } = typographyAttrs ?? {};
26
26
  const composeImportant = isImportant ? '!important' : '';
27
27
  return `
28
- ${fontFamily ? composeFontFamilyTypographyV2({
28
+ ${fontFamily ? `font-family: ${composeFontFamilyTypographyV2({
29
29
  fontFamily
30
- }) : ''}
31
- ${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant};` : ''}
32
- ${bold ? `font-weight: bold ${composeImportant};` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant};` : ''}
33
- ${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant};` : ''}
34
- ${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant};` : ''}
35
- ${italic ? `font-style: italic ${composeImportant};` : ''}
36
- ${underline ? `text-decoration-line: underline ${composeImportant};` : ''}
37
- ${transform ? `text-transform: ${transform} ${composeImportant};` : ''}
30
+ })} ${composeImportant}` : ''};
31
+ ${fontSize?.desktop ? `font-size: ${fontSize?.desktop} ${composeImportant}` : ''};
32
+ ${bold ? `font-weight: bold ${composeImportant}` : fontWeight ? `font-weight: ${fontWeight} ${composeImportant}` : ''};
33
+ ${letterSpacing ? `letter-spacing: ${letterSpacing} ${composeImportant}` : ''};
34
+ ${lineHeight?.desktop ? `line-height: ${lineHeight?.desktop} ${composeImportant}` : ''};
35
+ ${italic ? `font-style: italic ${composeImportant}` : ''};
36
+ ${underline ? `text-decoration-line: underline ${composeImportant}` : ''};
37
+ ${transform ? `text-transform: ${transform} ${composeImportant}` : ''};
38
38
  `;
39
39
  };
40
40
  function getCustomCSSByDevice(typography, device) {
@@ -5429,6 +5429,9 @@ type PublishedThemePage$1 = {
5429
5429
  themePageOnlineStoreData?: Maybe$1<Array<Maybe$1<PublishedThemePageOnlineStoreData$1>>>;
5430
5430
  type: PublishedThemePageType$1;
5431
5431
  updatedAt?: Maybe$1<Scalars$2['Time']>;
5432
+ publishedAt?: Maybe$1<Scalars$2['Time']>;
5433
+ isPlatformDefault?: boolean;
5434
+ platformOriginalTemplateContent?: string;
5432
5435
  };
5433
5436
  type PublishedThemePageCustomSection$1 = {
5434
5437
  id: Scalars$2['ID'];
@@ -8182,6 +8185,8 @@ type PageContext = {
8182
8185
  numberOfProductOfProductList?: number;
8183
8186
  isPreviewing?: boolean;
8184
8187
  pageType?: string;
8188
+ isThemeSection?: boolean;
8189
+ sectionName?: string;
8185
8190
  };
8186
8191
  type OnlyOne<T, U> = (T & {
8187
8192
  [K in keyof U]?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.44.0-dev.76",
3
+ "version": "1.44.0-dev.78",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.44.0-dev.70",
31
- "@gem-sdk/styles": "1.44.0-dev.76",
30
+ "@gem-sdk/adapter-shopify": "1.44.0-dev.78",
31
+ "@gem-sdk/styles": "1.44.0-dev.78",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {