@gem-sdk/pages 1.58.0-staging.41 → 1.58.0-staging.42
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 +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +1 -16
- package/package.json +1 -1
- package/dist/cjs/pages/index.js +0 -26
- package/dist/esm/pages/index.js +0 -21
package/dist/cjs/index.js
CHANGED
|
@@ -22,7 +22,6 @@ var getStaticPaths = require('./libs/getStaticPaths.js');
|
|
|
22
22
|
var genFonts = require('./libs/helpers/gen-fonts.js');
|
|
23
23
|
var googleFonts = require('./libs/google-fonts.js');
|
|
24
24
|
var getStorefrontApi = require('./libs/get-storefront-api.js');
|
|
25
|
-
var index = require('./pages/index.js');
|
|
26
25
|
var ErrorBoundary = require('./components/ErrorBoundary.js');
|
|
27
26
|
var ErrorFallback = require('./components/ErrorFallback.js');
|
|
28
27
|
var _404 = require('./pages/404.js');
|
|
@@ -35,6 +34,7 @@ var preview = require('./pages/preview.js');
|
|
|
35
34
|
var productDetail = require('./pages/product-detail.js');
|
|
36
35
|
var _static = require('./pages/static.js');
|
|
37
36
|
var builder = require('./pages/builder.js');
|
|
37
|
+
var staticV2 = require('./pages/static-v2.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -65,7 +65,6 @@ exports.getFontsFromDataBuilder = genFonts.getFontsFromDataBuilder;
|
|
|
65
65
|
exports.getFontFromGlobalStyle = googleFonts.getFontFromGlobalStyle;
|
|
66
66
|
exports.getFonts = googleFonts.getFonts;
|
|
67
67
|
exports.getStorefrontApi = getStorefrontApi.getStorefrontApi;
|
|
68
|
-
exports.StaticPageV2 = index.StaticPageV2;
|
|
69
68
|
exports.ErrorBoundary = ErrorBoundary.ErrorBoundary;
|
|
70
69
|
exports.ErrorFallback = ErrorFallback.ErrorFallback;
|
|
71
70
|
exports.Page404 = _404.Page404;
|
|
@@ -78,3 +77,4 @@ exports.PreviewPage = preview.PreviewPage;
|
|
|
78
77
|
exports.ProductDetailPage = productDetail.default;
|
|
79
78
|
exports.StaticPage = _static.default;
|
|
80
79
|
exports.BuilderPage = builder.BuilderPage;
|
|
80
|
+
exports.StaticPageV2 = staticV2.StaticPageV2;
|
package/dist/esm/index.js
CHANGED
|
@@ -20,7 +20,6 @@ export { getStaticPaths } from './libs/getStaticPaths.js';
|
|
|
20
20
|
export { getFontFromGroupSetting, getFontsFromDataBuilder } from './libs/helpers/gen-fonts.js';
|
|
21
21
|
export { getFontFromGlobalStyle, getFonts } from './libs/google-fonts.js';
|
|
22
22
|
export { getStorefrontApi } from './libs/get-storefront-api.js';
|
|
23
|
-
export { StaticPageV2 } from './pages/index.js';
|
|
24
23
|
export { ErrorBoundary } from './components/ErrorBoundary.js';
|
|
25
24
|
export { ErrorFallback } from './components/ErrorFallback.js';
|
|
26
25
|
export { Page404 } from './pages/404.js';
|
|
@@ -33,3 +32,4 @@ export { PreviewPage } from './pages/preview.js';
|
|
|
33
32
|
export { default as ProductDetailPage } from './pages/product-detail.js';
|
|
34
33
|
export { default as StaticPage } from './pages/static.js';
|
|
35
34
|
export { BuilderPage } from './pages/builder.js';
|
|
35
|
+
export { StaticPageV2 } from './pages/static-v2.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _gem_sdk_core from '@gem-sdk/core';
|
|
2
1
|
import { BuilderState, SectionData as SectionData$1, ShopType, RenderMode, CollectionQueryResponse, FetchFunc, ProductSelectFragment, ProductOffer, PublicStoreFrontData, ThemePageQueryResponse, StorePropertyQueryResponse, PublishedThemePageSelectFragment } from '@gem-sdk/core';
|
|
3
2
|
import { NextPage, GetStaticPaths } from 'next';
|
|
4
3
|
import * as next_seo from 'next-seo';
|
|
@@ -93,6 +92,7 @@ type StaticPagePropsV2 = PageBuilderPropsV2 & {
|
|
|
93
92
|
publicStoreFrontData?: PublicStoreFrontData | null;
|
|
94
93
|
isPreview?: boolean;
|
|
95
94
|
};
|
|
95
|
+
declare const StaticPageV2: React.FC<StaticPagePropsV2 & AdditionalPageBuilderProps>;
|
|
96
96
|
|
|
97
97
|
declare const getPostPurchasePropsPreview: (fetcher: FetchFunc, librarySaleFunnelID?: string, storeFrontFetcher?: FetchFunc) => (data: {
|
|
98
98
|
id: string;
|
|
@@ -257,19 +257,4 @@ type BuilderPageProps = {
|
|
|
257
257
|
};
|
|
258
258
|
declare const BuilderPage: React.FC<BuilderPageProps>;
|
|
259
259
|
|
|
260
|
-
declare const StaticPageV2: react.ComponentType<{
|
|
261
|
-
builderData?: {
|
|
262
|
-
uid: string;
|
|
263
|
-
lazy?: boolean | undefined;
|
|
264
|
-
priority?: boolean | undefined;
|
|
265
|
-
data: _gem_sdk_core.BuilderState;
|
|
266
|
-
}[] | undefined;
|
|
267
|
-
} & Omit<PageBuilderProps, "builderData"> & {
|
|
268
|
-
isPostPurchase?: boolean | undefined;
|
|
269
|
-
shopName?: string | undefined;
|
|
270
|
-
productOffers?: _gem_sdk_core.ProductOffer[] | undefined;
|
|
271
|
-
publicStoreFrontData?: _gem_sdk_core.PublicStoreFrontData | null | undefined;
|
|
272
|
-
isPreview?: boolean | undefined;
|
|
273
|
-
} & AdditionalPageBuilderProps>;
|
|
274
|
-
|
|
275
260
|
export { AppPropsWithLayout, BuilderPage, CollectionDetailPage, CollectionPageProps, ErrorBoundary, ErrorFallback, FacebookPixel, GoogleAnalytic, NextPageWithLayout, Page404, Page500, PageBuilderProps, PageBuilderPropsV2, PreviewPage, ProductDetailPage, ProductPageProps, StaticPage, StaticPageProps, StaticPagePropsV2, StaticPageV2, TikTokPixel, createAppAPIFetcher, createFetcher, createShopifyFetcher, genCSS, getBuilderProps, getCollectionProps, getFallbackV2, getFontFromGlobalStyle, getFontFromGroupSetting, getFonts, getFontsFromDataBuilder, getHomePageProps, getHomePagePropsV2, getLayout, getPostPurchasePropsPreview, getPreviewProps, getProductProps, getStaticPagePropsPreview, getStaticPagePropsV2, getStaticPaths, getStorefrontApi, isBot, normalizePageSectionResponseV2, parseBuilderTemplateV2, retryWithDelay, usePagePreview, useTrackingView };
|
package/package.json
CHANGED
package/dist/cjs/pages/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var dynamic = require('next/dynamic');
|
|
5
|
-
require('react/jsx-runtime');
|
|
6
|
-
require('react');
|
|
7
|
-
require('next-seo');
|
|
8
|
-
require('next/image');
|
|
9
|
-
require('@gem-sdk/core');
|
|
10
|
-
require('next/navigation');
|
|
11
|
-
require('next/script');
|
|
12
|
-
var collectionDetail = require('./collection-detail.js');
|
|
13
|
-
var preview = require('./preview.js');
|
|
14
|
-
var productDetail = require('./product-detail.js');
|
|
15
|
-
require('deepmerge');
|
|
16
|
-
require('../store/libs-store.js');
|
|
17
|
-
require('./CollectionGlobalProvider.js');
|
|
18
|
-
|
|
19
|
-
const StaticPageV2 = dynamic(()=>Promise.resolve().then(function () { return require('./static-v2.js'); }).then((mod)=>mod.StaticPageV2), {
|
|
20
|
-
ssr: false
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
exports.CollectionDetailPage = collectionDetail.default;
|
|
24
|
-
exports.PreviewPage = preview.PreviewPage;
|
|
25
|
-
exports.ProductDetailPage = productDetail.default;
|
|
26
|
-
exports.StaticPageV2 = StaticPageV2;
|
package/dist/esm/pages/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import dynamic from 'next/dynamic';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'next-seo';
|
|
6
|
-
import 'next/image';
|
|
7
|
-
import '@gem-sdk/core';
|
|
8
|
-
import 'next/navigation';
|
|
9
|
-
import 'next/script';
|
|
10
|
-
export { default as CollectionDetailPage } from './collection-detail.js';
|
|
11
|
-
export { PreviewPage } from './preview.js';
|
|
12
|
-
export { default as ProductDetailPage } from './product-detail.js';
|
|
13
|
-
import 'deepmerge';
|
|
14
|
-
import '../store/libs-store.js';
|
|
15
|
-
import './CollectionGlobalProvider.js';
|
|
16
|
-
|
|
17
|
-
const StaticPageV2 = dynamic(()=>import('./static-v2.js').then((mod)=>mod.StaticPageV2), {
|
|
18
|
-
ssr: false
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export { StaticPageV2 };
|