@gem-sdk/core 2.0.0-dev.834 → 2.0.0-dev.837
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var useSWR=require("swr"),getProducts=require("../../helpers/queries/get-products.js"),query=require("../../helpers/query.js"),shop=require("../shop.js"),useFetchHandle=require("../useFetchHandle.js");const useProductsQuery=(e,u,r)=>{let t=useFetchHandle.useFetchHandle(),s=shop.useIsSampleProduct(),c=shop.useIsStorefrontProduct();return useSWR(e?query.generateProductsQueryKey({ids:e,isSample
|
|
1
|
+
"use strict";var useSWR=require("swr"),getProducts=require("../../helpers/queries/get-products.js"),query=require("../../helpers/query.js"),shop=require("../shop.js"),useFetchHandle=require("../useFetchHandle.js");const useProductsQuery=(e,u,r)=>{let t=useFetchHandle.useFetchHandle(),s=shop.useIsSampleProduct(),c=shop.useIsStorefrontProduct();return useSWR(e?query.generateProductsQueryKey({ids:e,isSample:!r?.fetcher&&s,isStorefront:!r?.fetcher&&c,defaultSelectedProductCount:r?.defaultSelectedProductCount,allStatus:r?.allStatus}):null,async([,e])=>getProducts.getProducts(r?.fetcher||t,e),u)},useProductsQueryAll=(e,u)=>{let r=useFetchHandle.useFetchHandle();return useSWR(e?["query/products",e]:null,async([,e])=>getProducts.getProductQueryAll(r,e),u)};exports.useProductsQuery=useProductsQuery,exports.useProductsQueryAll=useProductsQueryAll;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"swr";import{getProducts as r,getProductQueryAll as t}from"../../helpers/queries/get-products.js";import{generateProductsQueryKey as u}from"../../helpers/query.js";import{useIsSampleProduct as s,useIsStorefrontProduct as o}from"../shop.js";import{useFetchHandle as l}from"../useFetchHandle.js";let useProductsQuery=(t,c,d)=>{let p=l(),f=s(),m=o();return e(t?u({ids:t,isSample
|
|
1
|
+
import e from"swr";import{getProducts as r,getProductQueryAll as t}from"../../helpers/queries/get-products.js";import{generateProductsQueryKey as u}from"../../helpers/query.js";import{useIsSampleProduct as s,useIsStorefrontProduct as o}from"../shop.js";import{useFetchHandle as l}from"../useFetchHandle.js";let useProductsQuery=(t,c,d)=>{let p=l(),f=s(),m=o();return e(t?u({ids:t,isSample:!d?.fetcher&&f,isStorefront:!d?.fetcher&&m,defaultSelectedProductCount:d?.defaultSelectedProductCount,allStatus:d?.allStatus}):null,async([,e])=>r(d?.fetcher||p,e),c)},useProductsQueryAll=(r,u)=>{let s=l();return e(r?["query/products",r]:null,async([,e])=>t(s,e),u)};export{useProductsQuery,useProductsQueryAll};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27765,6 +27765,7 @@ type ProductsQueryResponse = {
|
|
|
27765
27765
|
type VariableRelatedStyles = {
|
|
27766
27766
|
limit?: number | undefined;
|
|
27767
27767
|
vendor?: string;
|
|
27768
|
+
idNEQ?: string;
|
|
27768
27769
|
hasProductTagsWith?: InputMaybe$1<ProductTagWhereInput$1[]>;
|
|
27769
27770
|
hasCollectionProductsWith?: InputMaybe$1<CollectionProductWhereInput$1[]>;
|
|
27770
27771
|
};
|