@atomic-solutions/woocommerce-react 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2,10 +2,10 @@ import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { WooCommerceClient } from '@atomic-solutions/woocommerce-api-client';
4
4
  export { Address, BillingAddress, Cart, CartHeadersAdapter, CartItem, Checkout, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema } from '@atomic-solutions/woocommerce-api-client';
5
- import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-8KIvr2ze.cjs';
6
- export { C as CartCouponAppliedEvent, c as CartCouponRemovedEvent, d as CartCustomerUpdatedEvent, e as CartItemAddedEvent, f as CartItemRemovedEvent, g as CartItemUpdatedEvent, h as CartShippingSelectedEvent, i as CheckoutProcessedEvent, D as DEFAULT_STORE_CONFIG, O as OrderFetchedEvent, j as StoreConfig, k as StoreContextValue, l as StoreFeatures, m as StoreGuardrails, n as StoreTheme, o as WooCommerceEvent, p as createQueryKeys } from './types-8KIvr2ze.cjs';
5
+ import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-D7dDI9Lr.cjs';
6
+ export { C as CartCouponAppliedEvent, c as CartCouponRemovedEvent, d as CartCustomerUpdatedEvent, e as CartItemAddedEvent, f as CartItemRemovedEvent, g as CartItemUpdatedEvent, h as CartShippingSelectedEvent, i as CheckoutProcessedEvent, D as DEFAULT_STORE_CONFIG, O as OrderFetchedEvent, j as StoreConfig, k as StoreContextValue, l as StoreFeatures, m as StoreGuardrails, n as StoreTheme, o as WooCommerceEvent, p as createQueryKeys } from './types-D7dDI9Lr.cjs';
7
7
  export { WooCommerceStoreContext, WooCommerceStoreProvider, WooCommerceStoreProviderProps } from './provider/index.cjs';
8
- export { A as AppliedCoupon, C as CartTotals, I as ImageSize, P as PLACEHOLDER_IMAGE_URL, a as PaymentMethod, b as ProcessedCartItem, c as ProcessedCategory, d as ProcessedProduct, e as ProcessedProductDetails, f as ProductCartState, g as ProductCategoryTreeNode, S as ShippingRate, U as UseCartViewOptions, h as UseCartViewReturn, i as UseProductViewOptions, j as UseProductViewReturn, k as UseProductsFeedOptions, l as UseProductsFeedReturn, m as getAllImageUrls, n as getImageUrl, o as getImageUrlOrPlaceholder, p as getPrimaryImage, q as getSizedImageUrl, r as preloadImage, s as preloadImages, u as useAddToCart, t as useApplyCoupon, v as useCart, w as useCartView, x as useCheckout, y as useInfiniteProducts, z as useOrder, B as useProcessCheckout, D as useProduct, E as useProductCategories, F as useProductCategoryTree, G as useProductView, H as useProducts, J as useProductsFeed, K as useRemoveCoupon, L as useRemoveFromCart, M as useSelectShippingRate, N as useStore, O as useStoreFeatures, Q as useStoreLocale, R as useStoreTheme, T as useUpdateCartItem, V as useUpdateCustomer, W as useWooCommerceClient, X as useWooCommerceQueryKeys } from './index-Cq857W8p.cjs';
8
+ export { A as AppliedCoupon, C as CartTotals, I as ImageSize, P as PLACEHOLDER_IMAGE_URL, a as PaymentMethod, b as ProcessedCartItem, c as ProcessedCategory, d as ProcessedProduct, e as ProcessedProductDetails, f as ProductCartState, g as ProductCategoryTreeNode, S as ShippingRate, U as UseCartViewOptions, h as UseCartViewReturn, i as UseProductViewOptions, j as UseProductViewReturn, k as UseProductsFeedOptions, l as UseProductsFeedReturn, m as getAllImageUrls, n as getImageUrl, o as getImageUrlOrPlaceholder, p as getPrimaryImage, q as getSizedImageUrl, r as preloadImage, s as preloadImages, u as useAddToCart, t as useApplyCoupon, v as useCart, w as useCartView, x as useCheckout, y as useInfiniteProducts, z as useOrder, B as useProcessCheckout, D as useProduct, E as useProductCategories, F as useProductCategoryTree, G as useProductView, H as useProducts, J as useProductsFeed, K as useRemoveCoupon, L as useRemoveFromCart, M as useSelectShippingRate, N as useStore, O as useStoreFeatures, Q as useStoreLocale, R as useStoreTheme, T as useUpdateCartItem, V as useUpdateCustomer, W as useWooCommerceClient, X as useWooCommerceQueryKeys } from './index-BP5iXDIj.cjs';
9
9
  import 'react/jsx-runtime';
