@gem-sdk/pages 1.4.4 → 1.5.0

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.
package/dist/cjs/index.js CHANGED
@@ -55,6 +55,7 @@ exports.StaticPage = _static.default;
55
55
  exports.BuilderPage = builder.BuilderPage;
56
56
  exports.StaticPageV2 = staticV2.StaticPageV2;
57
57
  exports.getStaticPaths = getStaticPaths.getStaticPaths;
58
+ exports.getFontFromGlobalStyle = googleFonts.getFontFromGlobalStyle;
58
59
  exports.getFonts = googleFonts.getFonts;
59
60
  exports.getStorefrontApi = getStorefrontApi.getStorefrontApi;
60
61
  exports.ErrorBoundary = ErrorBoundary.ErrorBoundary;
package/dist/esm/index.js CHANGED
@@ -19,7 +19,7 @@ export { default as StaticPage } from './pages/static.js';
19
19
  export { BuilderPage } from './pages/builder.js';
20
20
  export { StaticPageV2 } from './pages/static-v2.js';
21
21
  export { getStaticPaths } from './libs/getStaticPaths.js';
22
- export { getFonts } from './libs/google-fonts.js';
22
+ export { getFontFromGlobalStyle, getFonts } from './libs/google-fonts.js';
23
23
  export { getStorefrontApi } from './libs/get-storefront-api.js';
24
24
  export { ErrorBoundary } from './components/ErrorBoundary.js';
25
25
  export { ErrorFallback } from './components/ErrorFallback.js';
@@ -129,6 +129,7 @@ type FontOption = {
129
129
  effect?: string;
130
130
  };
131
131
  declare function getFonts(fonts: FontItem[], option?: FontOption): Promise<string>;
132
+ declare const getFontFromGlobalStyle: (data?: string) => Promise<string> | "";
132
133
 
133
134
  declare const getStorefrontApi: (handle: string, provider?: 'BIGCOMMERCE' | 'SHOPIFY') => string;
134
135
 
@@ -177,4 +178,4 @@ type Props = {
177
178
  };
178
179
  declare const TikTokPixel: ({ pixelId }: Props) => JSX.Element | null;
179
180
 
180
- export { AppPropsWithLayout, BuilderPage, CollectionDetailPage, CollectionPageProps, ErrorBoundary, ErrorFallback, FacebookPixel, GoogleAnalytic, NextPageWithLayout, Page404, Page500, PageBuilderProps, PreviewPage, ProductDetailPage, ProductPageProps, StaticPage, StaticPageProps, StaticPagePropsV2, StaticPageV2, TikTokPixel, createFetcher, createShopifyFetcher, genCSS, getBuilderProps, getCollectionProps, getFonts, getHomePageProps, getHomePagePropsV2, getLayout, getPreviewProps, getProductProps, getStaticPageProps, getStaticPagePropsPreview, getStaticPagePropsV2, getStaticPaths, getStorefrontApi, isBot, useTrackingView };
181
+ export { AppPropsWithLayout, BuilderPage, CollectionDetailPage, CollectionPageProps, ErrorBoundary, ErrorFallback, FacebookPixel, GoogleAnalytic, NextPageWithLayout, Page404, Page500, PageBuilderProps, PreviewPage, ProductDetailPage, ProductPageProps, StaticPage, StaticPageProps, StaticPagePropsV2, StaticPageV2, TikTokPixel, createFetcher, createShopifyFetcher, genCSS, getBuilderProps, getCollectionProps, getFontFromGlobalStyle, getFonts, getHomePageProps, getHomePagePropsV2, getLayout, getPreviewProps, getProductProps, getStaticPageProps, getStaticPagePropsPreview, getStaticPagePropsV2, getStaticPaths, getStorefrontApi, isBot, useTrackingView };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.4.4",
3
+ "version": "1.5.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",