@atomic-solutions/woocommerce-react 0.3.0 → 0.4.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.
package/dist/index.cjs CHANGED
@@ -1770,6 +1770,14 @@ Object.defineProperty(exports, "checkoutSchema", {
1770
1770
  enumerable: true,
1771
1771
  get: function () { return woocommerceApiClient.checkoutSchema; }
1772
1772
  });
1773
+ Object.defineProperty(exports, "makeAddressFormSchema", {
1774
+ enumerable: true,
1775
+ get: function () { return woocommerceApiClient.makeAddressFormSchema; }
1776
+ });
1777
+ Object.defineProperty(exports, "makeBillingAddressFormSchema", {
1778
+ enumerable: true,
1779
+ get: function () { return woocommerceApiClient.makeBillingAddressFormSchema; }
1780
+ });
1773
1781
  exports.DEFAULT_STORE_CONFIG = DEFAULT_STORE_CONFIG;
1774
1782
  exports.PLACEHOLDER_IMAGE_URL = PLACEHOLDER_IMAGE_URL;
1775
1783
  exports.RateLimiter = RateLimiter;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { WooCommerceClient } from '@atomic-solutions/woocommerce-api-client';
4
- export { Address, BillingAddress, Cart, CartHeadersAdapter, CartItem, Checkout, OrderStatus, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema } from '@atomic-solutions/woocommerce-api-client';
4
+ export { Address, AddressFormMessages, AddressFormValues, BillingAddress, BillingAddressFormValues, Cart, CartHeadersAdapter, CartItem, Checkout, OrderStatus, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema, makeAddressFormSchema, makeBillingAddressFormSchema } from '@atomic-solutions/woocommerce-api-client';
5
5
  import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-_8YqnkO-.cjs';
6
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-_8YqnkO-.cjs';
7
7
  export { WooCommerceStoreContext, WooCommerceStoreProvider, WooCommerceStoreProviderProps } from './provider/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { WooCommerceClient } from '@atomic-solutions/woocommerce-api-client';
4
- export { Address, BillingAddress, Cart, CartHeadersAdapter, CartItem, Checkout, OrderStatus, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema } from '@atomic-solutions/woocommerce-api-client';
4
+ export { Address, AddressFormMessages, AddressFormValues, BillingAddress, BillingAddressFormValues, Cart, CartHeadersAdapter, CartItem, Checkout, OrderStatus, Product, ProductCategory, ProductImage, ProductParams, StoreApiOrder, addressSchema, checkoutSchema, makeAddressFormSchema, makeBillingAddressFormSchema } from '@atomic-solutions/woocommerce-api-client';
5
5
  import { Q as QueryKeys, W as WooCommerceEventHandler, S as StoreLocale, a as StoreValidationResult, R as RateLimitConfig, b as WooCommerceEventType } from './types-_8YqnkO-.js';
6
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-_8YqnkO-.js';
7
7
  export { WooCommerceStoreContext, WooCommerceStoreProvider, WooCommerceStoreProviderProps } from './provider/index.js';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createContext, useMemo, useState, useEffect, useRef, useCallback, useContext } from 'react';
2
2
  import { jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { createClient, WooCommerceApiError } from '@atomic-solutions/woocommerce-api-client';
4
- export { addressSchema, checkoutSchema } from '@atomic-solutions/woocommerce-api-client';
4
+ export { addressSchema, checkoutSchema, makeAddressFormSchema, makeBillingAddressFormSchema } from '@atomic-solutions/woocommerce-api-client';
5
5
  import { useQuery, useQueryClient, useMutation, useInfiniteQuery } from '@tanstack/react-query';
6
6
 
7
7
  // src/provider/WooCommerceProvider.tsx
package/package.json CHANGED
@@ -1,22 +1,26 @@
1
1
  {
2
2
  "name": "@atomic-solutions/woocommerce-react",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "React Query hooks and provider for WooCommerce Store API",
5
5
  "type": "module",
6
+ "source": "./src/index.ts",
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
11
+ "source": "./src/index.ts",
10
12
  "types": "./dist/index.d.ts",
11
13
  "import": "./dist/index.js",
12
14
  "require": "./dist/index.cjs"
13
15
  },
14
16
  "./hooks": {
17
+ "source": "./src/hooks/index.ts",
15
18
  "types": "./dist/hooks/index.d.ts",
16
19
  "import": "./dist/hooks/index.js",
17
20
  "require": "./dist/hooks/index.cjs"
18
21
  },
19
22
  "./provider": {
23
+ "source": "./src/provider/index.ts",
20
24
  "types": "./dist/provider/index.d.ts",
21
25
  "import": "./dist/provider/index.js",
22
26
  "require": "./dist/provider/index.cjs"
@@ -46,7 +50,7 @@
46
50
  "access": "public"
47
51
  },
48
52
  "dependencies": {
49
- "@atomic-solutions/woocommerce-api-client": "0.2.0"
53
+ "@atomic-solutions/woocommerce-api-client": "0.3.0"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@tanstack/react-query": ">=5.0.0",