sales-frontend-components 0.0.180 → 0.0.181
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/dist/index.cjs.js +9 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +9 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +12 -12
package/dist/index.cjs.js
CHANGED
|
@@ -784,6 +784,7 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
784
784
|
const [standardizationParams, setStandardizationParams] = React.useState({
|
|
785
785
|
firstPostalCode: "",
|
|
786
786
|
secondPostalCode: "",
|
|
787
|
+
thirdPostalCode: "",
|
|
787
788
|
baseAddress: "",
|
|
788
789
|
detailAddress: "",
|
|
789
790
|
roadNameYn: "Y"
|
|
@@ -816,16 +817,19 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
816
817
|
setStandardizationParams({
|
|
817
818
|
firstPostalCode: selectedAddress.firstPostalCode,
|
|
818
819
|
secondPostalCode: selectedAddress.secondPostalCode,
|
|
820
|
+
thirdPostalCode: selectedAddress.thirdPostalCode,
|
|
819
821
|
baseAddress: selectedAddress.roadNameBaseAddress,
|
|
820
822
|
detailAddress: selectedAddress.roadNameDetailAddress,
|
|
821
823
|
roadNameYn: "Y"
|
|
822
824
|
});
|
|
823
825
|
}
|
|
824
826
|
} else {
|
|
825
|
-
selectedStandardizationAddress
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
if (selectedStandardizationAddress) {
|
|
828
|
+
setValue({
|
|
829
|
+
...selectedStandardizationAddress,
|
|
830
|
+
detailAddressInput
|
|
831
|
+
});
|
|
832
|
+
}
|
|
829
833
|
onClose();
|
|
830
834
|
}
|
|
831
835
|
};
|
|
@@ -891,6 +895,7 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
891
895
|
const transformedList = postalData.data.postalCodeList.map((p) => ({
|
|
892
896
|
firstPostalCode: p.originalNumber1PostalCode,
|
|
893
897
|
secondPostalCode: p.originalNumber2PostalCode,
|
|
898
|
+
thirdPostalCode: p.originalNumber3PostalCode,
|
|
894
899
|
roadNameBaseAddress: p.roadNameBaseAddress,
|
|
895
900
|
roadNameDetailAddress: p.roadNameDetailAddress,
|
|
896
901
|
landNumberBaseAddress: p.landNumberBaseAddress,
|