@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 CHANGED
@@ -8,6 +8,43 @@ 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.7.0] - 2026-07-27
12
+
13
+ ### Added
14
+
15
+ - **`<QuickOrder>` component + `useQuickOrder` composable** — a bulk "quick
16
+ order" pad for B2B replenishment. Each row has a debounced SKU/code typeahead
17
+ (`ProductSearch`); selecting a match fills the row's name, net price and
18
+ minimum quantity. Quantities are editable, rows can be added/removed, and
19
+ duplicate SKUs are rejected. "Add to cart" resolves the user's cart (shared
20
+ `initCart` flow) and adds every resolved row in a single `CartItemBulk`
21
+ mutation (`CartService.bulkUpdateCartItems`). Ports the WordPress plugin's
22
+ quick-order/replenish flow.
23
+ - Optional XLSX upload: pass a `parseSpreadsheet(file)` handler (the app owns
24
+ the parser — the package ships no spreadsheet dependency) plus a
25
+ `templateUrl`; parsed code+quantity lines are resolved against the API and
26
+ unresolved codes reported via `onMissingCodes`.
27
+ - Fully label-driven (`labels` prop) and `configuration`-aware (image filters
28
+ so typeahead results carry thumbnails, same as `SearchBar`). Infra props
29
+ (`graphqlClient`/`user`/`companyId`/`language`) resolve from
30
+ `<PropellerProvider>` via `useInfraProps`.
31
+ - A typed code is only ever a *search term* — a row's product identity and
32
+ price always come from the API, never from the typed/uploaded value.
33
+
34
+ ## [0.6.1] - 2026-07-23
35
+
36
+ ### Fixed
37
+
38
+ - **Login viewer inputs** — `LoginForm` now forwards the resolved `configuration`
39
+ (from `<PropellerDepsProvider>` via `useInfraProps`) into `useAuth`, so the
40
+ login `getViewer` requests the configured track attributes and pagination
41
+ inputs — `companyTrackAttributes` (→ `MY_INSTALLATIONS`),
42
+ `customerTrackAttributes`, `contactPAConfigInput`, and the newly-forwarded
43
+ `contactCompaniesSearchInput`. Previously the header login returned a viewer
44
+ with no companies/attributes until a later `refreshUser`. `useAuth` also now
45
+ guards `contactPAConfigInput` with `isViewerSearchInput` (a non-array object)
46
+ so a misconfigured empty array `[]` is omitted rather than 400-ing the viewer.
47
+
11
48
  ## [0.6.0] - 2026-07-21
12
49
 
13
50
  ### Added