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.d.ts
CHANGED
|
@@ -233,13 +233,13 @@ interface AddressStandardization {
|
|
|
233
233
|
/** 표준화 지번주소 */
|
|
234
234
|
land: AddressStandardizationResponseDto;
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
interface Props$4 {
|
|
236
|
+
interface AddressComponentType {
|
|
238
237
|
setValue: (address: AddressComponentProps) => void;
|
|
239
238
|
onClose: () => void;
|
|
240
239
|
isOpen: boolean;
|
|
241
240
|
}
|
|
242
|
-
|
|
241
|
+
|
|
242
|
+
declare function useSearchAddress({ setValue, onClose, isOpen }: AddressComponentType): {
|
|
243
243
|
selectedStandardizationAddress: AddressStandardization | undefined;
|
|
244
244
|
onStandardizationChange: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
245
245
|
onAddressSearchClear: () => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -782,6 +782,7 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
782
782
|
const [standardizationParams, setStandardizationParams] = useState({
|
|
783
783
|
firstPostalCode: "",
|
|
784
784
|
secondPostalCode: "",
|
|
785
|
+
thirdPostalCode: "",
|
|
785
786
|
baseAddress: "",
|
|
786
787
|
detailAddress: "",
|
|
787
788
|
roadNameYn: "Y"
|
|
@@ -814,16 +815,19 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
814
815
|
setStandardizationParams({
|
|
815
816
|
firstPostalCode: selectedAddress.firstPostalCode,
|
|
816
817
|
secondPostalCode: selectedAddress.secondPostalCode,
|
|
818
|
+
thirdPostalCode: selectedAddress.thirdPostalCode,
|
|
817
819
|
baseAddress: selectedAddress.roadNameBaseAddress,
|
|
818
820
|
detailAddress: selectedAddress.roadNameDetailAddress,
|
|
819
821
|
roadNameYn: "Y"
|
|
820
822
|
});
|
|
821
823
|
}
|
|
822
824
|
} else {
|
|
823
|
-
selectedStandardizationAddress
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
if (selectedStandardizationAddress) {
|
|
826
|
+
setValue({
|
|
827
|
+
...selectedStandardizationAddress,
|
|
828
|
+
detailAddressInput
|
|
829
|
+
});
|
|
830
|
+
}
|
|
827
831
|
onClose();
|
|
828
832
|
}
|
|
829
833
|
};
|
|
@@ -889,6 +893,7 @@ function useSearchAddress({ setValue, onClose, isOpen }) {
|
|
|
889
893
|
const transformedList = postalData.data.postalCodeList.map((p) => ({
|
|
890
894
|
firstPostalCode: p.originalNumber1PostalCode,
|
|
891
895
|
secondPostalCode: p.originalNumber2PostalCode,
|
|
896
|
+
thirdPostalCode: p.originalNumber3PostalCode,
|
|
892
897
|
roadNameBaseAddress: p.roadNameBaseAddress,
|
|
893
898
|
roadNameDetailAddress: p.roadNameDetailAddress,
|
|
894
899
|
landNumberBaseAddress: p.landNumberBaseAddress,
|