Skip to main content

Public API map

The package root is src/index.tsx. It re-exports the module indexes below. The package also exposes matching subpaths, for example @ovok/native/bt-management, through the package export map.

Root export areaSource indexStable app-facing entry points
authsrc/modules/auth/index.tsxSignIn, Register, ResetPassword, ProfileForm, LogoutButton, DeleteAccountButton
background-syncsrc/modules/background-sync/index.tsAndroid Bluetooth service, Android Health Connect scheduling, push notification helpers
breathing-exercisesrc/modules/breathing-exercise/index.tsComponent, provider, context, hook
bt-devicesrc/modules/bt-device/index.tsDevice-list UI, Devices, SUPPORTED_DEVICES, images, manuals
bt-managementsrc/modules/bt-management/index.tsBTProvider, BTManager, callback types, device declarations, integrated device values
contentsrc/modules/content/index.tsContent cards/lists/details and composition hook
data-syncsrc/modules/data-sync/index.tsDataSync, props, status types, progress list
diarysrc/modules/diary/index.tsDiaryCard
helperssrc/modules/helpers/index.tsxConditional, form items, logging/animation helpers, bottom-sheet provider
imagesrc/modules/image/index.tsOptimizedImage, image dimensions
journalsrc/modules/journal/index.tsJournal answer and question components
language-switchersrc/modules/language-switcher/index.tsLanguage switcher, context, hook
measurementsrc/modules/measurement/index.tsMeasurement list and date range
observation-detailsrc/modules/observation-detail/index.tsObservation detail and date/time
patientsrc/modules/patient/index.tsPatient card/list and patient field components
pdfsrc/modules/pdf/index.tsPDFViewer
picker-sheetsrc/modules/picker-sheet/index.tsPickerSheet, WheelPicker
polyfillssrc/polyfills/index.tsMedplum web APIs, Expo storage/crypto, WebSocket initialization
progress-barsrc/modules/progress-bar/index.tsProgressBar
questionnaire-response-formsrc/modules/questionnaire-response-form/index.tsForm/providers/hooks/submit utilities
settingsrc/modules/setting/index.tsSetting list components
socketsrc/modules/socket/index.tsSocket provider/hooks/types
tabsrc/modules/tab/index.tsTabs/provider/context/hook
themesrc/modules/theme/index.tsTheme provider, hook, colors/multipliers
tilesrc/modules/tile/index.tsTile

Protocol API​

The bt-management index intentionally exports lower-level protocol types and factories. They are useful for custom integrations and tests, but they are more coupled to device wire formats than the UI APIs:

  • defineCustomDevice and custom declaration types;
  • BTManagedDevice, BTManager, and background BLE helpers;
  • standard GATT factories;
  • boso, Visomat, Veroval, AOJ, Lepu, and Viatom declarations;
  • measurement field and device status types.

Prefer the catalog and integrated device values for normal application code. Pin and test the exact SDK version when using protocol factories.

Import guidance​

import { BTProvider, DataSync, ThemeProvider } from "@ovok/native";

Use a subpath when a bundle or codebase convention needs it:

import { BTProvider } from "@ovok/native/bt-management";
import { SUPPORTED_DEVICES } from "@ovok/native/bt-device";

Do not import from src/ paths or from generated lib/ paths. Those are build artifacts, not the public contract.