@propeller-commerce/propeller-v2-react-ui 0.25.0 → 0.26.1
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/CHANGELOG.md +70 -0
- package/dist/index.cjs +380 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +168 -6
- package/dist/index.d.ts +168 -6
- package/dist/index.js +375 -46
- package/dist/index.js.map +1 -1
- package/dist/pure.cjs +2 -1
- package/dist/pure.cjs.map +1 -1
- package/dist/pure.d.cts +11 -3
- package/dist/pure.d.ts +11 -3
- package/dist/pure.js +2 -1
- package/dist/pure.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Services, ShopMode, UserMode, PriceComponentProps, StockComponentProps,
|
|
|
3
3
|
export * from '@propeller-commerce/propeller-v2-core-ui';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
6
|
-
import { GraphQLClient, Contact, Customer, Cart, CartMainItem, Product, Cluster, AddressType, Gender, YesNo, Address, MagicTokenCreateInput, MagicToken, TransformationsInput, MediaImageProductSearchInput, CartProcessResponse, Crossupsell, CartUpdateAddressInput, CartUpdateInput, CartAddressType, ClusterConfig, Company, CompanyVariables, PurchaseAuthorizationConfigCreateInput, PurchaseAuthorizationConfigUpdateInput, FavoriteList, DateSearchInput, DecimalSearchInput, OrderSortInput, OrderType, OrderSearchFields, Order, ProductTextFilterInput, AttributeFilter, ProductsResponse, Category, SparePart, ProductSortField, SortOrder, SparePartsResponse, SparePartsMachine, CrossupsellType, AttributeResult, RegisterContactInput as RegisterContactInput$1, PurchaseAuthorizationConfig, CartChildItemInput, CartAddress, WarehouseAddress, OrderAddress, CartBaseItem, CartCarrier, CartPaymethod, ClusterOption, ProductInventory, OrderItem, ProductPrice, Bundle, PaginatedMediaDocumentResponse, PaginatedMediaVideoResponse } from '@propeller-commerce/propeller-sdk-v2';
|
|
6
|
+
import { GraphQLClient, Contact, Customer, Cart, CartMainItem, Product, Cluster, AddressType, Gender, YesNo, Address, MagicTokenCreateInput, MagicToken, TransformationsInput, MediaImageProductSearchInput, CartProcessResponse, Crossupsell, CartUpdateAddressInput, CartUpdateInput, CartAddressType, ClusterConfig, Company, CompanyVariables, PurchaseAuthorizationConfigCreateInput, PurchaseAuthorizationConfigUpdateInput, FavoriteList, DateSearchInput, DecimalSearchInput, OrderSortInput, OrderType, OrderSearchFields, Order, ProductTextFilterInput, AttributeFilter, ProductsResponse, Category, PriceDisplay, SparePart, ProductSortField, SortOrder, SparePartsResponse, SparePartsMachine, CrossupsellType, AttributeResult, RegisterContactInput as RegisterContactInput$1, PurchaseAuthorizationConfig, CartChildItemInput, CartAddress, WarehouseAddress, OrderAddress, CartBaseItem, CartCarrier, CartPaymethod, ClusterOption, ProductInventory, OrderItem, ProductPrice, Bundle, PaginatedMediaDocumentResponse, PaginatedMediaVideoResponse } from '@propeller-commerce/propeller-sdk-v2';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Tier 1 — application-wide infrastructure. Bound by `<PropellerDepsProvider>`
|
|
@@ -1550,6 +1550,8 @@ interface QuickOrderMatch {
|
|
|
1550
1550
|
minQuantity: number;
|
|
1551
1551
|
/** Thumbnail URL, if any. */
|
|
1552
1552
|
imageUrl: string;
|
|
1553
|
+
/** Price is quoted on request — not orderable through a bulk flow. */
|
|
1554
|
+
priceOnRequest: boolean;
|
|
1553
1555
|
}
|
|
1554
1556
|
/** One line a caller submits to be added to the cart. */
|
|
1555
1557
|
interface QuickOrderLine {
|
|
@@ -1639,6 +1641,95 @@ interface UseQuickOrderReturn {
|
|
|
1639
1641
|
*/
|
|
1640
1642
|
declare function useQuickOrder(options: UseQuickOrderOptions): UseQuickOrderReturn;
|
|
1641
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* The price-request list: products whose price is quoted rather than published.
|
|
1646
|
+
*
|
|
1647
|
+
* A parallel basket, deliberately not the cart. A quoted product has no price
|
|
1648
|
+
* to total, cannot be paid for and must not reach checkout, so mixing the two
|
|
1649
|
+
* would put an unpriced line into a payable order. Items are collected here,
|
|
1650
|
+
* then sent as one request.
|
|
1651
|
+
*
|
|
1652
|
+
* Pure list operations over a plain array — persistence and delivery belong to
|
|
1653
|
+
* the host (see `usePriceRequest`).
|
|
1654
|
+
*/
|
|
1655
|
+
/** One product on the list. Mirrors what the request form needs to render. */
|
|
1656
|
+
interface PriceRequestItem {
|
|
1657
|
+
/** Product id — the identity used for add/remove. */
|
|
1658
|
+
productId: number;
|
|
1659
|
+
/** SKU, shown in the form's code column. */
|
|
1660
|
+
code: string;
|
|
1661
|
+
/** Localized product name. */
|
|
1662
|
+
name: string;
|
|
1663
|
+
/** Requested quantity, never below `minQuantity`. */
|
|
1664
|
+
quantity: number;
|
|
1665
|
+
/** Minimum order quantity (defaults to 1). */
|
|
1666
|
+
minQuantity: number;
|
|
1667
|
+
/** Order unit/step (defaults to 1). */
|
|
1668
|
+
unit: number;
|
|
1669
|
+
}
|
|
1670
|
+
/** Is this product already on the list? Identity is the SKU, as in the form. */
|
|
1671
|
+
declare function containsItem(list: PriceRequestItem[], code: string): boolean;
|
|
1672
|
+
/** Add a product unless its code is already listed. Returns a new list. */
|
|
1673
|
+
declare function addItem(list: PriceRequestItem[], item: PriceRequestItem): PriceRequestItem[];
|
|
1674
|
+
/** Drop a product by code. Returns a new list. */
|
|
1675
|
+
declare function removeItem(list: PriceRequestItem[], code: string): PriceRequestItem[];
|
|
1676
|
+
/** Set a quantity, floored at the item's minimum. Returns a new list. */
|
|
1677
|
+
declare function setItemQuantity(list: PriceRequestItem[], code: string, quantity: number): PriceRequestItem[];
|
|
1678
|
+
|
|
1679
|
+
declare const PRICE_REQUEST_STORAGE_KEY = "propeller_price_request";
|
|
1680
|
+
interface UsePriceRequestOptions {
|
|
1681
|
+
/**
|
|
1682
|
+
* Sends the finished request. Receives the list and the shopper's comment;
|
|
1683
|
+
* resolve to report success. Supplied by the host — the API has no mutation
|
|
1684
|
+
* for this.
|
|
1685
|
+
*/
|
|
1686
|
+
onSubmit?: (items: PriceRequestItem[], comment: string) => Promise<void> | void;
|
|
1687
|
+
/** Overrides the localStorage key, for hosts running several shops per origin. */
|
|
1688
|
+
storageKey?: string;
|
|
1689
|
+
}
|
|
1690
|
+
interface UsePriceRequestReturn {
|
|
1691
|
+
items: PriceRequestItem[];
|
|
1692
|
+
/** False on the server and during hydration, so callers can hold their label. */
|
|
1693
|
+
ready: boolean;
|
|
1694
|
+
count: number;
|
|
1695
|
+
/** Adds a product unless its code is already listed. Returns false when it was. */
|
|
1696
|
+
add: (item: PriceRequestItem) => boolean;
|
|
1697
|
+
remove: (code: string) => void;
|
|
1698
|
+
setQuantity: (code: string, quantity: number) => void;
|
|
1699
|
+
clear: () => void;
|
|
1700
|
+
has: (code: string) => boolean;
|
|
1701
|
+
/** Sends the list via `onSubmit`, clearing it only on success. */
|
|
1702
|
+
submit: (comment: string) => Promise<boolean>;
|
|
1703
|
+
submitting: boolean;
|
|
1704
|
+
error: string | null;
|
|
1705
|
+
}
|
|
1706
|
+
declare function usePriceRequest(options?: UsePriceRequestOptions): UsePriceRequestReturn;
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Does this product carry a price the shopper cannot see?
|
|
1710
|
+
*
|
|
1711
|
+
* `priceData.display === 'ON_REQUEST'` means the catalogue holds no price the
|
|
1712
|
+
* customer may be quoted: `price.gross`/`price.net` are still populated, almost
|
|
1713
|
+
* always with 0, so anything that renders them unguarded shows "€ 0,00" next to
|
|
1714
|
+
* a working add-to-cart button.
|
|
1715
|
+
*
|
|
1716
|
+
* Kept separate from the components because both packages test pure logic in
|
|
1717
|
+
* `node` and cannot mount an SFC.
|
|
1718
|
+
*/
|
|
1719
|
+
|
|
1720
|
+
/** A product-ish record carrying the price metadata this reads. */
|
|
1721
|
+
interface PriceOnRequestInput {
|
|
1722
|
+
priceData?: {
|
|
1723
|
+
display?: PriceDisplay | string | null;
|
|
1724
|
+
} | null;
|
|
1725
|
+
defaultProduct?: PriceOnRequestInput | null;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* Clusters answer for their default product: the card shows that product's
|
|
1729
|
+
* price, so it is that product's display mode that decides.
|
|
1730
|
+
*/
|
|
1731
|
+
declare function isPriceOnRequest(product: PriceOnRequestInput | null | undefined): boolean;
|
|
1732
|
+
|
|
1642
1733
|
/**
|
|
1643
1734
|
* useSpareParts (React) — a machine node's spare-parts list.
|
|
1644
1735
|
*
|
|
@@ -5875,6 +5966,62 @@ interface OrderListProps {
|
|
|
5875
5966
|
*/
|
|
5876
5967
|
declare function OrderList(rawProps: OrderListProps): React$1.JSX.Element;
|
|
5877
5968
|
|
|
5969
|
+
/**
|
|
5970
|
+
* @rsc-blocked — Client-only component: interactive state (useState).
|
|
5971
|
+
*/
|
|
5972
|
+
|
|
5973
|
+
interface PriceRequestListProps {
|
|
5974
|
+
/** The collected products. Pass `items` from `usePriceRequest`. */
|
|
5975
|
+
items: PriceRequestItem[];
|
|
5976
|
+
/** Drops a product from the list. */
|
|
5977
|
+
onRemove?: (code: string) => void;
|
|
5978
|
+
/** Changes a requested quantity. */
|
|
5979
|
+
onQuantityChange?: (code: string, quantity: number) => void;
|
|
5980
|
+
/** Sends the request. Resolves true on success. */
|
|
5981
|
+
onSubmit?: (comment: string) => Promise<boolean> | boolean;
|
|
5982
|
+
/** True while the request is in flight. */
|
|
5983
|
+
submitting?: boolean;
|
|
5984
|
+
/**
|
|
5985
|
+
* Override any UI string. Keys: `title`, `colCode`, `colName`, `colQuantity`,
|
|
5986
|
+
* `comments`, `send`, `sending`, `empty`, `remove`, `sent`.
|
|
5987
|
+
*/
|
|
5988
|
+
labels?: Record<string, string>;
|
|
5989
|
+
/** Extra CSS class applied to the root element. */
|
|
5990
|
+
className?: string;
|
|
5991
|
+
}
|
|
5992
|
+
/**
|
|
5993
|
+
* The price-request list: products awaiting a quote, with quantities and one
|
|
5994
|
+
* comment, submitted together.
|
|
5995
|
+
*/
|
|
5996
|
+
declare function PriceRequestList(props: PriceRequestListProps): React$1.JSX.Element;
|
|
5997
|
+
|
|
5998
|
+
/**
|
|
5999
|
+
* @rsc-blocked — Client-only component: takes click handlers.
|
|
6000
|
+
*/
|
|
6001
|
+
|
|
6002
|
+
interface RequestPriceButtonProps {
|
|
6003
|
+
/** Adds the product to the price-request list. */
|
|
6004
|
+
onRequestPrice?: () => void;
|
|
6005
|
+
/**
|
|
6006
|
+
* Sends an anonymous visitor to log in. A quote is addressed to someone, so
|
|
6007
|
+
* the list is only offered to signed-in shoppers.
|
|
6008
|
+
*/
|
|
6009
|
+
onLoginClick?: () => void;
|
|
6010
|
+
/** True once the product is on the list. */
|
|
6011
|
+
added?: boolean;
|
|
6012
|
+
/** Whether a session exists. Anonymous visitors get the log-in action. */
|
|
6013
|
+
isAuthenticated?: boolean;
|
|
6014
|
+
/** Translated labels. Keys: `requestPrice`, `priceRequested`. */
|
|
6015
|
+
labels?: Record<string, string>;
|
|
6016
|
+
/** Extra classes appended to the button. */
|
|
6017
|
+
className?: string;
|
|
6018
|
+
}
|
|
6019
|
+
/**
|
|
6020
|
+
* "Request a price" — shown in place of add-to-cart when a product's price is
|
|
6021
|
+
* quoted rather than published.
|
|
6022
|
+
*/
|
|
6023
|
+
declare function RequestPriceButton(props: RequestPriceButtonProps): React$1.JSX.Element;
|
|
6024
|
+
|
|
5878
6025
|
/**
|
|
5879
6026
|
* @rsc-blocked — Client-only component: interactive state (useState), typeahead,
|
|
5880
6027
|
* file upload. Must render inside (or below) a Client Component boundary; cannot
|
|
@@ -5988,6 +6135,7 @@ interface QuickOrderProps {
|
|
|
5988
6135
|
adding?: string;
|
|
5989
6136
|
noResults?: string;
|
|
5990
6137
|
alreadyInList?: string;
|
|
6138
|
+
priceOnRequest?: string;
|
|
5991
6139
|
noItems?: string;
|
|
5992
6140
|
missingCodes?: string;
|
|
5993
6141
|
remove?: string;
|
|
@@ -6815,6 +6963,10 @@ interface ProductInfoProps {
|
|
|
6815
6963
|
* add-to-cart in a semi-closed portal. The host owns navigation.
|
|
6816
6964
|
*/
|
|
6817
6965
|
onLoginClick?: () => void;
|
|
6966
|
+
/** Adds a quoted-price product to the price-request list. */
|
|
6967
|
+
onRequestPrice?: (product: Product) => void;
|
|
6968
|
+
/** True once this product is on the price-request list. */
|
|
6969
|
+
priceRequestAdded?: boolean;
|
|
6818
6970
|
beforeContent?: (product: Product) => React$1.ReactNode;
|
|
6819
6971
|
afterContent?: (product: Product) => React$1.ReactNode;
|
|
6820
6972
|
/** Compound mode opt-in. When provided, ProductInfo renders the compound
|
|
@@ -6862,7 +7014,7 @@ declare function ProductInfoStock(props?: {
|
|
|
6862
7014
|
/** Add-to-cart control. */
|
|
6863
7015
|
declare function ProductInfoAddToCart(props?: {
|
|
6864
7016
|
className?: string;
|
|
6865
|
-
}): React$1.JSX.Element;
|
|
7017
|
+
}): React$1.JSX.Element | null;
|
|
6866
7018
|
/** Bundles section. */
|
|
6867
7019
|
declare function ProductInfoBundles(props?: {
|
|
6868
7020
|
className?: string;
|
|
@@ -6906,9 +7058,10 @@ interface ProductPriceProps {
|
|
|
6906
7058
|
language?: string;
|
|
6907
7059
|
/**
|
|
6908
7060
|
* ProductPrice object from the product.
|
|
6909
|
-
* Obtain from `product.price`.
|
|
7061
|
+
* Obtain from `product.price`. Omitted only when `priceOnRequest` renders in
|
|
7062
|
+
* its place.
|
|
6910
7063
|
*/
|
|
6911
|
-
price
|
|
7064
|
+
price?: ProductPrice;
|
|
6912
7065
|
/** Currency symbol to display. Defaults to '€'. */
|
|
6913
7066
|
currency?: string;
|
|
6914
7067
|
/**
|
|
@@ -6938,9 +7091,16 @@ interface ProductPriceProps {
|
|
|
6938
7091
|
options?: ClusterOption[];
|
|
6939
7092
|
/** Active option product selections — pass Object.values(selectedOptionProducts). Price updates on every change. */
|
|
6940
7093
|
selectedOptionProducts?: Product[];
|
|
7094
|
+
/**
|
|
7095
|
+
* Render the price-on-request label instead of an amount.
|
|
7096
|
+
* Derive with `isPriceOnRequest(product)` — `price.gross`/`net` are still
|
|
7097
|
+
* populated (usually 0) for these products, so an unguarded render shows a
|
|
7098
|
+
* real-looking € 0,00.
|
|
7099
|
+
*/
|
|
7100
|
+
priceOnRequest?: boolean;
|
|
6941
7101
|
/**
|
|
6942
7102
|
* Override any UI string.
|
|
6943
|
-
* Available keys: inclTax, exclTax, loginToSeePrices
|
|
7103
|
+
* Available keys: inclTax, exclTax, loginToSeePrices, priceOnRequest
|
|
6944
7104
|
*/
|
|
6945
7105
|
labels?: Record<string, string>;
|
|
6946
7106
|
/**
|
|
@@ -7606,6 +7766,8 @@ interface SearchBarResult {
|
|
|
7606
7766
|
url?: string;
|
|
7607
7767
|
/** Whether this is a cluster (vs product) */
|
|
7608
7768
|
isCluster?: boolean;
|
|
7769
|
+
/** Price is quoted on request — the row shows a label instead of an amount. */
|
|
7770
|
+
priceOnRequest?: boolean;
|
|
7609
7771
|
}
|
|
7610
7772
|
interface SearchBarProps {
|
|
7611
7773
|
/** Propeller SDK GraphQL client. Resolved from PropellerProvider when omitted. */
|
|
@@ -7797,4 +7959,4 @@ declare function DefaultProductBadges(props: BadgesComponentProps): React__defau
|
|
|
7797
7959
|
*/
|
|
7798
7960
|
declare function DefaultProductSurcharges(props: ProductSurchargesComponentProps): React__default.JSX.Element | null;
|
|
7799
7961
|
|
|
7800
|
-
export { AccountIconAndMenu, type AccountIconAndMenuProps, ActionCode, type ActionCodeProps, type AddContactFormState, type AddItemOptions, _default$1 as AddToCart, type AddToCartProps, AddToFavorite, type AddToFavoriteProps, AddressCardExport as AddressCard, type AddressCardProps, type AddressInput, AddressSelector, type AddressSelectorProps, type AttributeDisplayItem, type AttributeGroup, BreadcrumbsWithProvider as Breadcrumbs, type BreadcrumbsProps, CartBonusItems, type CartBonusItemsProps, CartCarriers, type CartCarriersProps, CartIconAndSidebar, type CartIconAndSidebarProps, type CartInitConfig, CartItemExport as CartItem, type CartItemProps, CartOverview, type CartOverviewProps, CartPaymethods, type CartPaymethodsProps, CartSummary, type CartSummaryProps, CategoryDescription, type CategoryDescriptionProps, CategoryShortDescriptionWithProvider as CategoryShortDescription, type CategoryShortDescriptionProps, ClusterCardExport as ClusterCard, type ClusterCardProps, ClusterConfigurator, type ClusterConfiguratorProps, ClusterInfo, type ClusterInfoProps, ClusterOptions, type ClusterOptionsProps, CompanySwitcher, type CompanySwitcherProps, type ConfiguredSetting, _default$1 as DefaultAddToCart, AddToFavorite as DefaultAddToFavorite, _default as DefaultItemStock, DefaultProductBadges, ProductBulkPrices as DefaultProductBulkPrices, ProductBundles as DefaultProductBundles, DefaultProductImage, ProductPriceDisplay as DefaultProductPrice, DefaultProductSurcharges, DeliveryDate, type DeliveryDateProps, FavoriteListDetails, type FavoriteListDetailsProps, type FavoriteListFormData, FavoriteListItemExport as FavoriteListItem, type FavoriteListItemProps, FavoriteLists, type FavoriteListsProps, type FetchActiveCartConfig, type FetchCrossupsellsInput, ForgotPassword, type ForgotPasswordProps, type GetCrossupsellsOptions, GridFilters, GridFiltersPanel, type GridFiltersPanelProps, type GridFiltersProps, GridPagination, type GridPaginationProps, GridTitleWithProvider as GridTitle, type GridTitleProps, GridToolbar, type GridToolbarProps, _default as ItemStock, type ItemStockProps, ItemsOverview, type ItemsOverviewProps, LoginFormExport as LoginForm, type LoginFormProps, LoginToOrderButton, type LoginToOrderButtonProps, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, type MenuRenderContext, type MenuStyle, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummaryWithProvider as OrderSummary, type OrderSummaryProps, OrderTotalsWithProvider as OrderTotals, type OrderTotalsProps, type PlaceOrderOptions, PriceToggle, type PriceToggleProps, ProductBulkPricesWithProvider as ProductBulkPrices, type ProductBulkPricesProps, ProductBundles, type ProductBundlesProps, ProductCard, type ProductCardProps, ProductDescription, type ProductDescriptionProps, ProductDownloads, type ProductDownloadsProps, ProductGallery, type ProductGalleryProps, ProductGridCompound as ProductGrid, type ProductGridConfig, ProductGridConfigProvider, type ProductGridProps, ProductInfoExport as ProductInfo, type ProductInfoProps, ProductPriceWithProvider as ProductPrice, type ProductPriceProps, ProductShortDescriptionWithProvider as ProductShortDescription, type ProductShortDescriptionProps, ProductSlider, type ProductSliderProps, ProductSpecifications, type ProductSpecificationsProps, ProductTabs, type ProductTabsProps, ProductVideos, type ProductVideosProps, type PropellerDeps, PropellerDepsProvider, type PropellerDepsProviderProps, type PropellerInfra, PropellerProvider, type PropellerProviderProps, type PropellerScope, PurchaseAuthorizationConfigurator, type PurchaseAuthorizationConfiguratorProps, PurchaseAuthorizationRequests, type PurchaseAuthorizationRequestsProps, QuickOrder, type QuickOrderLine, type QuickOrderMatch, type QuickOrderProps, type QuickOrderSubmitResult, type QuickOrderUploadLine, QuoteActions, type QuoteActionsProps, RegisterForm, type RegisterFormProps, type ResolveSpec, type RowEdit, SearchBar, type SearchBarProps, type UseAddressOptions, type UseAddressReturn, type LoginResult as UseAuthLoginResult, type UseAuthOptions, type RegisterContactInput as UseAuthRegisterContactInput, type RegisterCustomerInput as UseAuthRegisterCustomerInput, type UseAuthReturn, type UseCartOptions, type UseCartReturn, type UseCheckoutOptions, type UseCheckoutReturn, type UseClusterConfiguratorOptions, type UseClusterConfiguratorReturn, type UseCompanyOptions, type UseCompanyReturn, type UseFavoritesOptions, type UseFavoritesReturn, type UseMachinesOptions, type UseMachinesReturn, type UseMenuOptions, type UseMenuReturn, type UseOrdersOptions, type UseOrdersReturn, type BundleItem as UseProductBundlesBundleItem, type UseProductBundlesOptions, type UseProductBundlesReturn, type UseProductInfoOptions, type UseProductInfoReturn, type UseProductSearchOptions, type UseProductSearchReturn, type UseProductSliderOptions, type UseProductSliderReturn, type UseProductSpecsOptions, type UseProductSpecsReturn, type UsePurchaseAuthorizationConfiguratorOptions, type UsePurchaseAuthorizationConfiguratorReturn, type UsePurchaseAuthorizationRequestsOptions, type UsePurchaseAuthorizationRequestsReturn, type UseQuickOrderOptions, type UseQuickOrderReturn, type UseSparePartsOptions, type UseSparePartsReturn, UserDetails, type UserDetailsProps, buildRootMachinesQuery, fetchActiveCart, initCart, mergeAnonymousCart, useAddress, useAuth, useCart, useCheckout, useClusterConfigurator, useCompany, useFavorites, useInfraProps, useMachines, useMenu, useOrders, useProductBundles, useProductGridConfig, useProductInfo, useProductSearch, useProductSlider, useProductSpecs, usePropellerContext, usePropellerDeps, usePropellerScope, usePurchaseAuthorizationConfigurator, usePurchaseAuthorizationRequests, useQuickOrder, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|
|
7962
|
+
export { AccountIconAndMenu, type AccountIconAndMenuProps, ActionCode, type ActionCodeProps, type AddContactFormState, type AddItemOptions, _default$1 as AddToCart, type AddToCartProps, AddToFavorite, type AddToFavoriteProps, AddressCardExport as AddressCard, type AddressCardProps, type AddressInput, AddressSelector, type AddressSelectorProps, type AttributeDisplayItem, type AttributeGroup, BreadcrumbsWithProvider as Breadcrumbs, type BreadcrumbsProps, CartBonusItems, type CartBonusItemsProps, CartCarriers, type CartCarriersProps, CartIconAndSidebar, type CartIconAndSidebarProps, type CartInitConfig, CartItemExport as CartItem, type CartItemProps, CartOverview, type CartOverviewProps, CartPaymethods, type CartPaymethodsProps, CartSummary, type CartSummaryProps, CategoryDescription, type CategoryDescriptionProps, CategoryShortDescriptionWithProvider as CategoryShortDescription, type CategoryShortDescriptionProps, ClusterCardExport as ClusterCard, type ClusterCardProps, ClusterConfigurator, type ClusterConfiguratorProps, ClusterInfo, type ClusterInfoProps, ClusterOptions, type ClusterOptionsProps, CompanySwitcher, type CompanySwitcherProps, type ConfiguredSetting, _default$1 as DefaultAddToCart, AddToFavorite as DefaultAddToFavorite, _default as DefaultItemStock, DefaultProductBadges, ProductBulkPrices as DefaultProductBulkPrices, ProductBundles as DefaultProductBundles, DefaultProductImage, ProductPriceDisplay as DefaultProductPrice, DefaultProductSurcharges, DeliveryDate, type DeliveryDateProps, FavoriteListDetails, type FavoriteListDetailsProps, type FavoriteListFormData, FavoriteListItemExport as FavoriteListItem, type FavoriteListItemProps, FavoriteLists, type FavoriteListsProps, type FetchActiveCartConfig, type FetchCrossupsellsInput, ForgotPassword, type ForgotPasswordProps, type GetCrossupsellsOptions, GridFilters, GridFiltersPanel, type GridFiltersPanelProps, type GridFiltersProps, GridPagination, type GridPaginationProps, GridTitleWithProvider as GridTitle, type GridTitleProps, GridToolbar, type GridToolbarProps, _default as ItemStock, type ItemStockProps, ItemsOverview, type ItemsOverviewProps, LoginFormExport as LoginForm, type LoginFormProps, LoginToOrderButton, type LoginToOrderButtonProps, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, type MenuRenderContext, type MenuStyle, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummaryWithProvider as OrderSummary, type OrderSummaryProps, OrderTotalsWithProvider as OrderTotals, type OrderTotalsProps, PRICE_REQUEST_STORAGE_KEY, type PlaceOrderOptions, type PriceRequestItem, PriceRequestList, type PriceRequestListProps, PriceToggle, type PriceToggleProps, ProductBulkPricesWithProvider as ProductBulkPrices, type ProductBulkPricesProps, ProductBundles, type ProductBundlesProps, ProductCard, type ProductCardProps, ProductDescription, type ProductDescriptionProps, ProductDownloads, type ProductDownloadsProps, ProductGallery, type ProductGalleryProps, ProductGridCompound as ProductGrid, type ProductGridConfig, ProductGridConfigProvider, type ProductGridProps, ProductInfoExport as ProductInfo, type ProductInfoProps, ProductPriceWithProvider as ProductPrice, type ProductPriceProps, ProductShortDescriptionWithProvider as ProductShortDescription, type ProductShortDescriptionProps, ProductSlider, type ProductSliderProps, ProductSpecifications, type ProductSpecificationsProps, ProductTabs, type ProductTabsProps, ProductVideos, type ProductVideosProps, type PropellerDeps, PropellerDepsProvider, type PropellerDepsProviderProps, type PropellerInfra, PropellerProvider, type PropellerProviderProps, type PropellerScope, PurchaseAuthorizationConfigurator, type PurchaseAuthorizationConfiguratorProps, PurchaseAuthorizationRequests, type PurchaseAuthorizationRequestsProps, QuickOrder, type QuickOrderLine, type QuickOrderMatch, type QuickOrderProps, type QuickOrderSubmitResult, type QuickOrderUploadLine, QuoteActions, type QuoteActionsProps, RegisterForm, type RegisterFormProps, RequestPriceButton, type RequestPriceButtonProps, type ResolveSpec, type RowEdit, SearchBar, type SearchBarProps, type UseAddressOptions, type UseAddressReturn, type LoginResult as UseAuthLoginResult, type UseAuthOptions, type RegisterContactInput as UseAuthRegisterContactInput, type RegisterCustomerInput as UseAuthRegisterCustomerInput, type UseAuthReturn, type UseCartOptions, type UseCartReturn, type UseCheckoutOptions, type UseCheckoutReturn, type UseClusterConfiguratorOptions, type UseClusterConfiguratorReturn, type UseCompanyOptions, type UseCompanyReturn, type UseFavoritesOptions, type UseFavoritesReturn, type UseMachinesOptions, type UseMachinesReturn, type UseMenuOptions, type UseMenuReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePriceRequestOptions, type UsePriceRequestReturn, type BundleItem as UseProductBundlesBundleItem, type UseProductBundlesOptions, type UseProductBundlesReturn, type UseProductInfoOptions, type UseProductInfoReturn, type UseProductSearchOptions, type UseProductSearchReturn, type UseProductSliderOptions, type UseProductSliderReturn, type UseProductSpecsOptions, type UseProductSpecsReturn, type UsePurchaseAuthorizationConfiguratorOptions, type UsePurchaseAuthorizationConfiguratorReturn, type UsePurchaseAuthorizationRequestsOptions, type UsePurchaseAuthorizationRequestsReturn, type UseQuickOrderOptions, type UseQuickOrderReturn, type UseSparePartsOptions, type UseSparePartsReturn, UserDetails, type UserDetailsProps, addItem as addPriceRequestItem, buildRootMachinesQuery, fetchActiveCart, initCart, isPriceOnRequest, mergeAnonymousCart, containsItem as priceRequestContains, removeItem as removePriceRequestItem, setItemQuantity as setPriceRequestItemQuantity, useAddress, useAuth, useCart, useCheckout, useClusterConfigurator, useCompany, useFavorites, useInfraProps, useMachines, useMenu, useOrders, usePriceRequest, useProductBundles, useProductGridConfig, useProductInfo, useProductSearch, useProductSlider, useProductSpecs, usePropellerContext, usePropellerDeps, usePropellerScope, usePurchaseAuthorizationConfigurator, usePurchaseAuthorizationRequests, useQuickOrder, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Services, ShopMode, UserMode, PriceComponentProps, StockComponentProps,
|
|
|
3
3
|
export * from '@propeller-commerce/propeller-v2-core-ui';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
6
|
-
import { GraphQLClient, Contact, Customer, Cart, CartMainItem, Product, Cluster, AddressType, Gender, YesNo, Address, MagicTokenCreateInput, MagicToken, TransformationsInput, MediaImageProductSearchInput, CartProcessResponse, Crossupsell, CartUpdateAddressInput, CartUpdateInput, CartAddressType, ClusterConfig, Company, CompanyVariables, PurchaseAuthorizationConfigCreateInput, PurchaseAuthorizationConfigUpdateInput, FavoriteList, DateSearchInput, DecimalSearchInput, OrderSortInput, OrderType, OrderSearchFields, Order, ProductTextFilterInput, AttributeFilter, ProductsResponse, Category, SparePart, ProductSortField, SortOrder, SparePartsResponse, SparePartsMachine, CrossupsellType, AttributeResult, RegisterContactInput as RegisterContactInput$1, PurchaseAuthorizationConfig, CartChildItemInput, CartAddress, WarehouseAddress, OrderAddress, CartBaseItem, CartCarrier, CartPaymethod, ClusterOption, ProductInventory, OrderItem, ProductPrice, Bundle, PaginatedMediaDocumentResponse, PaginatedMediaVideoResponse } from '@propeller-commerce/propeller-sdk-v2';
|
|
6
|
+
import { GraphQLClient, Contact, Customer, Cart, CartMainItem, Product, Cluster, AddressType, Gender, YesNo, Address, MagicTokenCreateInput, MagicToken, TransformationsInput, MediaImageProductSearchInput, CartProcessResponse, Crossupsell, CartUpdateAddressInput, CartUpdateInput, CartAddressType, ClusterConfig, Company, CompanyVariables, PurchaseAuthorizationConfigCreateInput, PurchaseAuthorizationConfigUpdateInput, FavoriteList, DateSearchInput, DecimalSearchInput, OrderSortInput, OrderType, OrderSearchFields, Order, ProductTextFilterInput, AttributeFilter, ProductsResponse, Category, PriceDisplay, SparePart, ProductSortField, SortOrder, SparePartsResponse, SparePartsMachine, CrossupsellType, AttributeResult, RegisterContactInput as RegisterContactInput$1, PurchaseAuthorizationConfig, CartChildItemInput, CartAddress, WarehouseAddress, OrderAddress, CartBaseItem, CartCarrier, CartPaymethod, ClusterOption, ProductInventory, OrderItem, ProductPrice, Bundle, PaginatedMediaDocumentResponse, PaginatedMediaVideoResponse } from '@propeller-commerce/propeller-sdk-v2';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Tier 1 — application-wide infrastructure. Bound by `<PropellerDepsProvider>`
|
|
@@ -1550,6 +1550,8 @@ interface QuickOrderMatch {
|
|
|
1550
1550
|
minQuantity: number;
|
|
1551
1551
|
/** Thumbnail URL, if any. */
|
|
1552
1552
|
imageUrl: string;
|
|
1553
|
+
/** Price is quoted on request — not orderable through a bulk flow. */
|
|
1554
|
+
priceOnRequest: boolean;
|
|
1553
1555
|
}
|
|
1554
1556
|
/** One line a caller submits to be added to the cart. */
|
|
1555
1557
|
interface QuickOrderLine {
|
|
@@ -1639,6 +1641,95 @@ interface UseQuickOrderReturn {
|
|
|
1639
1641
|
*/
|
|
1640
1642
|
declare function useQuickOrder(options: UseQuickOrderOptions): UseQuickOrderReturn;
|
|
1641
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* The price-request list: products whose price is quoted rather than published.
|
|
1646
|
+
*
|
|
1647
|
+
* A parallel basket, deliberately not the cart. A quoted product has no price
|
|
1648
|
+
* to total, cannot be paid for and must not reach checkout, so mixing the two
|
|
1649
|
+
* would put an unpriced line into a payable order. Items are collected here,
|
|
1650
|
+
* then sent as one request.
|
|
1651
|
+
*
|
|
1652
|
+
* Pure list operations over a plain array — persistence and delivery belong to
|
|
1653
|
+
* the host (see `usePriceRequest`).
|
|
1654
|
+
*/
|
|
1655
|
+
/** One product on the list. Mirrors what the request form needs to render. */
|
|
1656
|
+
interface PriceRequestItem {
|
|
1657
|
+
/** Product id — the identity used for add/remove. */
|
|
1658
|
+
productId: number;
|
|
1659
|
+
/** SKU, shown in the form's code column. */
|
|
1660
|
+
code: string;
|
|
1661
|
+
/** Localized product name. */
|
|
1662
|
+
name: string;
|
|
1663
|
+
/** Requested quantity, never below `minQuantity`. */
|
|
1664
|
+
quantity: number;
|
|
1665
|
+
/** Minimum order quantity (defaults to 1). */
|
|
1666
|
+
minQuantity: number;
|
|
1667
|
+
/** Order unit/step (defaults to 1). */
|
|
1668
|
+
unit: number;
|
|
1669
|
+
}
|
|
1670
|
+
/** Is this product already on the list? Identity is the SKU, as in the form. */
|
|
1671
|
+
declare function containsItem(list: PriceRequestItem[], code: string): boolean;
|
|
1672
|
+
/** Add a product unless its code is already listed. Returns a new list. */
|
|
1673
|
+
declare function addItem(list: PriceRequestItem[], item: PriceRequestItem): PriceRequestItem[];
|
|
1674
|
+
/** Drop a product by code. Returns a new list. */
|
|
1675
|
+
declare function removeItem(list: PriceRequestItem[], code: string): PriceRequestItem[];
|
|
1676
|
+
/** Set a quantity, floored at the item's minimum. Returns a new list. */
|
|
1677
|
+
declare function setItemQuantity(list: PriceRequestItem[], code: string, quantity: number): PriceRequestItem[];
|
|
1678
|
+
|
|
1679
|
+
declare const PRICE_REQUEST_STORAGE_KEY = "propeller_price_request";
|
|
1680
|
+
interface UsePriceRequestOptions {
|
|
1681
|
+
/**
|
|
1682
|
+
* Sends the finished request. Receives the list and the shopper's comment;
|
|
1683
|
+
* resolve to report success. Supplied by the host — the API has no mutation
|
|
1684
|
+
* for this.
|
|
1685
|
+
*/
|
|
1686
|
+
onSubmit?: (items: PriceRequestItem[], comment: string) => Promise<void> | void;
|
|
1687
|
+
/** Overrides the localStorage key, for hosts running several shops per origin. */
|
|
1688
|
+
storageKey?: string;
|
|
1689
|
+
}
|
|
1690
|
+
interface UsePriceRequestReturn {
|
|
1691
|
+
items: PriceRequestItem[];
|
|
1692
|
+
/** False on the server and during hydration, so callers can hold their label. */
|
|
1693
|
+
ready: boolean;
|
|
1694
|
+
count: number;
|
|
1695
|
+
/** Adds a product unless its code is already listed. Returns false when it was. */
|
|
1696
|
+
add: (item: PriceRequestItem) => boolean;
|
|
1697
|
+
remove: (code: string) => void;
|
|
1698
|
+
setQuantity: (code: string, quantity: number) => void;
|
|
1699
|
+
clear: () => void;
|
|
1700
|
+
has: (code: string) => boolean;
|
|
1701
|
+
/** Sends the list via `onSubmit`, clearing it only on success. */
|
|
1702
|
+
submit: (comment: string) => Promise<boolean>;
|
|
1703
|
+
submitting: boolean;
|
|
1704
|
+
error: string | null;
|
|
1705
|
+
}
|
|
1706
|
+
declare function usePriceRequest(options?: UsePriceRequestOptions): UsePriceRequestReturn;
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Does this product carry a price the shopper cannot see?
|
|
1710
|
+
*
|
|
1711
|
+
* `priceData.display === 'ON_REQUEST'` means the catalogue holds no price the
|
|
1712
|
+
* customer may be quoted: `price.gross`/`price.net` are still populated, almost
|
|
1713
|
+
* always with 0, so anything that renders them unguarded shows "€ 0,00" next to
|
|
1714
|
+
* a working add-to-cart button.
|
|
1715
|
+
*
|
|
1716
|
+
* Kept separate from the components because both packages test pure logic in
|
|
1717
|
+
* `node` and cannot mount an SFC.
|
|
1718
|
+
*/
|
|
1719
|
+
|
|
1720
|
+
/** A product-ish record carrying the price metadata this reads. */
|
|
1721
|
+
interface PriceOnRequestInput {
|
|
1722
|
+
priceData?: {
|
|
1723
|
+
display?: PriceDisplay | string | null;
|
|
1724
|
+
} | null;
|
|
1725
|
+
defaultProduct?: PriceOnRequestInput | null;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* Clusters answer for their default product: the card shows that product's
|
|
1729
|
+
* price, so it is that product's display mode that decides.
|
|
1730
|
+
*/
|
|
1731
|
+
declare function isPriceOnRequest(product: PriceOnRequestInput | null | undefined): boolean;
|
|
1732
|
+
|
|
1642
1733
|
/**
|
|
1643
1734
|
* useSpareParts (React) — a machine node's spare-parts list.
|
|
1644
1735
|
*
|
|
@@ -5875,6 +5966,62 @@ interface OrderListProps {
|
|
|
5875
5966
|
*/
|
|
5876
5967
|
declare function OrderList(rawProps: OrderListProps): React$1.JSX.Element;
|
|
5877
5968
|
|
|
5969
|
+
/**
|
|
5970
|
+
* @rsc-blocked — Client-only component: interactive state (useState).
|
|
5971
|
+
*/
|
|
5972
|
+
|
|
5973
|
+
interface PriceRequestListProps {
|
|
5974
|
+
/** The collected products. Pass `items` from `usePriceRequest`. */
|
|
5975
|
+
items: PriceRequestItem[];
|
|
5976
|
+
/** Drops a product from the list. */
|
|
5977
|
+
onRemove?: (code: string) => void;
|
|
5978
|
+
/** Changes a requested quantity. */
|
|
5979
|
+
onQuantityChange?: (code: string, quantity: number) => void;
|
|
5980
|
+
/** Sends the request. Resolves true on success. */
|
|
5981
|
+
onSubmit?: (comment: string) => Promise<boolean> | boolean;
|
|
5982
|
+
/** True while the request is in flight. */
|
|
5983
|
+
submitting?: boolean;
|
|
5984
|
+
/**
|
|
5985
|
+
* Override any UI string. Keys: `title`, `colCode`, `colName`, `colQuantity`,
|
|
5986
|
+
* `comments`, `send`, `sending`, `empty`, `remove`, `sent`.
|
|
5987
|
+
*/
|
|
5988
|
+
labels?: Record<string, string>;
|
|
5989
|
+
/** Extra CSS class applied to the root element. */
|
|
5990
|
+
className?: string;
|
|
5991
|
+
}
|
|
5992
|
+
/**
|
|
5993
|
+
* The price-request list: products awaiting a quote, with quantities and one
|
|
5994
|
+
* comment, submitted together.
|
|
5995
|
+
*/
|
|
5996
|
+
declare function PriceRequestList(props: PriceRequestListProps): React$1.JSX.Element;
|
|
5997
|
+
|
|
5998
|
+
/**
|
|
5999
|
+
* @rsc-blocked — Client-only component: takes click handlers.
|
|
6000
|
+
*/
|
|
6001
|
+
|
|
6002
|
+
interface RequestPriceButtonProps {
|
|
6003
|
+
/** Adds the product to the price-request list. */
|
|
6004
|
+
onRequestPrice?: () => void;
|
|
6005
|
+
/**
|
|
6006
|
+
* Sends an anonymous visitor to log in. A quote is addressed to someone, so
|
|
6007
|
+
* the list is only offered to signed-in shoppers.
|
|
6008
|
+
*/
|
|
6009
|
+
onLoginClick?: () => void;
|
|
6010
|
+
/** True once the product is on the list. */
|
|
6011
|
+
added?: boolean;
|
|
6012
|
+
/** Whether a session exists. Anonymous visitors get the log-in action. */
|
|
6013
|
+
isAuthenticated?: boolean;
|
|
6014
|
+
/** Translated labels. Keys: `requestPrice`, `priceRequested`. */
|
|
6015
|
+
labels?: Record<string, string>;
|
|
6016
|
+
/** Extra classes appended to the button. */
|
|
6017
|
+
className?: string;
|
|
6018
|
+
}
|
|
6019
|
+
/**
|
|
6020
|
+
* "Request a price" — shown in place of add-to-cart when a product's price is
|
|
6021
|
+
* quoted rather than published.
|
|
6022
|
+
*/
|
|
6023
|
+
declare function RequestPriceButton(props: RequestPriceButtonProps): React$1.JSX.Element;
|
|
6024
|
+
|
|
5878
6025
|
/**
|
|
5879
6026
|
* @rsc-blocked — Client-only component: interactive state (useState), typeahead,
|
|
5880
6027
|
* file upload. Must render inside (or below) a Client Component boundary; cannot
|
|
@@ -5988,6 +6135,7 @@ interface QuickOrderProps {
|
|
|
5988
6135
|
adding?: string;
|
|
5989
6136
|
noResults?: string;
|
|
5990
6137
|
alreadyInList?: string;
|
|
6138
|
+
priceOnRequest?: string;
|
|
5991
6139
|
noItems?: string;
|
|
5992
6140
|
missingCodes?: string;
|
|
5993
6141
|
remove?: string;
|
|
@@ -6815,6 +6963,10 @@ interface ProductInfoProps {
|
|
|
6815
6963
|
* add-to-cart in a semi-closed portal. The host owns navigation.
|
|
6816
6964
|
*/
|
|
6817
6965
|
onLoginClick?: () => void;
|
|
6966
|
+
/** Adds a quoted-price product to the price-request list. */
|
|
6967
|
+
onRequestPrice?: (product: Product) => void;
|
|
6968
|
+
/** True once this product is on the price-request list. */
|
|
6969
|
+
priceRequestAdded?: boolean;
|
|
6818
6970
|
beforeContent?: (product: Product) => React$1.ReactNode;
|
|
6819
6971
|
afterContent?: (product: Product) => React$1.ReactNode;
|
|
6820
6972
|
/** Compound mode opt-in. When provided, ProductInfo renders the compound
|
|
@@ -6862,7 +7014,7 @@ declare function ProductInfoStock(props?: {
|
|
|
6862
7014
|
/** Add-to-cart control. */
|
|
6863
7015
|
declare function ProductInfoAddToCart(props?: {
|
|
6864
7016
|
className?: string;
|
|
6865
|
-
}): React$1.JSX.Element;
|
|
7017
|
+
}): React$1.JSX.Element | null;
|
|
6866
7018
|
/** Bundles section. */
|
|
6867
7019
|
declare function ProductInfoBundles(props?: {
|
|
6868
7020
|
className?: string;
|
|
@@ -6906,9 +7058,10 @@ interface ProductPriceProps {
|
|
|
6906
7058
|
language?: string;
|
|
6907
7059
|
/**
|
|
6908
7060
|
* ProductPrice object from the product.
|
|
6909
|
-
* Obtain from `product.price`.
|
|
7061
|
+
* Obtain from `product.price`. Omitted only when `priceOnRequest` renders in
|
|
7062
|
+
* its place.
|
|
6910
7063
|
*/
|
|
6911
|
-
price
|
|
7064
|
+
price?: ProductPrice;
|
|
6912
7065
|
/** Currency symbol to display. Defaults to '€'. */
|
|
6913
7066
|
currency?: string;
|
|
6914
7067
|
/**
|
|
@@ -6938,9 +7091,16 @@ interface ProductPriceProps {
|
|
|
6938
7091
|
options?: ClusterOption[];
|
|
6939
7092
|
/** Active option product selections — pass Object.values(selectedOptionProducts). Price updates on every change. */
|
|
6940
7093
|
selectedOptionProducts?: Product[];
|
|
7094
|
+
/**
|
|
7095
|
+
* Render the price-on-request label instead of an amount.
|
|
7096
|
+
* Derive with `isPriceOnRequest(product)` — `price.gross`/`net` are still
|
|
7097
|
+
* populated (usually 0) for these products, so an unguarded render shows a
|
|
7098
|
+
* real-looking € 0,00.
|
|
7099
|
+
*/
|
|
7100
|
+
priceOnRequest?: boolean;
|
|
6941
7101
|
/**
|
|
6942
7102
|
* Override any UI string.
|
|
6943
|
-
* Available keys: inclTax, exclTax, loginToSeePrices
|
|
7103
|
+
* Available keys: inclTax, exclTax, loginToSeePrices, priceOnRequest
|
|
6944
7104
|
*/
|
|
6945
7105
|
labels?: Record<string, string>;
|
|
6946
7106
|
/**
|
|
@@ -7606,6 +7766,8 @@ interface SearchBarResult {
|
|
|
7606
7766
|
url?: string;
|
|
7607
7767
|
/** Whether this is a cluster (vs product) */
|
|
7608
7768
|
isCluster?: boolean;
|
|
7769
|
+
/** Price is quoted on request — the row shows a label instead of an amount. */
|
|
7770
|
+
priceOnRequest?: boolean;
|
|
7609
7771
|
}
|
|
7610
7772
|
interface SearchBarProps {
|
|
7611
7773
|
/** Propeller SDK GraphQL client. Resolved from PropellerProvider when omitted. */
|
|
@@ -7797,4 +7959,4 @@ declare function DefaultProductBadges(props: BadgesComponentProps): React__defau
|
|
|
7797
7959
|
*/
|
|
7798
7960
|
declare function DefaultProductSurcharges(props: ProductSurchargesComponentProps): React__default.JSX.Element | null;
|
|
7799
7961
|
|
|
7800
|
-
export { AccountIconAndMenu, type AccountIconAndMenuProps, ActionCode, type ActionCodeProps, type AddContactFormState, type AddItemOptions, _default$1 as AddToCart, type AddToCartProps, AddToFavorite, type AddToFavoriteProps, AddressCardExport as AddressCard, type AddressCardProps, type AddressInput, AddressSelector, type AddressSelectorProps, type AttributeDisplayItem, type AttributeGroup, BreadcrumbsWithProvider as Breadcrumbs, type BreadcrumbsProps, CartBonusItems, type CartBonusItemsProps, CartCarriers, type CartCarriersProps, CartIconAndSidebar, type CartIconAndSidebarProps, type CartInitConfig, CartItemExport as CartItem, type CartItemProps, CartOverview, type CartOverviewProps, CartPaymethods, type CartPaymethodsProps, CartSummary, type CartSummaryProps, CategoryDescription, type CategoryDescriptionProps, CategoryShortDescriptionWithProvider as CategoryShortDescription, type CategoryShortDescriptionProps, ClusterCardExport as ClusterCard, type ClusterCardProps, ClusterConfigurator, type ClusterConfiguratorProps, ClusterInfo, type ClusterInfoProps, ClusterOptions, type ClusterOptionsProps, CompanySwitcher, type CompanySwitcherProps, type ConfiguredSetting, _default$1 as DefaultAddToCart, AddToFavorite as DefaultAddToFavorite, _default as DefaultItemStock, DefaultProductBadges, ProductBulkPrices as DefaultProductBulkPrices, ProductBundles as DefaultProductBundles, DefaultProductImage, ProductPriceDisplay as DefaultProductPrice, DefaultProductSurcharges, DeliveryDate, type DeliveryDateProps, FavoriteListDetails, type FavoriteListDetailsProps, type FavoriteListFormData, FavoriteListItemExport as FavoriteListItem, type FavoriteListItemProps, FavoriteLists, type FavoriteListsProps, type FetchActiveCartConfig, type FetchCrossupsellsInput, ForgotPassword, type ForgotPasswordProps, type GetCrossupsellsOptions, GridFilters, GridFiltersPanel, type GridFiltersPanelProps, type GridFiltersProps, GridPagination, type GridPaginationProps, GridTitleWithProvider as GridTitle, type GridTitleProps, GridToolbar, type GridToolbarProps, _default as ItemStock, type ItemStockProps, ItemsOverview, type ItemsOverviewProps, LoginFormExport as LoginForm, type LoginFormProps, LoginToOrderButton, type LoginToOrderButtonProps, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, type MenuRenderContext, type MenuStyle, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummaryWithProvider as OrderSummary, type OrderSummaryProps, OrderTotalsWithProvider as OrderTotals, type OrderTotalsProps, type PlaceOrderOptions, PriceToggle, type PriceToggleProps, ProductBulkPricesWithProvider as ProductBulkPrices, type ProductBulkPricesProps, ProductBundles, type ProductBundlesProps, ProductCard, type ProductCardProps, ProductDescription, type ProductDescriptionProps, ProductDownloads, type ProductDownloadsProps, ProductGallery, type ProductGalleryProps, ProductGridCompound as ProductGrid, type ProductGridConfig, ProductGridConfigProvider, type ProductGridProps, ProductInfoExport as ProductInfo, type ProductInfoProps, ProductPriceWithProvider as ProductPrice, type ProductPriceProps, ProductShortDescriptionWithProvider as ProductShortDescription, type ProductShortDescriptionProps, ProductSlider, type ProductSliderProps, ProductSpecifications, type ProductSpecificationsProps, ProductTabs, type ProductTabsProps, ProductVideos, type ProductVideosProps, type PropellerDeps, PropellerDepsProvider, type PropellerDepsProviderProps, type PropellerInfra, PropellerProvider, type PropellerProviderProps, type PropellerScope, PurchaseAuthorizationConfigurator, type PurchaseAuthorizationConfiguratorProps, PurchaseAuthorizationRequests, type PurchaseAuthorizationRequestsProps, QuickOrder, type QuickOrderLine, type QuickOrderMatch, type QuickOrderProps, type QuickOrderSubmitResult, type QuickOrderUploadLine, QuoteActions, type QuoteActionsProps, RegisterForm, type RegisterFormProps, type ResolveSpec, type RowEdit, SearchBar, type SearchBarProps, type UseAddressOptions, type UseAddressReturn, type LoginResult as UseAuthLoginResult, type UseAuthOptions, type RegisterContactInput as UseAuthRegisterContactInput, type RegisterCustomerInput as UseAuthRegisterCustomerInput, type UseAuthReturn, type UseCartOptions, type UseCartReturn, type UseCheckoutOptions, type UseCheckoutReturn, type UseClusterConfiguratorOptions, type UseClusterConfiguratorReturn, type UseCompanyOptions, type UseCompanyReturn, type UseFavoritesOptions, type UseFavoritesReturn, type UseMachinesOptions, type UseMachinesReturn, type UseMenuOptions, type UseMenuReturn, type UseOrdersOptions, type UseOrdersReturn, type BundleItem as UseProductBundlesBundleItem, type UseProductBundlesOptions, type UseProductBundlesReturn, type UseProductInfoOptions, type UseProductInfoReturn, type UseProductSearchOptions, type UseProductSearchReturn, type UseProductSliderOptions, type UseProductSliderReturn, type UseProductSpecsOptions, type UseProductSpecsReturn, type UsePurchaseAuthorizationConfiguratorOptions, type UsePurchaseAuthorizationConfiguratorReturn, type UsePurchaseAuthorizationRequestsOptions, type UsePurchaseAuthorizationRequestsReturn, type UseQuickOrderOptions, type UseQuickOrderReturn, type UseSparePartsOptions, type UseSparePartsReturn, UserDetails, type UserDetailsProps, buildRootMachinesQuery, fetchActiveCart, initCart, mergeAnonymousCart, useAddress, useAuth, useCart, useCheckout, useClusterConfigurator, useCompany, useFavorites, useInfraProps, useMachines, useMenu, useOrders, useProductBundles, useProductGridConfig, useProductInfo, useProductSearch, useProductSlider, useProductSpecs, usePropellerContext, usePropellerDeps, usePropellerScope, usePurchaseAuthorizationConfigurator, usePurchaseAuthorizationRequests, useQuickOrder, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|
|
7962
|
+
export { AccountIconAndMenu, type AccountIconAndMenuProps, ActionCode, type ActionCodeProps, type AddContactFormState, type AddItemOptions, _default$1 as AddToCart, type AddToCartProps, AddToFavorite, type AddToFavoriteProps, AddressCardExport as AddressCard, type AddressCardProps, type AddressInput, AddressSelector, type AddressSelectorProps, type AttributeDisplayItem, type AttributeGroup, BreadcrumbsWithProvider as Breadcrumbs, type BreadcrumbsProps, CartBonusItems, type CartBonusItemsProps, CartCarriers, type CartCarriersProps, CartIconAndSidebar, type CartIconAndSidebarProps, type CartInitConfig, CartItemExport as CartItem, type CartItemProps, CartOverview, type CartOverviewProps, CartPaymethods, type CartPaymethodsProps, CartSummary, type CartSummaryProps, CategoryDescription, type CategoryDescriptionProps, CategoryShortDescriptionWithProvider as CategoryShortDescription, type CategoryShortDescriptionProps, ClusterCardExport as ClusterCard, type ClusterCardProps, ClusterConfigurator, type ClusterConfiguratorProps, ClusterInfo, type ClusterInfoProps, ClusterOptions, type ClusterOptionsProps, CompanySwitcher, type CompanySwitcherProps, type ConfiguredSetting, _default$1 as DefaultAddToCart, AddToFavorite as DefaultAddToFavorite, _default as DefaultItemStock, DefaultProductBadges, ProductBulkPrices as DefaultProductBulkPrices, ProductBundles as DefaultProductBundles, DefaultProductImage, ProductPriceDisplay as DefaultProductPrice, DefaultProductSurcharges, DeliveryDate, type DeliveryDateProps, FavoriteListDetails, type FavoriteListDetailsProps, type FavoriteListFormData, FavoriteListItemExport as FavoriteListItem, type FavoriteListItemProps, FavoriteLists, type FavoriteListsProps, type FetchActiveCartConfig, type FetchCrossupsellsInput, ForgotPassword, type ForgotPasswordProps, type GetCrossupsellsOptions, GridFilters, GridFiltersPanel, type GridFiltersPanelProps, type GridFiltersProps, GridPagination, type GridPaginationProps, GridTitleWithProvider as GridTitle, type GridTitleProps, GridToolbar, type GridToolbarProps, _default as ItemStock, type ItemStockProps, ItemsOverview, type ItemsOverviewProps, LoginFormExport as LoginForm, type LoginFormProps, LoginToOrderButton, type LoginToOrderButtonProps, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, type MenuRenderContext, type MenuStyle, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummaryWithProvider as OrderSummary, type OrderSummaryProps, OrderTotalsWithProvider as OrderTotals, type OrderTotalsProps, PRICE_REQUEST_STORAGE_KEY, type PlaceOrderOptions, type PriceRequestItem, PriceRequestList, type PriceRequestListProps, PriceToggle, type PriceToggleProps, ProductBulkPricesWithProvider as ProductBulkPrices, type ProductBulkPricesProps, ProductBundles, type ProductBundlesProps, ProductCard, type ProductCardProps, ProductDescription, type ProductDescriptionProps, ProductDownloads, type ProductDownloadsProps, ProductGallery, type ProductGalleryProps, ProductGridCompound as ProductGrid, type ProductGridConfig, ProductGridConfigProvider, type ProductGridProps, ProductInfoExport as ProductInfo, type ProductInfoProps, ProductPriceWithProvider as ProductPrice, type ProductPriceProps, ProductShortDescriptionWithProvider as ProductShortDescription, type ProductShortDescriptionProps, ProductSlider, type ProductSliderProps, ProductSpecifications, type ProductSpecificationsProps, ProductTabs, type ProductTabsProps, ProductVideos, type ProductVideosProps, type PropellerDeps, PropellerDepsProvider, type PropellerDepsProviderProps, type PropellerInfra, PropellerProvider, type PropellerProviderProps, type PropellerScope, PurchaseAuthorizationConfigurator, type PurchaseAuthorizationConfiguratorProps, PurchaseAuthorizationRequests, type PurchaseAuthorizationRequestsProps, QuickOrder, type QuickOrderLine, type QuickOrderMatch, type QuickOrderProps, type QuickOrderSubmitResult, type QuickOrderUploadLine, QuoteActions, type QuoteActionsProps, RegisterForm, type RegisterFormProps, RequestPriceButton, type RequestPriceButtonProps, type ResolveSpec, type RowEdit, SearchBar, type SearchBarProps, type UseAddressOptions, type UseAddressReturn, type LoginResult as UseAuthLoginResult, type UseAuthOptions, type RegisterContactInput as UseAuthRegisterContactInput, type RegisterCustomerInput as UseAuthRegisterCustomerInput, type UseAuthReturn, type UseCartOptions, type UseCartReturn, type UseCheckoutOptions, type UseCheckoutReturn, type UseClusterConfiguratorOptions, type UseClusterConfiguratorReturn, type UseCompanyOptions, type UseCompanyReturn, type UseFavoritesOptions, type UseFavoritesReturn, type UseMachinesOptions, type UseMachinesReturn, type UseMenuOptions, type UseMenuReturn, type UseOrdersOptions, type UseOrdersReturn, type UsePriceRequestOptions, type UsePriceRequestReturn, type BundleItem as UseProductBundlesBundleItem, type UseProductBundlesOptions, type UseProductBundlesReturn, type UseProductInfoOptions, type UseProductInfoReturn, type UseProductSearchOptions, type UseProductSearchReturn, type UseProductSliderOptions, type UseProductSliderReturn, type UseProductSpecsOptions, type UseProductSpecsReturn, type UsePurchaseAuthorizationConfiguratorOptions, type UsePurchaseAuthorizationConfiguratorReturn, type UsePurchaseAuthorizationRequestsOptions, type UsePurchaseAuthorizationRequestsReturn, type UseQuickOrderOptions, type UseQuickOrderReturn, type UseSparePartsOptions, type UseSparePartsReturn, UserDetails, type UserDetailsProps, addItem as addPriceRequestItem, buildRootMachinesQuery, fetchActiveCart, initCart, isPriceOnRequest, mergeAnonymousCart, containsItem as priceRequestContains, removeItem as removePriceRequestItem, setItemQuantity as setPriceRequestItemQuantity, useAddress, useAuth, useCart, useCheckout, useClusterConfigurator, useCompany, useFavorites, useInfraProps, useMachines, useMenu, useOrders, usePriceRequest, useProductBundles, useProductGridConfig, useProductInfo, useProductSearch, useProductSlider, useProductSpecs, usePropellerContext, usePropellerDeps, usePropellerScope, usePurchaseAuthorizationConfigurator, usePurchaseAuthorizationRequests, useQuickOrder, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|