@atomic-solutions/woocommerce-react 0.4.1 → 0.6.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.
@@ -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-_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';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-Dnq60zh-.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-Dnq60zh-.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-_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';
4
+ import { j as StoreConfig, Q as QueryKeys, k as StoreContextValue } from '../types-Dnq60zh-.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-Dnq60zh-.js';
6
6
  import '@atomic-solutions/woocommerce-api-client';
7
7
 
8
8
  interface WooCommerceStoreProviderProps {
@@ -59,6 +59,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
59
59
  status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
60
60
  order?: "asc" | "desc" | undefined;
61
61
  orderby?: "id" | "price" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
62
+ sku?: string | undefined;
62
63
  catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
63
64
  slug?: string | undefined;
64
65
  parent?: number[] | undefined;
@@ -70,6 +71,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
70
71
  modified_after?: string | undefined;
71
72
  modified_before?: string | undefined;
72
73
  exclude?: number[] | undefined;
74
+ related?: number | undefined;
73
75
  parent_exclude?: number[] | undefined;
74
76
  featured?: boolean | undefined;
75
77
  stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
@@ -97,6 +99,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
97
99
  details: () => readonly [...string[], "cart", "details"];
98
100
  mutations: {
99
101
  addItem: () => readonly [...string[], "cart", "mutation", "addItem"];
102
+ addItems: () => readonly [...string[], "cart", "mutation", "addItems"];
100
103
  updateItem: () => readonly [...string[], "cart", "mutation", "updateItem"];
101
104
  removeItem: () => readonly [...string[], "cart", "mutation", "removeItem"];
102
105
  applyCoupon: () => readonly [...string[], "cart", "mutation", "applyCoupon"];
@@ -59,6 +59,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
59
59
  status?: "pending" | "any" | "draft" | "private" | "publish" | undefined;
60
60
  order?: "asc" | "desc" | undefined;
61
61
  orderby?: "id" | "price" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "date_modified" | undefined;
62
+ sku?: string | undefined;
62
63
  catalog_visibility?: "search" | "any" | "visible" | "catalog" | "hidden" | undefined;
63
64
  slug?: string | undefined;
64
65
  parent?: number[] | undefined;
@@ -70,6 +71,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
70
71
  modified_after?: string | undefined;
71
72
  modified_before?: string | undefined;
72
73
  exclude?: number[] | undefined;
74
+ related?: number | undefined;
73
75
  parent_exclude?: number[] | undefined;
74
76
  featured?: boolean | undefined;
75
77
  stock_status?: ("instock" | "outofstock" | "onbackorder")[] | undefined;
@@ -97,6 +99,7 @@ declare const createQueryKeys: (prefix?: string[]) => {
97
99
  details: () => readonly [...string[], "cart", "details"];
98
100
  mutations: {
99
101
  addItem: () => readonly [...string[], "cart", "mutation", "addItem"];
102
+ addItems: () => readonly [...string[], "cart", "mutation", "addItems"];
100
103
  updateItem: () => readonly [...string[], "cart", "mutation", "updateItem"];
101
104
  removeItem: () => readonly [...string[], "cart", "mutation", "removeItem"];
102
105
  applyCoupon: () => readonly [...string[], "cart", "mutation", "applyCoupon"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-solutions/woocommerce-react",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "React Query hooks and provider for WooCommerce Store API",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@atomic-solutions/woocommerce-api-client": "0.3.1"
53
+ "@atomic-solutions/woocommerce-api-client": "0.5.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@tanstack/react-query": ">=5.0.0",
@@ -65,14 +65,14 @@
65
65
  "@types/react-dom": "^18.0.0",
66
66
  "@typescript-eslint/eslint-plugin": "^8.56.1",
67
67
  "@typescript-eslint/parser": "^8.56.1",
68
- "@vitest/coverage-v8": "^2.0.0",
68
+ "@vitest/coverage-v8": "^3.2.6",
69
69
  "eslint": "^9.35.0",
70
70
  "eslint-config-prettier": "^10.1.8",
71
71
  "eslint-plugin-jsx-a11y": "^6.10.2",
72
72
  "eslint-plugin-prettier": "^5.5.4",
73
73
  "eslint-plugin-react": "^7.37.5",
74
74
  "eslint-plugin-react-hooks": "^5.2.0",
75
- "happy-dom": "^20.0.10",
75
+ "happy-dom": "^20.8.9",
76
76
  "jsdom": "^27.2.0",
77
77
  "prettier": "^3.0.0",
78
78
  "react": "^18.0.0",
@@ -80,7 +80,7 @@
80
80
  "release-it": "^19.0.6",
81
81
  "tsup": "^8.0.0",
82
82
  "typescript": "^5.9.0",
83
- "vitest": "^2.0.0"
83
+ "vitest": "^3.2.6"
84
84
  },
85
85
  "sideEffects": false,
86
86
  "scripts": {