@plasmicpkgs/commerce-saleor 0.0.28 → 0.0.31

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,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import type { HookFetcherContext, MutationHookContext } from "@plasmicpkgs/commerce";
3
2
  import type { LineItem } from "../types/cart";
4
3
  import type { UpdateItemHook } from "../types/cart";
@@ -6,7 +5,11 @@ export declare type UpdateItemActionInput<T = any> = T extends LineItem ? Partia
6
5
  declare const _default: <T extends import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined = undefined>(ctx?: {
7
6
  item?: T | undefined;
8
7
  wait?: number | undefined;
9
- }) => import("lodash").DebouncedFunc<(input: UpdateItemActionInput<T>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>>;
8
+ }) => ((input: UpdateItemActionInput<T>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>) & {
9
+ clear(): void;
10
+ } & {
11
+ flush(): void;
12
+ };
10
13
  export default _default;
11
14
  export declare const handler: {
12
15
  fetchOptions: {
@@ -16,5 +19,9 @@ export declare const handler: {
16
19
  useHook: ({ fetch }: MutationHookContext<UpdateItemHook>) => <T extends import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined = undefined>(ctx?: {
17
20
  item?: T | undefined;
18
21
  wait?: number | undefined;
19
- }) => import("lodash").DebouncedFunc<(input: UpdateItemActionInput<T>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>>;
22
+ }) => ((input: UpdateItemActionInput<T>) => Promise<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined>) & {
23
+ clear(): void;
24
+ } & {
25
+ flush(): void;
26
+ };
20
27
  };
@@ -9,7 +9,7 @@ var React = require('react');
9
9
  var React__default = _interopDefault(React);
10
10
  var commerce = require('@plasmicpkgs/commerce');
11
11
  var Cookies = _interopDefault(require('js-cookie'));
12
- var debounce = _interopDefault(require('lodash/debounce'));
12
+ var debounce = _interopDefault(require('debounce'));
13
13
 
14
14
  /*
15
15
  Forked from https://github.com/vercel/commerce/tree/main/packages/saleor/src