@gfed-medusa/sf-lib-products 1.3.3 → 1.3.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.
Files changed (26) hide show
  1. package/dist/components/product-actions/index.d.ts +2 -2
  2. package/dist/components/product-actions/mobile-actions.js +1 -1
  3. package/dist/components/product-actions/mobile-actions.js.map +1 -1
  4. package/dist/components/product-price/index.d.ts +2 -2
  5. package/dist/components/product-tabs/index.d.ts +2 -2
  6. package/dist/components/refinement-list/sort-products/index.d.ts +2 -2
  7. package/dist/components/refinement-list/sort-products/index.d.ts.map +1 -1
  8. package/dist/components/related-products/index.d.ts +2 -2
  9. package/dist/components/related-products/index.d.ts.map +1 -1
  10. package/dist/components/skeleton-product-grid/index.d.ts +2 -2
  11. package/dist/components/skeleton-product-grid/index.d.ts.map +1 -1
  12. package/dist/components/skeleton-product-preview/index.d.ts +2 -2
  13. package/dist/components/skeleton-product-preview/index.d.ts.map +1 -1
  14. package/dist/components/skeleton-related-products/index.d.ts +2 -2
  15. package/dist/components/skeleton-related-products/index.d.ts.map +1 -1
  16. package/dist/lib/gql/fragments/cart.d.ts +9 -9
  17. package/dist/lib/gql/fragments/cart.d.ts.map +1 -1
  18. package/dist/lib/gql/mutations/cart.d.ts +10 -10
  19. package/dist/lib/gql/queries/cart.d.ts +2 -2
  20. package/dist/lib/gql/queries/cart.d.ts.map +1 -1
  21. package/dist/lib/gql/queries/product.d.ts +9 -9
  22. package/dist/templates/paginated-products/index.d.ts +2 -2
  23. package/dist/templates/product-actions-wrapper/index.d.ts +2 -2
  24. package/dist/templates/store-template/index.d.ts +2 -2
  25. package/dist/templates/store-template/index.d.ts.map +1 -1
  26. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/product-actions/index.d.ts
5
5
  type ProductActionsProps = {
@@ -11,7 +11,7 @@ declare function ProductActions({
11
11
  product,
12
12
  disabled,
13
13
  enableMobileActions
14
- }: ProductActionsProps): react_jsx_runtime1.JSX.Element;
14
+ }: ProductActionsProps): react_jsx_runtime7.JSX.Element;
15
15
  //#endregion
