@gfed-medusa/sf-lib-products 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/components/product-actions/index.d.ts +2 -2
  2. package/dist/components/product-actions/index.d.ts.map +1 -1
  3. package/dist/components/product-onboarding-cta/index.d.ts +2 -2
  4. package/dist/components/product-onboarding-cta/index.d.ts.map +1 -1
  5. package/dist/components/product-price/index.d.ts +2 -2
  6. package/dist/components/product-price/index.d.ts.map +1 -1
  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/related-products/index.d.ts +2 -2
  12. package/dist/components/related-products/index.d.ts.map +1 -1
  13. package/dist/components/skeleton-product-grid/index.d.ts +2 -2
  14. package/dist/components/skeleton-product-preview/index.d.ts +2 -2
  15. package/dist/components/skeleton-related-products/index.d.ts +2 -2
  16. package/dist/lib/data/cart.d.ts.map +1 -1
  17. package/dist/lib/data/cart.js +1 -3
  18. package/dist/lib/data/cart.js.map +1 -1
  19. package/dist/lib/gql/mutations/cart.d.ts +10 -10
  20. package/dist/lib/gql/queries/cart.d.ts +2 -2
  21. package/dist/lib/gql/queries/product.d.ts +13 -13
  22. package/dist/templates/paginated-products/client.d.ts +2 -2
  23. package/dist/templates/paginated-products/client.d.ts.map +1 -1
  24. package/dist/templates/paginated-products/index.d.ts +2 -2
  25. package/dist/templates/paginated-products/index.d.ts.map +1 -1
  26. package/dist/templates/product-actions-wrapper/index.d.ts +2 -2
  27. package/dist/templates/product-actions-wrapper/index.d.ts.map +1 -1
  28. package/dist/templates/product-info/index.d.ts +2 -2
  29. package/dist/templates/store-template/index.d.ts +2 -2
  30. package/dist/types/graphql.d.ts +0 -4
  31. package/dist/types/graphql.d.ts.map +1 -1
  32. package/dist/types/graphql.js.map +1 -1
  33. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { ProductActionsProduct } from "../../types/index.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 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): react_jsx_runtime2.JSX.Element;
16
+ }: ProductActionsProps): react_jsx_runtime15.JSX.Element;
17
17
  //#endregion
18
18
  export { ProductActionsProps, ProductActions as default };
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-actions/index.tsx"],"sourcesContent":[],"mappings":";;;;KAyBY,mBAAA;WACD;;EADC,QAAA,CAAA,EAAA,OAAA;EA2BY,mBAAc,CAAA,EAAA,OAAA;CACpC;AACA,iBAFsB,cAAA,CAEtB;EAAA,OAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,mBAHD,CAAA,EAGoB,kBAAA,CAAA,GAAA,CAAA,OAHpB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-actions/index.tsx"],"sourcesContent":[],"mappings":";;;;KAyBY,mBAAA;WACD;;EADC,QAAA,CAAA,EAAA,OAAA;EA2BY,mBAAc,CAAA,EAAA,OAAA;CACpC;AACA,iBAFsB,cAAA,CAEtB;EAAA,OAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,mBAHD,CAAA,EAGoB,mBAAA,CAAA,GAAA,CAAA,OAHpB"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/product-onboarding-cta/index.d.ts
4
- declare function ProductOnboardingCta(): Promise<react_jsx_runtime14.JSX.Element | null>;
4
+ declare function ProductOnboardingCta(): Promise<react_jsx_runtime2.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,mBAAA,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,kBAAA,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_runtime15 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime3 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_runtime15.JSX.Element;
12
+ }): react_jsx_runtime3.JSX.Element;
13
13
  //#endregion
