h5Experience.ts 670 B

1234567891011121314151617181920212223242526272829
  1. export type H5ExperienceKind = 'content' | 'result'
  2. export type H5ExperiencePresentation = 'sheet' | 'dialog' | 'fullscreen'
  3. export interface H5ExperienceFallbackPayload {
  4. title: string
  5. body: string
  6. motionClass: string
  7. contentKey: string
  8. once: boolean
  9. priority: number
  10. autoPopup: boolean
  11. }
  12. export interface H5ExperienceRequest {
  13. kind: H5ExperienceKind
  14. title: string
  15. subtitle?: string
  16. url: string
  17. bridgeVersion: string
  18. presentation: H5ExperiencePresentation
  19. context: Record<string, unknown>
  20. fallback: H5ExperienceFallbackPayload
  21. }
  22. export interface H5BridgeMessage {
  23. action?: string
  24. type?: string
  25. payload?: Record<string, unknown>
  26. }