@gfed-medusa/sf-lib-products 1.9.1 → 1.9.4
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/components/behavior-tracker/index.d.ts.map +1 -1
- package/dist/components/behavior-tracker/index.js +28 -39
- package/dist/components/behavior-tracker/index.js.map +1 -1
- package/dist/components/browse-product-preview/index.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/product-actions/index.d.ts +2 -2
- package/dist/components/product-onboarding-cta/index.d.ts +2 -2
- package/dist/components/product-price/index.d.ts +2 -2
- package/dist/components/product-tabs/index.d.ts +2 -2
- package/dist/components/refinement-list/index.d.ts +2 -2
- package/dist/components/related-products/index.d.ts +2 -2
- package/dist/components/related-products/index.d.ts.map +1 -1
- package/dist/components/skeleton-product-grid/index.d.ts +2 -2
- package/dist/components/skeleton-product-preview/index.d.ts +2 -2
- package/dist/components/skeleton-related-products/index.d.ts +2 -2
- package/dist/components/skeleton-related-products/index.d.ts.map +1 -1
- package/dist/lib/gql/fragments/cart.d.ts +9 -9
- package/dist/lib/gql/fragments/product.d.ts +16 -16
- package/dist/lib/gql/fragments/product.d.ts.map +1 -1
- package/dist/lib/gql/mutations/cart.d.ts +10 -10
- package/dist/lib/gql/queries/cart.d.ts +2 -2
- package/dist/lib/gql/queries/product.d.ts +13 -13
- package/dist/lib/gql/queries/product.d.ts.map +1 -1
- package/dist/templates/paginated-products/client.d.ts +2 -2
- package/dist/templates/paginated-products/index.d.ts +2 -2
- package/dist/templates/product-actions-wrapper/index.d.ts +2 -2
- package/dist/templates/product-actions-wrapper/index.d.ts.map +1 -1
- package/dist/templates/product-info/index.d.ts +2 -2
- package/dist/templates/store-template/index.d.ts +2 -2
- package/dist/templates/store-template/index.d.ts.map +1 -1
- package/package.json +3 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":[],"mappings":";;;UAkJiB,oBAAA;WACN;AADX;AAIgB,iBAAA,eAAA,CAAkB;EAAW;AAAoB,CAApB,EAAA,oBAAoB,CAAA,EAAA,IAAA"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
-
import Cookies from "js-cookie";
|
|
5
4
|
import { PERSONALIZATION_CONFIG, getSegmentIdFromCollection } from "@gfed-medusa/sf-lib-common/lib/personalization/config";
|
|
6
5
|
import { useStorefrontContext } from "@gfed-medusa/sf-lib-common/lib/data/context";
|
|
7
6
|
|
|
8
7
|
//#region src/components/behavior-tracker/index.tsx
|
|
8
|
+
function buildCookieAttrs() {
|
|
9
|
+
return `path=/;max-age=${3600 * 24 * 7};SameSite=none;secure;domain=.justgood.win`;
|
|
10
|
+
}
|
|
9
11
|
const PDP_HESITATION_MS = PERSONALIZATION_CONFIG.pdpHesitationMs;
|
|
10
12
|
const HIGH_SCROLL_THRESHOLD = PERSONALIZATION_CONFIG.highScrollThreshold;
|
|
11
13
|
const PRICE_THRESHOLD_USD = PERSONALIZATION_CONFIG.priceThresholdUsd;
|
|
12
|
-
const SIGNAL_COOKIE = "_jg_segment";
|
|
13
|
-
const cookieOptions = {
|
|
14
|
-
path: "/",
|
|
15
|
-
sameSite: "none",
|
|
16
|
-
secure: true,
|
|
17
|
-
domain: ".justgood.win"
|
|
18
|
-
};
|
|
19
14
|
function getScrollPercentage() {
|
|
20
15
|
const scrollTop = window.scrollY;
|
|
21
16
|
const docHeight = document.documentElement.scrollHeight - window.innerHeight;
|
|
@@ -43,33 +38,28 @@ function throttle(fn, limit) {
|
|
|
43
38
|
}
|
|
44
39
|
});
|
|
45
40
|
}
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
try {
|
|
50
|
-
|
|
41
|
+
function emitSignal(type, payload) {
|
|
42
|
+
const match = document.cookie.match(/_jg_segment=([^;]+)/);
|
|
43
|
+
let data = {};
|
|
44
|
+
if (match) try {
|
|
45
|
+
data = JSON.parse(decodeURIComponent(match[1]));
|
|
51
46
|
} catch {
|
|
52
|
-
|
|
47
|
+
data = {};
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const updated = {
|
|
58
|
-
interest: data.interest,
|
|
59
|
-
history: data.history,
|
|
60
|
-
signals: data.signals ?? {}
|
|
61
|
-
};
|
|
62
|
-
updated.signals[type] = payload ?? true;
|
|
63
|
-
Cookies.set(SIGNAL_COOKIE, JSON.stringify(updated), {
|
|
64
|
-
...cookieOptions,
|
|
65
|
-
expires: 7
|
|
66
|
-
});
|
|
49
|
+
if (!data.signals || typeof data.signals !== "object") data.signals = {};
|
|
50
|
+
data.signals[type] = payload ?? true;
|
|
51
|
+
document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;
|
|
67
52
|
}
|
|
68
53
|
const REPEAT_CATEGORY_THRESHOLD = 3;
|
|
69
54
|
function trackRepeatedCategoryView(segment) {
|
|
70
55
|
try {
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
const match = document.cookie.match(/_jg_segment=([^;]+)/);
|
|
57
|
+
let data = { signals: {} };
|
|
58
|
+
if (match) try {
|
|
59
|
+
data = JSON.parse(decodeURIComponent(match[1]));
|
|
60
|
+
} catch {
|
|
61
|
+
data = {};
|
|
62
|
+
}
|
|
73
63
|
if (!data.signals || typeof data.signals !== "object") data.signals = {};
|
|
74
64
|
const categoryCounts = data.signals["repeated-category-view"] ?? {};
|
|
75
65
|
const newCount = (categoryCounts[segment] ?? 0) + 1;
|
|
@@ -79,23 +69,22 @@ function trackRepeatedCategoryView(segment) {
|
|
|
79
69
|
segment,
|
|
80
70
|
count: newCount
|
|
81
71
|
});
|
|
82
|
-
|
|
83
|
-
...cookieOptions,
|
|
84
|
-
expires: 7
|
|
85
|
-
});
|
|
72
|
+
document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;
|
|
86
73
|
} catch {}
|
|
87
74
|
}
|
|
88
75
|
function addHistoryToCookie(segment) {
|
|
89
76
|
try {
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
const match = document.cookie.match(/_jg_segment=([^;]+)/);
|
|
78
|
+
let data = { history: [] };
|
|
79
|
+
if (match) try {
|
|
80
|
+
data = JSON.parse(decodeURIComponent(match[1]));
|
|
81
|
+
} catch {
|
|
82
|
+
data = {};
|
|
83
|
+
}
|
|
92
84
|
if (!data.history || !Array.isArray(data.history)) data.history = [];
|
|
93
85
|
const history = [...data.history, segment].slice(-PERSONALIZATION_CONFIG.historyMaxLength);
|
|
94
86
|
data.history = history;
|
|
95
|
-
|
|
96
|
-
...cookieOptions,
|
|
97
|
-
expires: 7
|
|
98
|
-
});
|
|
87
|
+
document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;
|
|
99
88
|
} catch {}
|
|
100
89
|
}
|
|
101
90
|
function BehaviorTracker({ product }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["cheapest: number | null","data: Record<string, unknown>"],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useRef } from 'react';\n\nimport {\n PERSONALIZATION_CONFIG,\n getSegmentIdFromCollection,\n} from '@gfed-medusa/sf-lib-common/lib/personalization/config';\n\nfunction buildCookieAttrs(): string {\n const maxAge = 60 * 60 * 24 * 7;\n if (process.env.NODE_ENV === 'production') {\n return `path=/;max-age=${maxAge};SameSite=none;secure;domain=.justgood.win`;\n }\n return `path=/;max-age=${maxAge};SameSite=Lax`;\n}\nimport { useStorefrontContext } from '@gfed-medusa/sf-lib-common/lib/data/context';\nimport { Product } from '@/types/graphql';\n\nconst PDP_HESITATION_MS = PERSONALIZATION_CONFIG.pdpHesitationMs;\nconst HIGH_SCROLL_THRESHOLD = PERSONALIZATION_CONFIG.highScrollThreshold;\nconst PRICE_THRESHOLD_USD = PERSONALIZATION_CONFIG.priceThresholdUsd;\n\nfunction getScrollPercentage(): number {\n const scrollTop = window.scrollY;\n const docHeight =\n document.documentElement.scrollHeight - window.innerHeight;\n return docHeight > 0 ? scrollTop / docHeight : 0;\n}\n\nfunction getCheapestVariantPrice(product: Product): number | null {\n const variants = product.variants;\n if (!variants || variants.length === 0) return null;\n\n let cheapest: number | null = null;\n\n for (const variant of variants) {\n const priceObj = variant.price;\n if (priceObj && typeof priceObj.amount === 'number') {\n if (cheapest === null || priceObj.amount < cheapest) {\n cheapest = priceObj.amount;\n }\n }\n }\n\n return cheapest;\n}\n\nfunction throttle<T extends (...args: unknown[]) => void>(\n fn: T,\n limit: number\n): T {\n let lastCall = 0;\n return ((...args: unknown[]) => {\n const now = Date.now();\n if (now - lastCall >= limit) {\n lastCall = now;\n fn(...args);\n }\n }) as T;\n}\n\nfunction emitSignal(type: string, payload?: unknown) {\n const match = document.cookie.match(/_jg_segment=([^;]+)/);\n let data: Record<string, unknown> = {};\n\n if (match) {\n try {\n data = JSON.parse(decodeURIComponent(match[1] as string));\n } catch {\n data = {};\n }\n }\n\n if (!data.signals || typeof data.signals !== 'object') {\n data.signals = {};\n }\n\n (data.signals as Record<string, unknown>)[type] = payload ?? true;\n\n document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;\n}\n\nconst REPEAT_CATEGORY_THRESHOLD = 3;\n\nfunction trackRepeatedCategoryView(segment: string) {\n try {\n const match = document.cookie.match(/_jg_segment=([^;]+)/);\n let data: Record<string, unknown> = { signals: {} };\n\n if (match) {\n try {\n data = JSON.parse(decodeURIComponent(match[1] as string));\n } catch {\n data = {};\n }\n }\n\n if (!data.signals || typeof data.signals !== 'object') {\n data.signals = {};\n }\n\n const categoryCounts = (data.signals as Record<string, unknown>)['repeated-category-view'] as Record<string, number> ?? {};\n const currentCount = categoryCounts[segment] ?? 0;\n const newCount = currentCount + 1;\n\n categoryCounts[segment] = newCount;\n (data.signals as Record<string, unknown>)['repeated-category-view'] = categoryCounts;\n\n if (newCount >= REPEAT_CATEGORY_THRESHOLD) {\n emitSignal('repeated-category-view', { segment, count: newCount });\n }\n\n document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;\n } catch {\n // Ignore\n }\n}\n\nfunction addHistoryToCookie(segment: string): void {\n try {\n const match = document.cookie.match(/_jg_segment=([^;]+)/);\n let data: Record<string, unknown> = { history: [] };\n\n if (match) {\n try {\n data = JSON.parse(decodeURIComponent(match[1] as string));\n } catch {\n data = {};\n }\n }\n\n if (!data.history || !Array.isArray(data.history)) {\n data.history = [];\n }\n\n const history = [...(data.history as string[]), segment].slice(\n -PERSONALIZATION_CONFIG.historyMaxLength\n );\n data.history = history;\n\n document.cookie = `_jg_segment=${encodeURIComponent(JSON.stringify(data))};${buildCookieAttrs()}`;\n } catch {\n }\n}\n\nexport interface BehaviorTrackerProps {\n product: Product;\n}\n\nexport function BehaviorTracker({ product }: BehaviorTrackerProps) {\n const { cartId } = useStorefrontContext();\n const hesitationTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(\n null\n );\n const scrollHandlerRef = useRef<(() => void) | null>(null);\n const scrollTrackedRef = useRef(false);\n const historyTrackedRef = useRef(false);\n\n useEffect(() => {\n if (!product?.id) return;\n\n const collectionHandle = product.collection?.handle;\n const segment = getSegmentIdFromCollection(collectionHandle);\n\n if (segment) {\n addHistoryToCookie(segment);\n trackRepeatedCategoryView(segment);\n }\n\n const productPrice = getCheapestVariantPrice(product);\n const hasCart = Boolean(cartId);\n\n if (productPrice && productPrice >= PRICE_THRESHOLD_USD && !hasCart) {\n hesitationTimeoutRef.current = setTimeout(() => {\n emitSignal('pdp-hesitation', {\n productId: product.id,\n price: productPrice,\n });\n }, PDP_HESITATION_MS);\n }\n\n const handleScroll = throttle(() => {\n if (scrollTrackedRef.current) return;\n if (getScrollPercentage() >= HIGH_SCROLL_THRESHOLD && !hasCart) {\n scrollTrackedRef.current = true;\n emitSignal('high-scroll-no-action', {\n productId: product.id,\n scrollDepth: HIGH_SCROLL_THRESHOLD,\n });\n }\n }, 500);\n\n scrollHandlerRef.current = handleScroll;\n window.addEventListener('scroll', handleScroll, { passive: true });\n\n return () => {\n if (hesitationTimeoutRef.current !== null) {\n clearTimeout(hesitationTimeoutRef.current);\n hesitationTimeoutRef.current = null;\n }\n if (scrollHandlerRef.current !== null) {\n window.removeEventListener('scroll', scrollHandlerRef.current);\n scrollHandlerRef.current = null;\n }\n scrollTrackedRef.current = false;\n };\n }, [product, cartId]);\n\n return null;\n}\n\nexport default BehaviorTracker;\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BrowseProductHitFragment } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/browse-product-preview/index.d.ts
|
|
5
5
|
type BrowseProductPreviewProps = {
|
|
@@ -13,7 +13,7 @@ declare const BrowseProductPreview: ({
|
|
|
13
13
|
isFeatured,
|
|
14
14
|
imagePriority,
|
|
15
15
|
imageFetchPriority
|
|
16
|
-
}: BrowseProductPreviewProps) =>
|
|
16
|
+
}: BrowseProductPreviewProps) => react_jsx_runtime1.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { BrowseProductPreview };
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/pagination/index.d.ts
|
|
4
4
|
declare function Pagination({
|
|
@@ -19,7 +19,7 @@ declare function Pagination({
|
|
|
19
19
|
isLoading?: boolean;
|
|
20
20
|
onLoadMore: () => void;
|
|
21
21
|
'data-testid'?: string;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime3.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Pagination };
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductActionsProduct } from "../../types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/product-actions/index.d.ts
|
|
5
5
|
type ProductActionsProps = {
|
|
@@ -13,7 +13,7 @@ declare function ProductActions({
|
|
|
13
13
|
regionId,
|
|
14
14
|
disabled,
|
|
15
15
|
enableMobileActions
|
|
16
|
-
}: ProductActionsProps):
|
|
16
|
+
}: ProductActionsProps): react_jsx_runtime5.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ProductActionsProps, ProductActions as default };
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/product-onboarding-cta/index.d.ts
|
|
4
|
-
declare function ProductOnboardingCta(): Promise<
|
|
4
|
+
declare function ProductOnboardingCta(): Promise<react_jsx_runtime10.JSX.Element | null>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ProductOnboardingCta as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductVariant } from "../../types/graphql.js";
|
|
2
2
|
import { ProductActionsProduct } from "../../types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/product-price/index.d.ts
|
|
6
6
|
declare function ProductPrice({
|
|
@@ -9,7 +9,7 @@ declare function ProductPrice({
|
|
|
9
9
|
}: {
|
|
10
10
|
product: ProductActionsProduct;
|
|
11
11
|
variant?: ProductVariant;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime9.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ProductPrice as default };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/product-tabs/index.d.ts
|
|
5
5
|
type ProductTabsProps = {
|
|
@@ -7,7 +7,7 @@ type ProductTabsProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ProductTabs: ({
|
|
9
9
|
product
|
|
10
|
-
}: ProductTabsProps) =>
|
|
10
|
+
}: ProductTabsProps) => react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductTabs as default };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "./sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/refinement-list/index.d.ts
|
|
5
5
|
type RefinementListProps = {
|
|
@@ -12,7 +12,7 @@ declare const RefinementList: ({
|
|
|
12
12
|
sortBy,
|
|
13
13
|
"data-testid": dataTestId,
|
|
14
14
|
className
|
|
15
|
-
}: RefinementListProps) =>
|
|
15
|
+
}: RefinementListProps) => react_jsx_runtime2.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { RefinementList as default };
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/related-products/index.d.ts
|
|
5
5
|
type RelatedProductsProps = {
|
|
@@ -9,7 +9,7 @@ type RelatedProductsProps = {
|
|
|
9
9
|
declare function RelatedProducts({
|
|
10
10
|
product,
|
|
11
11
|
countryCode
|
|
12
|
-
}: RelatedProductsProps): Promise<
|
|
12
|
+
}: RelatedProductsProps): Promise<react_jsx_runtime4.JSX.Element | null>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { RelatedProducts as default };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/related-products/index.tsx"],"sourcesContent":[],"mappings":";;;;KASK,oBAAA;WACM;;AAHc,CAAA;AAOK,iBAAA,eAAA,CAAe;EAAA,OAAA;EAAA;AAAA,CAAA,EAG1C,oBAH0C,CAAA,EAGtB,OAHsB,CAGtB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/related-products/index.tsx"],"sourcesContent":[],"mappings":";;;;KASK,oBAAA;WACM;;AAHc,CAAA;AAOK,iBAAA,eAAA,CAAe;EAAA,OAAA;EAAA;AAAA,CAAA,EAG1C,oBAH0C,CAAA,EAGtB,OAHsB,CAGtB,kBAAA,CAAA,GAAA,CAAA,OAAA,GAHsB,IAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-product-grid/index.d.ts
|
|
4
4
|
declare const SkeletonProductGrid: ({
|
|
5
5
|
numberOfProducts
|
|
6
6
|
}: {
|
|
7
7
|
numberOfProducts?: number;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => react_jsx_runtime6.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SkeletonProductGrid as default };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-product-preview/index.d.ts
|
|
4
|
-
declare const SkeletonProductPreview: () =>
|
|
4
|
+
declare const SkeletonProductPreview: () => react_jsx_runtime7.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SkeletonProductPreview as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-related-products/index.d.ts
|
|
4
|
-
declare const SkeletonRelatedProducts: () =>
|
|
4
|
+
declare const SkeletonRelatedProducts: () => react_jsx_runtime8.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SkeletonRelatedProducts as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-related-products/index.tsx"],"sourcesContent":[],"mappings":";;;cAGM,+BAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-related-products/index.tsx"],"sourcesContent":[],"mappings":";;;cAGM,+BAAuB,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client11 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/fragments/cart.d.ts
|
|
4
|
-
declare const LINE_ITEM_FRAGMENT:
|
|
5
|
-
declare const ADDRESS_FRAGMENT:
|
|
6
|
-
declare const SHIPPING_METHODS_FRAGMENT:
|
|
7
|
-
declare const PAYMENT_COLLECTION_FRAGMENT:
|
|
8
|
-
declare const COUNTRY_FRAGMENT:
|
|
9
|
-
declare const REGION_FRAGMENT:
|
|
10
|
-
declare const PROMOTION_FRAGMENT:
|
|
11
|
-
declare const CART_FRAGMENT:
|
|
4
|
+
declare const LINE_ITEM_FRAGMENT: _apollo_client11.DocumentNode;
|
|
5
|
+
declare const ADDRESS_FRAGMENT: _apollo_client11.DocumentNode;
|
|
6
|
+
declare const SHIPPING_METHODS_FRAGMENT: _apollo_client11.DocumentNode;
|
|
7
|
+
declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client11.DocumentNode;
|
|
8
|
+
declare const COUNTRY_FRAGMENT: _apollo_client11.DocumentNode;
|
|
9
|
+
declare const REGION_FRAGMENT: _apollo_client11.DocumentNode;
|
|
10
|
+
declare const PROMOTION_FRAGMENT: _apollo_client11.DocumentNode;
|
|
11
|
+
declare const CART_FRAGMENT: _apollo_client11.DocumentNode;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ADDRESS_FRAGMENT, CART_FRAGMENT, COUNTRY_FRAGMENT, LINE_ITEM_FRAGMENT, PAYMENT_COLLECTION_FRAGMENT, PROMOTION_FRAGMENT, REGION_FRAGMENT, SHIPPING_METHODS_FRAGMENT };
|
|
14
14
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client19 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/fragments/product.d.ts
|
|
4
|
-
declare const PRODUCT_IMAGE_FRAGMENT:
|
|
5
|
-
declare const PRODUCT_TAG_FRAGMENT:
|
|
6
|
-
declare const PRODUCT_OPTION_FRAGMENT:
|
|
7
|
-
declare const PRICE_FRAGMENT:
|
|
8
|
-
declare const PRODUCT_VARIANT_CONTENT_FRAGMENT:
|
|
9
|
-
declare const PRODUCT_VARIANT_PRICING_FRAGMENT:
|
|
10
|
-
declare const PRODUCT_VARIANT_FRAGMENT:
|
|
11
|
-
declare const PRODUCT_CATEGORY_FRAGMENT:
|
|
12
|
-
declare const PRODUCT_COLLECTION_FRAGMENT:
|
|
13
|
-
declare const PRODUCT_CONTENT_FRAGMENT:
|
|
14
|
-
declare const PRODUCT_FRAGMENT:
|
|
15
|
-
declare const PRODUCT_PREVIEW_FRAGMENT:
|
|
16
|
-
declare const COLLECTION_PRODUCTS_FRAGMENT:
|
|
17
|
-
declare const PRODUCT_HIT_FRAGMENT:
|
|
18
|
-
declare const BROWSE_PRODUCT_HIT_FRAGMENT:
|
|
4
|
+
declare const PRODUCT_IMAGE_FRAGMENT: _apollo_client19.DocumentNode;
|
|
5
|
+
declare const PRODUCT_TAG_FRAGMENT: _apollo_client19.DocumentNode;
|
|
6
|
+
declare const PRODUCT_OPTION_FRAGMENT: _apollo_client19.DocumentNode;
|
|
7
|
+
declare const PRICE_FRAGMENT: _apollo_client19.DocumentNode;
|
|
8
|
+
declare const PRODUCT_VARIANT_CONTENT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
9
|
+
declare const PRODUCT_VARIANT_PRICING_FRAGMENT: _apollo_client19.DocumentNode;
|
|
10
|
+
declare const PRODUCT_VARIANT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
11
|
+
declare const PRODUCT_CATEGORY_FRAGMENT: _apollo_client19.DocumentNode;
|
|
12
|
+
declare const PRODUCT_COLLECTION_FRAGMENT: _apollo_client19.DocumentNode;
|
|
13
|
+
declare const PRODUCT_CONTENT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
14
|
+
declare const PRODUCT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
15
|
+
declare const PRODUCT_PREVIEW_FRAGMENT: _apollo_client19.DocumentNode;
|
|
16
|
+
declare const COLLECTION_PRODUCTS_FRAGMENT: _apollo_client19.DocumentNode;
|
|
17
|
+
declare const PRODUCT_HIT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
18
|
+
declare const BROWSE_PRODUCT_HIT_FRAGMENT: _apollo_client19.DocumentNode;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { BROWSE_PRODUCT_HIT_FRAGMENT, COLLECTION_PRODUCTS_FRAGMENT, PRICE_FRAGMENT, PRODUCT_CATEGORY_FRAGMENT, PRODUCT_COLLECTION_FRAGMENT, PRODUCT_CONTENT_FRAGMENT, PRODUCT_FRAGMENT, PRODUCT_HIT_FRAGMENT, PRODUCT_IMAGE_FRAGMENT, PRODUCT_OPTION_FRAGMENT, PRODUCT_PREVIEW_FRAGMENT, PRODUCT_TAG_FRAGMENT, PRODUCT_VARIANT_CONTENT_FRAGMENT, PRODUCT_VARIANT_FRAGMENT, PRODUCT_VARIANT_PRICING_FRAGMENT };
|
|
21
21
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/product.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAKZ,
|
|
1
|
+
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/product.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAKZ,gBAAA,CALkC;cAOtB,sBAIZ,gBAAA,CAJgC;cAMpB,yBASZ,gBAAA,CATmC;AAbvB,cAwBA,cAnBZ,EAyBA,gBAAA,CAN0B,YAnB1B;AAEY,cAyBA,gCArBZ,EAkCA,gBAAA,CAb4C,YArB5C;AAEY,cAkCA,gCAzBZ,EAqCA,gBAAA,CAZ4C,YAzB5C;AAEY,cAqCA,wBA/BZ,EAoDA,gBAAA,CArBoC,YA/BpC;AAEY,cAoDA,yBAvCZ,EA8CA,gBAAA,CAPqC,YAvCrC;AAEY,cA8CA,2BAlCZ,EAwCA,gBAAA,CANuC,YAlCvC;AAEY,cAwCA,wBAnBZ,EAsEA,gBAAA,CAnDoC,YAnBpC;AAEY,cAsEA,gBA/DZ,EAoGA,gBAAA,CArC4B,YA/D5B;AAEY,cAoGA,wBA9FZ,EAgHA,gBAAA,CAlBoC,YA9FpC;AAEY,cAgHA,4BA7DZ,EAoFA,gBAAA,CAvBwC,YA7DxC;AAEY,cAoFA,oBA/CZ,EAuDA,gBAAA,CARgC,YA/ChC;AAEY,cAuDA,2BArCZ,EA+CA,gBAAA,CAVuC,YArCvC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client34 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/mutations/cart.d.ts
|
|
4
|
-
declare const CREATE_CART_MUTATION:
|
|
5
|
-
declare const UPDATE_CART_MUTATION:
|
|
6
|
-
declare const CREATE_LINE_ITEM_MUTATION:
|
|
7
|
-
declare const UPDATE_LINE_ITEM_MUTATION:
|
|
8
|
-
declare const DELETE_LINE_ITEM_MUTATION:
|
|
9
|
-
declare const ADD_SHIPPING_METHOD_MUTATION:
|
|
10
|
-
declare const COMPLETE_CART_MUTATION:
|
|
11
|
-
declare const TRANSFER_CART_MUTATION:
|
|
12
|
-
declare const APPLY_PROMOTIONS_MUTATION:
|
|
4
|
+
declare const CREATE_CART_MUTATION: _apollo_client34.DocumentNode;
|
|
5
|
+
declare const UPDATE_CART_MUTATION: _apollo_client34.DocumentNode;
|
|
6
|
+
declare const CREATE_LINE_ITEM_MUTATION: _apollo_client34.DocumentNode;
|
|
7
|
+
declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client34.DocumentNode;
|
|
8
|
+
declare const DELETE_LINE_ITEM_MUTATION: _apollo_client34.DocumentNode;
|
|
9
|
+
declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client34.DocumentNode;
|
|
10
|
+
declare const COMPLETE_CART_MUTATION: _apollo_client34.DocumentNode;
|
|
11
|
+
declare const TRANSFER_CART_MUTATION: _apollo_client34.DocumentNode;
|
|
12
|
+
declare const APPLY_PROMOTIONS_MUTATION: _apollo_client34.DocumentNode;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ADD_SHIPPING_METHOD_MUTATION, APPLY_PROMOTIONS_MUTATION, COMPLETE_CART_MUTATION, CREATE_CART_MUTATION, CREATE_LINE_ITEM_MUTATION, DELETE_LINE_ITEM_MUTATION, TRANSFER_CART_MUTATION, UPDATE_CART_MUTATION, UPDATE_LINE_ITEM_MUTATION };
|
|
15
15
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client43 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/cart.d.ts
|
|
4
|
-
declare const GET_CART_QUERY:
|
|
4
|
+
declare const GET_CART_QUERY: _apollo_client43.DocumentNode;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { GET_CART_QUERY };
|
|
7
7
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client0 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/product.d.ts
|
|
4
|
-
declare const GET_PRODUCTS_QUERY:
|
|
5
|
-
declare const GET_PRODUCTS_PREVIEW_QUERY:
|
|
6
|
-
declare const GET_PRODUCT_QUERY:
|
|
7
|
-
declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY:
|
|
8
|
-
declare const GET_PRODUCT_PRICING_QUERY:
|
|
9
|
-
declare const GET_PRODUCT_CATEGORIES_QUERY:
|
|
10
|
-
declare const GET_PRODUCT_CATEGORY_QUERY:
|
|
11
|
-
declare const GET_COLLECTIONS_QUERY:
|
|
12
|
-
declare const GET_COLLECTIONS_SUMMARY_QUERY:
|
|
13
|
-
declare const GET_COLLECTION_QUERY:
|
|
14
|
-
declare const SEARCH_SUGGESTIONS_QUERY:
|
|
15
|
-
declare const BROWSE_PRODUCTS_QUERY:
|
|
4
|
+
declare const GET_PRODUCTS_QUERY: _apollo_client0.DocumentNode;
|
|
5
|
+
declare const GET_PRODUCTS_PREVIEW_QUERY: _apollo_client0.DocumentNode;
|
|
6
|
+
declare const GET_PRODUCT_QUERY: _apollo_client0.DocumentNode;
|
|
7
|
+
declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client0.DocumentNode;
|
|
8
|
+
declare const GET_PRODUCT_PRICING_QUERY: _apollo_client0.DocumentNode;
|
|
9
|
+
declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client0.DocumentNode;
|
|
10
|
+
declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client0.DocumentNode;
|
|
11
|
+
declare const GET_COLLECTIONS_QUERY: _apollo_client0.DocumentNode;
|
|
12
|
+
declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client0.DocumentNode;
|
|
13
|
+
declare const GET_COLLECTION_QUERY: _apollo_client0.DocumentNode;
|
|
14
|
+
declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client0.DocumentNode;
|
|
15
|
+
declare const BROWSE_PRODUCTS_QUERY: _apollo_client0.DocumentNode;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { BROWSE_PRODUCTS_QUERY, GET_COLLECTIONS_QUERY, GET_COLLECTIONS_SUMMARY_QUERY, GET_COLLECTION_QUERY, GET_PRODUCTS_PREVIEW_QUERY, GET_PRODUCTS_QUERY, GET_PRODUCT_CATEGORIES_QUERY, GET_PRODUCT_CATEGORY_QUERY, GET_PRODUCT_CONTENT_BY_HANDLE_QUERY, GET_PRODUCT_PRICING_QUERY, GET_PRODUCT_QUERY, SEARCH_SUGGESTIONS_QUERY };
|
|
18
18
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;cAca,oBAkCZ,
|
|
1
|
+
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;cAca,oBAkCZ,eAAA,CAlC8B;cAoClB,4BAkCZ,eAAA,CAlCsC;cAoC1B,mBAOZ,eAAA,CAP6B;AAxEjB,cAiFA,mCAjFkB,EA8F9B,eAAA,CAb+C,YA/C/C;AAEY,cA4DA,yBA1BZ,EAmCA,eAAA,CATqC,YA1BrC;AAEY,cAmCA,4BA5BZ,EAgDA,eAAA,CApBwC,YA5BxC;AAEY,cAgDA,0BAnCZ,EAsDA,eAAA,CAnBsC,YAnCtC;AAEY,cAsDA,qBA7CZ,EAwDA,eAAA,CAXiC,YA7CjC;AAEY,cAwDA,6BApCZ,EA2CA,eAAA,CAPyC,YApCzC;AAEY,cA2CA,oBAxBZ,EAmCA,eAAA,CAXgC,YAxBhC;AAEY,cAmCA,wBAxBZ,EAiCA,eAAA,CAToC,YAxBpC;AAEY,cAiCA,qBA1BZ,EAqDA,eAAA,CA3BiC,YA1BjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BrowseProductHitFragment } from "../../types/graphql.js";
|
|
2
2
|
import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/templates/paginated-products/client.d.ts
|
|
6
6
|
type PaginatedProductsClientProps = {
|
|
@@ -24,7 +24,7 @@ declare function PaginatedProductsClient({
|
|
|
24
24
|
categoryId,
|
|
25
25
|
productsIds,
|
|
26
26
|
countryCode
|
|
27
|
-
}: PaginatedProductsClientProps):
|
|
27
|
+
}: PaginatedProductsClientProps): react_jsx_runtime15.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { PaginatedProductsClient as default };
|
|
30
30
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/paginated-products/index.d.ts
|
|
5
5
|
declare function PaginatedProducts({
|
|
@@ -16,7 +16,7 @@ declare function PaginatedProducts({
|
|
|
16
16
|
categoryId?: string;
|
|
17
17
|
productsIds?: string[];
|
|
18
18
|
countryCode: string;
|
|
19
|
-
}): Promise<
|
|
19
|
+
}): Promise<react_jsx_runtime14.JSX.Element>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PaginatedProducts as default };
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductActionsProduct } from "../../types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
import { Region } from "@gfed-medusa/sf-lib-common/types/graphql";
|
|
4
4
|
|
|
5
5
|
//#region src/templates/product-actions-wrapper/index.d.ts
|
|
@@ -12,7 +12,7 @@ declare function ProductActionsWrapper({
|
|
|
12
12
|
}: {
|
|
13
13
|
product: ProductActionsProduct;
|
|
14
14
|
region: Region;
|
|
15
|
-
}): Promise<
|
|
15
|
+
}): Promise<react_jsx_runtime16.JSX.Element>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ProductActionsWrapper as default };
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/product-actions-wrapper/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAa8B,iBAAA,qBAAA,CAAqB;EAAA,OAAA;EAAA;CAAA,EAAA;EACjD,OAAA,EAGS,qBAHT;EACA,MAAA,EAGQ,MAHR;CAES,CAAA,EAEV,OAFU,CAEV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/product-actions-wrapper/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAa8B,iBAAA,qBAAA,CAAqB;EAAA,OAAA;EAAA;CAAA,EAAA;EACjD,OAAA,EAGS,qBAHT;EACA,MAAA,EAGQ,MAHR;CAES,CAAA,EAEV,OAFU,CAEV,mBAAA,CAAA,GAAA,CAAA,OAAA,CAFU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/product-info/index.d.ts
|
|
5
5
|
type ProductInfoProps = {
|
|
@@ -7,7 +7,7 @@ type ProductInfoProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ProductInfo: ({
|
|
9
9
|
product
|
|
10
|
-
}: ProductInfoProps) =>
|
|
10
|
+
}: ProductInfoProps) => react_jsx_runtime12.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductInfo as default };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/store-template/index.d.ts
|
|
5
5
|
declare const StoreTemplate: ({
|
|
@@ -10,7 +10,7 @@ declare const StoreTemplate: ({
|
|
|
10
10
|
sortBy?: SortOptions;
|
|
11
11
|
page?: string;
|
|
12
12
|
countryCode: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime13.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { StoreTemplate as default };
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/store-template/index.tsx"],"sourcesContent":[],"mappings":";;;;cAQM;;;;;WAKK;;EALL,WAAA,EAAA,MAoCL;CApCsB,EAAA,GAQtB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/store-template/index.tsx"],"sourcesContent":[],"mappings":";;;;cAQM;;;;;WAKK;;EALL,WAAA,EAAA,MAoCL;CApCsB,EAAA,GAQtB,mBAAA,CAAA,GAAA,CAAA,OARsB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfed-medusa/sf-lib-products",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@apollo/client": "^4.0.9",
|
|
54
|
-
"@gfed-medusa/sf-lib-common": "^3.7.
|
|
54
|
+
"@gfed-medusa/sf-lib-common": "^3.7.4",
|
|
55
55
|
"@gfed-medusa/sf-lib-ui": "^1.2.4",
|
|
56
56
|
"@headlessui/react": "^2.2.9",
|
|
57
57
|
"@medusajs/icons": "^2.12.1",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"@radix-ui/react-accordion": "^1.2.1",
|
|
61
61
|
"algoliasearch": "^5.49.1",
|
|
62
62
|
"isomorphic-dompurify": "^2.34.0",
|
|
63
|
-
"js-cookie": "^3.0.5",
|
|
64
63
|
"lodash": "^4.17.21",
|
|
65
64
|
"next": "^15.3.8",
|
|
66
65
|
"react": "^19.2.0",
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
"@graphql-codegen/typescript": "^5.0.0",
|
|
75
74
|
"@graphql-codegen/typescript-operations": "^5.0.0",
|
|
76
75
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
77
|
-
"@types/js-cookie": "^3.0.6",
|
|
78
76
|
"@types/lodash": "^4.14.202",
|
|
79
77
|
"@types/node": "^20",
|
|
80
78
|
"@types/react": "^19",
|
|
@@ -85,8 +83,8 @@
|
|
|
85
83
|
"tsdown": "^0.17.2",
|
|
86
84
|
"typescript": "^5",
|
|
87
85
|
"@packages/eslint-config": "0.0.0",
|
|
88
|
-
"@packages/prettier-config": "0.0.0",
|
|
89
86
|
"@packages/jest-config": "0.0.0",
|
|
87
|
+
"@packages/prettier-config": "0.0.0",
|
|
90
88
|
"@packages/typescript-config": "0.0.0"
|
|
91
89
|
},
|
|
92
90
|
"scripts": {
|