14
14
  export { ProductPrice as default };
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-price/index.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOwB,YAAA;;;AAFyB;WAMtC;YACC;AAPqC,CAAA,CAAA,EAQhD,mBAAA,CAAA,GAAA,CAAA,OANmC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-price/index.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOwB,YAAA;;;AAFyB;WAMtC;YACC;AAPqC,CAAA,CAAA,EAQhD,kBAAA,CAAA,GAAA,CAAA,OANmC"}
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 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_runtime6.JSX.Element;
10
+ }: ProductTabsProps) => react_jsx_runtime4.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_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 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_runtime13.JSX.Element;
15
+ }: RefinementListProps) => react_jsx_runtime5.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":";;;;KAaK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;EAOlB,SAAA,CAAA,EAAA,MAmDL;CAnDuB;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":";;;;KAaK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;EAOlB,SAAA,CAAA,EAAA,MAmDL;CAnDuB;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_runtime12 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_runtime12.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,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_runtime6 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_runtime16.JSX.Element | null>;
12
+ }: RelatedProductsProps): Promise<react_jsx_runtime6.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,mBAAA,CAAA,GAAA,CAAA,OAAA,GAHsB,IAAA,CAAA"}
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 react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 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_runtime3.JSX.Element;
8
+ }) => react_jsx_runtime7.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 react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/skeleton-product-preview/index.d.ts
4
- declare const SkeletonProductPreview: () => react_jsx_runtime5.JSX.Element;
4
+ declare const SkeletonProductPreview: () => react_jsx_runtime8.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_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/skeleton-related-products/index.d.ts
4
- declare const SkeletonRelatedProducts: () => react_jsx_runtime4.JSX.Element;
4
+ declare const SkeletonRelatedProducts: () => react_jsx_runtime9.JSX.Element;
5
5
  //#endregion
6
6
  export { SkeletonRelatedProducts as default };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../src/lib/data/cart.ts"],"sourcesContent":[],"mappings":";;;;cAsCa,oCAEN,sBACJ,QAAQ;cAmBE,yCAEN,sBACJ,QAAQ;AAzBE,cAgGA,SA5EZ,EAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA;CAAA,EAAA;EAlBM,SAAA,EAAA,MAAA;EACI,QAAA,EAAA,MAAA;EAAR,WAAA,EAAA,MAAA;CAAO,EAAA,GAuGP,OAvGO,CAuGC,sBAvGD,CAAA,gBAAA,CAAA,GAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../src/lib/data/cart.ts"],"sourcesContent":[],"mappings":";;;;cAqCa,oCAEN,sBACJ,QAAQ;cAmBE,yCAEN,sBACJ,QAAQ;AAzBE,cAgGA,SA5EZ,EAAA,CAAA;EAAA,SAAA;EAAA,QAAA;EAAA;CAAA,EAAA;EAlBM,SAAA,EAAA,MAAA;EACI,QAAA,EAAA,MAAA;EAAR,WAAA,EAAA,MAAA;CAAO,EAAA,GAuGP,OAvGO,CAuGC,sBAvGD,CAAA,gBAAA,CAAA,GAAA,IAAA,CAAA"}
@@ -9,7 +9,6 @@ import { getCacheTag, getCartId } from "@gfed-medusa/sf-lib-common/lib/data/cook
9
9
  import { createServerApolloClient, graphqlFetch, graphqlMutation } from "@gfed-medusa/sf-lib-common/lib/gql/apollo-client";
10
10
  import { resolveNextContext } from "@gfed-medusa/sf-lib-common/lib/data/next-context";
11
11
  import { sendSignal } from "@gfed-medusa/sf-lib-common/lib/data/personalization";
12
- import { retrieveCustomer } from "@gfed-medusa/sf-lib-common/lib/data/customer";
13
12
 
14
13
  //#region src/lib/data/cart.ts
15
14
  const retrieveCart = async (cartId, ctx) => {
@@ -82,11 +81,10 @@ const addToCart = async ({ variantId, quantity, countryCode }) => {
82
81
  revalidateTag(getCacheTag("carts", ctx));
83
82
  revalidateTag(getCacheTag("fulfillment", ctx));
84
83
  } catch {}
85
- const cartUserId = ctx.cookieHeader?.includes("_medusa_jwt=") ? (await retrieveCustomer(ctx).catch(() => null))?.id : void 0;
86
84
  sendSignal(SignalType.CartAdd, ctx, {
87
85
  variantId,
88
86
  quantity
89
- }, void 0, cartUserId);
87
+ });
90
88
  }
91
89
  return lineItem;
