@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.
- package/dist/hooks/index.cjs +162 -63
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +162 -65
- package/dist/hooks/index.js.map +1 -1
- package/dist/{index-DdY_1X-C.d.cts → index-DEvJWFSF.d.cts} +96 -34
- package/dist/{index-unbfwba0.d.ts → index-Dmlapl9c.d.ts} +96 -34
- package/dist/index.cjs +167 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -19
- package/dist/index.d.ts +4 -19
- package/dist/index.js +165 -65
- package/dist/index.js.map +1 -1
- package/dist/provider/index.d.cts +2 -2
- package/dist/provider/index.d.ts +2 -2
- package/dist/{types-_8YqnkO-.d.cts → types-Dnq60zh-.d.cts} +3 -0
- package/dist/{types-_8YqnkO-.d.ts → types-Dnq60zh-.d.ts} +3 -0
- package/package.json +5 -5
|
@@ -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-
|
|
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-
|
|
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 {
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
83
|
+
"vitest": "^3.2.6"
|
|
84
84
|
},
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"scripts": {
|