@lichens-innovation/react-native-common 3.10.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/README.md +35 -0
- package/dist/index.d.ts +1860 -9
- package/dist/index.js +4666 -9
- package/dist/index.js.map +1 -1
- package/dist/rjsf.d.ts +125 -0
- package/dist/rjsf.js +1484 -0
- package/dist/rjsf.js.map +1 -0
- package/package.json +45 -8
- package/dist/components/battery/battery-level.d.ts +0 -9
- package/dist/components/battery/battery-level.js +0 -9
- package/dist/components/battery/battery-level.js.map +0 -1
- package/dist/components/battery/battery.utils.d.ts +0 -2
- package/dist/components/battery/battery.utils.js +0 -24
- package/dist/components/battery/battery.utils.js.map +0 -1
- package/dist/components/battery/index.d.ts +0 -2
- package/dist/components/battery/index.js +0 -3
- package/dist/components/battery/index.js.map +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.constants.d.ts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.constants.js +0 -2
- package/dist/components/bottom-sheet/bottom-sheet.constants.js.map +0 -1
- package/dist/components/bottom-sheet/default-backdrop.d.ts +0 -3
- package/dist/components/bottom-sheet/default-backdrop.js +0 -4
- package/dist/components/bottom-sheet/default-backdrop.js.map +0 -1
- package/dist/components/bottom-sheet/default-backdrop.windows.d.ts +0 -2
- package/dist/components/bottom-sheet/default-backdrop.windows.js +0 -3
- package/dist/components/bottom-sheet/default-backdrop.windows.js.map +0 -1
- package/dist/components/bottom-sheet/default-sheet-background.d.ts +0 -3
- package/dist/components/bottom-sheet/default-sheet-background.js +0 -8
- package/dist/components/bottom-sheet/default-sheet-background.js.map +0 -1
- package/dist/components/bottom-sheet/index.d.ts +0 -4
- package/dist/components/bottom-sheet/index.js +0 -5
- package/dist/components/bottom-sheet/index.js.map +0 -1
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.d.ts +0 -7
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.js +0 -39
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner-dialog.d.ts +0 -11
- package/dist/components/code-scanner/barcode-scanner-dialog.js +0 -32
- package/dist/components/code-scanner/barcode-scanner-dialog.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner.d.ts +0 -7
- package/dist/components/code-scanner/barcode-scanner.js +0 -34
- package/dist/components/code-scanner/barcode-scanner.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner.utils.d.ts +0 -4
- package/dist/components/code-scanner/barcode-scanner.utils.js +0 -38
- package/dist/components/code-scanner/barcode-scanner.utils.js.map +0 -1
- package/dist/components/code-scanner/index.d.ts +0 -3
- package/dist/components/code-scanner/index.js +0 -4
- package/dist/components/code-scanner/index.js.map +0 -1
- package/dist/components/dialogs/dialog-close-only.d.ts +0 -12
- package/dist/components/dialogs/dialog-close-only.js +0 -39
- package/dist/components/dialogs/dialog-close-only.js.map +0 -1
- package/dist/components/dialogs/dialog-ok-cancel.d.ts +0 -13
- package/dist/components/dialogs/dialog-ok-cancel.js +0 -44
- package/dist/components/dialogs/dialog-ok-cancel.js.map +0 -1
- package/dist/components/dialogs/dialog-single-textinput.d.ts +0 -16
- package/dist/components/dialogs/dialog-single-textinput.js +0 -59
- package/dist/components/dialogs/dialog-single-textinput.js.map +0 -1
- package/dist/components/dialogs/dialog-syntax-color-result.d.ts +0 -14
- package/dist/components/dialogs/dialog-syntax-color-result.js +0 -47
- package/dist/components/dialogs/dialog-syntax-color-result.js.map +0 -1
- package/dist/components/dialogs/index.d.ts +0 -5
- package/dist/components/dialogs/index.js +0 -6
- package/dist/components/dialogs/index.js.map +0 -1
- package/dist/components/dialogs/use-dialog-styles.d.ts +0 -4
- package/dist/components/dialogs/use-dialog-styles.js +0 -13
- package/dist/components/dialogs/use-dialog-styles.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector-item.d.ts +0 -8
- package/dist/components/drop-down-selector/drop-down-selector-item.js +0 -24
- package/dist/components/drop-down-selector/drop-down-selector-item.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.d.ts +0 -7
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.js +0 -9
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.d.ts +0 -17
- package/dist/components/drop-down-selector/drop-down-selector.js +0 -60
- package/dist/components/drop-down-selector/drop-down-selector.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.utils.d.ts +0 -22
- package/dist/components/drop-down-selector/drop-down-selector.utils.js +0 -37
- package/dist/components/drop-down-selector/drop-down-selector.utils.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.windows.d.ts +0 -2
- package/dist/components/drop-down-selector/drop-down-selector.windows.js +0 -3
- package/dist/components/drop-down-selector/drop-down-selector.windows.js.map +0 -1
- package/dist/components/drop-down-selector/index.d.ts +0 -1
- package/dist/components/drop-down-selector/index.js +0 -2
- package/dist/components/drop-down-selector/index.js.map +0 -1
- package/dist/components/error/error-boundary-screen.d.ts +0 -2
- package/dist/components/error/error-boundary-screen.js +0 -35
- package/dist/components/error/error-boundary-screen.js.map +0 -1
- package/dist/components/error/error-boundary-screen.windows.d.ts +0 -2
- package/dist/components/error/error-boundary-screen.windows.js +0 -3
- package/dist/components/error/error-boundary-screen.windows.js.map +0 -1
- package/dist/components/error/error-boundary.d.ts +0 -3
- package/dist/components/error/error-boundary.js +0 -27
- package/dist/components/error/error-boundary.js.map +0 -1
- package/dist/components/error/error-boundary.windows.d.ts +0 -2
- package/dist/components/error/error-boundary.windows.js +0 -3
- package/dist/components/error/error-boundary.windows.js.map +0 -1
- package/dist/components/error/error-details.d.ts +0 -7
- package/dist/components/error/error-details.js +0 -32
- package/dist/components/error/error-details.js.map +0 -1
- package/dist/components/error/index.d.ts +0 -4
- package/dist/components/error/index.js +0 -5
- package/dist/components/error/index.js.map +0 -1
- package/dist/components/error/use-error-details.d.ts +0 -7
- package/dist/components/error/use-error-details.js +0 -19
- package/dist/components/error/use-error-details.js.map +0 -1
- package/dist/components/event-logs/event-logs-screen.d.ts +0 -2
- package/dist/components/event-logs/event-logs-screen.js +0 -63
- package/dist/components/event-logs/event-logs-screen.js.map +0 -1
- package/dist/components/event-logs/index.d.ts +0 -2
- package/dist/components/event-logs/index.js +0 -3
- package/dist/components/event-logs/index.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/index.d.ts +0 -6
- package/dist/components/event-logs/live-logs-viewer/index.js +0 -7
- package/dist/components/event-logs/live-logs-viewer/index.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.js +0 -6
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.js +0 -35
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.js +0 -44
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.d.ts +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.js +0 -6
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.js +0 -20
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.d.ts +0 -6
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.js +0 -24
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.js.map +0 -1
- package/dist/components/header-actions/header-back-button.d.ts +0 -2
- package/dist/components/header-actions/header-back-button.js +0 -5
- package/dist/components/header-actions/header-back-button.js.map +0 -1
- package/dist/components/header-actions/header-back-button.windows.d.ts +0 -2
- package/dist/components/header-actions/header-back-button.windows.js +0 -3
- package/dist/components/header-actions/header-back-button.windows.js.map +0 -1
- package/dist/components/header-actions/header-button.d.ts +0 -7
- package/dist/components/header-actions/header-button.js +0 -18
- package/dist/components/header-actions/header-button.js.map +0 -1
- package/dist/components/header-actions/index.d.ts +0 -2
- package/dist/components/header-actions/index.js +0 -3
- package/dist/components/header-actions/index.js.map +0 -1
- package/dist/components/index.d.ts +0 -19
- package/dist/components/index.js +0 -20
- package/dist/components/index.js.map +0 -1
- package/dist/components/language-selector/index.d.ts +0 -4
- package/dist/components/language-selector/index.js +0 -5
- package/dist/components/language-selector/index.js.map +0 -1
- package/dist/components/language-selector/language-selector-menu.d.ts +0 -3
- package/dist/components/language-selector/language-selector-menu.js +0 -13
- package/dist/components/language-selector/language-selector-menu.js.map +0 -1
- package/dist/components/language-selector/language-selector-segmented.d.ts +0 -3
- package/dist/components/language-selector/language-selector-segmented.js +0 -9
- package/dist/components/language-selector/language-selector-segmented.js.map +0 -1
- package/dist/components/language-selector/language-selector.d.ts +0 -3
- package/dist/components/language-selector/language-selector.js +0 -10
- package/dist/components/language-selector/language-selector.js.map +0 -1
- package/dist/components/language-selector/language-selector.types.d.ts +0 -9
- package/dist/components/language-selector/language-selector.types.js +0 -1
- package/dist/components/language-selector/language-selector.types.js.map +0 -1
- package/dist/components/layout/full-centered.d.ts +0 -7
- package/dist/components/layout/full-centered.js +0 -4
- package/dist/components/layout/full-centered.js.map +0 -1
- package/dist/components/layout/index.d.ts +0 -4
- package/dist/components/layout/index.js +0 -5
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/index.d.ts +0 -2
- package/dist/components/layout/orientation-aware-tabs/index.js +0 -3
- package/dist/components/layout/orientation-aware-tabs/index.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.d.ts +0 -9
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.js +0 -40
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.d.ts +0 -15
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.js +0 -40
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.d.ts +0 -3
- package/dist/components/layout/resizable/horizontal-resizable-split-view.js +0 -80
- package/dist/components/layout/resizable/horizontal-resizable-split-view.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.d.ts +0 -20
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.js +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.js +0 -23
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/index.d.ts +0 -6
- package/dist/components/layout/resizable/index.js +0 -7
- package/dist/components/layout/resizable/index.js.map +0 -1
- package/dist/components/layout/resizable/resizable-overlay-view.d.ts +0 -3
- package/dist/components/layout/resizable/resizable-overlay-view.js +0 -132
- package/dist/components/layout/resizable/resizable-overlay-view.js.map +0 -1
- package/dist/components/layout/resizable/resizable-overlay-view.utils.d.ts +0 -16
- package/dist/components/layout/resizable/resizable-overlay-view.utils.js +0 -19
- package/dist/components/layout/resizable/resizable-overlay-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.d.ts +0 -28
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.js +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.js +0 -31
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.d.ts +0 -3
- package/dist/components/layout/resizable/vertical-resizable-split-view.js +0 -79
- package/dist/components/layout/resizable/vertical-resizable-split-view.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.d.ts +0 -20
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.js +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.js +0 -23
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.js.map +0 -1
- package/dist/components/layout/safe-container.d.ts +0 -8
- package/dist/components/layout/safe-container.js +0 -18
- package/dist/components/layout/safe-container.js.map +0 -1
- package/dist/components/layout/safe-container.windows.d.ts +0 -8
- package/dist/components/layout/safe-container.windows.js +0 -16
- package/dist/components/layout/safe-container.windows.js.map +0 -1
- package/dist/components/lists/index.d.ts +0 -2
- package/dist/components/lists/index.js +0 -3
- package/dist/components/lists/index.js.map +0 -1
- package/dist/components/lists/list-header.d.ts +0 -5
- package/dist/components/lists/list-header.js +0 -17
- package/dist/components/lists/list-header.js.map +0 -1
- package/dist/components/lists/list-items-separator.d.ts +0 -2
- package/dist/components/lists/list-items-separator.js +0 -17
- package/dist/components/lists/list-items-separator.js.map +0 -1
- package/dist/components/on-off-toggle/index.d.ts +0 -1
- package/dist/components/on-off-toggle/index.js +0 -2
- package/dist/components/on-off-toggle/index.js.map +0 -1
- package/dist/components/on-off-toggle/on-off-toggle.d.ts +0 -9
- package/dist/components/on-off-toggle/on-off-toggle.js +0 -27
- package/dist/components/on-off-toggle/on-off-toggle.js.map +0 -1
- package/dist/components/password-input/index.d.ts +0 -1
- package/dist/components/password-input/index.js +0 -2
- package/dist/components/password-input/index.js.map +0 -1
- package/dist/components/password-input/password-input.d.ts +0 -4
- package/dist/components/password-input/password-input.js +0 -27
- package/dist/components/password-input/password-input.js.map +0 -1
- package/dist/components/score-indicator/index.d.ts +0 -1
- package/dist/components/score-indicator/index.js +0 -2
- package/dist/components/score-indicator/index.js.map +0 -1
- package/dist/components/score-indicator/score-indicator.d.ts +0 -6
- package/dist/components/score-indicator/score-indicator.js +0 -31
- package/dist/components/score-indicator/score-indicator.js.map +0 -1
- package/dist/components/snack-bar/index.d.ts +0 -2
- package/dist/components/snack-bar/index.js +0 -3
- package/dist/components/snack-bar/index.js.map +0 -1
- package/dist/components/snack-bar/snackbar-provider.d.ts +0 -8
- package/dist/components/snack-bar/snackbar-provider.js +0 -31
- package/dist/components/snack-bar/snackbar-provider.js.map +0 -1
- package/dist/components/snack-bar/snackbar.constants.d.ts +0 -5
- package/dist/components/snack-bar/snackbar.constants.js +0 -6
- package/dist/components/snack-bar/snackbar.constants.js.map +0 -1
- package/dist/components/spinner/activity-progress-bar-stats.d.ts +0 -8
- package/dist/components/spinner/activity-progress-bar-stats.js +0 -27
- package/dist/components/spinner/activity-progress-bar-stats.js.map +0 -1
- package/dist/components/spinner/activity-progress-bar.d.ts +0 -10
- package/dist/components/spinner/activity-progress-bar.js +0 -21
- package/dist/components/spinner/activity-progress-bar.js.map +0 -1
- package/dist/components/spinner/activity-progress.utils.d.ts +0 -10
- package/dist/components/spinner/activity-progress.utils.js +0 -20
- package/dist/components/spinner/activity-progress.utils.js.map +0 -1
- package/dist/components/spinner/full-centered-spinner.d.ts +0 -2
- package/dist/components/spinner/full-centered-spinner.js +0 -5
- package/dist/components/spinner/full-centered-spinner.js.map +0 -1
- package/dist/components/spinner/index.d.ts +0 -5
- package/dist/components/spinner/index.js +0 -6
- package/dist/components/spinner/index.js.map +0 -1
- package/dist/components/spinner/modal-spinner.d.ts +0 -9
- package/dist/components/spinner/modal-spinner.js +0 -34
- package/dist/components/spinner/modal-spinner.js.map +0 -1
- package/dist/components/syntax/index.d.ts +0 -4
- package/dist/components/syntax/index.js +0 -5
- package/dist/components/syntax/index.js.map +0 -1
- package/dist/components/syntax/styles/dark.d.ts +0 -92
- package/dist/components/syntax/styles/dark.js +0 -92
- package/dist/components/syntax/styles/dark.js.map +0 -1
- package/dist/components/syntax/styles/index.d.ts +0 -2
- package/dist/components/syntax/styles/index.js +0 -3
- package/dist/components/syntax/styles/index.js.map +0 -1
- package/dist/components/syntax/styles/light.d.ts +0 -110
- package/dist/components/syntax/styles/light.js +0 -110
- package/dist/components/syntax/styles/light.js.map +0 -1
- package/dist/components/syntax/syntax-coloring-tag-code.d.ts +0 -9
- package/dist/components/syntax/syntax-coloring-tag-code.js +0 -27
- package/dist/components/syntax/syntax-coloring-tag-code.js.map +0 -1
- package/dist/components/syntax/syntax-coloring-tag-pre.d.ts +0 -9
- package/dist/components/syntax/syntax-coloring-tag-pre.js +0 -18
- package/dist/components/syntax/syntax-coloring-tag-pre.js.map +0 -1
- package/dist/components/syntax/syntax-coloring.d.ts +0 -8
- package/dist/components/syntax/syntax-coloring.js +0 -25
- package/dist/components/syntax/syntax-coloring.js.map +0 -1
- package/dist/components/tab-bar-icon.d.ts +0 -14
- package/dist/components/tab-bar-icon.js +0 -12
- package/dist/components/tab-bar-icon.js.map +0 -1
- package/dist/components/voice-recognition/index.d.ts +0 -2
- package/dist/components/voice-recognition/index.js +0 -3
- package/dist/components/voice-recognition/index.js.map +0 -1
- package/dist/components/voice-recognition/voice-recognition-text-input.d.ts +0 -10
- package/dist/components/voice-recognition/voice-recognition-text-input.js +0 -104
- package/dist/components/voice-recognition/voice-recognition-text-input.js.map +0 -1
- package/dist/components/voice-recognition/voice-recognition.utils.d.ts +0 -7
- package/dist/components/voice-recognition/voice-recognition.utils.js +0 -24
- package/dist/components/voice-recognition/voice-recognition.utils.js.map +0 -1
- package/dist/config/env.config.d.ts +0 -2
- package/dist/config/env.config.js +0 -4
- package/dist/config/env.config.js.map +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -2
- package/dist/config/index.js.map +0 -1
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.d.ts +0 -4
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.js +0 -16
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.js.map +0 -1
- package/dist/hooks/camera-image-picker/index.d.ts +0 -2
- package/dist/hooks/camera-image-picker/index.js +0 -3
- package/dist/hooks/camera-image-picker/index.js.map +0 -1
- package/dist/hooks/camera-image-picker/use-camera-image-picker.d.ts +0 -5
- package/dist/hooks/camera-image-picker/use-camera-image-picker.js +0 -53
- package/dist/hooks/camera-image-picker/use-camera-image-picker.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/index.js +0 -10
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/use-animate-on-focus.windows.d.ts +0 -1
- package/dist/hooks/use-animate-on-focus.windows.js +0 -5
- package/dist/hooks/use-animate-on-focus.windows.js.map +0 -1
- package/dist/hooks/use-image-picker.d.ts +0 -11
- package/dist/hooks/use-image-picker.js +0 -35
- package/dist/hooks/use-image-picker.js.map +0 -1
- package/dist/hooks/use-image-picker.windows.d.ts +0 -1
- package/dist/hooks/use-image-picker.windows.js +0 -5
- package/dist/hooks/use-image-picker.windows.js.map +0 -1
- package/dist/hooks/use-invalidate-queries-on-focus.d.ts +0 -2
- package/dist/hooks/use-invalidate-queries-on-focus.js +0 -11
- package/dist/hooks/use-invalidate-queries-on-focus.js.map +0 -1
- package/dist/hooks/use-on-html-message.d.ts +0 -5
- package/dist/hooks/use-on-html-message.js +0 -30
- package/dist/hooks/use-on-html-message.js.map +0 -1
- package/dist/hooks/use-single-file-selector.d.ts +0 -17
- package/dist/hooks/use-single-file-selector.js +0 -32
- package/dist/hooks/use-single-file-selector.js.map +0 -1
- package/dist/hooks/use-single-file-selector.windows.d.ts +0 -1
- package/dist/hooks/use-single-file-selector.windows.js +0 -5
- package/dist/hooks/use-single-file-selector.windows.js.map +0 -1
- package/dist/hooks/use-timeout-state.d.ts +0 -1
- package/dist/hooks/use-timeout-state.js +0 -11
- package/dist/hooks/use-timeout-state.js.map +0 -1
- package/dist/hooks/use-timeout-toggle.d.ts +0 -1
- package/dist/hooks/use-timeout-toggle.js +0 -20
- package/dist/hooks/use-timeout-toggle.js.map +0 -1
- package/dist/hooks/use-updates.d.ts +0 -8
- package/dist/hooks/use-updates.js +0 -68
- package/dist/hooks/use-updates.js.map +0 -1
- package/dist/hooks/use-updates.windows.d.ts +0 -1
- package/dist/hooks/use-updates.windows.js +0 -5
- package/dist/hooks/use-updates.windows.js.map +0 -1
- package/dist/hooks/use-window-orientation.d.ts +0 -3
- package/dist/hooks/use-window-orientation.js +0 -10
- package/dist/hooks/use-window-orientation.js.map +0 -1
- package/dist/i18n/en/common.json +0 -188
- package/dist/i18n/fr/common.json +0 -188
- package/dist/i18n/i18n.d.ts +0 -17
- package/dist/i18n/i18n.js +0 -47
- package/dist/i18n/i18n.js.map +0 -1
- package/dist/i18n/i18n.utils.d.ts +0 -1
- package/dist/i18n/i18n.utils.js +0 -7
- package/dist/i18n/i18n.utils.js.map +0 -1
- package/dist/i18n/i18n.utils.windows.d.ts +0 -1
- package/dist/i18n/i18n.utils.windows.js +0 -6
- package/dist/i18n/i18n.utils.windows.js.map +0 -1
- package/dist/i18n/index.d.ts +0 -2
- package/dist/i18n/index.js +0 -3
- package/dist/i18n/index.js.map +0 -1
- package/dist/logger/index.d.ts +0 -4
- package/dist/logger/index.js +0 -5
- package/dist/logger/index.js.map +0 -1
- package/dist/logger/logger.d.ts +0 -17
- package/dist/logger/logger.js +0 -163
- package/dist/logger/logger.js.map +0 -1
- package/dist/logger/logger.types.d.ts +0 -25
- package/dist/logger/logger.types.js +0 -8
- package/dist/logger/logger.types.js.map +0 -1
- package/dist/logger/logger.utils.d.ts +0 -6
- package/dist/logger/logger.utils.js +0 -40
- package/dist/logger/logger.utils.js.map +0 -1
- package/dist/logger/logger.windows.d.ts +0 -18
- package/dist/logger/logger.windows.js +0 -65
- package/dist/logger/logger.windows.js.map +0 -1
- package/dist/logger/use-log-entry-color.d.ts +0 -1
- package/dist/logger/use-log-entry-color.js +0 -23
- package/dist/logger/use-log-entry-color.js.map +0 -1
- package/dist/services/device-finder/device-finder.d.ts +0 -31
- package/dist/services/device-finder/device-finder.js +0 -105
- package/dist/services/device-finder/device-finder.js.map +0 -1
- package/dist/services/device-finder/device-finder.types.d.ts +0 -8
- package/dist/services/device-finder/device-finder.types.js +0 -1
- package/dist/services/device-finder/device-finder.types.js.map +0 -1
- package/dist/services/device-finder/device-finder.windows.d.ts +0 -18
- package/dist/services/device-finder/device-finder.windows.js +0 -48
- package/dist/services/device-finder/device-finder.windows.js.map +0 -1
- package/dist/services/device-finder/index.d.ts +0 -2
- package/dist/services/device-finder/index.js +0 -3
- package/dist/services/device-finder/index.js.map +0 -1
- package/dist/services/files/index.d.ts +0 -2
- package/dist/services/files/index.js +0 -3
- package/dist/services/files/index.js.map +0 -1
- package/dist/services/files/native-file-system.d.ts +0 -15
- package/dist/services/files/native-file-system.js +0 -101
- package/dist/services/files/native-file-system.js.map +0 -1
- package/dist/services/files/native-file-system.types.d.ts +0 -38
- package/dist/services/files/native-file-system.types.js +0 -6
- package/dist/services/files/native-file-system.types.js.map +0 -1
- package/dist/services/files/native-file-system.windows.d.ts +0 -14
- package/dist/services/files/native-file-system.windows.js +0 -31
- package/dist/services/files/native-file-system.windows.js.map +0 -1
- package/dist/services/index.d.ts +0 -3
- package/dist/services/index.js +0 -4
- package/dist/services/index.js.map +0 -1
- package/dist/services/wifi/index.d.ts +0 -6
- package/dist/services/wifi/index.js +0 -7
- package/dist/services/wifi/index.js.map +0 -1
- package/dist/services/wifi/query-keys.d.ts +0 -10
- package/dist/services/wifi/query-keys.js +0 -11
- package/dist/services/wifi/query-keys.js.map +0 -1
- package/dist/services/wifi/use-wifi-info.d.ts +0 -472
- package/dist/services/wifi/use-wifi-info.js +0 -95
- package/dist/services/wifi/use-wifi-info.js.map +0 -1
- package/dist/services/wifi/wifi-info.types.d.ts +0 -22
- package/dist/services/wifi/wifi-info.types.js +0 -21
- package/dist/services/wifi/wifi-info.types.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.d.ts +0 -15
- package/dist/services/wifi/wifi-info.utils.js +0 -114
- package/dist/services/wifi/wifi-info.utils.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.simulator.d.ts +0 -3
- package/dist/services/wifi/wifi-info.utils.simulator.js +0 -23
- package/dist/services/wifi/wifi-info.utils.simulator.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.windows.d.ts +0 -2
- package/dist/services/wifi/wifi-info.utils.windows.js +0 -6
- package/dist/services/wifi/wifi-info.utils.windows.js.map +0 -1
- package/dist/services/wifi/wifi-infos-context.d.ts +0 -170
- package/dist/services/wifi/wifi-infos-context.js +0 -34
- package/dist/services/wifi/wifi-infos-context.js.map +0 -1
- package/dist/store/common-logs.store.d.ts +0 -13
- package/dist/store/common-logs.store.js +0 -32
- package/dist/store/common-logs.store.js.map +0 -1
- package/dist/store/common.store.d.ts +0 -12
- package/dist/store/common.store.js +0 -40
- package/dist/store/common.store.js.map +0 -1
- package/dist/store/index.d.ts +0 -3
- package/dist/store/index.js +0 -4
- package/dist/store/index.js.map +0 -1
- package/dist/store/react-query-provider.d.ts +0 -4
- package/dist/store/react-query-provider.js +0 -7
- package/dist/store/react-query-provider.js.map +0 -1
- package/dist/theme/dark-colors-scheme.d.ts +0 -42
- package/dist/theme/dark-colors-scheme.js +0 -44
- package/dist/theme/dark-colors-scheme.js.map +0 -1
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/index.js +0 -4
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/light-colors-scheme.d.ts +0 -42
- package/dist/theme/light-colors-scheme.js +0 -44
- package/dist/theme/light-colors-scheme.js.map +0 -1
- package/dist/theme/theme.d.ts +0 -171
- package/dist/theme/theme.js +0 -27
- package/dist/theme/theme.js.map +0 -1
- package/dist/utils/alert.utils.d.ts +0 -1
- package/dist/utils/alert.utils.js +0 -12
- package/dist/utils/alert.utils.js.map +0 -1
- package/dist/utils/axios.config.d.ts +0 -2
- package/dist/utils/axios.config.js +0 -15
- package/dist/utils/axios.config.js.map +0 -1
- package/dist/utils/base64.utils.d.ts +0 -2
- package/dist/utils/base64.utils.js +0 -8
- package/dist/utils/base64.utils.js.map +0 -1
- package/dist/utils/clipboard.utils.d.ts +0 -1
- package/dist/utils/clipboard.utils.js +0 -12
- package/dist/utils/clipboard.utils.js.map +0 -1
- package/dist/utils/date.utils.d.ts +0 -3
- package/dist/utils/date.utils.js +0 -15
- package/dist/utils/date.utils.js.map +0 -1
- package/dist/utils/device.utils.d.ts +0 -4
- package/dist/utils/device.utils.js +0 -28
- package/dist/utils/device.utils.js.map +0 -1
- package/dist/utils/device.utils.windows.d.ts +0 -3
- package/dist/utils/device.utils.windows.js +0 -11
- package/dist/utils/device.utils.windows.js.map +0 -1
- package/dist/utils/digest-auth.d.ts +0 -32
- package/dist/utils/digest-auth.js +0 -157
- package/dist/utils/digest-auth.js.map +0 -1
- package/dist/utils/env.utils.d.ts +0 -5
- package/dist/utils/env.utils.js +0 -32
- package/dist/utils/env.utils.js.map +0 -1
- package/dist/utils/env.utils.windows.d.ts +0 -3
- package/dist/utils/env.utils.windows.js +0 -11
- package/dist/utils/env.utils.windows.js.map +0 -1
- package/dist/utils/errors.utils.d.ts +0 -6
- package/dist/utils/errors.utils.js +0 -9
- package/dist/utils/errors.utils.js.map +0 -1
- package/dist/utils/file-picker.utils.d.ts +0 -30
- package/dist/utils/file-picker.utils.js +0 -18
- package/dist/utils/file-picker.utils.js.map +0 -1
- package/dist/utils/file-picker.utils.windows.d.ts +0 -9
- package/dist/utils/file-picker.utils.windows.js +0 -6
- package/dist/utils/file-picker.utils.windows.js.map +0 -1
- package/dist/utils/file.utils.d.ts +0 -28
- package/dist/utils/file.utils.js +0 -105
- package/dist/utils/file.utils.js.map +0 -1
- package/dist/utils/filename.utils.d.ts +0 -40
- package/dist/utils/filename.utils.js +0 -129
- package/dist/utils/filename.utils.js.map +0 -1
- package/dist/utils/font.utils.d.ts +0 -1
- package/dist/utils/font.utils.js +0 -8
- package/dist/utils/font.utils.js.map +0 -1
- package/dist/utils/image.utils.d.ts +0 -1
- package/dist/utils/image.utils.js +0 -16
- package/dist/utils/image.utils.js.map +0 -1
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/index.js +0 -23
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/licences.utils.d.ts +0 -16
- package/dist/utils/licences.utils.js +0 -19
- package/dist/utils/licences.utils.js.map +0 -1
- package/dist/utils/linking.utils.d.ts +0 -3
- package/dist/utils/linking.utils.js +0 -33
- package/dist/utils/linking.utils.js.map +0 -1
- package/dist/utils/network.utils.d.ts +0 -4
- package/dist/utils/network.utils.js +0 -41
- package/dist/utils/network.utils.js.map +0 -1
- package/dist/utils/platform.utils.d.ts +0 -1
- package/dist/utils/platform.utils.js +0 -6
- package/dist/utils/platform.utils.js.map +0 -1
- package/dist/utils/sharing.utils.d.ts +0 -9
- package/dist/utils/sharing.utils.js +0 -58
- package/dist/utils/sharing.utils.js.map +0 -1
- package/dist/utils/sharing.utils.windows.d.ts +0 -3
- package/dist/utils/sharing.utils.windows.js +0 -11
- package/dist/utils/sharing.utils.windows.js.map +0 -1
- package/dist/utils/sqlite.utils.d.ts +0 -10
- package/dist/utils/sqlite.utils.js +0 -36
- package/dist/utils/sqlite.utils.js.map +0 -1
- package/dist/utils/storage.d.ts +0 -10
- package/dist/utils/storage.js +0 -60
- package/dist/utils/storage.js.map +0 -1
- package/dist/utils/storage.windows.d.ts +0 -10
- package/dist/utils/storage.windows.js +0 -34
- package/dist/utils/storage.windows.js.map +0 -1
- package/dist/utils/webview.utils.d.ts +0 -9
- package/dist/utils/webview.utils.js +0 -18
- package/dist/utils/webview.utils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down-selector.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAmB1E,MAAM,CAAC,MAAM,gBAAgB,GAA6C,CAAC,EACzE,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC;IACzB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,QAAQ,KAAK,IAAI,CAAC;IACrC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;IAEtE,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAEtE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AE;YAChB,KAAK,EAAE,SAAS;SACjB;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC9B;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AppTheme } from '~/theme';
|
|
2
|
-
interface GetTextColorArgs {
|
|
3
|
-
theme: AppTheme;
|
|
4
|
-
isFocused: boolean;
|
|
5
|
-
isDisabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const getTextColor: ({ theme, isFocused, isDisabled }: GetTextColorArgs) => string;
|
|
8
|
-
interface GetLabelColorArgs {
|
|
9
|
-
theme: AppTheme;
|
|
10
|
-
isError: boolean;
|
|
11
|
-
isDisabled: boolean;
|
|
12
|
-
isFocusedAndEnabled: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const getLabelColor: ({ theme, isError, isDisabled, isFocusedAndEnabled }: GetLabelColorArgs) => string;
|
|
15
|
-
interface GetBorderColorArgs {
|
|
16
|
-
theme: AppTheme;
|
|
17
|
-
isError: boolean;
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const getBorderColor: ({ theme, isError, isDisabled, isFocused }: GetBorderColorArgs) => string;
|
|
22
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export const getTextColor = ({ theme, isFocused, isDisabled }) => {
|
|
2
|
-
const { onSurfaceDisabled, primary, secondary } = theme.colors;
|
|
3
|
-
if (isDisabled) {
|
|
4
|
-
return onSurfaceDisabled;
|
|
5
|
-
}
|
|
6
|
-
if (isFocused) {
|
|
7
|
-
return primary;
|
|
8
|
-
}
|
|
9
|
-
return secondary;
|
|
10
|
-
};
|
|
11
|
-
export const getLabelColor = ({ theme, isError, isDisabled, isFocusedAndEnabled }) => {
|
|
12
|
-
const { error, onSurfaceDisabled, primary, onSurface } = theme.colors;
|
|
13
|
-
if (isError) {
|
|
14
|
-
return error;
|
|
15
|
-
}
|
|
16
|
-
if (isDisabled) {
|
|
17
|
-
return onSurfaceDisabled;
|
|
18
|
-
}
|
|
19
|
-
if (isFocusedAndEnabled) {
|
|
20
|
-
return primary;
|
|
21
|
-
}
|
|
22
|
-
return onSurface;
|
|
23
|
-
};
|
|
24
|
-
export const getBorderColor = ({ theme, isError, isDisabled, isFocused }) => {
|
|
25
|
-
const { error, surfaceDisabled, primary, outline } = theme.colors;
|
|
26
|
-
if (isError) {
|
|
27
|
-
return error;
|
|
28
|
-
}
|
|
29
|
-
if (isDisabled) {
|
|
30
|
-
return surfaceDisabled;
|
|
31
|
-
}
|
|
32
|
-
if (isFocused) {
|
|
33
|
-
return primary;
|
|
34
|
-
}
|
|
35
|
-
return outline;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=drop-down-selector.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down-selector.utils.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector.utils.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE;IACjF,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;IAE/D,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAqB,EAAE,EAAE;IACtG,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;IAEtE,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,mBAAmB,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAsB,EAAE,EAAE;IAC9F,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;IAElE,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down-selector.windows.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector.windows.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,gBAAgB,GAA2B,GAAG,EAAE,CAAC,mBAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './drop-down-selector';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { router, useLocalSearchParams } from 'expo-router';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Button, Card, Text } from 'react-native-paper';
|
|
6
|
-
import { useAppTheme } from '../../theme/theme';
|
|
7
|
-
import { shareCurrentLogsFile } from '../../utils/sharing.utils';
|
|
8
|
-
export const ErrorBoundaryScreen = () => {
|
|
9
|
-
const styles = useStyles();
|
|
10
|
-
const { t } = useTranslation();
|
|
11
|
-
const { title, description, id } = useLocalSearchParams();
|
|
12
|
-
return (_jsx(View, { style: styles.container, children: _jsxs(Card, { style: styles.card, children: [_jsx(Card.Title, { title: title, titleStyle: styles.errorText }), _jsxs(Card.Content, { children: [_jsx(Text, { variant: "titleMedium", style: styles.label, children: "ID:" }), _jsx(Text, { variant: "bodySmall", children: id }), _jsx(Text, { variant: "titleMedium", style: styles.label, children: "Description:" }), _jsx(Text, { variant: "bodySmall", children: description })] }), _jsxs(Card.Actions, { children: [_jsx(Button, { mode: "outlined", onPress: shareCurrentLogsFile, children: t('common:errorBoundary.details') }), _jsx(Button, { mode: "contained", onPress: () => router.replace('/'), children: t('common:close') })] })] }) }));
|
|
13
|
-
};
|
|
14
|
-
const useStyles = () => {
|
|
15
|
-
const theme = useAppTheme();
|
|
16
|
-
return StyleSheet.create({
|
|
17
|
-
container: {
|
|
18
|
-
flex: 1,
|
|
19
|
-
marginTop: theme.spacing(2),
|
|
20
|
-
padding: theme.spacing(2),
|
|
21
|
-
},
|
|
22
|
-
card: {
|
|
23
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
24
|
-
borderColor: theme.colors.error,
|
|
25
|
-
},
|
|
26
|
-
errorText: {
|
|
27
|
-
color: theme.colors.error,
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
marginTop: theme.spacing(1),
|
|
31
|
-
color: theme.colors.onSurfaceVariant,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=error-boundary-screen.js.map
|
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AAQ,IACjC,EAEf,MAAC,IAAI,CAAC,OAAO,eACX,KAAC,MAAM,IAAC,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,oBAAoB,YAClD,CAAC,CAAC,8BAA8B,CAAC,GAC3B,EACT,KAAC,MAAM,IAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,YACxD,CAAC,CAAC,cAAc,CAAC,GACX,IACI,IACV,GACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC1B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,UAAU,CAAC,aAAa;YACrC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAChC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAC1B;QACD,KAAK,EAAE;YACL,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB;SACrC;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary-screen.windows.js","sourceRoot":"","sources":["../../../src/components/error/error-boundary-screen.windows.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAsB,GAAG,EAAE,CAAC,CAAC,mBAAK,CAAC,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { useRouter } from 'expo-router';
|
|
2
|
-
import * as Sentry from '@sentry/react-native';
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
import { logger } from '../../logger/logger';
|
|
5
|
-
import { useErrorDetails } from './use-error-details';
|
|
6
|
-
export const ErrorBoundary = ({ error }) => {
|
|
7
|
-
const router = useRouter();
|
|
8
|
-
const { title, description, errorMsg, id, stack } = useErrorDetails(error);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
logger.error(`ErrorBoundary Unexpected error: ${errorMsg} (ID: ${id}). Stack: ${stack}`, error);
|
|
11
|
-
Sentry.captureException(error, {
|
|
12
|
-
extra: {
|
|
13
|
-
title,
|
|
14
|
-
description,
|
|
15
|
-
errorMsg,
|
|
16
|
-
id,
|
|
17
|
-
stack,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
router.replace({
|
|
21
|
-
pathname: '/error',
|
|
22
|
-
params: { title, description, errorMsg, id },
|
|
23
|
-
});
|
|
24
|
-
}, [router, error]);
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=error-boundary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.js","sourceRoot":"","sources":["../../../src/components/error/error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,SAAS,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAChF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAE3E,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,KAAK,CAAC,mCAAmC,QAAQ,SAAS,EAAE,aAAa,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC;QAChG,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE;YAC7B,KAAK,EAAE;gBACL,KAAK;gBACL,WAAW;gBACX,QAAQ;gBACR,EAAE;gBACF,KAAK;aACN;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,CAAC;YACb,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAEpB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.windows.js","sourceRoot":"","sources":["../../../src/components/error/error-boundary.windows.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,aAAa,GAA2B,GAAG,EAAE,CAAC,CAAC,mBAAK,CAAC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Platform, StyleSheet } from 'react-native';
|
|
3
|
-
import { ScrollView } from 'react-native-gesture-handler';
|
|
4
|
-
import { Text } from 'react-native-paper';
|
|
5
|
-
import { useAppTheme } from '../../theme/theme';
|
|
6
|
-
export const ErrorDetails = ({ error, title = 'Error' }) => {
|
|
7
|
-
const styles = useStyles();
|
|
8
|
-
const errorToStringify = Object.assign(Object.assign({}, error), { stack: undefined });
|
|
9
|
-
return (_jsxs(ScrollView, { style: styles.container, children: [_jsx(Text, { variant: "bodySmall", style: styles.errorText, children: title }), _jsx(Text, { style: styles.jsonText, children: JSON.stringify(errorToStringify, null, 2) })] }));
|
|
10
|
-
};
|
|
11
|
-
const useStyles = () => {
|
|
12
|
-
const theme = useAppTheme();
|
|
13
|
-
return StyleSheet.create({
|
|
14
|
-
container: {
|
|
15
|
-
flex: 1,
|
|
16
|
-
padding: theme.spacing(2),
|
|
17
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
18
|
-
borderColor: theme.colors.error,
|
|
19
|
-
},
|
|
20
|
-
errorText: {
|
|
21
|
-
color: theme.colors.error,
|
|
22
|
-
},
|
|
23
|
-
jsonText: {
|
|
24
|
-
fontSize: 12,
|
|
25
|
-
fontFamily: Platform.select({
|
|
26
|
-
ios: 'Menlo',
|
|
27
|
-
default: 'monospace',
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=error-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-details.js","sourceRoot":"","sources":["../../../src/components/error/error-details.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAOhD,MAAM,CAAC,MAAM,YAAY,GAAyC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,EAAE,EAAE;IAC/F,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,gBAAgB,mCACjB,KAAK,KACR,KAAK,EAAE,SAAS,GACjB,CAAC;IAEF,OAAO,CACL,MAAC,UAAU,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aACjC,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,MAAM,CAAC,SAAS,YAC9C,KAAK,GACD,EACP,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,YAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,GAAQ,IACrE,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACzB,WAAW,EAAE,UAAU,CAAC,aAAa;YACrC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAChC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAC1B;QACD,QAAQ,EAAE;YACR,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC;gBAC1B,GAAG,EAAE,OAAO;gBACZ,OAAO,EAAE,WAAW;aACrB,CAAC;SACH;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getErrorMessage } from '@lichens-innovation/ts-common';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import uuid from 'react-native-uuid';
|
|
4
|
-
export const useErrorDetails = (error) => {
|
|
5
|
-
const { t } = useTranslation();
|
|
6
|
-
const id = uuid.v4();
|
|
7
|
-
const title = t('common:error');
|
|
8
|
-
const errorMsg = getErrorMessage(error) || 'Unknown';
|
|
9
|
-
const description = t('common:errorBoundary.error', { id, errorMsg });
|
|
10
|
-
const stack = error instanceof Error ? error.stack : '';
|
|
11
|
-
return {
|
|
12
|
-
id,
|
|
13
|
-
title,
|
|
14
|
-
errorMsg,
|
|
15
|
-
description,
|
|
16
|
-
stack,
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=use-error-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-error-details.js","sourceRoot":"","sources":["../../../src/components/error/use-error-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,EAAE;IAChD,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IACrB,MAAM,KAAK,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC;IAChC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,CAAC,4BAA4B,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAExD,OAAO;QACL,EAAE;QACF,KAAK;QACL,QAAQ;QACR,WAAW;QACX,KAAK;KACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { LegendList } from '@legendapp/list';
|
|
3
|
-
import { useToggle } from '@uidotdev/usehooks';
|
|
4
|
-
import { format } from 'date-fns';
|
|
5
|
-
import { filesize } from 'filesize';
|
|
6
|
-
import { useEffect, useState } from 'react';
|
|
7
|
-
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { StyleSheet, View } from 'react-native';
|
|
9
|
-
import { Button, Icon, IconButton, List, Text } from 'react-native-paper';
|
|
10
|
-
import { deleteAllLogFiles, loadAllLogFilesInfo } from '../../logger/logger';
|
|
11
|
-
import { useAppTheme } from '../../theme/theme';
|
|
12
|
-
import { shareTextFile } from '../../utils/sharing.utils';
|
|
13
|
-
import { DialogOkCancel } from '../dialogs/dialog-ok-cancel';
|
|
14
|
-
export const EventLogsScreen = () => {
|
|
15
|
-
const styles = useStyles();
|
|
16
|
-
const theme = useAppTheme();
|
|
17
|
-
const { t } = useTranslation();
|
|
18
|
-
const [files, setFiles] = useState([]);
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
loadAllLogFilesInfo().then(setFiles);
|
|
21
|
-
}, []);
|
|
22
|
-
const [isDeleteDialogVisible, toggleDeleteConfirmVisibility] = useToggle(false);
|
|
23
|
-
const onDeleteConfirmed = () => {
|
|
24
|
-
deleteAllLogFiles()
|
|
25
|
-
.then(() => setFiles([]))
|
|
26
|
-
.finally(() => toggleDeleteConfirmVisibility());
|
|
27
|
-
};
|
|
28
|
-
return (_jsxs(View, { style: styles.container, children: [_jsx(Text, { variant: "titleMedium", style: styles.title, children: t('common:eventLogs') }), _jsx(LegendList, { data: files, renderItem: ({ item }) => {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
const title = item.uri.split('/').pop();
|
|
31
|
-
const updatedAt = 'modificationTime' in item ? new Date((_a = item.modificationTime) !== null && _a !== void 0 ? _a : 0) : new Date();
|
|
32
|
-
const formattedUpdatedAt = format(updatedAt, 'yyyy-MM-dd HH:mm:ss');
|
|
33
|
-
const size = 'size' in item ? filesize((_b = item.size) !== null && _b !== void 0 ? _b : 0) : '';
|
|
34
|
-
const description = `${formattedUpdatedAt} [ ${size} ]`;
|
|
35
|
-
return (_jsx(List.Item, { title: title, description: description, left: (props) => _jsx(List.Icon, Object.assign({}, props, { icon: (props) => _jsx(Icon, Object.assign({ source: "file-document" }, props)) })), right: () => (_jsx(IconButton, { iconColor: theme.colors.primary, icon: "share", onPress: () => shareTextFile(item.uri) })) }));
|
|
36
|
-
}, estimatedItemSize: 30 }), _jsx(View, { style: styles.actions, children: _jsx(Button, { mode: "outlined", icon: "delete", onPress: () => toggleDeleteConfirmVisibility(), children: t('common:delete') }) }), _jsx(DialogOkCancel, { icon: "alert", title: t('common:confirm'), description: t('common:deleteAllLogsFilesConfirmation'), isVisible: isDeleteDialogVisible, onOk: onDeleteConfirmed, onCancel: toggleDeleteConfirmVisibility })] }));
|
|
37
|
-
};
|
|
38
|
-
const useStyles = () => {
|
|
39
|
-
const theme = useAppTheme();
|
|
40
|
-
return StyleSheet.create({
|
|
41
|
-
container: {
|
|
42
|
-
flex: 1,
|
|
43
|
-
padding: theme.spacing(2),
|
|
44
|
-
},
|
|
45
|
-
title: {
|
|
46
|
-
marginBottom: theme.spacing(2),
|
|
47
|
-
},
|
|
48
|
-
fileItem: {
|
|
49
|
-
padding: theme.spacing(2),
|
|
50
|
-
borderBottomWidth: 1,
|
|
51
|
-
borderBottomColor: theme.colors.outline,
|
|
52
|
-
},
|
|
53
|
-
actions: {
|
|
54
|
-
flexDirection: 'row',
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
gap: theme.spacing(2),
|
|
57
|
-
},
|
|
58
|
-
sharePressed: {
|
|
59
|
-
opacity: 0.5,
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=event-logs-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-logs-screen.js","sourceRoot":"","sources":["../../../src/components/event-logs/event-logs-screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC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AAC;SACtB;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,GAAG;SACb;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/event-logs/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TextInput } from 'react-native-paper';
|
|
3
|
-
export const LogEntryItemSuffix = ({ filterText, onPress }) => {
|
|
4
|
-
return _jsx(TextInput.Icon, { icon: filterText ? 'close' : 'magnify', onPress: onPress });
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=log-entry-item-suffix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log-entry-item-suffix.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/log-entry-item-suffix.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAO/C,MAAM,CAAC,MAAM,kBAAkB,GAA+C,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IACxG,OAAO,KAAC,SAAS,CAAC,IAAI,IAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AACtF,CAAC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Platform, Pressable, ScrollView, StyleSheet } from 'react-native';
|
|
3
|
-
import { Text } from 'react-native-paper';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { useLogEntryColor } from '../../../logger/use-log-entry-color';
|
|
6
|
-
import { useAppTheme } from '../../../theme/theme';
|
|
7
|
-
import { setClipboardTextContent } from '../../../utils/clipboard.utils';
|
|
8
|
-
import { useSnackbar } from '../../snack-bar/snackbar-provider';
|
|
9
|
-
import { formatLogMessage } from './logs-viewer.utils';
|
|
10
|
-
export const LogEntryItem = ({ logEntry }) => {
|
|
11
|
-
const styles = useStyles();
|
|
12
|
-
const { showSnackbarMessage } = useSnackbar();
|
|
13
|
-
const { t } = useTranslation();
|
|
14
|
-
const color = useLogEntryColor(logEntry.level.severity);
|
|
15
|
-
const handleLongPress = async (text) => {
|
|
16
|
-
await setClipboardTextContent(text);
|
|
17
|
-
showSnackbarMessage(t('common:copiedToClipboard'));
|
|
18
|
-
};
|
|
19
|
-
return (_jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.logEntry, children: _jsx(Pressable, { onLongPress: () => handleLongPress(logEntry.msg), children: _jsx(Text, { style: [styles.logText, { color }], children: formatLogMessage(logEntry.msg) }) }) }));
|
|
20
|
-
};
|
|
21
|
-
const useStyles = () => {
|
|
22
|
-
const theme = useAppTheme();
|
|
23
|
-
return StyleSheet.create({
|
|
24
|
-
logEntry: {
|
|
25
|
-
paddingHorizontal: theme.spacing(0.5),
|
|
26
|
-
},
|
|
27
|
-
logText: {
|
|
28
|
-
fontFamily: Platform.select({
|
|
29
|
-
ios: 'Menlo',
|
|
30
|
-
default: 'monospace',
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=log-entry-item.js.map
|
|
@@ -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AAe,CAAC,QAAQ,CAAC,GAAG,CAAC,YACzD,KAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,YAAG,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAQ,GACvE,GACD,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,QAAQ,EAAE;YACR,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC;gBAC1B,GAAG,EAAE,OAAO;gBACZ,OAAO,EAAE,WAAW;aACrB,CAAC;SACH;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { LegendList } from '@legendapp/list';
|
|
3
|
-
import { observer } from 'mobx-react-lite';
|
|
4
|
-
import { useEffect } from 'react';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { LogBox, Platform, StyleSheet, View } from 'react-native';
|
|
7
|
-
import { IconButton, TextInput } from 'react-native-paper';
|
|
8
|
-
import { commonLogsStore } from '../../../store/common-logs.store';
|
|
9
|
-
import { useAppTheme } from '../../../theme/theme';
|
|
10
|
-
import { LogEntryItem } from './log-entry-item';
|
|
11
|
-
import { LogEntryItemSuffix } from './log-entry-item-suffix';
|
|
12
|
-
import { useAutoScroll } from './use-auto-scroll';
|
|
13
|
-
import { useLogsActions } from './use-logs-actions';
|
|
14
|
-
export const LogsViewer = observer(({ shouldDisplayToolbar = true, shouldAutoScroll = false }) => {
|
|
15
|
-
const styles = useStyles();
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
const { filterText, setFilterText, filteredLogs, handleCopyAllLogs } = useLogsActions();
|
|
18
|
-
const { listRef, scrollToBottom, toggleAutoScroll, isAutoScrollEnabled } = useAutoScroll(shouldAutoScroll);
|
|
19
|
-
useEffect(() => scrollToBottom(filteredLogs), [filteredLogs, scrollToBottom]);
|
|
20
|
-
useEffect(() => LogBox.ignoreAllLogs(), []);
|
|
21
|
-
return (_jsxs(View, { style: styles.container, children: [shouldDisplayToolbar && (_jsxs(View, { style: styles.actionsBar, children: [_jsx(TextInput, { mode: Platform.OS === 'windows' ? 'flat' : 'outlined', autoCapitalize: "none", value: filterText, onChangeText: setFilterText, placeholder: t('common:logs.filter'), style: styles.filterInput, right: Platform.OS === 'windows' ? undefined : (_jsx(LogEntryItemSuffix, { filterText: filterText, onPress: () => setFilterText('') })) }), _jsx(IconButton, { icon: isAutoScrollEnabled ? 'arrow-down-bold' : 'arrow-down-bold-outline', mode: "contained", onPress: () => toggleAutoScroll(), style: styles.button, accessibilityLabel: t('common:toggleAutoScroll') }), _jsx(IconButton, { icon: "delete", mode: "contained", onPress: () => commonLogsStore.clearLogs(), style: styles.button, accessibilityLabel: t('common:logs.clear') }), _jsx(IconButton, { icon: "content-copy", mode: "contained", onPress: handleCopyAllLogs, style: styles.button, accessibilityLabel: t('common:logs.copyAll') })] })), _jsx(LegendList, { ref: listRef, data: filteredLogs, renderItem: ({ item }) => _jsx(LogEntryItem, { logEntry: item }), estimatedItemSize: 30, keyExtractor: (logEntry, index) => `${logEntry.msg.substring(0, 20)}_${index}` })] }));
|
|
22
|
-
});
|
|
23
|
-
const useStyles = () => {
|
|
24
|
-
const theme = useAppTheme();
|
|
25
|
-
return StyleSheet.create({
|
|
26
|
-
container: {
|
|
27
|
-
flex: 1,
|
|
28
|
-
},
|
|
29
|
-
actionsBar: {
|
|
30
|
-
flexDirection: 'row',
|
|
31
|
-
padding: theme.spacing(0.5),
|
|
32
|
-
marginBottom: theme.spacing(0.5),
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
},
|
|
35
|
-
filterInput: {
|
|
36
|
-
flex: 1,
|
|
37
|
-
height: 40,
|
|
38
|
-
},
|
|
39
|
-
button: {
|
|
40
|
-
marginVertical: 0,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=logs-viewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs-viewer.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/logs-viewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAOpD,MAAM,CAAC,MAAM,UAAU,GAAuC,QAAQ,CACpE,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,gBAAgB,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;I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AM,EAAE,EAAE;SACX;QACD,MAAM,EAAE;YACN,cAAc,EAAE,CAAC;SAClB;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatLogMessage: (msg: string) => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export const formatLogMessage = (msg) => {
|
|
2
|
-
// remove the DATE part of the timestamp from the very beginning of the message (ISO 8601 format)
|
|
3
|
-
// this allows to have a more readable log message on small devices
|
|
4
|
-
return msg.substring(11);
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=logs-viewer.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs-viewer.utils.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/logs-viewer.utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAU,EAAE;IACtD,iGAAiG;IACjG,mEAAmE;IACnE,OAAO,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LegendListRef } from '@legendapp/list';
|
|
2
|
-
export declare const useAutoScroll: <T>(shouldAutoScroll?: boolean) => {
|
|
3
|
-
listRef: import("react").RefObject<LegendListRef>;
|
|
4
|
-
scrollToBottom: (items: T[]) => void;
|
|
5
|
-
isAutoScrollEnabled: boolean;
|
|
6
|
-
toggleAutoScroll: (newValue?: boolean) => void;
|
|
7
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useToggle } from '@uidotdev/usehooks';
|
|
2
|
-
import { useRef } from 'react';
|
|
3
|
-
export const useAutoScroll = (shouldAutoScroll = false) => {
|
|
4
|
-
const listRef = useRef(null);
|
|
5
|
-
const [isAutoScrollEnabled, toggleAutoScroll] = useToggle(shouldAutoScroll);
|
|
6
|
-
const scrollToBottom = (items) => {
|
|
7
|
-
if (!isAutoScrollEnabled || !listRef.current || !items.length) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const lastItemIndex = items.length - 1;
|
|
11
|
-
listRef.current.scrollToIndex({ index: lastItemIndex, animated: false, viewPosition: 1 });
|
|
12
|
-
};
|
|
13
|
-
return {
|
|
14
|
-
listRef,
|
|
15
|
-
scrollToBottom,
|
|
16
|
-
isAutoScrollEnabled,
|
|
17
|
-
toggleAutoScroll,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=use-auto-scroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-auto-scroll.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/use-auto-scroll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAI,mBAA4B,KAAK,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAE5E,MAAM,cAAc,GAAG,CAAC,KAAU,EAAE,EAAE;QACpC,IAAI,CAAC,mBAAmB,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAC9D,OAAO;QACT,CAAC;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACvC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5F,CAAC,CAAC;IAEF,OAAO;QACL,OAAO;QACP,cAAc;QACd,mBAAmB;QACnB,gBAAgB;KACjB,CAAC;AACJ,CAAC,CAAC"}
|