92
90
  } catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"cart.js","names":["error: any"],"sources":["../../../src/lib/data/cart.ts"],"sourcesContent":["'use server';\n\nimport type { StorefrontContext } from '@gfed-medusa/sf-lib-common/lib/data/context';\nimport { setCartIdAction } from '@gfed-medusa/sf-lib-common/lib/data/cookies-actions';\nimport {\n getCacheTag,\n getCartId,\n} from '@gfed-medusa/sf-lib-common/lib/data/cookies-utils';\nimport {\n createServerApolloClient,\n graphqlFetch,\n graphqlMutation,\n} from '@gfed-medusa/sf-lib-common/lib/gql/apollo-client';\nimport {\n Cart,\n CreateCartMutation,\n CreateCartMutationVariables,\n CreateLineItemMutation,\n CreateLineItemMutationVariables,\n GetCartQuery,\n GetCartQueryVariables,\n UpdateCartMutation,\n UpdateCartMutationVariables,\n} from '@gfed-medusa/sf-lib-common/types/graphql';\n\nimport {\n CREATE_CART_MUTATION,\n CREATE_LINE_ITEM_MUTATION,\n UPDATE_CART_MUTATION,\n} from '@/lib/gql/mutations/cart';\nimport { GET_CART_QUERY } from '@/lib/gql/queries/cart';\n\nimport { getRegion } from './regions';\nimport { resolveNextContext } from '@gfed-medusa/sf-lib-common/lib/data/next-context';\nimport { sendSignal } from '@gfed-medusa/sf-lib-common/lib/data/personalization';\nimport { SignalType } from '@gfed-medusa/sf-lib-common/types/graphql';\nimport { retrieveCustomer } from '@gfed-medusa/sf-lib-common/lib/data/customer';\n\nexport const retrieveCart = async (\n cartId: string,\n ctx: StorefrontContext\n): Promise<Cart | null> => {\n const id = cartId || getCartId(ctx);\n if (!id) {\n return null;\n }\n\n try {\n const data = await graphqlFetch<GetCartQuery, GetCartQueryVariables>({\n query: GET_CART_QUERY,\n variables: { id },\n });\n\n return data?.cart ?? null;\n } catch (error) {\n console.error('Failed to fetch cart:', error);\n return null;\n }\n};\n\nexport const getOrSetCart = async (\n countryCode: string,\n ctx: StorefrontContext\n): Promise<Cart | null> => {\n const region = await getRegion(countryCode, ctx);\n\n if (!region) {\n throw new Error(`Region not found for country code: ${countryCode}`);\n }\n\n let cart = await retrieveCart(getCartId(ctx) || '', ctx);\n\n const apolloClient = createServerApolloClient(ctx.cookieHeader);\n\n if (!cart) {\n const data = await graphqlMutation<\n CreateCartMutation,\n CreateCartMutationVariables\n >(\n {\n mutation: CREATE_CART_MUTATION,\n variables: {\n data: { regionId: region.id },\n },\n },\n apolloClient\n );\n\n cart = data?.createCart ?? null;\n\n if (cart) {\n await setCartIdAction(cart.id);\n\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n } catch {\n // Not in Next.js environment, skip revalidation\n }\n }\n }\n\n if (cart && cart.regionId !== region.id) {\n const data = await graphqlMutation<\n UpdateCartMutation,\n UpdateCartMutationVariables\n >(\n {\n mutation: UPDATE_CART_MUTATION,\n variables: {\n id: cart.id,\n data: { regionId: region.id },\n },\n },\n apolloClient\n );\n\n cart = data?.updateCart ?? cart;\n\n if (cart) {\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n } catch {\n // Not in Next.js environment\n }\n }\n }\n\n return cart;\n};\n\nexport const addToCart = async (\n {\n variantId,\n quantity,\n countryCode,\n }: {\n variantId: string;\n quantity: number;\n countryCode: string;\n }\n): Promise<CreateLineItemMutation['createLineItem'] | null> => {\n if (!variantId) {\n throw new Error('Missing variant ID when adding to cart');\n }\n\n if (!countryCode) {\n throw new Error('Missing country code when adding to cart');\n }\n\n const ctx = await resolveNextContext();\n const apolloClient = createServerApolloClient(ctx.cookieHeader ?? '');\n const cart = await getOrSetCart(countryCode, ctx);\n\n if (!cart) {\n throw new Error('Error retrieving or creating cart');\n }\n\n try {\n const result = await graphqlMutation<\n CreateLineItemMutation,\n CreateLineItemMutationVariables\n >(\n {\n mutation: CREATE_LINE_ITEM_MUTATION,\n variables: {\n cartId: cart.id,\n data: {\n variantId: variantId,\n quantity,\n },\n },\n },\n apolloClient\n );\n\n const lineItem = result?.createLineItem ?? null;\n\n if (lineItem) {\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n const fulfillmentCacheTag = getCacheTag('fulfillment', ctx);\n revalidateTag(fulfillmentCacheTag);\n } catch {\n // Not in Next.js environment\n }\n\n // Send cart add signal for personalization\n const cartUserId = ctx.cookieHeader?.includes('_medusa_jwt=')\n ? (await retrieveCustomer(ctx).catch(() => null))?.id\n : undefined;\n void sendSignal(SignalType.CartAdd, ctx, { variantId, quantity }, undefined, cartUserId);\n }\n\n return lineItem;\n } catch (error: any) {\n console.error('GraphQL addToCart error:', error.message);\n throw error;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;AAsCA,MAAa,eAAe,OAC1B,QACA,QACyB;CACzB,MAAM,KAAK,UAAU,UAAU,IAAI;AACnC,KAAI,CAAC,GACH,QAAO;AAGT,KAAI;AAMF,UALa,MAAM,aAAkD;GACnE,OAAO;GACP,WAAW,EAAE,IAAI;GAClB,CAAC,GAEW,QAAQ;UACd,OAAO;AACd,UAAQ,MAAM,yBAAyB,MAAM;AAC7C,SAAO;;;AAIX,MAAa,eAAe,OAC1B,aACA,QACyB;CACzB,MAAM,SAAS,MAAM,UAAU,aAAa,IAAI;AAEhD,KAAI,CAAC,OACH,OAAM,IAAI,MAAM,sCAAsC,cAAc;CAGtE,IAAI,OAAO,MAAM,aAAa,UAAU,IAAI,IAAI,IAAI,IAAI;CAExD,MAAM,eAAe,yBAAyB,IAAI,aAAa;AAE/D,KAAI,CAAC,MAAM;AAcT,UAba,MAAM,gBAIjB;GACE,UAAU;GACV,WAAW,EACT,MAAM,EAAE,UAAU,OAAO,IAAI,EAC9B;GACF,EACD,aACD,GAEY,cAAc;AAE3B,MAAI,MAAM;AACR,SAAM,gBAAgB,KAAK,GAAG;AAE9B,OAAI;IACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,kBADqB,YAAY,SAAS,IAAI,CACnB;WACrB;;;AAMZ,KAAI,QAAQ,KAAK,aAAa,OAAO,IAAI;AAevC,UAda,MAAM,gBAIjB;GACE,UAAU;GACV,WAAW;IACT,IAAI,KAAK;IACT,MAAM,EAAE,UAAU,OAAO,IAAI;IAC9B;GACF,EACD,aACD,GAEY,cAAc;AAE3B,MAAI,KACF,KAAI;GACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,iBADqB,YAAY,SAAS,IAAI,CACnB;UACrB;;AAMZ,QAAO;;AAGT,MAAa,YAAY,OACvB,EACE,WACA,UACA,kBAM2D;AAC7D,KAAI,CAAC,UACH,OAAM,IAAI,MAAM,yCAAyC;AAG3D,KAAI,CAAC,YACH,OAAM,IAAI,MAAM,2CAA2C;CAG7D,MAAM,MAAM,MAAM,oBAAoB;CACtC,MAAM,eAAe,yBAAyB,IAAI,gBAAgB,GAAG;CACrE,MAAM,OAAO,MAAM,aAAa,aAAa,IAAI;AAEjD,KAAI,CAAC,KACH,OAAM,IAAI,MAAM,oCAAoC;AAGtD,KAAI;EAkBF,MAAM,YAjBS,MAAM,gBAInB;GACE,UAAU;GACV,WAAW;IACT,QAAQ,KAAK;IACb,MAAM;KACO;KACX;KACD;IACF;GACF,EACD,aACD,GAEwB,kBAAkB;AAE3C,MAAI,UAAU;AACZ,OAAI;IACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,kBADqB,YAAY,SAAS,IAAI,CACnB;AAE3B,kBAD4B,YAAY,eAAe,IAAI,CACzB;WAC5B;GAKR,MAAM,aAAa,IAAI,cAAc,SAAS,eAAe,IACxD,MAAM,iBAAiB,IAAI,CAAC,YAAY,KAAK,GAAG,KACjD;AACJ,GAAK,WAAW,WAAW,SAAS,KAAK;IAAE;IAAW;IAAU,EAAE,QAAW,WAAW;;AAG1F,SAAO;UACAA,OAAY;AACnB,UAAQ,MAAM,4BAA4B,MAAM,QAAQ;AACxD,QAAM"}