16
16
  export { ProductActionsProps, ProductActions as default };
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -83,7 +83,7 @@ const MobileActions = ({ product, variant, options, updateOptions, inStock, hand
83
83
  as: Fragment$1,
84
84
  children: /* @__PURE__ */ jsxs(Dialog, {
85
85
  as: "div",
86
- className: "relative z-[75]",
86
+ className: "relative z-[100]",
87
87
  onClose: close,
88
88
  children: [/* @__PURE__ */ jsx(Transition.Child, {
89
89
  as: Fragment$1,
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-actions.js","names":["MobileActions: React.FC<MobileActionsProps>","Fragment","OptionSelect"],"sources":["../../../src/components/product-actions/mobile-actions.tsx"],"sourcesContent":["import React, { Fragment, useMemo } from 'react';\n\nimport useToggleState from '@gfed-medusa/sf-lib-common/lib/hooks/use-toggle-state';\nimport { getProductPrice } from '@gfed-medusa/sf-lib-common/lib/utils/get-product-price';\nimport { ChevronDown } from '@gfed-medusa/sf-lib-ui/icons/chevron-down';\nimport { X } from '@gfed-medusa/sf-lib-ui/icons/x';\nimport { Dialog, Transition } from '@headlessui/react';\nimport { HttpTypes } from '@medusajs/types';\nimport { Button, clx } from '@medusajs/ui';\n\nimport { isSimpleProduct } from '@/lib/utils/product';\nimport { Product, ProductVariant } from '@/types/graphql';\n\nimport OptionSelect from './option-select';\n\ntype MobileActionsProps = {\n product: Product;\n variant?: ProductVariant;\n options: Record<string, string | undefined>;\n updateOptions: (title: string, value: string) => void;\n inStock?: boolean;\n handleAddToCart: () => void;\n isAdding?: boolean;\n show: boolean;\n optionsDisabled: boolean;\n};\n\nconst MobileActions: React.FC<MobileActionsProps> = ({\n product,\n variant,\n options,\n updateOptions,\n inStock,\n handleAddToCart,\n isAdding,\n show,\n optionsDisabled,\n}) => {\n const { state, open, close } = useToggleState();\n\n const price = getProductPrice({\n product: product,\n variantId: variant?.id,\n });\n\n const selectedPrice = useMemo(() => {\n if (!price) {\n return null;\n }\n const { variantPrice, cheapestPrice } = price;\n\n return variantPrice || cheapestPrice || null;\n }, [price]);\n\n const isSimple = isSimpleProduct(product);\n\n return (\n <>\n <div\n className={clx('fixed inset-x-0 bottom-0 lg:hidden', {\n 'pointer-events-none': !show,\n })}\n >\n <Transition\n as={Fragment}\n show={show}\n enter=\"ease-in-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-300\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <div\n className=\"text-large-regular flex h-full w-full flex-col items-center justify-center gap-y-3 border-t border-gray-200 bg-white p-4\"\n data-testid=\"mobile-actions\"\n >\n <div className=\"flex items-center gap-x-2\">\n <span data-testid=\"mobile-title\">{product.title}</span>\n <span>—</span>\n {selectedPrice ? (\n <div className=\"text-ui-fg-base flex items-end gap-x-2\">\n {selectedPrice.price_type === 'sale' && (\n <p>\n <span className=\"text-small-regular line-through\">\n {selectedPrice.original_price}\n </span>\n </p>\n )}\n <span\n className={clx({\n 'text-ui-fg-interactive':\n selectedPrice.price_type === 'sale',\n })}\n >\n {selectedPrice.calculated_price}\n </span>\n </div>\n ) : (\n <div></div>\n )}\n </div>\n <div\n className={clx('grid w-full grid-cols-2 gap-x-4', {\n '!grid-cols-1': isSimple,\n })}\n >\n {!isSimple && (\n <Button\n onClick={open}\n variant=\"secondary\"\n className=\"w-full\"\n data-testid=\"mobile-actions-button\"\n >\n <div className=\"flex w-full items-center justify-between\">\n <span>\n {variant\n ? Object.values(options).join(' / ')\n : 'Select Options'}\n </span>\n <ChevronDown />\n </div>\n </Button>\n )}\n <Button\n onClick={handleAddToCart}\n disabled={!inStock || !variant}\n className=\"w-full\"\n isLoading={isAdding}\n data-testid=\"mobile-cart-button\"\n >\n {!variant\n ? 'Select variant'\n : !inStock\n ? 'Out of stock'\n : 'Add to cart'}\n </Button>\n </div>\n </div>\n </Transition>\n </div>\n <Transition appear show={state} as={Fragment}>\n <Dialog as=\"div\" className=\"relative z-[75]\" onClose={close}>\n <Transition.Child\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <div className=\"fixed inset-0 bg-gray-700 bg-opacity-75 backdrop-blur-sm\" />\n </Transition.Child>\n\n <div className=\"fixed inset-x-0 bottom-0\">\n <div className=\"flex h-full min-h-full items-center justify-center text-center\">\n <Transition.Child\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <Dialog.Panel\n className=\"flex h-full w-full transform flex-col gap-y-3 overflow-hidden text-left\"\n data-testid=\"mobile-actions-modal\"\n >\n <div className=\"flex w-full justify-end pr-6\">\n <button\n onClick={close}\n className=\"text-ui-fg-base flex h-12 w-12 items-center justify-center rounded-full bg-white\"\n data-testid=\"close-modal-button\"\n >\n <X />\n </button>\n </div>\n <div className=\"bg-white px-6 py-12\">\n {(product.variants?.length ?? 0) > 1 && (\n <div className=\"flex flex-col gap-y-6\">\n {(product.options || []).map((option) => {\n return (\n <div key={option.id}>\n <OptionSelect\n option={option}\n current={options[option.id]}\n updateOption={updateOptions}\n title={option.title ?? ''}\n disabled={optionsDisabled}\n />\n </div>\n );\n })}\n </div>\n )}\n </div>\n </Dialog.Panel>\n </Transition.Child>\n </div>\n </div>\n </Dialog>\n </Transition>\n </>\n );\n};\n\nexport default MobileActions;\n"],"mappings":";;;;;;;;;;;;AA2BA,MAAMA,iBAA+C,EACnD,SACA,SACA,SACA,eACA,SACA,iBACA,UACA,MACA,sBACI;CACJ,MAAM,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;EAAW;EAAO,MAAM;EAAO,IAAIA;YAClC,qBAAC;GAAO,IAAG;GAAM,WAAU;GAAkB,SAAS;cACpD,oBAAC,WAAW;IACV,IAAIA;IACJ,OAAM;IACN,WAAU;IACV,SAAQ;IACR,OAAM;IACN,WAAU;IACV,SAAQ;cAER,oBAAC,SAAI,WAAU,6DAA6D;KAC3D,EAEnB,oBAAC;IAAI,WAAU;cACb,oBAAC;KAAI,WAAU;eACb,oBAAC,WAAW;MACV,IAAIA;MACJ,OAAM;MACN,WAAU;MACV,SAAQ;MACR,OAAM;MACN,WAAU;MACV,SAAQ;gBAER,qBAAC,OAAO;OACN,WAAU;OACV,eAAY;kBAEZ,oBAAC;QAAI,WAAU;kBACb,oBAAC;SACC,SAAS;SACT,WAAU;SACV,eAAY;mBAEZ,oBAAC,MAAI;UACE;SACL,EACN,oBAAC;QAAI,WAAU;mBACX,QAAQ,UAAU,UAAU,KAAK,KACjC,oBAAC;SAAI,WAAU;oBACX,QAAQ,WAAW,EAAE,EAAE,KAAK,WAAW;AACvC,iBACE,oBAAC,mBACC,oBAACC;WACS;WACR,SAAS,QAAQ,OAAO;WACxB,cAAc;WACd,OAAO,OAAO,SAAS;WACvB,UAAU;YACV,IAPM,OAAO,GAQX;WAER;UACE;SAEJ;QACO;OACE;MACf;KACF;IACC;GACE,IACZ;;AAIP,6BAAe"}
1
+ {"version":3,"file":"mobile-actions.js","names":["MobileActions: React.FC<MobileActionsProps>","Fragment","OptionSelect"],"sources":["../../../src/components/product-actions/mobile-actions.tsx"],"sourcesContent":["import React, { Fragment, useMemo } from 'react';\n\nimport useToggleState from '@gfed-medusa/sf-lib-common/lib/hooks/use-toggle-state';\nimport { getProductPrice } from '@gfed-medusa/sf-lib-common/lib/utils/get-product-price';\nimport { ChevronDown } from '@gfed-medusa/sf-lib-ui/icons/chevron-down';\nimport { X } from '@gfed-medusa/sf-lib-ui/icons/x';\nimport { Dialog, Transition } from '@headlessui/react';\nimport { HttpTypes } from '@medusajs/types';\nimport { Button, clx } from '@medusajs/ui';\n\nimport { isSimpleProduct } from '@/lib/utils/product';\nimport { Product, ProductVariant } from '@/types/graphql';\n\nimport OptionSelect from './option-select';\n\ntype MobileActionsProps = {\n product: Product;\n variant?: ProductVariant;\n options: Record<string, string | undefined>;\n updateOptions: (title: string, value: string) => void;\n inStock?: boolean;\n handleAddToCart: () => void;\n isAdding?: boolean;\n show: boolean;\n optionsDisabled: boolean;\n};\n\nconst MobileActions: React.FC<MobileActionsProps> = ({\n product,\n variant,\n options,\n updateOptions,\n inStock,\n handleAddToCart,\n isAdding,\n show,\n optionsDisabled,\n}) => {\n const { state, open, close } = useToggleState();\n\n const price = getProductPrice({\n product: product,\n variantId: variant?.id,\n });\n\n const selectedPrice = useMemo(() => {\n if (!price) {\n return null;\n }\n const { variantPrice, cheapestPrice } = price;\n\n return variantPrice || cheapestPrice || null;\n }, [price]);\n\n const isSimple = isSimpleProduct(product);\n\n return (\n <>\n <div\n className={clx('fixed inset-x-0 bottom-0 lg:hidden', {\n 'pointer-events-none': !show,\n })}\n >\n <Transition\n as={Fragment}\n show={show}\n enter=\"ease-in-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-300\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <div\n className=\"text-large-regular flex h-full w-full flex-col items-center justify-center gap-y-3 border-t border-gray-200 bg-white p-4\"\n data-testid=\"mobile-actions\"\n >\n <div className=\"flex items-center gap-x-2\">\n <span data-testid=\"mobile-title\">{product.title}</span>\n <span>—</span>\n {selectedPrice ? (\n <div className=\"text-ui-fg-base flex items-end gap-x-2\">\n {selectedPrice.price_type === 'sale' && (\n <p>\n <span className=\"text-small-regular line-through\">\n {selectedPrice.original_price}\n </span>\n </p>\n )}\n <span\n className={clx({\n 'text-ui-fg-interactive':\n selectedPrice.price_type === 'sale',\n })}\n >\n {selectedPrice.calculated_price}\n </span>\n </div>\n ) : (\n <div></div>\n )}\n </div>\n <div\n className={clx('grid w-full grid-cols-2 gap-x-4', {\n '!grid-cols-1': isSimple,\n })}\n >\n {!isSimple && (\n <Button\n onClick={open}\n variant=\"secondary\"\n className=\"w-full\"\n data-testid=\"mobile-actions-button\"\n >\n <div className=\"flex w-full items-center justify-between\">\n <span>\n {variant\n ? Object.values(options).join(' / ')\n : 'Select Options'}\n </span>\n <ChevronDown />\n </div>\n </Button>\n )}\n <Button\n onClick={handleAddToCart}\n disabled={!inStock || !variant}\n className=\"w-full\"\n isLoading={isAdding}\n data-testid=\"mobile-cart-button\"\n >\n {!variant\n ? 'Select variant'\n : !inStock\n ? 'Out of stock'\n : 'Add to cart'}\n </Button>\n </div>\n </div>\n </Transition>\n </div>\n <Transition appear show={state} as={Fragment}>\n <Dialog as=\"div\" className=\"relative z-[100]\" onClose={close}>\n <Transition.Child\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <div className=\"fixed inset-0 bg-gray-700 bg-opacity-75 backdrop-blur-sm\" />\n </Transition.Child>\n\n <div className=\"fixed inset-x-0 bottom-0\">\n <div className=\"flex h-full min-h-full items-center justify-center text-center\">\n <Transition.Child\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <Dialog.Panel\n className=\"flex h-full w-full transform flex-col gap-y-3 overflow-hidden text-left\"\n data-testid=\"mobile-actions-modal\"\n >\n <div className=\"flex w-full justify-end pr-6\">\n <button\n onClick={close}\n className=\"text-ui-fg-base flex h-12 w-12 items-center justify-center rounded-full bg-white\"\n data-testid=\"close-modal-button\"\n >\n <X />\n </button>\n </div>\n <div className=\"bg-white px-6 py-12\">\n {(product.variants?.length ?? 0) > 1 && (\n <div className=\"flex flex-col gap-y-6\">\n {(product.options || []).map((option) => {\n return (\n <div key={option.id}>\n <OptionSelect\n option={option}\n current={options[option.id]}\n updateOption={updateOptions}\n title={option.title ?? ''}\n disabled={optionsDisabled}\n />\n </div>\n );\n })}\n </div>\n )}\n </div>\n </Dialog.Panel>\n </Transition.Child>\n </div>\n </div>\n </Dialog>\n </Transition>\n </>\n );\n};\n\nexport default MobileActions;\n"],"mappings":";;;;;;;;;;;;AA2BA,MAAMA,iBAA+C,EACnD,SACA,SACA,SACA,eACA,SACA,iBACA,UACA,MACA,sBACI;CACJ,MAAM,EAAE,OAAO,MAAM,UAAU,gBAAgB;CAE/C,MAAM,QAAQ,gBAAgB;EACnB;EACT,WAAW,SAAS;EACrB,CAAC;CAEF,MAAM,gBAAgB,cAAc;AAClC,MAAI,CAAC,MACH,QAAO;EAET,MAAM,EAAE,cAAc,kBAAkB;AAExC,SAAO,gBAAgB,iBAAiB;IACvC,CAAC,MAAM,CAAC;CAEX,MAAM,WAAW,gBAAgB,QAAQ;AAEzC,QACE,4CACE,oBAAC;EACC,WAAW,IAAI,sCAAsC,EACnD,uBAAuB,CAAC,MACzB,CAAC;YAEF,oBAAC;GACC,IAAIC;GACE;GACN,OAAM;GACN,WAAU;GACV,SAAQ;GACR,OAAM;GACN,WAAU;GACV,SAAQ;aAER,qBAAC;IACC,WAAU;IACV,eAAY;eAEZ,qBAAC;KAAI,WAAU;;MACb,oBAAC;OAAK,eAAY;iBAAgB,QAAQ;QAAa;MACvD,oBAAC,oBAAK,MAAQ;MACb,gBACC,qBAAC;OAAI,WAAU;kBACZ,cAAc,eAAe,UAC5B,oBAAC,iBACC,oBAAC;QAAK,WAAU;kBACb,cAAc;SACV,GACL,EAEN,oBAAC;QACC,WAAW,IAAI,EACb,0BACE,cAAc,eAAe,QAChC,CAAC;kBAED,cAAc;SACV;QACH,GAEN,oBAAC,UAAU;;MAET,EACN,qBAAC;KACC,WAAW,IAAI,mCAAmC,EAChD,gBAAgB,UACjB,CAAC;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, ProductVariant } from "../../types/graphql.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/product-price/index.d.ts
5
5
  declare function ProductPrice({
@@ -8,7 +8,7 @@ declare function ProductPrice({
8
8
  }: {
9
9
  product: Product;
10
10
  variant?: ProductVariant;
11
- }): react_jsx_runtime3.JSX.Element;
11
+ }): react_jsx_runtime8.JSX.Element;
12
12
  //#endregion
13
13
  export { ProductPrice as default };
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 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_runtime4.JSX.Element;
10
+ }: ProductTabsProps) => react_jsx_runtime3.JSX.Element;
11
11
  //#endregion
12
12
  export { ProductTabs as default };
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 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';
@@ -11,7 +11,7 @@ declare const SortProducts: ({
11
11
  "data-testid": dataTestId,
12
12
  sortBy,
13
13
  setQueryParams
14
- }: SortProductsProps) => react_jsx_runtime12.JSX.Element;
14
+ }: SortProductsProps) => react_jsx_runtime6.JSX.Element;
15
15
  //#endregion
16
16
  export { SortOptions, SortProducts as default };
17
17
  //# 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":";;;KAIY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,aAAA,CAAA,EAAA,MAAiB;AAE6B,CAAA;cAmB7C,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAInB,iBAJmB,EAAA,GAIF,mBAAA,CAAA,GAAA,CAAA,OAJE"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/refinement-list/sort-products/index.tsx"],"sourcesContent":[],"mappings":";;;KAIY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,aAAA,CAAA,EAAA,MAAiB;AAE6B,CAAA;cAmB7C,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAInB,iBAJmB,EAAA,GAIF,kBAAA,CAAA,GAAA,CAAA,OAJE"}
@@ -1,5 +1,5 @@
1
1
  import { Product } from "../../types/graphql.js";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
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<react_jsx_runtime13.JSX.Element | null>;
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":";;;;KAUK,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":";;;;KAUK,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_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime13 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_runtime5.JSX.Element;
8
+ }) => react_jsx_runtime13.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,kBAAA,CAAA,GAAA,CAAA"}
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,7 +1,7 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 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_runtime12.JSX.Element;
5
5
  //#endregion
6
6
  export { SkeletonProductPreview as default };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-product-preview/index.tsx"],"sourcesContent":[],"mappings":";;;cAEM,8BAAsB,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/skeleton-product-preview/index.tsx"],"sourcesContent":[],"mappings":";;;cAEM,8BAAsB,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/skeleton-related-products/index.d.ts
4
- declare const SkeletonRelatedProducts: () => react_jsx_runtime7.JSX.Element;
4
+ declare const SkeletonRelatedProducts: () => react_jsx_runtime11.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_client9 from "@apollo/client";
1
+ import * as _apollo_client10 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/fragments/cart.d.ts
4
- declare const LINE_ITEM_FRAGMENT: _apollo_client9.DocumentNode;
5
- declare const ADDRESS_FRAGMENT: _apollo_client9.DocumentNode;
6
- declare const SHIPPING_METHODS_FRAGMENT: _apollo_client9.DocumentNode;
7
- declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client9.DocumentNode;
8
- declare const COUNTRY_FRAGMENT: _apollo_client9.DocumentNode;
9
- declare const REGION_FRAGMENT: _apollo_client9.DocumentNode;
10
- declare const PROMOTION_FRAGMENT: _apollo_client9.DocumentNode;
11
- declare const CART_FRAGMENT: _apollo_client9.DocumentNode;
4
+ declare const LINE_ITEM_FRAGMENT: _apollo_client10.DocumentNode;
5
+ declare const ADDRESS_FRAGMENT: _apollo_client10.DocumentNode;
6
+ declare const SHIPPING_METHODS_FRAGMENT: _apollo_client10.DocumentNode;
7
+ declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client10.DocumentNode;
8
+ declare const COUNTRY_FRAGMENT: _apollo_client10.DocumentNode;
9
+ declare const REGION_FRAGMENT: _apollo_client10.DocumentNode;
10
+ declare const PROMOTION_FRAGMENT: _apollo_client10.DocumentNode;
11
+ declare const CART_FRAGMENT: _apollo_client10.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,15 +1,15 @@
1
- import * as _apollo_client17 from "@apollo/client";
1
+ import * as _apollo_client26 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/mutations/cart.d.ts
4
- declare const CREATE_CART_MUTATION: _apollo_client17.DocumentNode;
5
- declare const UPDATE_CART_MUTATION: _apollo_client17.DocumentNode;
6
- declare const CREATE_LINE_ITEM_MUTATION: _apollo_client17.DocumentNode;
7
- declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client17.DocumentNode;
8
- declare const DELETE_LINE_ITEM_MUTATION: _apollo_client17.DocumentNode;
9
- declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client17.DocumentNode;
10
- declare const COMPLETE_CART_MUTATION: _apollo_client17.DocumentNode;
11
- declare const TRANSFER_CART_MUTATION: _apollo_client17.DocumentNode;
12
- declare const APPLY_PROMOTIONS_MUTATION: _apollo_client17.DocumentNode;
4
+ declare const CREATE_CART_MUTATION: _apollo_client26.DocumentNode;
5
+ declare const UPDATE_CART_MUTATION: _apollo_client26.DocumentNode;
6
+ declare const CREATE_LINE_ITEM_MUTATION: _apollo_client26.DocumentNode;
7
+ declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client26.DocumentNode;
8
+ declare const DELETE_LINE_ITEM_MUTATION: _apollo_client26.DocumentNode;
9
+ declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client26.DocumentNode;
10
+ declare const COMPLETE_CART_MUTATION: _apollo_client26.DocumentNode;
11
+ declare const TRANSFER_CART_MUTATION: _apollo_client26.DocumentNode;
12
+ declare const APPLY_PROMOTIONS_MUTATION: _apollo_client26.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_client34 from "@apollo/client";
1
+ import * as _apollo_client0 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/cart.d.ts
4
- declare const GET_CART_QUERY: _apollo_client34.DocumentNode;
4
+ declare const GET_CART_QUERY: _apollo_client0.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,gBAAA,CAP0B"}
1
+ {"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,gBAOZ,eAAA,CAP0B"}
@@ -1,14 +1,14 @@
1
- import * as _apollo_client26 from "@apollo/client";
1
+ import * as _apollo_client18 from "@apollo/client";
2
2
 
3
3
  //#region src/lib/gql/queries/product.d.ts
4
- declare const GET_PRODUCTS_QUERY: _apollo_client26.DocumentNode;
5
- declare const GET_PRODUCT_QUERY: _apollo_client26.DocumentNode;
6
- declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client26.DocumentNode;
7
- declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client26.DocumentNode;
8
- declare const GET_COLLECTIONS_QUERY: _apollo_client26.DocumentNode;
9
- declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client26.DocumentNode;
10
- declare const GET_COLLECTION_QUERY: _apollo_client26.DocumentNode;
11
- declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client26.DocumentNode;
4
+ declare const GET_PRODUCTS_QUERY: _apollo_client18.DocumentNode;
5
+ declare const GET_PRODUCT_QUERY: _apollo_client18.DocumentNode;
6
+ declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client18.DocumentNode;
7
+ declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client18.DocumentNode;
8
+ declare const GET_COLLECTIONS_QUERY: _apollo_client18.DocumentNode;
9
+ declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client18.DocumentNode;
10
+ declare const GET_COLLECTION_QUERY: _apollo_client18.DocumentNode;
11
+ declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client18.DocumentNode;
12
12
  //#endregion
13
13
  export { GET_COLLECTIONS_QUERY, GET_COLLECTIONS_SUMMARY_QUERY, GET_COLLECTION_QUERY, GET_PRODUCTS_QUERY, GET_PRODUCT_CATEGORIES_QUERY, GET_PRODUCT_CATEGORY_QUERY, GET_PRODUCT_QUERY, SEARCH_SUGGESTIONS_QUERY };
14
14
  //# sourceMappingURL=product.d.ts.map
@@ -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_runtime5 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 | null>;
19
+ }): Promise<react_jsx_runtime5.JSX.Element | null>;
20
20
  //#endregion
