@haus-storefront-react/order-lines 1.0.4-next.16 → 1.0.4-next.3
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/CHANGELOG.md +0 -146
- package/index.js +45 -22
- package/index.mjs +7652 -4128
- package/lib/order-lines.d.ts +0 -2
- package/lib/use-order-lines-props.d.ts +2 -2
- package/package.json +6 -6
package/lib/order-lines.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ type OrderLinesContextValue = UseOrderLinesResult & {
|
|
|
20
20
|
isRemovable: boolean;
|
|
21
21
|
callbacks?: {
|
|
22
22
|
preAdjust?: (orderLineId: string, quantity: number) => Promise<void>;
|
|
23
|
-
preRemove?: (lineId: string) => Promise<void>;
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
25
|
interface OrderLinesRootProps {
|
|
@@ -30,7 +29,6 @@ interface OrderLinesRootProps {
|
|
|
30
29
|
removable?: boolean;
|
|
31
30
|
callbacks?: {
|
|
32
31
|
preAdjust?: (orderLineId: string, quantity: number) => Promise<void>;
|
|
33
|
-
preRemove?: (lineId: string) => Promise<void>;
|
|
34
32
|
};
|
|
35
33
|
}
|
|
36
34
|
interface OrderLineItemProps {
|
|
@@ -14,7 +14,7 @@ export type UseOrderLinesResult = UseQueryResult<Maybe<Order>, Error> & {
|
|
|
14
14
|
getDecrementProps: (props?: Partial<ButtonHTMLAttributes<HTMLButtonElement>>) => ButtonHTMLAttributes<HTMLButtonElement>;
|
|
15
15
|
getIncrementProps: (props?: Partial<ButtonHTMLAttributes<HTMLButtonElement>>) => ButtonHTMLAttributes<HTMLButtonElement>;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
interface UseOrderLinesOptions {
|
|
18
18
|
orderCode?: string;
|
|
19
19
|
adjustable?: boolean;
|
|
20
20
|
removable?: boolean;
|
|
@@ -24,7 +24,7 @@ export interface UseOrderLinesOptions {
|
|
|
24
24
|
step?: number;
|
|
25
25
|
callbacks?: {
|
|
26
26
|
preAdjust?: (orderLineId: string, quantity: number) => Promise<void>;
|
|
27
|
-
preRemove?: (lineId: string) => Promise<void>;
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
29
|
export declare const useOrderLinesProps: ({ orderCode, adjustable, removable, fetchActiveOrder, min, max, step, callbacks, }?: UseOrderLinesOptions) => UseOrderLinesResult;
|
|
30
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/order-lines",
|
|
3
|
-
"version": "1.0.4-next.
|
|
3
|
+
"version": "1.0.4-next.3",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@haus-storefront-react/common-ui": "1.0.4-next.
|
|
15
|
-
"@haus-storefront-react/common-utils": "1.0.4-next.
|
|
16
|
-
"@haus-storefront-react/core": "1.0.4-next.
|
|
17
|
-
"@haus-storefront-react/hooks": "1.0.4-next.
|
|
18
|
-
"@haus-storefront-react/shared-types": "1.0.4-next.
|
|
14
|
+
"@haus-storefront-react/common-ui": "1.0.4-next.3",
|
|
15
|
+
"@haus-storefront-react/common-utils": "1.0.4-next.3",
|
|
16
|
+
"@haus-storefront-react/core": "1.0.4-next.3",
|
|
17
|
+
"@haus-storefront-react/hooks": "1.0.4-next.3",
|
|
18
|
+
"@haus-storefront-react/shared-types": "1.0.4-next.3"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "restricted"
|