@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
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Error context for support requests and debugging
|
|
4
|
+
*/
|
|
5
|
+
export interface ErrorContext {
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
errorCode?: string;
|
|
8
|
+
screenName?: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
appVersion: string;
|
|
11
|
+
platform: 'web' | 'ios' | 'android';
|
|
12
|
+
os: string;
|
|
13
|
+
userId?: string;
|
|
14
|
+
retryCount?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Support contact configuration
|
|
18
|
+
*/
|
|
19
|
+
export interface SupportContact {
|
|
20
|
+
whatsapp?: {
|
|
21
|
+
number: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
};
|
|
24
|
+
phone?: {
|
|
25
|
+
number: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
};
|
|
28
|
+
email?: {
|
|
29
|
+
address: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
};
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Theme colors for customization
|
|
37
|
+
*/
|
|
38
|
+
export interface ThemeColors {
|
|
39
|
+
primary?: string;
|
|
40
|
+
error?: string;
|
|
41
|
+
warning?: string;
|
|
42
|
+
success?: string;
|
|
43
|
+
info?: string;
|
|
44
|
+
offline?: string;
|
|
45
|
+
background?: string;
|
|
46
|
+
surface?: string;
|
|
47
|
+
textPrimary?: string;
|
|
48
|
+
textSecondary?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* API Error Types (for default configurations)
|
|
52
|
+
*/
|
|
53
|
+
export type ApiErrorType = 'timeout' | 'server_error' | 'client_error' | 'invalid_response' | 'network_error';
|
|
54
|
+
/**
|
|
55
|
+
* System Permission Types
|
|
56
|
+
*/
|
|
57
|
+
export type PermissionType = 'camera' | 'location' | 'notifications' | 'storage' | 'microphone' | 'contacts' | 'calendar' | 'custom';
|
|
58
|
+
/**
|
|
59
|
+
* Permission Status
|
|
60
|
+
*/
|
|
61
|
+
export type PermissionStatus = 'not_requested' | 'granted' | 'denied' | 'blocked';
|
|
62
|
+
/**
|
|
63
|
+
* App Update Types
|
|
64
|
+
*/
|
|
65
|
+
export type UpdateType = 'soft' | 'optional' | 'force' | 'critical';
|
|
66
|
+
/**
|
|
67
|
+
* Maintenance Types
|
|
68
|
+
*/
|
|
69
|
+
export type MaintenanceType = 'planned' | 'unplanned' | 'emergency';
|
|
70
|
+
/**
|
|
71
|
+
* Support Contact Variant
|
|
72
|
+
*/
|
|
73
|
+
export type SupportContactVariant = 'icon-only' | 'compact' | 'full';
|
|
74
|
+
/**
|
|
75
|
+
* Connection Speed
|
|
76
|
+
*/
|
|
77
|
+
export type ConnectionSpeed = '2G' | '3G' | '4G' | '5G' | 'slow' | 'fast';
|
|
78
|
+
/**
|
|
79
|
+
* Support Button Variant - NEW
|
|
80
|
+
*/
|
|
81
|
+
export type SupportVariant = 'icon-only' | 'text-only' | 'combined' | 'compact';
|
|
82
|
+
/**
|
|
83
|
+
* Button Style Variant
|
|
84
|
+
*/
|
|
85
|
+
export type ButtonStyleVariant = 'icon-only' | 'text-only' | 'combined';
|
|
86
|
+
/**
|
|
87
|
+
* SafeArea Edge Configuration
|
|
88
|
+
*/
|
|
89
|
+
export type SafeAreaEdge = 'top' | 'bottom' | 'left' | 'right';
|
|
90
|
+
/**
|
|
91
|
+
* SafeArea Configuration
|
|
92
|
+
*/
|
|
93
|
+
export interface SafeAreaConfig {
|
|
94
|
+
edges?: SafeAreaEdge[];
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Color Customization for Buttons
|
|
99
|
+
*/
|
|
100
|
+
export interface ColorCustomization {
|
|
101
|
+
backgroundColor?: string;
|
|
102
|
+
textColor?: string;
|
|
103
|
+
borderColor?: string;
|
|
104
|
+
iconColor?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Retry Tracking Information - NEW
|
|
108
|
+
*/
|
|
109
|
+
export interface RetryInfo {
|
|
110
|
+
attempt: number;
|
|
111
|
+
maxAttempts: number;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Banner Configuration - NEW
|
|
115
|
+
*/
|
|
116
|
+
export interface BannerConfig {
|
|
117
|
+
message: string;
|
|
118
|
+
type: 'warning' | 'error' | 'info' | 'success';
|
|
119
|
+
dismissible: boolean;
|
|
120
|
+
onDismiss?: () => void;
|
|
121
|
+
icon?: ReactNode;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* HTTP Status Code Type
|
|
125
|
+
*/
|
|
126
|
+
export type HttpStatusCode = number;
|
|
127
|
+
/**
|
|
128
|
+
* Error Severity Level
|
|
129
|
+
*/
|
|
130
|
+
export type ErrorSeverity = 'low' | 'medium' | 'high' | 'critical';
|
|
131
|
+
/**
|
|
132
|
+
* ErrorBoundaryScreen Component Props
|
|
133
|
+
* Fully customizable error boundary screen
|
|
134
|
+
*/
|
|
135
|
+
export interface ErrorFallbackProps {
|
|
136
|
+
title?: string;
|
|
137
|
+
description?: string;
|
|
138
|
+
icon?: ReactNode;
|
|
139
|
+
onReset?: () => void;
|
|
140
|
+
onHome?: () => void;
|
|
141
|
+
resetButtonText?: string;
|
|
142
|
+
homeButtonText?: string;
|
|
143
|
+
support?: SupportContact;
|
|
144
|
+
supportVariant?: SupportVariant;
|
|
145
|
+
error?: Error;
|
|
146
|
+
errorContext?: Partial<ErrorContext>;
|
|
147
|
+
showErrorDetails?: boolean;
|
|
148
|
+
errorDetailsExpanded?: boolean;
|
|
149
|
+
theme?: ThemeColors;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* ApiErrorScreen Component Props
|
|
153
|
+
* Fully customizable API error screen
|
|
154
|
+
*/
|
|
155
|
+
export interface ApiErrorScreenProps {
|
|
156
|
+
title?: string;
|
|
157
|
+
description?: string;
|
|
158
|
+
icon?: ReactNode;
|
|
159
|
+
iconColor?: string;
|
|
160
|
+
iconBackgroundColor?: string;
|
|
161
|
+
onRetry?: () => void;
|
|
162
|
+
onHome?: () => void;
|
|
163
|
+
retryButtonText?: string;
|
|
164
|
+
homeButtonText?: string;
|
|
165
|
+
showRetryButton?: boolean;
|
|
166
|
+
support?: SupportContact;
|
|
167
|
+
supportVariant?: SupportVariant;
|
|
168
|
+
retryInfo?: RetryInfo;
|
|
169
|
+
statusCode?: number;
|
|
170
|
+
errorCode?: string;
|
|
171
|
+
errorType?: ApiErrorType;
|
|
172
|
+
theme?: ThemeColors;
|
|
173
|
+
primaryColor?: string;
|
|
174
|
+
backgroundColor?: string;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* NetworkOfflineScreen Component Props
|
|
178
|
+
*/
|
|
179
|
+
export interface NetworkOfflineScreenProps {
|
|
180
|
+
title?: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
icon?: ReactNode;
|
|
183
|
+
showWaitingIndicator?: boolean;
|
|
184
|
+
waitingText?: string;
|
|
185
|
+
onRetry?: () => void;
|
|
186
|
+
retryButtonText?: string;
|
|
187
|
+
tips?: string[];
|
|
188
|
+
showTips?: boolean;
|
|
189
|
+
support?: SupportContact;
|
|
190
|
+
supportVariant?: SupportVariant;
|
|
191
|
+
variant?: 'fullscreen' | 'banner';
|
|
192
|
+
position?: 'top' | 'bottom';
|
|
193
|
+
theme?: ThemeColors;
|
|
194
|
+
primaryColor?: string;
|
|
195
|
+
backgroundColor?: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* SlowConnectionScreen Component Props
|
|
199
|
+
*/
|
|
200
|
+
export interface NetworkSlowConnectionScreenProps {
|
|
201
|
+
title?: string;
|
|
202
|
+
description?: string;
|
|
203
|
+
icon?: ReactNode;
|
|
204
|
+
connectionSpeed?: ConnectionSpeed;
|
|
205
|
+
banner?: BannerConfig;
|
|
206
|
+
onRetry?: () => void;
|
|
207
|
+
onContinue?: () => void;
|
|
208
|
+
onDismiss?: () => void;
|
|
209
|
+
retryButtonText?: string;
|
|
210
|
+
continueButtonText?: string;
|
|
211
|
+
tips?: string[];
|
|
212
|
+
showTips?: boolean;
|
|
213
|
+
variant?: 'fullscreen' | 'banner';
|
|
214
|
+
support?: SupportContact;
|
|
215
|
+
supportVariant?: SupportVariant;
|
|
216
|
+
theme?: ThemeColors;
|
|
217
|
+
primaryColor?: string;
|
|
218
|
+
backgroundColor?: string;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* PermissionScreen Component Props
|
|
222
|
+
*/
|
|
223
|
+
export interface PermissionScreenProps {
|
|
224
|
+
permissionType?: PermissionType;
|
|
225
|
+
title?: string;
|
|
226
|
+
description?: string;
|
|
227
|
+
icon?: ReactNode;
|
|
228
|
+
reason?: string;
|
|
229
|
+
reasons?: string[];
|
|
230
|
+
showReasons?: boolean;
|
|
231
|
+
onAllow?: () => void;
|
|
232
|
+
onDeny?: () => void;
|
|
233
|
+
onOpenSettings?: () => void;
|
|
234
|
+
onSkip?: () => void;
|
|
235
|
+
allowButtonText?: string;
|
|
236
|
+
denyButtonText?: string;
|
|
237
|
+
settingsButtonText?: string;
|
|
238
|
+
skipButtonText?: string;
|
|
239
|
+
status?: PermissionStatus;
|
|
240
|
+
isOptional?: boolean;
|
|
241
|
+
theme?: ThemeColors;
|
|
242
|
+
primaryColor?: string;
|
|
243
|
+
backgroundColor?: string;
|
|
244
|
+
support?: SupportContact;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* PermissionDeniedScreen Component Props
|
|
248
|
+
*/
|
|
249
|
+
export interface PermissionDeniedScreenProps {
|
|
250
|
+
title?: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
permissionType?: PermissionType;
|
|
253
|
+
reason?: string;
|
|
254
|
+
steps?: string[];
|
|
255
|
+
onOpenSettings?: () => void;
|
|
256
|
+
onContinueWithout?: () => void;
|
|
257
|
+
settingsButtonText?: string;
|
|
258
|
+
continueButtonText?: string;
|
|
259
|
+
support?: SupportContact;
|
|
260
|
+
theme?: ThemeColors;
|
|
261
|
+
primaryColor?: string;
|
|
262
|
+
backgroundColor?: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* MultiPermissionScreen Component Props
|
|
266
|
+
*/
|
|
267
|
+
export interface MultiPermissionScreenProps {
|
|
268
|
+
permissions: Array<{
|
|
269
|
+
type: PermissionType;
|
|
270
|
+
status: PermissionStatus;
|
|
271
|
+
required: boolean;
|
|
272
|
+
title?: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
icon?: ReactNode;
|
|
275
|
+
}>;
|
|
276
|
+
title?: string;
|
|
277
|
+
description?: string;
|
|
278
|
+
onContinue?: () => void;
|
|
279
|
+
onOpenSettings?: () => void;
|
|
280
|
+
continueButtonText?: string;
|
|
281
|
+
settingsButtonText?: string;
|
|
282
|
+
theme?: ThemeColors;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* AppUpdateScreen Component Props
|
|
286
|
+
*/
|
|
287
|
+
export interface AppUpdateScreenProps {
|
|
288
|
+
updateType?: UpdateType;
|
|
289
|
+
title?: string;
|
|
290
|
+
description?: string;
|
|
291
|
+
icon?: ReactNode;
|
|
292
|
+
currentVersion?: string;
|
|
293
|
+
newVersion?: string;
|
|
294
|
+
showVersionInfo?: boolean;
|
|
295
|
+
releaseNotes?: string | string[];
|
|
296
|
+
showReleaseNotes?: boolean;
|
|
297
|
+
onUpdate?: () => void;
|
|
298
|
+
onSkip?: () => void;
|
|
299
|
+
onRemindLater?: () => void;
|
|
300
|
+
updateButtonText?: string;
|
|
301
|
+
skipButtonText?: string;
|
|
302
|
+
remindLaterButtonText?: string;
|
|
303
|
+
variant?: 'fullscreen' | 'banner';
|
|
304
|
+
theme?: ThemeColors;
|
|
305
|
+
primaryColor?: string;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* MaintenanceScreen Component Props
|
|
309
|
+
*/
|
|
310
|
+
export interface MaintenanceScreenProps {
|
|
311
|
+
type?: MaintenanceType;
|
|
312
|
+
title?: string;
|
|
313
|
+
description?: string;
|
|
314
|
+
icon?: ReactNode;
|
|
315
|
+
estimatedEndTime?: Date;
|
|
316
|
+
showCountdown?: boolean;
|
|
317
|
+
onRetry?: () => void;
|
|
318
|
+
onNotifyMe?: () => void;
|
|
319
|
+
retryButtonText?: string;
|
|
320
|
+
notifyButtonText?: string;
|
|
321
|
+
support?: SupportContact;
|
|
322
|
+
supportVariant?: SupportVariant;
|
|
323
|
+
theme?: ThemeColors;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* ServerErrorScreen Component Props (5xx errors)
|
|
327
|
+
*/
|
|
328
|
+
export interface ServerErrorScreenProps {
|
|
329
|
+
title?: string;
|
|
330
|
+
description?: string;
|
|
331
|
+
icon?: ReactNode;
|
|
332
|
+
statusCode?: number;
|
|
333
|
+
onRetry?: () => void;
|
|
334
|
+
onHome?: () => void;
|
|
335
|
+
retryButtonText?: string;
|
|
336
|
+
homeButtonText?: string;
|
|
337
|
+
retryInfo?: RetryInfo;
|
|
338
|
+
support?: SupportContact;
|
|
339
|
+
supportVariant?: SupportContactVariant;
|
|
340
|
+
theme?: ThemeColors;
|
|
341
|
+
primaryColor?: string;
|
|
342
|
+
backgroundColor?: string;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* ClientErrorScreen Component Props (4xx errors)
|
|
346
|
+
*/
|
|
347
|
+
export interface ClientErrorScreenProps {
|
|
348
|
+
title?: string;
|
|
349
|
+
description?: string;
|
|
350
|
+
icon?: ReactNode;
|
|
351
|
+
statusCode?: number;
|
|
352
|
+
onGoBack?: () => void;
|
|
353
|
+
onHome?: () => void;
|
|
354
|
+
goBackButtonText?: string;
|
|
355
|
+
homeButtonText?: string;
|
|
356
|
+
support?: SupportContact;
|
|
357
|
+
supportVariant?: SupportVariant;
|
|
358
|
+
theme?: ThemeColors;
|
|
359
|
+
primaryColor?: string;
|
|
360
|
+
backgroundColor?: string;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* InvalidResponseScreen Component Props
|
|
364
|
+
*/
|
|
365
|
+
export interface InvalidResponseScreenProps {
|
|
366
|
+
title?: string;
|
|
367
|
+
description?: string;
|
|
368
|
+
icon?: ReactNode;
|
|
369
|
+
errorDetails?: string;
|
|
370
|
+
showErrorDetails?: boolean;
|
|
371
|
+
onRetry?: () => void;
|
|
372
|
+
onReportError?: () => void;
|
|
373
|
+
retryButtonText?: string;
|
|
374
|
+
reportButtonText?: string;
|
|
375
|
+
support?: SupportContact;
|
|
376
|
+
supportVariant?: SupportVariant;
|
|
377
|
+
theme?: ThemeColors;
|
|
378
|
+
primaryColor?: string;
|
|
379
|
+
backgroundColor?: string;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* ApiTimeoutScreen Component Props
|
|
383
|
+
*/
|
|
384
|
+
export interface ApiTimeoutScreenProps {
|
|
385
|
+
title?: string;
|
|
386
|
+
description?: string;
|
|
387
|
+
icon?: ReactNode;
|
|
388
|
+
timeoutDuration?: number;
|
|
389
|
+
onRetry?: () => void;
|
|
390
|
+
onHome?: () => void;
|
|
391
|
+
retryButtonText?: string;
|
|
392
|
+
homeButtonText?: string;
|
|
393
|
+
retryInfo?: RetryInfo;
|
|
394
|
+
support?: SupportContact;
|
|
395
|
+
supportVariant?: SupportVariant;
|
|
396
|
+
theme?: ThemeColors;
|
|
397
|
+
primaryColor?: string;
|
|
398
|
+
backgroundColor?: string;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* SupportContact Component Props - REFACTORED
|
|
402
|
+
*/
|
|
403
|
+
export interface SupportContactProps {
|
|
404
|
+
whatsapp?: {
|
|
405
|
+
number: string;
|
|
406
|
+
label?: string;
|
|
407
|
+
onPress?: () => void;
|
|
408
|
+
};
|
|
409
|
+
phone?: {
|
|
410
|
+
number: string;
|
|
411
|
+
label?: string;
|
|
412
|
+
onPress?: () => void;
|
|
413
|
+
};
|
|
414
|
+
email?: {
|
|
415
|
+
address: string;
|
|
416
|
+
label?: string;
|
|
417
|
+
onPress?: () => void;
|
|
418
|
+
};
|
|
419
|
+
title?: string;
|
|
420
|
+
description?: string;
|
|
421
|
+
variant?: SupportContactVariant;
|
|
422
|
+
errorContext?: Partial<ErrorContext>;
|
|
423
|
+
theme?: ThemeColors;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* @deprecated Use ApiErrorScreenProps with custom props instead
|
|
427
|
+
*/
|
|
428
|
+
export interface RetryIndicatorProps {
|
|
429
|
+
isRetrying: boolean;
|
|
430
|
+
retryCount: number;
|
|
431
|
+
maxRetries: number;
|
|
432
|
+
retryDelay?: number;
|
|
433
|
+
status?: 'idle' | 'retrying' | 'success' | 'failed';
|
|
434
|
+
onCancel?: () => void;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Retry Progress Bar Component Props
|
|
438
|
+
*/
|
|
439
|
+
export interface RetryProgressBarProps {
|
|
440
|
+
retryCount: number;
|
|
441
|
+
maxRetries: number;
|
|
442
|
+
isActive: boolean;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Backoff Visualizer Component Props
|
|
446
|
+
*/
|
|
447
|
+
export interface BackoffVisualizerProps {
|
|
448
|
+
attempt: number;
|
|
449
|
+
baseDelay?: number;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* UI Kit Configuration
|
|
453
|
+
*/
|
|
454
|
+
export interface UIKitConfig {
|
|
455
|
+
appVersion?: string;
|
|
456
|
+
supportPhone?: string;
|
|
457
|
+
defaultSupport?: SupportContact;
|
|
458
|
+
colors?: ThemeColors;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* SoftUpdateScreen Component Props
|
|
462
|
+
*/
|
|
463
|
+
export interface SoftUpdateScreenProps {
|
|
464
|
+
title?: string;
|
|
465
|
+
description?: string;
|
|
466
|
+
currentVersion?: string;
|
|
467
|
+
newVersion?: string;
|
|
468
|
+
features?: string[];
|
|
469
|
+
onUpdate?: () => void;
|
|
470
|
+
onRemindLater?: () => void;
|
|
471
|
+
onSkip?: () => void;
|
|
472
|
+
updateButtonText?: string;
|
|
473
|
+
remindButtonText?: string;
|
|
474
|
+
skipButtonText?: string;
|
|
475
|
+
support?: SupportContact;
|
|
476
|
+
theme?: ThemeColors;
|
|
477
|
+
primaryColor?: string;
|
|
478
|
+
backgroundColor?: string;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* OptionalUpdateScreen Component Props
|
|
482
|
+
*/
|
|
483
|
+
export interface OptionalUpdateScreenProps {
|
|
484
|
+
title?: string;
|
|
485
|
+
description?: string;
|
|
486
|
+
currentVersion?: string;
|
|
487
|
+
newVersion?: string;
|
|
488
|
+
features?: string[];
|
|
489
|
+
onUpdate?: () => void;
|
|
490
|
+
onMaybeLater?: () => void;
|
|
491
|
+
updateButtonText?: string;
|
|
492
|
+
laterButtonText?: string;
|
|
493
|
+
support?: SupportContact;
|
|
494
|
+
theme?: ThemeColors;
|
|
495
|
+
primaryColor?: string;
|
|
496
|
+
backgroundColor?: string;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* ForceUpdateScreen Component Props
|
|
500
|
+
*/
|
|
501
|
+
export interface ForceUpdateScreenProps {
|
|
502
|
+
title?: string;
|
|
503
|
+
description?: string;
|
|
504
|
+
currentVersion?: string;
|
|
505
|
+
newVersion?: string;
|
|
506
|
+
features?: string[];
|
|
507
|
+
onUpdate?: () => void;
|
|
508
|
+
updateButtonText?: string;
|
|
509
|
+
support?: SupportContact;
|
|
510
|
+
theme?: ThemeColors;
|
|
511
|
+
primaryColor?: string;
|
|
512
|
+
backgroundColor?: string;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* SecurityUpdateScreen Component Props
|
|
516
|
+
*/
|
|
517
|
+
export interface SecurityUpdateScreenProps {
|
|
518
|
+
title?: string;
|
|
519
|
+
description?: string;
|
|
520
|
+
currentVersion?: string;
|
|
521
|
+
newVersion?: string;
|
|
522
|
+
features?: Array<{
|
|
523
|
+
icon?: string;
|
|
524
|
+
title: string;
|
|
525
|
+
description?: string;
|
|
526
|
+
}>;
|
|
527
|
+
releaseNotes?: string;
|
|
528
|
+
onUpdate?: () => void;
|
|
529
|
+
updateButtonText?: string;
|
|
530
|
+
support?: SupportContact;
|
|
531
|
+
theme?: ThemeColors;
|
|
532
|
+
primaryColor?: string;
|
|
533
|
+
backgroundColor?: string;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* PlannedMaintenanceScreen Component Props
|
|
537
|
+
*/
|
|
538
|
+
export interface PlannedMaintenanceScreenProps {
|
|
539
|
+
title?: string;
|
|
540
|
+
description?: string;
|
|
541
|
+
onCheckAgain?: () => void;
|
|
542
|
+
onNotifyWhenBack?: () => void;
|
|
543
|
+
checkButtonText?: string;
|
|
544
|
+
notifyButtonText?: string;
|
|
545
|
+
support?: SupportContact;
|
|
546
|
+
theme?: ThemeColors;
|
|
547
|
+
primaryColor?: string;
|
|
548
|
+
backgroundColor?: string;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* UnplannedOutageScreen Component Props
|
|
552
|
+
*/
|
|
553
|
+
export interface UnplannedOutageScreenProps {
|
|
554
|
+
title?: string;
|
|
555
|
+
description?: string;
|
|
556
|
+
onCheckAgain?: () => void;
|
|
557
|
+
onNotifyWhenBack?: () => void;
|
|
558
|
+
checkButtonText?: string;
|
|
559
|
+
notifyButtonText?: string;
|
|
560
|
+
support?: SupportContact;
|
|
561
|
+
theme?: ThemeColors;
|
|
562
|
+
primaryColor?: string;
|
|
563
|
+
backgroundColor?: string;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* EmergencyOutageScreen Component Props
|
|
567
|
+
*/
|
|
568
|
+
export interface EmergencyOutageScreenProps {
|
|
569
|
+
title?: string;
|
|
570
|
+
description?: string;
|
|
571
|
+
incidentDetails?: string;
|
|
572
|
+
onCheckStatus?: () => void;
|
|
573
|
+
onGetUpdates?: () => void;
|
|
574
|
+
statusButtonText?: string;
|
|
575
|
+
updatesButtonText?: string;
|
|
576
|
+
support?: SupportContact;
|
|
577
|
+
theme?: ThemeColors;
|
|
578
|
+
primaryColor?: string;
|
|
579
|
+
backgroundColor?: string;
|
|
580
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ErrorContext, UIKitConfig } from '../types';
|
|
2
|
+
export declare const initializeUIKit: (customConfig: UIKitConfig) => void;
|
|
3
|
+
export declare const getConfig: () => UIKitConfig;
|
|
4
|
+
export declare const isWeb: () => boolean;
|
|
5
|
+
export declare const isIOS: () => boolean;
|
|
6
|
+
export declare const isAndroid: () => boolean;
|
|
7
|
+
export declare const getPlatformName: () => "web" | "ios" | "android";
|
|
8
|
+
export declare const getOSInfo: () => string;
|
|
9
|
+
export declare const buildErrorContext: (errorMessage: string, options?: Partial<ErrorContext>) => ErrorContext;
|
|
10
|
+
export declare const formatErrorForSupport: (context: ErrorContext) => string;
|
|
11
|
+
export declare const getWhatsAppUrl: (context?: ErrorContext) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Get phone URL for support
|
|
14
|
+
*/
|
|
15
|
+
export declare const getPhoneUrl: () => string;
|
|
16
|
+
/**
|
|
17
|
+
* Calculate exponential backoff delay
|
|
18
|
+
*/
|
|
19
|
+
export declare const calculateBackoffDelay: (attempt: number, baseDelay?: number, maxDelay?: number) => number;
|
|
20
|
+
/**
|
|
21
|
+
* Format delay time for display
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatDelayTime: (milliseconds: number) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Get connection speed label (UI only)
|
|
26
|
+
*/
|
|
27
|
+
export declare const getConnectionSpeedLabel: (speed: string) => string;
|
|
28
|
+
/**
|
|
29
|
+
* Get connection tips based on speed (UI only)
|
|
30
|
+
*/
|
|
31
|
+
export declare const getConnectionTips: (speed: string) => string[];
|
|
32
|
+
/**
|
|
33
|
+
* Get permission display name
|
|
34
|
+
*/
|
|
35
|
+
export declare const getPermissionDisplayName: (permission: string) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Get permission description
|
|
38
|
+
*/
|
|
39
|
+
export declare const getPermissionDescription: (permission: string) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Get color by type
|
|
42
|
+
*/
|
|
43
|
+
export declare const getColor: (type: keyof NonNullable<UIKitConfig["colors"]>) => string;
|
|
44
|
+
/**
|
|
45
|
+
* Get color with opacity
|
|
46
|
+
*/
|
|
47
|
+
export declare const getColorWithOpacity: (colorOrKey: keyof NonNullable<UIKitConfig["colors"]> | string, opacity: number) => string;
|
|
48
|
+
/**
|
|
49
|
+
* Get responsive padding based on platform
|
|
50
|
+
*/
|
|
51
|
+
export declare const getResponsivePadding: () => number;
|
|
52
|
+
/**
|
|
53
|
+
* Get responsive font size
|
|
54
|
+
*/
|
|
55
|
+
export declare const getResponsiveFontSize: (base: number) => number;
|