Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export react-dart members and add capturing event handlers #61

Merged
merged 2 commits into from
Apr 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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