Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumerations

Enumeration members

Interfaces

Type aliases

Functions

Enumeration members

CHATROOM_UPDATED

CHATROOM_UPDATED = "chatroom-updated"

CUSTOM_MESSAGE_CREATED

CUSTOM_MESSAGE_CREATED = "custom-message-created"

IMAGE_CREATED

IMAGE_CREATED = "image-created"

IMAGE_DELETED

IMAGE_DELETED = "image-deleted"

MESSAGE_CREATED

MESSAGE_CREATED = "message-created"

MESSAGE_DELETED

MESSAGE_DELETED = "message-deleted"

Type aliases

BaseWidgetActionArgs

BaseWidgetActionArgs: { widgetId: string }

Type declaration

  • widgetId: string

ChatMessagesState

ChatMessagesState: { chatMessages: IChatMessage[]; chatMessagesLoaded: boolean }

Type declaration

DateTime

DateTime: Date | string | number

IChatMessageResponsePayload

IChatUserMessageResponsePayload

IChatUserMessageResponsePayload: IMessageResponsePayload | IQuoteMessageResponsePayload

IQuoteMessagePropType

IQuoteMessagePropType: IMessageResponsePayload | Omit<IQuoteMessageResponsePayload, "quote_message" | "reactions">

IQuoteMessageResponsePayload

IQuoteMessageResponsePayload: IQuoteMessagePayload & IMessageResponsePayload

IUpdateNumberPredictionOptionActionArg

IUpdateNumberPredictionOptionActionArg: { numberOption: INumberPredictionItemOption; optionIndex: number; widgetId: string }

Type declaration

IUpdateSliderMagnitudeAction

IUpdateSliderMagnitudeAction: { magnitude: number; widgetId: string }

Type declaration

  • magnitude: number
  • widgetId: string

LLBaseWidgetProps

LLBaseWidgetProps: { FooterComponent?: typeof LLWidgetFooter; FooterComponentStyles?: LLWidgetFooterProps["styles"]; HeaderComponent?: typeof LLWidgetHeader; HeaderComponentStyles?: LLWidgetHeaderProps["styles"]; WidgetComponent?: typeof LLWidget; WidgetComponentStyles?: LLWidgetProps["styles"]; interactiveTimeout?: number | null; programId: string; widgetId: string; widgetKind: WidgetKind; onDismiss?: any; onInteractiveTimeout?: any }

Type declaration

  • Optional FooterComponent?: typeof LLWidgetFooter
  • Optional FooterComponentStyles?: LLWidgetFooterProps["styles"]
  • Optional HeaderComponent?: typeof LLWidgetHeader
  • Optional HeaderComponentStyles?: LLWidgetHeaderProps["styles"]
  • Optional WidgetComponent?: typeof LLWidget
  • Optional WidgetComponentStyles?: LLWidgetProps["styles"]
  • Optional interactiveTimeout?: number | null
  • programId: string
  • widgetId: string
  • widgetKind: WidgetKind
  • onDismiss?:function
    • onDismiss(): void
    • Returns void

  • onInteractiveTimeout?:function
    • onInteractiveTimeout(): void
    • Returns void

LLPickerEmptyComponentProps

LLPickerEmptyComponentProps: ComponentStyleProp<LLPickerEmptyComponentStyles>

LLPickerEmptyComponentStyles

LLPickerEmptyComponentStyles: { text: TextStyle }

Type declaration

  • text: TextStyle

LLStore

LLStore<TValue>: { listeners: LLStoreListener<TValue>[]; value: TValue; get: any; notify: any; set: any; subscribe: any }

Type parameters

  • TValue

Type declaration

LLStoreListener

LLStoreListener<TValue>: (value: TValue) => void

Type parameters

  • TValue

Type declaration

    • (value: TValue): void
    • Parameters

      • value: TValue

      Returns void

LLStoreUnsubscriber

LLStoreUnsubscriber: () => void

Type declaration

    • (): void
    • Returns void

LLVoteWidgetBodyProps

LLVoteWidgetBodyProps: ComponentStyleProp<LLVoteWidgetBodyStyles> & { VoteOptionComponent?: typeof LLWidgetVoteOption; widgetId: string }

LLVoteWidgetBodyStyles

LLVoteWidgetBodyStyles: { bodyContainer: ViewStyle }

Type declaration

  • bodyContainer: ViewStyle

LLWidgetChildrenProps

LLWidgetChildrenProps: { widget: IWidgetPayload; onDismiss?: any }

Type declaration

  • widget: IWidgetPayload
  • onDismiss?:function
    • onDismiss(): void
    • Returns void

LLWidgetChoiceOptionProps

LLWidgetChoiceOptionProps: { OptionComponent?: typeof LLWidgetOption; OptionComponentStyles?: LLWidgetOptionProps["styles"]; optionIndex: number; selectedOptionIndex: number; widgetId: string; onOptionChange: any }

