@cimplify/sdk 0.29.0 → 0.31.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/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/{chunk-REXW2PET.mjs → chunk-46BDUSJX.mjs} +46 -1
- package/dist/{chunk-R4AKAGZQ.js → chunk-6HCBOIZ4.js} +46 -0
- package/dist/{index-Cjfczg2W.d.ts → index-BHVJgyqM.d.ts} +2 -2
- package/dist/{index-DijjnO-u.d.mts → index-BpyFcJVv.d.ts} +92 -15
- package/dist/{index-D4-b5OZO.d.mts → index-D4oNCc37.d.mts} +2 -2
- package/dist/{index-DwvzjdGi.d.ts → index-m8zGQUda.d.mts} +92 -15
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +17 -13
- package/dist/index.mjs +1 -1
- package/dist/{payment-BeLHpQMo.d.ts → payment-DnU_eLuT.d.mts} +19 -3
- package/dist/{payment-BeLHpQMo.d.mts → payment-DnU_eLuT.d.ts} +19 -3
- package/dist/{price-Dvl1p9AM.d.mts → price-D-hso3np.d.mts} +1 -1
- package/dist/{price-C6gfys5B.d.ts → price-DUVmRTaz.d.ts} +1 -1
- package/dist/react.d.mts +54 -4
- package/dist/react.d.ts +54 -4
- package/dist/react.js +741 -69
- package/dist/react.mjs +696 -26
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/package.json +1 -1
- package/registry/chat-widget.json +15 -0
- package/registry/index.json +9 -0
- package/registry/product-customizer.json +1 -1
- package/registry/schedule-service-card.json +1 -1
- package/registry/service-product-layout.json +1 -1
- package/registry/subscription-card.json +1 -1
|
@@ -211,7 +211,8 @@ interface ComponentSchedulingData {
|
|
|
211
211
|
scheduled_end?: string;
|
|
212
212
|
service_status: string;
|
|
213
213
|
confirmation_code?: string;
|
|
214
|
-
|
|
214
|
+
booking_id?: string;
|
|
215
|
+
primary_resource_id?: string;
|
|
215
216
|
}
|
|
216
217
|
interface BundleStoredSelection {
|
|
217
218
|
component_id: string;
|
|
@@ -267,6 +268,7 @@ type LineConfiguration = {
|
|
|
267
268
|
confirmation_code?: string;
|
|
268
269
|
service_status?: string;
|
|
269
270
|
primary_staff_id?: string;
|
|
271
|
+
primary_resource_id?: string;
|
|
270
272
|
scheduling_metadata?: Record<string, unknown>;
|
|
271
273
|
} | {
|
|
272
274
|
type: "bundle";
|
|
@@ -583,7 +585,7 @@ interface CartSummary {
|
|
|
583
585
|
currency: CurrencyCode;
|
|
584
586
|
}
|
|
585
587
|
|
|
586
|
-
type BillingFrequency = "weekly" | "monthly" | "quarterly" | "annually";
|
|
588
|
+
type BillingFrequency = "weekly" | "biweekly" | "monthly" | "quarterly" | "annually";
|
|
587
589
|
type BillingPlanType = "subscription" | "installment";
|
|
588
590
|
type BillingMarkupType = "fixed" | "percentage";
|
|
589
591
|
interface ProductBillingPlan {
|
|
@@ -692,6 +694,7 @@ type InventoryType = "one_to_one" | "composition" | "none";
|
|
|
692
694
|
type VariantStrategy = "fetch_all" | "use_axes";
|
|
693
695
|
type DigitalProductType = "download" | "license" | "event_ticket" | "access_pass" | "gift_code";
|
|
694
696
|
type DepositType = "none" | "fixed" | "percentage";
|
|
697
|
+
type SchedulingMode = "intraday" | "multi_day";
|
|
695
698
|
type DurationUnit = "minutes" | "hours" | "days" | "nights" | "weeks" | "months" | "years";
|
|
696
699
|
declare const DURATION_UNIT: {
|
|
697
700
|
Minutes: "minutes";
|
|
@@ -857,6 +860,8 @@ interface Product {
|
|
|
857
860
|
code_type?: string;
|
|
858
861
|
code_value?: Money;
|
|
859
862
|
code_currency?: CurrencyCode;
|
|
863
|
+
scheduling_mode?: SchedulingMode;
|
|
864
|
+
duration_value?: number;
|
|
860
865
|
duration_minutes?: number;
|
|
861
866
|
duration_unit?: DurationUnit;
|
|
862
867
|
preparation_time_minutes?: number;
|
|
@@ -868,6 +873,13 @@ interface Product {
|
|
|
868
873
|
deposit_amount?: Money;
|
|
869
874
|
cancellation_window_minutes?: number;
|
|
870
875
|
no_show_fee?: Money;
|
|
876
|
+
partial_refund_percentage?: number;
|
|
877
|
+
max_free_reschedules?: number;
|
|
878
|
+
reschedule_fee?: Money;
|
|
879
|
+
no_show_deadline_minutes?: number;
|
|
880
|
+
cancellation_notice_days?: number;
|
|
881
|
+
early_termination_fee?: Money;
|
|
882
|
+
pro_rata_refund?: boolean;
|
|
871
883
|
requires_specific_staff?: boolean;
|
|
872
884
|
requires_specific_resource?: boolean;
|
|
873
885
|
hs_code?: string;
|
|
@@ -1014,6 +1026,8 @@ interface VariantView {
|
|
|
1014
1026
|
axis_selections?: Record<string, string>;
|
|
1015
1027
|
display_attributes?: VariantDisplayAttribute[];
|
|
1016
1028
|
images?: string[];
|
|
1029
|
+
scheduling_mode?: SchedulingMode;
|
|
1030
|
+
duration_value?: number;
|
|
1017
1031
|
duration_minutes?: number;
|
|
1018
1032
|
duration_unit?: DurationUnit;
|
|
1019
1033
|
skill_level_required?: string;
|
|
@@ -1047,6 +1061,8 @@ interface ProductVariant {
|
|
|
1047
1061
|
barcode?: string;
|
|
1048
1062
|
download_url?: string;
|
|
1049
1063
|
metadata?: Record<string, unknown>;
|
|
1064
|
+
scheduling_mode?: SchedulingMode;
|
|
1065
|
+
duration_value?: number;
|
|
1050
1066
|
duration_minutes?: number;
|
|
1051
1067
|
duration_unit?: DurationUnit;
|
|
1052
1068
|
max_downloads?: number;
|
|
@@ -1607,4 +1623,4 @@ interface SubmitAuthorizationInput {
|
|
|
1607
1623
|
value: string;
|
|
1608
1624
|
}
|
|
1609
1625
|
|
|
1610
|
-
export { type
|
|
1626
|
+
export { type SignatureValue as $, type ApiError as A, type AttributeValidationRules as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeDefinition as F, type CustomAttributeValue as G, type PropertySource as H, type InventoryType as I, type ProductProperty as J, type PropertyFacet as K, type FacetValue as L, type Money as M, type KnowledgeArticle as N, type Product as O, type PaginationParams as P, type InputFieldType as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, INPUT_FIELD_TYPE as U, type VariantStrategy as V, type AddressValue as W, type PhoneValue as X, type DateRangeValue as Y, ZERO as Z, type LocationValue as _, type CurrencyCode as a, type CartStatus as a$, type InputFieldValidation as a0, type ProductInputField as a1, type CustomerInputValue as a2, type QuantityPricingTier as a3, type RelatedProductView as a4, type ProductWithDetails as a5, type VariantView as a6, type ProductVariant as a7, type VariantDisplayAttribute as a8, type VariantAxis as a9, type CompositePricingMode as aA, type GroupPricingBehavior as aB, type ComponentSourceType as aC, type Composite as aD, type CompositeWithDetails as aE, type ComponentGroup as aF, type ComponentGroupWithComponents as aG, type CompositeGroupView as aH, type CompositeComponentView as aI, type CompositeComponent as aJ, type ComponentSelectionInput as aK, type CompositePriceResult as aL, type ComponentPriceBreakdown as aM, type PriceEntryType as aN, type Price as aO, type LocationProductPrice as aP, type ProductAvailability as aQ, type ProductTimeProfile as aR, type ProductTaxonomy as aS, type TaxonomyWithChildren as aT, type ProductAvailabilityNow as aU, type DealBenefitType as aV, type Deal as aW, type ProductDealInfo as aX, type DiscountValidation as aY, type Tag as aZ, type TagsResponse as a_, type VariantAxisWithValues as aa, type VariantAxisValue as ab, type ProductVariantValue as ac, type VariantLocationAvailability as ad, type VariantAxisSelection as ae, type AddOn as af, type AddOnWithOptions as ag, type AddOnOption as ah, type AddOnOptionPrice as ai, type ProductAddOn as aj, type Category as ak, type CategorySummary as al, type Collection as am, type CollectionSummary as an, type CollectionProduct as ao, type BundlePriceType as ap, type Bundle as aq, type BundleSummary as ar, type BundleProduct as as, type BundleWithDetails as at, type BundleComponentData as au, type BundleComponentInfo as av, type BundleComponentView as aw, type BundleComponentVariantView as ax, type VariantAxisView as ay, type VariantAxisValueView as az, moneyFromNumber as b, type Subscription as b$, type CartChannel as b0, type PriceSource as b1, type AdjustmentType as b2, type PriceAdjustment as b3, type TaxPathComponent as b4, type PricePathTaxInfo as b5, type PriceDecisionPath as b6, type BenefitType as b7, type AppliedDiscount as b8, type DiscountBreakdown as b9, type VariantDetailsDTO as bA, type CartItemDetails as bB, type UICart as bC, type UICartResponse as bD, type AddToCartInput as bE, type UpdateCartItemInput as bF, type CartSummary as bG, type PaymentStatus as bH, type PaymentProvider as bI, type PaymentMethodType as bJ, type AddressAuthorizationData as bK, type AuthorizationType as bL, type PaymentProcessingState as bM, type PaymentMethod as bN, type Payment as bO, type InitializePaymentResult as bP, type PaymentResponse as bQ, type PaymentStatusResponse as bR, type PaymentErrorDetails as bS, type SubmitAuthorizationInput as bT, type BillingFrequency as bU, type BillingPlanType as bV, type BillingMarkupType as bW, type ProductBillingPlan as bX, type EligiblePlansQuery as bY, type FormattedPlanOption as bZ, type SubscriptionStatus as b_, type DiscountDetails as ba, type SelectedAddOnOption as bb, type AddOnDetails as bc, type CartAddOn as bd, type VariantDetails as be, type BundleSelectionInput as bf, type ComponentSchedulingData as bg, type BundleStoredSelection as bh, type BundleSelectionData as bi, type CompositeStoredSelection as bj, type CompositePriceBreakdown as bk, type CompositeSelectionData as bl, type LineConfiguration as bm, type Cart as bn, type CartItem as bo, type CartTotals as bp, type DisplayCart as bq, type DisplayCartItem as br, type DisplayAddOn as bs, type DisplayAddOnOption as bt, type UICartBusiness as bu, type UICartLocation as bv, type UICartCustomer as bw, type UICartPricing as bx, type AddOnOptionDetails as by, type AddOnGroupDetails as bz, currencyCode as c, type SubscriptionItem as c0, type SubscriptionInvoice as c1, type SubscriptionWithDetails as c2, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type SalesChannel as v, type AttributeType as w, type AttributeAppliesTo as x, type AttributeVisibility as y, type MeasurementValue as z };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
4
|
-
import { C as CimplifyClient,
|
|
5
|
-
import { a as CurrencyCode,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, ao as ProcessCheckoutResult, aq as CheckoutStatus, ar as CheckoutStatusContext, b_ as Location, bX as Business, k as ReorderResult, b5 as OrderStatus, bi as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, cb as Service, cg as AvailableSlot, ch as DayAvailability, cm as CustomerBooking, cs as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, d4 as FxRateResponse, c5 as StorefrontBootstrap, a1 as ChatWidgetStarter, Z as ChatMessage, ac as ElementsOptions, di as AuthenticatedData, de as AddressInfo, df as PaymentMethodInfo, a6 as CimplifyElements, dk as ElementsCheckoutResult, an as ProcessCheckoutOptions, bh as LineItem, cc as Staff, c3 as Room } from './index-m8zGQUda.mjs';
|
|
5
|
+
import { a as CurrencyCode, O as Product, d as Pagination, h as CimplifyError, a5 as ProductWithDetails, ak as Category, M as Money, bf as BundleSelectionInput, aK as ComponentSelectionInput, bi as BundleSelectionData, bl as CompositeSelectionData, am as Collection, aS as ProductTaxonomy, aT as TaxonomyWithChildren, aR as ProductTimeProfile, aW as Deal, aX as ProductDealInfo, aY as DiscountValidation, ar as BundleSummary, aL as CompositePriceResult, b_ as SubscriptionStatus, b$ as Subscription, c2 as SubscriptionWithDetails, F as CustomAttributeDefinition, K as PropertyFacet, bX as ProductBillingPlan, a6 as VariantView, aa as VariantAxisWithValues, ag as AddOnWithOptions, aw as BundleComponentView, ap as BundlePriceType, aH as CompositeGroupView, bq as DisplayCart, a1 as ProductInputField, G as CustomAttributeValue, J as ProductProperty, a3 as QuantityPricingTier } from './payment-DnU_eLuT.mjs';
|
|
6
|
+
import { P as ProductWithPrice } from './price-D-hso3np.mjs';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
9
|
|
|
9
10
|
interface UserIdentity {
|
|
10
11
|
uid: string;
|
|
@@ -737,6 +738,23 @@ interface UseBootstrapResult {
|
|
|
737
738
|
}
|
|
738
739
|
declare function useBootstrap(options?: UseBootstrapOptions): UseBootstrapResult;
|
|
739
740
|
|
|
741
|
+
interface UseChatOptions {
|
|
742
|
+
client?: CimplifyClient;
|
|
743
|
+
starters?: ChatWidgetStarter[];
|
|
744
|
+
pollInterval?: number;
|
|
745
|
+
pollIdleInterval?: number;
|
|
746
|
+
}
|
|
747
|
+
interface UseChatResult {
|
|
748
|
+
messages: ChatMessage[];
|
|
749
|
+
isLoading: boolean;
|
|
750
|
+
isSending: boolean;
|
|
751
|
+
error: CimplifyError | null;
|
|
752
|
+
isActive: boolean;
|
|
753
|
+
send: (content: string) => Promise<void>;
|
|
754
|
+
startConversation: (starterText?: string) => Promise<void>;
|
|
755
|
+
}
|
|
756
|
+
declare function useChat(options?: UseChatOptions): UseChatResult;
|
|
757
|
+
|
|
740
758
|
declare function useElements(): CimplifyElements | null;
|
|
741
759
|
declare function useElementsReady(): boolean;
|
|
742
760
|
interface ElementsProviderProps {
|
|
@@ -2565,4 +2583,36 @@ interface ResourcePickerProps {
|
|
|
2565
2583
|
declare function roomToResource(room: Room): Resource;
|
|
2566
2584
|
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps): React$1.ReactElement;
|
|
2567
2585
|
|
|
2568
|
-
|
|
2586
|
+
interface ChatWidgetClassNames {
|
|
2587
|
+
root?: string;
|
|
2588
|
+
bubble?: string;
|
|
2589
|
+
panel?: string;
|
|
2590
|
+
header?: string;
|
|
2591
|
+
messages?: string;
|
|
2592
|
+
input?: string;
|
|
2593
|
+
welcome?: string;
|
|
2594
|
+
}
|
|
2595
|
+
interface ChatWidgetProps {
|
|
2596
|
+
client?: CimplifyClient;
|
|
2597
|
+
/** Business display name shown in the header */
|
|
2598
|
+
businessName?: string;
|
|
2599
|
+
/** Greeting text on the welcome screen */
|
|
2600
|
+
greeting?: string;
|
|
2601
|
+
/** Subtitle on the welcome screen */
|
|
2602
|
+
subtitle?: string;
|
|
2603
|
+
/** Conversation starters */
|
|
2604
|
+
starters?: ChatWidgetStarter[];
|
|
2605
|
+
/** Input placeholder */
|
|
2606
|
+
placeholder?: string;
|
|
2607
|
+
/** Position of the bubble */
|
|
2608
|
+
position?: "bottom-right" | "bottom-left";
|
|
2609
|
+
/** Start with the panel open */
|
|
2610
|
+
defaultOpen?: boolean;
|
|
2611
|
+
/** Poll interval in ms (default: 3000) */
|
|
2612
|
+
pollInterval?: number;
|
|
2613
|
+
className?: string;
|
|
2614
|
+
classNames?: ChatWidgetClassNames;
|
|
2615
|
+
}
|
|
2616
|
+
declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
2617
|
+
|
|
2618
|
+
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, 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, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, 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, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, 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, 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, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, 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 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 UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
4
|
-
import { C as CimplifyClient,
|
|
5
|
-
import { a as CurrencyCode,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, ao as ProcessCheckoutResult, aq as CheckoutStatus, ar as CheckoutStatusContext, b_ as Location, bX as Business, k as ReorderResult, b5 as OrderStatus, bi as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, cb as Service, cg as AvailableSlot, ch as DayAvailability, cm as CustomerBooking, cs as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, d4 as FxRateResponse, c5 as StorefrontBootstrap, a1 as ChatWidgetStarter, Z as ChatMessage, ac as ElementsOptions, di as AuthenticatedData, de as AddressInfo, df as PaymentMethodInfo, a6 as CimplifyElements, dk as ElementsCheckoutResult, an as ProcessCheckoutOptions, bh as LineItem, cc as Staff, c3 as Room } from './index-BpyFcJVv.js';
|
|
5
|
+
import { a as CurrencyCode, O as Product, d as Pagination, h as CimplifyError, a5 as ProductWithDetails, ak as Category, M as Money, bf as BundleSelectionInput, aK as ComponentSelectionInput, bi as BundleSelectionData, bl as CompositeSelectionData, am as Collection, aS as ProductTaxonomy, aT as TaxonomyWithChildren, aR as ProductTimeProfile, aW as Deal, aX as ProductDealInfo, aY as DiscountValidation, ar as BundleSummary, aL as CompositePriceResult, b_ as SubscriptionStatus, b$ as Subscription, c2 as SubscriptionWithDetails, F as CustomAttributeDefinition, K as PropertyFacet, bX as ProductBillingPlan, a6 as VariantView, aa as VariantAxisWithValues, ag as AddOnWithOptions, aw as BundleComponentView, ap as BundlePriceType, aH as CompositeGroupView, bq as DisplayCart, a1 as ProductInputField, G as CustomAttributeValue, J as ProductProperty, a3 as QuantityPricingTier } from './payment-DnU_eLuT.js';
|
|
6
|
+
import { P as ProductWithPrice } from './price-DUVmRTaz.js';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
9
|
|
|
9
10
|
interface UserIdentity {
|
|
10
11
|
uid: string;
|
|
@@ -737,6 +738,23 @@ interface UseBootstrapResult {
|
|
|
737
738
|
}
|
|
738
739
|
declare function useBootstrap(options?: UseBootstrapOptions): UseBootstrapResult;
|
|
739
740
|
|
|
741
|
+
interface UseChatOptions {
|
|
742
|
+
client?: CimplifyClient;
|
|
743
|
+
starters?: ChatWidgetStarter[];
|
|
744
|
+
pollInterval?: number;
|
|
745
|
+
pollIdleInterval?: number;
|
|
746
|
+
}
|
|
747
|
+
interface UseChatResult {
|
|
748
|
+
messages: ChatMessage[];
|
|
749
|
+
isLoading: boolean;
|
|
750
|
+
isSending: boolean;
|
|
751
|
+
error: CimplifyError | null;
|
|
752
|
+
isActive: boolean;
|
|
753
|
+
send: (content: string) => Promise<void>;
|
|
754
|
+
startConversation: (starterText?: string) => Promise<void>;
|
|
755
|
+
}
|
|
756
|
+
declare function useChat(options?: UseChatOptions): UseChatResult;
|
|
757
|
+
|
|
740
758
|
declare function useElements(): CimplifyElements | null;
|
|
741
759
|
declare function useElementsReady(): boolean;
|
|
742
760
|
interface ElementsProviderProps {
|
|
@@ -2565,4 +2583,36 @@ interface ResourcePickerProps {
|
|
|
2565
2583
|
declare function roomToResource(room: Room): Resource;
|
|
2566
2584
|
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps): React$1.ReactElement;
|
|
2567
2585
|
|
|
2568
|
-
|
|
2586
|
+
interface ChatWidgetClassNames {
|
|
2587
|
+
root?: string;
|
|
2588
|
+
bubble?: string;
|
|
2589
|
+
panel?: string;
|
|
2590
|
+
header?: string;
|
|
2591
|
+
messages?: string;
|
|
2592
|
+
input?: string;
|
|
2593
|
+
welcome?: string;
|
|
2594
|
+
}
|
|
2595
|
+
interface ChatWidgetProps {
|
|
2596
|
+
client?: CimplifyClient;
|
|
2597
|
+
/** Business display name shown in the header */
|
|
2598
|
+
businessName?: string;
|
|
2599
|
+
/** Greeting text on the welcome screen */
|
|
2600
|
+
greeting?: string;
|
|
2601
|
+
/** Subtitle on the welcome screen */
|
|
2602
|
+
subtitle?: string;
|
|
2603
|
+
/** Conversation starters */
|
|
2604
|
+
starters?: ChatWidgetStarter[];
|
|
2605
|
+
/** Input placeholder */
|
|
2606
|
+
placeholder?: string;
|
|
2607
|
+
/** Position of the bubble */
|
|
2608
|
+
position?: "bottom-right" | "bottom-left";
|
|
2609
|
+
/** Start with the panel open */
|
|
2610
|
+
defaultOpen?: boolean;
|
|
2611
|
+
/** Poll interval in ms (default: 3000) */
|
|
2612
|
+
pollInterval?: number;
|
|
2613
|
+
className?: string;
|
|
2614
|
+
classNames?: ChatWidgetClassNames;
|
|
2615
|
+
}
|
|
2616
|
+
declare function ChatWidget({ client: clientProp, businessName, greeting, subtitle, starters, placeholder, position, defaultOpen, pollInterval, className, classNames, }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
|
|
2617
|
+
|
|
2618
|
+
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, 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, ChatWidget, type ChatWidgetClassNames, type ChatWidgetProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, 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, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, 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, 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, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, 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 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 UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useChat, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|