10
10
  import '@tanstack/react-query';
11
11
 
package/dist/index.d.ts CHANGED
@@ -2,10 +2,10 @@ import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { WooCommerceClient } from '@atomic-solutions/woocommerce-api-client';
4
4
  export { Address, BillingAddress, Cart, CartHeadersAdapter, CartItem, Checkout, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema } from '@atomic-solutions/woocommerce-api-client';
5
- import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-8KIvr2ze.js';
6
- export { C as CartCouponAppliedEvent, c as CartCouponRemovedEvent, d as CartCustomerUpdatedEvent, e as CartItemAddedEvent, f as CartItemRemovedEvent, g as CartItemUpdatedEvent, h as CartShippingSelectedEvent, i as CheckoutProcessedEvent, D as DEFAULT_STORE_CONFIG, O as OrderFetchedEvent, j as StoreConfig, k as StoreContextValue, l as StoreFeatures, m as StoreGuardrails, n as StoreTheme, o as WooCommerceEvent, p as createQueryKeys } from './types-8KIvr2ze.js';
5
+ import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-D7dDI9Lr.js';
6
+ export { C as CartCouponAppliedEvent, c as CartCouponRemovedEvent, d as CartCustomerUpdatedEvent, e as CartItemAddedEvent, f as CartItemRemovedEvent, g as CartItemUpdatedEvent, h as CartShippingSelectedEvent, i as CheckoutProcessedEvent, D as DEFAULT_STORE_CONFIG, O as OrderFetchedEvent, j as StoreConfig, k as StoreContextValue, l as StoreFeatures, m as StoreGuardrails, n as StoreTheme, o as WooCommerceEvent, p as createQueryKeys } from './types-D7dDI9Lr.js';
7
7
  export { WooCommerceStoreContext, WooCommerceStoreProvider, WooCommerceStoreProviderProps } from './provider/index.js';
8
- export { A as AppliedCoupon, C as CartTotals, I as ImageSize, P as PLACEHOLDER_IMAGE_URL, a as PaymentMethod, b as ProcessedCartItem, c as ProcessedCategory, d as ProcessedProduct, e as ProcessedProductDetails, f as ProductCartState, g as ProductCategoryTreeNode, S as ShippingRate, U as UseCartViewOptions, h as UseCartViewReturn, i as UseProductViewOptions, j as UseProductViewReturn, k as UseProductsFeedOptions, l as UseProductsFeedReturn, m as getAllImageUrls, n as getImageUrl, o as getImageUrlOrPlaceholder, p as getPrimaryImage, q as getSizedImageUrl, r as preloadImage, s as preloadImages, u as useAddToCart, t as useApplyCoupon, v as useCart, w as useCartView, x as useCheckout, y as useInfiniteProducts, z as useOrder, B as useProcessCheckout, D as useProduct, E as useProductCategories, F as useProductCategoryTree, G as useProductView, H as useProducts, J as useProductsFeed, K as useRemoveCoupon, L as useRemoveFromCart, M as useSelectShippingRate, N as useStore, O as useStoreFeatures, Q as useStoreLocale, R as useStoreTheme, T as useUpdateCartItem, V as useUpdateCustomer, W as useWooCommerceClient, X as useWooCommerceQueryKeys } from './index-curVj6LB.js';
8
+ export { A as AppliedCoupon, C as CartTotals, I as ImageSize, P as PLACEHOLDER_IMAGE_URL, a as PaymentMethod, b as ProcessedCartItem, c as ProcessedCategory, d as ProcessedProduct, e as ProcessedProductDetails, f as ProductCartState, g as ProductCategoryTreeNode, S as ShippingRate, U as UseCartViewOptions, h as UseCartViewReturn, i as UseProductViewOptions, j as UseProductViewReturn, k as UseProductsFeedOptions, l as UseProductsFeedReturn, m as getAllImageUrls, n as getImageUrl, o as getImageUrlOrPlaceholder, p as getPrimaryImage, q as getSizedImageUrl, r as preloadImage, s as preloadImages, u as useAddToCart, t as useApplyCoupon, v as useCart, w as useCartView, x as useCheckout, y as useInfiniteProducts, z as useOrder, B as useProcessCheckout, D as useProduct, E as useProductCategories, F as useProductCategoryTree, G as useProductView, H as useProducts, J as useProductsFeed, K as useRemoveCoupon, L as useRemoveFromCart, M as useSelectShippingRate, N as useStore, O as useStoreFeatures, Q as useStoreLocale, R as useStoreTheme, T as useUpdateCartItem, V as useUpdateCustomer, W as useWooCommerceClient, X as useWooCommerceQueryKeys } from './index-BPa3-Cyt.js';
9
9
  import 'react/jsx-runtime';
