@propeller-commerce/propeller-v2-react-ui 0.10.0 → 0.10.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 CHANGED
@@ -8,6 +8,17 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
8
8
  between minor versions; breaking changes are called out below and in
9
9
  [MIGRATION.md](./MIGRATION.md).
10
10
 
11
+ ## [0.10.1] - 2026-07-30
12
+
13
+ ### Fixed
14
+
15
+ - **`<SearchBar>` autosuggest ignored orderlist scoping.** The component
16
+ resolves `user` like every other infra prop but never passed it to
17
+ `useProductSearch`, and the backend drives orderlist scoping off the user id —
18
+ so `orderlistIds` alone had no effect on the autosuggest query. The dropdown
19
+ returned the whole catalogue while the grid below it, which does pass `user`,
20
+ showed only the contract's products. Forwarding `user` makes the two agree.
21
+
11
22
  ## [0.10.0] - 2026-07-29
12
23
 
13
24
  ### Added
package/dist/index.cjs CHANGED
@@ -18460,6 +18460,12 @@ function SearchBar(rawProps) {
18460
18460
  graphqlClient: props.graphqlClient,
18461
18461
  language: props.language,
18462
18462
  configuration: props.configuration || {},
18463
+ // `user` supplies userId/contactId/customerId to the autosuggest query.
18464
+ // Without it the dropdown's results diverge from the grid's: orderlist
18465
+ // scoping is driven by userId, so `orderlistIds` alone is ignored by the
18466
+ // backend and the dropdown shows the whole catalogue while the grid below
18467
+ // shows only the contract's products.
18468
+ user: props.user,
18463
18469
  companyId: props.companyId,
18464
18470
  orderlistIds: props.orderlistIds,
18465
18471
  applyOrderlists: props.applyOrderlists