@gem-sdk/pages 2.0.0-dev.168 → 2.0.0-dev.184

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.
Files changed (32) hide show
  1. package/dist/cjs/components/builder/Header.js +1 -1
  2. package/dist/cjs/constants/index.js +12 -0
  3. package/dist/cjs/layouts/main.js +1 -1
  4. package/dist/cjs/libs/api/get-home-page-props-v2.js +20 -8
  5. package/dist/cjs/libs/api/get-home-page-props.js +15 -3
  6. package/dist/cjs/libs/api/get-static-page-props-preview.js +6 -5
  7. package/dist/cjs/libs/api/get-static-page-props-v2.js +12 -8
  8. package/dist/cjs/libs/api/get-static-page-props.js +16 -3
  9. package/dist/cjs/libs/helpers/get-metafield.js +7 -0
  10. package/dist/cjs/libs/parse-html.js +15 -23
  11. package/dist/cjs/pages/builder.js +22 -13
  12. package/dist/cjs/pages/collection-detail.js +40 -30
  13. package/dist/cjs/pages/product-detail.js +29 -17
  14. package/dist/cjs/pages/static-v2.js +79 -39
  15. package/dist/cjs/pages/static.js +44 -33
  16. package/dist/esm/components/builder/Header.js +1 -1
  17. package/dist/esm/constants/index.js +12 -0
  18. package/dist/esm/layouts/main.js +1 -1
  19. package/dist/esm/libs/api/get-home-page-props-v2.js +21 -9
  20. package/dist/esm/libs/api/get-home-page-props.js +16 -4
  21. package/dist/esm/libs/api/get-static-page-props-preview.js +6 -5
  22. package/dist/esm/libs/api/get-static-page-props-v2.js +12 -8
  23. package/dist/esm/libs/api/get-static-page-props.js +17 -4
  24. package/dist/esm/libs/helpers/get-metafield.js +5 -0
  25. package/dist/esm/libs/parse-html.js +15 -23
  26. package/dist/esm/pages/builder.js +22 -13
  27. package/dist/esm/pages/collection-detail.js +41 -31
  28. package/dist/esm/pages/product-detail.js +30 -18
  29. package/dist/esm/pages/static-v2.js +80 -40
  30. package/dist/esm/pages/static.js +45 -34
  31. package/dist/types/index.d.ts +3 -3
  32. package/package.json +5 -5
@@ -1,6 +1,8 @@
1
1
  'use client';
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
3
  import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderPreviewProvider } from '@gem-sdk/core';
4
+ import { NextSeo } from 'next-seo';
5
+ import Head from 'next/head';
4
6
  import { useState, useMemo, useEffect } from 'react';
5
7
  import Toolbox from '../components/builder/Toolbox.js';
6
8
  import Header from '../components/builder/Header.js';
@@ -12,7 +14,7 @@ import Toolbar from '../components/builder/Toolbar.js';
12
14
  import Devices from '../components/builder/SwitchView.js';
13
15
  import Body from '../components/builder/Body.js';
14
16
 