10
10
  import '@tanstack/react-query';
11
11
 
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode } from 'react';
4
- import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-8KIvr2ze.cjs';
5
- export { D as DEFAULT_STORE_CONFIG, I as ImageUrlTransformer, R as RateLimitConfig, l as StoreFeatures, m as StoreGuardrails, S as StoreLocale, n as StoreTheme, a as StoreValidationResult } from '../types-8KIvr2ze.cjs';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-D7dDI9Lr.cjs';
5
+ export { D as DEFAULT_STORE_CONFIG, I as ImageUrlTransformer, R as RateLimitConfig, l as StoreFeatures, m as StoreGuardrails, S as StoreLocale, n as StoreTheme, a as StoreValidationResult } from '../types-D7dDI9Lr.cjs';
6
6
  import '@atomic-solutions/woocommerce-api-client';
7
7
 
8
8
  interface WooCommerceStoreProviderProps {
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode } from 'react';
4
- import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-8KIvr2ze.js';
5
- export { D as DEFAULT_STORE_CONFIG, I as ImageUrlTransformer, R as RateLimitConfig, l as StoreFeatures, m as StoreGuardrails, S as StoreLocale, n as StoreTheme, a as StoreValidationResult } from '../types-8KIvr2ze.js';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-D7dDI9Lr.js';
5
+ export { D as DEFAULT_STORE_CONFIG, I as ImageUrlTransformer, R as RateLimitConfig, l as StoreFeatures, m as StoreGuardrails, S as StoreLocale, n as StoreTheme, a as StoreValidationResult } from '../types-D7dDI9Lr.js';
6
6
  import '@atomic-solutions/woocommerce-api-client';
7
7
 
