@codeimplants/ui-kit 1.0.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/README.md +144 -0
- package/dist/adapters/index.d.ts +1 -0
- package/dist/adapters/index.js +2 -0
- package/dist/adapters/supportAdapter.d.ts +87 -0
- package/dist/adapters/supportAdapter.js +99 -0
- package/dist/client.d.ts +55 -0
- package/dist/client.js +229 -0
- package/dist/components/IconLibrary.d.ts +23 -0
- package/dist/components/IconLibrary.js +19 -0
- package/dist/components/RetryIndicator.d.ts +5 -0
- package/dist/components/RetryIndicator.js +208 -0
- package/dist/components/SupportContactCard.d.ts +10 -0
- package/dist/components/SupportContactCard.js +140 -0
- package/dist/components/buttons/PrimaryButton.d.ts +19 -0
- package/dist/components/buttons/PrimaryButton.js +42 -0
- package/dist/components/buttons/SecondaryButton.d.ts +20 -0
- package/dist/components/buttons/SecondaryButton.js +37 -0
- package/dist/components/buttons/index.d.ts +2 -0
- package/dist/components/buttons/index.js +3 -0
- package/dist/components/cards/ContentCard.d.ts +16 -0
- package/dist/components/cards/ContentCard.js +24 -0
- package/dist/components/cards/InfoCard.d.ts +9 -0
- package/dist/components/cards/InfoCard.js +51 -0
- package/dist/components/cards/TipsCard.d.ts +11 -0
- package/dist/components/cards/TipsCard.js +70 -0
- package/dist/components/cards/WarningCard.d.ts +11 -0
- package/dist/components/cards/WarningCard.js +80 -0
- package/dist/components/cards/WhatsNewCard.d.ts +15 -0
- package/dist/components/cards/WhatsNewCard.js +79 -0
- package/dist/components/cards/index.d.ts +5 -0
- package/dist/components/cards/index.js +6 -0
- package/dist/components/feedback/ExpandableSection.d.ts +8 -0
- package/dist/components/feedback/ExpandableSection.js +44 -0
- package/dist/components/feedback/SecurityBanner.d.ts +9 -0
- package/dist/components/feedback/SecurityBanner.js +49 -0
- package/dist/components/feedback/SpeedBadge.d.ts +9 -0
- package/dist/components/feedback/SpeedBadge.js +41 -0
- package/dist/components/feedback/StatusBadge.d.ts +17 -0
- package/dist/components/feedback/StatusBadge.js +20 -0
- package/dist/components/feedback/TopBanner.d.ts +7 -0
- package/dist/components/feedback/TopBanner.js +74 -0
- package/dist/components/feedback/index.d.ts +5 -0
- package/dist/components/feedback/index.js +6 -0
- package/dist/components/icons/AnimatedAlert.d.ts +11 -0
- package/dist/components/icons/AnimatedAlert.js +27 -0
- package/dist/components/icons/AnimatedCalendar.d.ts +7 -0
- package/dist/components/icons/AnimatedCalendar.js +34 -0
- package/dist/components/icons/AnimatedCamera.d.ts +7 -0
- package/dist/components/icons/AnimatedCamera.js +34 -0
- package/dist/components/icons/AnimatedClientError.d.ts +11 -0
- package/dist/components/icons/AnimatedClientError.js +20 -0
- package/dist/components/icons/AnimatedClock.d.ts +7 -0
- package/dist/components/icons/AnimatedClock.js +53 -0
- package/dist/components/icons/AnimatedCrash.d.ts +11 -0
- package/dist/components/icons/AnimatedCrash.js +36 -0
- package/dist/components/icons/AnimatedDocument.d.ts +7 -0
- package/dist/components/icons/AnimatedDocument.js +34 -0
- package/dist/components/icons/AnimatedDownload.d.ts +7 -0
- package/dist/components/icons/AnimatedDownload.js +23 -0
- package/dist/components/icons/AnimatedEmergency.d.ts +11 -0
- package/dist/components/icons/AnimatedEmergency.js +26 -0
- package/dist/components/icons/AnimatedInvalidData.d.ts +11 -0
- package/dist/components/icons/AnimatedInvalidData.js +24 -0
- package/dist/components/icons/AnimatedLightning.d.ts +7 -0
- package/dist/components/icons/AnimatedLightning.js +34 -0
- package/dist/components/icons/AnimatedLocationPin.d.ts +7 -0
- package/dist/components/icons/AnimatedLocationPin.js +34 -0
- package/dist/components/icons/AnimatedPermission.d.ts +11 -0
- package/dist/components/icons/AnimatedPermission.js +21 -0
- package/dist/components/icons/AnimatedPermissionDenied.d.ts +11 -0
- package/dist/components/icons/AnimatedPermissionDenied.js +27 -0
- package/dist/components/icons/AnimatedServerError.d.ts +7 -0
- package/dist/components/icons/AnimatedServerError.js +60 -0
- package/dist/components/icons/AnimatedShield.d.ts +7 -0
- package/dist/components/icons/AnimatedShield.js +34 -0
- package/dist/components/icons/AnimatedSparkle.d.ts +7 -0
- package/dist/components/icons/AnimatedSparkle.js +53 -0
- package/dist/components/icons/AnimatedSpeedGauge.d.ts +7 -0
- package/dist/components/icons/AnimatedSpeedGauge.js +50 -0
- package/dist/components/icons/AnimatedTimeout.d.ts +11 -0
- package/dist/components/icons/AnimatedTimeout.js +27 -0
- package/dist/components/icons/AnimatedWarning.d.ts +7 -0
- package/dist/components/icons/AnimatedWarning.js +50 -0
- package/dist/components/icons/AnimatedWifiOff.d.ts +7 -0
- package/dist/components/icons/AnimatedWifiOff.js +65 -0
- package/dist/components/icons/AnimatedWrench.d.ts +7 -0
- package/dist/components/icons/AnimatedWrench.js +43 -0
- package/dist/components/icons/ClockBadge.d.ts +8 -0
- package/dist/components/icons/ClockBadge.js +28 -0
- package/dist/components/icons/DownloadBadge.d.ts +8 -0
- package/dist/components/icons/DownloadBadge.js +28 -0
- package/dist/components/icons/IconWithBadge.d.ts +12 -0
- package/dist/components/icons/IconWithBadge.js +120 -0
- package/dist/components/icons/SimpleIcons.d.ts +12 -0
- package/dist/components/icons/SimpleIcons.js +8 -0
- package/dist/components/icons/XBadge.d.ts +8 -0
- package/dist/components/icons/XBadge.js +28 -0
- package/dist/components/icons/animated/errors/AnimatedClientError.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedClientError.js +20 -0
- package/dist/components/icons/animated/errors/AnimatedCrash.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedCrash.js +36 -0
- package/dist/components/icons/animated/errors/AnimatedInvalidData.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedInvalidData.js +24 -0
- package/dist/components/icons/animated/errors/AnimatedServerError.d.ts +7 -0
- package/dist/components/icons/animated/errors/AnimatedServerError.js +60 -0
- package/dist/components/icons/animated/errors/index.d.ts +4 -0
- package/dist/components/icons/animated/errors/index.js +5 -0
- package/dist/components/icons/animated/general/AnimatedCalendar.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedCalendar.js +34 -0
- package/dist/components/icons/animated/general/AnimatedCamera.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedCamera.js +34 -0
- package/dist/components/icons/animated/general/AnimatedClock.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedClock.js +53 -0
- package/dist/components/icons/animated/general/AnimatedDocument.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedDocument.js +34 -0
- package/dist/components/icons/animated/general/AnimatedDownload.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedDownload.js +23 -0
- package/dist/components/icons/animated/general/AnimatedLightning.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedLightning.js +34 -0
- package/dist/components/icons/animated/general/AnimatedLocationPin.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedLocationPin.js +34 -0
- package/dist/components/icons/animated/general/AnimatedShield.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedShield.js +34 -0
- package/dist/components/icons/animated/general/AnimatedSparkle.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedSparkle.js +53 -0
- package/dist/components/icons/animated/general/AnimatedWarning.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedWarning.js +50 -0
- package/dist/components/icons/animated/general/index.d.ts +10 -0
- package/dist/components/icons/animated/general/index.js +11 -0
- package/dist/components/icons/animated/index.d.ts +5 -0
- package/dist/components/icons/animated/index.js +6 -0
- package/dist/components/icons/animated/maintenance/AnimatedAlert.d.ts +11 -0
- package/dist/components/icons/animated/maintenance/AnimatedAlert.js +27 -0
- package/dist/components/icons/animated/maintenance/AnimatedEmergency.d.ts +11 -0
- package/dist/components/icons/animated/maintenance/AnimatedEmergency.js +26 -0
- package/dist/components/icons/animated/maintenance/AnimatedWrench.d.ts +7 -0
- package/dist/components/icons/animated/maintenance/AnimatedWrench.js +43 -0
- package/dist/components/icons/animated/maintenance/index.d.ts +3 -0
- package/dist/components/icons/animated/maintenance/index.js +4 -0
- package/dist/components/icons/animated/network/AnimatedSpeedGauge.d.ts +7 -0
- package/dist/components/icons/animated/network/AnimatedSpeedGauge.js +50 -0
- package/dist/components/icons/animated/network/AnimatedTimeout.d.ts +11 -0
- package/dist/components/icons/animated/network/AnimatedTimeout.js +27 -0
- package/dist/components/icons/animated/network/AnimatedWifiOff.d.ts +7 -0
- package/dist/components/icons/animated/network/AnimatedWifiOff.js +65 -0
- package/dist/components/icons/animated/network/index.d.ts +3 -0
- package/dist/components/icons/animated/network/index.js +4 -0
- package/dist/components/icons/animated/permissions/AnimatedPermission.d.ts +11 -0
- package/dist/components/icons/animated/permissions/AnimatedPermission.js +21 -0
- package/dist/components/icons/animated/permissions/AnimatedPermissionDenied.d.ts +11 -0
- package/dist/components/icons/animated/permissions/AnimatedPermissionDenied.js +27 -0
- package/dist/components/icons/animated/permissions/index.d.ts +2 -0
- package/dist/components/icons/animated/permissions/index.js +3 -0
- package/dist/components/icons/badges/ClockBadge.d.ts +8 -0
- package/dist/components/icons/badges/ClockBadge.js +28 -0
- package/dist/components/icons/badges/DownloadBadge.d.ts +8 -0
- package/dist/components/icons/badges/DownloadBadge.js +28 -0
- package/dist/components/icons/badges/XBadge.d.ts +8 -0
- package/dist/components/icons/badges/XBadge.js +28 -0
- package/dist/components/icons/badges/index.d.ts +3 -0
- package/dist/components/icons/badges/index.js +4 -0
- package/dist/components/icons/index.d.ts +3 -0
- package/dist/components/icons/index.js +4 -0
- package/dist/components/icons/utilities/AlertTriangleIcon.d.ts +7 -0
- package/dist/components/icons/utilities/AlertTriangleIcon.js +4 -0
- package/dist/components/icons/utilities/CheckCircleIcon.d.ts +7 -0
- package/dist/components/icons/utilities/CheckCircleIcon.js +4 -0
- package/dist/components/icons/utilities/DownloadIcon.d.ts +7 -0
- package/dist/components/icons/utilities/DownloadIcon.js +4 -0
- package/dist/components/icons/utilities/IconWithBadge.d.ts +12 -0
- package/dist/components/icons/utilities/IconWithBadge.js +120 -0
- package/dist/components/icons/utilities/SettingsIcon.d.ts +7 -0
- package/dist/components/icons/utilities/SettingsIcon.js +4 -0
- package/dist/components/icons/utilities/ShieldIcon.d.ts +7 -0
- package/dist/components/icons/utilities/ShieldIcon.js +4 -0
- package/dist/components/icons/utilities/SimpleIcons.d.ts +12 -0
- package/dist/components/icons/utilities/SimpleIcons.js +8 -0
- package/dist/components/icons/utilities/XIcon.d.ts +7 -0
- package/dist/components/icons/utilities/XIcon.js +4 -0
- package/dist/components/icons/utilities/index.d.ts +7 -0
- package/dist/components/icons/utilities/index.js +8 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +10 -0
- package/dist/components/layout/DualButtonLayout.d.ts +14 -0
- package/dist/components/layout/DualButtonLayout.js +73 -0
- package/dist/components/layout/ResponsiveLayout.d.ts +25 -0
- package/dist/components/layout/ResponsiveLayout.js +76 -0
- package/dist/components/layout/SafeAreaWrapper.d.ts +21 -0
- package/dist/components/layout/SafeAreaWrapper.js +45 -0
- package/dist/components/layout/ScreenContainer.d.ts +15 -0
- package/dist/components/layout/ScreenContainer.js +21 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/layout/index.js +5 -0
- package/dist/components/lists/CheckListItem.d.ts +14 -0
- package/dist/components/lists/CheckListItem.js +40 -0
- package/dist/components/lists/StatusCheckList.d.ts +10 -0
- package/dist/components/lists/StatusCheckList.js +69 -0
- package/dist/components/lists/index.d.ts +2 -0
- package/dist/components/lists/index.js +3 -0
- package/dist/components/shared/CheckListItem.d.ts +14 -0
- package/dist/components/shared/CheckListItem.js +40 -0
- package/dist/components/shared/ConnectionStatus.d.ts +8 -0
- package/dist/components/shared/ConnectionStatus.js +57 -0
- package/dist/components/shared/ContentCard.d.ts +16 -0
- package/dist/components/shared/ContentCard.js +24 -0
- package/dist/components/shared/CountdownTimer.d.ts +9 -0
- package/dist/components/shared/CountdownTimer.js +91 -0
- package/dist/components/shared/DualButtonLayout.d.ts +14 -0
- package/dist/components/shared/DualButtonLayout.js +73 -0
- package/dist/components/shared/ExpandableSection.d.ts +8 -0
- package/dist/components/shared/ExpandableSection.js +44 -0
- package/dist/components/shared/IconWithBadge.d.ts +17 -0
- package/dist/components/shared/IconWithBadge.js +38 -0
- package/dist/components/shared/InfoCard.d.ts +9 -0
- package/dist/components/shared/InfoCard.js +51 -0
- package/dist/components/shared/PrimaryButton.d.ts +19 -0
- package/dist/components/shared/PrimaryButton.js +42 -0
- package/dist/components/shared/ResponsiveLayout.d.ts +25 -0
- package/dist/components/shared/ResponsiveLayout.js +76 -0
- package/dist/components/shared/RetryCounter.d.ts +8 -0
- package/dist/components/shared/RetryCounter.js +17 -0
- package/dist/components/shared/SafeAreaWrapper.d.ts +21 -0
- package/dist/components/shared/SafeAreaWrapper.js +45 -0
- package/dist/components/shared/ScreenContainer.d.ts +15 -0
- package/dist/components/shared/ScreenContainer.js +21 -0
- package/dist/components/shared/SecondaryButton.d.ts +20 -0
- package/dist/components/shared/SecondaryButton.js +37 -0
- package/dist/components/shared/SecurityBanner.d.ts +9 -0
- package/dist/components/shared/SecurityBanner.js +49 -0
- package/dist/components/shared/SpeedBadge.d.ts +9 -0
- package/dist/components/shared/SpeedBadge.js +41 -0
- package/dist/components/shared/StatusBadge.d.ts +17 -0
- package/dist/components/shared/StatusBadge.js +20 -0
- package/dist/components/shared/StatusCheckList.d.ts +10 -0
- package/dist/components/shared/StatusCheckList.js +69 -0
- package/dist/components/shared/SupportButtons.d.ts +9 -0
- package/dist/components/shared/SupportButtons.js +138 -0
- package/dist/components/shared/TipsCard.d.ts +11 -0
- package/dist/components/shared/TipsCard.js +70 -0
- package/dist/components/shared/TopBanner.d.ts +7 -0
- package/dist/components/shared/TopBanner.js +74 -0
- package/dist/components/shared/VersionDisplay.d.ts +14 -0
- package/dist/components/shared/VersionDisplay.js +30 -0
- package/dist/components/shared/WarningCard.d.ts +11 -0
- package/dist/components/shared/WarningCard.js +80 -0
- package/dist/components/shared/WhatsNewCard.d.ts +15 -0
- package/dist/components/shared/WhatsNewCard.js +79 -0
- package/dist/components/status/ConnectionStatus.d.ts +8 -0
- package/dist/components/status/ConnectionStatus.js +57 -0
- package/dist/components/status/VersionDisplay.d.ts +14 -0
- package/dist/components/status/VersionDisplay.js +30 -0
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/index.js +3 -0
- package/dist/components/support/SupportButtons.d.ts +9 -0
- package/dist/components/support/SupportButtons.js +138 -0
- package/dist/components/support/index.d.ts +1 -0
- package/dist/components/support/index.js +2 -0
- package/dist/components/timers/CountdownTimer.d.ts +9 -0
- package/dist/components/timers/CountdownTimer.js +91 -0
- package/dist/components/timers/RetryCounter.d.ts +8 -0
- package/dist/components/timers/RetryCounter.js +17 -0
- package/dist/components/timers/index.d.ts +2 -0
- package/dist/components/timers/index.js +3 -0
- package/dist/components/ui/Button.d.ts +38 -0
- package/dist/components/ui/Button.js +96 -0
- package/dist/components/ui/OfflineBanner.d.ts +15 -0
- package/dist/components/ui/OfflineBanner.js +42 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +103 -0
- package/dist/screens/errors/ApiErrorScreen.d.ts +7 -0
- package/dist/screens/errors/ApiErrorScreen.js +166 -0
- package/dist/screens/errors/ClientErrorScreen.d.ts +9 -0
- package/dist/screens/errors/ClientErrorScreen.js +75 -0
- package/dist/screens/errors/ErrorBoundaryScreen.d.ts +9 -0
- package/dist/screens/errors/ErrorBoundaryScreen.js +43 -0
- package/dist/screens/errors/InvalidResponseScreen.d.ts +9 -0
- package/dist/screens/errors/InvalidResponseScreen.js +47 -0
- package/dist/screens/errors/ServerErrorScreen.d.ts +9 -0
- package/dist/screens/errors/ServerErrorScreen.js +72 -0
- package/dist/screens/errors/index.d.ts +5 -0
- package/dist/screens/errors/index.js +6 -0
- package/dist/screens/index.d.ts +4 -0
- package/dist/screens/index.js +5 -0
- package/dist/screens/network/ApiTimeoutScreen.d.ts +9 -0
- package/dist/screens/network/ApiTimeoutScreen.js +47 -0
- package/dist/screens/network/NetworkOfflineScreen.d.ts +9 -0
- package/dist/screens/network/NetworkOfflineScreen.js +42 -0
- package/dist/screens/network/NetworkSlowConnectionScreen.d.ts +9 -0
- package/dist/screens/network/NetworkSlowConnectionScreen.js +41 -0
- package/dist/screens/network/index.d.ts +3 -0
- package/dist/screens/network/index.js +4 -0
- package/dist/screens/permissions/PermissionDeniedScreen.d.ts +9 -0
- package/dist/screens/permissions/PermissionDeniedScreen.js +92 -0
- package/dist/screens/permissions/PermissionRequestScreen.d.ts +16 -0
- package/dist/screens/permissions/PermissionRequestScreen.js +303 -0
- package/dist/screens/permissions/PermissionScreen.d.ts +9 -0
- package/dist/screens/permissions/PermissionScreen.js +45 -0
- package/dist/screens/permissions/index.d.ts +3 -0
- package/dist/screens/permissions/index.js +4 -0
- package/dist/screens/system/AppUpdateScreen.d.ts +9 -0
- package/dist/screens/system/AppUpdateScreen.js +296 -0
- package/dist/screens/system/EmergencyOutageScreen.d.ts +9 -0
- package/dist/screens/system/EmergencyOutageScreen.js +48 -0
- package/dist/screens/system/ForceUpdateScreen.d.ts +9 -0
- package/dist/screens/system/ForceUpdateScreen.js +49 -0
- package/dist/screens/system/OptionalUpdateScreen.d.ts +9 -0
- package/dist/screens/system/OptionalUpdateScreen.js +47 -0
- package/dist/screens/system/PlannedMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/PlannedMaintenanceScreen.js +41 -0
- package/dist/screens/system/SecurityUpdateScreen.d.ts +9 -0
- package/dist/screens/system/SecurityUpdateScreen.js +64 -0
- package/dist/screens/system/ServiceUnavailableScreen.d.ts +15 -0
- package/dist/screens/system/ServiceUnavailableScreen.js +53 -0
- package/dist/screens/system/SoftUpdateScreen.d.ts +9 -0
- package/dist/screens/system/SoftUpdateScreen.js +55 -0
- package/dist/screens/system/SystemMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/SystemMaintenanceScreen.js +228 -0
- package/dist/screens/system/UnplannedOutageScreen.d.ts +9 -0
- package/dist/screens/system/UnplannedOutageScreen.js +42 -0
- package/dist/screens/system/index.d.ts +2 -0
- package/dist/screens/system/index.js +3 -0
- package/dist/screens/system/maintenance/EmergencyOutageScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/EmergencyOutageScreen.js +48 -0
- package/dist/screens/system/maintenance/PlannedMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/PlannedMaintenanceScreen.js +41 -0
- package/dist/screens/system/maintenance/ServiceUnavailableScreen.d.ts +15 -0
- package/dist/screens/system/maintenance/ServiceUnavailableScreen.js +53 -0
- package/dist/screens/system/maintenance/SystemMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/SystemMaintenanceScreen.js +228 -0
- package/dist/screens/system/maintenance/UnplannedOutageScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/UnplannedOutageScreen.js +42 -0
- package/dist/screens/system/maintenance/index.d.ts +5 -0
- package/dist/screens/system/maintenance/index.js +6 -0
- package/dist/screens/system/updates/AppUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/AppUpdateScreen.js +296 -0
- package/dist/screens/system/updates/ForceUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/ForceUpdateScreen.js +49 -0
- package/dist/screens/system/updates/OptionalUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/OptionalUpdateScreen.js +47 -0
- package/dist/screens/system/updates/SecurityUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/SecurityUpdateScreen.js +64 -0
- package/dist/screens/system/updates/SoftUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/SoftUpdateScreen.js +55 -0
- package/dist/screens/system/updates/index.d.ts +5 -0
- package/dist/screens/system/updates/index.js +6 -0
- package/dist/types/common.d.ts +139 -0
- package/dist/types/common.js +4 -0
- package/dist/types/components.d.ts +52 -0
- package/dist/types/components.js +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +8 -0
- package/dist/types/screens.d.ts +390 -0
- package/dist/types/screens.js +4 -0
- package/dist/types/support.d.ts +16 -0
- package/dist/types/support.js +4 -0
- package/dist/types.d.ts +580 -0
- package/dist/types.js +4 -0
- package/dist/utils/client.d.ts +55 -0
- package/dist/utils/client.js +229 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +72 -0
- package/src/adapters/index.ts +2 -0
- package/src/adapters/supportAdapter.ts +167 -0
- package/src/components/buttons/PrimaryButton.tsx +82 -0
- package/src/components/buttons/SecondaryButton.tsx +81 -0
- package/src/components/buttons/index.ts +3 -0
- package/src/components/cards/ContentCard.tsx +53 -0
- package/src/components/cards/InfoCard.tsx +74 -0
- package/src/components/cards/TipsCard.tsx +106 -0
- package/src/components/cards/WarningCard.tsx +118 -0
- package/src/components/cards/WhatsNewCard.tsx +121 -0
- package/src/components/cards/index.ts +6 -0
- package/src/components/feedback/ExpandableSection.tsx +71 -0
- package/src/components/feedback/SecurityBanner.tsx +74 -0
- package/src/components/feedback/SpeedBadge.tsx +64 -0
- package/src/components/feedback/StatusBadge.tsx +50 -0
- package/src/components/feedback/TopBanner.tsx +104 -0
- package/src/components/feedback/index.ts +6 -0
- package/src/components/icons/animated/errors/AnimatedClientError.tsx +94 -0
- package/src/components/icons/animated/errors/AnimatedCrash.tsx +133 -0
- package/src/components/icons/animated/errors/AnimatedInvalidData.tsx +127 -0
- package/src/components/icons/animated/errors/AnimatedServerError.tsx +85 -0
- package/src/components/icons/animated/errors/index.ts +5 -0
- package/src/components/icons/animated/general/AnimatedCalendar.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedCamera.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedClock.tsx +78 -0
- package/src/components/icons/animated/general/AnimatedDocument.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedDownload.tsx +61 -0
- package/src/components/icons/animated/general/AnimatedLightning.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedLocationPin.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedShield.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedSparkle.tsx +74 -0
- package/src/components/icons/animated/general/AnimatedWarning.tsx +75 -0
- package/src/components/icons/animated/general/index.ts +11 -0
- package/src/components/icons/animated/index.ts +6 -0
- package/src/components/icons/animated/maintenance/AnimatedAlert.tsx +110 -0
- package/src/components/icons/animated/maintenance/AnimatedEmergency.tsx +112 -0
- package/src/components/icons/animated/maintenance/AnimatedWrench.tsx +64 -0
- package/src/components/icons/animated/maintenance/index.ts +4 -0
- package/src/components/icons/animated/network/AnimatedSpeedGauge.tsx +75 -0
- package/src/components/icons/animated/network/AnimatedTimeout.tsx +115 -0
- package/src/components/icons/animated/network/AnimatedWifiOff.tsx +93 -0
- package/src/components/icons/animated/network/index.ts +4 -0
- package/src/components/icons/animated/permissions/AnimatedPermission.tsx +74 -0
- package/src/components/icons/animated/permissions/AnimatedPermissionDenied.tsx +92 -0
- package/src/components/icons/animated/permissions/index.ts +3 -0
- package/src/components/icons/badges/ClockBadge.tsx +49 -0
- package/src/components/icons/badges/DownloadBadge.tsx +49 -0
- package/src/components/icons/badges/XBadge.tsx +49 -0
- package/src/components/icons/badges/index.ts +4 -0
- package/src/components/icons/index.ts +4 -0
- package/src/components/icons/utilities/AlertTriangleIcon.tsx +17 -0
- package/src/components/icons/utilities/CheckCircleIcon.tsx +16 -0
- package/src/components/icons/utilities/DownloadIcon.tsx +17 -0
- package/src/components/icons/utilities/IconWithBadge.tsx +166 -0
- package/src/components/icons/utilities/SettingsIcon.tsx +16 -0
- package/src/components/icons/utilities/ShieldIcon.tsx +15 -0
- package/src/components/icons/utilities/XIcon.tsx +16 -0
- package/src/components/icons/utilities/index.ts +8 -0
- package/src/components/index.ts +10 -0
- package/src/components/layout/DualButtonLayout.tsx +118 -0
- package/src/components/layout/ResponsiveLayout.tsx +118 -0
- package/src/components/layout/SafeAreaWrapper.tsx +72 -0
- package/src/components/layout/ScreenContainer.tsx +53 -0
- package/src/components/layout/index.ts +5 -0
- package/src/components/lists/CheckListItem.tsx +72 -0
- package/src/components/lists/StatusCheckList.tsx +101 -0
- package/src/components/lists/index.ts +3 -0
- package/src/components/status/ConnectionStatus.tsx +90 -0
- package/src/components/status/VersionDisplay.tsx +60 -0
- package/src/components/status/index.ts +3 -0
- package/src/components/support/SupportButtons.tsx +311 -0
- package/src/components/support/index.ts +2 -0
- package/src/components/timers/CountdownTimer.tsx +136 -0
- package/src/components/timers/RetryCounter.tsx +33 -0
- package/src/components/timers/index.ts +3 -0
- package/src/index.ts +125 -0
- package/src/screens/errors/ApiErrorScreen.tsx +276 -0
- package/src/screens/errors/ClientErrorScreen.tsx +135 -0
- package/src/screens/errors/ErrorBoundaryScreen.tsx +98 -0
- package/src/screens/errors/InvalidResponseScreen.tsx +104 -0
- package/src/screens/errors/ServerErrorScreen.tsx +139 -0
- package/src/screens/errors/index.ts +6 -0
- package/src/screens/index.ts +5 -0
- package/src/screens/network/ApiTimeoutScreen.tsx +104 -0
- package/src/screens/network/NetworkOfflineScreen.tsx +92 -0
- package/src/screens/network/NetworkSlowConnectionScreen.tsx +92 -0
- package/src/screens/network/index.ts +4 -0
- package/src/screens/permissions/PermissionDeniedScreen.tsx +176 -0
- package/src/screens/permissions/PermissionRequestScreen.tsx +506 -0
- package/src/screens/permissions/PermissionScreen.tsx +104 -0
- package/src/screens/permissions/index.ts +4 -0
- package/src/screens/system/index.ts +3 -0
- package/src/screens/system/maintenance/EmergencyOutageScreen.tsx +113 -0
- package/src/screens/system/maintenance/PlannedMaintenanceScreen.tsx +98 -0
- package/src/screens/system/maintenance/ServiceUnavailableScreen.tsx +133 -0
- package/src/screens/system/maintenance/SystemMaintenanceScreen.tsx +334 -0
- package/src/screens/system/maintenance/UnplannedOutageScreen.tsx +106 -0
- package/src/screens/system/maintenance/index.ts +6 -0
- package/src/screens/system/updates/AppUpdateScreen.tsx +440 -0
- package/src/screens/system/updates/ForceUpdateScreen.tsx +121 -0
- package/src/screens/system/updates/OptionalUpdateScreen.tsx +120 -0
- package/src/screens/system/updates/SecurityUpdateScreen.tsx +152 -0
- package/src/screens/system/updates/SoftUpdateScreen.tsx +137 -0
- package/src/screens/system/updates/index.ts +6 -0
- package/src/types/common.ts +203 -0
- package/src/types/components.ts +65 -0
- package/src/types/index.ts +9 -0
- package/src/types/reanimated.d.ts +38 -0
- package/src/types/screens.ts +428 -0
- package/src/types/support.ts +23 -0
- package/src/utils/client.ts +273 -0
- package/src/utils/index.ts +2 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../../components/layout/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../../components/icons/utilities/IconWithBadge';
|
|
5
|
+
import ContentCard from '../../../components/cards/ContentCard';
|
|
6
|
+
import PrimaryButton from '../../../components/buttons/PrimaryButton';
|
|
7
|
+
import SecondaryButton from '../../../components/buttons/SecondaryButton';
|
|
8
|
+
import VersionDisplay from '../../../components/status/VersionDisplay';
|
|
9
|
+
import AnimatedDownload from '../../../components/icons/animated/general/AnimatedDownload';
|
|
10
|
+
import { getColor } from '../../../utils/client';
|
|
11
|
+
import type { OptionalUpdateScreenProps } from '../../../types';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Optional Update Screen
|
|
15
|
+
*
|
|
16
|
+
* Displayed when an optional update with new features is available.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export const OptionalUpdateScreen: React.FC<OptionalUpdateScreenProps> = ({
|
|
20
|
+
title = 'New Features Available',
|
|
21
|
+
description = 'Update now to enjoy exciting new capabilities and improvements.',
|
|
22
|
+
currentVersion,
|
|
23
|
+
newVersion,
|
|
24
|
+
features,
|
|
25
|
+
onUpdate,
|
|
26
|
+
onMaybeLater,
|
|
27
|
+
updateButtonText = 'Update Now',
|
|
28
|
+
laterButtonText = 'Maybe Later',
|
|
29
|
+
support,
|
|
30
|
+
theme,
|
|
31
|
+
primaryColor,
|
|
32
|
+
backgroundColor,
|
|
33
|
+
}) => {
|
|
34
|
+
const infoColor = primaryColor || theme?.primary || getColor('primary');
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<ScreenContainer backgroundColor={backgroundColor || theme?.background}>
|
|
38
|
+
{/* Icon with badge */}
|
|
39
|
+
<IconWithBadge
|
|
40
|
+
icon={<AnimatedDownload size={48} color={infoColor} />}
|
|
41
|
+
iconBackgroundColor="#DBEAFE"
|
|
42
|
+
badge={<Text style={styles.badgeIcon}>✨</Text>}
|
|
43
|
+
badgeBackgroundColor={infoColor}
|
|
44
|
+
/>
|
|
45
|
+
|
|
46
|
+
{/* Title */}
|
|
47
|
+
<Text style={[styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined]}>
|
|
48
|
+
{title}
|
|
49
|
+
</Text>
|
|
50
|
+
|
|
51
|
+
{/* Description */}
|
|
52
|
+
<Text style={[styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined]}>
|
|
53
|
+
{description}
|
|
54
|
+
</Text>
|
|
55
|
+
|
|
56
|
+
{/* Version display */}
|
|
57
|
+
{currentVersion && newVersion && (
|
|
58
|
+
<VersionDisplay
|
|
59
|
+
currentVersion={currentVersion}
|
|
60
|
+
newVersion={newVersion}
|
|
61
|
+
primaryColor={infoColor}
|
|
62
|
+
/>
|
|
63
|
+
)}
|
|
64
|
+
|
|
65
|
+
{/* What's New card */}
|
|
66
|
+
{features && features.length > 0 && (
|
|
67
|
+
<ContentCard title="What's New">
|
|
68
|
+
{features.map((feature, index) => (
|
|
69
|
+
<Text key={index} style={styles.featureText}>
|
|
70
|
+
• {feature}
|
|
71
|
+
</Text>
|
|
72
|
+
))}
|
|
73
|
+
</ContentCard>
|
|
74
|
+
)}
|
|
75
|
+
|
|
76
|
+
{/* Action buttons */}
|
|
77
|
+
{onUpdate && (
|
|
78
|
+
<PrimaryButton onPress={onUpdate} backgroundColor={infoColor}>
|
|
79
|
+
{updateButtonText}
|
|
80
|
+
</PrimaryButton>
|
|
81
|
+
)}
|
|
82
|
+
|
|
83
|
+
{onMaybeLater && (
|
|
84
|
+
<SecondaryButton onPress={onMaybeLater}>
|
|
85
|
+
{laterButtonText}
|
|
86
|
+
</SecondaryButton>
|
|
87
|
+
)}
|
|
88
|
+
</ScreenContainer>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const styles = StyleSheet.create({
|
|
93
|
+
title: {
|
|
94
|
+
fontSize: 24,
|
|
95
|
+
fontWeight: '700',
|
|
96
|
+
color: '#1F2937',
|
|
97
|
+
textAlign: 'center',
|
|
98
|
+
marginBottom: 12,
|
|
99
|
+
lineHeight: 32,
|
|
100
|
+
},
|
|
101
|
+
description: {
|
|
102
|
+
fontSize: 16,
|
|
103
|
+
fontWeight: '400',
|
|
104
|
+
color: '#6B7280',
|
|
105
|
+
textAlign: 'center',
|
|
106
|
+
lineHeight: 24,
|
|
107
|
+
marginBottom: 24,
|
|
108
|
+
},
|
|
109
|
+
featureText: {
|
|
110
|
+
fontSize: 14,
|
|
111
|
+
color: '#6B7280',
|
|
112
|
+
lineHeight: 20,
|
|
113
|
+
marginBottom: 8,
|
|
114
|
+
},
|
|
115
|
+
badgeIcon: {
|
|
116
|
+
fontSize: 16,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export default OptionalUpdateScreen;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../../components/layout/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../../components/icons/utilities/IconWithBadge';
|
|
5
|
+
import StatusBadge from '../../../components/feedback/StatusBadge';
|
|
6
|
+
import ContentCard from '../../../components/cards/ContentCard';
|
|
7
|
+
import PrimaryButton from '../../../components/buttons/PrimaryButton';
|
|
8
|
+
import VersionDisplay from '../../../components/status/VersionDisplay';
|
|
9
|
+
import AnimatedDownload from '../../../components/icons/animated/general/AnimatedDownload';
|
|
10
|
+
import { getColor } from '../../../utils/client';
|
|
11
|
+
import type { SecurityUpdateScreenProps } from '../../../types';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Critical Security Update Screen
|
|
15
|
+
*
|
|
16
|
+
* Displayed when a critical security update is required.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export const SecurityUpdateScreen: React.FC<SecurityUpdateScreenProps> = ({
|
|
20
|
+
title = 'Critical Security Update',
|
|
21
|
+
description = 'This update is required for your security',
|
|
22
|
+
currentVersion,
|
|
23
|
+
newVersion,
|
|
24
|
+
features,
|
|
25
|
+
releaseNotes,
|
|
26
|
+
onUpdate,
|
|
27
|
+
updateButtonText = 'Update Now',
|
|
28
|
+
support,
|
|
29
|
+
theme,
|
|
30
|
+
primaryColor,
|
|
31
|
+
backgroundColor,
|
|
32
|
+
}) => {
|
|
33
|
+
const warningColor = primaryColor || theme?.warning || getColor('warning');
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<ScreenContainer backgroundColor={backgroundColor || theme?.background}>
|
|
37
|
+
{/* Icon with badge */}
|
|
38
|
+
<IconWithBadge
|
|
39
|
+
icon={<Text style={styles.shieldIcon}>🛡️</Text>}
|
|
40
|
+
iconBackgroundColor="#FED7AA"
|
|
41
|
+
badge={<AnimatedDownload size={20} color="#FFFFFF" />}
|
|
42
|
+
badgeBackgroundColor="#3B82F6"
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
{/* Status badge */}
|
|
46
|
+
<StatusBadge
|
|
47
|
+
text="Security"
|
|
48
|
+
backgroundColor="#FED7AA"
|
|
49
|
+
textColor={warningColor}
|
|
50
|
+
/>
|
|
51
|
+
|
|
52
|
+
{/* Title */}
|
|
53
|
+
<Text style={[styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined]}>
|
|
54
|
+
{title}
|
|
55
|
+
</Text>
|
|
56
|
+
|
|
57
|
+
{/* Description */}
|
|
58
|
+
<Text style={[styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined]}>
|
|
59
|
+
{description}
|
|
60
|
+
</Text>
|
|
61
|
+
|
|
62
|
+
{/* Version display */}
|
|
63
|
+
{currentVersion && newVersion && (
|
|
64
|
+
<VersionDisplay
|
|
65
|
+
currentVersion={currentVersion}
|
|
66
|
+
newVersion={newVersion}
|
|
67
|
+
primaryColor={warningColor}
|
|
68
|
+
/>
|
|
69
|
+
)}
|
|
70
|
+
|
|
71
|
+
{/* What's New card */}
|
|
72
|
+
{features && features.length > 0 && (
|
|
73
|
+
<ContentCard title="What's New">
|
|
74
|
+
{features.map((feature, index) => (
|
|
75
|
+
<Text key={index} style={styles.featureText}>
|
|
76
|
+
{feature.icon || '•'} {feature.title}
|
|
77
|
+
{feature.description && (
|
|
78
|
+
<Text style={styles.featureDescription}>{'\n'}{feature.description}</Text>
|
|
79
|
+
)}
|
|
80
|
+
</Text>
|
|
81
|
+
))}
|
|
82
|
+
</ContentCard>
|
|
83
|
+
)}
|
|
84
|
+
|
|
85
|
+
{/* Release notes */}
|
|
86
|
+
{releaseNotes && (
|
|
87
|
+
<ContentCard title="Release Notes">
|
|
88
|
+
<Text style={styles.releaseNotesText}>{releaseNotes}</Text>
|
|
89
|
+
</ContentCard>
|
|
90
|
+
)}
|
|
91
|
+
|
|
92
|
+
{/* Action button */}
|
|
93
|
+
{onUpdate && (
|
|
94
|
+
<PrimaryButton onPress={onUpdate} backgroundColor={warningColor}>
|
|
95
|
+
{updateButtonText}
|
|
96
|
+
</PrimaryButton>
|
|
97
|
+
)}
|
|
98
|
+
|
|
99
|
+
{/* Footer text */}
|
|
100
|
+
<Text style={styles.footerText}>
|
|
101
|
+
This update is required to continue using the app
|
|
102
|
+
</Text>
|
|
103
|
+
</ScreenContainer>
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const styles = StyleSheet.create({
|
|
108
|
+
title: {
|
|
109
|
+
fontSize: 24,
|
|
110
|
+
fontWeight: '700',
|
|
111
|
+
color: '#1F2937',
|
|
112
|
+
textAlign: 'center',
|
|
113
|
+
marginBottom: 12,
|
|
114
|
+
lineHeight: 32,
|
|
115
|
+
},
|
|
116
|
+
description: {
|
|
117
|
+
fontSize: 16,
|
|
118
|
+
fontWeight: '400',
|
|
119
|
+
color: '#6B7280',
|
|
120
|
+
textAlign: 'center',
|
|
121
|
+
lineHeight: 24,
|
|
122
|
+
marginBottom: 24,
|
|
123
|
+
},
|
|
124
|
+
shieldIcon: {
|
|
125
|
+
fontSize: 48,
|
|
126
|
+
},
|
|
127
|
+
featureText: {
|
|
128
|
+
fontSize: 14,
|
|
129
|
+
fontWeight: '600',
|
|
130
|
+
color: '#1F2937',
|
|
131
|
+
lineHeight: 20,
|
|
132
|
+
marginBottom: 12,
|
|
133
|
+
},
|
|
134
|
+
featureDescription: {
|
|
135
|
+
fontSize: 14,
|
|
136
|
+
fontWeight: '400',
|
|
137
|
+
color: '#6B7280',
|
|
138
|
+
},
|
|
139
|
+
releaseNotesText: {
|
|
140
|
+
fontSize: 14,
|
|
141
|
+
color: '#6B7280',
|
|
142
|
+
lineHeight: 20,
|
|
143
|
+
},
|
|
144
|
+
footerText: {
|
|
145
|
+
fontSize: 12,
|
|
146
|
+
color: '#9CA3AF',
|
|
147
|
+
textAlign: 'center',
|
|
148
|
+
marginTop: 8,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
export default SecurityUpdateScreen;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, StyleSheet, View } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../../components/layout/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../../components/icons/utilities/IconWithBadge';
|
|
5
|
+
import StatusBadge from '../../../components/feedback/StatusBadge';
|
|
6
|
+
import ContentCard from '../../../components/cards/ContentCard';
|
|
7
|
+
import PrimaryButton from '../../../components/buttons/PrimaryButton';
|
|
8
|
+
import SecondaryButton from '../../../components/buttons/SecondaryButton';
|
|
9
|
+
import VersionDisplay from '../../../components/status/VersionDisplay';
|
|
10
|
+
import AnimatedDownload from '../../../components/icons/animated/general/AnimatedDownload';
|
|
11
|
+
import { getColor } from '../../../utils/client';
|
|
12
|
+
import type { SoftUpdateScreenProps } from '../../../types';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Soft Update Screen
|
|
16
|
+
*
|
|
17
|
+
* Displayed when a soft update is available (user can skip).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export const SoftUpdateScreen: React.FC<SoftUpdateScreenProps> = ({
|
|
21
|
+
title = 'Update Available',
|
|
22
|
+
description = 'A new version is available with improvements and bug fixes.',
|
|
23
|
+
currentVersion,
|
|
24
|
+
newVersion,
|
|
25
|
+
features,
|
|
26
|
+
onUpdate,
|
|
27
|
+
onRemindLater,
|
|
28
|
+
onSkip,
|
|
29
|
+
updateButtonText = 'Update Now',
|
|
30
|
+
remindButtonText = 'Remind Later',
|
|
31
|
+
skipButtonText = 'Skip',
|
|
32
|
+
support,
|
|
33
|
+
theme,
|
|
34
|
+
primaryColor,
|
|
35
|
+
backgroundColor,
|
|
36
|
+
}) => {
|
|
37
|
+
const infoColor = primaryColor || theme?.primary || getColor('primary');
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<ScreenContainer backgroundColor={backgroundColor || theme?.background}>
|
|
41
|
+
{/* Icon with badge */}
|
|
42
|
+
<IconWithBadge
|
|
43
|
+
icon={<AnimatedDownload size={48} color={infoColor} />}
|
|
44
|
+
iconBackgroundColor="#DBEAFE"
|
|
45
|
+
badge={<Text style={styles.badgeIcon}>ℹ</Text>}
|
|
46
|
+
badgeBackgroundColor={infoColor}
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
{/* Title */}
|
|
50
|
+
<Text style={[styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined]}>
|
|
51
|
+
{title}
|
|
52
|
+
</Text>
|
|
53
|
+
|
|
54
|
+
{/* Description */}
|
|
55
|
+
<Text style={[styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined]}>
|
|
56
|
+
{description}
|
|
57
|
+
</Text>
|
|
58
|
+
|
|
59
|
+
{/* Version display */}
|
|
60
|
+
{currentVersion && newVersion && (
|
|
61
|
+
<VersionDisplay
|
|
62
|
+
currentVersion={currentVersion}
|
|
63
|
+
newVersion={newVersion}
|
|
64
|
+
primaryColor={infoColor}
|
|
65
|
+
/>
|
|
66
|
+
)}
|
|
67
|
+
|
|
68
|
+
{/* What's New card */}
|
|
69
|
+
{features && features.length > 0 && (
|
|
70
|
+
<ContentCard title="What's New">
|
|
71
|
+
{features.map((feature, index) => (
|
|
72
|
+
<Text key={index} style={styles.featureText}>
|
|
73
|
+
• {feature}
|
|
74
|
+
</Text>
|
|
75
|
+
))}
|
|
76
|
+
</ContentCard>
|
|
77
|
+
)}
|
|
78
|
+
|
|
79
|
+
{/* Action buttons */}
|
|
80
|
+
{onUpdate && (
|
|
81
|
+
<PrimaryButton onPress={onUpdate} backgroundColor={infoColor}>
|
|
82
|
+
{updateButtonText}
|
|
83
|
+
</PrimaryButton>
|
|
84
|
+
)}
|
|
85
|
+
|
|
86
|
+
{onRemindLater && (
|
|
87
|
+
<SecondaryButton onPress={onRemindLater}>
|
|
88
|
+
{remindButtonText}
|
|
89
|
+
</SecondaryButton>
|
|
90
|
+
)}
|
|
91
|
+
|
|
92
|
+
{onSkip && (
|
|
93
|
+
<Text style={styles.skipText} onPress={onSkip}>
|
|
94
|
+
{skipButtonText}
|
|
95
|
+
</Text>
|
|
96
|
+
)}
|
|
97
|
+
</ScreenContainer>
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const styles = StyleSheet.create({
|
|
102
|
+
title: {
|
|
103
|
+
fontSize: 24,
|
|
104
|
+
fontWeight: '700',
|
|
105
|
+
color: '#1F2937',
|
|
106
|
+
textAlign: 'center',
|
|
107
|
+
marginBottom: 12,
|
|
108
|
+
lineHeight: 32,
|
|
109
|
+
},
|
|
110
|
+
description: {
|
|
111
|
+
fontSize: 16,
|
|
112
|
+
fontWeight: '400',
|
|
113
|
+
color: '#6B7280',
|
|
114
|
+
textAlign: 'center',
|
|
115
|
+
lineHeight: 24,
|
|
116
|
+
marginBottom: 24,
|
|
117
|
+
},
|
|
118
|
+
featureText: {
|
|
119
|
+
fontSize: 14,
|
|
120
|
+
color: '#6B7280',
|
|
121
|
+
lineHeight: 20,
|
|
122
|
+
marginBottom: 8,
|
|
123
|
+
},
|
|
124
|
+
badgeIcon: {
|
|
125
|
+
color: '#FFFFFF',
|
|
126
|
+
fontSize: 16,
|
|
127
|
+
fontWeight: '700',
|
|
128
|
+
},
|
|
129
|
+
skipText: {
|
|
130
|
+
fontSize: 14,
|
|
131
|
+
color: '#6B7280',
|
|
132
|
+
textAlign: 'center',
|
|
133
|
+
textDecorationLine: 'underline',
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
export default SoftUpdateScreen;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Update Screens - Barrel Export
|
|
2
|
+
export { SoftUpdateScreen } from './SoftUpdateScreen';
|
|
3
|
+
export { OptionalUpdateScreen } from './OptionalUpdateScreen';
|
|
4
|
+
export { ForceUpdateScreen } from './ForceUpdateScreen';
|
|
5
|
+
export { SecurityUpdateScreen } from './SecurityUpdateScreen';
|
|
6
|
+
export { AppUpdateScreen } from './AppUpdateScreen';
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Common Type Definitions
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Error context for support requests and debugging
|
|
9
|
+
*/
|
|
10
|
+
export interface ErrorContext {
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
errorCode?: string;
|
|
13
|
+
screenName?: string;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
appVersion: string;
|
|
16
|
+
platform: 'web' | 'ios' | 'android';
|
|
17
|
+
os: string;
|
|
18
|
+
userId?: string;
|
|
19
|
+
retryCount?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Support contact configuration
|
|
24
|
+
*/
|
|
25
|
+
export interface SupportContact {
|
|
26
|
+
whatsapp?: {
|
|
27
|
+
number: string;
|
|
28
|
+
label?: string;
|
|
29
|
+
};
|
|
30
|
+
phone?: {
|
|
31
|
+
number: string;
|
|
32
|
+
label?: string;
|
|
33
|
+
};
|
|
34
|
+
email?: {
|
|
35
|
+
address: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
};
|
|
38
|
+
title?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Theme colors for customization
|
|
44
|
+
*/
|
|
45
|
+
export interface ThemeColors {
|
|
46
|
+
primary?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
warning?: string;
|
|
49
|
+
success?: string;
|
|
50
|
+
info?: string;
|
|
51
|
+
offline?: string;
|
|
52
|
+
background?: string;
|
|
53
|
+
surface?: string;
|
|
54
|
+
textPrimary?: string;
|
|
55
|
+
textSecondary?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* SafeArea Edge Configuration
|
|
60
|
+
*/
|
|
61
|
+
export type SafeAreaEdge = 'top' | 'bottom' | 'left' | 'right';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* SafeArea Configuration
|
|
65
|
+
*/
|
|
66
|
+
export interface SafeAreaConfig {
|
|
67
|
+
edges?: SafeAreaEdge[];
|
|
68
|
+
enabled?: boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Color Customization for Buttons
|
|
73
|
+
*/
|
|
74
|
+
export interface ColorCustomization {
|
|
75
|
+
backgroundColor?: string;
|
|
76
|
+
textColor?: string;
|
|
77
|
+
borderColor?: string;
|
|
78
|
+
iconColor?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Retry Tracking Information
|
|
83
|
+
*/
|
|
84
|
+
export interface RetryInfo {
|
|
85
|
+
attempt: number;
|
|
86
|
+
maxAttempts: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Banner Configuration
|
|
91
|
+
*/
|
|
92
|
+
export interface BannerConfig {
|
|
93
|
+
message: string;
|
|
94
|
+
type: 'warning' | 'error' | 'info' | 'success';
|
|
95
|
+
dismissible: boolean;
|
|
96
|
+
onDismiss?: () => void;
|
|
97
|
+
icon?: ReactNode;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* HTTP Status Code Type
|
|
102
|
+
*/
|
|
103
|
+
export type HttpStatusCode = number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Error Severity Level
|
|
107
|
+
*/
|
|
108
|
+
export type ErrorSeverity = 'low' | 'medium' | 'high' | 'critical';
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* API Error Types (for default configurations)
|
|
112
|
+
*/
|
|
113
|
+
export type ApiErrorType =
|
|
114
|
+
| 'timeout'
|
|
115
|
+
| 'server_error'
|
|
116
|
+
| 'client_error'
|
|
117
|
+
| 'invalid_response'
|
|
118
|
+
| 'network_error';
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* System Permission Types
|
|
122
|
+
*/
|
|
123
|
+
export type PermissionType =
|
|
124
|
+
| 'camera'
|
|
125
|
+
| 'location'
|
|
126
|
+
| 'notifications'
|
|
127
|
+
| 'storage'
|
|
128
|
+
| 'microphone'
|
|
129
|
+
| 'contacts'
|
|
130
|
+
| 'calendar'
|
|
131
|
+
| 'custom';
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Permission Status
|
|
135
|
+
*/
|
|
136
|
+
export type PermissionStatus =
|
|
137
|
+
| 'not_requested'
|
|
138
|
+
| 'granted'
|
|
139
|
+
| 'denied'
|
|
140
|
+
| 'blocked';
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* App Update Types
|
|
144
|
+
*/
|
|
145
|
+
export type UpdateType =
|
|
146
|
+
| 'soft'
|
|
147
|
+
| 'optional'
|
|
148
|
+
| 'force'
|
|
149
|
+
| 'critical';
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Maintenance Types
|
|
153
|
+
*/
|
|
154
|
+
export type MaintenanceType =
|
|
155
|
+
| 'planned'
|
|
156
|
+
| 'unplanned'
|
|
157
|
+
| 'emergency';
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Support Contact Variant
|
|
161
|
+
*/
|
|
162
|
+
export type SupportContactVariant =
|
|
163
|
+
| 'icon-only'
|
|
164
|
+
| 'compact'
|
|
165
|
+
| 'full';
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Connection Speed
|
|
169
|
+
*/
|
|
170
|
+
export type ConnectionSpeed =
|
|
171
|
+
| '2G'
|
|
172
|
+
| '3G'
|
|
173
|
+
| '4G'
|
|
174
|
+
| '5G'
|
|
175
|
+
| 'slow'
|
|
176
|
+
| 'fast';
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Support Button Variant
|
|
180
|
+
*/
|
|
181
|
+
export type SupportVariant =
|
|
182
|
+
| 'icon-only'
|
|
183
|
+
| 'text-only'
|
|
184
|
+
| 'combined'
|
|
185
|
+
| 'compact';
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Button Style Variant
|
|
189
|
+
*/
|
|
190
|
+
export type ButtonStyleVariant =
|
|
191
|
+
| 'icon-only'
|
|
192
|
+
| 'text-only'
|
|
193
|
+
| 'combined';
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* UI Kit Configuration
|
|
197
|
+
*/
|
|
198
|
+
export interface UIKitConfig {
|
|
199
|
+
appVersion?: string;
|
|
200
|
+
supportPhone?: string;
|
|
201
|
+
defaultSupport?: SupportContact;
|
|
202
|
+
colors?: ThemeColors;
|
|
203
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Component Props
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
import type {
|
|
7
|
+
ErrorContext,
|
|
8
|
+
SupportContactVariant,
|
|
9
|
+
ThemeColors,
|
|
10
|
+
} from './common';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* SupportContact Component Props
|
|
14
|
+
*/
|
|
15
|
+
export interface SupportContactProps {
|
|
16
|
+
whatsapp?: {
|
|
17
|
+
number: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
onPress?: () => void;
|
|
20
|
+
};
|
|
21
|
+
phone?: {
|
|
22
|
+
number: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
onPress?: () => void;
|
|
25
|
+
};
|
|
26
|
+
email?: {
|
|
27
|
+
address: string;
|
|
28
|
+
label?: string;
|
|
29
|
+
onPress?: () => void;
|
|
30
|
+
};
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
variant?: SupportContactVariant;
|
|
34
|
+
errorContext?: Partial<ErrorContext>;
|
|
35
|
+
theme?: ThemeColors;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use ApiErrorScreenProps with custom props instead
|
|
40
|
+
*/
|
|
41
|
+
export interface RetryIndicatorProps {
|
|
42
|
+
isRetrying: boolean;
|
|
43
|
+
retryCount: number;
|
|
44
|
+
maxRetries: number;
|
|
45
|
+
retryDelay?: number;
|
|
46
|
+
status?: 'idle' | 'retrying' | 'success' | 'failed';
|
|
47
|
+
onCancel?: () => void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Retry Progress Bar Component Props
|
|
52
|
+
*/
|
|
53
|
+
export interface RetryProgressBarProps {
|
|
54
|
+
retryCount: number;
|
|
55
|
+
maxRetries: number;
|
|
56
|
+
isActive: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Backoff Visualizer Component Props
|
|
61
|
+
*/
|
|
62
|
+
export interface BackoffVisualizerProps {
|
|
63
|
+
attempt: number;
|
|
64
|
+
baseDelay?: number;
|
|
65
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Type Definitions - Barrel Export
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
// Re-export all types from subdirectories
|
|
6
|
+
export * from './common';
|
|
7
|
+
export * from './screens';
|
|
8
|
+
export * from './components';
|
|
9
|
+
export * from './support';
|