21
21
  export { PaginatedProducts as default };
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
  import { Region } from "@gfed-medusa/sf-lib-common/types/graphql";
3
3
 
4
4
  //#region src/templates/product-actions-wrapper/index.d.ts
@@ -11,7 +11,7 @@ declare function ProductActionsWrapper({
11
11
  }: {
12
12
  id: string;
13
13
  region: Region;
14
- }): Promise<react_jsx_runtime9.JSX.Element | null>;
14
+ }): Promise<react_jsx_runtime1.JSX.Element | null>;
15
15
  //#endregion
16
16
  export { ProductActionsWrapper as default };
17
17
  //# 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_runtime9 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_runtime9.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,MAgCL;CAhCsB,EAAA,GAQtB,mBAAA,CAAA,GAAA,CAAA,OARsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/store-template/index.tsx"],"sourcesContent":[],"mappings":";;;;cAQM;;;;;WAKK;;EALL,WAAA,EAAA,MAgCL;CAhCsB,EAAA,GAQtB,kBAAA,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.3.3",
3
+ "version": "1.3.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.0.0",
54
+ "@gfed-medusa/sf-lib-common": "^3.0.1",
55
55
  "@gfed-medusa/sf-lib-ui": "^1.2.1",
56
56
  "@headlessui/react": "^2.2.9",
57
57
  "@medusajs/icons": "^2.12.1",