8
8
  interface WooCommerceStoreProviderProps {
@@ -54,38 +54,38 @@ declare const createQueryKeys: (prefix?: string[]) => {
54
54
  list: (params?: ProductParams) => readonly [...string[], "products", "list", {
55
55
  page: number;
56
56
  per_page: number;
57
- type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
58
- status?: "publish" | "draft" | "pending" | "private" | "any" | undefined;
57
+ type?: "variation" | "simple" | "variable" | "grouped" | "external" | undefined;
58
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
59
59
  order?: "asc" | "desc" | undefined;
60
- orderby?: "date" | "id" | "slug" | "include" | "title" | "popularity" | "rating" | "menu_order" | "price" | "date_modified" | undefined;
60
+ orderby?: "id" | "price" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
61
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
61
62
  slug?: string | undefined;
62
63
  parent?: number[] | undefined;
63
- search?: string | undefined;
64
- exclude?: number[] | undefined;
65
64
  include?: number[] | undefined;
65
+ rating?: number[] | undefined;
66
+ search?: string | undefined;
66
67
  after?: string | undefined;
67
68
  before?: string | undefined;
68
- rating?: number[] | undefined;
69
69
  modified_after?: string | undefined;
70
70
  modified_before?: string | undefined;
71
+ exclude?: number[] | undefined;
72
+ parent_exclude?: number[] | undefined;
71
73
  featured?: boolean | undefined;
72
- catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
73
74
  stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
75
+ category?: string | undefined;
76
+ category_operator?: "in" | "not_in" | "and" | undefined;
77
+ tag?: string | undefined;
78
+ tag_operator?: "in" | "not_in" | "and" | undefined;
74
79
  attributes?: {
75
80
  attribute: string;
76
81
  slug?: string[] | undefined;
77
82
  term_id?: number[] | undefined;
78
83
  operator?: "in" | "not_in" | "and" | undefined;
79
84
  }[] | undefined;
80
- on_sale?: boolean | undefined;
81
- category?: string | undefined;
82
- tag?: string | undefined;
85
+ attribute_relation?: "in" | "and" | undefined;
83
86
  min_price?: string | undefined;
84
87
  max_price?: string | undefined;
85
- parent_exclude?: number[] | undefined;
86
- category_operator?: "in" | "not_in" | "and" | undefined;
87
- tag_operator?: "in" | "not_in" | "and" | undefined;
88
- attribute_relation?: "in" | "and" | undefined;
88
+ on_sale?: boolean | undefined;
89
89
  } | undefined];
90
90
  details: () => readonly [...string[], "products", "detail"];
91
91
  detail: (id: number) => readonly [...string[], "products", "detail", number];
@@ -54,38 +54,38 @@ declare const createQueryKeys: (prefix?: string[]) => {
54
54
  list: (params?: ProductParams) => readonly [...string[], "products", "list", {
55
55
  page: number;
56
56
  per_page: number;
57
- type?: "simple" | "grouped" | "external" | "variable" | "variation" | undefined;
58
- status?: "publish" | "draft" | "pending" | "private" | "any" | undefined;
57
+ type?: "variation" | "simple" | "variable" | "grouped" | "external" | undefined;
58
+ status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
59
59
  order?: "asc" | "desc" | undefined;
60
- orderby?: "date" | "id" | "slug" | "include" | "title" | "popularity" | "rating" | "menu_order" | "price" | "date_modified" | undefined;
60
+ orderby?: "id" | "price" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
61
+ catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
61
62
  slug?: string | undefined;
62
63
  parent?: number[] | undefined;
63
- search?: string | undefined;
64
- exclude?: number[] | undefined;
65
64
  include?: number[] | undefined;
65
+ rating?: number[] | undefined;
66
+ search?: string | undefined;
66
67
  after?: string | undefined;
67
68
  before?: string | undefined;
68
- rating?: number[] | undefined;
69
69
  modified_after?: string | undefined;
70
70
  modified_before?: string | undefined;
71
+ exclude?: number[] | undefined;
72
+ parent_exclude?: number[] | undefined;
71
73
  featured?: boolean | undefined;
72
- catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
73
74
  stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
75
+ category?: string | undefined;
76
+ category_operator?: "in" | "not_in" | "and" | undefined;
77
+ tag?: string | undefined;
78
+ tag_operator?: "in" | "not_in" | "and" | undefined;
74
79
  attributes?: {
75
80
  attribute: string;
76
81
  slug?: string[] | undefined;
77
82
  term_id?: number[] | undefined;
78
83
  operator?: "in" | "not_in" | "and" | undefined;
79
84
  }[] | undefined;
80
- on_sale?: boolean | undefined;
81
- category?: string | undefined;
82
- tag?: string | undefined;
85
+ attribute_relation?: "in" | "and" | undefined;
83
86
  min_price?: string | undefined;
84
87
  max_price?: string | undefined;
85
- parent_exclude?: number[] | undefined;
86
- category_operator?: "in" | "not_in" | "and" | undefined;
87
- tag_operator?: "in" | "not_in" | "and" | undefined;
88
- attribute_relation?: "in" | "and" | undefined;
88
+ on_sale?: boolean | undefined;
89
89
  } | undefined];
90
90
  details: () => readonly [...string[], "products", "detail"];
91
91
  detail: (id: number) => readonly [...string[], "products", "detail", number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-solutions/woocommerce-react",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "React Query hooks and provider for WooCommerce Store API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@atomic-solutions/woocommerce-api-client": "0.1.3"
49
+ "@atomic-solutions/woocommerce-api-client": "0.1.4"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@tanstack/react-query": ">=5.0.0",