@abihealth/goapp-react-native 1.17.0 → 1.18.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/common/assets/ChevronIcon.d.ts +6 -0
  3. package/dist/common/assets/ChevronIcon.js +43 -0
  4. package/dist/common/assets/ChevronIcon.tsx +12 -0
  5. package/dist/common/assets/SearchGlassIcon.d.ts +3 -0
  6. package/dist/common/assets/SearchGlassIcon.js +48 -0
  7. package/dist/common/assets/SearchGlassIcon.tsx +19 -0
  8. package/dist/common/components/AnswerScreen/PrescriptionCard/index.js +1 -1
  9. package/dist/common/icons/CloseIcon.d.ts +3 -1
  10. package/dist/common/icons/CloseIcon.js +2 -2
  11. package/dist/common/screens/AnswerScreen.js +2 -1
  12. package/dist/form-prescriptions/api/prescription.d.ts +3 -1
  13. package/dist/form-prescriptions/api/prescription.js +6 -1
  14. package/dist/form-prescriptions/components/FormPrescription.js +0 -2
  15. package/dist/form-prescriptions/components/IndicationCategory.d.ts +3 -0
  16. package/dist/form-prescriptions/components/IndicationCategory.js +75 -0
  17. package/dist/form-prescriptions/components/IndicationSurveyButton.d.ts +1 -1
  18. package/dist/form-prescriptions/components/IndicationSurveyButton.js +10 -8
  19. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/OpenEnded.js +1 -1
  20. package/dist/form-prescriptions/components/Questionnaire/QuestionnaireQuestion/SingleChoice.js +3 -3
  21. package/dist/form-prescriptions/components/SearchableDropdown.d.ts +90 -0
  22. package/dist/form-prescriptions/components/SearchableDropdown.js +212 -0
  23. package/dist/form-prescriptions/contexts/IndicationSurveyContext.js +6 -0
  24. package/dist/form-prescriptions/hooks/useIndicationSurvey.d.ts +3 -2
  25. package/dist/form-prescriptions/hooks/useIndicationSurvey.js +9 -1
  26. package/dist/form-prescriptions/mocks/indication-survey.d.ts +2 -2
  27. package/dist/form-prescriptions/mocks/indication-survey.js +44 -44
  28. package/dist/form-prescriptions/screens/HomeScreen.js +18 -33
  29. package/dist/form-prescriptions/types/indications.d.ts +2 -2
  30. package/dist/index.d.ts +5 -3
  31. package/dist/index.js +7 -3
  32. package/dist/video-consultations/screens/DeliveryAddressScreen.js +1 -2
  33. package/dist/video-consultations/screens/ProcessingPrescriptionScreen.js +3 -2
  34. package/package.json +13 -13
  35. package/dist/common/api/models/common.d.ts +0 -3
  36. package/dist/common/api/models/common.js +0 -2
@@ -105,14 +105,13 @@ var DeliveryAddressScreen = function () {
105
105
  var styles = getStyles(theme);
106
106
  var _a = (0, useConsultation_1.useConsultation)(), consultation = _a.consultation, updateConsultation = _a.updateConsultation;
107
107
  var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
108
- var _c = (0, react_1.useState)(null), error = _c[0], setError = _c[1];
108
+ var _c = (0, react_1.useState)(false), error = _c[0], setError = _c[1];
109
109
  var onSubmit = function (data) { return __awaiter(void 0, void 0, void 0, function () {
110
110
  return __generator(this, function (_a) {
111
111
  setError(false);
112
112
  setLoading(true);
113
113
  (0, video_1.updateDeliveryAddress)(consultation === null || consultation === void 0 ? void 0 : consultation.id, __assign(__assign({}, data), { country: t('country.hk') }))
114
114
  .then(function (res) {
115
- console.log('esta es la respuesta', res);
116
115
  updateConsultation(res);
117
116
  })
118
117
  .catch(function () { return setError(true); })
@@ -15,16 +15,17 @@ var VideoConsultationIcon_1 = require("../icons/VideoConsultationIcon");
15
15
  var react_1 = __importDefault(require("react"));
16
16
  var react_native_1 = require("react-native");
17
17
  var ProcessingPrescriptionScreen = function () {
18
+ var _a;
18
19
  var t = (0, useTranslation_1.useTranslation)().t;
19
20
  var theme = (0, useTheme_1.useTheme)();
20
21
  var styles = getStyles(theme);
21
- var ProcessingPrescriptionScreen = (0, useCustomComponents_1.useCustomComponents)().screens.ProcessingPrescriptionScreen;
22
+ var screens = (0, useCustomComponents_1.useCustomComponents)().screens;
22
23
  return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />}/>} containerStyle={styles.container}>
23
24
  <Text_1.Text center variant="h1">
24
25
  {t('delivery.address.processing')}
25
26
  </Text_1.Text>
26
27
 
27
- {(ProcessingPrescriptionScreen === null || ProcessingPrescriptionScreen === void 0 ? void 0 : ProcessingPrescriptionScreen.LoadingAnimation) || <LoadingCircleAnimation_1.LoadingCircleAnimation />}
28
+ {((_a = screens === null || screens === void 0 ? void 0 : screens.ProcessingPrescriptionScreen) === null || _a === void 0 ? void 0 : _a.LoadingAnimation) || <LoadingCircleAnimation_1.LoadingCircleAnimation />}
28
29
 
29
30
  <Text_1.Text center>{t('download.one_minute')}</Text_1.Text>
30
31
  </ScreenWrapper_1.ScreenWrapper>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.17.0",
3
+ "version": "1.18.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -14,17 +14,6 @@
14
14
  "main": "./dist/index.js",
15
15
  "types": "./dist/index.d.ts",
16
16
  "type": "module",
17
- "scripts": {
18
- "copy-assets:common": "mkdir -p dist/common/assets && cp -r src/common/assets dist/common || true",
19
- "copy-assets:video-consultations": "mkdir -p dist/video-consultations/assets && cp -r src/video-consultations/assets dist/video-consultations || true",
20
- "build": "rm -rf dist && pnpm copy-assets:common && pnpm copy-assets:video-consultations && tsc && tsc-alias",
21
- "build:watch": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w\"",
22
- "start": "pnpm build:watch",
23
- "start:ios": "pnpm start",
24
- "type-check": "tsc --noEmit",
25
- "lint": "eslint --fix",
26
- "update-phrase": "npx -y phrase-cli pull"
27
- },
28
17
  "dependencies": {
29
18
  "@sentry/react-native": "^6.7.0",
30
19
  "axios": "^1.7.9",
@@ -56,5 +45,16 @@
56
45
  },
57
46
  "exports": {
58
47
  ".": "./dist/index.js"
48
+ },
49
+ "scripts": {
50
+ "copy-assets:common": "mkdir -p dist/common/assets && cp -r src/common/assets dist/common || true",
51
+ "copy-assets:video-consultations": "mkdir -p dist/video-consultations/assets && cp -r src/video-consultations/assets dist/video-consultations || true",
52
+ "build": "rm -rf dist && pnpm copy-assets:common && pnpm copy-assets:video-consultations && tsc && tsc-alias",
53
+ "build:watch": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w\"",
54
+ "start": "pnpm build:watch",
55
+ "start:ios": "pnpm start",
56
+ "type-check": "tsc --noEmit",
57
+ "lint": "eslint --fix",
58
+ "update-phrase": "npx -y phrase-cli pull"
59
59
  }
60
- }
60
+ }
@@ -1,3 +0,0 @@
1
- export interface SuccessResponse {
2
- success: boolean;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });