@plasmicpkgs/commerce 0.0.159 → 0.0.161

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.
@@ -4,24 +4,24 @@ import { Category } from "./types/site";
4
4
  export declare function ProductProvider({ product, children, }: {
5
5
  product: Product;
6
6
  children: React.ReactNode;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
8
8
  export declare const useProduct: () => Product;
9
9
  export declare const PrimaryCategoryContext: React.Context<Category | undefined>;
10
10
  export declare function CategoryProvider({ category, children, }: {
11
11
  category: Category;
12
12
  children: React.ReactNode;
13
- }): JSX.Element;
13
+ }): React.JSX.Element;
14
14
  export declare const useCategoryContext: () => Category | undefined;
15
15
  export declare const usePrimaryCategory: () => Category | undefined;
16
16
  export declare function ProductMediaProvider({ mediaIndex, onClick, children, }: {
17
17
  mediaIndex: number;
18
18
  children: React.ReactNode;
19
19
  onClick?: () => void;
20
- }): JSX.Element;
20
+ }): React.JSX.Element;
21
21
  export declare const useProductMediaContext: () => number | undefined;
22
22
  export declare function CartActionsProvider(props: React.PropsWithChildren<{
23
23
  globalContextName: string;
24
- }>): JSX.Element;
24
+ }>): React.JSX.Element;
25
25
  export declare const globalActionsRegistrations: {
26
26
  addItem: {
27
27
  displayName: string;
@@ -5,6 +5,6 @@ interface AddToCartButtonProps {
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare const addToCartButtonMeta: ComponentMeta<AddToCartButtonProps>;
8
- export declare function AddToCartButton(props: AddToCartButtonProps): React.ReactElement<unknown, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | null;
8
+ export declare function AddToCartButton(props: AddToCartButtonProps): React.ReactElement<unknown, string | ((props: any, deprecatedLegacyContext?: any) => React.ReactElement<any, any> | null) | (new (props: any, deprecatedLegacyContext?: any) => React.Component<any, any, any>)> | null;
9
9
  export declare function registerAddToCartButton(loader?: Registerable, customAddToCartButtonMeta?: ComponentMeta<AddToCartButtonProps>): void;
10
10
  export {};
@@ -1,4 +1,5 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import React from "react";
2
3
  import { Registerable } from "./registerable";
3
4
  interface CartProps {
4
5
  className?: string;
@@ -6,6 +7,6 @@ interface CartProps {
6
7
  hideIfIsEmpty?: boolean;
7
8
  }
8
9
  export declare const cartMeta: ComponentMeta<CartProps>;
9
- export declare function CartComponent(props: CartProps): JSX.Element | null;
10
+ export declare function CartComponent(props: CartProps): React.JSX.Element | null;
10
11
  export declare function registerCart(loader?: Registerable, customCartMeta?: ComponentMeta<CartProps>): void;
11
12
  export {};
@@ -2,5 +2,5 @@ import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
2
  import React from "react";
3
3
  import { Registerable } from "./registerable";
4
4
  export declare const cartProviderMeta: ComponentMeta<React.PropsWithChildren<object>>;
5
- export declare function CartProvider(props: React.PropsWithChildren<object>): JSX.Element;
5
+ export declare function CartProvider(props: React.PropsWithChildren<object>): React.JSX.Element;
6
6
  export declare function registerCartProvider(loader?: Registerable, customCartProviderMeta?: ComponentMeta<React.PropsWithChildren<object>>): void;
@@ -15,6 +15,6 @@ interface CategoryCollectionProps {
15
15
  }) => void;
16
16
  }
17
17
  export declare const categoryCollectionMeta: ComponentMeta<CategoryCollectionProps>;
18
- export declare function CategoryCollection(props: CategoryCollectionProps): JSX.Element | null;
18
+ export declare function CategoryCollection(props: CategoryCollectionProps): React.JSX.Element | null;
19
19
  export declare function registerCategoryCollection(loader?: Registerable, customCategoryCollectionMeta?: ComponentMeta<CategoryCollectionProps>): void;
20
20
  export {};
@@ -1,10 +1,11 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import React from "react";
2
3
  import { Registerable } from "./registerable";
3
4
  interface CategoryFieldProps {
4
5
  className?: string;
5
6
  field?: string;
6
7
  }
7
8
  export declare const categoryFieldMeta: ComponentMeta<CategoryFieldProps>;
8
- export declare function CategoryField(props: CategoryFieldProps): JSX.Element;
9
+ export declare function CategoryField(props: CategoryFieldProps): React.JSX.Element;
9
10
  export declare function registerCategoryField(loader?: Registerable, customCategoryFieldMeta?: ComponentMeta<CategoryFieldProps>): void;
10
11
  export {};
@@ -7,6 +7,6 @@ interface CategoryLinkProps {
7
7
  linkDest?: string;
8
8
  }
9
9
  export declare const categoryLinkMeta: ComponentMeta<CategoryLinkProps>;
10
- export declare function CategoryLink(props: CategoryLinkProps): JSX.Element;
10
+ export declare function CategoryLink(props: CategoryLinkProps): React.JSX.Element;
11
11
  export declare function registerCategoryLink(loader?: Registerable, customCategoryLinkMeta?: ComponentMeta<CategoryLinkProps>): void;
12
12
  export {};
@@ -13,6 +13,6 @@ interface ProductBoxProps {
13
13
  }) => void;
14
14
  }
15
15
  export declare const productBoxMeta: ComponentMeta<ProductBoxProps>;
16
- export declare function ProductBox(props: ProductBoxProps): JSX.Element;
16
+ export declare function ProductBox(props: ProductBoxProps): React.JSX.Element;
17
17
  export declare function registerProductBox(loader?: Registerable, customProductBoxMeta?: ComponentMeta<ProductBoxProps>): void;
