@gfed-medusa/sf-lib-products 1.9.0 → 1.9.1

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 (30) hide show
  1. package/dist/components/behavior-tracker/index.d.ts.map +1 -1
  2. package/dist/components/behavior-tracker/index.js +10 -6
  3. package/dist/components/behavior-tracker/index.js.map +1 -1
  4. package/dist/components/product-onboarding-cta/index.d.ts +2 -2
  5. package/dist/components/product-onboarding-cta/index.d.ts.map +1 -1
  6. package/dist/components/product-price/index.d.ts +2 -2
  7. package/dist/components/product-tabs/index.d.ts +2 -2
  8. package/dist/components/refinement-list/index.d.ts +2 -2
  9. package/dist/components/refinement-list/index.d.ts.map +1 -1
  10. package/dist/components/refinement-list/sort-products/index.d.ts +2 -2
  11. package/dist/components/refinement-list/sort-products/index.d.ts.map +1 -1
  12. package/dist/components/related-products/index.d.ts +2 -2
  13. package/dist/components/skeleton-product-grid/index.d.ts +2 -2
  14. package/dist/components/skeleton-product-grid/index.d.ts.map +1 -1
  15. package/dist/components/skeleton-product-preview/index.d.ts +2 -2
  16. package/dist/components/skeleton-related-products/index.d.ts +2 -2
  17. package/dist/components/skeleton-related-products/index.d.ts.map +1 -1
  18. package/dist/lib/gql/fragments/cart.d.ts +9 -9
  19. package/dist/lib/gql/fragments/cart.d.ts.map +1 -1
  20. package/dist/lib/gql/fragments/product.d.ts +16 -16
  21. package/dist/lib/gql/fragments/product.d.ts.map +1 -1
  22. package/dist/lib/gql/mutations/cart.d.ts +10 -10
  23. package/dist/lib/gql/mutations/cart.d.ts.map +1 -1
  24. package/dist/lib/gql/queries/cart.d.ts +2 -2
  25. package/dist/lib/gql/queries/cart.d.ts.map +1 -1
  26. package/dist/lib/gql/queries/product.d.ts +13 -13
  27. package/dist/templates/product-actions-wrapper/index.d.ts +2 -2
  28. package/dist/templates/product-actions-wrapper/index.d.ts.map +1 -1
  29. package/dist/templates/product-info/index.d.ts +2 -2
  30. package/package.json +5 -5
@@ -1 +1 @@
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;EAAA;AAA+B,CAApB,EAAA,oBAAoB,CAAA,EAAA,IAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":[],"mappings":";;;UAmJiB,oBAAA;WACN;AADX;AAIgB,iBAAA,eAAA,CAAkB;EAAA;AAA+B,CAApB,EAAA,oBAAoB,CAAA,EAAA,IAAA"}
@@ -47,16 +47,20 @@ function getSegmentData() {
47
47
  const value = Cookies.get(SIGNAL_COOKIE);
48
48
  if (!value) return {};
49
49
  try {
50
- return JSON.parse(decodeURIComponent(value));
50
+ return JSON.parse(value);
51
51
  } catch {
52
52
  return {};
53
53
  }
54
54
  }
55
55
  function emitSignal(type, payload) {
56
56
  const data = getSegmentData();
57
- if (!data.signals || typeof data.signals !== "object") data.signals = {};
58
- data.signals[type] = payload ?? true;
59
- Cookies.set(SIGNAL_COOKIE, encodeURIComponent(JSON.stringify(data)), {
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), {
60
64
  ...cookieOptions,
61
65
  expires: 7
62
66
  });
@@ -75,7 +79,7 @@ function trackRepeatedCategoryView(segment) {
75
79
  segment,
76
80
  count: newCount
77
81
  });
