@ribajs/shopify
Version:
Shopify extension for Riba.js
24 lines (23 loc) • 819 B
TypeScript
import { Component, ScopeBase } from "@ribajs/core";
import { ShopifyCartObject } from "@ribajs/shopify";
interface Scope extends ScopeBase {
cartItemCount: number;
toggle: ShopifyCartButtonComponent["toggle"];
pending: boolean;
startAddAnimation: boolean;
}
export declare class ShopifyCartButtonComponent extends Component {
static tagName: string;
static cartUrl: string;
static get observedAttributes(): string[];
scope: Scope;
protected set cart(cart: ShopifyCartObject);
constructor();
protected connectedCallback(): void;
toggle(event: Event): void;
protected beforeBind(): Promise<void>;
protected afterBind(): Promise<void | ShopifyCartObject>;
protected requiredAttributes(): string[];
protected template(): Promise<string | null>;
}
export {};