@atomic-solutions/woocommerce-react 0.5.0 → 0.6.1
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 +161 -64
- 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 +161 -66
- 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 +166 -64
- 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 +164 -66
- 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 +2 -2
|
@@ -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.1",
|
|
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.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@tanstack/react-query": ">=5.0.0",
|