78
- Cookies.set(SIGNAL_COOKIE, encodeURIComponent(JSON.stringify(data)), {
82
+ Cookies.set(SIGNAL_COOKIE, JSON.stringify(data), {
79
83
  ...cookieOptions,
80
84
  expires: 7
81
85
  });
@@ -88,7 +92,7 @@ function addHistoryToCookie(segment) {
88
92
  if (!data.history || !Array.isArray(data.history)) data.history = [];
89
93
  const history = [...data.history, segment].slice(-PERSONALIZATION_CONFIG.historyMaxLength);
90
94
  data.history = history;
91
- Cookies.set(SIGNAL_COOKIE, encodeURIComponent(JSON.stringify(data)), {
95
+ Cookies.set(SIGNAL_COOKIE, JSON.stringify(data), {
92
96
  ...cookieOptions,
93
97
  expires: 7
94
98
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["cookieOptions: Cookies.CookieAttributes","cheapest: number | null"],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useRef } from 'react';\nimport Cookies from 'js-cookie';\n\nimport {\n PERSONALIZATION_CONFIG,\n getSegmentIdFromCollection,\n} from '@gfed-medusa/sf-lib-common/lib/personalization/config';\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\nconst SIGNAL_COOKIE = '_jg_segment';\nconst isProd = process.env.NODE_ENV === 'production';\n\nconst cookieOptions: Cookies.CookieAttributes = isProd\n ? { path: '/', sameSite: 'none', secure: true, domain: '.justgood.win' }\n : { path: '/', sameSite: 'lax' };\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 getSegmentData(): Record<string, unknown> {\n const value = Cookies.get(SIGNAL_COOKIE);\n if (!value) return {};\n try {\n return JSON.parse(decodeURIComponent(value));\n } catch {\n return {};\n }\n}\n\nfunction emitSignal(type: string, payload?: unknown) {\n const data = getSegmentData();\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 Cookies.set(\n SIGNAL_COOKIE,\n encodeURIComponent(JSON.stringify(data)),\n { ...cookieOptions, expires: 7 }\n );\n}\n\nconst REPEAT_CATEGORY_THRESHOLD = 3;\n\nfunction trackRepeatedCategoryView(segment: string) {\n try {\n let data = getSegmentData();\n if (Object.keys(data).length === 0) {\n data = { signals: {} };\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 Cookies.set(\n SIGNAL_COOKIE,\n encodeURIComponent(JSON.stringify(data)),\n { ...cookieOptions, expires: 7 }\n );\n } catch {\n // Ignore\n }\n}\n\nfunction addHistoryToCookie(segment: string): void {\n try {\n let data = getSegmentData();\n if (Object.keys(data).length === 0) {\n data = { history: [] };\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 Cookies.set(\n SIGNAL_COOKIE,\n encodeURIComponent(JSON.stringify(data)),\n { ...cookieOptions, expires: 7 }\n );\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;"],"mappings":";;;;;;;;AAYA,MAAM,oBAAoB,uBAAuB;AACjD,MAAM,wBAAwB,uBAAuB;AACrD,MAAM,sBAAsB,uBAAuB;AAEnD,MAAM,gBAAgB;AAGtB,MAAMA,gBACF;CAA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Ae,wBAAwB,QAAQ;EACrD,MAAM,UAAU,QAAQ,OAAO;AAE/B,MAAI,gBAAgB,gBAAgB,uBAAuB,CAAC,QAC1D,sBAAqB,UAAU,iBAAiB;AAC9C,cAAW,kBAAkB;IAC3B,WAAW,QAAQ;IACnB,OAAO;IACR,CAAC;KACD,kBAAkB;EAGvB,MAAM,eAAe,eAAe;AAClC,OAAI,iBAAiB,QAAS;AAC9B,OAAI,qBAAqB,IAAI,yBAAyB,CAAC,SAAS;AAC9D,qBAAiB,UAAU;AAC3B,eAAW,yBAAyB;KAClC,WAAW,QAAQ;KACnB,aAAa;KACd,CAAC;;KAEH,IAAI;AAEP,mBAAiB,UAAU;AAC3B,SAAO,iBAAiB,UAAU,cAAc,EAAE,SAAS,MAAM,CAAC;AAElE,eAAa;AACX,OAAI,qBAAqB,YAAY,MAAM;AACzC,iBAAa,qBAAqB,QAAQ;AAC1C,yBAAqB,UAAU;;AAEjC,OAAI,iBAAiB,YAAY,MAAM;AACrC,WAAO,oBAAoB,UAAU,iBAAiB,QAAQ;AAC9D,qBAAiB,UAAU;;AAE7B,oBAAiB,UAAU;;IAE5B,CAAC,SAAS,OAAO,CAAC;AAErB,QAAO;;AAGT,+BAAe"}
1
+ {"version":3,"file":"index.js","names":["cookieOptions: Cookies.CookieAttributes","cheapest: number | null","updated: Record<string, unknown>"],"sources":["../../../src/components/behavior-tracker/index.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useRef } from 'react';\nimport Cookies from 'js-cookie';\n\nimport {\n PERSONALIZATION_CONFIG,\n getSegmentIdFromCollection,\n} from '@gfed-medusa/sf-lib-common/lib/personalization/config';\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\nconst SIGNAL_COOKIE = '_jg_segment';\nconst isProd = process.env.NODE_ENV === 'production';\n\nconst cookieOptions: Cookies.CookieAttributes = isProd\n ? { path: '/', sameSite: 'none', secure: true, domain: '.justgood.win' }\n : { path: '/', sameSite: 'lax' };\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 getSegmentData(): Record<string, unknown> {\n const value = Cookies.get(SIGNAL_COOKIE);\n if (!value) return {};\n try {\n return JSON.parse(value);\n } catch {\n return {};\n }\n}\n\nfunction emitSignal(type: string, payload?: unknown) {\n const data = getSegmentData();\n const updated: Record<string, unknown> = {\n interest: data.interest,\n history: data.history as string[] | undefined,\n signals: (data.signals as Record<string, unknown>) ?? {},\n };\n (updated.signals as Record<string, unknown>)[type] = payload ?? true;\n\n Cookies.set(\n SIGNAL_COOKIE,\n JSON.stringify(updated),\n { ...cookieOptions, expires: 7 }\n );\n}\n\nconst REPEAT_CATEGORY_THRESHOLD = 3;\n\nfunction trackRepeatedCategoryView(segment: string) {\n try {\n let data = getSegmentData();\n if (Object.keys(data).length === 0) {\n data = { signals: {} };\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 Cookies.set(\n SIGNAL_COOKIE,\n JSON.stringify(data),\n { ...cookieOptions, expires: 7 }\n );\n } catch {\n // Ignore\n }\n}\n\nfunction addHistoryToCookie(segment: string): void {\n try {\n let data = getSegmentData();\n if (Object.keys(data).length === 0) {\n data = { history: [] };\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 Cookies.set(\n SIGNAL_COOKIE,\n JSON.stringify(data),\n { ...cookieOptions, expires: 7 }\n );\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;"],"mappings":";;;;;;;;AAYA,MAAM,oBAAoB,uBAAuB;AACjD,MAAM,wBAAwB,uBAAuB;AACrD,MAAM,sBAAsB,uBAAuB;AAEnD,MAAM,gBAAgB;AAGtB,MAAMA,gBACF;CAAE,MAAM;CAAK,UAAU;CAAQ,QAAQ;CAAM,QAAQ;CAAiB;AAG1E,SAAS,sBAA8B;CACrC,MAAM,YAAY,OAAO;CACzB,MAAM,YACJ,SAAS,gBAAgB,eAAe,OAAO;AACjD,QAAO,YAAY,IAAI,YAAY,YAAY;;AAGjD,SAAS,wBAAwB,SAAiC;CAChE,MAAM,WAAW,QAAQ;AACzB,KAAI,CAAC,YAAY,SAAS,WAAW,EAAG,QAAO;CAE/C,IAAIC,WAA0B;AAE9B,MAAK,MAAM,WAAW,UAAU;EAC9B,MAAM,WAAW,QAAQ;AACzB,MAAI,YAAY,OAAO,SAAS,WAAW,UACzC;OAAI,aAAa,QAAQ,SAAS,SAAS,SACzC,YAAW,SAAS;;;AAK1B,QAAO;;AAGT,SAAS,SACP,IACA,OACG;CACH,IAAI,WAAW;AACf,UAAS,GAAG,SAAoB;EAC9B,MAAM,MAAM,KAAK,KAAK;AACtB,MAAI,MAAM,YAAY,OAAO;AAC3B,cAAW;AACX,MAAG,GAAG,KAAK;;;;AAKjB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B,UAAU;;IAE5B,CAAC,SAAS,OAAO,CAAC;AAErB,QAAO;;AAGT,+BAAe"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/product-onboarding-cta/index.d.ts
4
- declare function ProductOnboardingCta(): Promise<react_jsx_runtime5.JSX.Element | null>;
4
+ declare function ProductOnboardingCta(): Promise<react_jsx_runtime15.JSX.Element | null>;
5
5
  //#endregion
6
6
  export { ProductOnboardingCta as default };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-onboarding-cta/index.tsx"],"sourcesContent":[],"mappings":";;;iBAIe,oBAAA,CAAA,GAAoB,QAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-onboarding-cta/index.tsx"],"sourcesContent":[],"mappings":";;;iBAIe,oBAAA,CAAA,GAAoB,QAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ProductVariant } from "../../types/graphql.js";
2
2
  import { ProductActionsProduct } from "../../types/index.js";
3
- import * as react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime6 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
- }): react_jsx_runtime7.JSX.Element;
12
+ }): react_jsx_runtime6.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 react_jsx_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 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) => react_jsx_runtime9.JSX.Element;
10
+ }: ProductTabsProps) => react_jsx_runtime7.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 react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 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) => react_jsx_runtime10.JSX.Element;
15
+ }: RefinementListProps) => react_jsx_runtime8.JSX.Element;
16
16
  //#endregion