1
+ {"version":3,"file":"cart.js","names":["error: any"],"sources":["../../../src/lib/data/cart.ts"],"sourcesContent":["'use server';\n\nimport type { StorefrontContext } from '@gfed-medusa/sf-lib-common/lib/data/context';\nimport { setCartIdAction } from '@gfed-medusa/sf-lib-common/lib/data/cookies-actions';\nimport {\n getCacheTag,\n getCartId,\n} from '@gfed-medusa/sf-lib-common/lib/data/cookies-utils';\nimport {\n createServerApolloClient,\n graphqlFetch,\n graphqlMutation,\n} from '@gfed-medusa/sf-lib-common/lib/gql/apollo-client';\nimport {\n Cart,\n CreateCartMutation,\n CreateCartMutationVariables,\n CreateLineItemMutation,\n CreateLineItemMutationVariables,\n GetCartQuery,\n GetCartQueryVariables,\n UpdateCartMutation,\n UpdateCartMutationVariables,\n} from '@gfed-medusa/sf-lib-common/types/graphql';\n\nimport {\n CREATE_CART_MUTATION,\n CREATE_LINE_ITEM_MUTATION,\n UPDATE_CART_MUTATION,\n} from '@/lib/gql/mutations/cart';\nimport { GET_CART_QUERY } from '@/lib/gql/queries/cart';\n\nimport { getRegion } from './regions';\nimport { resolveNextContext } from '@gfed-medusa/sf-lib-common/lib/data/next-context';\nimport { sendSignal } from '@gfed-medusa/sf-lib-common/lib/data/personalization';\nimport { SignalType } from '@gfed-medusa/sf-lib-common/types/graphql';\n\nexport const retrieveCart = async (\n cartId: string,\n ctx: StorefrontContext\n): Promise<Cart | null> => {\n const id = cartId || getCartId(ctx);\n if (!id) {\n return null;\n }\n\n try {\n const data = await graphqlFetch<GetCartQuery, GetCartQueryVariables>({\n query: GET_CART_QUERY,\n variables: { id },\n });\n\n return data?.cart ?? null;\n } catch (error) {\n console.error('Failed to fetch cart:', error);\n return null;\n }\n};\n\nexport const getOrSetCart = async (\n countryCode: string,\n ctx: StorefrontContext\n): Promise<Cart | null> => {\n const region = await getRegion(countryCode, ctx);\n\n if (!region) {\n throw new Error(`Region not found for country code: ${countryCode}`);\n }\n\n let cart = await retrieveCart(getCartId(ctx) || '', ctx);\n\n const apolloClient = createServerApolloClient(ctx.cookieHeader);\n\n if (!cart) {\n const data = await graphqlMutation<\n CreateCartMutation,\n CreateCartMutationVariables\n >(\n {\n mutation: CREATE_CART_MUTATION,\n variables: {\n data: { regionId: region.id },\n },\n },\n apolloClient\n );\n\n cart = data?.createCart ?? null;\n\n if (cart) {\n await setCartIdAction(cart.id);\n\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n } catch {\n // Not in Next.js environment, skip revalidation\n }\n }\n }\n\n if (cart && cart.regionId !== region.id) {\n const data = await graphqlMutation<\n UpdateCartMutation,\n UpdateCartMutationVariables\n >(\n {\n mutation: UPDATE_CART_MUTATION,\n variables: {\n id: cart.id,\n data: { regionId: region.id },\n },\n },\n apolloClient\n );\n\n cart = data?.updateCart ?? cart;\n\n if (cart) {\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n } catch {\n // Not in Next.js environment\n }\n }\n }\n\n return cart;\n};\n\nexport const addToCart = async (\n {\n variantId,\n quantity,\n countryCode,\n }: {\n variantId: string;\n quantity: number;\n countryCode: string;\n }\n): Promise<CreateLineItemMutation['createLineItem'] | null> => {\n if (!variantId) {\n throw new Error('Missing variant ID when adding to cart');\n }\n\n if (!countryCode) {\n throw new Error('Missing country code when adding to cart');\n }\n\n const ctx = await resolveNextContext();\n const apolloClient = createServerApolloClient(ctx.cookieHeader ?? '');\n const cart = await getOrSetCart(countryCode, ctx);\n\n if (!cart) {\n throw new Error('Error retrieving or creating cart');\n }\n\n try {\n const result = await graphqlMutation<\n CreateLineItemMutation,\n CreateLineItemMutationVariables\n >(\n {\n mutation: CREATE_LINE_ITEM_MUTATION,\n variables: {\n cartId: cart.id,\n data: {\n variantId: variantId,\n quantity,\n },\n },\n },\n apolloClient\n );\n\n const lineItem = result?.createLineItem ?? null;\n\n if (lineItem) {\n try {\n const { revalidateTag } = await import('next/cache');\n const cartCacheTag = getCacheTag('carts', ctx);\n revalidateTag(cartCacheTag);\n const fulfillmentCacheTag = getCacheTag('fulfillment', ctx);\n revalidateTag(fulfillmentCacheTag);\n } catch {\n // Not in Next.js environment\n }\n\n // Send cart add signal for personalization\n void sendSignal(SignalType.CartAdd, ctx, { variantId, quantity });\n }\n\n return lineItem;\n } catch (error: any) {\n console.error('GraphQL addToCart error:', error.message);\n throw error;\n }\n};\n"],"mappings":";;;;;;;;;;;;;AAqCA,MAAa,eAAe,OAC1B,QACA,QACyB;CACzB,MAAM,KAAK,UAAU,UAAU,IAAI;AACnC,KAAI,CAAC,GACH,QAAO;AAGT,KAAI;AAMF,UALa,MAAM,aAAkD;GACnE,OAAO;GACP,WAAW,EAAE,IAAI;GAClB,CAAC,GAEW,QAAQ;UACd,OAAO;AACd,UAAQ,MAAM,yBAAyB,MAAM;AAC7C,SAAO;;;AAIX,MAAa,eAAe,OAC1B,aACA,QACyB;CACzB,MAAM,SAAS,MAAM,UAAU,aAAa,IAAI;AAEhD,KAAI,CAAC,OACH,OAAM,IAAI,MAAM,sCAAsC,cAAc;CAGtE,IAAI,OAAO,MAAM,aAAa,UAAU,IAAI,IAAI,IAAI,IAAI;CAExD,MAAM,eAAe,yBAAyB,IAAI,aAAa;AAE/D,KAAI,CAAC,MAAM;AAcT,UAba,MAAM,gBAIjB;GACE,UAAU;GACV,WAAW,EACT,MAAM,EAAE,UAAU,OAAO,IAAI,EAC9B;GACF,EACD,aACD,GAEY,cAAc;AAE3B,MAAI,MAAM;AACR,SAAM,gBAAgB,KAAK,GAAG;AAE9B,OAAI;IACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,kBADqB,YAAY,SAAS,IAAI,CACnB;WACrB;;;AAMZ,KAAI,QAAQ,KAAK,aAAa,OAAO,IAAI;AAevC,UAda,MAAM,gBAIjB;GACE,UAAU;GACV,WAAW;IACT,IAAI,KAAK;IACT,MAAM,EAAE,UAAU,OAAO,IAAI;IAC9B;GACF,EACD,aACD,GAEY,cAAc;AAE3B,MAAI,KACF,KAAI;GACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,iBADqB,YAAY,SAAS,IAAI,CACnB;UACrB;;AAMZ,QAAO;;AAGT,MAAa,YAAY,OACvB,EACE,WACA,UACA,kBAM2D;AAC7D,KAAI,CAAC,UACH,OAAM,IAAI,MAAM,yCAAyC;AAG3D,KAAI,CAAC,YACH,OAAM,IAAI,MAAM,2CAA2C;CAG7D,MAAM,MAAM,MAAM,oBAAoB;CACtC,MAAM,eAAe,yBAAyB,IAAI,gBAAgB,GAAG;CACrE,MAAM,OAAO,MAAM,aAAa,aAAa,IAAI;AAEjD,KAAI,CAAC,KACH,OAAM,IAAI,MAAM,oCAAoC;AAGtD,KAAI;EAkBF,MAAM,YAjBS,MAAM,gBAInB;GACE,UAAU;GACV,WAAW;IACT,QAAQ,KAAK;IACb,MAAM;KACO;KACX;KACD;IACF;GACF,EACD,aACD,GAEwB,kBAAkB;AAE3C,MAAI,UAAU;AACZ,OAAI;IACF,MAAM,EAAE,kBAAkB,MAAM,OAAO;AAEvC,kBADqB,YAAY,SAAS,IAAI,CACnB;AAE3B,kBAD4B,YAAY,eAAe,IAAI,CACzB;WAC5B;AAKR,GAAK,WAAW,WAAW,SAAS,KAAK;IAAE;IAAW;IAAU,CAAC;;AAGnE,SAAO;UACAA,OAAY;AACnB,UAAQ,MAAM,4BAA4B,MAAM,QAAQ;AACxD,QAAM"}
@@ -1,15 +1,15 @@
1
- import * as _apollo_client22 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_client22.DocumentNode;
5
- declare const UPDATE_CART_MUTATION: _apollo_client22.DocumentNode;
6
- declare const CREATE_LINE_ITEM_MUTATION: _apollo_client22.DocumentNode;
7
- declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client22.DocumentNode;
8
- declare const DELETE_LINE_ITEM_MUTATION: _apollo_client22.DocumentNode;
9
- declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client22.DocumentNode;
10
- declare const COMPLETE_CART_MUTATION: _apollo_client22.DocumentNode;
11
- declare const TRANSFER_CART_MUTATION: _apollo_client22.DocumentNode;
12
- declare const APPLY_PROMOTIONS_MUTATION: _apollo_client22.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,7 +1,7 @@
1
- import * as _apollo_client31 from "@apollo/client";
1
+ import * as _apollo_client22 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/cart.d.ts
4
- declare const GET_CART_QUERY: _apollo_client31.DocumentNode;
4
+ declare const GET_CART_QUERY: _apollo_client22.DocumentNode;
5
5
  //#endregion
