Skip to content

Commit

Permalink
[form-builder] Fix automatic argument names from Flow migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent f9fa042 commit 1e58fa2
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ interface ArrayInputGridItemProps {
markers: Array<Marker>
layout?: 'media' | 'default'
onRemove: (arg0: ItemValue) => void
onChange: (arg0: PatchEvent, arg1: ItemValue) => void
onFocus: (arg0: Path) => void
onChange: (event: PatchEvent, arg1: ItemValue) => void
onFocus: (path: Path) => void
onBlur: () => void
filterField: () => any
readOnly: boolean | null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ interface ArrayInputItemProps {
compareValue?: any[]
layout?: 'media' | 'default'
level: number
markers: Array<Marker>
markers: Marker[]
type: ArraySchemaType
value: ItemValue
onRemove: (arg0: ItemValue) => void
onChange: (arg0: PatchEvent, arg1: ItemValue) => void
onFocus: (arg0: Path) => void
onRemove: (value: ItemValue) => void
onChange: (event: PatchEvent, value: ItemValue) => void
onFocus: (path: Path) => void
onBlur: () => void
filterField: () => any
readOnly: boolean | null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ interface ArrayInputListItemProps {
value: ItemValue
compareValue?: any[]
level: number
markers: Array<Marker>
markers: Marker[]
layout?: 'media' | 'default'
onRemove: (arg0: ItemValue) => void
onChange: (arg0: PatchEvent, arg1: ItemValue) => void
onFocus: (arg0: Path) => void
onRemove: (value: ItemValue) => void
onChange: (event: PatchEvent, value: ItemValue) => void
onFocus: (path: Path) => void
onBlur: () => void
filterField: () => any
readOnly: boolean | null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Props = {
placeholder?: string
}
readOnly: boolean | null
onChange: (arg0: PatchEvent) => void
onChange: (event: PatchEvent) => void
level: number
onFocus: () => void
presence: any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Props = {
placeholder?: string
}
readOnly: boolean | null
onChange: (arg0: PatchEvent) => void
onChange: (event: PatchEvent) => void
level: number
onFocus: () => void
presence: any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ActivateOnFocus from 'part:@sanity/components/utilities/activate-on-focus
type Props = {
fieldNames: string[]
value: Record<string, any>
onChange: (arg0: PatchEvent) => void
onChange: (event: PatchEvent) => void
readOnly?: boolean
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = {
height: number
isFullscreen: boolean
markers: Marker[]
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
renderCustomMarkers?: RenderCustomMarkers
}
export default function BlockExtras(props: Props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from './Markers.css'

type Props = {
markers: Marker[]
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
renderCustomMarkers?: RenderCustomMarkers
}
export default class Markers extends React.PureComponent<Props> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Props = {
editor: PortableTextEditor
markers: Marker[]
onChange: (patchEvent: PatchEvent, path: Path) => void
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
readOnly: boolean
type: Type
value: PortableTextBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = {
attributes: RenderAttributes
readOnly: boolean
markers: Marker[]
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
onChange: (patchEvent: PatchEvent, path: Path) => void
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Props = {
attributes: RenderAttributes
readOnly: boolean
markers: Marker[]
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
onChange: (patchEvent: PatchEvent, path: Path) => void
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function getAnnotationIcon(item: PortableTextFeature, active: boolean): React.Co

function getPTEAnnotationActions(
editor: PortableTextEditor,
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
): PTEToolbarAction[] {
const features = PortableTextEditor.getPortableTextFeatures(editor)
const activeAnnotations = PortableTextEditor.activeAnnotations(editor)
Expand Down Expand Up @@ -189,7 +189,7 @@ function getPTEAnnotationActions(
export function getPTEToolbarActionGroups(
editor: PortableTextEditor,
selection: EditorSelection,
onFocus: (arg0: Path) => void,
onFocus: (path: Path) => void,
hotkeyOpts: HotkeyOptions
): PTEToolbarActionGroup[] {
return [
Expand Down Expand Up @@ -244,7 +244,7 @@ function getInsertMenuIcon(
export function getInsertMenuItems(
editor: PortableTextEditor,
selection: EditorSelection,
onFocus: (arg0: Path) => void
onFocus: (path: Path) => void
): BlockItem[] {
const focusBlock = PortableTextEditor.focusBlock(editor)
const features = PortableTextEditor.getPortableTextFeatures(editor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type InsertFunction = (args0: PortableTextBlock | PortableTextBlock[]) => void
export default function createBlockActionPatchFn(
type: string,
block: PortableTextBlock,
onPatch: (arg0: PatchEvent) => void,
onPatch: (event: PatchEvent) => void,
portableTextFeatures: PortableTextFeatures
): UnsetFunction | SetFunction | InsertFunction {
let toInsert
Expand Down

0 comments on commit 1e58fa2

Please sign in to comment.