@plasmicpkgs/commerce 0.0.233 → 0.0.235
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/commerce.cjs.development.js +10 -10
- package/dist/commerce.cjs.development.js.map +1 -1
- package/dist/commerce.cjs.production.min.js.map +1 -1
- package/dist/commerce.esm.js +10 -10
- package/dist/commerce.esm.js.map +1 -1
- package/dist/registerAddToCartButton.d.ts +3 -3
- package/dist/registerCart.d.ts +3 -3
- package/dist/registerCartProvider.d.ts +3 -3
- package/dist/registerCategoryCollection.d.ts +3 -3
- package/dist/registerCategoryField.d.ts +3 -3
- package/dist/registerCategoryLink.d.ts +3 -3
- package/dist/registerCategoryMedia.d.ts +3 -3
- package/dist/registerProductBox.d.ts +3 -3
- package/dist/registerProductCollection.d.ts +3 -3
- package/dist/registerProductLink.d.ts +3 -3
- package/dist/registerProductMedia.d.ts +3 -3
- package/dist/registerProductMediaCollection.d.ts +3 -3
- package/dist/registerProductPrice.d.ts +3 -3
- package/dist/registerProductQuantity.d.ts +3 -3
- package/dist/registerProductSlider.d.ts +3 -3
- package/dist/registerProductTextField.d.ts +3 -3
- package/dist/registerProductVariantPicker.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface AddToCartButtonProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const addToCartButtonMeta:
|
|
7
|
+
export declare const addToCartButtonMeta: CodeComponentMeta<AddToCartButtonProps>;
|
|
8
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
|
-
export declare function registerAddToCartButton(loader?: Registerable, customAddToCartButtonMeta?:
|
|
9
|
+
export declare function registerAddToCartButton(loader?: Registerable, customAddToCartButtonMeta?: CodeComponentMeta<AddToCartButtonProps>): void;
|
|
10
10
|
export {};
|
package/dist/registerCart.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface CartProps {
|
|
@@ -6,7 +6,7 @@ interface CartProps {
|
|
|
6
6
|
field: string;
|
|
7
7
|
hideIfIsEmpty?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const cartMeta:
|
|
9
|
+
export declare const cartMeta: CodeComponentMeta<CartProps>;
|
|
10
10
|
export declare function CartComponent(props: CartProps): React.JSX.Element | null;
|
|
11
|
-
export declare function registerCart(loader?: Registerable, customCartMeta?:
|
|
11
|
+
export declare function registerCart(loader?: Registerable, customCartMeta?: CodeComponentMeta<CartProps>): void;
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
|
-
export declare const cartProviderMeta:
|
|
4
|
+
export declare const cartProviderMeta: CodeComponentMeta<React.PropsWithChildren<object>>;
|
|
5
5
|
export declare function CartProvider(props: React.PropsWithChildren<object>): React.JSX.Element;
|
|
6
|
-
export declare function registerCartProvider(loader?: Registerable, customCartProviderMeta?:
|
|
6
|
+
export declare function registerCartProvider(loader?: Registerable, customCartProviderMeta?: CodeComponentMeta<React.PropsWithChildren<object>>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
import { Category } from "./types/site";
|
|
@@ -14,7 +14,7 @@ interface CategoryCollectionProps {
|
|
|
14
14
|
categories: Category[];
|
|
15
15
|
}) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare const categoryCollectionMeta:
|
|
17
|
+
export declare const categoryCollectionMeta: CodeComponentMeta<CategoryCollectionProps>;
|
|
18
18
|
export declare function CategoryCollection(props: CategoryCollectionProps): React.JSX.Element | null;
|
|
19
|
-
export declare function registerCategoryCollection(loader?: Registerable, customCategoryCollectionMeta?:
|
|
19
|
+
export declare function registerCategoryCollection(loader?: Registerable, customCategoryCollectionMeta?: CodeComponentMeta<CategoryCollectionProps>): void;
|
|
20
20
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface CategoryFieldProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
field?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const categoryFieldMeta:
|
|
8
|
+
export declare const categoryFieldMeta: CodeComponentMeta<CategoryFieldProps>;
|
|
9
9
|
export declare function CategoryField(props: CategoryFieldProps): React.JSX.Element;
|
|
10
|
-
export declare function registerCategoryField(loader?: Registerable, customCategoryFieldMeta?:
|
|
10
|
+
export declare function registerCategoryField(loader?: Registerable, customCategoryFieldMeta?: CodeComponentMeta<CategoryFieldProps>): void;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface CategoryLinkProps {
|
|
@@ -6,7 +6,7 @@ interface CategoryLinkProps {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
linkDest?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const categoryLinkMeta:
|
|
9
|
+
export declare const categoryLinkMeta: CodeComponentMeta<CategoryLinkProps>;
|
|
10
10
|
export declare function CategoryLink(props: CategoryLinkProps): React.JSX.Element;
|
|
11
|
-
export declare function registerCategoryLink(loader?: Registerable, customCategoryLinkMeta?:
|
|
11
|
+
export declare function registerCategoryLink(loader?: Registerable, customCategoryLinkMeta?: CodeComponentMeta<CategoryLinkProps>): void;
|
|
12
12
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface CategoryMediaProps {
|
|
5
5
|
className: string;
|
|
6
6
|
mediaIndex?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const categoryMediaMeta:
|
|
8
|
+
export declare const categoryMediaMeta: CodeComponentMeta<CategoryMediaProps>;
|
|
9
9
|
export declare const CategoryMedia: React.ForwardRefExoticComponent<CategoryMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
10
|
-
export declare function registerCategoryMedia(loader?: Registerable, customCategoryMediaMeta?:
|
|
10
|
+
export declare function registerCategoryMedia(loader?: Registerable, customCategoryMediaMeta?: CodeComponentMeta<CategoryMediaProps>): void;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
import { Product } from "./types/product";
|
|
@@ -12,7 +12,7 @@ interface ProductBoxProps {
|
|
|
12
12
|
onSearch?: (value: string) => void;
|
|
13
13
|
}) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare const productBoxMeta:
|
|
15
|
+
export declare const productBoxMeta: CodeComponentMeta<ProductBoxProps>;
|
|
16
16
|
export declare function ProductBox(props: ProductBoxProps): React.JSX.Element;
|
|
17
|
-
export declare function registerProductBox(loader?: Registerable, customProductBoxMeta?:
|
|
17
|
+
export declare function registerProductBox(loader?: Registerable, customProductBoxMeta?: CodeComponentMeta<ProductBoxProps>): void;
|
|
18
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
import { Brand, Category } from "./types/site";
|
|
@@ -23,7 +23,7 @@ interface ProductCollectionProps {
|
|
|
23
23
|
categoryCtx?: Category;
|
|
24
24
|
}) => void;
|
|
25
25
|
}
|
|
26
|
-
export declare const productCollectionMeta:
|
|
26
|
+
export declare const productCollectionMeta: CodeComponentMeta<ProductCollectionProps>;
|
|
27
27
|
export declare function ProductCollection(props: ProductCollectionProps): React.JSX.Element | null;
|
|
28
|
-
export declare function registerProductCollection(loader?: Registerable, customProductCollectionMeta?:
|
|
28
|
+
export declare function registerProductCollection(loader?: Registerable, customProductCollectionMeta?: CodeComponentMeta<ProductCollectionProps>): void;
|
|
29
29
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductLinkProps {
|
|
@@ -6,7 +6,7 @@ interface ProductLinkProps {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
linkDest?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const productLinkMeta:
|
|
9
|
+
export declare const productLinkMeta: CodeComponentMeta<ProductLinkProps>;
|
|
10
10
|
export declare function ProductLink(props: ProductLinkProps): React.JSX.Element;
|
|
11
|
-
export declare function registerProductLink(loader?: Registerable, customProductLinkMeta?:
|
|
11
|
+
export declare function registerProductLink(loader?: Registerable, customProductLinkMeta?: CodeComponentMeta<ProductLinkProps>): void;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductMediaProps {
|
|
@@ -8,7 +8,7 @@ interface ProductMediaProps {
|
|
|
8
8
|
inMediaContext: boolean;
|
|
9
9
|
}) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const productMediaMeta:
|
|
11
|
+
export declare const productMediaMeta: CodeComponentMeta<ProductMediaProps>;
|
|
12
12
|
export declare const ProductMedia: React.ForwardRefExoticComponent<ProductMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
13
|
-
export declare function registerProductMedia(loader?: Registerable, customProductMediaMeta?:
|
|
13
|
+
export declare function registerProductMedia(loader?: Registerable, customProductMediaMeta?: CodeComponentMeta<ProductMediaProps>): void;
|
|
14
14
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductMediaCollectionProps {
|
|
5
5
|
className: string;
|
|
6
6
|
media: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const productMediaCollectionMeta:
|
|
8
|
+
export declare const productMediaCollectionMeta: CodeComponentMeta<ProductMediaCollectionProps>;
|
|
9
9
|
export declare function ProductMediaCollection(props: ProductMediaCollectionProps): React.JSX.Element;
|
|
10
|
-
export declare function registerProductMediaCollection(loader?: Registerable, customProductMediaCollectionMeta?:
|
|
10
|
+
export declare function registerProductMediaCollection(loader?: Registerable, customProductMediaCollectionMeta?: CodeComponentMeta<ProductMediaCollectionProps>): void;
|
|
11
11
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductPriceProps {
|
|
5
5
|
className: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const productPriceMeta:
|
|
7
|
+
export declare const productPriceMeta: CodeComponentMeta<ProductPriceProps>;
|
|
8
8
|
export declare function ProductPriceComponent(props: ProductPriceProps): React.JSX.Element;
|
|
9
|
-
export declare function registerProductPrice(loader?: Registerable, customProductPriceMeta?:
|
|
9
|
+
export declare function registerProductPrice(loader?: Registerable, customProductPriceMeta?: CodeComponentMeta<ProductPriceProps>): void;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductQuantityProps {
|
|
5
5
|
className: string;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const productQuantityMeta:
|
|
8
|
+
export declare const productQuantityMeta: CodeComponentMeta<ProductQuantityProps>;
|
|
9
9
|
export declare function ProductQuantity(props: ProductQuantityProps): React.JSX.Element;
|
|
10
|
-
export declare function registerProductQuantity(loader?: Registerable, customProductQuantityMeta?:
|
|
10
|
+
export declare function registerProductQuantity(loader?: Registerable, customProductQuantityMeta?: CodeComponentMeta<ProductQuantityProps>): void;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductSliderProps {
|
|
@@ -8,7 +8,7 @@ interface ProductSliderProps {
|
|
|
8
8
|
thumbsVisible?: number;
|
|
9
9
|
slideSelected?: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const productSliderMeta:
|
|
11
|
+
export declare const productSliderMeta: CodeComponentMeta<ProductSliderProps>;
|
|
12
12
|
export declare function ProductSlider(props: ProductSliderProps): React.JSX.Element;
|
|
13
|
-
export declare function registerProductSlider(loader?: Registerable, customProductSliderMeta?:
|
|
13
|
+
export declare function registerProductSlider(loader?: Registerable, customProductSliderMeta?: CodeComponentMeta<ProductSliderProps>): void;
|
|
14
14
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductTextFieldProps {
|
|
5
5
|
className: string;
|
|
6
6
|
field: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const productTextFieldMeta:
|
|
8
|
+
export declare const productTextFieldMeta: CodeComponentMeta<ProductTextFieldProps>;
|
|
9
9
|
export declare function ProductTextField(props: ProductTextFieldProps): React.JSX.Element;
|
|
10
|
-
export declare function registerTextField(loader?: Registerable, customProductTextFieldMeta?:
|
|
10
|
+
export declare function registerTextField(loader?: Registerable, customProductTextFieldMeta?: CodeComponentMeta<ProductTextFieldProps>): void;
|
|
11
11
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Registerable } from "./registerable";
|
|
4
4
|
interface ProductVariantPickerProps {
|
|
5
5
|
className: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const productVariantPickerMeta:
|
|
7
|
+
export declare const productVariantPickerMeta: CodeComponentMeta<ProductVariantPickerProps>;
|
|
8
8
|
export declare function ProductVariantPicker(props: ProductVariantPickerProps): React.JSX.Element;
|
|
9
|
-
export declare function registerProductVariantPicker(loader?: Registerable, customProductVariantPickerMeta?:
|
|
9
|
+
export declare function registerProductVariantPicker(loader?: Registerable, customProductVariantPickerMeta?: CodeComponentMeta<ProductVariantPickerProps>): void;
|
|
10
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/commerce",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.235",
|
|
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.
|
|
21
|
+
"@plasmicapp/host": "1.0.235",
|
|
22
22
|
"@plasmicapp/query": "0.1.82",
|
|
23
23
|
"@types/debounce": "^1.2.1",
|
|
24
24
|
"@types/js-cookie": "^3.0.1",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"react-hook-form": "^7.28.0",
|
|
43
43
|
"swr": "^1.2.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "380a91b2e7eac342c9b2ddafdacd84b4a812b795"
|
|
46
46
|
}
|