Skip to content

Releases: twa-dev/types

v8.0.2

04 Jan 19:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v8.0.1...v8.0.2

v8.0.1

27 Nov 23:02
7291ac2
Compare
Choose a tag to compare

v8.0

  • signature
  • isActive
  • isFullscreen
  • isOrientationLocked
  • safeAreaInset
  • contentSafeAreaInset
  • Accelerometer
  • DeviceOrientation
  • Gyroscope
  • LocationManager
  • requestFullscreen
  • exitFullscreen
  • lockOrientation
  • unlockOrientation
  • addToHomeScreen
  • checkHomeScreenStatus
  • shareMessage
  • setEmojiStatus
  • requestEmojiStatusAccess
  • downloadFile

More information

Improvements

  • BackButton and BottomButton support chaining of method calls

v7.10.0

06 Sep 16:50
3107cec
Compare
Choose a tag to compare
  • Added bottom_bar_bg_color in ThemeParams
  • Added BottomButton interface with new has_shine_effect param
  • Added SecondaryButton interface and WebApp['SecondaryButton']
  • Added secondaryButtonClicked to EventNames and EventParams

v7.8.0

02 Aug 19:28
Compare
Choose a tag to compare
  • Added types for BiometricManager
  • ThemeParams: added section_separator_color color
  • Supported "scanQrPopupClosed" event
  • Supported enableVerticalSwipes, disableVerticalSwipes methods and scanQrPopupClosed field
  • Added types for shareToStory method

v7.0.0

09 Jan 13:06
Compare
Choose a tag to compare
  • Added types for SettingsButton
  • ThemeParams: added fields header_bg_color, accent_text_color, section_bg_color, section_header_text_color, subtitle_text_color, destructive_text_color

v6.9.0

20 Sep 16:27
Compare
Choose a tag to compare
  • WebApp: added CloudStorage interface, requestWriteAccess and requestContact methods
  • BackButton: added isVisible property
  • MainButton: added text, color, textColor properties
  • EventNames, EventParams: added writeAccessRequested, contactRequested
  • WebAppInitData: added allows_write_to_pm to user
  • Platforms: weba added, webz removed

v6.7.0

12 Jun 12:04
Compare
Choose a tag to compare
  • WebApp: added switchInlineQuery method
  • WebAppInitData: added chat_type and chat_instance props
  • WebAppInitData: added added_to_attachment_menu to user

v6.4.2

09 Jan 04:27
Compare
Choose a tag to compare
  • Added the optional parameter options to the method openLink

v6.4.1

09 Jan 04:25
Compare
Choose a tag to compare
  • Added the events qrTextReceived, clipboardTextReceived.

v6.4.0

09 Jan 04:24
Compare
Choose a tag to compare
  • Added methods showScanQrPopup, closeScanQrPopup, readTextFromClipboard to the class WebApp.