@cimplify/sdk 0.96.0 → 0.98.0
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/{chunk-RRBY35TJ.mjs → chunk-4G5UWFC3.mjs} +7 -1
- package/dist/{chunk-HKN3YG76.js → chunk-QPRI2NII.js} +7 -0
- package/dist/index.js +22 -25
- package/dist/index.mjs +2 -8
- package/dist/react.d.mts +382 -261
- package/dist/react.d.ts +382 -261
- package/dist/react.js +1016 -218
- package/dist/react.mjs +947 -168
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/registry/chat-widget.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React$1
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
|
|
2
3
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
|
|
3
4
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
|
|
4
|
-
import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room } from './client-CX59ew7C.js';
|
|
5
|
+
import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room, Y as ChatReplyContext } from './client-CX59ew7C.js';
|
|
5
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-O8-wcHSe.js';
|
|
7
8
|
import { P as ProductWithPrice } from './price-23RNXftz.js';
|
|
@@ -42,17 +43,17 @@ interface AdProviderProps {
|
|
|
42
43
|
authenticatedAccountId?: string;
|
|
43
44
|
children: ReactNode;
|
|
44
45
|
}
|
|
45
|
-
declare function AdProvider({ siteId, apiBase, authenticatedAccountId, children, }: AdProviderProps):
|
|
46
|
+
declare function AdProvider({ siteId, apiBase, authenticatedAccountId, children, }: AdProviderProps): React__default.ReactElement;
|
|
46
47
|
interface AdProps {
|
|
47
48
|
slot: AdSlot;
|
|
48
49
|
position?: AdPosition;
|
|
49
50
|
className?: string;
|
|
50
|
-
style?:
|
|
51
|
+
style?: React__default.CSSProperties;
|
|
51
52
|
fallback?: ReactNode;
|
|
52
53
|
onImpression?: (adId: string) => void;
|
|
53
54
|
onClick?: (adId: string) => void;
|
|
54
55
|
}
|
|
55
|
-
declare function Ad({ slot, position, className, style, fallback, onImpression, onClick, }: AdProps):
|
|
56
|
+
declare function Ad({ slot, position, className, style, fallback, onImpression, onClick, }: AdProps): React__default.ReactElement | null;
|
|
56
57
|
|
|
57
58
|
type CheckoutOrderType = OrderType;
|
|
58
59
|
interface CimplifyCheckoutProps {
|
|
@@ -81,7 +82,7 @@ interface CimplifyCheckoutProps {
|
|
|
81
82
|
};
|
|
82
83
|
className?: string;
|
|
83
84
|
}
|
|
84
|
-
declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps):
|
|
85
|
+
declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, defaultOrderType, submitLabel, enrollInLink, onComplete, onError, onStatusChange, appearance, className, }: CimplifyCheckoutProps): React__default.ReactElement;
|
|
85
86
|
|
|
86
87
|
interface NavItem {
|
|
87
88
|
label: string;
|
|
@@ -145,18 +146,18 @@ interface FilterTabItem<T extends string = string> {
|
|
|
145
146
|
value: T;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
interface ButtonProps extends
|
|
149
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
149
150
|
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
150
151
|
size?: "sm" | "md";
|
|
151
152
|
asChild?: boolean;
|
|
152
153
|
}
|
|
153
|
-
declare const Button:
|
|
154
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
154
155
|
interface StatusProps {
|
|
155
156
|
status: OrderRowStatus;
|
|
156
157
|
className?: string;
|
|
157
158
|
}
|
|
158
159
|
declare function Status({ status, className }: StatusProps): react_jsx_runtime.JSX.Element;
|
|
159
|
-
interface BackLinkProps extends
|
|
160
|
+
interface BackLinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
160
161
|
label?: string;
|
|
161
162
|
}
|
|
162
163
|
declare function BackLink({ label, className, ...props }: BackLinkProps): react_jsx_runtime.JSX.Element;
|
|
@@ -168,10 +169,10 @@ interface FilterTabsProps<T extends string = string> {
|
|
|
168
169
|
}
|
|
169
170
|
declare function FilterTabs<T extends string = string>({ items, value, onChange, className, }: FilterTabsProps<T>): react_jsx_runtime.JSX.Element;
|
|
170
171
|
interface EmptyStateProps {
|
|
171
|
-
glyph?:
|
|
172
|
+
glyph?: React__default.ReactNode;
|
|
172
173
|
title: string;
|
|
173
174
|
description?: string;
|
|
174
|
-
action?:
|
|
175
|
+
action?: React__default.ReactNode;
|
|
175
176
|
className?: string;
|
|
176
177
|
}
|
|
177
178
|
declare function EmptyState({ glyph, title, description, action, className }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
@@ -197,14 +198,14 @@ interface ToastProps {
|
|
|
197
198
|
declare function Toast({ title, description, onUndo, onDismiss, className }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
198
199
|
|
|
199
200
|
interface AccountShellProps {
|
|
200
|
-
sidebar:
|
|
201
|
-
children:
|
|
201
|
+
sidebar: React__default.ReactNode;
|
|
202
|
+
children: React__default.ReactNode;
|
|
202
203
|
className?: string;
|
|
203
204
|
}
|
|
204
205
|
declare function AccountShell({ sidebar, children, className }: AccountShellProps): react_jsx_runtime.JSX.Element;
|
|
205
206
|
interface AccountSidebarProps {
|
|
206
|
-
children:
|
|
207
|
-
scopeNote?:
|
|
207
|
+
children: React__default.ReactNode;
|
|
208
|
+
scopeNote?: React__default.ReactNode;
|
|
208
209
|
className?: string;
|
|
209
210
|
}
|
|
210
211
|
declare function AccountSidebar({ children, scopeNote, className }: AccountSidebarProps): react_jsx_runtime.JSX.Element;
|
|
@@ -224,24 +225,24 @@ declare function AccountNav({ items, activeHref, className }: AccountNavProps):
|
|
|
224
225
|
interface AccountHeroProps {
|
|
225
226
|
eyebrow?: string;
|
|
226
227
|
title: string;
|
|
227
|
-
subtitle?:
|
|
228
|
+
subtitle?: React__default.ReactNode;
|
|
228
229
|
className?: string;
|
|
229
230
|
}
|
|
230
231
|
declare function AccountHero({ eyebrow, title, subtitle, className }: AccountHeroProps): react_jsx_runtime.JSX.Element;
|
|
231
232
|
interface AccountContentProps {
|
|
232
|
-
children:
|
|
233
|
+
children: React__default.ReactNode;
|
|
233
234
|
className?: string;
|
|
234
235
|
}
|
|
235
236
|
declare function AccountContent({ children, className }: AccountContentProps): react_jsx_runtime.JSX.Element;
|
|
236
237
|
interface SectionProps {
|
|
237
238
|
title?: string;
|
|
238
|
-
meta?:
|
|
239
|
-
action?:
|
|
240
|
-
children:
|
|
239
|
+
meta?: React__default.ReactNode;
|
|
240
|
+
action?: React__default.ReactNode;
|
|
241
|
+
children: React__default.ReactNode;
|
|
241
242
|
className?: string;
|
|
242
243
|
}
|
|
243
244
|
declare function Section({ title, meta, action, children, className }: SectionProps): react_jsx_runtime.JSX.Element;
|
|
244
|
-
interface SectionMoreProps extends
|
|
245
|
+
interface SectionMoreProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
245
246
|
}
|
|
246
247
|
declare function SectionMore({ children, className, ...props }: SectionMoreProps): react_jsx_runtime.JSX.Element;
|
|
247
248
|
|
|
@@ -249,8 +250,8 @@ interface HappeningPaneData {
|
|
|
249
250
|
label: string;
|
|
250
251
|
variant: "live" | "next";
|
|
251
252
|
title: string;
|
|
252
|
-
when:
|
|
253
|
-
actions?:
|
|
253
|
+
when: React__default.ReactNode;
|
|
254
|
+
actions?: React__default.ReactNode;
|
|
254
255
|
}
|
|
255
256
|
interface HappeningCardProps {
|
|
256
257
|
left?: HappeningPaneData;
|
|
@@ -259,9 +260,9 @@ interface HappeningCardProps {
|
|
|
259
260
|
}
|
|
260
261
|
declare function HappeningCard({ left, right, className }: HappeningCardProps): react_jsx_runtime.JSX.Element | null;
|
|
261
262
|
interface ContinuityCardProps {
|
|
262
|
-
glyph?:
|
|
263
|
-
title:
|
|
264
|
-
description?:
|
|
263
|
+
glyph?: React__default.ReactNode;
|
|
264
|
+
title: React__default.ReactNode;
|
|
265
|
+
description?: React__default.ReactNode;
|
|
265
266
|
badge?: string;
|
|
266
267
|
className?: string;
|
|
267
268
|
}
|
|
@@ -269,11 +270,11 @@ declare function ContinuityCard({ glyph, title, description, badge, className }:
|
|
|
269
270
|
interface WelcomeCardProps {
|
|
270
271
|
title: string;
|
|
271
272
|
description: string;
|
|
272
|
-
action:
|
|
273
|
+
action: React__default.ReactNode;
|
|
273
274
|
className?: string;
|
|
274
275
|
}
|
|
275
276
|
declare function WelcomeCard({ title, description, action, className }: WelcomeCardProps): react_jsx_runtime.JSX.Element;
|
|
276
|
-
interface IdentityOfframpProps extends Omit<
|
|
277
|
+
interface IdentityOfframpProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, "title"> {
|
|
277
278
|
title?: string;
|
|
278
279
|
summary?: IdentitySummary;
|
|
279
280
|
className?: string;
|
|
@@ -294,7 +295,7 @@ interface OrderListProps {
|
|
|
294
295
|
declare function OrderList({ orders, onSelect, className }: OrderListProps): react_jsx_runtime.JSX.Element;
|
|
295
296
|
interface OrderDetailHeaderProps {
|
|
296
297
|
title: string;
|
|
297
|
-
meta?:
|
|
298
|
+
meta?: React__default.ReactNode;
|
|
298
299
|
className?: string;
|
|
299
300
|
}
|
|
300
301
|
declare function OrderDetailHeader({ title, meta, className }: OrderDetailHeaderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -335,7 +336,7 @@ interface OrderTotalsProps {
|
|
|
335
336
|
declare function OrderTotals({ data, className }: OrderTotalsProps): react_jsx_runtime.JSX.Element;
|
|
336
337
|
interface ContextRow {
|
|
337
338
|
label: string;
|
|
338
|
-
value:
|
|
339
|
+
value: React__default.ReactNode;
|
|
339
340
|
manageHref?: string;
|
|
340
341
|
manageLabel?: string;
|
|
341
342
|
}
|
|
@@ -360,7 +361,7 @@ interface DeliveryLive {
|
|
|
360
361
|
* sheet on top of it. Only pass this once the delivery provider is actually
|
|
361
362
|
* streaming the rider's location — otherwise omit it and the step view shows.
|
|
362
363
|
*/
|
|
363
|
-
map:
|
|
364
|
+
map: React__default.ReactNode;
|
|
364
365
|
etaLabel?: string;
|
|
365
366
|
}
|
|
366
367
|
interface DeliveryTrackerProps {
|
|
@@ -377,7 +378,7 @@ interface DeliveryTrackerProps {
|
|
|
377
378
|
variant?: "card" | "plain";
|
|
378
379
|
className?: string;
|
|
379
380
|
}
|
|
380
|
-
declare function DeliveryTracker({ steps, statusLabel, etaLabel, rider, live, onTrackLive, onContactRider, variant, className, }: DeliveryTrackerProps):
|
|
381
|
+
declare function DeliveryTracker({ steps, statusLabel, etaLabel, rider, live, onTrackLive, onContactRider, variant, className, }: DeliveryTrackerProps): React__default.ReactElement;
|
|
381
382
|
|
|
382
383
|
type CustomerInputType = "text" | "textarea" | "number" | "select" | "radio" | "multi_select" | "checkbox" | "color" | "date" | "date_time" | "date_range" | "time" | "file" | "image" | "url" | "email" | "phone" | "address" | "location" | "signature";
|
|
383
384
|
type LineItemSemanticKind = "allergen" | "dietary_preference" | "sensitivity" | "consent";
|
|
@@ -436,16 +437,16 @@ interface AccountLineItemProps {
|
|
|
436
437
|
item: AccountLineItemData;
|
|
437
438
|
className?: string;
|
|
438
439
|
}
|
|
439
|
-
declare function AccountLineItem({ item, className }: AccountLineItemProps):
|
|
440
|
+
declare function AccountLineItem({ item, className }: AccountLineItemProps): React__default.ReactElement;
|
|
440
441
|
declare function LineItemDetails({ item, className, }: {
|
|
441
442
|
item: AccountLineItemData;
|
|
442
443
|
className?: string;
|
|
443
|
-
}):
|
|
444
|
+
}): React__default.ReactElement;
|
|
444
445
|
interface AccountLineItemsProps {
|
|
445
446
|
items: AccountLineItemData[];
|
|
446
447
|
className?: string;
|
|
447
448
|
}
|
|
448
|
-
declare function AccountLineItems({ items, className }: AccountLineItemsProps):
|
|
449
|
+
declare function AccountLineItems({ items, className }: AccountLineItemsProps): React__default.ReactElement;
|
|
449
450
|
|
|
450
451
|
interface OrderViewPaymentRow {
|
|
451
452
|
label: string;
|
|
@@ -473,7 +474,7 @@ interface OrderViewPayment {
|
|
|
473
474
|
value: string;
|
|
474
475
|
};
|
|
475
476
|
/** Method line — e.g. a brand chip + masked number. */
|
|
476
|
-
method?:
|
|
477
|
+
method?: React__default.ReactNode;
|
|
477
478
|
}
|
|
478
479
|
type OrderStatusTone = "progress" | "positive" | "muted";
|
|
479
480
|
interface AccountOrderViewProps {
|
|
@@ -490,14 +491,14 @@ interface AccountOrderViewProps {
|
|
|
490
491
|
shipTo?: {
|
|
491
492
|
heading?: string;
|
|
492
493
|
name?: string;
|
|
493
|
-
lines:
|
|
494
|
+
lines: React__default.ReactNode;
|
|
494
495
|
};
|
|
495
|
-
actions?:
|
|
496
|
+
actions?: React__default.ReactNode;
|
|
496
497
|
onBack?: () => void;
|
|
497
498
|
backLabel?: string;
|
|
498
499
|
className?: string;
|
|
499
500
|
}
|
|
500
|
-
declare function AccountOrderView({ orderNumber, placedLabel, statusLabel, statusTone, items, itemsLabel, delivery, payment, shipTo, actions, onBack, backLabel, className, }: AccountOrderViewProps):
|
|
501
|
+
declare function AccountOrderView({ orderNumber, placedLabel, statusLabel, statusTone, items, itemsLabel, delivery, payment, shipTo, actions, onBack, backLabel, className, }: AccountOrderViewProps): React__default.ReactElement;
|
|
501
502
|
|
|
502
503
|
/** Map one enriched order line to the `<AccountLineItem>` view-model. */
|
|
503
504
|
declare function toAccountLineItem(item: EnrichedOrderItem, currency: CurrencyCode): AccountLineItemData;
|
|
@@ -512,24 +513,24 @@ declare function toAccountOrderView(order: EnrichedOrder, opts?: ToAccountOrderV
|
|
|
512
513
|
interface SubscriptionRowProps {
|
|
513
514
|
subscription: SubscriptionRowData;
|
|
514
515
|
onSelect?: (id: string) => void;
|
|
515
|
-
iconTile?:
|
|
516
|
+
iconTile?: React__default.ReactNode;
|
|
516
517
|
className?: string;
|
|
517
518
|
}
|
|
518
519
|
declare function SubscriptionRow({ subscription, onSelect, iconTile, className, }: SubscriptionRowProps): react_jsx_runtime.JSX.Element;
|
|
519
520
|
interface SubscriptionListProps {
|
|
520
521
|
subscriptions: SubscriptionRowData[];
|
|
521
522
|
onSelect?: (id: string) => void;
|
|
522
|
-
renderIcon?: (s: SubscriptionRowData) =>
|
|
523
|
+
renderIcon?: (s: SubscriptionRowData) => React__default.ReactNode;
|
|
523
524
|
className?: string;
|
|
524
525
|
}
|
|
525
526
|
declare function SubscriptionList({ subscriptions, onSelect, renderIcon, className, }: SubscriptionListProps): react_jsx_runtime.JSX.Element;
|
|
526
527
|
interface NextDeliveryCardProps {
|
|
527
528
|
label: string;
|
|
528
529
|
date: string;
|
|
529
|
-
meta?:
|
|
530
|
-
actions?:
|
|
531
|
-
footnote?:
|
|
532
|
-
rightFootnote?:
|
|
530
|
+
meta?: React__default.ReactNode;
|
|
531
|
+
actions?: React__default.ReactNode;
|
|
532
|
+
footnote?: React__default.ReactNode;
|
|
533
|
+
rightFootnote?: React__default.ReactNode;
|
|
533
534
|
paused?: boolean;
|
|
534
535
|
className?: string;
|
|
535
536
|
}
|
|
@@ -548,11 +549,11 @@ interface AccountSignedOutPromptProps {
|
|
|
548
549
|
declare function AccountSignedOutPrompt({ eyebrow, title, description, clientId, redirectUri, lastEmail, onSuccess, className, }: AccountSignedOutPromptProps): react_jsx_runtime.JSX.Element;
|
|
549
550
|
|
|
550
551
|
interface MobileAccountShellProps {
|
|
551
|
-
storeName:
|
|
552
|
-
leading?:
|
|
553
|
-
trailing?:
|
|
554
|
-
tabBar?:
|
|
555
|
-
children:
|
|
552
|
+
storeName: React__default.ReactNode;
|
|
553
|
+
leading?: React__default.ReactNode;
|
|
554
|
+
trailing?: React__default.ReactNode;
|
|
555
|
+
tabBar?: React__default.ReactNode;
|
|
556
|
+
children: React__default.ReactNode;
|
|
556
557
|
className?: string;
|
|
557
558
|
}
|
|
558
559
|
declare function MobileAccountShell({ storeName, leading, trailing, tabBar, children, className, }: MobileAccountShellProps): react_jsx_runtime.JSX.Element;
|
|
@@ -577,40 +578,40 @@ interface AccountPageBaseProps {
|
|
|
577
578
|
merchantName: string;
|
|
578
579
|
nav?: NavItem[];
|
|
579
580
|
activeHref?: string;
|
|
580
|
-
scopeNote?:
|
|
581
|
+
scopeNote?: React__default.ReactNode;
|
|
581
582
|
}
|
|
582
583
|
interface AccountDashboardPageProps extends AccountPageBaseProps {
|
|
583
584
|
greeting?: string;
|
|
584
585
|
activePane?: {
|
|
585
586
|
label: string;
|
|
586
587
|
title: string;
|
|
587
|
-
when:
|
|
588
|
-
actions?:
|
|
588
|
+
when: React__default.ReactNode;
|
|
589
|
+
actions?: React__default.ReactNode;
|
|
589
590
|
};
|
|
590
591
|
upcomingPane?: {
|
|
591
592
|
label: string;
|
|
592
593
|
title: string;
|
|
593
|
-
when:
|
|
594
|
-
actions?:
|
|
594
|
+
when: React__default.ReactNode;
|
|
595
|
+
actions?: React__default.ReactNode;
|
|
595
596
|
};
|
|
596
597
|
continuity?: {
|
|
597
|
-
glyph?:
|
|
598
|
-
title:
|
|
599
|
-
description?:
|
|
598
|
+
glyph?: React__default.ReactNode;
|
|
599
|
+
title: React__default.ReactNode;
|
|
600
|
+
description?: React__default.ReactNode;
|
|
600
601
|
badge?: string;
|
|
601
602
|
};
|
|
602
603
|
recentOrders?: OrderRowData[];
|
|
603
604
|
identitySummary?: IdentitySummary;
|
|
604
|
-
welcomeCta?:
|
|
605
|
+
welcomeCta?: React__default.ReactNode;
|
|
605
606
|
}
|
|
606
607
|
declare function AccountDashboardPage({ customerName, customerEmail, customerId, merchantName, nav, activeHref, scopeNote, greeting, activePane, upcomingPane, continuity, recentOrders, identitySummary, welcomeCta, }: AccountDashboardPageProps): react_jsx_runtime.JSX.Element;
|
|
607
608
|
interface AccountOrdersPageProps extends AccountPageBaseProps {
|
|
608
609
|
title?: string;
|
|
609
|
-
description?:
|
|
610
|
+
description?: React__default.ReactNode;
|
|
610
611
|
orders: OrderRowData[];
|
|
611
|
-
filterTabs?:
|
|
612
|
-
loadMore?:
|
|
613
|
-
emptyAction?:
|
|
612
|
+
filterTabs?: React__default.ReactNode;
|
|
613
|
+
loadMore?: React__default.ReactNode;
|
|
614
|
+
emptyAction?: React__default.ReactNode;
|
|
614
615
|
emptyTitle?: string;
|
|
615
616
|
emptyDescription?: string;
|
|
616
617
|
}
|
|
@@ -627,15 +628,15 @@ interface AccountOrderDetailPageProps extends AccountPageBaseProps {
|
|
|
627
628
|
totals: TotalsData;
|
|
628
629
|
contextRows?: {
|
|
629
630
|
label: string;
|
|
630
|
-
value:
|
|
631
|
+
value: React__default.ReactNode;
|
|
631
632
|
manageHref?: string;
|
|
632
633
|
}[];
|
|
633
|
-
primaryAction?:
|
|
634
|
-
secondaryAction?:
|
|
634
|
+
primaryAction?: React__default.ReactNode;
|
|
635
|
+
secondaryAction?: React__default.ReactNode;
|
|
635
636
|
continuity?: {
|
|
636
|
-
glyph?:
|
|
637
|
-
title:
|
|
638
|
-
description?:
|
|
637
|
+
glyph?: React__default.ReactNode;
|
|
638
|
+
title: React__default.ReactNode;
|
|
639
|
+
description?: React__default.ReactNode;
|
|
639
640
|
};
|
|
640
641
|
}
|
|
641
642
|
declare function AccountOrderDetailPage({ customerName, customerEmail, customerId, merchantName, nav, activeHref, scopeNote, title, metaText, orderId, status, timelineSteps, itemsTitle, itemsRightLabel, items, totals, contextRows, primaryAction, secondaryAction, continuity, }: AccountOrderDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
@@ -643,7 +644,7 @@ interface AccountSubscriptionsPageProps extends AccountPageBaseProps {
|
|
|
643
644
|
active?: SubscriptionRowData[];
|
|
644
645
|
paused?: SubscriptionRowData[];
|
|
645
646
|
past?: SubscriptionRowData[];
|
|
646
|
-
emptyAction?:
|
|
647
|
+
emptyAction?: React__default.ReactNode;
|
|
647
648
|
emptyTitle?: string;
|
|
648
649
|
emptyDescription?: string;
|
|
649
650
|
}
|
|
@@ -655,20 +656,20 @@ interface AccountSubscriptionDetailPageProps extends AccountPageBaseProps {
|
|
|
655
656
|
paused?: boolean;
|
|
656
657
|
nextDeliveryLabel: string;
|
|
657
658
|
nextDeliveryDate: string;
|
|
658
|
-
nextDeliveryMeta?:
|
|
659
|
-
nextDeliveryActions?:
|
|
660
|
-
nextDeliveryFootnote?:
|
|
661
|
-
nextDeliveryRightFootnote?:
|
|
659
|
+
nextDeliveryMeta?: React__default.ReactNode;
|
|
660
|
+
nextDeliveryActions?: React__default.ReactNode;
|
|
661
|
+
nextDeliveryFootnote?: React__default.ReactNode;
|
|
662
|
+
nextDeliveryRightFootnote?: React__default.ReactNode;
|
|
662
663
|
itemsTitle?: string;
|
|
663
664
|
items: OrderItemData[];
|
|
664
665
|
totals?: TotalsData;
|
|
665
666
|
contextRows?: {
|
|
666
667
|
label: string;
|
|
667
|
-
value:
|
|
668
|
+
value: React__default.ReactNode;
|
|
668
669
|
manageHref?: string;
|
|
669
670
|
}[];
|
|
670
|
-
toast?:
|
|
671
|
-
cancelAction?:
|
|
671
|
+
toast?: React__default.ReactNode;
|
|
672
|
+
cancelAction?: React__default.ReactNode;
|
|
672
673
|
}
|
|
673
674
|
declare function AccountSubscriptionDetailPage({ customerName, customerEmail, customerId, merchantName, nav, activeHref, scopeNote, title, metaText, status, paused, nextDeliveryLabel, nextDeliveryDate, nextDeliveryMeta, nextDeliveryActions, nextDeliveryFootnote, nextDeliveryRightFootnote, itemsTitle, items, totals, contextRows, toast, cancelAction, }: AccountSubscriptionDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
674
675
|
|
|
@@ -698,7 +699,7 @@ interface CimplifySignInButtonProps extends Omit<SignInOptions, "onSuccess" | "o
|
|
|
698
699
|
}) => void;
|
|
699
700
|
fullWidth?: boolean;
|
|
700
701
|
}
|
|
701
|
-
declare function CimplifySignInButton({ variant, label, className, disabled, fullWidth, onSuccess, onError, ...signInOpts }: CimplifySignInButtonProps):
|
|
702
|
+
declare function CimplifySignInButton({ variant, label, className, disabled, fullWidth, onSuccess, onError, ...signInOpts }: CimplifySignInButtonProps): React__default.ReactElement;
|
|
702
703
|
|
|
703
704
|
interface CimplifyClientSession {
|
|
704
705
|
sub: string;
|
|
@@ -723,7 +724,7 @@ declare function useCimplifySession(options?: UseCimplifySessionOptions): UseCim
|
|
|
723
724
|
interface UserButtonLink {
|
|
724
725
|
label: string;
|
|
725
726
|
href: string;
|
|
726
|
-
icon?:
|
|
727
|
+
icon?: React__default.ReactNode;
|
|
727
728
|
external?: boolean;
|
|
728
729
|
}
|
|
729
730
|
interface CimplifyUserButtonProps {
|
|
@@ -757,7 +758,7 @@ interface CimplifyUserButtonProps {
|
|
|
757
758
|
align?: "start" | "end";
|
|
758
759
|
className?: string;
|
|
759
760
|
}
|
|
760
|
-
declare function CimplifyUserButton({ session: controlledSession, sessionUri, links, identityUrl, signOutHref, onSignOut, clientId, redirectUri, signInLabel, onSignIn, hideName, align, className, }: CimplifyUserButtonProps):
|
|
761
|
+
declare function CimplifyUserButton({ session: controlledSession, sessionUri, links, identityUrl, signOutHref, onSignOut, clientId, redirectUri, signInLabel, onSignIn, hideName, align, className, }: CimplifyUserButtonProps): React__default.ReactElement | null;
|
|
761
762
|
|
|
762
763
|
interface PriceProps {
|
|
763
764
|
/** The amount, denominated in `currency` (or the business base currency). */
|
|
@@ -794,7 +795,7 @@ interface PriceProps {
|
|
|
794
795
|
* base currency the FX rate is computed from. It never affects the server or
|
|
795
796
|
* first-paint render, so there is no hydration mismatch.
|
|
796
797
|
*/
|
|
797
|
-
declare function Price({ amount, currency, className, prefix, convert, }: PriceProps):
|
|
798
|
+
declare function Price({ amount, currency, className, prefix, convert, }: PriceProps): React__default.ReactElement;
|
|
798
799
|
|
|
799
800
|
type PrefetchMode = "aggressive" | "hover" | "off";
|
|
800
801
|
interface PrefetchOptions {
|
|
@@ -811,10 +812,10 @@ interface CimplifyLinkProps {
|
|
|
811
812
|
href: string;
|
|
812
813
|
className?: string;
|
|
813
814
|
children: ReactNode;
|
|
814
|
-
onPointerEnter?:
|
|
815
|
-
onFocus?:
|
|
815
|
+
onPointerEnter?: React__default.PointerEventHandler<Element>;
|
|
816
|
+
onFocus?: React__default.FocusEventHandler<Element>;
|
|
816
817
|
}
|
|
817
|
-
type CimplifyLinkComponent =
|
|
818
|
+
type CimplifyLinkComponent = React__default.ComponentType<CimplifyLinkProps>;
|
|
818
819
|
interface CimplifyClientContextValue {
|
|
819
820
|
client: CimplifyClient;
|
|
820
821
|
business: Business | null;
|
|
@@ -870,7 +871,7 @@ interface CimplifyProviderProps {
|
|
|
870
871
|
prefetch?: PrefetchOptions;
|
|
871
872
|
linkComponent?: CimplifyLinkComponent;
|
|
872
873
|
}
|
|
873
|
-
declare function CimplifyProvider({ client, children, onLocationChange, initialBusiness, initialLocations, optimistic, prefetch, linkComponent, }: CimplifyProviderProps):
|
|
874
|
+
declare function CimplifyProvider({ client, children, onLocationChange, initialBusiness, initialLocations, optimistic, prefetch, linkComponent, }: CimplifyProviderProps): React__default.ReactElement;
|
|
874
875
|
declare function useCimplify(): CimplifyContextValue;
|
|
875
876
|
declare function useOptionalCimplify(): CimplifyContextValue | null;
|
|
876
877
|
declare function useCimplifyClient(): CimplifyClientContextValue;
|
|
@@ -1565,10 +1566,10 @@ interface ElementsProviderProps {
|
|
|
1565
1566
|
options?: ElementsOptions;
|
|
1566
1567
|
children: ReactNode;
|
|
1567
1568
|
}
|
|
1568
|
-
declare function ElementsProvider({ client, businessId, options, children, }: ElementsProviderProps):
|
|
1569
|
+
declare function ElementsProvider({ client, businessId, options, children, }: ElementsProviderProps): React__default.ReactElement;
|
|
1569
1570
|
interface BaseElementProps {
|
|
1570
1571
|
className?: string;
|
|
1571
|
-
style?:
|
|
1572
|
+
style?: React__default.CSSProperties;
|
|
1572
1573
|
onReady?: () => void;
|
|
1573
1574
|
onError?: (error: {
|
|
1574
1575
|
code: string;
|
|
@@ -1579,7 +1580,7 @@ interface AuthElementProps extends BaseElementProps {
|
|
|
1579
1580
|
prefillEmail?: string;
|
|
1580
1581
|
onAuthenticated?: (data: AuthenticatedData) => void;
|
|
1581
1582
|
}
|
|
1582
|
-
declare function AuthElement({ className, style, prefillEmail, onReady, onAuthenticated, onError, }: AuthElementProps):
|
|
1583
|
+
declare function AuthElement({ className, style, prefillEmail, onReady, onAuthenticated, onError, }: AuthElementProps): React__default.ReactElement | null;
|
|
1583
1584
|
interface AddressElementProps extends BaseElementProps {
|
|
1584
1585
|
mode?: "shipping" | "billing";
|
|
1585
1586
|
onChange?: (data: {
|
|
@@ -1587,7 +1588,7 @@ interface AddressElementProps extends BaseElementProps {
|
|
|
1587
1588
|
saveToLink: boolean;
|
|
1588
1589
|
}) => void;
|
|
1589
1590
|
}
|
|
1590
|
-
declare function AddressElement({ className, style, mode, onReady, onChange, onError, }: AddressElementProps):
|
|
1591
|
+
declare function AddressElement({ className, style, mode, onReady, onChange, onError, }: AddressElementProps): React__default.ReactElement | null;
|
|
1591
1592
|
interface PaymentElementProps extends BaseElementProps {
|
|
1592
1593
|
amount?: number;
|
|
1593
1594
|
currency?: CurrencyCode;
|
|
@@ -1596,7 +1597,7 @@ interface PaymentElementProps extends BaseElementProps {
|
|
|
1596
1597
|
saveToLink: boolean;
|
|
1597
1598
|
}) => void;
|
|
1598
1599
|
}
|
|
1599
|
-
declare function PaymentElement({ className, style, amount, currency, onReady, onChange, onError, }: PaymentElementProps):
|
|
1600
|
+
declare function PaymentElement({ className, style, amount, currency, onReady, onChange, onError, }: PaymentElementProps): React__default.ReactElement | null;
|
|
1600
1601
|
declare function useCheckout(): {
|
|
1601
1602
|
submit: (data: {
|
|
1602
1603
|
cart_id: string;
|
|
@@ -1623,7 +1624,7 @@ interface QuantitySelectorProps {
|
|
|
1623
1624
|
className?: string;
|
|
1624
1625
|
classNames?: QuantitySelectorClassNames;
|
|
1625
1626
|
}
|
|
1626
|
-
declare function QuantitySelector({ value, onChange, min, max, className, classNames, }: QuantitySelectorProps):
|
|
1627
|
+
declare function QuantitySelector({ value, onChange, min, max, className, classNames, }: QuantitySelectorProps): React__default.ReactElement;
|
|
1627
1628
|
|
|
1628
1629
|
interface VariantSelectorClassNames {
|
|
1629
1630
|
root?: string;
|
|
@@ -1650,7 +1651,7 @@ interface VariantSelectorProps {
|
|
|
1650
1651
|
className?: string;
|
|
1651
1652
|
classNames?: VariantSelectorClassNames;
|
|
1652
1653
|
}
|
|
1653
|
-
declare function VariantSelector({ variants, variantAxes, basePrice, currency, selectedVariantId, onVariantChange, productName, className, classNames, }: VariantSelectorProps):
|
|
1654
|
+
declare function VariantSelector({ variants, variantAxes, basePrice, currency, selectedVariantId, onVariantChange, productName, className, classNames, }: VariantSelectorProps): React__default.ReactElement | null;
|
|
1654
1655
|
|
|
1655
1656
|
interface AddOnSelectorClassNames {
|
|
1656
1657
|
root?: string;
|
|
@@ -1674,7 +1675,7 @@ interface AddOnSelectorProps {
|
|
|
1674
1675
|
className?: string;
|
|
1675
1676
|
classNames?: AddOnSelectorClassNames;
|
|
1676
1677
|
}
|
|
1677
|
-
declare function AddOnSelector({ addOns, selectedOptions, onOptionsChange, currency, className, classNames, }: AddOnSelectorProps):
|
|
1678
|
+
declare function AddOnSelector({ addOns, selectedOptions, onOptionsChange, currency, className, classNames, }: AddOnSelectorProps): React__default.ReactElement | null;
|
|
1678
1679
|
|
|
1679
1680
|
interface BundleSelectorClassNames {
|
|
1680
1681
|
root?: string;
|
|
@@ -1706,7 +1707,7 @@ interface BundleSelectorProps {
|
|
|
1706
1707
|
className?: string;
|
|
1707
1708
|
classNames?: BundleSelectorClassNames;
|
|
1708
1709
|
}
|
|
1709
|
-
declare function BundleSelector({ components, bundlePrice, discountValue, pricingType, currency, onSelectionsChange, onPriceChange, onReady, className, classNames, }: BundleSelectorProps):
|
|
1710
|
+
declare function BundleSelector({ components, bundlePrice, discountValue, pricingType, currency, onSelectionsChange, onPriceChange, onReady, className, classNames, }: BundleSelectorProps): React__default.ReactElement | null;
|
|
1710
1711
|
|
|
1711
1712
|
interface CompositeSelectorClassNames {
|
|
1712
1713
|
root?: string;
|
|
@@ -1749,7 +1750,7 @@ interface CompositeSelectorProps {
|
|
|
1749
1750
|
className?: string;
|
|
1750
1751
|
classNames?: CompositeSelectorClassNames;
|
|
1751
1752
|
}
|
|
1752
|
-
declare function CompositeSelector({ compositeId, groups, currency, onSelectionsChange, onPriceChange, onReady, skipPriceFetch, className, classNames, }: CompositeSelectorProps):
|
|
1753
|
+
declare function CompositeSelector({ compositeId, groups, currency, onSelectionsChange, onPriceChange, onReady, skipPriceFetch, className, classNames, }: CompositeSelectorProps): React__default.ReactElement | null;
|
|
1753
1754
|
|
|
1754
1755
|
interface ProductCustomizerClassNames {
|
|
1755
1756
|
root?: string;
|
|
@@ -1774,7 +1775,7 @@ interface ProductCustomizerProps {
|
|
|
1774
1775
|
className?: string;
|
|
1775
1776
|
classNames?: ProductCustomizerClassNames;
|
|
1776
1777
|
}
|
|
1777
|
-
declare function ProductCustomizer({ product, onAddToCart, onVariantChange, showSpecialInstructions, submitLabel, className, classNames, }: ProductCustomizerProps):
|
|
1778
|
+
declare function ProductCustomizer({ product, onAddToCart, onVariantChange, showSpecialInstructions, submitLabel, className, classNames, }: ProductCustomizerProps): React__default.ReactElement;
|
|
1778
1779
|
|
|
1779
1780
|
interface ProductImageGalleryProps {
|
|
1780
1781
|
images: string[];
|
|
@@ -1787,7 +1788,7 @@ interface ProductImageGalleryProps {
|
|
|
1787
1788
|
*
|
|
1788
1789
|
* Uses plain `<img>` for framework-agnostic rendering (not Next.js Image).
|
|
1789
1790
|
*/
|
|
1790
|
-
declare function ProductImageGallery({ images, productName, aspectRatio, className, }: ProductImageGalleryProps):
|
|
1791
|
+
declare function ProductImageGallery({ images, productName, aspectRatio, className, }: ProductImageGalleryProps): React__default.ReactElement | null;
|
|
1791
1792
|
|
|
1792
1793
|
interface StoreVideoProps {
|
|
1793
1794
|
src: string;
|
|
@@ -1811,7 +1812,7 @@ interface StoreVideoProps {
|
|
|
1811
1812
|
* IntersectionObserver-driven lazy load, and a poster `<img>` fallback for
|
|
1812
1813
|
* browsers without video support. Drop-in replacement for a static hero image.
|
|
1813
1814
|
*/
|
|
1814
|
-
declare function StoreVideo({ src, poster, alt, aspectRatio, controls, autoplay, loop, muted, lazy, className, }: StoreVideoProps):
|
|
1815
|
+
declare function StoreVideo({ src, poster, alt, aspectRatio, controls, autoplay, loop, muted, lazy, className, }: StoreVideoProps): React__default.ReactElement;
|
|
1815
1816
|
|
|
1816
1817
|
interface ProductModel3DProps {
|
|
1817
1818
|
/** glTF or GLB URL. */
|
|
@@ -1835,7 +1836,7 @@ interface ProductModel3DProps {
|
|
|
1835
1836
|
* Scene Viewer on Android, WebXR where available. Poster image shows during
|
|
1836
1837
|
* load and as a fallback if the script can't load.
|
|
1837
1838
|
*/
|
|
1838
|
-
declare function ProductModel3D({ src, iosSrc, poster, alt, aspectRatio, ar, autoRotate, cameraControls, className, }: ProductModel3DProps):
|
|
1839
|
+
declare function ProductModel3D({ src, iosSrc, poster, alt, aspectRatio, ar, autoRotate, cameraControls, className, }: ProductModel3DProps): React__default.ReactElement;
|
|
1839
1840
|
|
|
1840
1841
|
type MediaItem = {
|
|
1841
1842
|
type: "image";
|
|
@@ -1865,7 +1866,7 @@ interface MediaGalleryProps {
|
|
|
1865
1866
|
* component (img / StoreVideo / ProductModel3D); thumbnails show a poster
|
|
1866
1867
|
* (or the image itself) with a small overlay icon for video/3D.
|
|
1867
1868
|
*/
|
|
1868
|
-
declare function MediaGallery({ items, productName, aspectRatio, className, }: MediaGalleryProps):
|
|
1869
|
+
declare function MediaGallery({ items, productName, aspectRatio, className, }: MediaGalleryProps): React__default.ReactElement | null;
|
|
1869
1870
|
|
|
1870
1871
|
interface CartSummaryClassNames {
|
|
1871
1872
|
root?: string;
|
|
@@ -1909,7 +1910,7 @@ interface CartSummaryProps {
|
|
|
1909
1910
|
* NOT a drawer or modal — just the cart content. Templates wrap this in
|
|
1910
1911
|
* their own drawer/modal shell with animations.
|
|
1911
1912
|
*/
|
|
1912
|
-
declare function CartSummary({ cart: serverCart, onCheckout, onItemRemove, onQuantityChange, emptyMessage, showTotals, showCheckoutButton, className, classNames, }: CartSummaryProps):
|
|
1913
|
+
declare function CartSummary({ cart: serverCart, onCheckout, onItemRemove, onQuantityChange, emptyMessage, showTotals, showCheckoutButton, className, classNames, }: CartSummaryProps): React__default.ReactElement;
|
|
1913
1914
|
|
|
1914
1915
|
interface AvailabilityBadgeClassNames {
|
|
1915
1916
|
root?: string;
|
|
@@ -1940,7 +1941,7 @@ interface AvailabilityBadgeProps {
|
|
|
1940
1941
|
* Returns `null` for products that don't have inventory tracking enabled,
|
|
1941
1942
|
* since there's no meaningful stock state to show.
|
|
1942
1943
|
*/
|
|
1943
|
-
declare function AvailabilityBadge({ product, isAvailable, isInStock, stockQuantity, lowStockThreshold, locationId, className, classNames, }: AvailabilityBadgeProps):
|
|
1944
|
+
declare function AvailabilityBadge({ product, isAvailable, isInStock, stockQuantity, lowStockThreshold, locationId, className, classNames, }: AvailabilityBadgeProps): React__default.ReactElement | null;
|
|
1944
1945
|
|
|
1945
1946
|
interface CustomerInputFieldsClassNames {
|
|
1946
1947
|
root?: string;
|
|
@@ -1974,7 +1975,7 @@ interface CustomerInputFieldsProps {
|
|
|
1974
1975
|
className?: string;
|
|
1975
1976
|
classNames?: CustomerInputFieldsClassNames;
|
|
1976
1977
|
}
|
|
1977
|
-
declare function CustomerInputFields({ fields, values, onChange, onFileUpload, currency, className, classNames, }: CustomerInputFieldsProps):
|
|
1978
|
+
declare function CustomerInputFields({ fields, values, onChange, onFileUpload, currency, className, classNames, }: CustomerInputFieldsProps): React__default.ReactElement | null;
|
|
1978
1979
|
|
|
1979
1980
|
interface AddressAutocompleteClassNames {
|
|
1980
1981
|
root?: string;
|
|
@@ -2013,7 +2014,7 @@ declare function createPlacesSessionToken(): string;
|
|
|
2013
2014
|
* Headless by default: style via `classNames` or the `data-cimplify-address-*`
|
|
2014
2015
|
* attributes.
|
|
2015
2016
|
*/
|
|
2016
|
-
declare function AddressAutocomplete({ value, onSelect, onDirty, placeholder, required, autoFocus, id, className, classNames, }: AddressAutocompleteProps):
|
|
2017
|
+
declare function AddressAutocomplete({ value, onSelect, onDirty, placeholder, required, autoFocus, id, className, classNames, }: AddressAutocompleteProps): React__default.ReactElement;
|
|
2017
2018
|
|
|
2018
2019
|
interface SaleBadgeClassNames {
|
|
2019
2020
|
root?: string;
|
|
@@ -2041,7 +2042,7 @@ interface SaleBadgeProps {
|
|
|
2041
2042
|
* Returns `null` when there's no deal, no sale price difference, and no label override,
|
|
2042
2043
|
* so it's safe to render unconditionally — it simply won't show for non-sale products.
|
|
2043
2044
|
*/
|
|
2044
|
-
declare function SaleBadge({ product, dealInfo, label, showOriginalPrice, showPercentage, className, classNames, }: SaleBadgeProps):
|
|
2045
|
+
declare function SaleBadge({ product, dealInfo, label, showOriginalPrice, showPercentage, className, classNames, }: SaleBadgeProps): React__default.ReactElement | null;
|
|
2045
2046
|
|
|
2046
2047
|
interface SalePriceClassNames {
|
|
2047
2048
|
root?: string;
|
|
@@ -2072,14 +2073,14 @@ interface SalePriceProps {
|
|
|
2072
2073
|
* optional "% OFF" badge, countdown, and claim counter. With no `sale` it
|
|
2073
2074
|
* degrades to a plain {@link Price}, so it's safe to render unconditionally.
|
|
2074
2075
|
*/
|
|
2075
|
-
declare function SalePrice({ sale, amount, currency, showBadge, showCountdown, showClaim, className, classNames, }: SalePriceProps):
|
|
2076
|
+
declare function SalePrice({ sale, amount, currency, showBadge, showCountdown, showClaim, className, classNames, }: SalePriceProps): React__default.ReactElement;
|
|
2076
2077
|
interface SaleTeaserProps {
|
|
2077
2078
|
/** The upcoming-sale block from the product. When absent, nothing renders. */
|
|
2078
2079
|
upcoming?: UpcomingSale | null;
|
|
2079
2080
|
/** Override the default "Back {date}" label, e.g. ({ when }) => `Returns ${when}`. */
|
|
2080
2081
|
children?: (formatted: {
|
|
2081
2082
|
when: string;
|
|
2082
|
-
}) =>
|
|
2083
|
+
}) => React__default.ReactNode;
|
|
2083
2084
|
className?: string;
|
|
2084
2085
|
}
|
|
2085
2086
|
/**
|
|
@@ -2087,7 +2088,7 @@ interface SaleTeaserProps {
|
|
|
2087
2088
|
* right now (driven by the product's `upcoming_sale`). Renders nothing until
|
|
2088
2089
|
* mounted, so the locale-formatted date can't cause a hydration mismatch.
|
|
2089
2090
|
*/
|
|
2090
|
-
declare function SaleTeaser({ upcoming, children, className, }: SaleTeaserProps):
|
|
2091
|
+
declare function SaleTeaser({ upcoming, children, className, }: SaleTeaserProps): React__default.ReactElement | null;
|
|
2091
2092
|
|
|
2092
2093
|
interface ProductSheetClassNames {
|
|
2093
2094
|
root?: string;
|
|
@@ -2111,7 +2112,7 @@ interface ProductSheetProps {
|
|
|
2111
2112
|
src: string;
|
|
2112
2113
|
alt: string;
|
|
2113
2114
|
className?: string;
|
|
2114
|
-
}) =>
|
|
2115
|
+
}) => React__default.ReactNode;
|
|
2115
2116
|
className?: string;
|
|
2116
2117
|
classNames?: ProductSheetClassNames;
|
|
2117
2118
|
}
|
|
@@ -2121,7 +2122,7 @@ interface ProductSheetProps {
|
|
|
2121
2122
|
* When given a slim `Product`, it lazy-fetches the full details via `useProduct`.
|
|
2122
2123
|
* When given a `ProductWithDetails`, it skips the fetch entirely.
|
|
2123
2124
|
*/
|
|
2124
|
-
declare function ProductSheet({ product, onClose, onAddToCart, renderImage, className, classNames, }: ProductSheetProps):
|
|
2125
|
+
declare function ProductSheet({ product, onClose, onAddToCart, renderImage, className, classNames, }: ProductSheetProps): React__default.ReactElement;
|
|
2125
2126
|
|
|
2126
2127
|
interface CardLayoutProps {
|
|
2127
2128
|
product: Product;
|
|
@@ -2131,12 +2132,12 @@ interface CardLayoutProps {
|
|
|
2131
2132
|
alt: string;
|
|
2132
2133
|
className?: string;
|
|
2133
2134
|
priority?: boolean;
|
|
2134
|
-
}) =>
|
|
2135
|
+
}) => React__default.ReactNode;
|
|
2135
2136
|
renderLink?: (props: {
|
|
2136
2137
|
href: string;
|
|
2137
2138
|
className?: string;
|
|
2138
|
-
children:
|
|
2139
|
-
}) =>
|
|
2139
|
+
children: React__default.ReactNode;
|
|
2140
|
+
}) => React__default.ReactElement;
|
|
2140
2141
|
className?: string;
|
|
2141
2142
|
}
|
|
2142
2143
|
declare function CardImage({ src, alt, aspectRatio, renderImage, className, children, }: {
|
|
@@ -2145,55 +2146,55 @@ declare function CardImage({ src, alt, aspectRatio, renderImage, className, chil
|
|
|
2145
2146
|
aspectRatio?: "square" | "3/4" | "4/3" | "16/9";
|
|
2146
2147
|
renderImage?: CardLayoutProps["renderImage"];
|
|
2147
2148
|
className?: string;
|
|
2148
|
-
children?:
|
|
2149
|
-
}):
|
|
2149
|
+
children?: React__default.ReactNode;
|
|
2150
|
+
}): React__default.ReactElement;
|
|
2150
2151
|
declare function QuickAddButton({ onClick, className, }: {
|
|
2151
2152
|
onClick?: () => void;
|
|
2152
2153
|
className?: string;
|
|
2153
|
-
}):
|
|
2154
|
+
}): React__default.ReactElement;
|
|
2154
2155
|
declare function WishlistButton({ filled, onClick, className, }: {
|
|
2155
2156
|
filled?: boolean;
|
|
2156
2157
|
onClick?: () => void;
|
|
2157
2158
|
className?: string;
|
|
2158
|
-
}):
|
|
2159
|
-
declare function SoldOutOverlay():
|
|
2159
|
+
}): React__default.ReactElement;
|
|
2160
|
+
declare function SoldOutOverlay(): React__default.ReactElement;
|
|
2160
2161
|
declare function CardShell({ product, renderLink, disabled, className, children, }: {
|
|
2161
2162
|
product: Product;
|
|
2162
2163
|
renderLink?: CardLayoutProps["renderLink"];
|
|
2163
2164
|
disabled?: boolean;
|
|
2164
2165
|
className?: string;
|
|
2165
|
-
children:
|
|
2166
|
-
}):
|
|
2166
|
+
children: React__default.ReactNode;
|
|
2167
|
+
}): React__default.ReactElement;
|
|
2167
2168
|
|
|
2168
2169
|
interface ServiceCardLayoutProps extends CardLayoutProps {
|
|
2169
2170
|
slots?: AvailableSlot[];
|
|
2170
2171
|
onBook?: (product: Product) => void;
|
|
2171
2172
|
}
|
|
2172
|
-
declare function StandardServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2173
|
+
declare function StandardServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2173
2174
|
|
|
2174
|
-
declare function FoodProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2175
|
+
declare function FoodProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2175
2176
|
|
|
2176
|
-
declare function RetailProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2177
|
+
declare function RetailProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2177
2178
|
|
|
2178
|
-
declare function WholesaleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2179
|
+
declare function WholesaleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2179
2180
|
|
|
2180
|
-
declare function DigitalProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2181
|
+
declare function DigitalProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2181
2182
|
|
|
2182
|
-
declare function BundleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2183
|
+
declare function BundleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2183
2184
|
|
|
2184
|
-
declare function CompositeProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps):
|
|
2185
|
+
declare function CompositeProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React__default.ReactElement;
|
|
2185
2186
|
|
|
2186
|
-
declare function CompactServiceCard({ product, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2187
|
+
declare function CompactServiceCard({ product, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2187
2188
|
|
|
2188
|
-
declare function ScheduleServiceCard({ product, slots, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2189
|
+
declare function ScheduleServiceCard({ product, slots, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2189
2190
|
|
|
2190
|
-
declare function RentalServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2191
|
+
declare function RentalServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2191
2192
|
|
|
2192
|
-
declare function AccommodationCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2193
|
+
declare function AccommodationCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2193
2194
|
|
|
2194
|
-
declare function LeaseServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2195
|
+
declare function LeaseServiceCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2195
2196
|
|
|
2196
|
-
declare function SubscriptionCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps):
|
|
2197
|
+
declare function SubscriptionCard({ product, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React__default.ReactElement;
|
|
2197
2198
|
|
|
2198
2199
|
declare enum CardVariant {
|
|
2199
2200
|
Food = "food",
|
|
@@ -2232,29 +2233,29 @@ interface ProductCardProps {
|
|
|
2232
2233
|
/** Explicit card variant. Auto-detected from product data when omitted. */
|
|
2233
2234
|
variant?: CardVariant;
|
|
2234
2235
|
/** Per-slug card map. Highest priority — maps a product slug to a custom card component. */
|
|
2235
|
-
cards?: Record<string,
|
|
2236
|
+
cards?: Record<string, React__default.ComponentType<CardLayoutProps>>;
|
|
2236
2237
|
/** Link href for page mode. Default: `/menu/${product.slug}` */
|
|
2237
2238
|
href?: string;
|
|
2238
2239
|
/** Custom modal content renderer. Receives the fully-loaded product and a close callback. */
|
|
2239
|
-
renderModal?: (product: ProductWithDetails, onClose: () => void) =>
|
|
2240
|
+
renderModal?: (product: ProductWithDetails, onClose: () => void) => React__default.ReactNode;
|
|
2240
2241
|
/** Custom image renderer (e.g. Next.js Image). */
|
|
2241
2242
|
renderImage?: (props: {
|
|
2242
2243
|
src: string;
|
|
2243
2244
|
alt: string;
|
|
2244
2245
|
className?: string;
|
|
2245
|
-
}) =>
|
|
2246
|
+
}) => React__default.ReactNode;
|
|
2246
2247
|
/** Custom link renderer for page mode (e.g. Next.js Link). */
|
|
2247
2248
|
renderLink?: (props: {
|
|
2248
2249
|
href: string;
|
|
2249
2250
|
className?: string;
|
|
2250
|
-
children:
|
|
2251
|
-
onPointerEnter?:
|
|
2252
|
-
onFocus?:
|
|
2253
|
-
}) =>
|
|
2251
|
+
children: React__default.ReactNode;
|
|
2252
|
+
onPointerEnter?: React__default.PointerEventHandler<Element>;
|
|
2253
|
+
onFocus?: React__default.FocusEventHandler<Element>;
|
|
2254
|
+
}) => React__default.ReactElement;
|
|
2254
2255
|
/** Called when quick-add button is clicked (if the resolved card supports it). */
|
|
2255
2256
|
onQuickAdd?: (product: Product) => void;
|
|
2256
2257
|
/** Replace the entire default card body. */
|
|
2257
|
-
children?:
|
|
2258
|
+
children?: React__default.ReactNode;
|
|
2258
2259
|
/** Image aspect ratio. Default: "4/3". */
|
|
2259
2260
|
aspectRatio?: "square" | "4/3" | "16/10" | "3/4";
|
|
2260
2261
|
prefetch?: PrefetchMode;
|
|
@@ -2267,14 +2268,14 @@ interface ProductCardProps {
|
|
|
2267
2268
|
* - **card** (default): clickable button that opens a Base UI Dialog modal
|
|
2268
2269
|
* - **page**: a plain `<a>` link for SEO-friendly product pages
|
|
2269
2270
|
*/
|
|
2270
|
-
declare function ProductCard({ product, displayMode, variant, cards, href, renderModal, renderImage, renderLink, onQuickAdd, children, aspectRatio, prefetch: prefetchProp, className, classNames, }: ProductCardProps):
|
|
2271
|
+
declare function ProductCard({ product, displayMode, variant, cards, href, renderModal, renderImage, renderLink, onQuickAdd, children, aspectRatio, prefetch: prefetchProp, className, classNames, }: ProductCardProps): React__default.ReactElement;
|
|
2271
2272
|
|
|
2272
2273
|
/**
|
|
2273
2274
|
* Sanitize merchant-authored HTML for safe rendering. Runs identically on the
|
|
2274
2275
|
* Cloudflare Workers edge (SSR) and in the browser — no DOM dependency.
|
|
2275
2276
|
*/
|
|
2276
2277
|
declare function sanitizeRichTextHtml(html: string): string;
|
|
2277
|
-
interface RichTextProps extends Omit<
|
|
2278
|
+
interface RichTextProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "dangerouslySetInnerHTML" | "children"> {
|
|
2278
2279
|
/** Merchant-authored HTML (e.g. a product description). Sanitized before render. */
|
|
2279
2280
|
html?: string | null;
|
|
2280
2281
|
}
|
|
@@ -2286,7 +2287,7 @@ interface RichTextProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "da
|
|
|
2286
2287
|
*
|
|
2287
2288
|
* Returns `null` when there's no renderable content.
|
|
2288
2289
|
*/
|
|
2289
|
-
declare function RichText({ html, className, ...rest }: RichTextProps):
|
|
2290
|
+
declare function RichText({ html, className, ...rest }: RichTextProps): React__default.ReactElement | null;
|
|
2290
2291
|
|
|
2291
2292
|
interface ProductGridClassNames {
|
|
2292
2293
|
root?: string;
|
|
@@ -2304,13 +2305,13 @@ interface ProductGridProps {
|
|
|
2304
2305
|
xl?: number;
|
|
2305
2306
|
};
|
|
2306
2307
|
/** Custom card renderer per product. */
|
|
2307
|
-
renderCard?: (product: Product) =>
|
|
2308
|
+
renderCard?: (product: Product) => React__default.ReactNode;
|
|
2308
2309
|
/** Custom image renderer passed to default ProductCards. */
|
|
2309
2310
|
renderImage?: (props: {
|
|
2310
2311
|
src: string;
|
|
2311
2312
|
alt: string;
|
|
2312
2313
|
className?: string;
|
|
2313
|
-
}) =>
|
|
2314
|
+
}) => React__default.ReactNode;
|
|
2314
2315
|
/** Text shown when `products` is empty. */
|
|
2315
2316
|
emptyMessage?: string;
|
|
2316
2317
|
className?: string;
|
|
@@ -2322,7 +2323,7 @@ interface ProductGridProps {
|
|
|
2322
2323
|
* Injects an inline `<style>` tag with media queries for responsive columns.
|
|
2323
2324
|
* Uses `React.useId()` for a hydration-safe, collision-free CSS selector.
|
|
2324
2325
|
*/
|
|
2325
|
-
declare function ProductGrid({ products, columns, renderCard, renderImage, emptyMessage, className, classNames, }: ProductGridProps):
|
|
2326
|
+
declare function ProductGrid({ products, columns, renderCard, renderImage, emptyMessage, className, classNames, }: ProductGridProps): React__default.ReactElement;
|
|
2326
2327
|
|
|
2327
2328
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2328
2329
|
|
|
@@ -2381,7 +2382,7 @@ interface SearchInputProps {
|
|
|
2381
2382
|
/** Called when a product result is clicked. */
|
|
2382
2383
|
onResultClick?: (product: Product) => void;
|
|
2383
2384
|
/** Custom result item renderer. */
|
|
2384
|
-
renderResult?: (product: Product) =>
|
|
2385
|
+
renderResult?: (product: Product) => React__default.ReactNode;
|
|
2385
2386
|
/** Show inline results dropdown. Default: true. */
|
|
2386
2387
|
showResults?: boolean;
|
|
2387
2388
|
/** Optional category ID to scope search results. */
|
|
@@ -2397,7 +2398,7 @@ interface SearchInputProps {
|
|
|
2397
2398
|
* Wraps `useSearch` with a controlled input and optional inline results list.
|
|
2398
2399
|
* Uses Base UI Field.Root + Input for accessible form semantics.
|
|
2399
2400
|
*/
|
|
2400
|
-
declare function SearchInput({ placeholder, searchOptions, onResultClick, renderResult, showResults, categoryId, categoryName, className, classNames, }: SearchInputProps):
|
|
2401
|
+
declare function SearchInput({ placeholder, searchOptions, onResultClick, renderResult, showResults, categoryId, categoryName, className, classNames, }: SearchInputProps): React__default.ReactElement;
|
|
2401
2402
|
|
|
2402
2403
|
interface CategoryFilterClassNames {
|
|
2403
2404
|
root?: string;
|
|
@@ -2425,7 +2426,7 @@ interface CategoryFilterProps {
|
|
|
2425
2426
|
*
|
|
2426
2427
|
* Built on Base UI Tabs for accessible keyboard navigation and ARIA roles.
|
|
2427
2428
|
*/
|
|
2428
|
-
declare function CategoryFilter({ selectedId, onSelect, allLabel, showCounts, className, classNames, }: CategoryFilterProps):
|
|
2429
|
+
declare function CategoryFilter({ selectedId, onSelect, allLabel, showCounts, className, classNames, }: CategoryFilterProps): React__default.ReactElement;
|
|
2429
2430
|
|
|
2430
2431
|
interface DiscountInputClassNames {
|
|
2431
2432
|
root?: string;
|
|
@@ -2455,7 +2456,7 @@ interface DiscountInputProps {
|
|
|
2455
2456
|
* Wraps `useValidateDiscount` with a Base UI Field + Input and apply button.
|
|
2456
2457
|
* Shows validation result inline (success with amount, or error via Field.Error).
|
|
2457
2458
|
*/
|
|
2458
|
-
declare function DiscountInput({ orderSubtotal, locationId, onApply, onClear, placeholder, className, classNames, }: DiscountInputProps):
|
|
2459
|
+
declare function DiscountInput({ orderSubtotal, locationId, onApply, onClear, placeholder, className, classNames, }: DiscountInputProps): React__default.ReactElement;
|
|
2459
2460
|
|
|
2460
2461
|
interface CategoryGridClassNames {
|
|
2461
2462
|
root?: string;
|
|
@@ -2471,7 +2472,7 @@ interface CategoryGridProps {
|
|
|
2471
2472
|
/** Called when a category card is clicked. */
|
|
2472
2473
|
onSelect?: (category: Category) => void;
|
|
2473
2474
|
/** Custom card renderer. */
|
|
2474
|
-
renderCard?: (category: Category) =>
|
|
2475
|
+
renderCard?: (category: Category) => React__default.ReactNode;
|
|
2475
2476
|
/** Responsive column counts. */
|
|
2476
2477
|
columns?: {
|
|
2477
2478
|
sm?: number;
|
|
@@ -2489,7 +2490,7 @@ interface CategoryGridProps {
|
|
|
2489
2490
|
* Fetches categories via `useCategories` unless overridden.
|
|
2490
2491
|
* Uses `React.useId()` for hydration-safe responsive CSS.
|
|
2491
2492
|
*/
|
|
2492
|
-
declare function CategoryGrid({ categories: categoriesProp, onSelect, renderCard, columns, emptyMessage, className, classNames, }: CategoryGridProps):
|
|
2493
|
+
declare function CategoryGrid({ categories: categoriesProp, onSelect, renderCard, columns, emptyMessage, className, classNames, }: CategoryGridProps): React__default.ReactElement;
|
|
2493
2494
|
|
|
2494
2495
|
interface DealBannerClassNames {
|
|
2495
2496
|
root?: string;
|
|
@@ -2507,7 +2508,7 @@ interface DealBannerProps {
|
|
|
2507
2508
|
/** Called when a deal is clicked. */
|
|
2508
2509
|
onDealClick?: (deal: Deal) => void;
|
|
2509
2510
|
/** Custom deal card renderer. */
|
|
2510
|
-
renderDeal?: (deal: Deal) =>
|
|
2511
|
+
renderDeal?: (deal: Deal) => React__default.ReactNode;
|
|
2511
2512
|
/** Maximum deals to show. Default: all. */
|
|
2512
2513
|
limit?: number;
|
|
2513
2514
|
className?: string;
|
|
@@ -2518,7 +2519,7 @@ interface DealBannerProps {
|
|
|
2518
2519
|
*
|
|
2519
2520
|
* Renders as a horizontal scrollable strip or grid of deal cards.
|
|
2520
2521
|
*/
|
|
2521
|
-
declare function DealBanner({ deals: dealsProp, locationId, onDealClick, renderDeal, limit, className, classNames, }: DealBannerProps):
|
|
2522
|
+
declare function DealBanner({ deals: dealsProp, locationId, onDealClick, renderDeal, limit, className, classNames, }: DealBannerProps): React__default.ReactElement | null;
|
|
2522
2523
|
|
|
2523
2524
|
interface OrderSummaryClassNames {
|
|
2524
2525
|
root?: string;
|
|
@@ -2549,7 +2550,7 @@ interface OrderSummaryProps {
|
|
|
2549
2550
|
/** Poll for status updates. */
|
|
2550
2551
|
poll?: boolean;
|
|
2551
2552
|
/** Custom line item renderer. */
|
|
2552
|
-
renderLineItem?: (item: LineItem) =>
|
|
2553
|
+
renderLineItem?: (item: LineItem) => React__default.ReactNode;
|
|
2553
2554
|
/** Called when the reorder button is clicked. */
|
|
2554
2555
|
onReorder?: (order: Order) => void;
|
|
2555
2556
|
/** Called when the order status changes during polling. */
|
|
@@ -2563,7 +2564,7 @@ interface OrderSummaryProps {
|
|
|
2563
2564
|
* Accepts either a pre-loaded `order` object or an `orderId` to fetch.
|
|
2564
2565
|
* Supports polling for live status updates.
|
|
2565
2566
|
*/
|
|
2566
|
-
declare function OrderSummary({ order: orderProp, orderId, poll, renderLineItem, onReorder, onStatusChange, className, classNames, }: OrderSummaryProps):
|
|
2567
|
+
declare function OrderSummary({ order: orderProp, orderId, poll, renderLineItem, onReorder, onStatusChange, className, classNames, }: OrderSummaryProps): React__default.ReactElement;
|
|
2567
2568
|
|
|
2568
2569
|
interface OrderHistoryClassNames {
|
|
2569
2570
|
root?: string;
|
|
@@ -2586,7 +2587,7 @@ interface OrderHistoryProps {
|
|
|
2586
2587
|
/** Called when an order row is clicked. */
|
|
2587
2588
|
onOrderClick?: (order: Order) => void;
|
|
2588
2589
|
/** Custom order row renderer. */
|
|
2589
|
-
renderOrder?: (order: Order) =>
|
|
2590
|
+
renderOrder?: (order: Order) => React__default.ReactNode;
|
|
2590
2591
|
/** Called when the reorder button is clicked. If provided, a reorder button is rendered. */
|
|
2591
2592
|
onReorder?: (order: Order) => void;
|
|
2592
2593
|
/** Text shown when empty. */
|
|
@@ -2599,7 +2600,7 @@ interface OrderHistoryProps {
|
|
|
2599
2600
|
*
|
|
2600
2601
|
* Fetches via `useOrders` unless pre-loaded orders are passed.
|
|
2601
2602
|
*/
|
|
2602
|
-
declare function OrderHistory({ orders: ordersProp, status, limit, onOrderClick, renderOrder, onReorder, emptyMessage, className, classNames, }: OrderHistoryProps):
|
|
2603
|
+
declare function OrderHistory({ orders: ordersProp, status, limit, onOrderClick, renderOrder, onReorder, emptyMessage, className, classNames, }: OrderHistoryProps): React__default.ReactElement;
|
|
2603
2604
|
|
|
2604
2605
|
interface StoreNavClassNames {
|
|
2605
2606
|
root?: string;
|
|
@@ -2615,7 +2616,7 @@ interface StoreNavProps {
|
|
|
2615
2616
|
/** Store/brand name. */
|
|
2616
2617
|
storeName?: string;
|
|
2617
2618
|
/** Custom brand element (logo, etc.). Overrides storeName. */
|
|
2618
|
-
renderBrand?: () =>
|
|
2619
|
+
renderBrand?: () => React__default.ReactNode;
|
|
2619
2620
|
/** Override categories (skips fetch). */
|
|
2620
2621
|
categories?: Category[];
|
|
2621
2622
|
/** Called when a category link is clicked. */
|
|
@@ -2639,7 +2640,7 @@ interface StoreNavProps {
|
|
|
2639
2640
|
* Fetches categories via `useCategories` and cart count via `useCart`.
|
|
2640
2641
|
* Renders as a semantic `<nav>` element.
|
|
2641
2642
|
*/
|
|
2642
|
-
declare function StoreNav({ storeName, renderBrand, categories: categoriesProp, onCategoryClick, onCartClick, onSearchClick, hideCategories, hideCart, hideSearch, className, classNames, }: StoreNavProps):
|
|
2643
|
+
declare function StoreNav({ storeName, renderBrand, categories: categoriesProp, onCategoryClick, onCartClick, onSearchClick, hideCategories, hideCart, hideSearch, className, classNames, }: StoreNavProps): React__default.ReactElement;
|
|
2643
2644
|
|
|
2644
2645
|
interface SlotPickerClassNames {
|
|
2645
2646
|
root?: string;
|
|
@@ -2709,7 +2710,7 @@ interface SlotPickerProps {
|
|
|
2709
2710
|
className?: string;
|
|
2710
2711
|
classNames?: SlotPickerClassNames;
|
|
2711
2712
|
}
|
|
2712
|
-
declare function SlotPicker({ slots: slotsProp, serviceId, date, participantCount, selectedSlot, onSlotSelect, groupByTimeOfDay, showPrice, lowCapacityThreshold, currency, schedulingMode, durationUnit, durationValue, hideElapsedSlots, minLeadMinutes, emptyMessage, contactPhone, className, classNames, }: SlotPickerProps):
|
|
2713
|
+
declare function SlotPicker({ slots: slotsProp, serviceId, date, participantCount, selectedSlot, onSlotSelect, groupByTimeOfDay, showPrice, lowCapacityThreshold, currency, schedulingMode, durationUnit, durationValue, hideElapsedSlots, minLeadMinutes, emptyMessage, contactPhone, className, classNames, }: SlotPickerProps): React__default.ReactElement;
|
|
2713
2714
|
|
|
2714
2715
|
interface DateSlotPickerClassNames {
|
|
2715
2716
|
root?: string;
|
|
@@ -2754,7 +2755,7 @@ interface DateSlotPickerProps {
|
|
|
2754
2755
|
className?: string;
|
|
2755
2756
|
classNames?: DateSlotPickerClassNames;
|
|
2756
2757
|
}
|
|
2757
|
-
declare function DateSlotPicker({ serviceId, daysToShow, participantCount, units, selectedSlot, onSlotSelect, availability: availabilityProp, showPrice, currency, schedulingMode, durationUnit, durationValue, hideElapsedSlots, minLeadMinutes, contactPhone, className, classNames, }: DateSlotPickerProps):
|
|
2758
|
+
declare function DateSlotPicker({ serviceId, daysToShow, participantCount, units, selectedSlot, onSlotSelect, availability: availabilityProp, showPrice, currency, schedulingMode, durationUnit, durationValue, hideElapsedSlots, minLeadMinutes, contactPhone, className, classNames, }: DateSlotPickerProps): React__default.ReactElement;
|
|
2758
2759
|
|
|
2759
2760
|
interface DatePickerClassNames {
|
|
2760
2761
|
/** Outer wrapper around the trigger. */
|
|
@@ -2866,7 +2867,7 @@ interface StaffPickerProps {
|
|
|
2866
2867
|
className?: string;
|
|
2867
2868
|
classNames?: StaffPickerClassNames;
|
|
2868
2869
|
}
|
|
2869
|
-
declare function StaffPicker({ staff, selectedStaffId, onStaffSelect, showAnyOption, anyLabel, className, classNames, }: StaffPickerProps):
|
|
2870
|
+
declare function StaffPicker({ staff, selectedStaffId, onStaffSelect, showAnyOption, anyLabel, className, classNames, }: StaffPickerProps): React__default.ReactElement;
|
|
2870
2871
|
|
|
2871
2872
|
interface BookingSummaryClassNames {
|
|
2872
2873
|
root?: string;
|
|
@@ -2900,7 +2901,7 @@ interface BookingSummaryProps {
|
|
|
2900
2901
|
*
|
|
2901
2902
|
* Presentational: the host owns the selected slot, staff and quote total.
|
|
2902
2903
|
*/
|
|
2903
|
-
declare function BookingSummary({ slot, total, staffName, durationMinutes, depositType, depositAmount, currency, className, classNames, }: BookingSummaryProps):
|
|
2904
|
+
declare function BookingSummary({ slot, total, staffName, durationMinutes, depositType, depositAmount, currency, className, classNames, }: BookingSummaryProps): React__default.ReactElement;
|
|
2904
2905
|
|
|
2905
2906
|
interface BookingCardClassNames {
|
|
2906
2907
|
root?: string;
|
|
@@ -2921,11 +2922,11 @@ interface BookingCardProps {
|
|
|
2921
2922
|
/** Called when reschedule is clicked. */
|
|
2922
2923
|
onReschedule?: (booking: CustomerBooking) => void;
|
|
2923
2924
|
/** Custom renderer for the booking. */
|
|
2924
|
-
renderBooking?: (booking: CustomerBooking) =>
|
|
2925
|
+
renderBooking?: (booking: CustomerBooking) => React__default.ReactNode;
|
|
2925
2926
|
className?: string;
|
|
2926
2927
|
classNames?: BookingCardClassNames;
|
|
2927
2928
|
}
|
|
2928
|
-
declare function BookingCard({ booking, onCancel, onReschedule, renderBooking, className, classNames, }: BookingCardProps):
|
|
2929
|
+
declare function BookingCard({ booking, onCancel, onReschedule, renderBooking, className, classNames, }: BookingCardProps): React__default.ReactElement;
|
|
2929
2930
|
|
|
2930
2931
|
interface BookingListClassNames {
|
|
2931
2932
|
root?: string;
|
|
@@ -2945,13 +2946,13 @@ interface BookingListProps {
|
|
|
2945
2946
|
/** Called when a booking is clicked. */
|
|
2946
2947
|
onBookingClick?: (booking: CustomerBooking) => void;
|
|
2947
2948
|
/** Custom booking renderer. */
|
|
2948
|
-
renderBooking?: (booking: CustomerBooking) =>
|
|
2949
|
+
renderBooking?: (booking: CustomerBooking) => React__default.ReactNode;
|
|
2949
2950
|
/** Text shown when empty. */
|
|
2950
2951
|
emptyMessage?: string;
|
|
2951
2952
|
className?: string;
|
|
2952
2953
|
classNames?: BookingListClassNames;
|
|
2953
2954
|
}
|
|
2954
|
-
declare function BookingList({ bookings: bookingsProp, filter, onCancel, onReschedule, onBookingClick, renderBooking, emptyMessage, className, classNames, }: BookingListProps):
|
|
2955
|
+
declare function BookingList({ bookings: bookingsProp, filter, onCancel, onReschedule, onBookingClick, renderBooking, emptyMessage, className, classNames, }: BookingListProps): React__default.ReactElement;
|
|
2955
2956
|
|
|
2956
2957
|
interface Resource {
|
|
2957
2958
|
id: string;
|
|
@@ -2989,12 +2990,12 @@ interface ResourcePickerProps {
|
|
|
2989
2990
|
src: string;
|
|
2990
2991
|
alt: string;
|
|
2991
2992
|
className?: string;
|
|
2992
|
-
}) =>
|
|
2993
|
+
}) => React__default.ReactNode;
|
|
2993
2994
|
className?: string;
|
|
2994
2995
|
classNames?: ResourcePickerClassNames;
|
|
2995
2996
|
}
|
|
2996
2997
|
declare function roomToResource(room: Room): Resource;
|
|
2997
|
-
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps):
|
|
2998
|
+
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps): React__default.ReactElement;
|
|
2998
2999
|
|
|
2999
3000
|
interface BookingPageClassNames {
|
|
3000
3001
|
root?: string;
|
|
@@ -3039,7 +3040,7 @@ interface BookingPageProps {
|
|
|
3039
3040
|
className?: string;
|
|
3040
3041
|
classNames?: BookingPageClassNames;
|
|
3041
3042
|
}
|
|
3042
|
-
declare function BookingPage({ service, product, staff, resources, participantCount, title, onBooked, onBack, existingBooking, onRescheduled, showPrice, className, classNames, }: BookingPageProps):
|
|
3043
|
+
declare function BookingPage({ service, product, staff, resources, participantCount, title, onBooked, onBack, existingBooking, onRescheduled, showPrice, className, classNames, }: BookingPageProps): React__default.ReactElement;
|
|
3043
3044
|
|
|
3044
3045
|
interface BookingsPageClassNames {
|
|
3045
3046
|
root?: string;
|
|
@@ -3065,11 +3066,11 @@ interface BookingsPageProps {
|
|
|
3065
3066
|
/** Show filter tabs. Default: true. */
|
|
3066
3067
|
showFilters?: boolean;
|
|
3067
3068
|
/** Custom booking renderer. */
|
|
3068
|
-
renderBooking?: (booking: CustomerBooking) =>
|
|
3069
|
+
renderBooking?: (booking: CustomerBooking) => React__default.ReactNode;
|
|
3069
3070
|
className?: string;
|
|
3070
3071
|
classNames?: BookingsPageClassNames;
|
|
3071
3072
|
}
|
|
3072
|
-
declare function BookingsPage({ title, bookings: bookingsProp, onBookingNavigate, onCancel, onReschedule, showFilters, renderBooking, className, classNames, }: BookingsPageProps):
|
|
3073
|
+
declare function BookingsPage({ title, bookings: bookingsProp, onBookingNavigate, onCancel, onReschedule, showFilters, renderBooking, className, classNames, }: BookingsPageProps): React__default.ReactElement;
|
|
3073
3074
|
|
|
3074
3075
|
interface CatalogueLayoutProps {
|
|
3075
3076
|
products: Product[];
|
|
@@ -3130,7 +3131,7 @@ interface CataloguePageProps {
|
|
|
3130
3131
|
/** Explicit template. */
|
|
3131
3132
|
template?: CatalogueTemplate;
|
|
3132
3133
|
/** Layout map for overrides. */
|
|
3133
|
-
layouts?: Partial<Record<CatalogueTemplate | string,
|
|
3134
|
+
layouts?: Partial<Record<CatalogueTemplate | string, React__default.ComponentType<CatalogueLayoutProps>>>;
|
|
3134
3135
|
/** Page title. */
|
|
3135
3136
|
title?: string;
|
|
3136
3137
|
/** Pre-fetched products for SSR. */
|
|
@@ -3149,19 +3150,19 @@ interface CataloguePageProps {
|
|
|
3149
3150
|
order: string;
|
|
3150
3151
|
};
|
|
3151
3152
|
/** Custom card renderer. */
|
|
3152
|
-
renderCard?: (product: Product) =>
|
|
3153
|
+
renderCard?: (product: Product) => React__default.ReactNode;
|
|
3153
3154
|
/** Custom image renderer. */
|
|
3154
3155
|
renderImage?: (props: {
|
|
3155
3156
|
src: string;
|
|
3156
3157
|
alt: string;
|
|
3157
3158
|
className?: string;
|
|
3158
|
-
}) =>
|
|
3159
|
+
}) => React__default.ReactNode;
|
|
3159
3160
|
/** Custom link renderer. */
|
|
3160
3161
|
renderLink?: (props: {
|
|
3161
3162
|
href: string;
|
|
3162
3163
|
className?: string;
|
|
3163
|
-
children:
|
|
3164
|
-
}) =>
|
|
3164
|
+
children: React__default.ReactNode;
|
|
3165
|
+
}) => React__default.ReactElement;
|
|
3165
3166
|
/** Quick-add handler. */
|
|
3166
3167
|
onQuickAdd?: (product: Product) => void;
|
|
3167
3168
|
/** Product click handler. */
|
|
@@ -3169,11 +3170,11 @@ interface CataloguePageProps {
|
|
|
3169
3170
|
className?: string;
|
|
3170
3171
|
classNames?: CataloguePageClassNames;
|
|
3171
3172
|
}
|
|
3172
|
-
declare function CataloguePage({ template, layouts, title, products: productsProp, categories: categoriesProp, facets, availableTags, pageSize, defaultSort, renderCard, renderImage, renderLink, onQuickAdd, onProductClick, className, classNames, }: CataloguePageProps):
|
|
3173
|
+
declare function CataloguePage({ template, layouts, title, products: productsProp, categories: categoriesProp, facets, availableTags, pageSize, defaultSort, renderCard, renderImage, renderLink, onQuickAdd, onProductClick, className, classNames, }: CataloguePageProps): React__default.ReactElement;
|
|
3173
3174
|
|
|
3174
|
-
declare function DefaultCatalogueLayout({ products, categories, facets, isLoading, selectedCategory, onCategoryChange, searchQuery, onSearchChange, sortBy, sortOrder, onSortChange, inStockOnly, onInStockChange, selectedTags, availableTags, onTagToggle, minPrice, maxPrice, onPriceRangeChange, page, totalPages, onPageChange, renderCard, renderImage, renderLink, onQuickAdd, title, className, }: CatalogueLayoutProps):
|
|
3175
|
+
declare function DefaultCatalogueLayout({ products, categories, facets, isLoading, selectedCategory, onCategoryChange, searchQuery, onSearchChange, sortBy, sortOrder, onSortChange, inStockOnly, onInStockChange, selectedTags, availableTags, onTagToggle, minPrice, maxPrice, onPriceRangeChange, page, totalPages, onPageChange, renderCard, renderImage, renderLink, onQuickAdd, title, className, }: CatalogueLayoutProps): React__default.ReactElement;
|
|
3175
3176
|
|
|
3176
|
-
declare function CompactCatalogueLayout({ products, categories, isLoading, selectedCategory, onCategoryChange, searchQuery, onSearchChange, renderCard, renderImage, renderLink, onQuickAdd, title, className, }: CatalogueLayoutProps):
|
|
3177
|
+
declare function CompactCatalogueLayout({ products, categories, isLoading, selectedCategory, onCategoryChange, searchQuery, onSearchChange, renderCard, renderImage, renderLink, onQuickAdd, title, className, }: CatalogueLayoutProps): React__default.ReactElement;
|
|
3177
3178
|
|
|
3178
3179
|
interface ProductLayoutProps {
|
|
3179
3180
|
product: ProductWithDetails;
|
|
@@ -3182,45 +3183,45 @@ interface ProductLayoutProps {
|
|
|
3182
3183
|
src: string;
|
|
3183
3184
|
alt: string;
|
|
3184
3185
|
className?: string;
|
|
3185
|
-
}) =>
|
|
3186
|
-
renderBreadcrumb?: (product: ProductWithDetails) =>
|
|
3186
|
+
}) => React__default.ReactNode;
|
|
3187
|
+
renderBreadcrumb?: (product: ProductWithDetails) => React__default.ReactNode;
|
|
3187
3188
|
relatedProducts?: Product[];
|
|
3188
3189
|
showRelated?: boolean;
|
|
3189
3190
|
className?: string;
|
|
3190
3191
|
}
|
|
3191
3192
|
declare function TwoColumnGrid({ left, right, className, }: {
|
|
3192
|
-
left:
|
|
3193
|
-
right:
|
|
3193
|
+
left: React__default.ReactNode;
|
|
3194
|
+
right: React__default.ReactNode;
|
|
3194
3195
|
className?: string;
|
|
3195
|
-
}):
|
|
3196
|
+
}): React__default.ReactElement;
|
|
3196
3197
|
declare function MetadataStringList({ items, label, icon, className, }: {
|
|
3197
3198
|
items: string[];
|
|
3198
3199
|
label: string;
|
|
3199
|
-
icon?:
|
|
3200
|
+
icon?: React__default.ReactNode;
|
|
3200
3201
|
className?: string;
|
|
3201
|
-
}):
|
|
3202
|
+
}): React__default.ReactElement | null;
|
|
3202
3203
|
declare function CustomAttributesTable({ attributes, className, }: {
|
|
3203
3204
|
attributes: CustomAttributeValue[];
|
|
3204
3205
|
className?: string;
|
|
3205
|
-
}):
|
|
3206
|
+
}): React__default.ReactElement | null;
|
|
3206
3207
|
declare function PropertiesTable({ properties, className, }: {
|
|
3207
3208
|
properties: ProductProperty[];
|
|
3208
3209
|
className?: string;
|
|
3209
|
-
}):
|
|
3210
|
+
}): React__default.ReactElement | null;
|
|
3210
3211
|
declare function TagPills({ tags, className, }: {
|
|
3211
3212
|
tags: string[];
|
|
3212
3213
|
className?: string;
|
|
3213
|
-
}):
|
|
3214
|
+
}): React__default.ReactElement | null;
|
|
3214
3215
|
declare function InventoryBadge({ product, className, }: {
|
|
3215
3216
|
product: Product;
|
|
3216
3217
|
className?: string;
|
|
3217
|
-
}):
|
|
3218
|
+
}): React__default.ReactElement | null;
|
|
3218
3219
|
declare function RelatedProductsSection({ products, title, renderImage, className, }: {
|
|
3219
3220
|
products: Product[];
|
|
3220
3221
|
title?: string;
|
|
3221
3222
|
renderImage?: ProductLayoutProps["renderImage"];
|
|
3222
3223
|
className?: string;
|
|
3223
|
-
}):
|
|
3224
|
+
}): React__default.ReactElement | null;
|
|
3224
3225
|
|
|
3225
3226
|
declare enum ProductTemplate {
|
|
3226
3227
|
Default = "default",
|
|
@@ -3242,9 +3243,9 @@ interface ProductPageProps {
|
|
|
3242
3243
|
/** Pre-fetched product for SSR. Skips client-side fetch when provided. */
|
|
3243
3244
|
product?: ProductWithDetails;
|
|
3244
3245
|
/** Per-slug page map. Highest priority — maps a product slug to a custom component. */
|
|
3245
|
-
pages?: Record<string,
|
|
3246
|
+
pages?: Record<string, React__default.ComponentType<ProductLayoutProps>>;
|
|
3246
3247
|
/** Per-type template map. Overrides built-in layouts for specific template keys. */
|
|
3247
|
-
templates?: Partial<Record<ProductTemplate | string,
|
|
3248
|
+
templates?: Partial<Record<ProductTemplate | string, React__default.ComponentType<ProductLayoutProps>>>;
|
|
3248
3249
|
/** Override add-to-cart behavior. */
|
|
3249
3250
|
onAddToCart?: (product: ProductWithDetails, quantity: number, options: AddToCartOptions) => void | Promise<void>;
|
|
3250
3251
|
/** Custom image renderer (e.g. Next.js Image). */
|
|
@@ -3252,9 +3253,9 @@ interface ProductPageProps {
|
|
|
3252
3253
|
src: string;
|
|
3253
3254
|
alt: string;
|
|
3254
3255
|
className?: string;
|
|
3255
|
-
}) =>
|
|
3256
|
+
}) => React__default.ReactNode;
|
|
3256
3257
|
/** Breadcrumb renderer. Receives the product for context. */
|
|
3257
|
-
renderBreadcrumb?: (product: ProductWithDetails) =>
|
|
3258
|
+
renderBreadcrumb?: (product: ProductWithDetails) => React__default.ReactNode;
|
|
3258
3259
|
/** Pre-fetched related products. */
|
|
3259
3260
|
relatedProducts?: Product[];
|
|
3260
3261
|
/** Show related products section. Default: true. */
|
|
@@ -3262,21 +3263,21 @@ interface ProductPageProps {
|
|
|
3262
3263
|
className?: string;
|
|
3263
3264
|
classNames?: ProductPageClassNames;
|
|
3264
3265
|
}
|
|
3265
|
-
declare function ProductPage({ productId, product: productProp, pages, templates, onAddToCart, renderImage, renderBreadcrumb, relatedProducts, showRelated, className, classNames, }: ProductPageProps):
|
|
3266
|
+
declare function ProductPage({ productId, product: productProp, pages, templates, onAddToCart, renderImage, renderBreadcrumb, relatedProducts, showRelated, className, classNames, }: ProductPageProps): React__default.ReactElement;
|
|
3266
3267
|
|
|
3267
|
-
declare function DefaultProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3268
|
+
declare function DefaultProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3268
3269
|
|
|
3269
|
-
declare function FoodProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3270
|
+
declare function FoodProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3270
3271
|
|
|
3271
|
-
declare function WholesaleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3272
|
+
declare function WholesaleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3272
3273
|
|
|
3273
|
-
declare function ServiceProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3274
|
+
declare function ServiceProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3274
3275
|
|
|
3275
|
-
declare function DigitalProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3276
|
+
declare function DigitalProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3276
3277
|
|
|
3277
|
-
declare function BundleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3278
|
+
declare function BundleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3278
3279
|
|
|
3279
|
-
declare function CompositeProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps):
|
|
3280
|
+
declare function CompositeProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React__default.ReactElement;
|
|
3280
3281
|
|
|
3281
3282
|
interface CartLayoutProps {
|
|
3282
3283
|
/** Cart state from useCart hook. */
|
|
@@ -3307,7 +3308,7 @@ interface CartPageProps {
|
|
|
3307
3308
|
/** Explicit template. */
|
|
3308
3309
|
template?: CartTemplate;
|
|
3309
3310
|
/** Layout map for overrides. */
|
|
3310
|
-
layouts?: Partial<Record<CartTemplate | string,
|
|
3311
|
+
layouts?: Partial<Record<CartTemplate | string, React__default.ComponentType<CartLayoutProps>>>;
|
|
3311
3312
|
/** Page title. */
|
|
3312
3313
|
title?: string;
|
|
3313
3314
|
/** Called when checkout is initiated. */
|
|
@@ -3325,11 +3326,11 @@ interface CartPageProps {
|
|
|
3325
3326
|
className?: string;
|
|
3326
3327
|
classNames?: CartPageClassNames;
|
|
3327
3328
|
}
|
|
3328
|
-
declare function CartPage({ template, layouts, onCheckout, onContinueShopping, onDiscountApply, onDiscountClear, showDiscount, checkoutLabel, className, classNames, }: CartPageProps):
|
|
3329
|
+
declare function CartPage({ template, layouts, onCheckout, onContinueShopping, onDiscountApply, onDiscountClear, showDiscount, checkoutLabel, className, classNames, }: CartPageProps): React__default.ReactElement;
|
|
3329
3330
|
|
|
3330
|
-
declare function DefaultCartLayout({ cart, onCheckout, onContinueShopping, onDiscountApply, onDiscountClear, showDiscount, checkoutLabel, className, }: CartLayoutProps):
|
|
3331
|
+
declare function DefaultCartLayout({ cart, onCheckout, onContinueShopping, onDiscountApply, onDiscountClear, showDiscount, checkoutLabel, className, }: CartLayoutProps): React__default.ReactElement;
|
|
3331
3332
|
|
|
3332
|
-
declare function CompactCartLayout({ cart, onCheckout, onContinueShopping, checkoutLabel, className, }: CartLayoutProps):
|
|
3333
|
+
declare function CompactCartLayout({ cart, onCheckout, onContinueShopping, checkoutLabel, className, }: CartLayoutProps): React__default.ReactElement;
|
|
3333
3334
|
|
|
3334
3335
|
interface CartDrawerCtx {
|
|
3335
3336
|
isOpen: boolean;
|
|
@@ -3339,11 +3340,11 @@ interface CartDrawerCtx {
|
|
|
3339
3340
|
}
|
|
3340
3341
|
declare function useCartDrawer(): CartDrawerCtx;
|
|
3341
3342
|
interface ProviderProps {
|
|
3342
|
-
children:
|
|
3343
|
+
children: React__default.ReactNode;
|
|
3343
3344
|
/** Auto-open the drawer whenever the cart's pendingOpCount goes from 0 → >0. Default: true. */
|
|
3344
3345
|
openOnAdd?: boolean;
|
|
3345
3346
|
}
|
|
3346
|
-
declare function CartDrawerProvider({ children, openOnAdd }: ProviderProps):
|
|
3347
|
+
declare function CartDrawerProvider({ children, openOnAdd }: ProviderProps): React__default.ReactElement;
|
|
3347
3348
|
interface CartDrawerProps {
|
|
3348
3349
|
/** Called when "Checkout" is clicked. Drawer auto-closes first. */
|
|
3349
3350
|
onCheckout?: () => void;
|
|
@@ -3358,7 +3359,7 @@ interface CartDrawerProps {
|
|
|
3358
3359
|
/** Custom class on the panel. */
|
|
3359
3360
|
className?: string;
|
|
3360
3361
|
}
|
|
3361
|
-
declare function CartDrawer({ onCheckout, onContinueShopping, onShop, title, freeShippingThreshold, className, }: CartDrawerProps):
|
|
3362
|
+
declare function CartDrawer({ onCheckout, onContinueShopping, onShop, title, freeShippingThreshold, className, }: CartDrawerProps): React__default.ReactElement;
|
|
3362
3363
|
|
|
3363
3364
|
interface CheckoutPageClassNames {
|
|
3364
3365
|
root?: string;
|
|
@@ -3388,22 +3389,22 @@ interface CheckoutPageProps {
|
|
|
3388
3389
|
* renders a page header, and delegates all checkout logic
|
|
3389
3390
|
* to CimplifyCheckout.
|
|
3390
3391
|
*/
|
|
3391
|
-
declare function CheckoutPage({ title, onComplete, onError, checkoutProps, className, classNames, }: CheckoutPageProps):
|
|
3392
|
+
declare function CheckoutPage({ title, onComplete, onError, checkoutProps, className, classNames, }: CheckoutPageProps): React__default.ReactElement;
|
|
3392
3393
|
|
|
3393
3394
|
interface CollectionLayoutProps {
|
|
3394
3395
|
collection: Collection;
|
|
3395
3396
|
products: Product[];
|
|
3396
|
-
renderCard?: (product: Product) =>
|
|
3397
|
+
renderCard?: (product: Product) => React__default.ReactNode;
|
|
3397
3398
|
renderImage?: (props: {
|
|
3398
3399
|
src: string;
|
|
3399
3400
|
alt: string;
|
|
3400
3401
|
className?: string;
|
|
3401
|
-
}) =>
|
|
3402
|
+
}) => React__default.ReactNode;
|
|
3402
3403
|
renderLink?: (props: {
|
|
3403
3404
|
href: string;
|
|
3404
3405
|
className?: string;
|
|
3405
|
-
children:
|
|
3406
|
-
}) =>
|
|
3406
|
+
children: React__default.ReactNode;
|
|
3407
|
+
}) => React__default.ReactElement;
|
|
3407
3408
|
onQuickAdd?: (product: Product) => void;
|
|
3408
3409
|
className?: string;
|
|
3409
3410
|
}
|
|
@@ -3425,35 +3426,35 @@ interface CollectionPageProps {
|
|
|
3425
3426
|
/** Pre-fetched products for SSR. */
|
|
3426
3427
|
products?: Product[];
|
|
3427
3428
|
/** Per-slug page map. Highest priority — maps a collection slug to a custom layout. */
|
|
3428
|
-
pages?: Record<string,
|
|
3429
|
+
pages?: Record<string, React__default.ComponentType<CollectionLayoutProps>>;
|
|
3429
3430
|
/** Per-type template map. Overrides built-in layouts. */
|
|
3430
|
-
templates?: Partial<Record<CollectionTemplate | string,
|
|
3431
|
+
templates?: Partial<Record<CollectionTemplate | string, React__default.ComponentType<CollectionLayoutProps>>>;
|
|
3431
3432
|
/** Custom card renderer. */
|
|
3432
|
-
renderCard?: (product: Product) =>
|
|
3433
|
+
renderCard?: (product: Product) => React__default.ReactNode;
|
|
3433
3434
|
/** Custom image renderer. */
|
|
3434
3435
|
renderImage?: (props: {
|
|
3435
3436
|
src: string;
|
|
3436
3437
|
alt: string;
|
|
3437
3438
|
className?: string;
|
|
3438
|
-
}) =>
|
|
3439
|
+
}) => React__default.ReactNode;
|
|
3439
3440
|
/** Custom link renderer. */
|
|
3440
3441
|
renderLink?: (props: {
|
|
3441
3442
|
href: string;
|
|
3442
3443
|
className?: string;
|
|
3443
|
-
children:
|
|
3444
|
-
}) =>
|
|
3444
|
+
children: React__default.ReactNode;
|
|
3445
|
+
}) => React__default.ReactElement;
|
|
3445
3446
|
/** Quick add handler for cards. */
|
|
3446
3447
|
onQuickAdd?: (product: Product) => void;
|
|
3447
3448
|
className?: string;
|
|
3448
3449
|
classNames?: CollectionPageClassNames;
|
|
3449
3450
|
}
|
|
3450
|
-
declare function CollectionPage({ collectionId, collection: collectionProp, products: productsProp, pages, templates, renderCard, renderImage, renderLink, onQuickAdd, className, classNames, }: CollectionPageProps):
|
|
3451
|
+
declare function CollectionPage({ collectionId, collection: collectionProp, products: productsProp, pages, templates, renderCard, renderImage, renderLink, onQuickAdd, className, classNames, }: CollectionPageProps): React__default.ReactElement;
|
|
3451
3452
|
|
|
3452
|
-
declare function DefaultCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps):
|
|
3453
|
+
declare function DefaultCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps): React__default.ReactElement;
|
|
3453
3454
|
|
|
3454
|
-
declare function FeaturedCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps):
|
|
3455
|
+
declare function FeaturedCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps): React__default.ReactElement;
|
|
3455
3456
|
|
|
3456
|
-
declare function CatalogueCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps):
|
|
3457
|
+
declare function CatalogueCollectionLayout({ collection, products, renderCard, renderImage, renderLink, onQuickAdd, className, }: CollectionLayoutProps): React__default.ReactElement;
|
|
3457
3458
|
|
|
3458
3459
|
interface OrderDetailPageClassNames {
|
|
3459
3460
|
root?: string;
|
|
@@ -3472,7 +3473,7 @@ interface OrderDetailPageProps {
|
|
|
3472
3473
|
/** Called when back button is clicked. */
|
|
3473
3474
|
onBack?: () => void;
|
|
3474
3475
|
/** Custom line item renderer. */
|
|
3475
|
-
renderLineItem?: (item: LineItem) =>
|
|
3476
|
+
renderLineItem?: (item: LineItem) => React__default.ReactNode;
|
|
3476
3477
|
/** Called when the reorder button is clicked. */
|
|
3477
3478
|
onReorder?: (order: Order) => void;
|
|
3478
3479
|
/** Called when the order status changes during polling. */
|
|
@@ -3487,7 +3488,7 @@ interface OrderDetailPageProps {
|
|
|
3487
3488
|
*
|
|
3488
3489
|
* SSR-friendly: pass `order` prop for server rendering.
|
|
3489
3490
|
*/
|
|
3490
|
-
declare function OrderDetailPage({ orderId, order, poll, onBack, renderLineItem, onReorder, onStatusChange, backLabel, className, classNames, }: OrderDetailPageProps):
|
|
3491
|
+
declare function OrderDetailPage({ orderId, order, poll, onBack, renderLineItem, onReorder, onStatusChange, backLabel, className, classNames, }: OrderDetailPageProps): React__default.ReactElement;
|
|
3491
3492
|
|
|
3492
3493
|
interface OrderHistoryPageClassNames {
|
|
3493
3494
|
root?: string;
|
|
@@ -3513,7 +3514,7 @@ interface OrderHistoryPageProps {
|
|
|
3513
3514
|
/** Show status filter tabs. Default: true. */
|
|
3514
3515
|
showFilters?: boolean;
|
|
3515
3516
|
/** Custom order row renderer. */
|
|
3516
|
-
renderOrder?: (order: Order) =>
|
|
3517
|
+
renderOrder?: (order: Order) => React__default.ReactNode;
|
|
3517
3518
|
className?: string;
|
|
3518
3519
|
classNames?: OrderHistoryPageClassNames;
|
|
3519
3520
|
}
|
|
@@ -3523,7 +3524,7 @@ interface OrderHistoryPageProps {
|
|
|
3523
3524
|
* SSR-friendly: pass `orders` prop for server rendering.
|
|
3524
3525
|
* Supports both inline detail view and external navigation via `onOrderNavigate`.
|
|
3525
3526
|
*/
|
|
3526
|
-
declare function OrderHistoryPage({ title, orders: ordersProp, limit, onOrderNavigate, onReorder, showFilters, renderOrder, className, classNames, }: OrderHistoryPageProps):
|
|
3527
|
+
declare function OrderHistoryPage({ title, orders: ordersProp, limit, onOrderNavigate, onReorder, showFilters, renderOrder, className, classNames, }: OrderHistoryPageProps): React__default.ReactElement;
|
|
3527
3528
|
|
|
3528
3529
|
interface SearchLayoutProps {
|
|
3529
3530
|
/** Search state from useSearch hook. */
|
|
@@ -3580,7 +3581,7 @@ interface SearchPageProps {
|
|
|
3580
3581
|
/** Explicit search template. */
|
|
3581
3582
|
template?: SearchTemplate;
|
|
3582
3583
|
/** Layout map for overrides. AI or developer can provide custom layouts keyed by template name. */
|
|
3583
|
-
layouts?: Partial<Record<SearchTemplate | string,
|
|
3584
|
+
layouts?: Partial<Record<SearchTemplate | string, React__default.ComponentType<SearchLayoutProps>>>;
|
|
3584
3585
|
/** Pre-fetched categories for filters. */
|
|
3585
3586
|
categories?: Category[];
|
|
3586
3587
|
/** Pre-fetched property facets for sidebar. */
|
|
@@ -3590,29 +3591,29 @@ interface SearchPageProps {
|
|
|
3590
3591
|
/** Placeholder text for search input. */
|
|
3591
3592
|
placeholder?: string;
|
|
3592
3593
|
/** Custom card renderer. */
|
|
3593
|
-
renderCard?: (product: Product) =>
|
|
3594
|
+
renderCard?: (product: Product) => React__default.ReactNode;
|
|
3594
3595
|
/** Custom image renderer. */
|
|
3595
3596
|
renderImage?: (props: {
|
|
3596
3597
|
src: string;
|
|
3597
3598
|
alt: string;
|
|
3598
3599
|
className?: string;
|
|
3599
|
-
}) =>
|
|
3600
|
+
}) => React__default.ReactNode;
|
|
3600
3601
|
/** Custom link renderer. */
|
|
3601
3602
|
renderLink?: (props: {
|
|
3602
3603
|
href: string;
|
|
3603
3604
|
className?: string;
|
|
3604
|
-
children:
|
|
3605
|
-
}) =>
|
|
3605
|
+
children: React__default.ReactNode;
|
|
3606
|
+
}) => React__default.ReactElement;
|
|
3606
3607
|
/** Quick-add handler. */
|
|
3607
3608
|
onQuickAdd?: (product: Product) => void;
|
|
3608
3609
|
className?: string;
|
|
3609
3610
|
classNames?: SearchPageClassNames;
|
|
3610
3611
|
}
|
|
3611
|
-
declare function SearchPage({ template, layouts, categories, facets, searchOptions, placeholder, renderCard, renderImage, renderLink, onQuickAdd, className, classNames, }: SearchPageProps):
|
|
3612
|
+
declare function SearchPage({ template, layouts, categories, facets, searchOptions, placeholder, renderCard, renderImage, renderLink, onQuickAdd, className, classNames, }: SearchPageProps): React__default.ReactElement;
|
|
3612
3613
|
|
|
3613
|
-
declare function DefaultSearchLayout({ search, facets, categories, activeCategory, onCategoryChange, inStockOnly, onInStockChange, sortBy, onSortChange, renderCard, renderImage, renderLink, onQuickAdd, placeholder, className, }: SearchLayoutProps):
|
|
3614
|
+
declare function DefaultSearchLayout({ search, facets, categories, activeCategory, onCategoryChange, inStockOnly, onInStockChange, sortBy, onSortChange, renderCard, renderImage, renderLink, onQuickAdd, placeholder, className, }: SearchLayoutProps): React__default.ReactElement;
|
|
3614
3615
|
|
|
3615
|
-
declare function CompactSearchLayout({ search, categories, activeCategory, onCategoryChange, renderCard, renderImage, renderLink, onQuickAdd, placeholder, className, }: SearchLayoutProps):
|
|
3616
|
+
declare function CompactSearchLayout({ search, categories, activeCategory, onCategoryChange, renderCard, renderImage, renderLink, onQuickAdd, placeholder, className, }: SearchLayoutProps): React__default.ReactElement;
|
|
3616
3617
|
|
|
3617
3618
|
interface DealsPageClassNames {
|
|
3618
3619
|
root?: string;
|
|
@@ -3640,7 +3641,7 @@ interface DealsPageProps {
|
|
|
3640
3641
|
src: string;
|
|
3641
3642
|
alt: string;
|
|
3642
3643
|
className?: string;
|
|
3643
|
-
}) =>
|
|
3644
|
+
}) => React__default.ReactNode;
|
|
3644
3645
|
/** Grid column config. */
|
|
3645
3646
|
columns?: {
|
|
3646
3647
|
sm?: number;
|
|
@@ -3656,7 +3657,7 @@ interface DealsPageProps {
|
|
|
3656
3657
|
*
|
|
3657
3658
|
* SSR-friendly: pass `deals` and `productsOnSale` props for server rendering.
|
|
3658
3659
|
*/
|
|
3659
|
-
declare function DealsPage({ title, deals: dealsProp, productsOnSale: productsOnSaleProp, products: productsProp, locationId, renderImage, columns, className, classNames, }: DealsPageProps):
|
|
3660
|
+
declare function DealsPage({ title, deals: dealsProp, productsOnSale: productsOnSaleProp, products: productsProp, locationId, renderImage, columns, className, classNames, }: DealsPageProps): React__default.ReactElement;
|
|
3660
3661
|
|
|
3661
3662
|
interface LocationPickerClassNames {
|
|
3662
3663
|
root?: string;
|
|
@@ -3673,7 +3674,7 @@ interface LocationPickerProps {
|
|
|
3673
3674
|
/** Called when a location is selected. */
|
|
3674
3675
|
onLocationChange?: (location: Location) => void;
|
|
3675
3676
|
/** Custom location renderer. */
|
|
3676
|
-
renderLocation?: (location: Location, isActive: boolean) =>
|
|
3677
|
+
renderLocation?: (location: Location, isActive: boolean) => React__default.ReactNode;
|
|
3677
3678
|
/** Text shown when no locations are available. */
|
|
3678
3679
|
emptyMessage?: string;
|
|
3679
3680
|
className?: string;
|
|
@@ -3685,7 +3686,7 @@ interface LocationPickerProps {
|
|
|
3685
3686
|
* Uses `useLocations` to fetch locations unless overridden via props.
|
|
3686
3687
|
* Returns `null` when there is only one location (no picker needed).
|
|
3687
3688
|
*/
|
|
3688
|
-
declare function LocationPicker({ locations: locationsProp, currentLocation: currentLocationProp, onLocationChange, renderLocation, emptyMessage, className, classNames, }: LocationPickerProps):
|
|
3689
|
+
declare function LocationPicker({ locations: locationsProp, currentLocation: currentLocationProp, onLocationChange, renderLocation, emptyMessage, className, classNames, }: LocationPickerProps): React__default.ReactElement | null;
|
|
3689
3690
|
|
|
3690
3691
|
interface RecommendationCarouselClassNames {
|
|
3691
3692
|
root?: string;
|
|
@@ -3704,7 +3705,7 @@ interface RecommendationCarouselProps {
|
|
|
3704
3705
|
/** Called when a product recommendation is clicked. */
|
|
3705
3706
|
onProductClick?: (recommendation: ActivityRecommendation) => void;
|
|
3706
3707
|
/** Custom product card renderer. */
|
|
3707
|
-
renderProduct?: (recommendation: ActivityRecommendation) =>
|
|
3708
|
+
renderProduct?: (recommendation: ActivityRecommendation) => React__default.ReactNode;
|
|
3708
3709
|
/** Text shown when no recommendations are available. */
|
|
3709
3710
|
emptyMessage?: string;
|
|
3710
3711
|
className?: string;
|
|
@@ -3716,7 +3717,7 @@ interface RecommendationCarouselProps {
|
|
|
3716
3717
|
* Renders a horizontal scrollable list of product cards with reason labels.
|
|
3717
3718
|
* Returns `null` when there are no recommendations.
|
|
3718
3719
|
*/
|
|
3719
|
-
declare function RecommendationCarousel({ recommendations: recommendationsProp, locationId, limit, onProductClick, renderProduct, emptyMessage, className, classNames, }: RecommendationCarouselProps):
|
|
3720
|
+
declare function RecommendationCarousel({ recommendations: recommendationsProp, locationId, limit, onProductClick, renderProduct, emptyMessage, className, classNames, }: RecommendationCarouselProps): React__default.ReactElement | null;
|
|
3720
3721
|
|
|
3721
3722
|
interface SessionMessageBannerClassNames {
|
|
3722
3723
|
root?: string;
|
|
@@ -3731,7 +3732,7 @@ interface SessionMessageBannerProps {
|
|
|
3731
3732
|
/** Called when a message is dismissed. Receives the message code. */
|
|
3732
3733
|
onDismiss?: (code: string) => void;
|
|
3733
3734
|
/** Custom message renderer. */
|
|
3734
|
-
renderMessage?: (message: SessionMessage) =>
|
|
3735
|
+
renderMessage?: (message: SessionMessage) => React__default.ReactNode;
|
|
3735
3736
|
className?: string;
|
|
3736
3737
|
classNames?: SessionMessageBannerClassNames;
|
|
3737
3738
|
}
|
|
@@ -3741,7 +3742,7 @@ interface SessionMessageBannerProps {
|
|
|
3741
3742
|
* Displays dismissible message cards with level-based styling (info, promotion, urgency, suggestion).
|
|
3742
3743
|
* Returns `null` when there are no messages.
|
|
3743
3744
|
*/
|
|
3744
|
-
declare function SessionMessageBanner({ messages: messagesProp, onDismiss, renderMessage, className, classNames, }: SessionMessageBannerProps):
|
|
3745
|
+
declare function SessionMessageBanner({ messages: messagesProp, onDismiss, renderMessage, className, classNames, }: SessionMessageBannerProps): React__default.ReactElement | null;
|
|
3745
3746
|
|
|
3746
3747
|
interface ViewedProduct {
|
|
3747
3748
|
product_id: string;
|
|
@@ -3760,7 +3761,7 @@ interface RecentlyViewedProps {
|
|
|
3760
3761
|
/** Called when a viewed product is clicked. */
|
|
3761
3762
|
onProductClick?: (product: ViewedProduct) => void;
|
|
3762
3763
|
/** Custom product renderer. */
|
|
3763
|
-
renderProduct?: (product: ViewedProduct) =>
|
|
3764
|
+
renderProduct?: (product: ViewedProduct) => React__default.ReactNode;
|
|
3764
3765
|
/** Text shown when no viewed products exist. */
|
|
3765
3766
|
emptyMessage?: string;
|
|
3766
3767
|
className?: string;
|
|
@@ -3772,7 +3773,7 @@ interface RecentlyViewedProps {
|
|
|
3772
3773
|
* Extracts `state.activity.viewed_products` from the activity state.
|
|
3773
3774
|
* Returns `null` when there are no viewed products.
|
|
3774
3775
|
*/
|
|
3775
|
-
declare function RecentlyViewed({ limit, onProductClick, renderProduct, emptyMessage, className, classNames, }: RecentlyViewedProps):
|
|
3776
|
+
declare function RecentlyViewed({ limit, onProductClick, renderProduct, emptyMessage, className, classNames, }: RecentlyViewedProps): React__default.ReactElement | null;
|
|
3776
3777
|
|
|
3777
3778
|
interface BillingPlanSelectorClassNames {
|
|
3778
3779
|
root?: string;
|
|
@@ -3801,7 +3802,7 @@ interface BillingPlanSelectorProps {
|
|
|
3801
3802
|
/** Label for the one-time purchase option. Default: "One-time purchase". */
|
|
3802
3803
|
oneTimePurchaseLabel?: string;
|
|
3803
3804
|
/** Custom plan card renderer. */
|
|
3804
|
-
renderPlan?: (plan: ProductBillingPlan, isActive: boolean) =>
|
|
3805
|
+
renderPlan?: (plan: ProductBillingPlan, isActive: boolean) => React__default.ReactNode;
|
|
3805
3806
|
className?: string;
|
|
3806
3807
|
classNames?: BillingPlanSelectorClassNames;
|
|
3807
3808
|
}
|
|
@@ -3811,7 +3812,7 @@ interface BillingPlanSelectorProps {
|
|
|
3811
3812
|
* Renders plan cards with frequency, markup, trial, and setup fee details.
|
|
3812
3813
|
* Returns `null` when no plans are available (and one-time purchase is hidden).
|
|
3813
3814
|
*/
|
|
3814
|
-
declare function BillingPlanSelector({ productId, plans: plansProp, currency, onPlanSelect, selectedPlanId, showOneTimePurchase, oneTimePurchaseLabel, renderPlan, className, classNames, }: BillingPlanSelectorProps):
|
|
3815
|
+
declare function BillingPlanSelector({ productId, plans: plansProp, currency, onPlanSelect, selectedPlanId, showOneTimePurchase, oneTimePurchaseLabel, renderPlan, className, classNames, }: BillingPlanSelectorProps): React__default.ReactElement | null;
|
|
3815
3816
|
|
|
3816
3817
|
interface VolumePricingClassNames {
|
|
3817
3818
|
root?: string;
|
|
@@ -3831,14 +3832,14 @@ interface VolumePricingProps {
|
|
|
3831
3832
|
className?: string;
|
|
3832
3833
|
classNames?: VolumePricingClassNames;
|
|
3833
3834
|
}
|
|
3834
|
-
declare function VolumePricing({ tiers, currentQuantity, defaultOpen, currency, className, classNames, }: VolumePricingProps):
|
|
3835
|
+
declare function VolumePricing({ tiers, currentQuantity, defaultOpen, currency, className, classNames, }: VolumePricingProps): React__default.ReactElement | null;
|
|
3835
3836
|
|
|
3836
3837
|
interface PriceRangeProps {
|
|
3837
3838
|
product: Product | ProductWithDetails;
|
|
3838
3839
|
currency?: CurrencyCode;
|
|
3839
3840
|
className?: string;
|
|
3840
3841
|
}
|
|
3841
|
-
declare function PriceRange({ product, currency, className }: PriceRangeProps):
|
|
3842
|
+
declare function PriceRange({ product, currency, className }: PriceRangeProps): React__default.ReactElement | null;
|
|
3842
3843
|
|
|
3843
3844
|
interface DeliveryEstimateClassNames {
|
|
3844
3845
|
root?: string;
|
|
@@ -3866,7 +3867,7 @@ interface DeliveryEstimateProps {
|
|
|
3866
3867
|
* Fetches the delivery fee from `client.delivery.getFee` when coordinates change.
|
|
3867
3868
|
* Shows fee amount with currency, a "not serviceable" message, or loading state.
|
|
3868
3869
|
*/
|
|
3869
|
-
declare function DeliveryEstimate({ latitude, longitude, country, onFeeCalculated, className, classNames, }: DeliveryEstimateProps):
|
|
3870
|
+
declare function DeliveryEstimate({ latitude, longitude, country, onFeeCalculated, className, classNames, }: DeliveryEstimateProps): React__default.ReactElement | null;
|
|
3870
3871
|
|
|
3871
3872
|
interface CurrencySelectorClassNames {
|
|
3872
3873
|
root?: string;
|
|
@@ -3888,7 +3889,7 @@ interface CurrencySelectorProps {
|
|
|
3888
3889
|
/** Base currency used for rate display. */
|
|
3889
3890
|
baseCurrency?: CurrencyCode;
|
|
3890
3891
|
/** Custom currency option renderer. */
|
|
3891
|
-
renderCurrency?: (currency: CurrencyCode, isActive: boolean, rate: FxRateResponse | null) =>
|
|
3892
|
+
renderCurrency?: (currency: CurrencyCode, isActive: boolean, rate: FxRateResponse | null) => React__default.ReactNode;
|
|
3892
3893
|
className?: string;
|
|
3893
3894
|
classNames?: CurrencySelectorClassNames;
|
|
3894
3895
|
}
|
|
@@ -3898,7 +3899,7 @@ interface CurrencySelectorProps {
|
|
|
3898
3899
|
* Renders selectable currency options with optional exchange rate display.
|
|
3899
3900
|
* Returns `null` when there is only one currency (no selector needed).
|
|
3900
3901
|
*/
|
|
3901
|
-
declare function CurrencySelector({ currencies, currentCurrency, onCurrencyChange, showRate, baseCurrency, renderCurrency, className, classNames, }: CurrencySelectorProps):
|
|
3902
|
+
declare function CurrencySelector({ currencies, currentCurrency, onCurrencyChange, showRate, baseCurrency, renderCurrency, className, classNames, }: CurrencySelectorProps): React__default.ReactElement | null;
|
|
3902
3903
|
|
|
3903
3904
|
interface ChatWidgetClassNames {
|
|
3904
3905
|
root?: string;
|
|
@@ -3939,9 +3940,11 @@ interface ChatMarkdownProps {
|
|
|
3939
3940
|
* incomplete-markdown smoothing on capable browsers. */
|
|
3940
3941
|
streaming?: boolean;
|
|
3941
3942
|
}
|
|
3942
|
-
declare const ChatMarkdown:
|
|
3943
|
+
declare const ChatMarkdown: React__default.MemoExoticComponent<({ text, className, streaming, }: ChatMarkdownProps) => react_jsx_runtime.JSX.Element>;
|
|
3943
3944
|
|
|
3944
|
-
|
|
3945
|
+
declare function optimisticId(clientId: string): string;
|
|
3946
|
+
declare function isOptimistic(message: Pick<ChatMessage, "id">): boolean;
|
|
3947
|
+
interface PartitionedMessages {
|
|
3945
3948
|
bubbles: ChatMessage[];
|
|
3946
3949
|
reactionsByTarget: Map<string, ChatMessage[]>;
|
|
3947
3950
|
}
|
|
@@ -3950,7 +3953,125 @@ interface ChatTimeline {
|
|
|
3950
3953
|
* the server-resolved `reply_to`, and drop any whose target isn't loaded —
|
|
3951
3954
|
* an emoji must never render as a standalone message.
|
|
3952
3955
|
*/
|
|
3953
|
-
declare function partitionMessages(messages: ChatMessage[]):
|
|
3956
|
+
declare function partitionMessages(messages: ChatMessage[]): PartitionedMessages;
|
|
3957
|
+
|
|
3958
|
+
/** Where this bubble sits in a run of consecutive same-sender messages. */
|
|
3959
|
+
type GroupPosition = "single" | "first" | "middle" | "last";
|
|
3960
|
+
/** The customer message's journey, rendered as ticks inside the bubble. */
|
|
3961
|
+
type DeliveryState = "sending" | "delivered" | "seen";
|
|
3962
|
+
declare function sameDay(a: string, b: string): boolean;
|
|
3963
|
+
declare function dayLabel(at: string): string;
|
|
3964
|
+
declare function proseOf(content: string): string;
|
|
3965
|
+
interface ChatTimeline {
|
|
3966
|
+
bubbles: ChatMessage[];
|
|
3967
|
+
reactionsByTarget: Map<string, ChatMessage[]>;
|
|
3968
|
+
firstUnreadId: string | undefined;
|
|
3969
|
+
unreadOnOpen: number;
|
|
3970
|
+
firstAgentMessageId: string | undefined;
|
|
3971
|
+
}
|
|
3972
|
+
interface ChatTimelineOptions {
|
|
3973
|
+
/** Read watermark captured when the surface last closed — anchors the unread seam. */
|
|
3974
|
+
readAt?: string | null;
|
|
3975
|
+
/** Whether this surface can draw ```genui programs; without it a program-only
|
|
3976
|
+
* turn has nothing to show and must not render a phantom bubble. */
|
|
3977
|
+
rendersPrograms?: boolean;
|
|
3978
|
+
}
|
|
3979
|
+
/**
|
|
3980
|
+
* One assembly for every chat surface: reactions fold onto their targets, a
|
|
3981
|
+
* message with nothing to show is dropped (an invisible bubble still breaks
|
|
3982
|
+
* the sender run on both sides), and the unread seam anchors where the
|
|
3983
|
+
* reader stopped, staying put as reads move.
|
|
3984
|
+
*/
|
|
3985
|
+
declare function chatTimeline(messages: ChatMessage[], options?: ChatTimelineOptions): ChatTimeline;
|
|
3986
|
+
/**
|
|
3987
|
+
* A run is consecutive messages from the same voice, unbroken by a seam —
|
|
3988
|
+
* they read as one utterance, so they share an avatar and only the last one
|
|
3989
|
+
* gets a tail.
|
|
3990
|
+
*/
|
|
3991
|
+
declare function groupPosition(timeline: ChatTimeline, index: number): GroupPosition;
|
|
3992
|
+
/**
|
|
3993
|
+
* Solid ticks only once a person has been in the thread; AI-only never
|
|
3994
|
+
* claims "seen" — it proves processing, not attention.
|
|
3995
|
+
*/
|
|
3996
|
+
declare function deliveryState(message: ChatMessage, timeline: ChatTimeline, seenAt: string | null, isOptimistic: (message: Pick<ChatMessage, "id">) => boolean): DeliveryState | undefined;
|
|
3997
|
+
|
|
3998
|
+
/** Curved bubble tail, continuous with the bubble edge. Render inside a
|
|
3999
|
+
* `relative` bubble whose tail-side bottom corner is squared. */
|
|
4000
|
+
declare function BubbleTail({ isCustomer }: {
|
|
4001
|
+
isCustomer: boolean;
|
|
4002
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4003
|
+
interface MessageBubbleProps {
|
|
4004
|
+
message: ChatMessage;
|
|
4005
|
+
reactions?: ChatMessage[];
|
|
4006
|
+
businessName: string;
|
|
4007
|
+
group?: GroupPosition;
|
|
4008
|
+
delivery?: DeliveryState;
|
|
4009
|
+
onReply: (message: ChatMessage) => void;
|
|
4010
|
+
/** Long-press / context-menu path — the surface's menu, if it has one. */
|
|
4011
|
+
onLongPress?: (message: ChatMessage) => void;
|
|
4012
|
+
/** The run avatar next to business bubbles (shown on the run's last bubble). */
|
|
4013
|
+
avatar?: ReactNode;
|
|
4014
|
+
/** Absolutely-positioned extras inside the row: hover rails, open menus. */
|
|
4015
|
+
overlay?: ReactNode;
|
|
4016
|
+
/** Structured cards under the bubble (metadata.cards) — surface-specific visuals. */
|
|
4017
|
+
renderCards?: (message: ChatMessage) => ReactNode;
|
|
4018
|
+
/** ```genui program renderer — surface-specific catalog and actions. */
|
|
4019
|
+
renderProgram?: (source: string) => ReactNode;
|
|
4020
|
+
/** Quote-tap fallback when the original is above the loaded window. */
|
|
4021
|
+
onQuoteMiss?: () => Promise<boolean>;
|
|
4022
|
+
}
|
|
4023
|
+
declare const MessageBubble: React__default.MemoExoticComponent<({ message, reactions, businessName, group, delivery, onReply, onLongPress, avatar, overlay, renderCards, renderProgram, onQuoteMiss, }: MessageBubbleProps) => react_jsx_runtime.JSX.Element>;
|
|
4024
|
+
|
|
4025
|
+
/** Conversation seams (Paper board 30): dates float as white chips, events
|
|
4026
|
+
* (handoff, person joined) sit in a hairline rule, and the unread marker gets
|
|
4027
|
+
* the emerald treatment so it's findable at a glance. */
|
|
4028
|
+
declare function Seam({ label, variant, }: {
|
|
4029
|
+
label: string;
|
|
4030
|
+
variant?: "chip" | "line" | "unread";
|
|
4031
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4032
|
+
|
|
4033
|
+
declare function QuoteBlock({ quote, inCustomerBubble, businessName, onMissing, }: {
|
|
4034
|
+
quote: ChatReplyContext;
|
|
4035
|
+
inCustomerBubble: boolean;
|
|
4036
|
+
businessName: string;
|
|
4037
|
+
onMissing?: () => Promise<boolean>;
|
|
4038
|
+
}): react_jsx_runtime.JSX.Element;
|
|
4039
|
+
|
|
4040
|
+
declare const SWIPE_COMMIT_PX = 48;
|
|
4041
|
+
/** Leftward travel of the bubble: 1:1 to the commit threshold, rubber-banded past it. */
|
|
4042
|
+
declare function swipeTravel(distance: number): number;
|
|
4043
|
+
declare function swipeCommitted(distance: number): boolean;
|
|
4044
|
+
declare function swipeProgress(distance: number): number;
|
|
4045
|
+
interface SwipeReplyOptions {
|
|
4046
|
+
onReply: () => void;
|
|
4047
|
+
onLongPress: () => void;
|
|
4048
|
+
}
|
|
4049
|
+
/**
|
|
4050
|
+
* Swipe-to-reply on a message row. Swipe LEFT on purpose: a rightward
|
|
4051
|
+
* gesture near the screen edge is the browser's back-navigation on iOS.
|
|
4052
|
+
* The gesture only arms on clear horizontal intent, so vertical scrolling
|
|
4053
|
+
* through history never fights it; long-press is the accessibility and
|
|
4054
|
+
* reduced-motion path.
|
|
4055
|
+
*
|
|
4056
|
+
* Movement is written straight to the DOM (no per-frame renders): the row
|
|
4057
|
+
* element tracks the finger 1:1 and the glyph fades in with progress.
|
|
4058
|
+
*/
|
|
4059
|
+
declare function useSwipeReply({ onReply, onLongPress }: SwipeReplyOptions): {
|
|
4060
|
+
rowRef: React$1.RefObject<HTMLDivElement | null>;
|
|
4061
|
+
glyphRef: React$1.RefObject<HTMLSpanElement | null>;
|
|
4062
|
+
handlers: {
|
|
4063
|
+
onPointerDown: (event: PointerEvent<HTMLDivElement>) => void;
|
|
4064
|
+
onPointerMove: (event: PointerEvent<HTMLDivElement>) => void;
|
|
4065
|
+
onPointerUp: (event: PointerEvent<HTMLDivElement>) => void;
|
|
4066
|
+
onPointerCancel: (event: PointerEvent<HTMLDivElement>) => void;
|
|
4067
|
+
onClickCapture: (event: MouseEvent<HTMLDivElement>) => void;
|
|
4068
|
+
};
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4071
|
+
/** One source of truth for the reduced-motion preference — scrolls and
|
|
4072
|
+
* gesture animation downgrade together. */
|
|
4073
|
+
declare function prefersReducedMotion(): boolean;
|
|
4074
|
+
declare function scrollBehavior(): ScrollBehavior;
|
|
3954
4075
|
|
|
3955
4076
|
/**
|
|
3956
4077
|
* Discriminated union representing every value that can appear in an
|
|
@@ -4298,4 +4419,4 @@ declare function genUIManifestJson(manifest: GenUICapabilityManifest): string;
|
|
|
4298
4419
|
/** First 16 hex chars of SHA-256 over the canonical manifest bytes. */
|
|
4299
4420
|
declare function genUIFingerprint(manifest: GenUICapabilityManifest): Promise<string>;
|
|
4300
4421
|
|
|
4301
|
-
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressAutocomplete, type AddressAutocompleteClassNames, type AddressAutocompleteProps, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, type BoundaryLabels, BoxIcon24, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CIMPLIFY_GENUI_REGISTRY, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatMarkdown, type ChatMarkdownProps, type ChatTimeline, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, type CimplifyLinkComponent, type CimplifyLinkProps, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, type GenUIActionEvent, type GenUICapabilityManifest, type GenUIComponentDef, type GenUIComponentMap, type GenUIComponentRenderer, type ElementNode as GenUIElementNode, type GenUIParamDef, type ParseResult as GenUIParseResult, type GenUIProgramState, type GenUIRegistry, type GenUIRenderContext, type GenUISegment, type GenUITelemetryEvent, GenUIView, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, PaymentElement, type PrefetchMode, type PrefetchOptions, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, SalePrice, type SalePriceClassNames, type SalePriceProps, SaleTeaser, type SaleTeaserProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseStoreCreditOptions, type UseStoreCreditResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, clearOrdersCache, cn, createPlacesSessionToken, defaultBoundaryKind, genUICatalog, genUIFingerprint, genUIManifest, genUIManifestJson, getBoundaryLabels, isImageAttachment, isTerminalOrderStatus, messagePreview, parse as parseGenUIProgram, partitionMessages, prefetchProduct, prefetchProducts, resolveBoundaryKind, roomToResource, safeAttachmentUrl, sanitizeRichTextHtml, splitGenUIContent, stripHtmlToText, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useDeliveryOptions, useElements, useElementsReady, useFxRate, useGenUIProgram, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
4422
|
+
export { AccommodationCard, AccountContent, type AccountContentProps, AccountDashboardPage, type AccountDashboardPageProps, AccountHero, type AccountHeroProps, AccountIdentityStrip, type AccountIdentityStripProps, AccountLineItem, type AccountLineItemData, type AccountLineItemProps, AccountLineItems, type AccountLineItemsProps, AccountNav, type AccountNavProps, AccountOrderDetailPage, type AccountOrderDetailPageProps, AccountOrderView, type AccountOrderViewProps, AccountOrdersPage, type AccountOrdersPageProps, type AccountPageBaseProps, AccountShell, type AccountShellProps, AccountSidebar, type AccountSidebarProps, AccountSignedOutPrompt, type AccountSignedOutPromptProps, AccountSubscriptionDetailPage, type AccountSubscriptionDetailPageProps, AccountSubscriptionsPage, type AccountSubscriptionsPageProps, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressAutocomplete, type AddressAutocompleteClassNames, type AddressAutocompleteProps, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BackLink, type BackLinkProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BookingPage, type BookingPageClassNames, type BookingPageProps, BookingSummary, type BookingSummaryClassNames, type BookingSummaryProps, BookingsPage, type BookingsPageClassNames, type BookingsPageProps, type BoundaryLabels, BoxIcon24, BubbleTail, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, Button, type ButtonProps, CIMPLIFY_GENUI_REGISTRY, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, CartDrawer, type CartDrawerProps, CartDrawerProvider, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, ChatMarkdown, type ChatMarkdownProps, type ChatTimeline, type ChatTimelineOptions, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckIcon, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyClientSession, type CimplifyContextValue, type CimplifyLinkComponent, type CimplifyLinkProps, CimplifyProvider, type CimplifyProviderProps, CimplifySignInButton, type CimplifySignInButtonProps, CimplifyUserButton, type CimplifyUserButtonProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, ContextCard, type ContextCardProps, type ContextRow, ContinuityCard, type ContinuityCardProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, type CustomerInput, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, type CustomerInputType, DashboardIcon, DashboardIcon20, DatePicker, type DatePickerClassNames, type DatePickerProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, type DeliveryLive, type DeliveryRider, type DeliveryState, DeliveryTracker, type DeliveryTrackerProps, DeliveryTruckIcon, type DigitalFulfillment, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, FeaturedCollectionLayout, type FilterTabItem, FilterTabs, type FilterTabsProps, FoodProductCard, FoodProductLayout, type GenUIActionEvent, type GenUICapabilityManifest, type GenUIComponentDef, type GenUIComponentMap, type GenUIComponentRenderer, type ElementNode as GenUIElementNode, type GenUIParamDef, type ParseResult as GenUIParseResult, type GenUIProgramState, type GenUIRegistry, type GenUIRenderContext, type GenUISegment, type GenUITelemetryEvent, GenUIView, type GroupPosition, HappeningCard, type HappeningCardProps, type HappeningPaneData, IdentityIcon, IdentityOfframp, type IdentityOfframpProps, type IdentitySummary, InventoryBadge, ItemsCard, type ItemsCardProps, LeaseServiceCard, LineItemDetails, type LineItemSemanticKind, type LineScheduling, type LineSelection, type LineStateTone, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MediaGallery, type MediaGalleryProps, type MediaItem, MessageBubble, type MessageBubbleProps, MetadataStringList, MobileAccountShell, type MobileAccountShellProps, MobileBackButton, MobileMoreButton, MobileTabBar, type MobileTabBarProps, type NavItem, NextDeliveryCard, type NextDeliveryCardProps, OrderDetailHeader, type OrderDetailHeaderProps, OrderDetailMetaPipe, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, type OrderItemData, OrderList, type OrderListProps, OrderRow, type OrderRowData, type OrderRowProps, type OrderRowStatus, type OrderStatusTone, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, OrderTimeline, type OrderTimelineProps, OrderTotals, type OrderTotalsProps, type OrderViewDelivery, type OrderViewPayment, type OrderViewPaymentRow, OrdersIcon, OrdersIcon20, OvenIcon, PackageIcon, type PartitionedMessages, PaymentElement, type PrefetchMode, type PrefetchOptions, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductModel3D, type ProductModel3DProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, QuoteBlock, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, RichText, type RichTextProps, SWIPE_COMMIT_PX, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, SalePrice, type SalePriceClassNames, type SalePriceProps, SaleTeaser, type SaleTeaserProps, ScheduleServiceCard, Seam, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, Section, SectionMore, type SectionMoreProps, type SectionProps, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SignOutIcon, Skeleton, type SkeletonProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, Status, type StatusProps, StoreNav, type StoreNavClassNames, type StoreNavProps, StoreVideo, type StoreVideoProps, SubscriptionCard, SubscriptionList, type SubscriptionListProps, SubscriptionRow, type SubscriptionRowData, type SubscriptionRowProps, SubscriptionsIcon, SubscriptionsIcon20, TagPills, TimePicker, type TimePickerClassNames, type TimePickerProps, type TimelineStep, type ToAccountOrderViewOptions, Toast, type ToastProps, type TotalsData, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseChatOptions, type UseChatResult, type UseCimplifySessionOptions, type UseCimplifySessionResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseStoreCreditOptions, type UseStoreCreditResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, type UserButtonLink, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WelcomeCard, type WelcomeCardProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, chatTimeline, clearOrdersCache, cn, createPlacesSessionToken, dayLabel, defaultBoundaryKind, deliveryState, genUICatalog, genUIFingerprint, genUIManifest, genUIManifestJson, getBoundaryLabels, groupPosition, isImageAttachment, isOptimistic, isTerminalOrderStatus, messagePreview, optimisticId, parse as parseGenUIProgram, partitionMessages, prefersReducedMotion, prefetchProduct, prefetchProducts, proseOf, resolveBoundaryKind, roomToResource, safeAttachmentUrl, sameDay, sanitizeRichTextHtml, scrollBehavior, splitGenUIContent, stripHtmlToText, swipeCommitted, swipeProgress, swipeTravel, toAccountLineItem, toAccountLineItems, toAccountOrderView, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCartDrawer, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCimplifySession, useCollection, useCollections, useDeals, useDeliveryFee, useDeliveryOptions, useElements, useElementsReady, useFxRate, useGenUIProgram, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useStoreCredit, useSubscription, useSubscriptions, useSwipeReply, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|