17
17
  export { RefinementList as default };
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/refinement-list/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;EAOlB,SAAA,CAAA,EAAA,MA8CL;CA9CuB;cAAlB,cAAkB,EAAA,CAAA;EAAA,MAAA;EAAA,aAAA,EAAA,UAAA;EAAA;AAAA,CAAA,EAIrB,mBAJqB,EAAA,GAIF,mBAAA,CAAA,GAAA,CAAA,OAJE"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/refinement-list/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;EAOlB,SAAA,CAAA,EAAA,MA8CL;CA9CuB;cAAlB,cAAkB,EAAA,CAAA;EAAA,MAAA;EAAA,aAAA,EAAA,UAAA;EAAA;AAAA,CAAA,EAIrB,mBAJqB,EAAA,GAIF,kBAAA,CAAA,GAAA,CAAA,OAJE"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/refinement-list/sort-products/index.d.ts
4
4
  type SortOptions = 'price_asc' | 'price_desc' | 'created_at';
@@ -13,7 +13,7 @@ declare const SortProducts: ({
13
13
  sortBy,
14
14
  setQueryParams,
15
15
  variant
16
- }: SortProductsProps) => react_jsx_runtime4.JSX.Element;
16
+ }: SortProductsProps) => react_jsx_runtime11.JSX.Element;
17
17
  //#endregion