6
6
  export { GET_CART_QUERY };
7
7
  //# sourceMappingURL=cart.d.ts.map
@@ -1,18 +1,18 @@
1
- import * as _apollo_client32 from "@apollo/client";
1
+ import * as _apollo_client23 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/product.d.ts
4
- declare const GET_PRODUCTS_QUERY: _apollo_client32.DocumentNode;
5
- declare const GET_PRODUCTS_PREVIEW_QUERY: _apollo_client32.DocumentNode;
6
- declare const GET_PRODUCT_QUERY: _apollo_client32.DocumentNode;
7
- declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client32.DocumentNode;
8
- declare const GET_PRODUCT_PRICING_QUERY: _apollo_client32.DocumentNode;
9
- declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client32.DocumentNode;
10
- declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client32.DocumentNode;
11
- declare const GET_COLLECTIONS_QUERY: _apollo_client32.DocumentNode;
12
- declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client32.DocumentNode;
13
- declare const GET_COLLECTION_QUERY: _apollo_client32.DocumentNode;
14
- declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client32.DocumentNode;
15
- declare const BROWSE_PRODUCTS_QUERY: _apollo_client32.DocumentNode;
4
+ declare const GET_PRODUCTS_QUERY: _apollo_client23.DocumentNode;
5
+ declare const GET_PRODUCTS_PREVIEW_QUERY: _apollo_client23.DocumentNode;
6
+ declare const GET_PRODUCT_QUERY: _apollo_client23.DocumentNode;
7
+ declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client23.DocumentNode;
8
+ declare const GET_PRODUCT_PRICING_QUERY: _apollo_client23.DocumentNode;
9
+ declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client23.DocumentNode;
10
+ declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client23.DocumentNode;
11
+ declare const GET_COLLECTIONS_QUERY: _apollo_client23.DocumentNode;
12
+ declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client23.DocumentNode;
13
+ declare const GET_COLLECTION_QUERY: _apollo_client23.DocumentNode;
14
+ declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client23.DocumentNode;
15
+ declare const BROWSE_PRODUCTS_QUERY: _apollo_client23.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,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 react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime16 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): react_jsx_runtime7.JSX.Element;
27
+ }: PaginatedProductsClientProps): react_jsx_runtime16.JSX.Element;
28
28
  //#endregion
