@lichens-innovation/react-native-common 3.11.0 → 3.11.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.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { BarcodeScanningResult, BarcodeType } from 'expo-camera';
|
|
|
6
6
|
import { Dialog, TextInputProps } from 'react-native-paper';
|
|
7
7
|
import { ErrorBoundaryProps } from 'expo-router';
|
|
8
8
|
import { LegendListRef } from '@legendapp/list';
|
|
9
|
-
import { ModuleType } from 'i18next';
|
|
9
|
+
import { i18n, ModuleType } from 'i18next';
|
|
10
10
|
import { TabTriggerSlotProps } from 'expo-router/ui';
|
|
11
11
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
12
|
import * as ImagePicker from 'expo-image-picker';
|
|
@@ -232,6 +232,7 @@ declare const languageDetector: {
|
|
|
232
232
|
init: () => void;
|
|
233
233
|
cacheUserLanguage: () => void;
|
|
234
234
|
};
|
|
235
|
+
declare const initCommonI18N: (instance?: i18n) => void;
|
|
235
236
|
|
|
236
237
|
interface LanguageSelectorProps {
|
|
237
238
|
label?: string;
|
|
@@ -1856,4 +1857,4 @@ interface LogIncomingHtmlDocMessageArgs {
|
|
|
1856
1857
|
}
|
|
1857
1858
|
declare const logIncomingHtmlDocMessage: ({ type, log }: LogIncomingHtmlDocMessageArgs) => void;
|
|
1858
1859
|
|
|
1859
|
-
export { type ActivityProgress, ActivityProgressBar, ActivityProgressBarStats, type AppTheme, BARCODE_TYPES, BarcodeScanner, BarcodeScannerDialog, BatteryLevel, CodeTag, type ConnectToWiFiArgs, DARK_COLORS_SCHEME, DARK_THEME, DEFAULT_CONNECT_WIFI_TIMEOUT, DEFAULT_LANGUAGE, DEFAULT_SHEET_SNAP_POINTS, DefaultBackdrop, DefaultSheetBackground, type DeleteOptions, DeviceFinder, DialogCloseOnly, type DialogCloseOnlyProps, DialogOkCancel, DialogSingleTextInput, DialogSyntaxColorResult, DigestAuth, type DigestAuthArgs, type DirectoryInfo, type DiscoveredDevice, DropDownSelector, type DropDownSelectorProps, EncodingType, ErrorBoundary, ErrorBoundaryScreen, ErrorDetails, EventLogsScreen, type FileInfo, type FileMutationResult, FullCentered, FullCenteredSpinner, HeaderBackButton, HeaderButton, HorizontalResizableSplitView, type HorizontalResizableSplitViewProps, type INativeFileSystem, type ImageDimensions, LIGHT_COLORS_SCHEME, LIGHT_THEME, LOG_LEVELS, LanguageSelector, LanguageSelectorMenu, type LanguageSelectorProps, LanguageSelectorSegmented, type LicenceDetail, type LicenceEntry, ListHeader, type ListHeaderProps, ListItemsSeparator, type LoadTextContentResult, type LogEntry, LogEntryItem, LogEntryItemSuffix, type LogLevel, type LogLevelKey, type LoggerMethods, LogsViewer, type MakeDirectoryOptions, ModalSpinner, type ModalSpinnerProps, NAVIGATION_DARK, NAVIGATION_LIGHT, NativeFileSystem, OnOffToggle, OrientationAwareTabButton, type OrientationAwareTabButtonProps, OrientationAwareTabsLayout, type OrientationAwareTabsLayoutProps, PasswordInput, type PasswordInputProps, PreTag, type ReadOptions, type ReplyToDigestChallengeArgs, ResizableOverlayView, SUPPORTED_LANGUAGES, SafeContainer, type SelectOption, type SimpleLogger, type SingleFile, SnackbarContext, SnackbarDurationsMs, SnackbarProvider, type SupportedLanguage, SyntaxColoring, TabBarIcon, type TabItem, TanstackQueryProvider, type VerticalResizableOverlayViewAnchorType, type VerticalResizableOverlayViewProps, VerticalResizableSplitView, type VerticalResizableSplitViewProps, VoiceRecognitionTextInput, WifiDiagnoseQueryKey, type WifiInfo, WifiInfosContext, type WifiInfosContextType, WifiInfosProvider, type WindowOrientation, type WriteOptions, applyFilenameTemplate, askConfirmation, axiosInstance, base64Decode, base64Encode, buildAdditionalContextData, buildFinalValue, commonLogsStore, commonLogsStoreTransport, commonStore, computeActivityProgress, connectToWiFi, convertImageToBase64, createDbFolderUri, createDbInstance, createDirectoryStructure, dateToISOLikeButLocal, deleteAllLogFiles, deleteFile, detectLanguage, disconnectFromWiFi, ensureVoiceRecognitionPermissions, fetchAvailableWifiList, fetchAvailableWifiListSimulator, fetchWifiInfo, fetchWifiInfosSimulator, formatLogMessage, getAppIdentifier, getBatteryColor, getBatteryIcon, getDeviceType, getDirectoryOnly, getDocumentFolderRelativePath, getDocumentFullFilename, getEnvVarsSource, getFileExtensionOnly, getFilenameOnly, getFilenameWithoutExtension, getMonospaceFontName, getPermissionMessage, getSQLiteVersion, getSentryDns, getUniqueDbFilename, hasExtension, hasFileSeparator, htmlDocumentMessage, htmlDocumentRawMessage, isAxiosNetworkError, isDevelopment, isDisconnectedOrConnecting, isEmulator, isFileExists, isFileUri, isPreview, isProduction, isRealDevice, isSentryActivated, isUnexpectedWifiConnectionError, isValidIpAddressV4, languageDetector, loadAllLogFilesInfo, loadCurrentLogsFileUri, loadSelectedLanguage, loadTextContent, logIncomingHtmlDocMessage, logRequestEnd, logRequestStart, loggedError, logger, mmkvStorageForMobxPersist, nativeFileSystem, normalizeFileUri, notImplementedYet, nowAsIsoFilename, nowToISOLikeButLocal, nowToISOLikeButLocalForFilename, openWifiSettings, openWifiSettingsAndroid, openWifiSettingsIos, parseLicenceData, pickSingleFile, queryClient, requestCameraPermissions, requestLocationPermission, requestMediaLibPermissions, requestTakePhotoPermissions, sanitizeUrl, saveTextContent, setClipboardTextContent, shareCurrentLogsFile, shareFile, shareTextFile, shareXmlFile, startNetworkStateLogging, storage, storeSelectedLanguage, styles, toLogLevel, toSinglePictureUri, toWifiInfo, toWifiInfoArray, useAppTheme, useAutoScroll, useBottomSheetToggler, useCameraImagePicker, useConnectToWifiMutation, useDialogStyles, useDisconnectFromWifiMutation, useErrorDetails, useImagePicker, useInvalidateQueriesOnFocus, useIsDarkMode, useIsLandscape, useLoadAvailableWifiList, useLoadAvailableWifiListErrorSnackbar, useLogEntryColor, useLogsActions, useOnHtmlDocMessage, useSingleFileSelector, useSnackbar, useTimeoutState, useTimeoutToggle, useUpdates, useWifiInfo, useWifiInfosContext, useWifiInfosErrorSnackbar, useWindowOrientation, validateGetRandomValues };
|
|
1860
|
+
export { type ActivityProgress, ActivityProgressBar, ActivityProgressBarStats, type AppTheme, BARCODE_TYPES, BarcodeScanner, BarcodeScannerDialog, BatteryLevel, CodeTag, type ConnectToWiFiArgs, DARK_COLORS_SCHEME, DARK_THEME, DEFAULT_CONNECT_WIFI_TIMEOUT, DEFAULT_LANGUAGE, DEFAULT_SHEET_SNAP_POINTS, DefaultBackdrop, DefaultSheetBackground, type DeleteOptions, DeviceFinder, DialogCloseOnly, type DialogCloseOnlyProps, DialogOkCancel, DialogSingleTextInput, DialogSyntaxColorResult, DigestAuth, type DigestAuthArgs, type DirectoryInfo, type DiscoveredDevice, DropDownSelector, type DropDownSelectorProps, EncodingType, ErrorBoundary, ErrorBoundaryScreen, ErrorDetails, EventLogsScreen, type FileInfo, type FileMutationResult, FullCentered, FullCenteredSpinner, HeaderBackButton, HeaderButton, HorizontalResizableSplitView, type HorizontalResizableSplitViewProps, type INativeFileSystem, type ImageDimensions, LIGHT_COLORS_SCHEME, LIGHT_THEME, LOG_LEVELS, LanguageSelector, LanguageSelectorMenu, type LanguageSelectorProps, LanguageSelectorSegmented, type LicenceDetail, type LicenceEntry, ListHeader, type ListHeaderProps, ListItemsSeparator, type LoadTextContentResult, type LogEntry, LogEntryItem, LogEntryItemSuffix, type LogLevel, type LogLevelKey, type LoggerMethods, LogsViewer, type MakeDirectoryOptions, ModalSpinner, type ModalSpinnerProps, NAVIGATION_DARK, NAVIGATION_LIGHT, NativeFileSystem, OnOffToggle, OrientationAwareTabButton, type OrientationAwareTabButtonProps, OrientationAwareTabsLayout, type OrientationAwareTabsLayoutProps, PasswordInput, type PasswordInputProps, PreTag, type ReadOptions, type ReplyToDigestChallengeArgs, ResizableOverlayView, SUPPORTED_LANGUAGES, SafeContainer, type SelectOption, type SimpleLogger, type SingleFile, SnackbarContext, SnackbarDurationsMs, SnackbarProvider, type SupportedLanguage, SyntaxColoring, TabBarIcon, type TabItem, TanstackQueryProvider, type VerticalResizableOverlayViewAnchorType, type VerticalResizableOverlayViewProps, VerticalResizableSplitView, type VerticalResizableSplitViewProps, VoiceRecognitionTextInput, WifiDiagnoseQueryKey, type WifiInfo, WifiInfosContext, type WifiInfosContextType, WifiInfosProvider, type WindowOrientation, type WriteOptions, applyFilenameTemplate, askConfirmation, axiosInstance, base64Decode, base64Encode, buildAdditionalContextData, buildFinalValue, commonLogsStore, commonLogsStoreTransport, commonStore, computeActivityProgress, connectToWiFi, convertImageToBase64, createDbFolderUri, createDbInstance, createDirectoryStructure, dateToISOLikeButLocal, deleteAllLogFiles, deleteFile, detectLanguage, disconnectFromWiFi, ensureVoiceRecognitionPermissions, fetchAvailableWifiList, fetchAvailableWifiListSimulator, fetchWifiInfo, fetchWifiInfosSimulator, formatLogMessage, getAppIdentifier, getBatteryColor, getBatteryIcon, getDeviceType, getDirectoryOnly, getDocumentFolderRelativePath, getDocumentFullFilename, getEnvVarsSource, getFileExtensionOnly, getFilenameOnly, getFilenameWithoutExtension, getMonospaceFontName, getPermissionMessage, getSQLiteVersion, getSentryDns, getUniqueDbFilename, hasExtension, hasFileSeparator, htmlDocumentMessage, htmlDocumentRawMessage, initCommonI18N, isAxiosNetworkError, isDevelopment, isDisconnectedOrConnecting, isEmulator, isFileExists, isFileUri, isPreview, isProduction, isRealDevice, isSentryActivated, isUnexpectedWifiConnectionError, isValidIpAddressV4, languageDetector, loadAllLogFilesInfo, loadCurrentLogsFileUri, loadSelectedLanguage, loadTextContent, logIncomingHtmlDocMessage, logRequestEnd, logRequestStart, loggedError, logger, mmkvStorageForMobxPersist, nativeFileSystem, normalizeFileUri, notImplementedYet, nowAsIsoFilename, nowToISOLikeButLocal, nowToISOLikeButLocalForFilename, openWifiSettings, openWifiSettingsAndroid, openWifiSettingsIos, parseLicenceData, pickSingleFile, queryClient, requestCameraPermissions, requestLocationPermission, requestMediaLibPermissions, requestTakePhotoPermissions, sanitizeUrl, saveTextContent, setClipboardTextContent, shareCurrentLogsFile, shareFile, shareTextFile, shareXmlFile, startNetworkStateLogging, storage, storeSelectedLanguage, styles, toLogLevel, toSinglePictureUri, toWifiInfo, toWifiInfoArray, useAppTheme, useAutoScroll, useBottomSheetToggler, useCameraImagePicker, useConnectToWifiMutation, useDialogStyles, useDisconnectFromWifiMutation, useErrorDetails, useImagePicker, useInvalidateQueriesOnFocus, useIsDarkMode, useIsLandscape, useLoadAvailableWifiList, useLoadAvailableWifiListErrorSnackbar, useLogEntryColor, useLogsActions, useOnHtmlDocMessage, useSingleFileSelector, useSnackbar, useTimeoutState, useTimeoutToggle, useUpdates, useWifiInfo, useWifiInfosContext, useWifiInfosErrorSnackbar, useWindowOrientation, validateGetRandomValues };
|
package/dist/index.js
CHANGED
|
@@ -4070,12 +4070,13 @@ var languageDetector = {
|
|
|
4070
4070
|
cacheUserLanguage: () => {
|
|
4071
4071
|
}
|
|
4072
4072
|
};
|
|
4073
|
-
var
|
|
4073
|
+
var initCommonI18N = (instance) => {
|
|
4074
|
+
const i18next3 = instance ?? i18next__default.default;
|
|
4074
4075
|
const savedLanguage = loadSelectedLanguage();
|
|
4075
4076
|
if (!savedLanguage) {
|
|
4076
4077
|
storeSelectedLanguage(DEFAULT_LANGUAGE);
|
|
4077
4078
|
}
|
|
4078
|
-
|
|
4079
|
+
i18next3.use(languageDetector).use(reactI18next.initReactI18next).init({
|
|
4079
4080
|
resources: { fr: common_default2, en: common_default },
|
|
4080
4081
|
defaultNS: "common",
|
|
4081
4082
|
fallbackLng: DEFAULT_LANGUAGE,
|
|
@@ -4087,7 +4088,6 @@ var initI18N = () => {
|
|
|
4087
4088
|
}
|
|
4088
4089
|
});
|
|
4089
4090
|
};
|
|
4090
|
-
initI18N();
|
|
4091
4091
|
var DeviceFinder = class {
|
|
4092
4092
|
constructor() {
|
|
4093
4093
|
this.type = "";
|
|
@@ -4581,6 +4581,7 @@ exports.hasExtension = hasExtension;
|
|
|
4581
4581
|
exports.hasFileSeparator = hasFileSeparator;
|
|
4582
4582
|
exports.htmlDocumentMessage = htmlDocumentMessage;
|
|
4583
4583
|
exports.htmlDocumentRawMessage = htmlDocumentRawMessage;
|
|
4584
|
+
exports.initCommonI18N = initCommonI18N;
|
|
4584
4585
|
exports.isAxiosNetworkError = isAxiosNetworkError;
|
|
4585
4586
|
exports.isDevelopment = isDevelopment;
|
|
4586
4587
|
exports.isDisconnectedOrConnecting = isDisconnectedOrConnecting;
|