Skip to content

Commit

Permalink
Merge branch 'master' into feat/welcome-to-3000
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Dec 5, 2023
2 parents e9bdf41 + 68a9675 commit 1fce892
Show file tree
Hide file tree
Showing 78 changed files with 2,930 additions and 1,086 deletions.
97 changes: 86 additions & 11 deletions ee/frontend/mobile-replay/__snapshots__/transform.test.ts.snap

Large diffs are not rendered by default.

58 changes: 57 additions & 1 deletion ee/frontend/mobile-replay/mobile.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,51 @@ type wireframeBase = {
style?: MobileStyles
}

export type wireframeInputBase = wireframeBase & {
type: 'input'
disabled: boolean
}

export type wireframeCheckBox = wireframeInputBase & {
inputType: 'checkbox'
checked: boolean
label?: string
}

export type wireframeRadioGroup = wireframeBase & {
groupName: string
}

export type wireframeRadio = wireframeInputBase & {
inputType: 'radio'
checked: boolean
label?: string
}

export type wireframeInput = wireframeInputBase & {
inputType: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url'
value?: string
}

export type wireframeSelect = wireframeInputBase & {
inputType: 'select'
value?: string
options?: string[]
}

export type wireframeTextArea = wireframeInputBase & {
inputType: 'textarea'
value?: string
}

export type wireframeButton = wireframeInputBase & {
inputType: 'button'
/**
* @description this is the text that is displayed on the button, if not sent then you must send childNodes with the button content
*/
value?: string
}

export type wireframeText = wireframeBase & {
type: 'text'
text: string
Expand All @@ -146,7 +191,18 @@ export type wireframeDiv = wireframeBase & {
type: 'div'
}

export type wireframe = wireframeText | wireframeImage | wireframeRectangle | wireframeDiv
export type wireframe =
| wireframeText
| wireframeImage
| wireframeRectangle
| wireframeDiv
| wireframeCheckBox
| wireframeRadioGroup
| wireframeRadio
| wireframeInput
| wireframeSelect
| wireframeTextArea
| wireframeButton

// the rrweb full snapshot event type, but it contains wireframes not html
export type fullSnapshotEvent = {
Expand Down
Loading

0 comments on commit 1fce892

Please sign in to comment.