15
- const BuilderPage = ({ components, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor, hiddenToolbar, pageName, isOriginTemplate })=>{
17
+ const BuilderPage = ({ components, seo, themeStyle, fontStyle, sectionData, pageType, editorImageToLayout, isThemeSectionEditor, hiddenToolbar, pageName, isOriginTemplate })=>{
16
18
  const [loadSuccess, setLoadSuccess] = useState(false);
17
19
  const isDisableHeaderFooter = ()=>{
18
20
  return isThemeSectionEditor;
@@ -35,19 +37,26 @@ const BuilderPage = ({ components, themeStyle, fontStyle, sectionData, pageType,
35
37
  };
36
38
  return /*#__PURE__*/ jsxs(Fragment, {
37
39
  children: [
38
- themeStyle && /*#__PURE__*/ jsx("style", {
39
- type: "text/css",
40
- id: "global-style",
41
- dangerouslySetInnerHTML: {
42
- __html: themeStyle
43
- }
40
+ /*#__PURE__*/ jsx(NextSeo, {
41
+ ...seo
44
42
  }),
45
- fontStyle && /*#__PURE__*/ jsx("style", {
46
- "data-id": "google-fonts",
47
- type: "text/css",
48
- dangerouslySetInnerHTML: {
49
- __html: fontStyle
50
- }
43
+ /*#__PURE__*/ jsxs(Head, {
44
+ children: [
45
+ themeStyle && /*#__PURE__*/ jsx("style", {
46
+ type: "text/css",
47
+ id: "global-style",
48
+ dangerouslySetInnerHTML: {
49
+ __html: themeStyle
50
+ }
51
+ }),
52
+ fontStyle && /*#__PURE__*/ jsx("style", {
53
+ "data-id": "google-fonts",
54
+ type: "text/css",
55
+ dangerouslySetInnerHTML: {
56
+ __html: fontStyle
57
+ }
58
+ })
59
+ ]
51
60
  }),
52
61
  /*#__PURE__*/ jsx(PageProvider, {
53
62
  children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
@@ -1,43 +1,53 @@
1
1
  'use client';
2
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
4
+ import { NextSeo } from 'next-seo';
4
5
  import dynamic from 'next/dynamic';
5
- import { Suspense } from 'react';
6
+ import Head from 'next/head';
7
+ import { useRouter } from 'next/router';
6
8
 
7
9
  const CollectionProvider = dynamic(()=>import('@gem-sdk/core').then((m)=>m.CollectionProvider));
8
- const CollectionDetailPage = ({ components, builderData, sectionData, themeStyle, collection, fontStyle })=>{
10
+ const CollectionDetailPage = ({ seo, components, builderData, sectionData, themeStyle, collection, fontStyle })=>{
11
+ const router = useRouter();
12
+ if (router.isFallback) {
13
+ return /*#__PURE__*/ jsx("div", {
14
+ children: "Loading..."
15
+ });
16
+ }
9
17
  return /*#__PURE__*/ jsxs(Fragment, {
10
18
  children: [
11
- themeStyle && /*#__PURE__*/ jsx("style", {
12
- "data-id": "global-style",
13
- type: "text/css",
14
- dangerouslySetInnerHTML: {
15
- __html: themeStyle
16
- }
19
+ /*#__PURE__*/ jsx(NextSeo, {
20
+ ...seo
17
21
  }),
18
- fontStyle && /*#__PURE__*/ jsx("style", {
19
- "data-id": "google-fonts",
20
- type: "text/css",
21
- dangerouslySetInnerHTML: {
22
- __html: fontStyle
23
- }
22
+ /*#__PURE__*/ jsxs(Head, {
23
+ children: [
24
+ themeStyle && /*#__PURE__*/ jsx("style", {
25
+ "data-id": "global-style",
26
+ type: "text/css",
27
+ dangerouslySetInnerHTML: {
28
+ __html: themeStyle
29
+ }
30
+ }),
31
+ fontStyle && /*#__PURE__*/ jsx("style", {
32
+ "data-id": "google-fonts",
33
+ type: "text/css",
34
+ dangerouslySetInnerHTML: {
35
+ __html: fontStyle
36
+ }
37
+ })
38
+ ]
24
39
  }),
25
- /*#__PURE__*/ jsx(Suspense, {
26
- fallback: /*#__PURE__*/ jsx("div", {
27
- children: "Loading..."
28
- }),
29
- children: /*#__PURE__*/ jsx(PageProvider, {
30
- children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
31
- components: components,
32
- children: /*#__PURE__*/ jsx(SectionProvider, {
33
- data: sectionData,
34
- children: /*#__PURE__*/ jsx(CollectionProvider, {
35
- collection: collection,
36
- children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
37
- state: builderData,
38
- children: /*#__PURE__*/ jsx(Render, {
39
- uid: "ROOT"
40
- })
40
+ /*#__PURE__*/ jsx(PageProvider, {
41
+ children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
42
+ components: components,
43
+ children: /*#__PURE__*/ jsx(SectionProvider, {
44
+ data: sectionData,
45
+ children: /*#__PURE__*/ jsx(CollectionProvider, {
46
+ collection: collection,
47
+ children: builderData && /*#__PURE__*/ jsx(BuilderProvider, {
48
+ state: builderData,
49
+ children: /*#__PURE__*/ jsx(Render, {
50
+ uid: "ROOT"
41
51
  })
42
52
  })
43
53
  })
@@ -1,29 +1,41 @@
1
1
  'use client';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render, AddOn } from '@gem-sdk/core';
4
+ import { NextSeo } from 'next-seo';
4
5
  import dynamic from 'next/dynamic';
5
- import { Suspense } from 'react';
6
+ import Head from 'next/head';
7
+ import { useRouter } from 'next/router';
6
8
 
7
9
  const ProductProvider = dynamic(()=>import('@gem-sdk/core').then((m)=>m.ProductProvider));
8
- const ProductDetailPage = ({ themeStyle, fontStyle, product, components, builderData, sectionData })=>{
9
- return /*#__PURE__*/ jsxs(Suspense, {
10
- fallback: /*#__PURE__*/ jsx("div", {
10
+ const ProductDetailPage = ({ themeStyle, fontStyle, seo, product, components, builderData, sectionData })=>{
11
+ const router = useRouter();
12
+ if (router.isFallback) {
13
+ return /*#__PURE__*/ jsx("div", {
11
14
  children: "Loading..."
12
- }),
15
+ });
16
+ }
17
+ return /*#__PURE__*/ jsxs(Fragment, {
13
18
  children: [
14
- themeStyle && /*#__PURE__*/ jsx("style", {
15
- "data-id": "global-style",
16
- type: "text/css",
17
- dangerouslySetInnerHTML: {
18
- __html: themeStyle
19
- }
19
+ /*#__PURE__*/ jsx(NextSeo, {
20
+ ...seo
20
21
  }),
21
- fontStyle && /*#__PURE__*/ jsx("style", {
22
- "data-id": "google-fonts",
23
- type: "text/css",
24
- dangerouslySetInnerHTML: {
25
- __html: fontStyle
26
- }
22
+ /*#__PURE__*/ jsxs(Head, {
23
+ children: [
24
+ themeStyle && /*#__PURE__*/ jsx("style", {
25
+ "data-id": "global-style",
26
+ type: "text/css",
27
+ dangerouslySetInnerHTML: {
28
+ __html: themeStyle
29
+ }
30
+ }),
31
+ fontStyle && /*#__PURE__*/ jsx("style", {
32
+ "data-id": "google-fonts",
33
+ type: "text/css",
34
+ dangerouslySetInnerHTML: {
35
+ __html: fontStyle
36
+ }
37
+ })
38
+ ]
27
39
  }),
28
40
  /*#__PURE__*/ jsx(PageProvider, {
29
41
  children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
@@ -1,53 +1,94 @@
1
1
  'use client';
2
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
4
+ import { NextSeo } from 'next-seo';
5
+ import Head from 'next/head';
6
+ import { useRouter } from 'next/router';
4
7
  import { useTrackingView } from '../libs/hooks/use-tracking-view.js';
5
8
  import { parseHtml } from '../libs/parse-html.js';
6
9
  import Header from '../components/builder/Header.js';
7
10
  import FooterForPostPurchase from '../components/FooterForPostPurchase.js';
8
11
  import Script from 'next/script';
12
+ import { useEffect } from 'react';
9
13
 
10
- const StaticPageV2 = ({ components, builderData, sectionData, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, isPreview, interaction, pageBackground })=>{
14
+ const StaticPageV2 = ({ components, builderData, sectionData, seo, themeStyle, fontStyle, elementFontStyle, customCodeHeader, shopToken, pageHandle, customFonts, isPostPurchase, shopName, productOffers, publicStoreFrontData, isPreview, interaction, pageBackground })=>{
15
+ const router = useRouter();
11
16
  const baseAssetURL = process.env.NEXT_GP_BASE_ASSET_URL || 'https://d3kbi0je7pp4lw.cloudfront.net';
12
- useTrackingView(shopToken, pageHandle);
17
+ useTrackingView(shopToken, pageHandle, router.isFallback);
18
+ const customCodeHeaderID = 'custom-code-header';
19
+ useEffect(()=>{
20
+ const customCodeHeaderElement = document.querySelectorAll(`#${customCodeHeaderID}`);
21
+ if (customCodeHeaderElement.length > 1) {
22
+ customCodeHeaderElement.forEach((script, index)=>{
23
+ if (index !== 0) script.remove();
24
+ });
25
+ }
26
+ }, []);
27
+ if (router.isFallback) {
28
+ return /*#__PURE__*/ jsx("div", {
29
+ className: "gp-flex gp-h-[100vh] gp-items-center gp-justify-center",
30
+ children: /*#__PURE__*/ jsxs("div", {
31
+ className: "gp-flex gp-gap-2",
32
+ children: [
33
+ /*#__PURE__*/ jsx("span", {
34
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_alternate] gp-rounded-full gp-bg-slate-800"
35
+ }),
36
+ /*#__PURE__*/ jsx("span", {
37
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_200ms_linear_alternate] gp-rounded-full gp-bg-slate-800"
38
+ }),
39
+ /*#__PURE__*/ jsx("span", {
40
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_500ms_alternate] gp-rounded-full gp-bg-slate-800"
41
+ })
42
+ ]
43
+ })
44
+ });
45
+ }
46
+ const hasInteraction = (interaction?.value || []).length > 0;
13
47
  return /*#__PURE__*/ jsxs(Fragment, {
14
48
  children: [
15
- parseHtml(customCodeHeader),
16
- themeStyle && /*#__PURE__*/ jsx("style", {
17
- "data-id": "global-style",
18
- type: "text/css",
19
- dangerouslySetInnerHTML: {
20
- __html: themeStyle
21
- }
49
+ /*#__PURE__*/ jsx(NextSeo, {
50
+ ...seo
22
51
  }),
23
- fontStyle && /*#__PURE__*/ jsx("style", {
24
- "data-id": "google-fonts",
25
- type: "text/css",
26
- dangerouslySetInnerHTML: {
27
- __html: fontStyle
28
- }
52
+ /*#__PURE__*/ jsxs(Head, {
53
+ children: [
54
+ parseHtml(customCodeHeaderID, customCodeHeader, true),
55
+ themeStyle && /*#__PURE__*/ jsx("style", {
56
+ "data-id": "global-style",
57
+ type: "text/css",
58
+ dangerouslySetInnerHTML: {
59
+ __html: themeStyle
60
+ }
61
+ }, "global-style"),
62
+ fontStyle && /*#__PURE__*/ jsx("style", {
63
+ "data-id": "google-fonts",
64
+ type: "text/css",
65
+ dangerouslySetInnerHTML: {
66
+ __html: fontStyle
67
+ }
68
+ }, "google-fonts"),
69
+ elementFontStyle && elementFontStyle.map((fontStyle)=>/*#__PURE__*/ jsx("style", {
70
+ "data-id": "google-element-fonts",
71
+ type: "text/css",
72
+ dangerouslySetInnerHTML: {
73
+ __html: fontStyle
74
+ }
75
+ }, fontStyle)),
76
+ customFonts && /*#__PURE__*/ jsx("style", {
77
+ "data-id": "custom-element-fonts",
78
+ type: "text/css",
79
+ dangerouslySetInnerHTML: {
80
+ __html: customFonts
81
+ }
82
+ }, fontStyle),
83
+ pageBackground?.isUsePageBackground && pageBackground?.background && /*#__PURE__*/ jsx("style", {
84
+ children: `
85
+ body {
86
+ background: ${pageBackground.background};
87
+ }
88
+ `
89
+ }, `page_background_${pageBackground?.background}`)
90
+ ]
29
91
  }),
30
- elementFontStyle && elementFontStyle.map((fontStyle)=>/*#__PURE__*/ jsx("style", {
31
- "data-id": "google-element-fonts",
32
- type: "text/css",
33
- dangerouslySetInnerHTML: {
34
- __html: fontStyle
35
- }
36
- }, fontStyle)),
37
- customFonts && /*#__PURE__*/ jsx("style", {
38
- "data-id": "custom-element-fonts",
39
- type: "text/css",
40
- dangerouslySetInnerHTML: {
41
- __html: customFonts
42
- }
43
- }, fontStyle),
44
- pageBackground?.isUsePageBackground && pageBackground?.background && /*#__PURE__*/ jsx("style", {
45
- children: `
46
- body {
47
- background: ${pageBackground.background};
48
- }
49
- `
50
- }, `page_background_${pageBackground?.background}`),
51
92
  /*#__PURE__*/ jsx(PageProvider, {
52
93
  productOffers: productOffers,
53
94
  publicStoreFrontData: publicStoreFrontData,
@@ -59,7 +100,7 @@ const StaticPageV2 = ({ components, builderData, sectionData, themeStyle, fontSt
59
100
  isPostPurchase && /*#__PURE__*/ jsx(Header, {
60
101
  pageType: "POST_PURCHASE"
61
102
  }),
62
- /*#__PURE__*/ jsx("div", {
103
+ hasInteraction && /*#__PURE__*/ jsx("div", {
63
104
  dangerouslySetInnerHTML: {
64
105
  __html: `<div id="gp-interaction" style="display: none;">${JSON.stringify(interaction?.value || [])}</div>`
65
106
  }
@@ -76,9 +117,8 @@ const StaticPageV2 = ({ components, builderData, sectionData, themeStyle, fontSt
76
117
  /*#__PURE__*/ jsx(Render, {
77
118
  uid: builder.uid
78
119
  }),
79
- /*#__PURE__*/ jsx(Script, {
120
+ hasInteraction && /*#__PURE__*/ jsx(Script, {
80
121
  defer: true,
81
- strategy: "lazyOnload",
82
122
  src: `${baseAssetURL}/assets-v2/gp-flow-action-lip.js`
83
123
  })
84
124
  ]
@@ -1,42 +1,53 @@
1
1
  'use client';
2
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { PageProvider, BuilderComponentProvider, SectionProvider, BuilderProvider, Render } from '@gem-sdk/core';
4
- import { Suspense } from 'react';
4
+ import { NextSeo } from 'next-seo';
5
+ import Head from 'next/head';
6
+ import { useRouter } from 'next/router';
5
7
 
6
- const StaticPage = ({ components, builderData, sectionData, themeStyle, fontStyle })=>{
7
- const fallbackContent = /*#__PURE__*/ jsx("div", {
8
- className: "gp-flex gp-h-[100vh] gp-items-center gp-justify-center",
9
- children: /*#__PURE__*/ jsxs("div", {
10
- className: "gp-flex gp-gap-2",
11
- children: [
12
- /*#__PURE__*/ jsx("span", {
13
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_alternate] gp-rounded-full gp-bg-slate-800"
14
- }),
15
- /*#__PURE__*/ jsx("span", {
16
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_200ms_linear_alternate] gp-rounded-full gp-bg-slate-800"
17
- }),
18
- /*#__PURE__*/ jsx("span", {
19
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_500ms_alternate] gp-rounded-full gp-bg-slate-800"
20
- })
21
- ]
22
- })
23
- });
24
- return /*#__PURE__*/ jsxs(Suspense, {
25
- fallback: fallbackContent,
8
+ const StaticPage = ({ components, builderData, sectionData, seo, themeStyle, fontStyle })=>{
9
+ const router = useRouter();
10
+ if (router.isFallback) {
11
+ return /*#__PURE__*/ jsx("div", {
12
+ className: "gp-flex gp-h-[100vh] gp-items-center gp-justify-center",
13
+ children: /*#__PURE__*/ jsxs("div", {
14
+ className: "gp-flex gp-gap-2",
15
+ children: [
16
+ /*#__PURE__*/ jsx("span", {
17
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_alternate] gp-rounded-full gp-bg-slate-800"
18
+ }),
19
+ /*#__PURE__*/ jsx("span", {
20
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_200ms_linear_alternate] gp-rounded-full gp-bg-slate-800"
21
+ }),
22
+ /*#__PURE__*/ jsx("span", {
23
+ className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_500ms_alternate] gp-rounded-full gp-bg-slate-800"
24
+ })
25
+ ]
26
+ })
27
+ });
28
+ }
29
+ return /*#__PURE__*/ jsxs(Fragment, {
26
30
  children: [
27
- themeStyle && /*#__PURE__*/ jsx("style", {
28
- "data-id": "global-style",
29
- type: "text/css",
30
- dangerouslySetInnerHTML: {
31
- __html: themeStyle
32
- }
31
+ /*#__PURE__*/ jsx(NextSeo, {
32
+ ...seo
33
33
  }),
34
- fontStyle && /*#__PURE__*/ jsx("style", {
35
- "data-id": "google-fonts",
36
- type: "text/css",
37
- dangerouslySetInnerHTML: {
38
- __html: fontStyle
39
- }
34
+ /*#__PURE__*/ jsxs(Head, {
35
+ children: [
36
+ themeStyle && /*#__PURE__*/ jsx("style", {
37
+ "data-id": "global-style",
38
+ type: "text/css",
39
+ dangerouslySetInnerHTML: {
40
+ __html: themeStyle
41
+ }
42
+ }),
43
+ fontStyle && /*#__PURE__*/ jsx("style", {
44
+ "data-id": "google-fonts",
45
+ type: "text/css",
46
+ dangerouslySetInnerHTML: {
47
+ __html: fontStyle
48
+ }
49
+ })
50
+ ]
40
51
  }),
41
52
  /*#__PURE__*/ jsx(PageProvider, {
42
53
  children: /*#__PURE__*/ jsx(BuilderComponentProvider, {
@@ -41,11 +41,11 @@ type PageBuilderProps = {
41
41
  isStorefront?: boolean;
42
42
  customFonts?: string | null;
43
43
  interaction?: ShopType.Maybe<Pick<ShopType.PublishedPageInteraction, 'id' | 'value'>>;
44
+ timezone?: string;
44
45
  pageBackground?: {
45
46
  isUsePageBackground?: boolean;
46
47
  background?: string;
47
48
  };
48
- timezone?: string;
49
49
  };
50
50
  type PageBuilderPropsV2 = {
51
51
  builderData?: {
@@ -123,8 +123,8 @@ declare const usePagePreview: (dataBuilder: ThemePageQueryResponse['themePage'],
123
123
  pageConfig: {
124
124
  mobileOnly: boolean;
125
125
  locale: string | null;
126
- languageIsoCode: ("ID" | "AF" | "AM" | "AR" | "AZ" | "BE" | "BG" | "BM" | "BN" | "BO" | "BR" | "BS" | "CA" | "CU" | "CY" | "DE" | "DZ" | "EE" | "ES" | "ET" | "FI" | "FO" | "FR" | "GA" | "GD" | "GL" | "HR" | "HU" | "IS" | "IT" | "KI" | "KM" | "KN" | "KW" | "KY" | "LB" | "LT" | "LU" | "LV" | "MG" | "MK" | "ML" | "MN" | "MR" | "MS" | "MT" | "MY" | "NE" | "NL" | "NO" | "OM" | "PA" | "PL" | "PS" | "PT" | "RO" | "RU" | "RW" | "SD" | "SE" | "SG" | "SI" | "SK" | "SL" | "SN" | "SO" | "SR" | "SV" | "TA" | "TG" | "TH" | "TK" | "TO" | "TR" | "TT" | "UG" | "UZ" | "AK" | "AS" | "CE" | "CS" | "DA" | "EL" | "EN" | "EO" | "EU" | "FA" | "FF" | "FY" | "GU" | "GV" | "HA" | "HE" | "HI" | "HY" | "IA" | "IG" | "II" | "JA" | "JV" | "KA" | "KK" | "KL" | "KO" | "KS" | "KU" | "LG" | "LN" | "LO" | "MI" | "NB" | "ND" | "NN" | "OR" | "OS" | "PT_BR" | "PT_PT" | "QU" | "RM" | "RN" | "SQ" | "SU" | "SW" | "TE" | "TI" | "UK" | "UR" | "VI" | "VO" | "WO" | "XH" | "YI" | "YO" | "ZH" | "ZH_CN" | "ZH_TW" | "ZU") | null;
127
- countryIsoCode: ("ID" | "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AR" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MK" | "ML" | "MM" | "MN" | "MO" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PS" | "PT" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TA" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "ZZ") | null;
126
+ languageIsoCode: ("ID" | "LT" | "AF" | "AM" | "AR" | "AZ" | "BE" | "BG" | "BM" | "BN" | "BO" | "BR" | "BS" | "CA" | "CU" | "CY" | "DE" | "DZ" | "EE" | "ES" | "ET" | "FI" | "FO" | "FR" | "GA" | "GD" | "GL" | "HR" | "HU" | "IS" | "IT" | "KI" | "KM" | "KN" | "KW" | "KY" | "LA" | "LB" | "LU" | "LV" | "MG" | "MK" | "ML" | "MN" | "MO" | "MR" | "MS" | "MT" | "MY" | "NE" | "NL" | "NO" | "OM" | "PA" | "PL" | "PS" | "PT" | "RO" | "RU" | "RW" | "SA" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SK" | "SL" | "SN" | "SO" | "SR" | "SV" | "TA" | "TG" | "TH" | "TK" | "TO" | "TR" | "TT" | "UG" | "UZ" | "AK" | "AS" | "CE" | "CKB" | "CS" | "DA" | "EL" | "EN" | "EO" | "EU" | "FA" | "FF" | "FIL" | "FY" | "GU" | "GV" | "HA" | "HE" | "HI" | "HY" | "IA" | "IG" | "II" | "JA" | "JV" | "KA" | "KK" | "KL" | "KO" | "KS" | "KU" | "LG" | "LN" | "LO" | "MI" | "NB" | "ND" | "NN" | "OR" | "OS" | "PT_BR" | "PT_PT" | "QU" | "RM" | "RN" | "SQ" | "SU" | "SW" | "TE" | "TI" | "UK" | "UR" | "VI" | "VO" | "WO" | "XH" | "YI" | "YO" | "ZH" | "ZH_CN" | "ZH_TW" | "ZU") | null;
127
+ countryIsoCode: ("ID" | "GT" | "LT" | "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AR" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MK" | "ML" | "MM" | "MN" | "MO" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PS" | "PT" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TA" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "ZZ") | null;
128
128
  moneyFormat: string | null;
129
129
  currency: ("AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BYR" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KID" | "KMF" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LTL" | "LVL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VEF" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "XXX" | "YER" | "ZAR" | "ZMW") | null;
130
130
  swatches: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "2.0.0-dev.168",
3
+ "version": "2.0.0-dev.184",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -26,10 +26,10 @@
26
26
  "next": "latest"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "2.0.0-dev.168",
30
- "@gem-sdk/plugin-cookie-bar": "1.58.0-dev.142",
31
- "@gem-sdk/plugin-quick-view": "1.58.0-dev.142",
32
- "@gem-sdk/plugin-sticky-add-to-cart": "1.58.0-dev.142"
29
+ "@gem-sdk/core": "2.0.0-dev.184",
30
+ "@gem-sdk/plugin-cookie-bar": "2.0.0-dev.184",
31
+ "@gem-sdk/plugin-quick-view": "2.0.0-dev.184",
32
+ "@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.184"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "next": ">=13"