Type declaration

  • Optional OptionComponent?: typeof LLWidgetOption
  • Optional OptionComponentStyles?: LLWidgetOptionProps["styles"]
  • optionIndex: number
  • selectedOptionIndex: number
  • widgetId: string
  • onOptionChange:function
    • onOptionChange(optionIndex: number): void
    • Parameters

      • optionIndex: number

      Returns void

LLWidgetOptionProps

LLWidgetOptionProps: ComponentStyleProp<LLWidgetOptionStyles> & { OptionResultBarComponent?: typeof LLWidgetOptionResultBar; OptionResultBarComponentStyles?: LLWidgetOptionResultBarProps["styles"]; correctOption?: boolean; optionDisabled: boolean; optionImage?: string; optionIndex: number; optionText?: string; percentage: number; selectedOptionIndex: number; showWidgetResult: boolean; onOptionChange: any }

LLWidgetOptionResultBarProps

LLWidgetOptionResultBarProps: ComponentStyleProp<LLWidgetOptionResultBarStyles> & { valueInPercent: number }

LLWidgetOptionResultBarStyles

LLWidgetOptionResultBarStyles: { resultBarContainer: ViewStyle; resultBarView: TextStyle }

Type declaration

  • resultBarContainer: ViewStyle
  • resultBarView: TextStyle

LLWidgetOptionStyles

LLWidgetOptionStyles: { correctOptionContainer: ViewStyle; incorrectOptionContainer: ViewStyle; optionContainer: ViewStyle; optionImage: ImageStyle; optionText: TextStyle; optionTextContainer: ViewStyle; percentText: TextStyle; selectedOptionContainer: ViewStyle }

Type declaration

  • correctOptionContainer: ViewStyle
  • incorrectOptionContainer: ViewStyle
  • optionContainer: ViewStyle
  • optionImage: ImageStyle
  • optionText: TextStyle
  • optionTextContainer: ViewStyle
  • percentText: TextStyle
  • selectedOptionContainer: ViewStyle

LLWidgetProps

LLWidgetProps: ComponentStyleProp<LLWidgetStyles> & { ErrorComponent?: ComponentType<unknown>; LoadingComponent?: ComponentType<unknown>; programId: string; widgetId: string; widgetKind: WidgetKind; children?: any; onDismiss?: any }

LLWidgetStyles

LLWidgetStyles: { errorText: TextStyle; widgetContainer: ViewStyle }

Type declaration

  • errorText: TextStyle
  • widgetContainer: ViewStyle

LLWidgetVoteOptionProps

LLWidgetVoteOptionProps: { OptionComponent?: typeof LLWidgetOption; OptionComponentStyles?: LLWidgetOptionProps["styles"]; correctable?: boolean; optionIndex: number; selectedOptionIndex: number; widgetId: string; onOptionChange: any }

Type declaration

  • Optional OptionComponent?: typeof LLWidgetOption
  • Optional OptionComponentStyles?: LLWidgetOptionProps["styles"]
  • Optional correctable?: boolean
  • optionIndex: number
  • selectedOptionIndex: number
  • widgetId: string
  • onOptionChange:function
    • onOptionChange(optionIndex: number): void
    • Parameters

      • optionIndex: number

      Returns void

UpdateSelectedOptionIndexActionArgs

UpdateSelectedOptionIndexActionArgs: BaseWidgetActionArgs & { selectedOptionIndex: number }

UpdateWidgetAverageMagnitudeArgs

UpdateWidgetAverageMagnitudeArgs: BaseWidgetActionArgs & { averageMagnitude: string }

UpdateWidgetChoicesActionArgs

UpdateWidgetChoicesActionArgs: BaseWidgetActionArgs & { widgetChoices: Pick<IWidgetChoiceItem, "id" | "answer_count">[] }

UpdateWidgetOptionsActionArgs

UpdateWidgetOptionsActionArgs: BaseWidgetActionArgs & { widgetOptions: Pick<IWidgetOptionItem, "id" | "vote_count">[] }

UpdateWidgetPhaseActionArgs

UpdateWidgetPhaseActionArgs: BaseWidgetActionArgs & { widgetUIPhase: WidgetUIPhase }

UpdateWidgetResultStateActionArgs

UpdateWidgetResultStateActionArgs: BaseWidgetActionArgs & { widgetResultState: WidgetResultState }

UpdateWidgetStateActionArgs

UpdateWidgetStateActionArgs: BaseWidgetActionArgs & { widgetState: Partial<WidgetState> }

WidgetState

WidgetState: { selectedOptionIndex?: number; widgetInteractions?: IWidgetInteraction[]; widgetPayload: IWidgetPayload; widgetResultState?: WidgetResultState; widgetRewards?: IWidgetEarnableReward[]; widgetUIPhase?: WidgetUIPhase }

Type declaration

Functions

LLPickerEmptyComponent

LLVoteWidgetBody

LLWidget

LLWidgetChoiceOption

LLWidgetOption

LLWidgetOptionResultBar

LLWidgetVoteOption

Generated using TypeDoc