@propeller-commerce/propeller-v2-react-ui 0.6.0 → 0.7.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/CHANGELOG.md +37 -0
- package/dist/index.cjs +512 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +202 -20
- package/dist/index.d.ts +202 -20
- package/dist/index.js +511 -23
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -501,25 +501,6 @@ interface UseAuthReturn {
|
|
|
501
501
|
/** Triggers a password-reset email for the given address. */
|
|
502
502
|
forgotPassword: (email: string) => Promise<Result<void, string>>;
|
|
503
503
|
}
|
|
504
|
-
/**
|
|
505
|
-
* useAuth — login, registration, and forgot-password flows.
|
|
506
|
-
*
|
|
507
|
-
* @param options - see {@link UseAuthOptions}.
|
|
508
|
-
* @returns loading/error state plus async auth actions — see {@link UseAuthReturn}.
|
|
509
|
-
*
|
|
510
|
-
* @remarks
|
|
511
|
-
* GraphQL integration: services are built per-call via `createServices(graphqlClient)`.
|
|
512
|
-
* `login` calls `services.login.login()` (`LoginService`) then `services.user.getViewer()`
|
|
513
|
-
* (`UserService`) to fetch the Contact/Customer; the JWT is set as an in-memory Bearer
|
|
514
|
-
* header via `graphqlClient.updateConfig()` only — never persisted (cross-reload auth
|
|
515
|
-
* relies on an httpOnly cookie). `registerContact` runs `company.createCompany` →
|
|
516
|
-
* `user.registerContact` → implicit `login` → `address.createCompanyAddress` →
|
|
517
|
-
* `user.triggerContactSendWelcomeEmailEvent`. `registerCustomer` runs
|
|
518
|
-
* `user.registerCustomer` → `login` → `address.createCustomerAddress` →
|
|
519
|
-
* `user.triggerCustomerSendWelcomeEmailEvent`, re-fetching the viewer afterward.
|
|
520
|
-
* When `autoLogin` is `false` the session is dropped via `clearAccessToken()`.
|
|
521
|
-
* `forgotPassword` calls `user.sendPasswordResetEmail()`.
|
|
522
|
-
*/
|
|
523
504
|
declare function useAuth(options: UseAuthOptions): UseAuthReturn;
|
|
524
505
|
|
|
525
506
|
/**
|
|
@@ -1474,6 +1455,111 @@ interface UseProductSearchReturn {
|
|
|
1474
1455
|
*/
|
|
1475
1456
|
declare function useProductSearch(options: UseProductSearchOptions): UseProductSearchReturn;
|
|
1476
1457
|
|
|
1458
|
+
/**
|
|
1459
|
+
* useQuickOrder (React) — bulk "quick order" pad: resolve SKUs/codes to products
|
|
1460
|
+
* and add them all to the cart in a single bulk mutation.
|
|
1461
|
+
*
|
|
1462
|
+
* Backs the <QuickOrder> component. Two responsibilities:
|
|
1463
|
+
* - `searchProducts(term)` — a product typeahead (debounced by the caller /
|
|
1464
|
+
* component) so a row can resolve a typed SKU/code to a concrete product.
|
|
1465
|
+
* - `submit(rows)` — resolve (or create) the user's cart, then bulk-add every
|
|
1466
|
+
* row that carries a productId via `CartService.bulkUpdateCartItems`
|
|
1467
|
+
* (the `CartItemBulk` mutation). Mirrors the WP plugin's "replenish" flow.
|
|
1468
|
+
*
|
|
1469
|
+
* All product/price data comes from the API — a row's typed code is only ever a
|
|
1470
|
+
* *search term*, never trusted for the product identity or price.
|
|
1471
|
+
*/
|
|
1472
|
+
|
|
1473
|
+
/** A product resolved from a typed code — the shape a row fills in on select. */
|
|
1474
|
+
interface QuickOrderMatch {
|
|
1475
|
+
/** Product id (or cluster's default product id) — the cart line identity. */
|
|
1476
|
+
productId: number;
|
|
1477
|
+
/** Cluster id when the match is a cluster, else undefined. */
|
|
1478
|
+
clusterId?: number;
|
|
1479
|
+
/** Localized product name. */
|
|
1480
|
+
name: string;
|
|
1481
|
+
/** The product SKU/code (canonical, from the API). */
|
|
1482
|
+
sku: string;
|
|
1483
|
+
/** Net (excl. VAT) unit price. */
|
|
1484
|
+
netPrice: number;
|
|
1485
|
+
/** Gross (incl. VAT) unit price. */
|
|
1486
|
+
grossPrice: number;
|
|
1487
|
+
/** Minimum order quantity (defaults to 1). */
|
|
1488
|
+
minQuantity: number;
|
|
1489
|
+
/** Thumbnail URL, if any. */
|
|
1490
|
+
imageUrl: string;
|
|
1491
|
+
}
|
|
1492
|
+
/** One line a caller submits to be added to the cart. */
|
|
1493
|
+
interface QuickOrderLine {
|
|
1494
|
+
/** Resolved product id. */
|
|
1495
|
+
productId: number;
|
|
1496
|
+
/** Quantity to add. */
|
|
1497
|
+
quantity: number;
|
|
1498
|
+
/** Cluster id, when the line is a cluster. */
|
|
1499
|
+
clusterId?: number;
|
|
1500
|
+
/** The typed code — carried through only for missing-code reporting. */
|
|
1501
|
+
code?: string;
|
|
1502
|
+
}
|
|
1503
|
+
/** Options for {@link useQuickOrder}. */
|
|
1504
|
+
interface UseQuickOrderOptions {
|
|
1505
|
+
/** GraphQL client the hook derives its Services bundle from. Resolved from PropellerProvider when omitted. */
|
|
1506
|
+
graphqlClient?: GraphQLClient;
|
|
1507
|
+
/** The signed-in user (quick order is an authenticated feature). */
|
|
1508
|
+
user?: AnyUser;
|
|
1509
|
+
/** Active company id — scopes cart + pricing for B2B users. */
|
|
1510
|
+
companyId?: number;
|
|
1511
|
+
/** Language for search + cart queries. Defaults to `'NL'`. */
|
|
1512
|
+
language?: string;
|
|
1513
|
+
/** Max typeahead results per row. Defaults to 8. */
|
|
1514
|
+
searchLimit?: number;
|
|
1515
|
+
/** Image filters forwarded to search + cart queries. */
|
|
1516
|
+
configuration?: {
|
|
1517
|
+
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
1518
|
+
imageVariantFiltersSmall?: TransformationsInput;
|
|
1519
|
+
};
|
|
1520
|
+
/** Fires when `submit` creates a fresh cart — persist the cart id. */
|
|
1521
|
+
onCartCreated?: (cart: Cart) => void;
|
|
1522
|
+
/** Fires after a successful bulk add — receives the resulting cart. */
|
|
1523
|
+
afterAddToCart?: (cart: Cart) => void;
|
|
1524
|
+
}
|
|
1525
|
+
/** Result of a {@link useQuickOrder.submit} call. */
|
|
1526
|
+
interface QuickOrderSubmitResult {
|
|
1527
|
+
success: boolean;
|
|
1528
|
+
/** The cart the items were added to. */
|
|
1529
|
+
cart?: Cart;
|
|
1530
|
+
/** How many lines were created/updated (from the bulk response). */
|
|
1531
|
+
added?: number;
|
|
1532
|
+
error?: string;
|
|
1533
|
+
}
|
|
1534
|
+
/** State + actions returned by {@link useQuickOrder}. */
|
|
1535
|
+
interface UseQuickOrderReturn {
|
|
1536
|
+
/** `true` while a bulk add is in flight. */
|
|
1537
|
+
submitting: boolean;
|
|
1538
|
+
/** Last error message, or `null`. */
|
|
1539
|
+
error: string | null;
|
|
1540
|
+
/**
|
|
1541
|
+
* Resolve a typed code/term to candidate products for the row typeahead.
|
|
1542
|
+
* Returns [] on empty term or error (never throws — a typeahead must not break typing).
|
|
1543
|
+
*/
|
|
1544
|
+
searchProducts: (term: string) => Promise<QuickOrderMatch[]>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Resolve (or create) the cart and bulk-add every line. Lines without a
|
|
1547
|
+
* productId are ignored. Returns the resulting cart + counts.
|
|
1548
|
+
*/
|
|
1549
|
+
submit: (lines: QuickOrderLine[]) => Promise<QuickOrderSubmitResult>;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* useQuickOrder — product-code resolution + bulk add-to-cart.
|
|
1553
|
+
*
|
|
1554
|
+
* @remarks
|
|
1555
|
+
* GraphQL integration: services are built per-call via `createServices(graphqlClient)`.
|
|
1556
|
+
* `searchProducts` calls `services.product.getProducts()` (`ProductService`, the
|
|
1557
|
+
* `ProductSearch` operation). `submit` resolves a cart with the shared `initCart`
|
|
1558
|
+
* flow, then calls `services.cart.bulkUpdateCartItems()` once with every line
|
|
1559
|
+
* (`CartItemBulk`). All calls require an authenticated session.
|
|
1560
|
+
*/
|
|
1561
|
+
declare function useQuickOrder(options: UseQuickOrderOptions): UseQuickOrderReturn;
|
|
1562
|
+
|
|
1477
1563
|
/**
|
|
1478
1564
|
* useSpareParts (React) — a machine node's spare-parts list.
|
|
1479
1565
|
*
|
|
@@ -5088,6 +5174,102 @@ interface OrderListProps {
|
|
|
5088
5174
|
*/
|
|
5089
5175
|
declare function OrderList(rawProps: OrderListProps): React$1.JSX.Element;
|
|
5090
5176
|
|
|
5177
|
+
/**
|
|
5178
|
+
* @rsc-blocked — Client-only component: interactive state (useState), typeahead,
|
|
5179
|
+
* file upload. Must render inside (or below) a Client Component boundary; cannot
|
|
5180
|
+
* be imported directly into a React Server Component.
|
|
5181
|
+
*
|
|
5182
|
+
* <QuickOrder> — a bulk "quick order" pad. Each row has a SKU/code typeahead;
|
|
5183
|
+
* selecting a match fills the row's name / net price / min-quantity / line total.
|
|
5184
|
+
* "Add to cart" resolves the user's cart and bulk-adds every resolved row in a
|
|
5185
|
+
* single `CartItemBulk` mutation (via {@link useQuickOrder}). Optionally accepts
|
|
5186
|
+
* a spreadsheet parser so users can upload an XLSX of code+quantity pairs.
|
|
5187
|
+
*
|
|
5188
|
+
* The typed code is only ever a *search term* — a row's product identity, name
|
|
5189
|
+
* and price always come from the API, never from the typed/uploaded value.
|
|
5190
|
+
*/
|
|
5191
|
+
|
|
5192
|
+
/** A parsed spreadsheet line: a product code and a desired quantity. */
|
|
5193
|
+
interface QuickOrderUploadLine {
|
|
5194
|
+
code: string;
|
|
5195
|
+
quantity: number;
|
|
5196
|
+
}
|
|
5197
|
+
interface QuickOrderProps {
|
|
5198
|
+
/** The authenticated user. Resolved from PropellerProvider when omitted. */
|
|
5199
|
+
user?: Contact | Customer | null;
|
|
5200
|
+
/** GraphQL client. Resolved from PropellerProvider when omitted. */
|
|
5201
|
+
graphqlClient?: GraphQLClient;
|
|
5202
|
+
/** Active company id — scopes cart + pricing for B2B users. */
|
|
5203
|
+
companyId?: number;
|
|
5204
|
+
/** Language for search/cart queries. Defaults to `'NL'`. */
|
|
5205
|
+
language?: string;
|
|
5206
|
+
/** Currency symbol/code shown next to prices. Defaults to `'€'`. */
|
|
5207
|
+
currency?: string;
|
|
5208
|
+
/**
|
|
5209
|
+
* Image filters forwarded to the typeahead + cart queries so results carry
|
|
5210
|
+
* thumbnails. Pass the app's `imageSearchFiltersGrid` / `imageVariantFiltersSmall`
|
|
5211
|
+
* (the same values the SearchBar uses) — without them the API returns no image
|
|
5212
|
+
* variants and the dropdown shows no product images.
|
|
5213
|
+
*/
|
|
5214
|
+
configuration?: {
|
|
5215
|
+
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
5216
|
+
imageVariantFiltersSmall?: TransformationsInput;
|
|
5217
|
+
};
|
|
5218
|
+
/** Number of blank rows to start with. Defaults to 5. */
|
|
5219
|
+
initialRows?: number;
|
|
5220
|
+
/** Minimum characters before the typeahead fires. Defaults to 3. */
|
|
5221
|
+
searchThreshold?: number;
|
|
5222
|
+
/** Typeahead debounce in ms. Defaults to 300. */
|
|
5223
|
+
debounceMs?: number;
|
|
5224
|
+
/**
|
|
5225
|
+
* Optional spreadsheet parser. When supplied, the XLSX upload panel is shown;
|
|
5226
|
+
* the app parses the file (e.g. via SheetJS) and returns code+quantity lines.
|
|
5227
|
+
* Kept as a prop so the package stays free of a heavy xlsx dependency — the
|
|
5228
|
+
* app owns the parser and loads it only on this page.
|
|
5229
|
+
*/
|
|
5230
|
+
parseSpreadsheet?: (file: File) => Promise<QuickOrderUploadLine[]>;
|
|
5231
|
+
/** URL to a downloadable XLSX template (shown next to the upload control). */
|
|
5232
|
+
templateUrl?: string;
|
|
5233
|
+
/** Max upload file size in bytes. Defaults to 2 MB. */
|
|
5234
|
+
maxUploadBytes?: number;
|
|
5235
|
+
/** Max rows accepted from an upload. Defaults to 500. */
|
|
5236
|
+
maxUploadRows?: number;
|
|
5237
|
+
/** Format a price. Defaults to the shared `formatPrice` helper. */
|
|
5238
|
+
formatPrice?: (price: number) => string;
|
|
5239
|
+
/** Fires when the bulk add creates a fresh cart — persist the cart id. */
|
|
5240
|
+
onCartCreated?: (cart: Cart) => void;
|
|
5241
|
+
/** Fires after a successful add — receives the resulting cart. */
|
|
5242
|
+
afterAddToCart?: (cart: Cart) => void;
|
|
5243
|
+
/** Fires when some uploaded/entered codes could not be resolved. */
|
|
5244
|
+
onMissingCodes?: (codes: string[]) => void;
|
|
5245
|
+
/** Override base container styles. */
|
|
5246
|
+
className?: string;
|
|
5247
|
+
/** Localization label overrides. */
|
|
5248
|
+
labels?: {
|
|
5249
|
+
title?: string;
|
|
5250
|
+
uploadTitle?: string;
|
|
5251
|
+
uploadHint?: string;
|
|
5252
|
+
downloadTemplate?: string;
|
|
5253
|
+
selectFile?: string;
|
|
5254
|
+
upload?: string;
|
|
5255
|
+
colCode?: string;
|
|
5256
|
+
colName?: string;
|
|
5257
|
+
colPrice?: string;
|
|
5258
|
+
colQuantity?: string;
|
|
5259
|
+
colTotal?: string;
|
|
5260
|
+
addRow?: string;
|
|
5261
|
+
addToCart?: string;
|
|
5262
|
+
adding?: string;
|
|
5263
|
+
noResults?: string;
|
|
5264
|
+
alreadyInList?: string;
|
|
5265
|
+
noItems?: string;
|
|
5266
|
+
missingCodes?: string;
|
|
5267
|
+
remove?: string;
|
|
5268
|
+
};
|
|
5269
|
+
}
|
|
5270
|
+
/** Resolves infra props (graphqlClient/user/companyId/language) from context. */
|
|
5271
|
+
declare function QuickOrder(rawProps: QuickOrderProps): React$1.JSX.Element;
|
|
5272
|
+
|
|
5091
5273
|
/**
|
|
5092
5274
|
* @rsc-blocked — Client-only component: interactive state (useState/useReducer).
|
|
5093
5275
|
* Must be rendered inside (or below) a Client Component boundary; cannot be
|
|
@@ -7048,4 +7230,4 @@ declare function DefaultProductBadges(props: BadgesComponentProps): React__defau
|
|
|
7048
7230
|
*/
|
|
7049
7231
|
declare function DefaultProductSurcharges(props: ProductSurchargesComponentProps): React__default.JSX.Element | null;
|
|
7050
7232
|
|
|
7051
|
-
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, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummary, type OrderSummaryProps, 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, 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 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, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|
|
7233
|
+
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, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummary, type OrderSummaryProps, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -501,25 +501,6 @@ interface UseAuthReturn {
|
|
|
501
501
|
/** Triggers a password-reset email for the given address. */
|
|
502
502
|
forgotPassword: (email: string) => Promise<Result<void, string>>;
|
|
503
503
|
}
|
|
504
|
-
/**
|
|
505
|
-
* useAuth — login, registration, and forgot-password flows.
|
|
506
|
-
*
|
|
507
|
-
* @param options - see {@link UseAuthOptions}.
|
|
508
|
-
* @returns loading/error state plus async auth actions — see {@link UseAuthReturn}.
|
|
509
|
-
*
|
|
510
|
-
* @remarks
|
|
511
|
-
* GraphQL integration: services are built per-call via `createServices(graphqlClient)`.
|
|
512
|
-
* `login` calls `services.login.login()` (`LoginService`) then `services.user.getViewer()`
|
|
513
|
-
* (`UserService`) to fetch the Contact/Customer; the JWT is set as an in-memory Bearer
|
|
514
|
-
* header via `graphqlClient.updateConfig()` only — never persisted (cross-reload auth
|
|
515
|
-
* relies on an httpOnly cookie). `registerContact` runs `company.createCompany` →
|
|
516
|
-
* `user.registerContact` → implicit `login` → `address.createCompanyAddress` →
|
|
517
|
-
* `user.triggerContactSendWelcomeEmailEvent`. `registerCustomer` runs
|
|
518
|
-
* `user.registerCustomer` → `login` → `address.createCustomerAddress` →
|
|
519
|
-
* `user.triggerCustomerSendWelcomeEmailEvent`, re-fetching the viewer afterward.
|
|
520
|
-
* When `autoLogin` is `false` the session is dropped via `clearAccessToken()`.
|
|
521
|
-
* `forgotPassword` calls `user.sendPasswordResetEmail()`.
|
|
522
|
-
*/
|
|
523
504
|
declare function useAuth(options: UseAuthOptions): UseAuthReturn;
|
|
524
505
|
|
|
525
506
|
/**
|
|
@@ -1474,6 +1455,111 @@ interface UseProductSearchReturn {
|
|
|
1474
1455
|
*/
|
|
1475
1456
|
declare function useProductSearch(options: UseProductSearchOptions): UseProductSearchReturn;
|
|
1476
1457
|
|
|
1458
|
+
/**
|
|
1459
|
+
* useQuickOrder (React) — bulk "quick order" pad: resolve SKUs/codes to products
|
|
1460
|
+
* and add them all to the cart in a single bulk mutation.
|
|
1461
|
+
*
|
|
1462
|
+
* Backs the <QuickOrder> component. Two responsibilities:
|
|
1463
|
+
* - `searchProducts(term)` — a product typeahead (debounced by the caller /
|
|
1464
|
+
* component) so a row can resolve a typed SKU/code to a concrete product.
|
|
1465
|
+
* - `submit(rows)` — resolve (or create) the user's cart, then bulk-add every
|
|
1466
|
+
* row that carries a productId via `CartService.bulkUpdateCartItems`
|
|
1467
|
+
* (the `CartItemBulk` mutation). Mirrors the WP plugin's "replenish" flow.
|
|
1468
|
+
*
|
|
1469
|
+
* All product/price data comes from the API — a row's typed code is only ever a
|
|
1470
|
+
* *search term*, never trusted for the product identity or price.
|
|
1471
|
+
*/
|
|
1472
|
+
|
|
1473
|
+
/** A product resolved from a typed code — the shape a row fills in on select. */
|
|
1474
|
+
interface QuickOrderMatch {
|
|
1475
|
+
/** Product id (or cluster's default product id) — the cart line identity. */
|
|
1476
|
+
productId: number;
|
|
1477
|
+
/** Cluster id when the match is a cluster, else undefined. */
|
|
1478
|
+
clusterId?: number;
|
|
1479
|
+
/** Localized product name. */
|
|
1480
|
+
name: string;
|
|
1481
|
+
/** The product SKU/code (canonical, from the API). */
|
|
1482
|
+
sku: string;
|
|
1483
|
+
/** Net (excl. VAT) unit price. */
|
|
1484
|
+
netPrice: number;
|
|
1485
|
+
/** Gross (incl. VAT) unit price. */
|
|
1486
|
+
grossPrice: number;
|
|
1487
|
+
/** Minimum order quantity (defaults to 1). */
|
|
1488
|
+
minQuantity: number;
|
|
1489
|
+
/** Thumbnail URL, if any. */
|
|
1490
|
+
imageUrl: string;
|
|
1491
|
+
}
|
|
1492
|
+
/** One line a caller submits to be added to the cart. */
|
|
1493
|
+
interface QuickOrderLine {
|
|
1494
|
+
/** Resolved product id. */
|
|
1495
|
+
productId: number;
|
|
1496
|
+
/** Quantity to add. */
|
|
1497
|
+
quantity: number;
|
|
1498
|
+
/** Cluster id, when the line is a cluster. */
|
|
1499
|
+
clusterId?: number;
|
|
1500
|
+
/** The typed code — carried through only for missing-code reporting. */
|
|
1501
|
+
code?: string;
|
|
1502
|
+
}
|
|
1503
|
+
/** Options for {@link useQuickOrder}. */
|
|
1504
|
+
interface UseQuickOrderOptions {
|
|
1505
|
+
/** GraphQL client the hook derives its Services bundle from. Resolved from PropellerProvider when omitted. */
|
|
1506
|
+
graphqlClient?: GraphQLClient;
|
|
1507
|
+
/** The signed-in user (quick order is an authenticated feature). */
|
|
1508
|
+
user?: AnyUser;
|
|
1509
|
+
/** Active company id — scopes cart + pricing for B2B users. */
|
|
1510
|
+
companyId?: number;
|
|
1511
|
+
/** Language for search + cart queries. Defaults to `'NL'`. */
|
|
1512
|
+
language?: string;
|
|
1513
|
+
/** Max typeahead results per row. Defaults to 8. */
|
|
1514
|
+
searchLimit?: number;
|
|
1515
|
+
/** Image filters forwarded to search + cart queries. */
|
|
1516
|
+
configuration?: {
|
|
1517
|
+
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
1518
|
+
imageVariantFiltersSmall?: TransformationsInput;
|
|
1519
|
+
};
|
|
1520
|
+
/** Fires when `submit` creates a fresh cart — persist the cart id. */
|
|
1521
|
+
onCartCreated?: (cart: Cart) => void;
|
|
1522
|
+
/** Fires after a successful bulk add — receives the resulting cart. */
|
|
1523
|
+
afterAddToCart?: (cart: Cart) => void;
|
|
1524
|
+
}
|
|
1525
|
+
/** Result of a {@link useQuickOrder.submit} call. */
|
|
1526
|
+
interface QuickOrderSubmitResult {
|
|
1527
|
+
success: boolean;
|
|
1528
|
+
/** The cart the items were added to. */
|
|
1529
|
+
cart?: Cart;
|
|
1530
|
+
/** How many lines were created/updated (from the bulk response). */
|
|
1531
|
+
added?: number;
|
|
1532
|
+
error?: string;
|
|
1533
|
+
}
|
|
1534
|
+
/** State + actions returned by {@link useQuickOrder}. */
|
|
1535
|
+
interface UseQuickOrderReturn {
|
|
1536
|
+
/** `true` while a bulk add is in flight. */
|
|
1537
|
+
submitting: boolean;
|
|
1538
|
+
/** Last error message, or `null`. */
|
|
1539
|
+
error: string | null;
|
|
1540
|
+
/**
|
|
1541
|
+
* Resolve a typed code/term to candidate products for the row typeahead.
|
|
1542
|
+
* Returns [] on empty term or error (never throws — a typeahead must not break typing).
|
|
1543
|
+
*/
|
|
1544
|
+
searchProducts: (term: string) => Promise<QuickOrderMatch[]>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Resolve (or create) the cart and bulk-add every line. Lines without a
|
|
1547
|
+
* productId are ignored. Returns the resulting cart + counts.
|
|
1548
|
+
*/
|
|
1549
|
+
submit: (lines: QuickOrderLine[]) => Promise<QuickOrderSubmitResult>;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* useQuickOrder — product-code resolution + bulk add-to-cart.
|
|
1553
|
+
*
|
|
1554
|
+
* @remarks
|
|
1555
|
+
* GraphQL integration: services are built per-call via `createServices(graphqlClient)`.
|
|
1556
|
+
* `searchProducts` calls `services.product.getProducts()` (`ProductService`, the
|
|
1557
|
+
* `ProductSearch` operation). `submit` resolves a cart with the shared `initCart`
|
|
1558
|
+
* flow, then calls `services.cart.bulkUpdateCartItems()` once with every line
|
|
1559
|
+
* (`CartItemBulk`). All calls require an authenticated session.
|
|
1560
|
+
*/
|
|
1561
|
+
declare function useQuickOrder(options: UseQuickOrderOptions): UseQuickOrderReturn;
|
|
1562
|
+
|
|
1477
1563
|
/**
|
|
1478
1564
|
* useSpareParts (React) — a machine node's spare-parts list.
|
|
1479
1565
|
*
|
|
@@ -5088,6 +5174,102 @@ interface OrderListProps {
|
|
|
5088
5174
|
*/
|
|
5089
5175
|
declare function OrderList(rawProps: OrderListProps): React$1.JSX.Element;
|
|
5090
5176
|
|
|
5177
|
+
/**
|
|
5178
|
+
* @rsc-blocked — Client-only component: interactive state (useState), typeahead,
|
|
5179
|
+
* file upload. Must render inside (or below) a Client Component boundary; cannot
|
|
5180
|
+
* be imported directly into a React Server Component.
|
|
5181
|
+
*
|
|
5182
|
+
* <QuickOrder> — a bulk "quick order" pad. Each row has a SKU/code typeahead;
|
|
5183
|
+
* selecting a match fills the row's name / net price / min-quantity / line total.
|
|
5184
|
+
* "Add to cart" resolves the user's cart and bulk-adds every resolved row in a
|
|
5185
|
+
* single `CartItemBulk` mutation (via {@link useQuickOrder}). Optionally accepts
|
|
5186
|
+
* a spreadsheet parser so users can upload an XLSX of code+quantity pairs.
|
|
5187
|
+
*
|
|
5188
|
+
* The typed code is only ever a *search term* — a row's product identity, name
|
|
5189
|
+
* and price always come from the API, never from the typed/uploaded value.
|
|
5190
|
+
*/
|
|
5191
|
+
|
|
5192
|
+
/** A parsed spreadsheet line: a product code and a desired quantity. */
|
|
5193
|
+
interface QuickOrderUploadLine {
|
|
5194
|
+
code: string;
|
|
5195
|
+
quantity: number;
|
|
5196
|
+
}
|
|
5197
|
+
interface QuickOrderProps {
|
|
5198
|
+
/** The authenticated user. Resolved from PropellerProvider when omitted. */
|
|
5199
|
+
user?: Contact | Customer | null;
|
|
5200
|
+
/** GraphQL client. Resolved from PropellerProvider when omitted. */
|
|
5201
|
+
graphqlClient?: GraphQLClient;
|
|
5202
|
+
/** Active company id — scopes cart + pricing for B2B users. */
|
|
5203
|
+
companyId?: number;
|
|
5204
|
+
/** Language for search/cart queries. Defaults to `'NL'`. */
|
|
5205
|
+
language?: string;
|
|
5206
|
+
/** Currency symbol/code shown next to prices. Defaults to `'€'`. */
|
|
5207
|
+
currency?: string;
|
|
5208
|
+
/**
|
|
5209
|
+
* Image filters forwarded to the typeahead + cart queries so results carry
|
|
5210
|
+
* thumbnails. Pass the app's `imageSearchFiltersGrid` / `imageVariantFiltersSmall`
|
|
5211
|
+
* (the same values the SearchBar uses) — without them the API returns no image
|
|
5212
|
+
* variants and the dropdown shows no product images.
|
|
5213
|
+
*/
|
|
5214
|
+
configuration?: {
|
|
5215
|
+
imageSearchFiltersGrid?: MediaImageProductSearchInput;
|
|
5216
|
+
imageVariantFiltersSmall?: TransformationsInput;
|
|
5217
|
+
};
|
|
5218
|
+
/** Number of blank rows to start with. Defaults to 5. */
|
|
5219
|
+
initialRows?: number;
|
|
5220
|
+
/** Minimum characters before the typeahead fires. Defaults to 3. */
|
|
5221
|
+
searchThreshold?: number;
|
|
5222
|
+
/** Typeahead debounce in ms. Defaults to 300. */
|
|
5223
|
+
debounceMs?: number;
|
|
5224
|
+
/**
|
|
5225
|
+
* Optional spreadsheet parser. When supplied, the XLSX upload panel is shown;
|
|
5226
|
+
* the app parses the file (e.g. via SheetJS) and returns code+quantity lines.
|
|
5227
|
+
* Kept as a prop so the package stays free of a heavy xlsx dependency — the
|
|
5228
|
+
* app owns the parser and loads it only on this page.
|
|
5229
|
+
*/
|
|
5230
|
+
parseSpreadsheet?: (file: File) => Promise<QuickOrderUploadLine[]>;
|
|
5231
|
+
/** URL to a downloadable XLSX template (shown next to the upload control). */
|
|
5232
|
+
templateUrl?: string;
|
|
5233
|
+
/** Max upload file size in bytes. Defaults to 2 MB. */
|
|
5234
|
+
maxUploadBytes?: number;
|
|
5235
|
+
/** Max rows accepted from an upload. Defaults to 500. */
|
|
5236
|
+
maxUploadRows?: number;
|
|
5237
|
+
/** Format a price. Defaults to the shared `formatPrice` helper. */
|
|
5238
|
+
formatPrice?: (price: number) => string;
|
|
5239
|
+
/** Fires when the bulk add creates a fresh cart — persist the cart id. */
|
|
5240
|
+
onCartCreated?: (cart: Cart) => void;
|
|
5241
|
+
/** Fires after a successful add — receives the resulting cart. */
|
|
5242
|
+
afterAddToCart?: (cart: Cart) => void;
|
|
5243
|
+
/** Fires when some uploaded/entered codes could not be resolved. */
|
|
5244
|
+
onMissingCodes?: (codes: string[]) => void;
|
|
5245
|
+
/** Override base container styles. */
|
|
5246
|
+
className?: string;
|
|
5247
|
+
/** Localization label overrides. */
|
|
5248
|
+
labels?: {
|
|
5249
|
+
title?: string;
|
|
5250
|
+
uploadTitle?: string;
|
|
5251
|
+
uploadHint?: string;
|
|
5252
|
+
downloadTemplate?: string;
|
|
5253
|
+
selectFile?: string;
|
|
5254
|
+
upload?: string;
|
|
5255
|
+
colCode?: string;
|
|
5256
|
+
colName?: string;
|
|
5257
|
+
colPrice?: string;
|
|
5258
|
+
colQuantity?: string;
|
|
5259
|
+
colTotal?: string;
|
|
5260
|
+
addRow?: string;
|
|
5261
|
+
addToCart?: string;
|
|
5262
|
+
adding?: string;
|
|
5263
|
+
noResults?: string;
|
|
5264
|
+
alreadyInList?: string;
|
|
5265
|
+
noItems?: string;
|
|
5266
|
+
missingCodes?: string;
|
|
5267
|
+
remove?: string;
|
|
5268
|
+
};
|
|
5269
|
+
}
|
|
5270
|
+
/** Resolves infra props (graphqlClient/user/companyId/language) from context. */
|
|
5271
|
+
declare function QuickOrder(rawProps: QuickOrderProps): React$1.JSX.Element;
|
|
5272
|
+
|
|
5091
5273
|
/**
|
|
5092
5274
|
* @rsc-blocked — Client-only component: interactive state (useState/useReducer).
|
|
5093
5275
|
* Must be rendered inside (or below) a Client Component boundary; cannot be
|
|
@@ -7048,4 +7230,4 @@ declare function DefaultProductBadges(props: BadgesComponentProps): React__defau
|
|
|
7048
7230
|
*/
|
|
7049
7231
|
declare function DefaultProductSurcharges(props: ProductSurchargesComponentProps): React__default.JSX.Element | null;
|
|
7050
7232
|
|
|
7051
|
-
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, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummary, type OrderSummaryProps, 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, 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 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, useRequiredPropellerDeps, useResolvedProps, useServices, useSpareParts, useUserMode };
|
|
7233
|
+
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, MachineCard, type MachineCardProps, MachineGrid, type MachineGridProps, type MachineListingState, Menu, type MenuCategory, type MenuProps, OrderActions, type OrderActionsProps, OrderBonusItems, type OrderBonusItemsProps, OrderItemCard, type OrderItemCardProps, OrderList, type OrderListProps, type OrderSearchForm, OrderShipments, type OrderShipmentsProps, OrderSummary, type OrderSummaryProps, 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 };
|