29
29
  export { PaginatedProductsClient as default };
30
30
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/templates/paginated-products/client.tsx"],"sourcesContent":[],"mappings":";;;;;KAkBK,4BAAA;mBACc;;EADd,iBAAA,EAAA,MAAA;EA6HmB,YAAA,EAAA,MAAA;EACtB,MAAA,CAAA,EAzHS,WAyHT;EACA,YAAA,CAAA,EAAA,MAAA;EACA,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA;AACA,iBAPsB,uBAAA,CAOtB;EAAA,eAAA;EAAA,iBAAA;EAAA,iBAAA;EAAA,YAAA;EAAA,MAAA;EAAA,YAAA;EAAA,UAAA;EAAA,WAAA;EAAA;AAAA,CAAA,EAGC,4BAHD,CAAA,EAG6B,kBAAA,CAAA,GAAA,CAAA,OAH7B"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/templates/paginated-products/client.tsx"],"sourcesContent":[],"mappings":";;;;;KAkBK,4BAAA;mBACc;;EADd,iBAAA,EAAA,MAAA;EA6HmB,YAAA,EAAA,MAAA;EACtB,MAAA,CAAA,EAzHS,WAyHT;EACA,YAAA,CAAA,EAAA,MAAA;EACA,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA;AACA,iBAPsB,uBAAA,CAOtB;EAAA,eAAA;EAAA,iBAAA;EAAA,iBAAA;EAAA,YAAA;EAAA,MAAA;EAAA,YAAA;EAAA,UAAA;EAAA,WAAA;EAAA;AAAA,CAAA,EAGC,4BAHD,CAAA,EAG6B,mBAAA,CAAA,GAAA,CAAA,OAH7B"}
@@ -1,5 +1,5 @@
1
1
  import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 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<react_jsx_runtime8.JSX.Element>;
