@atomic-solutions/woocommerce-react 0.2.5 → 0.2.6

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,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-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';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-_8YqnkO-.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-_8YqnkO-.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-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';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-_8YqnkO-.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-_8YqnkO-.js';
6
6
  import '@atomic-solutions/woocommerce-api-client';
7
7
 
8
8
  interface WooCommerceStoreProviderProps {
@@ -39,6 +39,7 @@ type CartShippingSelectedEvent = BaseSuccessEvent<'cart:shipping_selected', {
39
39
  }> | BaseErrorEvent<'cart:shipping_selected'>;
40
40
  type CheckoutProcessedEvent = BaseSuccessEvent<'checkout:processed', {
41
41
  checkout: Checkout;
42
+ cart: Cart | null;
42
43
  }> | BaseErrorEvent<'checkout:processed'>;
43
44
  type OrderFetchedEvent = BaseSuccessEvent<'order:fetched', {
44
45
  order: StoreApiOrder;
@@ -39,6 +39,7 @@ type CartShippingSelectedEvent = BaseSuccessEvent<'cart:shipping_selected', {
39
39
  }> | BaseErrorEvent<'cart:shipping_selected'>;
40
40
  type CheckoutProcessedEvent = BaseSuccessEvent<'checkout:processed', {
41
41
  checkout: Checkout;
42
+ cart: Cart | null;
42
43
  }> | BaseErrorEvent<'checkout:processed'>;
43
44
  type OrderFetchedEvent = BaseSuccessEvent<'order:fetched', {
44
45
  order: StoreApiOrder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-solutions/woocommerce-react",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
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.4"
49
+ "@atomic-solutions/woocommerce-api-client": "0.1.5"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@tanstack/react-query": ">=5.0.0",