Skip to content

Commit

Permalink
Merge pull request #61 from greglittlefield-wf/link
Browse files Browse the repository at this point in the history
Export react-dart members and add capturing event handlers
  • Loading branch information
aaronlademann-wf authored Apr 17, 2017
2 parents 1986adf + 6f7040d commit b49b348
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/over_react.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
/// Base classes for UI components and related utilities.
library over_react;

export 'package:react/react.dart' show
SyntheticEvent,
SyntheticClipboardEvent,
SyntheticKeyboardEvent,
SyntheticFocusEvent,
SyntheticFormEvent,
SyntheticDataTransfer,
SyntheticMouseEvent,
SyntheticTouchEvent,
SyntheticUIEvent,
SyntheticWheelEvent;

export 'package:react/react_client.dart' show setClientConfiguration, ReactElement;

export 'src/component/abstract_transition.dart';
export 'src/component/aria_mixin.dart';
export 'src/component/callback_typedefs.dart';
Expand Down
11 changes: 11 additions & 0 deletions lib/src/component/prop_mixins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ abstract class DomPropsMixin {
UIEventCallback onScroll;
WheelEventCallback onWheel;

ClipboardEventCallback onCopyCapture, onCutCapture, onPasteCapture;
KeyboardEventCallback onKeyDownCapture, onKeyPressCapture, onKeyUpCapture;
FocusEventCallback onFocusCapture, onBlurCapture;
FormEventCallback onChangeCapture, onInputCapture, onSubmitCapture, onResetCapture;
MouseEventCallback
onClickCapture, onContextMenuCapture, onDoubleClickCapture, onDragCapture, onDragEndCapture, onDragEnterCapture, onDragExitCapture, onDragLeaveCapture, onDragOverCapture,
onDragStartCapture, onDropCapture, onMouseDownCapture, onMouseEnterCapture, onMouseLeaveCapture, onMouseMoveCapture, onMouseOutCapture, onMouseOverCapture, onMouseUpCapture;
TouchEventCallback onTouchCancelCapture, onTouchEndCapture, onTouchMoveCapture, onTouchStartCapture;
UIEventCallback onScrollCapture;
WheelEventCallback onWheelCapture;

// props specific to React.INPUT
bool defaultChecked;
dynamic defaultValue;
Expand Down

0 comments on commit b49b348

Please sign in to comment.