@abihealth/goapp-react-native 1.19.0 → 1.20.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 +7 -0
- package/dist/common/components/Header/ConsultationHeader.js +2 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +7 -3
- package/dist/text-consultations/components/TextConsultation.d.ts +6 -0
- package/dist/text-consultations/components/TextConsultation.js +41 -0
- package/dist/{common → text-consultations}/icons/TextConsultationIcon.js +3 -5
- package/dist/text-consultations/screens/HomeScreen.d.ts +2 -0
- package/dist/text-consultations/screens/HomeScreen.js +31 -0
- package/dist/video-consultations/components/VideoConsultation.d.ts +1 -3
- package/dist/video-consultations/components/VideoConsultation.js +1 -4
- package/package.json +2 -3
- /package/dist/{common → text-consultations}/icons/TextConsultationIcon.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.20.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.19.0...goapp-react-native-v1.20.0) (2025-03-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add text consultation feature ([#157](https://github.com/abiglobalhealth/react-native-sdk/issues/157)) ([71acafa](https://github.com/abiglobalhealth/react-native-sdk/commit/71acafac2539c1e4ec4572749f8f5f1461a352a1))
|
|
9
|
+
|
|
3
10
|
## [1.19.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.18.1...goapp-react-native-v1.19.0) (2025-03-25)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -8,6 +8,7 @@ exports.ConsultationHeader = void 0;
|
|
|
8
8
|
var useConsultation_1 = require("../../hooks/useConsultation");
|
|
9
9
|
var consultation_1 = require("../../types/consultation");
|
|
10
10
|
var FormPrescriptionIcon_1 = require("../../../form-prescriptions/icons/FormPrescriptionIcon");
|
|
11
|
+
var TextConsultationIcon_1 = require("../../../text-consultations/icons/TextConsultationIcon");
|
|
11
12
|
var VideoConsultationIcon_1 = require("../../../video-consultations/icons/VideoConsultationIcon");
|
|
12
13
|
var react_1 = __importDefault(require("react"));
|
|
13
14
|
var react_i18next_1 = require("react-i18next");
|
|
@@ -16,7 +17,7 @@ var CONSULTATION_ICON = (_a = {},
|
|
|
16
17
|
_a[consultation_1.CASE_TYPE.VIDEO] = <VideoConsultationIcon_1.VideoConsultationIcon />,
|
|
17
18
|
_a[consultation_1.CASE_TYPE.PRESCRIPTION] = <FormPrescriptionIcon_1.FormPrescriptionIcon />,
|
|
18
19
|
_a[consultation_1.CASE_TYPE.MENTAL] = null,
|
|
19
|
-
_a[consultation_1.CASE_TYPE.MEDICAL] =
|
|
20
|
+
_a[consultation_1.CASE_TYPE.MEDICAL] = <TextConsultationIcon_1.TextConsultationIcon />,
|
|
20
21
|
_a[consultation_1.CASE_TYPE.VOICE] = null // TODO: Add icon when service is available
|
|
21
22
|
,
|
|
22
23
|
_a);
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ import { CloseIcon } from './common/icons/CloseIcon';
|
|
|
37
37
|
import { DoctorIcon } from './common/icons/DoctorIcon';
|
|
38
38
|
import { InfoIcon } from './common/icons/InfoIcon';
|
|
39
39
|
import { PlaneIcon } from './common/icons/PlaneIcon';
|
|
40
|
-
import { TextConsultationIcon } from './common/icons/TextConsultationIcon';
|
|
41
40
|
import { AnswerScreen } from './common/screens/AnswerScreen';
|
|
42
41
|
import { MatchingScreen } from './common/screens/MatchingScreen';
|
|
43
42
|
import { MatchScreen } from './common/screens/MatchScreen';
|
|
@@ -57,6 +56,9 @@ import { FormPrescription } from './form-prescriptions/components/FormPrescripti
|
|
|
57
56
|
import { IndicationCategory } from './form-prescriptions/components/IndicationCategory';
|
|
58
57
|
import { SearchableDropDown } from './form-prescriptions/components/SearchableDropdown';
|
|
59
58
|
import { HomeScreen as PrescriptionHomeScreen } from './form-prescriptions/screens/HomeScreen';
|
|
59
|
+
import { TextConsultation } from './text-consultations/components/TextConsultation';
|
|
60
|
+
import { TextConsultationIcon } from './text-consultations/icons/TextConsultationIcon';
|
|
61
|
+
import { HomeScreen as TextConsultationHomeScreen } from './text-consultations/screens/HomeScreen';
|
|
60
62
|
import { CallingAnimation } from './video-consultations/animations/CallingAnimation';
|
|
61
63
|
import AgoraWrapper from './video-consultations/components/AgoraWrapper';
|
|
62
64
|
import { EndVideoCallModal } from './video-consultations/components/Modal/EndVideoCallModal';
|
|
@@ -68,4 +70,4 @@ import { JoinVideoCallScreen } from './video-consultations/screens/JoinVideoCall
|
|
|
68
70
|
import { ProcessingPrescriptionScreen } from './video-consultations/screens/ProcessingPrescriptionScreen';
|
|
69
71
|
import VideoCallScreen from './video-consultations/screens/VideoCallScreen';
|
|
70
72
|
export { AbiLogoIcon, AgoraWrapper, Animation, AnswerScreen, AttachmentPreviewModal, authorization, BackArrowIcon, BackgroundPattern, Button, CallingAnimation, CancelConsultationButton, CancelModal, Card, CASE_TYPE, Checkbox, CloseConsultationModal, CloseIcon, Consultation, CONSULTATION_STATUS, // TODO check this after last refactor
|
|
71
|
-
ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormPrescription, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, IndicationCategory, IndicationCategoryType, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, PrescriptionHomeScreen, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, SearchableDropDown, Select, Slide, Text, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
|
|
73
|
+
ConsultationProvider, DateInput, DeliveryAddressScreen, DoctorIcon, DoctorProfileCard, DoctorProfileModal, EndingVideoScreen, EndVideoCallModal, FadeIn, FindingAnimation, FormPrescription, FormWrapper, getProfessionalLabel, Header, HKDeliveryAddressSchema, HorizontalLoadingAnimation, IndicationCategory, IndicationCategoryType, InfoIcon, Input, isAndroid, isIOS, JoinVideoCallScreen, License, LoadingCircleAnimation, LoadingDotsAnimation, MatchingScreen, MatchScreen, Modal, NoConsultationFoundScreen, PhoneInput, PlaneIcon, PreparingSummaryScreen, Prescription, PRESCRIPTION_STATUS, PrescriptionHomeScreen, ProcessingPrescriptionScreen, Professional, Question, QuestionType, RatingScreen, Reminder, requiredCheckbox, requiredString, ScreenWrapper, SearchableDropDown, Select, Slide, Text, TextConsultation, TextConsultationHomeScreen, TextConsultationIcon, Theme, TwoOptionsModal, useConsultation, useTheme, useTranslation, validPhone, VideoCallScreen, VideoConsultation, VideoConsultationIcon };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PRESCRIPTION_STATUS = exports.PreparingSummaryScreen = exports.PlaneIcon = exports.PhoneInput = exports.NoConsultationFoundScreen = exports.Modal = exports.MatchScreen = exports.MatchingScreen = exports.LoadingDotsAnimation = exports.LoadingCircleAnimation = exports.JoinVideoCallScreen = exports.isIOS = exports.isAndroid = exports.Input = exports.InfoIcon = exports.IndicationCategory = exports.HorizontalLoadingAnimation = exports.HKDeliveryAddressSchema = exports.Header = exports.getProfessionalLabel = exports.FormWrapper = exports.FormPrescription = exports.FindingAnimation = exports.FadeIn = exports.EndVideoCallModal = exports.EndingVideoScreen = exports.DoctorProfileModal = exports.DoctorProfileCard = exports.DoctorIcon = exports.DeliveryAddressScreen = exports.DateInput = exports.ConsultationProvider = exports.CONSULTATION_STATUS = exports.CloseIcon = exports.CloseConsultationModal = exports.Checkbox = exports.CASE_TYPE = exports.Card = exports.CancelModal = exports.CancelConsultationButton = exports.CallingAnimation = exports.Button = exports.BackgroundPattern = exports.BackArrowIcon = exports.authorization = exports.AttachmentPreviewModal = exports.AnswerScreen = exports.Animation = exports.AgoraWrapper = exports.AbiLogoIcon = void 0;
|
|
7
|
-
exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.Text = exports.Slide = exports.Select = exports.SearchableDropDown = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = exports.QuestionType = exports.ProcessingPrescriptionScreen = exports.PrescriptionHomeScreen = void 0;
|
|
7
|
+
exports.VideoConsultationIcon = exports.VideoConsultation = exports.VideoCallScreen = exports.validPhone = exports.useTranslation = exports.useTheme = exports.useConsultation = exports.TwoOptionsModal = exports.TextConsultationIcon = exports.TextConsultationHomeScreen = exports.TextConsultation = exports.Text = exports.Slide = exports.Select = exports.SearchableDropDown = exports.ScreenWrapper = exports.requiredString = exports.requiredCheckbox = exports.Reminder = exports.RatingScreen = exports.QuestionType = exports.ProcessingPrescriptionScreen = exports.PrescriptionHomeScreen = void 0;
|
|
8
8
|
var Animation_1 = require("./common/animations/Animation");
|
|
9
9
|
Object.defineProperty(exports, "Animation", { enumerable: true, get: function () { return Animation_1.Animation; } });
|
|
10
10
|
var FindingAnimation_1 = require("./common/animations/FindingAnimation");
|
|
@@ -83,8 +83,6 @@ var InfoIcon_1 = require("./common/icons/InfoIcon");
|
|
|
83
83
|
Object.defineProperty(exports, "InfoIcon", { enumerable: true, get: function () { return InfoIcon_1.InfoIcon; } });
|
|
84
84
|
var PlaneIcon_1 = require("./common/icons/PlaneIcon");
|
|
85
85
|
Object.defineProperty(exports, "PlaneIcon", { enumerable: true, get: function () { return PlaneIcon_1.PlaneIcon; } });
|
|
86
|
-
var TextConsultationIcon_1 = require("./common/icons/TextConsultationIcon");
|
|
87
|
-
Object.defineProperty(exports, "TextConsultationIcon", { enumerable: true, get: function () { return TextConsultationIcon_1.TextConsultationIcon; } });
|
|
88
86
|
var AnswerScreen_1 = require("./common/screens/AnswerScreen");
|
|
89
87
|
Object.defineProperty(exports, "AnswerScreen", { enumerable: true, get: function () { return AnswerScreen_1.AnswerScreen; } });
|
|
90
88
|
var MatchingScreen_1 = require("./common/screens/MatchingScreen");
|
|
@@ -122,6 +120,12 @@ var SearchableDropdown_1 = require("./form-prescriptions/components/SearchableDr
|
|
|
122
120
|
Object.defineProperty(exports, "SearchableDropDown", { enumerable: true, get: function () { return SearchableDropdown_1.SearchableDropDown; } });
|
|
123
121
|
var HomeScreen_1 = require("./form-prescriptions/screens/HomeScreen");
|
|
124
122
|
Object.defineProperty(exports, "PrescriptionHomeScreen", { enumerable: true, get: function () { return HomeScreen_1.HomeScreen; } });
|
|
123
|
+
var TextConsultation_1 = require("./text-consultations/components/TextConsultation");
|
|
124
|
+
Object.defineProperty(exports, "TextConsultation", { enumerable: true, get: function () { return TextConsultation_1.TextConsultation; } });
|
|
125
|
+
var TextConsultationIcon_1 = require("./text-consultations/icons/TextConsultationIcon");
|
|
126
|
+
Object.defineProperty(exports, "TextConsultationIcon", { enumerable: true, get: function () { return TextConsultationIcon_1.TextConsultationIcon; } });
|
|
127
|
+
var HomeScreen_2 = require("./text-consultations/screens/HomeScreen");
|
|
128
|
+
Object.defineProperty(exports, "TextConsultationHomeScreen", { enumerable: true, get: function () { return HomeScreen_2.HomeScreen; } });
|
|
125
129
|
var CallingAnimation_1 = require("./video-consultations/animations/CallingAnimation");
|
|
126
130
|
Object.defineProperty(exports, "CallingAnimation", { enumerable: true, get: function () { return CallingAnimation_1.CallingAnimation; } });
|
|
127
131
|
var AgoraWrapper_1 = __importDefault(require("./video-consultations/components/AgoraWrapper"));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EventHandlers } from '../../common/helpers/eventHandler';
|
|
2
|
+
export interface TextConsultationProps {
|
|
3
|
+
userId: string;
|
|
4
|
+
eventHandlers?: EventHandlers;
|
|
5
|
+
}
|
|
6
|
+
export declare const TextConsultation: ({ eventHandlers, userId }: TextConsultationProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextConsultation = void 0;
|
|
4
|
+
var eventHandler_1 = require("../../common/helpers/eventHandler");
|
|
5
|
+
var useConsultation_1 = require("../../common/hooks/useConsultation");
|
|
6
|
+
var useUser_1 = require("../../common/hooks/useUser");
|
|
7
|
+
var screens_1 = require("../../common/screens");
|
|
8
|
+
var NoConsultationFoundScreen_1 = require("../../common/screens/NoConsultationFoundScreen");
|
|
9
|
+
var NotValidActiveTypeScreen_1 = require("../../common/screens/NotValidActiveTypeScreen");
|
|
10
|
+
var consultation_1 = require("../../common/types/consultation");
|
|
11
|
+
var valid_active_type_1 = require("../../common/utils/valid-active-type");
|
|
12
|
+
var HomeScreen_1 = require("../screens/HomeScreen");
|
|
13
|
+
var react_1 = require("react");
|
|
14
|
+
var react_native_1 = require("react-native");
|
|
15
|
+
var TextConsultation = function (_a) {
|
|
16
|
+
var eventHandlers = _a.eventHandlers, userId = _a.userId;
|
|
17
|
+
var consultation = (0, useConsultation_1.useConsultation)().consultation;
|
|
18
|
+
var setUserId = (0, useUser_1.useUser)().setUserId;
|
|
19
|
+
(0, react_1.useEffect)(function () {
|
|
20
|
+
(0, eventHandler_1.handleEvent)(consultation, eventHandlers);
|
|
21
|
+
}, [consultation, eventHandlers]);
|
|
22
|
+
(0, react_1.useEffect)(function () {
|
|
23
|
+
setUserId(userId);
|
|
24
|
+
}, [userId]);
|
|
25
|
+
var getConsultationScreen = (0, react_1.useCallback)(function (consultation) {
|
|
26
|
+
var validActiveType = (0, valid_active_type_1.checkValidActiveType)(consultation, consultation_1.CASE_TYPE.MEDICAL);
|
|
27
|
+
if (!validActiveType)
|
|
28
|
+
return <NotValidActiveTypeScreen_1.NotValidActiveTypeScreen caseType={consultation.type}/>;
|
|
29
|
+
var commonScreen = (0, screens_1.getCommonScreen)(consultation);
|
|
30
|
+
if (commonScreen)
|
|
31
|
+
return commonScreen;
|
|
32
|
+
if (!consultation)
|
|
33
|
+
return <NoConsultationFoundScreen_1.NoConsultationFoundScreen />;
|
|
34
|
+
return <HomeScreen_1.HomeScreen />;
|
|
35
|
+
}, [consultation]);
|
|
36
|
+
return <react_native_1.View style={styles.container}>{getConsultationScreen(consultation)}</react_native_1.View>;
|
|
37
|
+
};
|
|
38
|
+
exports.TextConsultation = TextConsultation;
|
|
39
|
+
var styles = react_native_1.StyleSheet.create({
|
|
40
|
+
container: { flex: 1 }
|
|
41
|
+
});
|
|
@@ -37,17 +37,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.TextConsultationIcon = void 0;
|
|
40
|
-
var useTheme_1 = require("
|
|
40
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
41
41
|
var react_1 = __importDefault(require("react"));
|
|
42
42
|
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
43
43
|
var TextConsultationIcon = function (_a) {
|
|
44
44
|
var _b = _a.size, size = _b === void 0 ? 26 : _b;
|
|
45
45
|
var palette = (0, useTheme_1.useTheme)().palette;
|
|
46
46
|
return (<react_native_svg_1.default width={size} height={size} viewBox="0 0 37 33" fill="none">
|
|
47
|
-
<react_native_svg_1.
|
|
48
|
-
|
|
49
|
-
<react_native_svg_1.Path id="Vector_2" d="M8.63912 7.03308e-06C7.95789 -0.00226874 7.40376 0.548043 7.40143 1.22921C7.3991 1.91052 7.40141 2.46695 7.40141 2.46695H8.99966H28.9997C30.9997 2.46695 34.5375 3.70497 34.5375 8.5L34.5375 19.8301H35.6626C36.3413 19.8874 36.938 19.3838 36.9953 18.705C37.0011 18.6359 37.0011 18.5665 36.9953 18.4975V3.70497C36.9953 1.67683 35.3276 7.03308e-06 33.2994 7.03308e-06H8.63912Z" fill={palette.white}/>
|
|
50
|
-
</react_native_svg_1.G>
|
|
47
|
+
<react_native_svg_1.Path id="Vector" d="M3.70675 4.93457C1.67855 4.93457 1.92407e-05 6.6107 1.92407e-05 8.63889V30.8335C-0.00374522 31.5146 0.545358 32.0698 1.22648 32.0736C1.55934 32.0754 1.87881 31.9426 2.1123 31.7054L6.68128 27.1364H28.3653C30.3935 27.1364 32.072 25.4603 32.072 23.4321V8.63889C32.072 6.6107 30.3935 4.93457 28.3653 4.93457H3.70675ZM8.63942 12.336H16.0408C16.7219 12.3213 17.2859 12.8615 17.3006 13.5425C17.3153 14.2236 16.7751 14.7876 16.0941 14.8023C16.0763 14.8027 16.0586 14.8027 16.0408 14.8023H8.63942C7.95836 14.7876 7.41817 14.2236 7.43287 13.5425C7.44713 12.8822 7.97906 12.3502 8.63942 12.336ZM8.51176 17.2687C8.55429 17.2664 8.59689 17.2664 8.63942 17.2687H23.4326C24.1137 17.2534 24.6782 17.7931 24.6935 18.4741C24.7088 19.1552 24.169 19.7197 23.488 19.735C23.4695 19.7354 23.4511 19.7354 23.4326 19.735H8.63942C7.95757 19.7551 7.38853 19.2187 7.36841 18.5368C7.34893 17.8763 7.85277 17.3175 8.51176 17.2687Z" fill={palette.white}/>
|
|
48
|
+
<react_native_svg_1.Path id="Vector_2" d="M8.63912 7.03308e-06C7.95789 -0.00226874 7.40376 0.548043 7.40143 1.22921C7.3991 1.91052 7.40141 2.46695 7.40141 2.46695H8.99966H28.9997C30.9997 2.46695 34.5375 3.70497 34.5375 8.5L34.5375 19.8301H35.6626C36.3413 19.8874 36.938 19.3838 36.9953 18.705C37.0011 18.6359 37.0011 18.5665 36.9953 18.4975V3.70497C36.9953 1.67683 35.3276 7.03308e-06 33.2994 7.03308e-06H8.63912Z" fill={palette.white}/>
|
|
51
49
|
</react_native_svg_1.default>);
|
|
52
50
|
};
|
|
53
51
|
exports.TextConsultationIcon = TextConsultationIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HomeScreen = void 0;
|
|
7
|
+
var ConsultationHeader_1 = require("../../common/components/Header/ConsultationHeader");
|
|
8
|
+
var ScreenWrapper_1 = require("../../common/components/ScreenWrapper");
|
|
9
|
+
var Text_1 = require("../../common/components/Text");
|
|
10
|
+
var useTheme_1 = require("../../common/hooks/useTheme");
|
|
11
|
+
var useTranslation_1 = require("../../common/hooks/useTranslation");
|
|
12
|
+
var TextConsultationIcon_1 = require("../icons/TextConsultationIcon");
|
|
13
|
+
var react_1 = __importDefault(require("react"));
|
|
14
|
+
var react_native_1 = require("react-native");
|
|
15
|
+
var HomeScreen = function () {
|
|
16
|
+
var t = (0, useTranslation_1.useTranslation)().t;
|
|
17
|
+
var theme = (0, useTheme_1.useTheme)();
|
|
18
|
+
var styles = getStyles(theme);
|
|
19
|
+
return (<ScreenWrapper_1.ScreenWrapper header={<ConsultationHeader_1.ConsultationHeader title={t('general.consultation.prescriptionRequest.title')} leftIcon={<TextConsultationIcon_1.TextConsultationIcon />}/>} containerStyle={styles.container}>
|
|
20
|
+
<Text_1.Text>This is the Text Consultation Home Screen</Text_1.Text>
|
|
21
|
+
</ScreenWrapper_1.ScreenWrapper>);
|
|
22
|
+
};
|
|
23
|
+
exports.HomeScreen = HomeScreen;
|
|
24
|
+
var getStyles = function (_a) {
|
|
25
|
+
var spacing = _a.spacing;
|
|
26
|
+
return react_native_1.StyleSheet.create({
|
|
27
|
+
container: {
|
|
28
|
+
rowGap: spacing.sm
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { EventHandlers } from '../../common/helpers/eventHandler';
|
|
2
|
-
import { HeaderT } from '../../common/types/consultation';
|
|
3
2
|
export interface VideoConsultationProps {
|
|
4
3
|
userId: string;
|
|
5
4
|
eventHandlers?: EventHandlers;
|
|
6
|
-
header?: HeaderT;
|
|
7
5
|
}
|
|
8
|
-
export declare const VideoConsultation: ({ eventHandlers, userId
|
|
6
|
+
export declare const VideoConsultation: ({ eventHandlers, userId }: VideoConsultationProps) => import("react").JSX.Element;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VideoConsultation = void 0;
|
|
4
4
|
var eventHandler_1 = require("../../common/helpers/eventHandler");
|
|
5
5
|
var useConsultation_1 = require("../../common/hooks/useConsultation");
|
|
6
|
-
var useHeader_1 = require("../../common/hooks/useHeader");
|
|
7
6
|
var useUser_1 = require("../../common/hooks/useUser");
|
|
8
7
|
var screens_1 = require("../../common/screens");
|
|
9
8
|
var NoConsultationFoundScreen_1 = require("../../common/screens/NoConsultationFoundScreen");
|
|
@@ -17,9 +16,8 @@ var ProcessingPrescriptionScreen_1 = require("../screens/ProcessingPrescriptionS
|
|
|
17
16
|
var react_1 = require("react");
|
|
18
17
|
var react_native_1 = require("react-native");
|
|
19
18
|
var VideoConsultation = function (_a) {
|
|
20
|
-
var eventHandlers = _a.eventHandlers, userId = _a.userId
|
|
19
|
+
var eventHandlers = _a.eventHandlers, userId = _a.userId;
|
|
21
20
|
var consultation = (0, useConsultation_1.useConsultation)().consultation;
|
|
22
|
-
var setHeader = (0, useHeader_1.useHeader)().setHeader;
|
|
23
21
|
var setUserId = (0, useUser_1.useUser)().setUserId;
|
|
24
22
|
(0, react_1.useEffect)(function () {
|
|
25
23
|
(0, eventHandler_1.handleEvent)(consultation, eventHandlers);
|
|
@@ -27,7 +25,6 @@ var VideoConsultation = function (_a) {
|
|
|
27
25
|
(0, react_1.useEffect)(function () {
|
|
28
26
|
setUserId(userId);
|
|
29
27
|
}, [userId]);
|
|
30
|
-
(0, react_1.useEffect)(function () { return setHeader(header); }, [header]);
|
|
31
28
|
var getConsultationScreen = (0, react_1.useCallback)(function (consultation) {
|
|
32
29
|
var validActiveType = (0, valid_active_type_1.checkValidActiveType)(consultation, consultation_1.CASE_TYPE.VIDEO);
|
|
33
30
|
if (!validActiveType)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abihealth/goapp-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"copy-assets:common": "mkdir -p dist/common/assets && cp -r src/common/assets dist/common || true",
|
|
49
|
-
"
|
|
50
|
-
"build": "rm -rf dist && pnpm copy-assets:common && pnpm copy-assets:video-consultations && tsc && tsc-alias",
|
|
49
|
+
"build": "rm -rf dist && pnpm copy-assets:common && tsc && tsc-alias",
|
|
51
50
|
"build:watch": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w\"",
|
|
52
51
|
"start": "pnpm build:watch",
|
|
53
52
|
"start:ios": "pnpm start",
|
|
File without changes
|