18
18
  export {};
@@ -24,6 +24,6 @@ interface ProductCollectionProps {
24
24
  }) => void;
25
25
  }
26
26
  export declare const productCollectionMeta: ComponentMeta<ProductCollectionProps>;
27
- export declare function ProductCollection(props: ProductCollectionProps): JSX.Element | null;
27
+ export declare function ProductCollection(props: ProductCollectionProps): React.JSX.Element | null;
28
28
  export declare function registerProductCollection(loader?: Registerable, customProductCollectionMeta?: ComponentMeta<ProductCollectionProps>): void;
29
29
  export {};
@@ -7,6 +7,6 @@ interface ProductLinkProps {
7
7
  linkDest?: string;
8
8
  }
9
9
  export declare const productLinkMeta: ComponentMeta<ProductLinkProps>;
10
- export declare function ProductLink(props: ProductLinkProps): JSX.Element;
10
+ export declare function ProductLink(props: ProductLinkProps): React.JSX.Element;
11
11
  export declare function registerProductLink(loader?: Registerable, customProductLinkMeta?: ComponentMeta<ProductLinkProps>): void;
12
12
  export {};
@@ -6,6 +6,6 @@ interface ProductMediaCollectionProps {
6
6
  media: React.ReactNode;
7
7
  }
8
8
  export declare const productMediaCollectionMeta: ComponentMeta<ProductMediaCollectionProps>;
9
- export declare function ProductMediaCollection(props: ProductMediaCollectionProps): JSX.Element;
9
+ export declare function ProductMediaCollection(props: ProductMediaCollectionProps): React.JSX.Element;
10
10
  export declare function registerProductMediaCollection(loader?: Registerable, customProductMediaCollectionMeta?: ComponentMeta<ProductMediaCollectionProps>): void;
11
11
  export {};
@@ -1,9 +1,10 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import React from "react";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductPriceProps {
4
5
  className: string;
5
6
  }
6
7
  export declare const productPriceMeta: ComponentMeta<ProductPriceProps>;
7
- export declare function ProductPriceComponent(props: ProductPriceProps): JSX.Element;
8
+ export declare function ProductPriceComponent(props: ProductPriceProps): React.JSX.Element;
8
9
  export declare function registerProductPrice(loader?: Registerable, customProductPriceMeta?: ComponentMeta<ProductPriceProps>): void;
9
10
  export {};
@@ -6,6 +6,6 @@ interface ProductQuantityProps {
6
6
  children?: React.ReactNode;
7
7
  }
8
8
  export declare const productQuantityMeta: ComponentMeta<ProductQuantityProps>;
9
- export declare function ProductQuantity(props: ProductQuantityProps): JSX.Element;
9
+ export declare function ProductQuantity(props: ProductQuantityProps): React.JSX.Element;
10
10
  export declare function registerProductQuantity(loader?: Registerable, customProductQuantityMeta?: ComponentMeta<ProductQuantityProps>): void;
11
11
  export {};
@@ -9,6 +9,6 @@ interface ProductSliderProps {
9
9
  slideSelected?: number;
10
10
  }
11
11
  export declare const productSliderMeta: ComponentMeta<ProductSliderProps>;
12
- export declare function ProductSlider(props: ProductSliderProps): JSX.Element;
12
+ export declare function ProductSlider(props: ProductSliderProps): React.JSX.Element;
13
13
  export declare function registerProductSlider(loader?: Registerable, customProductSliderMeta?: ComponentMeta<ProductSliderProps>): void;
14
14
  export {};
@@ -1,10 +1,11 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import React from "react";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductTextFieldProps {
4
5
  className: string;
5
6
  field: string;
6
7
  }
7
8
  export declare const productTextFieldMeta: ComponentMeta<ProductTextFieldProps>;
8
- export declare function ProductTextField(props: ProductTextFieldProps): JSX.Element;
9
+ export declare function ProductTextField(props: ProductTextFieldProps): React.JSX.Element;
9
10
  export declare function registerTextField(loader?: Registerable, customProductTextFieldMeta?: ComponentMeta<ProductTextFieldProps>): void;
10
11
  export {};
@@ -1,9 +1,10 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
+ import React from "react";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductVariantPickerProps {
4
5
  className: string;
5
6
  }
6
7
  export declare const productVariantPickerMeta: ComponentMeta<ProductVariantPickerProps>;
7
- export declare function ProductVariantPicker(props: ProductVariantPickerProps): JSX.Element;
8
+ export declare function ProductVariantPicker(props: ProductVariantPickerProps): React.JSX.Element;
8
9
  export declare function registerProductVariantPicker(loader?: Registerable, customProductVariantPickerMeta?: ComponentMeta<ProductVariantPickerProps>): void;
9
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/commerce",
3
- "version": "0.0.159",
3
+ "version": "0.0.161",
4
4
  "description": "Plasmic registration calls for commerce components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "analyze": "size-limit --why"
19
19
  },
20
20
  "devDependencies": {
21
- "@plasmicapp/host": "1.0.162",
21
+ "@plasmicapp/host": "1.0.164",
22
22
  "@plasmicapp/query": "0.1.68",
23
23
  "@size-limit/preset-small-lib": "^4.11.0",
24
24
  "@types/debounce": "^1.2.1",
@@ -44,5 +44,5 @@
44
44
  "react-hook-form": "^7.28.0",
45
45
  "swr": "^1.2.2"
46
46
  },
47
- "gitHead": "bf12f2268d3e2794698bee0996d4e2008b6827c5"
47
+ "gitHead": "83b92a98990acc021cc904ef919c6176e88a3238"
48
48
  }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Plasmic
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.