@dropins/storefront-account 4.2.0-beta.0 → 4.2.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/containers/AddressForm.js +1 -1
- package/containers/AddressForm.js.map +1 -1
- package/package.json +1 -1
- package/render.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @dropins/storefront-account
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
## 4.2.0-beta.1
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- ec86d13: fix(AddressForm): restore independent default shipping and billing
|
|
10
|
+
checkboxes outside the company address book. The single-default rule
|
|
11
|
+
introduced with the company address book was applied to the shared form hook
|
|
12
|
+
and to the B2C create-mode defaults, so a personal address could no longer be
|
|
13
|
+
both the default shipping and the default billing address, and only one
|
|
14
|
+
checkbox was preselected on create. The company address book keeps its single
|
|
15
|
+
address type selection unchanged.
|
|
16
|
+
- ec86d13: fix(AddressForm): place the save checkbox at the end of the form with
|
|
17
|
+
CSS instead of a computed grid row. The previous effect read the form's
|
|
18
|
+
`grid-template-rows` and pinned `.account-address-form--saveAddressBook` to
|
|
19
|
+
`rows - 1`, which only matched the field set it was written against; a store
|
|
20
|
+
with an extra address attribute such as VAT pushed that attribute below the
|
|
21
|
+
checkbox. The checkbox now spans both columns on its own row, so the field
|
|
22
|
+
order follows the address attributes returned by the backend.
|
|
23
|
+
- ec86d13: fix(Addresses): stop preselecting an address when the caller has none
|
|
24
|
+
and selection is locked to company addresses. `defaultSelectAddressId: 0`
|
|
25
|
+
means the caller holds no address; without the lock it opens the new-address
|
|
26
|
+
form, but with the lock that branch was skipped entirely and the first card in
|
|
27
|
+
the list was highlighted instead. A negotiable quote with no shipping address
|
|
28
|
+
therefore rendered a selected address it did not hold, and the caller refused
|
|
29
|
+
to write it back, so the choice silently did nothing until the customer
|
|
30
|
+
clicked the card themselves. A locked selection now leaves the list unselected
|
|
31
|
+
and reports the selection as invalid, the same way it already did when the
|
|
32
|
+
list is empty.
|
|
33
|
+
- ec86d13: fix(Addresses): restore opening the new-address form when
|
|
34
|
+
`defaultSelectAddressId` is `0`. The company address book work replaced that
|
|
35
|
+
behaviour with preselecting the first address in the list, which claims a
|
|
36
|
+
selection the caller never made — a negotiable quote, for example, stores its
|
|
37
|
+
shipping address as a copy with no id to match, so every page load highlighted
|
|
38
|
+
an address the quote does not hold.
|
|
39
|
+
|
|
3
40
|
## 4.2.0-beta.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|