18
18
  export { SortOptions, SortProducts as default };
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/refinement-list/sort-products/index.tsx"],"sourcesContent":[],"mappings":";;;KAKY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,OAAA,CAAA,EAAA,OAAA,GAAiB,UAAA;EAsBhB,aAAA,CAAA,EAwCL,MAAA;CAxCqB;cAAhB,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA,cAAA;EAAA;AAAA,CAAA,EAKnB,iBALmB,EAAA,GAKF,kBAAA,CAAA,GAAA,CAAA,OALE"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/refinement-list/sort-products/index.tsx"],"sourcesContent":[],"mappings":";;;KAKY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,OAAA,CAAA,EAAA,OAAA,GAAiB,UAAA;EAsBhB,aAAA,CAAA,EAwCL,MAAA;CAxCqB;cAAhB,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA,cAAA;EAAA;AAAA,CAAA,EAKnB,iBALmB,EAAA,GAKF,mBAAA,CAAA,GAAA,CAAA,OALE"}
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 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<react_jsx_runtime11.JSX.Element | null>;
12
+ }: RelatedProductsProps): Promise<react_jsx_runtime16.JSX.Element | null>;
13
13
  //#endregion
14
14
  export { RelatedProducts as default };
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 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
- }) => react_jsx_runtime15.JSX.Element;
8
+ }) => react_jsx_runtime5.JSX.Element;
9
9
  //#endregion
