@abihealth/goapp-react-native 1.35.0 → 1.36.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.36.1](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.36.0...goapp-react-native-v1.36.1) (2025-06-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update physician label retrieval in JoinVideoCallScreen for improved accuracy ([#216](https://github.com/abiglobalhealth/react-native-sdk/issues/216)) ([901213c](https://github.com/abiglobalhealth/react-native-sdk/commit/901213cfb7b2830daa3063da77d90729fe3b7aa6))
9
+
10
+ ## [1.36.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.35.0...goapp-react-native-v1.36.0) (2025-06-27)
11
+
12
+
13
+ ### Features
14
+
15
+ * add district label retrieval in delivery address submission ([#214](https://github.com/abiglobalhealth/react-native-sdk/issues/214)) ([78227d0](https://github.com/abiglobalhealth/react-native-sdk/commit/78227d0825aa6e064abad1d8b12e019acd2b15aa))
16
+
3
17
  ## [1.35.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.34.0...goapp-react-native-v1.35.0) (2025-06-25)
4
18
 
5
19
 
@@ -191,14 +191,23 @@ var DeliveryAddressScreen = function (_a) {
191
191
  var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
192
192
  var _c = (0, react_1.useState)(false), error = _c[0], setError = _c[1];
193
193
  var onSubmit = function (data) { return __awaiter(void 0, void 0, void 0, function () {
194
- var e_1;
194
+ var getDistrictLabel, e_1;
195
195
  return __generator(this, function (_a) {
196
196
  switch (_a.label) {
197
197
  case 0:
198
198
  _a.trys.push([0, 2, , 3]);
199
199
  setError(false);
200
200
  setLoading(true);
201
- return [4 /*yield*/, (0, video_1.updateDeliveryAddress)(consultation === null || consultation === void 0 ? void 0 : consultation.id, __assign(__assign({}, data), { country: t('country.hk') }))];
201
+ getDistrictLabel = function (districtKey) {
202
+ for (var _i = 0, DISTRICT_AREAS_1 = deliveryAddress_1.DISTRICT_AREAS; _i < DISTRICT_AREAS_1.length; _i++) {
203
+ var group = DISTRICT_AREAS_1[_i];
204
+ var found = group.areas.find(function (a) { return a.key === districtKey; });
205
+ if (found)
206
+ return t("country.hk.area.".concat(group.key, ".district.").concat(found.key));
207
+ }
208
+ return districtKey;
209
+ };
210
+ return [4 /*yield*/, (0, video_1.updateDeliveryAddress)(consultation === null || consultation === void 0 ? void 0 : consultation.id, __assign(__assign({}, data), { country: t('country.hk'), district: getDistrictLabel(data.district) }))];
202
211
  case 1:
203
212
  _a.sent();
204
213
  return [3 /*break*/, 3];
@@ -46,7 +46,6 @@ var useCustomComponents_1 = require("../../common/hooks/useCustomComponents");
46
46
  var useTheme_1 = require("../../common/hooks/useTheme");
47
47
  var useTranslation_1 = require("../../common/hooks/useTranslation");
48
48
  var CloseIcon_1 = require("../../common/icons/CloseIcon");
49
- var professional_1 = require("../../common/utils/professional");
50
49
  var animation_1 = require("../animations/CallingAnimation/animation");
51
50
  var VideoConsultationIcon_1 = require("../icons/VideoConsultationIcon");
52
51
  var react_1 = __importStar(require("react"));
@@ -68,8 +67,8 @@ var JoinVideoCallScreen = function (_a) {
68
67
  return <VideoCallScreen_1.default onVideoCallLeft={onVideoCallLeft}/>;
69
68
  return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />} rightIcon={<CloseIcon_1.CloseIcon />}/>} containerStyle={[styles.container, customComponents === null || customComponents === void 0 ? void 0 : customComponents.containerStyle]}>
70
69
  <Text_1.Text variant="h2" center>
71
- {t('video.calling.physician_female', {
72
- name: (0, professional_1.getProfessionalLabel)(professional)
70
+ {t("video.calling.physician_".concat(professional.gender), {
71
+ name: professional.firstName
73
72
  })}
74
73
  </Text_1.Text>
75
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.35.0",
3
+ "version": "1.36.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"