@kmkf-fe-packages/basic-components 0.19.4-alpha.0 → 0.20.0-alpha.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/dist/index.esm.js CHANGED
@@ -7491,8 +7491,9 @@ var IdentifyAddress = function IdentifyAddress(props) {
7491
7491
  receiverMobile: val === null || val === void 0 ? void 0 : val.phone,
7492
7492
  address: []
7493
7493
  };
7494
- if ((val === null || val === void 0 ? void 0 : val.province) && AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7495
- params.address = [AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province), AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.city), AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7494
+ var addressData = type === 'bs' ? BsAddressData.getInstance() : AddressData.getInstance();
7495
+ if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7496
+ params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7496
7497
  }
7497
7498
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7498
7499
  };
package/dist/index.js CHANGED
@@ -7502,8 +7502,9 @@ var IdentifyAddress = function IdentifyAddress(props) {
7502
7502
  receiverMobile: val === null || val === void 0 ? void 0 : val.phone,
7503
7503
  address: []
7504
7504
  };
7505
- if ((val === null || val === void 0 ? void 0 : val.province) && kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7506
- params.address = [kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province), kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.city), kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7505
+ var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
7506
+ if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7507
+ params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7507
7508
  }
7508
7509
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7509
7510
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.19.4-alpha.0",
3
+ "version": "0.20.0-alpha.1",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "^0.19.4-alpha.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.20.0-alpha.1",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "9167e39d58f95aee56df46fabfc9f7bc7e2f2667"
64
+ "gitHead": "2ac654c3c1b474b9a11b1fbd27bc6e1e8ecbda10"
65
65
  }