10
10
  export { SkeletonProductGrid as default };
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-product-grid/index.tsx"],"sourcesContent":[],"mappings":";;;cAGM;;;;MAIL,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-product-grid/index.tsx"],"sourcesContent":[],"mappings":";;;cAGM;;;;MAIL,kBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/skeleton-product-preview/index.d.ts
4
- declare const SkeletonProductPreview: () => react_jsx_runtime6.JSX.Element;
4
+ declare const SkeletonProductPreview: () => react_jsx_runtime9.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 react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/skeleton-related-products/index.d.ts
4
- declare const SkeletonRelatedProducts: () => react_jsx_runtime8.JSX.Element;
4
+ declare const SkeletonRelatedProducts: () => react_jsx_runtime10.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,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-related-products/index.tsx"],"sourcesContent":[],"mappings":";;;cAGM,+BAAuB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,14 +1,14 @@
1
- import * as _apollo_client0 from "@apollo/client";
1
+ import * as _apollo_client14 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/fragments/cart.d.ts
4
- declare const LINE_ITEM_FRAGMENT: _apollo_client0.DocumentNode;
5
- declare const ADDRESS_FRAGMENT: _apollo_client0.DocumentNode;
6
- declare const SHIPPING_METHODS_FRAGMENT: _apollo_client0.DocumentNode;
7
- declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client0.DocumentNode;
8
- declare const COUNTRY_FRAGMENT: _apollo_client0.DocumentNode;
9
- declare const REGION_FRAGMENT: _apollo_client0.DocumentNode;
10
- declare const PROMOTION_FRAGMENT: _apollo_client0.DocumentNode;
11
- declare const CART_FRAGMENT: _apollo_client0.DocumentNode;
4
+ declare const LINE_ITEM_FRAGMENT: _apollo_client14.DocumentNode;
5
+ declare const ADDRESS_FRAGMENT: _apollo_client14.DocumentNode;
6
+ declare const SHIPPING_METHODS_FRAGMENT: _apollo_client14.DocumentNode;
7
+ declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client14.DocumentNode;
8
+ declare const COUNTRY_FRAGMENT: _apollo_client14.DocumentNode;
9
+ declare const REGION_FRAGMENT: _apollo_client14.DocumentNode;
10
+ declare const PROMOTION_FRAGMENT: _apollo_client14.DocumentNode;
11
+ declare const CART_FRAGMENT: _apollo_client14.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 +1 @@
1
- {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAiBZ,eAAA,CAjB8B;cAmBlB,kBAUZ,eAAA,CAV4B;cAYhB,2BAUZ,eAAA,CAVqC;AA/BzB,cA2CA,2BA1BZ,EA4CA,eAAA,CAlBuC,YA1BvC;AAEY,cA4CA,gBAlCZ,EAyCA,eAAA,CAP4B,YAlC5B;AAEY,cAyCA,eA/BZ,EA0CA,eAAA,CAX2B,YA/B3B;AAEY,cA0CA,kBAxBZ,EAkCA,eAAA,CAV8B,YAxB9B;AAEY,cAkCA,aA3BZ,EAsEA,eAAA,CA3CyB,YA3BzB"}
1
+ {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAiBZ,gBAAA,CAjB8B;cAmBlB,kBAUZ,gBAAA,CAV4B;cAYhB,2BAUZ,gBAAA,CAVqC;AA/BzB,cA2CA,2BA1BZ,EA4CA,gBAAA,CAlBuC,YA1BvC;AAEY,cA4CA,gBAlCZ,EAyCA,gBAAA,CAP4B,YAlC5B;AAEY,cAyCA,eA/BZ,EA0CA,gBAAA,CAX2B,YA/B3B;AAEY,cA0CA,kBAxBZ,EAkCA,gBAAA,CAV8B,YAxB9B;AAEY,cAkCA,aA3BZ,EAsEA,gBAAA,CA3CyB,YA3BzB"}
@@ -1,21 +1,21 @@
1
- import * as _apollo_client29 from "@apollo/client";
1
+ import * as _apollo_client0 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/fragments/product.d.ts
4
- declare const PRODUCT_IMAGE_FRAGMENT: _apollo_client29.DocumentNode;
5
- declare const PRODUCT_TAG_FRAGMENT: _apollo_client29.DocumentNode;
6
- declare const PRODUCT_OPTION_FRAGMENT: _apollo_client29.DocumentNode;
7
- declare const PRICE_FRAGMENT: _apollo_client29.DocumentNode;
8
- declare const PRODUCT_VARIANT_CONTENT_FRAGMENT: _apollo_client29.DocumentNode;
9
- declare const PRODUCT_VARIANT_PRICING_FRAGMENT: _apollo_client29.DocumentNode;
10
- declare const PRODUCT_VARIANT_FRAGMENT: _apollo_client29.DocumentNode;
11
- declare const PRODUCT_CATEGORY_FRAGMENT: _apollo_client29.DocumentNode;
12
- declare const PRODUCT_COLLECTION_FRAGMENT: _apollo_client29.DocumentNode;
13
- declare const PRODUCT_CONTENT_FRAGMENT: _apollo_client29.DocumentNode;
14
- declare const PRODUCT_FRAGMENT: _apollo_client29.DocumentNode;
15
- declare const PRODUCT_PREVIEW_FRAGMENT: _apollo_client29.DocumentNode;
16
- declare const COLLECTION_PRODUCTS_FRAGMENT: _apollo_client29.DocumentNode;
17
- declare const PRODUCT_HIT_FRAGMENT: _apollo_client29.DocumentNode;
18
- declare const BROWSE_PRODUCT_HIT_FRAGMENT: _apollo_client29.DocumentNode;
4
+ declare const PRODUCT_IMAGE_FRAGMENT: _apollo_client0.DocumentNode;
5
+ declare const PRODUCT_TAG_FRAGMENT: _apollo_client0.DocumentNode;
6
+ declare const PRODUCT_OPTION_FRAGMENT: _apollo_client0.DocumentNode;
7
+ declare const PRICE_FRAGMENT: _apollo_client0.DocumentNode;
8
+ declare const PRODUCT_VARIANT_CONTENT_FRAGMENT: _apollo_client0.DocumentNode;
9
+ declare const PRODUCT_VARIANT_PRICING_FRAGMENT: _apollo_client0.DocumentNode;
10
+ declare const PRODUCT_VARIANT_FRAGMENT: _apollo_client0.DocumentNode;
11
+ declare const PRODUCT_CATEGORY_FRAGMENT: _apollo_client0.DocumentNode;
12
+ declare const PRODUCT_COLLECTION_FRAGMENT: _apollo_client0.DocumentNode;
13
+ declare const PRODUCT_CONTENT_FRAGMENT: _apollo_client0.DocumentNode;
14
+ declare const PRODUCT_FRAGMENT: _apollo_client0.DocumentNode;
15
+ declare const PRODUCT_PREVIEW_FRAGMENT: _apollo_client0.DocumentNode;
16
+ declare const COLLECTION_PRODUCTS_FRAGMENT: _apollo_client0.DocumentNode;
17
+ declare const PRODUCT_HIT_FRAGMENT: _apollo_client0.DocumentNode;
18
+ declare const BROWSE_PRODUCT_HIT_FRAGMENT: _apollo_client0.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,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
+ {"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/product.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAKZ,eAAA,CALkC;cAOtB,sBAIZ,eAAA,CAJgC;cAMpB,yBASZ,eAAA,CATmC;AAbvB,cAwBA,cAnBZ,EAyBA,eAAA,CAN0B,YAnB1B;AAEY,cAyBA,gCArBZ,EAkCA,eAAA,CAb4C,YArB5C;AAEY,cAkCA,gCAzBZ,EAqCA,eAAA,CAZ4C,YAzB5C;AAEY,cAqCA,wBA/BZ,EAoDA,eAAA,CArBoC,YA/BpC;AAEY,cAoDA,yBAvCZ,EA8CA,eAAA,CAPqC,YAvCrC;AAEY,cA8CA,2BAlCZ,EAwCA,eAAA,CANuC,YAlCvC;AAEY,cAwCA,wBAnBZ,EAsEA,eAAA,CAnDoC,YAnBpC;AAEY,cAsEA,gBA/DZ,EAoGA,eAAA,CArC4B,YA/D5B;AAEY,cAoGA,wBA9FZ,EAgHA,eAAA,CAlBoC,YA9FpC;AAEY,cAgHA,4BA7DZ,EAoFA,eAAA,CAvBwC,YA7DxC;AAEY,cAoFA,oBA/CZ,EAuDA,eAAA,CARgC,YA/ChC;AAEY,cAuDA,2BArCZ,EA+CA,eAAA,CAVuC,YArCvC"}
@@ -1,15 +1,15 @@
1
- import * as _apollo_client8 from "@apollo/client";
1
+ import * as _apollo_client35 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/mutations/cart.d.ts
4
- declare const CREATE_CART_MUTATION: _apollo_client8.DocumentNode;
5
- declare const UPDATE_CART_MUTATION: _apollo_client8.DocumentNode;
6
- declare const CREATE_LINE_ITEM_MUTATION: _apollo_client8.DocumentNode;
7
- declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client8.DocumentNode;
8
- declare const DELETE_LINE_ITEM_MUTATION: _apollo_client8.DocumentNode;
9
- declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client8.DocumentNode;
10
- declare const COMPLETE_CART_MUTATION: _apollo_client8.DocumentNode;
11
- declare const TRANSFER_CART_MUTATION: _apollo_client8.DocumentNode;
12
- declare const APPLY_PROMOTIONS_MUTATION: _apollo_client8.DocumentNode;
4
+ declare const CREATE_CART_MUTATION: _apollo_client35.DocumentNode;
5
+ declare const UPDATE_CART_MUTATION: _apollo_client35.DocumentNode;
6
+ declare const CREATE_LINE_ITEM_MUTATION: _apollo_client35.DocumentNode;
7
+ declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client35.DocumentNode;
8
+ declare const DELETE_LINE_ITEM_MUTATION: _apollo_client35.DocumentNode;
9
+ declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client35.DocumentNode;
10
+ declare const COMPLETE_CART_MUTATION: _apollo_client35.DocumentNode;
11
+ declare const TRANSFER_CART_MUTATION: _apollo_client35.DocumentNode;
12
+ declare const APPLY_PROMOTIONS_MUTATION: _apollo_client35.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 +1 @@
1
- {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/mutations/cart.ts"],"sourcesContent":[],"mappings":";;;cAUa,sBAOZ,eAAA,CAPgC;cASpB,sBAgBZ,eAAA,CAhBgC;cAkBpB,2BAWZ,eAAA,CAXqC;AA3BzB,cAwCA,yBAjCZ,EAgDA,eAAA,CAfqC,YAjCrC;AAEY,cAgDA,yBAhCZ,EAwCA,eAAA,CARqC,YAhCrC;AAEY,cAwCA,4BA7BZ,EA4CA,eAAA,CAfwC,YA7BxC;AAEY,cA4CA,sBA7BZ,EAqFA,eAAA,CAxDkC,YA7BlC;AAEY,cAqFA,sBA7EZ,EAoFA,eAAA,CAPkC,YA7ElC;AAEY,cAoFA,yBArEZ,EA4EA,eAAA,CAPqC,YArErC"}
1
+ {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/mutations/cart.ts"],"sourcesContent":[],"mappings":";;;cAUa,sBAOZ,gBAAA,CAPgC;cASpB,sBAgBZ,gBAAA,CAhBgC;cAkBpB,2BAWZ,gBAAA,CAXqC;AA3BzB,cAwCA,yBAjCZ,EAgDA,gBAAA,CAfqC,YAjCrC;AAEY,cAgDA,yBAhCZ,EAwCA,gBAAA,CARqC,YAhCrC;AAEY,cAwCA,4BA7BZ,EA4CA,gBAAA,CAfwC,YA7BxC;AAEY,cA4CA,sBA7BZ,EAqFA,gBAAA,CAxDkC,YA7BlC;AAEY,cAqFA,sBA7EZ,EAoFA,gBAAA,CAPkC,YA7ElC;AAEY,cAoFA,yBArEZ,EA4EA,gBAAA,CAPqC,YArErC"}
@@ -1,7 +1,7 @@
1
- import * as _apollo_client7 from "@apollo/client";
1
+ import * as _apollo_client34 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/cart.d.ts
4
- declare const GET_CART_QUERY: _apollo_client7.DocumentNode;
4
+ declare const GET_CART_QUERY: _apollo_client34.DocumentNode;
5
5
  //#endregion
6
6
  export { GET_CART_QUERY };
7
7
  //# sourceMappingURL=cart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,gBAOZ,eAAA,CAP0B"}
1
+ {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,gBAOZ,gBAAA,CAP0B"}
@@ -1,18 +1,18 @@
1
- import * as _apollo_client17 from "@apollo/client";
1
+ import * as _apollo_client22 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/product.d.ts
4
- declare const GET_PRODUCTS_QUERY: _apollo_client17.DocumentNode;
5
- declare const GET_PRODUCTS_PREVIEW_QUERY: _apollo_client17.DocumentNode;
6
- declare const GET_PRODUCT_QUERY: _apollo_client17.DocumentNode;
7
- declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client17.DocumentNode;
8
- declare const GET_PRODUCT_PRICING_QUERY: _apollo_client17.DocumentNode;
9
- declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client17.DocumentNode;
10
- declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client17.DocumentNode;
11
- declare const GET_COLLECTIONS_QUERY: _apollo_client17.DocumentNode;
12
- declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client17.DocumentNode;
13
- declare const GET_COLLECTION_QUERY: _apollo_client17.DocumentNode;
14
- declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client17.DocumentNode;
15
- declare const BROWSE_PRODUCTS_QUERY: _apollo_client17.DocumentNode;
4
+ declare const GET_PRODUCTS_QUERY: _apollo_client22.DocumentNode;
5
+ declare const GET_PRODUCTS_PREVIEW_QUERY: _apollo_client22.DocumentNode;
6
+ declare const GET_PRODUCT_QUERY: _apollo_client22.DocumentNode;
7
+ declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client22.DocumentNode;
8
+ declare const GET_PRODUCT_PRICING_QUERY: _apollo_client22.DocumentNode;
9
+ declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client22.DocumentNode;
10
+ declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client22.DocumentNode;
11
+ declare const GET_COLLECTIONS_QUERY: _apollo_client22.DocumentNode;
12
+ declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client22.DocumentNode;
13
+ declare const GET_COLLECTION_QUERY: _apollo_client22.DocumentNode;
14
+ declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client22.DocumentNode;
15
+ declare const BROWSE_PRODUCTS_QUERY: _apollo_client22.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,5 +1,5 @@
1
1
  import { ProductActionsProduct } from "../../types/index.js";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 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<react_jsx_runtime14.JSX.Element>;
15
+ }): Promise<react_jsx_runtime4.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,mBAAA,CAAA,GAAA,CAAA,OAAA,CAFU"}
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,kBAAA,CAAA,GAAA,CAAA,OAAA,CAFU"}
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 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) => react_jsx_runtime16.JSX.Element;
10
+ }: ProductInfoProps) => react_jsx_runtime14.JSX.Element;
11
11
  //#endregion
12
12
  export { ProductInfo as default };
13
13
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gfed-medusa/sf-lib-products",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
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.0",
54
+ "@gfed-medusa/sf-lib-common": "^3.7.1",
55
55
  "@gfed-medusa/sf-lib-ui": "^1.2.4",
56
56
  "@headlessui/react": "^2.2.9",
57
57
  "@medusajs/icons": "^2.12.1",
@@ -84,10 +84,10 @@
84
84
  "eslint-config-next": "16.0.6",
85
85
  "tsdown": "^0.17.2",
86
86
  "typescript": "^5",
87
- "@packages/jest-config": "0.0.0",
88
- "@packages/typescript-config": "0.0.0",
87
+ "@packages/eslint-config": "0.0.0",
89
88
  "@packages/prettier-config": "0.0.0",
90
- "@packages/eslint-config": "0.0.0"
89
+ "@packages/jest-config": "0.0.0",
90
+ "@packages/typescript-config": "0.0.0"
91
91
  },
92
92
  "scripts": {
93
93
  "build": "tsdown --env.NODE_ENV=production",