19
+ }): Promise<react_jsx_runtime12.JSX.Element>;
20
20
  //#endregion
21
21
  export { PaginatedProducts as default };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/paginated-products/index.tsx"],"sourcesContent":[],"mappings":";;;;iBAmB8B,iBAAA;;;;;;;;WAQnB;;EARmB,YAAA,CAAA,EAAA,MAAiB;EAC7C,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA,CAAA,EAUD,OAVC,CAUD,kBAAA,CAAA,GAAA,CAAA,OAAA,CAVC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/paginated-products/index.tsx"],"sourcesContent":[],"mappings":";;;;iBAmB8B,iBAAA;;;;;;;;WAQnB;;EARmB,YAAA,CAAA,EAAA,MAAiB;EAC7C,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA,CAAA,EAUD,OAVC,CAUD,mBAAA,CAAA,GAAA,CAAA,OAAA,CAVC"}
@@ -1,6 +1,6 @@
1
1
  import { ProductActionsProduct } from "../../types/index.js";
2
2
  import { Region } from "@gfed-medusa/sf-lib-common/types/graphql";
3
- import * as react_jsx_runtime9 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/templates/product-actions-wrapper/index.d.ts
6
6
  /**
@@ -12,7 +12,7 @@ declare function ProductActionsWrapper({
12
12
  }: {
13
13
  product: ProductActionsProduct;
14
14
  region: Region;
15
- }): Promise<react_jsx_runtime9.JSX.Element>;
15
+ }): Promise<react_jsx_runtime13.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,kBAAA,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,mBAAA,CAAA,GAAA,CAAA,OAAA,CAFU"}
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime10 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_runtime10.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
@@ -1,5 +1,5 @@
1
1
  import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 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
- }) => react_jsx_runtime11.JSX.Element;
13
+ }) => react_jsx_runtime10.JSX.Element;
14
14
  //#endregion
15
15
  export { StoreTemplate as default };
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -749,7 +749,6 @@ type Query_CollectionsArgs = {
749
749
  };
750
750
  type Query_DebugIntentArgs = {
751
751
  deviceId: Scalars['String']['input'];
752
- userId?: InputMaybe<Scalars['String']['input']>;
753
752
  };
754
753
  type Query_HomeBannerArgs = {
755
754
  audience?: InputMaybe<Scalars['String']['input']>;
@@ -768,7 +767,6 @@ type Query_PaymentProvidersArgs = {
768
767
  type Query_PersonalizeArgs = {
769
768
  deviceId: Scalars['String']['input'];
770
769
  input: SurfaceContext;
771
- userId?: InputMaybe<Scalars['String']['input']>;
772
770
  };
773
771
  type Query_ProductArgs = {
774
772
  id: Scalars['ID']['input'];
@@ -816,7 +814,6 @@ type Query_ShippingOptionsArgs = {
816
814
  };
817
815
  type Query_UserProfileArgs = {
818
816
  deviceId: Scalars['String']['input'];
819
- userId?: InputMaybe<Scalars['String']['input']>;
820
817
  };
821
818
  type Region = {
822
819
  __typename?: 'Region';
@@ -921,7 +918,6 @@ type SignalInput = {
921
918
  timestamp?: InputMaybe<Scalars['Float']['input']>;
922
919
  type: SignalType;
923
920
  url?: InputMaybe<Scalars['String']['input']>;
924
- userId?: InputMaybe<Scalars['String']['input']>;
925
921
  };
926
922
  declare enum SignalType {
927
923
  CartAdd = "CART_ADD",