Skip to content

Commit

Permalink
New Checkout version v1.2.0 (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcocapiza authored Feb 11, 2025
1 parent 8655115 commit b8813cf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@dropins/storefront-account": "~1.0.3",
"@dropins/storefront-auth": "~1.0.3",
"@dropins/storefront-cart": "~1.0.2",
"@dropins/storefront-checkout": "~1.1.0",
"@dropins/storefront-checkout": "~1.2.0",
"@dropins/storefront-order": "~1.0.4",
"@dropins/storefront-payment-services": "~1.0.1",
"@dropins/storefront-pdp": "~1.0.0",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
import { HTMLAttributes } from 'preact/compat';

export interface PlaceOrderProps extends HTMLAttributes<HTMLDivElement> {
disabled?: boolean;
handleValidation?: () => boolean;
handlePlaceOrder: (ctx: PlaceOrderContext) => Promise<void>;
export interface ContentSlotContext {
code: string;
}
export interface PlaceOrderContext {
export interface HandlePlaceOrderContext {
code: string;
cartId: string;
}
export interface PlaceOrderProps extends HTMLAttributes<HTMLDivElement> {
disabled?: boolean;
handleValidation?: () => boolean;
handlePlaceOrder: (ctx: HandlePlaceOrderContext) => Promise<void>;
slots?: {
Content?: SlotProps<ContentSlotContext>;
};
}
export declare const PlaceOrder: {
({ hideOnEmptyCart, hideOnVirtualCart, ...props }: import('../../hocs/withConditionalRendering').ConditionalProps & PlaceOrderProps): import("preact/compat").JSX.Element;
displayName: string;
Expand Down

0 comments on commit b8813cf

Please sign in to comment.