@plasmicpkgs/commerce 0.0.247 → 0.0.248
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/api/endpoints/cart.d.ts +4 -4
- package/dist/api/endpoints/catalog/products.d.ts +4 -4
- package/dist/api/index.d.ts +75 -75
- package/dist/api/operations.d.ts +130 -130
- package/dist/api/utils/errors.d.ts +10 -10
- package/dist/api/utils/is-allowed-method.d.ts +3 -3
- package/dist/api/utils/is-allowed-operation.d.ts +6 -6
- package/dist/api/utils/types.d.ts +34 -34
- package/dist/cart/use-add-item.d.ts +5 -5
- package/dist/cart/use-cart.d.ts +5 -5
- package/dist/cart/use-remove-item.d.ts +5 -5
- package/dist/cart/use-update-item.d.ts +5 -5
- package/dist/commerce.cjs.development.js +23 -20
- package/dist/commerce.cjs.development.js.map +1 -1
- package/dist/commerce.cjs.production.min.js +1 -1
- package/dist/commerce.cjs.production.min.js.map +1 -1
- package/dist/commerce.d.ts +43 -43
- package/dist/commerce.esm.js +23 -20
- package/dist/commerce.esm.js.map +1 -1
- package/dist/contexts.d.ts +26 -26
- package/dist/index.d.ts +46 -46
- package/dist/product/use-price.d.ts +26 -26
- package/dist/product/use-product.d.ts +5 -5
- package/dist/product/use-search.d.ts +6 -6
- package/dist/registerAddToCartButton.d.ts +10 -10
- package/dist/registerCart.d.ts +12 -12
- package/dist/registerCartProvider.d.ts +6 -6
- package/dist/registerCategoryCollection.d.ts +20 -20
- package/dist/registerCategoryField.d.ts +11 -11
- package/dist/registerCategoryLink.d.ts +12 -12
- package/dist/registerCategoryMedia.d.ts +11 -11
- package/dist/registerProductBox.d.ts +18 -18
- package/dist/registerProductCollection.d.ts +29 -29
- package/dist/registerProductLink.d.ts +12 -12
- package/dist/registerProductMedia.d.ts +14 -14
- package/dist/registerProductMediaCollection.d.ts +11 -11
- package/dist/registerProductPrice.d.ts +10 -10
- package/dist/registerProductQuantity.d.ts +11 -11
- package/dist/registerProductSlider.d.ts +14 -14
- package/dist/registerProductTextField.d.ts +11 -11
- package/dist/registerProductVariantPicker.d.ts +10 -10
- package/dist/registerable.d.ts +4 -4
- package/dist/site/use-brands.d.ts +5 -5
- package/dist/site/use-categories.d.ts +5 -5
- package/dist/types/cart.d.ts +157 -157
- package/dist/types/checkout.d.ts +57 -57
- package/dist/types/common.d.ts +13 -13
- package/dist/types/customer/address.d.ts +110 -110
- package/dist/types/customer/card.d.ts +113 -113
- package/dist/types/customer/index.d.ts +24 -24
- package/dist/types/index.d.ts +12 -12
- package/dist/types/login.d.ts +27 -27
- package/dist/types/logout.d.ts +17 -17
- package/dist/types/page.d.ts +24 -24
- package/dist/types/product.d.ts +117 -117
- package/dist/types/signup.d.ts +23 -23
- package/dist/types/site.d.ts +55 -55
- package/dist/types/wishlist.d.ts +83 -83
- package/dist/utils/default-fetcher.d.ts +4 -4
- package/dist/utils/default-product.d.ts +2 -2
- package/dist/utils/define-property.d.ts +21 -21
- package/dist/utils/errors.d.ts +27 -27
- package/dist/utils/get-product-price.d.ts +2 -2
- package/dist/utils/types.d.ts +99 -99
- package/dist/utils/use-data.d.ts +13 -13
- package/dist/utils/use-extra-features.d.ts +1 -1
- package/dist/utils/use-hook.d.ts +7 -7
- package/package.json +5 -5
package/dist/contexts.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { GlobalActionRegistration } from "@plasmicapp/host/registerGlobalContext";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Product } from "./types/product";
|
|
4
|
-
import { Category } from "./types/site";
|
|
5
|
-
export declare function ProductProvider({ product, children, }: {
|
|
6
|
-
product: Product;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
export declare const useProduct: () => Product;
|
|
10
|
-
export declare const PrimaryCategoryContext: React.Context<Category | undefined>;
|
|
11
|
-
export declare function CategoryProvider({ category, children, }: {
|
|
12
|
-
category: Category;
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
export declare const useCategoryContext: () => Category | undefined;
|
|
16
|
-
export declare const usePrimaryCategory: () => Category | undefined;
|
|
17
|
-
export declare function ProductMediaProvider({ mediaIndex, onClick, children, }: {
|
|
18
|
-
mediaIndex: number;
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
onClick?: () => void;
|
|
21
|
-
}): React.JSX.Element;
|
|
22
|
-
export declare const useProductMediaContext: () => number | undefined;
|
|
23
|
-
export declare function CartActionsProvider(props: React.PropsWithChildren<{
|
|
24
|
-
globalContextName: string;
|
|
25
|
-
}>): React.JSX.Element;
|
|
26
|
-
export declare const globalActionsRegistrations: Record<string, GlobalActionRegistration<any>>;
|
|
1
|
+
import { GlobalActionRegistration } from "@plasmicapp/host/registerGlobalContext";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Product } from "./types/product";
|
|
4
|
+
import { Category } from "./types/site";
|
|
5
|
+
export declare function ProductProvider({ product, children, }: {
|
|
6
|
+
product: Product;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export declare const useProduct: () => Product;
|
|
10
|
+
export declare const PrimaryCategoryContext: React.Context<Category | undefined>;
|
|
11
|
+
export declare function CategoryProvider({ category, children, }: {
|
|
12
|
+
category: Category;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
export declare const useCategoryContext: () => Category | undefined;
|
|
16
|
+
export declare const usePrimaryCategory: () => Category | undefined;
|
|
17
|
+
export declare function ProductMediaProvider({ mediaIndex, onClick, children, }: {
|
|
18
|
+
mediaIndex: number;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
export declare const useProductMediaContext: () => number | undefined;
|
|
23
|
+
export declare function CartActionsProvider(props: React.PropsWithChildren<{
|
|
24
|
+
globalContextName: string;
|
|
25
|
+
}>): React.JSX.Element;
|
|
26
|
+
export declare const globalActionsRegistrations: Record<string, GlobalActionRegistration<any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { Registerable } from "./registerable";
|
|
2
|
-
export { CommerceAPIConfig } from "./api/index";
|
|
3
|
-
export * from "./cart/use-add-item";
|
|
4
|
-
export { default as useAddItem } from "./cart/use-add-item";
|
|
5
|
-
export * from "./cart/use-cart";
|
|
6
|
-
export { default as useCart } from "./cart/use-cart";
|
|
7
|
-
export * from "./cart/use-remove-item";
|
|
8
|
-
export { default as useRemoveItem } from "./cart/use-remove-item";
|
|
9
|
-
export * from "./cart/use-update-item";
|
|
10
|
-
export { default as useUpdateItem } from "./cart/use-update-item";
|
|
11
|
-
export * from "./commerce";
|
|
12
|
-
export * from "./product/use-product";
|
|
13
|
-
export { default as useProduct } from "./product/use-product";
|
|
14
|
-
export * from "./product/use-search";
|
|
15
|
-
export { default as useSearch } from "./product/use-search";
|
|
16
|
-
export * from "./registerable";
|
|
17
|
-
export * from "./registerAddToCartButton";
|
|
18
|
-
export * from "./registerCart";
|
|
19
|
-
export * from "./registerCartProvider";
|
|
20
|
-
export * from "./registerCategoryCollection";
|
|
21
|
-
export * from "./registerCategoryField";
|
|
22
|
-
export * from "./registerCategoryLink";
|
|
23
|
-
export * from "./registerCategoryMedia";
|
|
24
|
-
export * from "./registerProductBox";
|
|
25
|
-
export * from "./registerProductCollection";
|
|
26
|
-
export * from "./registerProductLink";
|
|
27
|
-
export * from "./registerProductMedia";
|
|
28
|
-
export * from "./registerProductMediaCollection";
|
|
29
|
-
export * from "./registerProductPrice";
|
|
30
|
-
export * from "./registerProductQuantity";
|
|
31
|
-
export * from "./registerProductSlider";
|
|
32
|
-
export * from "./registerProductTextField";
|
|
33
|
-
export * from "./registerProductVariantPicker";
|
|
34
|
-
export * from "./site/use-brands";
|
|
35
|
-
export { default as useBrands } from "./site/use-brands";
|
|
36
|
-
export * from "./site/use-categories";
|
|
37
|
-
export { default as useCategories } from "./site/use-categories";
|
|
38
|
-
export * as CartType from "./types/cart";
|
|
39
|
-
export * from "./types/product";
|
|
40
|
-
export * as ProductTypes from "./types/product";
|
|
41
|
-
export * as SiteTypes from "./types/site";
|
|
42
|
-
export { defaultProduct as ProductPlaceholder } from "./utils/default-product";
|
|
43
|
-
export * from "./utils/errors";
|
|
44
|
-
export * from "./utils/types";
|
|
45
|
-
export { globalActionsRegistrations, CartActionsProvider } from "./contexts";
|
|
46
|
-
export declare function registerAll(loader?: Registerable): void;
|
|
1
|
+
import { Registerable } from "./registerable";
|
|
2
|
+
export { CommerceAPIConfig } from "./api/index";
|
|
3
|
+
export * from "./cart/use-add-item";
|
|
4
|
+
export { default as useAddItem } from "./cart/use-add-item";
|
|
5
|
+
export * from "./cart/use-cart";
|
|
6
|
+
export { default as useCart } from "./cart/use-cart";
|
|
7
|
+
export * from "./cart/use-remove-item";
|
|
8
|
+
export { default as useRemoveItem } from "./cart/use-remove-item";
|
|
9
|
+
export * from "./cart/use-update-item";
|
|
10
|
+
export { default as useUpdateItem } from "./cart/use-update-item";
|
|
11
|
+
export * from "./commerce";
|
|
12
|
+
export * from "./product/use-product";
|
|
13
|
+
export { default as useProduct } from "./product/use-product";
|
|
14
|
+
export * from "./product/use-search";
|
|
15
|
+
export { default as useSearch } from "./product/use-search";
|
|
16
|
+
export * from "./registerable";
|
|
17
|
+
export * from "./registerAddToCartButton";
|
|
18
|
+
export * from "./registerCart";
|
|
19
|
+
export * from "./registerCartProvider";
|
|
20
|
+
export * from "./registerCategoryCollection";
|
|
21
|
+
export * from "./registerCategoryField";
|
|
22
|
+
export * from "./registerCategoryLink";
|
|
23
|
+
export * from "./registerCategoryMedia";
|
|
24
|
+
export * from "./registerProductBox";
|
|
25
|
+
export * from "./registerProductCollection";
|
|
26
|
+
export * from "./registerProductLink";
|
|
27
|
+
export * from "./registerProductMedia";
|
|
28
|
+
export * from "./registerProductMediaCollection";
|
|
29
|
+
export * from "./registerProductPrice";
|
|
30
|
+
export * from "./registerProductQuantity";
|
|
31
|
+
export * from "./registerProductSlider";
|
|
32
|
+
export * from "./registerProductTextField";
|
|
33
|
+
export * from "./registerProductVariantPicker";
|
|
34
|
+
export * from "./site/use-brands";
|
|
35
|
+
export { default as useBrands } from "./site/use-brands";
|
|
36
|
+
export * from "./site/use-categories";
|
|
37
|
+
export { default as useCategories } from "./site/use-categories";
|
|
38
|
+
export * as CartType from "./types/cart";
|
|
39
|
+
export * from "./types/product";
|
|
40
|
+
export * as ProductTypes from "./types/product";
|
|
41
|
+
export * as SiteTypes from "./types/site";
|
|
42
|
+
export { defaultProduct as ProductPlaceholder } from "./utils/default-product";
|
|
43
|
+
export * from "./utils/errors";
|
|
44
|
+
export * from "./utils/types";
|
|
45
|
+
export { globalActionsRegistrations, CartActionsProvider } from "./contexts";
|
|
46
|
+
export declare function registerAll(loader?: Registerable): void;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export declare function formatPrice({ amount, currencyCode, locale, }: {
|
|
2
|
-
amount: number;
|
|
3
|
-
currencyCode: string;
|
|
4
|
-
locale: string;
|
|
5
|
-
}): string;
|
|
6
|
-
export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, }: {
|
|
7
|
-
baseAmount: number;
|
|
8
|
-
amount: number;
|
|
9
|
-
currencyCode: string;
|
|
10
|
-
locale: string;
|
|
11
|
-
}): {
|
|
12
|
-
price: string;
|
|
13
|
-
basePrice: string | null;
|
|
14
|
-
discount: string | null;
|
|
15
|
-
};
|
|
16
|
-
export default function usePrice(data?: {
|
|
17
|
-
amount: number;
|
|
18
|
-
baseAmount?: number;
|
|
19
|
-
currencyCode: string;
|
|
20
|
-
} | null): {
|
|
21
|
-
price: string;
|
|
22
|
-
basePrice: string | null;
|
|
23
|
-
discount: string | null;
|
|
24
|
-
} | {
|
|
25
|
-
price: string;
|
|
26
|
-
};
|
|
1
|
+
export declare function formatPrice({ amount, currencyCode, locale, }: {
|
|
2
|
+
amount: number;
|
|
3
|
+
currencyCode: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
}): string;
|
|
6
|
+
export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, }: {
|
|
7
|
+
baseAmount: number;
|
|
8
|
+
amount: number;
|
|
9
|
+
currencyCode: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
}): {
|
|
12
|
+
price: string;
|
|
13
|
+
basePrice: string | null;
|
|
14
|
+
discount: string | null;
|
|
15
|
+
};
|
|
16
|
+
export default function usePrice(data?: {
|
|
17
|
+
amount: number;
|
|
18
|
+
baseAmount?: number;
|
|
19
|
+
currencyCode: string;
|
|
20
|
+
} | null): {
|
|
21
|
+
price: string;
|
|
22
|
+
basePrice: string | null;
|
|
23
|
+
discount: string | null;
|
|
24
|
+
} | {
|
|
25
|
+
price: string;
|
|
26
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SWRHook } from '../utils/types';
|
|
2
|
-
import type { GetProductHook } from '../types/product';
|
|
3
|
-
export
|
|
4
|
-
declare const useProduct: UseProduct;
|
|
5
|
-
export default useProduct;
|
|
1
|
+
import type { SWRHook } from '../utils/types';
|
|
2
|
+
import type { GetProductHook } from '../types/product';
|
|
3
|
+
export type UseProduct<H extends SWRHook<GetProductHook<any>> = SWRHook<GetProductHook>> = ReturnType<H['useHook']>;
|
|
4
|
+
declare const useProduct: UseProduct;
|
|
5
|
+
export default useProduct;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HookFetcherFn, SWRHook } from '../utils/types';
|
|
2
|
-
import type { SearchProductsHook } from '../types/product';
|
|
3
|
-
export
|
|
4
|
-
export declare const fetcher: HookFetcherFn<SearchProductsHook>;
|
|
5
|
-
declare const useSearch: UseSearch;
|
|
6
|
-
export default useSearch;
|
|
1
|
+
import type { HookFetcherFn, SWRHook } from '../utils/types';
|
|
2
|
+
import type { SearchProductsHook } from '../types/product';
|
|
3
|
+
export type UseSearch<H extends SWRHook<SearchProductsHook<any>> = SWRHook<SearchProductsHook>> = ReturnType<H['useHook']>;
|
|
4
|
+
export declare const fetcher: HookFetcherFn<SearchProductsHook>;
|
|
5
|
+
declare const useSearch: UseSearch;
|
|
6
|
+
export default useSearch;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface AddToCartButtonProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const addToCartButtonMeta: CodeComponentMeta<AddToCartButtonProps>;
|
|
8
|
-
export declare function AddToCartButton(props: AddToCartButtonProps): React.ReactElement<unknown, string |
|
|
9
|
-
export declare function registerAddToCartButton(loader?: Registerable, customAddToCartButtonMeta?: CodeComponentMeta<AddToCartButtonProps>): void;
|
|
10
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface AddToCartButtonProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const addToCartButtonMeta: CodeComponentMeta<AddToCartButtonProps>;
|
|
8
|
+
export declare function AddToCartButton(props: AddToCartButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
9
|
+
export declare function registerAddToCartButton(loader?: Registerable, customAddToCartButtonMeta?: CodeComponentMeta<AddToCartButtonProps>): void;
|
|
10
|
+
export {};
|
package/dist/registerCart.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface CartProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
field: string;
|
|
7
|
-
hideIfIsEmpty?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const cartMeta: CodeComponentMeta<CartProps>;
|
|
10
|
-
export declare function CartComponent(props: CartProps): React.JSX.Element | null;
|
|
11
|
-
export declare function registerCart(loader?: Registerable, customCartMeta?: CodeComponentMeta<CartProps>): void;
|
|
12
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface CartProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
field: string;
|
|
7
|
+
hideIfIsEmpty?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const cartMeta: CodeComponentMeta<CartProps>;
|
|
10
|
+
export declare function CartComponent(props: CartProps): React.JSX.Element | null;
|
|
11
|
+
export declare function registerCart(loader?: Registerable, customCartMeta?: CodeComponentMeta<CartProps>): void;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
export declare const cartProviderMeta: CodeComponentMeta<React.PropsWithChildren<object>>;
|
|
5
|
-
export declare function CartProvider(props: React.PropsWithChildren<object>): React.JSX.Element;
|
|
6
|
-
export declare function registerCartProvider(loader?: Registerable, customCartProviderMeta?: CodeComponentMeta<React.PropsWithChildren<object>>): void;
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
export declare const cartProviderMeta: CodeComponentMeta<React.PropsWithChildren<object>>;
|
|
5
|
+
export declare function CartProvider(props: React.PropsWithChildren<object>): React.JSX.Element;
|
|
6
|
+
export declare function registerCartProvider(loader?: Registerable, customCartProviderMeta?: CodeComponentMeta<React.PropsWithChildren<object>>): void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
import { Category } from "./types/site";
|
|
5
|
-
interface CategoryCollectionProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
emptyMessage?: React.ReactNode;
|
|
9
|
-
loadingMessage?: React.ReactNode;
|
|
10
|
-
noLayout?: boolean;
|
|
11
|
-
noAutoRepeat?: boolean;
|
|
12
|
-
category?: string;
|
|
13
|
-
setControlContextData?: (data: {
|
|
14
|
-
categories: Category[];
|
|
15
|
-
}) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const categoryCollectionMeta: CodeComponentMeta<CategoryCollectionProps>;
|
|
18
|
-
export declare function CategoryCollection(props: CategoryCollectionProps): React.JSX.Element | null;
|
|
19
|
-
export declare function registerCategoryCollection(loader?: Registerable, customCategoryCollectionMeta?: CodeComponentMeta<CategoryCollectionProps>): void;
|
|
20
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
import { Category } from "./types/site";
|
|
5
|
+
interface CategoryCollectionProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
emptyMessage?: React.ReactNode;
|
|
9
|
+
loadingMessage?: React.ReactNode;
|
|
10
|
+
noLayout?: boolean;
|
|
11
|
+
noAutoRepeat?: boolean;
|
|
12
|
+
category?: string;
|
|
13
|
+
setControlContextData?: (data: {
|
|
14
|
+
categories: Category[];
|
|
15
|
+
}) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const categoryCollectionMeta: CodeComponentMeta<CategoryCollectionProps>;
|
|
18
|
+
export declare function CategoryCollection(props: CategoryCollectionProps): React.JSX.Element | null;
|
|
19
|
+
export declare function registerCategoryCollection(loader?: Registerable, customCategoryCollectionMeta?: CodeComponentMeta<CategoryCollectionProps>): void;
|
|
20
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface CategoryFieldProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
field?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const categoryFieldMeta: CodeComponentMeta<CategoryFieldProps>;
|
|
9
|
-
export declare function CategoryField(props: CategoryFieldProps): React.JSX.Element;
|
|
10
|
-
export declare function registerCategoryField(loader?: Registerable, customCategoryFieldMeta?: CodeComponentMeta<CategoryFieldProps>): void;
|
|
11
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface CategoryFieldProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
field?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const categoryFieldMeta: CodeComponentMeta<CategoryFieldProps>;
|
|
9
|
+
export declare function CategoryField(props: CategoryFieldProps): React.JSX.Element;
|
|
10
|
+
export declare function registerCategoryField(loader?: Registerable, customCategoryFieldMeta?: CodeComponentMeta<CategoryFieldProps>): void;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface CategoryLinkProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
linkDest?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const categoryLinkMeta: CodeComponentMeta<CategoryLinkProps>;
|
|
10
|
-
export declare function CategoryLink(props: CategoryLinkProps): React.JSX.Element;
|
|
11
|
-
export declare function registerCategoryLink(loader?: Registerable, customCategoryLinkMeta?: CodeComponentMeta<CategoryLinkProps>): void;
|
|
12
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface CategoryLinkProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
linkDest?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const categoryLinkMeta: CodeComponentMeta<CategoryLinkProps>;
|
|
10
|
+
export declare function CategoryLink(props: CategoryLinkProps): React.JSX.Element;
|
|
11
|
+
export declare function registerCategoryLink(loader?: Registerable, customCategoryLinkMeta?: CodeComponentMeta<CategoryLinkProps>): void;
|
|
12
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface CategoryMediaProps {
|
|
5
|
-
className: string;
|
|
6
|
-
mediaIndex?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const categoryMediaMeta: CodeComponentMeta<CategoryMediaProps>;
|
|
9
|
-
export declare const CategoryMedia: React.ForwardRefExoticComponent<CategoryMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
10
|
-
export declare function registerCategoryMedia(loader?: Registerable, customCategoryMediaMeta?: CodeComponentMeta<CategoryMediaProps>): void;
|
|
11
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface CategoryMediaProps {
|
|
5
|
+
className: string;
|
|
6
|
+
mediaIndex?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const categoryMediaMeta: CodeComponentMeta<CategoryMediaProps>;
|
|
9
|
+
export declare const CategoryMedia: React.ForwardRefExoticComponent<CategoryMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
10
|
+
export declare function registerCategoryMedia(loader?: Registerable, customCategoryMediaMeta?: CodeComponentMeta<CategoryMediaProps>): void;
|
|
11
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
import { Product } from "./types/product";
|
|
5
|
-
interface ProductBoxProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
id?: string;
|
|
9
|
-
noLayout?: boolean;
|
|
10
|
-
setControlContextData?: (data: {
|
|
11
|
-
products: Product[];
|
|
12
|
-
onSearch?: (value: string) => void;
|
|
13
|
-
}) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const productBoxMeta: CodeComponentMeta<ProductBoxProps>;
|
|
16
|
-
export declare function ProductBox(props: ProductBoxProps): React.JSX.Element;
|
|
17
|
-
export declare function registerProductBox(loader?: Registerable, customProductBoxMeta?: CodeComponentMeta<ProductBoxProps>): void;
|
|
18
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
import { Product } from "./types/product";
|
|
5
|
+
interface ProductBoxProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
id?: string;
|
|
9
|
+
noLayout?: boolean;
|
|
10
|
+
setControlContextData?: (data: {
|
|
11
|
+
products: Product[];
|
|
12
|
+
onSearch?: (value: string) => void;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const productBoxMeta: CodeComponentMeta<ProductBoxProps>;
|
|
16
|
+
export declare function ProductBox(props: ProductBoxProps): React.JSX.Element;
|
|
17
|
+
export declare function registerProductBox(loader?: Registerable, customProductBoxMeta?: CodeComponentMeta<ProductBoxProps>): void;
|
|
18
|
+
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
import { Brand, Category } from "./types/site";
|
|
5
|
-
import { CommerceExtraFeatures } from "./utils/types";
|
|
6
|
-
interface ProductCollectionProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
emptyMessage?: React.ReactNode;
|
|
10
|
-
loadingMessage?: React.ReactNode;
|
|
11
|
-
count?: number;
|
|
12
|
-
category: string;
|
|
13
|
-
includeSubCategories?: boolean;
|
|
14
|
-
brand?: string;
|
|
15
|
-
noLayout?: boolean;
|
|
16
|
-
noAutoRepeat?: boolean;
|
|
17
|
-
search?: string;
|
|
18
|
-
sort?: string;
|
|
19
|
-
setControlContextData?: (data: {
|
|
20
|
-
categories: Category[];
|
|
21
|
-
brands: Brand[];
|
|
22
|
-
features?: CommerceExtraFeatures;
|
|
23
|
-
categoryCtx?: Category;
|
|
24
|
-
}) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const productCollectionMeta: CodeComponentMeta<ProductCollectionProps>;
|
|
27
|
-
export declare function ProductCollection(props: ProductCollectionProps): React.JSX.Element | null;
|
|
28
|
-
export declare function registerProductCollection(loader?: Registerable, customProductCollectionMeta?: CodeComponentMeta<ProductCollectionProps>): void;
|
|
29
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
import { Brand, Category } from "./types/site";
|
|
5
|
+
import { CommerceExtraFeatures } from "./utils/types";
|
|
6
|
+
interface ProductCollectionProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
emptyMessage?: React.ReactNode;
|
|
10
|
+
loadingMessage?: React.ReactNode;
|
|
11
|
+
count?: number;
|
|
12
|
+
category: string;
|
|
13
|
+
includeSubCategories?: boolean;
|
|
14
|
+
brand?: string;
|
|
15
|
+
noLayout?: boolean;
|
|
16
|
+
noAutoRepeat?: boolean;
|
|
17
|
+
search?: string;
|
|
18
|
+
sort?: string;
|
|
19
|
+
setControlContextData?: (data: {
|
|
20
|
+
categories: Category[];
|
|
21
|
+
brands: Brand[];
|
|
22
|
+
features?: CommerceExtraFeatures;
|
|
23
|
+
categoryCtx?: Category;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const productCollectionMeta: CodeComponentMeta<ProductCollectionProps>;
|
|
27
|
+
export declare function ProductCollection(props: ProductCollectionProps): React.JSX.Element | null;
|
|
28
|
+
export declare function registerProductCollection(loader?: Registerable, customProductCollectionMeta?: CodeComponentMeta<ProductCollectionProps>): void;
|
|
29
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface ProductLinkProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
linkDest?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const productLinkMeta: CodeComponentMeta<ProductLinkProps>;
|
|
10
|
-
export declare function ProductLink(props: ProductLinkProps): React.JSX.Element;
|
|
11
|
-
export declare function registerProductLink(loader?: Registerable, customProductLinkMeta?: CodeComponentMeta<ProductLinkProps>): void;
|
|
12
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface ProductLinkProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
linkDest?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const productLinkMeta: CodeComponentMeta<ProductLinkProps>;
|
|
10
|
+
export declare function ProductLink(props: ProductLinkProps): React.JSX.Element;
|
|
11
|
+
export declare function registerProductLink(loader?: Registerable, customProductLinkMeta?: CodeComponentMeta<ProductLinkProps>): void;
|
|
12
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface ProductMediaProps {
|
|
5
|
-
className: string;
|
|
6
|
-
mediaIndex?: number;
|
|
7
|
-
setControlContextData: (data: {
|
|
8
|
-
inMediaContext: boolean;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const productMediaMeta: CodeComponentMeta<ProductMediaProps>;
|
|
12
|
-
export declare const ProductMedia: React.ForwardRefExoticComponent<ProductMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
13
|
-
export declare function registerProductMedia(loader?: Registerable, customProductMediaMeta?: CodeComponentMeta<ProductMediaProps>): void;
|
|
14
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface ProductMediaProps {
|
|
5
|
+
className: string;
|
|
6
|
+
mediaIndex?: number;
|
|
7
|
+
setControlContextData: (data: {
|
|
8
|
+
inMediaContext: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const productMediaMeta: CodeComponentMeta<ProductMediaProps>;
|
|
12
|
+
export declare const ProductMedia: React.ForwardRefExoticComponent<ProductMediaProps & React.RefAttributes<HTMLImageElement>>;
|
|
13
|
+
export declare function registerProductMedia(loader?: Registerable, customProductMediaMeta?: CodeComponentMeta<ProductMediaProps>): void;
|
|
14
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface ProductMediaCollectionProps {
|
|
5
|
-
className: string;
|
|
6
|
-
media: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const productMediaCollectionMeta: CodeComponentMeta<ProductMediaCollectionProps>;
|
|
9
|
-
export declare function ProductMediaCollection(props: ProductMediaCollectionProps): React.JSX.Element;
|
|
10
|
-
export declare function registerProductMediaCollection(loader?: Registerable, customProductMediaCollectionMeta?: CodeComponentMeta<ProductMediaCollectionProps>): void;
|
|
11
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface ProductMediaCollectionProps {
|
|
5
|
+
className: string;
|
|
6
|
+
media: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const productMediaCollectionMeta: CodeComponentMeta<ProductMediaCollectionProps>;
|
|
9
|
+
export declare function ProductMediaCollection(props: ProductMediaCollectionProps): React.JSX.Element;
|
|
10
|
+
export declare function registerProductMediaCollection(loader?: Registerable, customProductMediaCollectionMeta?: CodeComponentMeta<ProductMediaCollectionProps>): void;
|
|
11
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface ProductPriceProps {
|
|
5
|
-
className: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const productPriceMeta: CodeComponentMeta<ProductPriceProps>;
|
|
8
|
-
export declare function ProductPriceComponent(props: ProductPriceProps): React.JSX.Element;
|
|
9
|
-
export declare function registerProductPrice(loader?: Registerable, customProductPriceMeta?: CodeComponentMeta<ProductPriceProps>): void;
|
|
10
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface ProductPriceProps {
|
|
5
|
+
className: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const productPriceMeta: CodeComponentMeta<ProductPriceProps>;
|
|
8
|
+
export declare function ProductPriceComponent(props: ProductPriceProps): React.JSX.Element;
|
|
9
|
+
export declare function registerProductPrice(loader?: Registerable, customProductPriceMeta?: CodeComponentMeta<ProductPriceProps>): void;
|
|
10
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Registerable } from "./registerable";
|
|
4
|
-
interface ProductQuantityProps {
|
|
5
|
-
className: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const productQuantityMeta: CodeComponentMeta<ProductQuantityProps>;
|
|
9
|
-
export declare function ProductQuantity(props: ProductQuantityProps): React.JSX.Element;
|
|
10
|
-
export declare function registerProductQuantity(loader?: Registerable, customProductQuantityMeta?: CodeComponentMeta<ProductQuantityProps>): void;
|
|
11
|
-
export {};
|
|
1
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Registerable } from "./registerable";
|
|
4
|
+
interface ProductQuantityProps {
|
|
5
|
+
className: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const productQuantityMeta: CodeComponentMeta<ProductQuantityProps>;
|
|
9
|
+
export declare function ProductQuantity(props: ProductQuantityProps): React.JSX.Element;
|
|
10
|
+
export declare function registerProductQuantity(loader?: Registerable, customProductQuantityMeta?: CodeComponentMeta<ProductQuantityProps>): void;
|
|
11
|
+
export {};
|