Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Oct 14, 2018
1 parent e859390 commit 819e6ba
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 23 deletions.
2 changes: 2 additions & 0 deletions dist/ReactContexify.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ReactContexify.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ReactContexify.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ReactContexify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ReactContexify.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Expand Up @@ -62,7 +62,6 @@
"prettier": "^1.14.2",
"raf": "^3.4.0",
"react": "^16.4.2",
"react-contexify": "file:/Users/gugu/works/react-contexify",
"react-dom": "^16.4.2",
"react-test-renderer": "^16.4.2",
"regenerator-runtime": "^0.12.1",
Expand All @@ -77,11 +76,11 @@
"webpack-dev-server": "^3.1.7"
},
"peerDependencies": {
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"dependencies": {
"classnames": "^2.2.5",
"prop-types": "^15.6.0"
"classnames": "^2.2.6",
"prop-types": "^15.6.2"
}
}
2 changes: 1 addition & 1 deletion src/types/index.ts
@@ -1,7 +1,7 @@
import { CSSProperties } from 'react';

/**
*
*
*/
export type TriggerEvent = MouseEvent & TouchEvent;

Expand Down
9 changes: 6 additions & 3 deletions src/utils/contextMenu.ts
@@ -1,9 +1,8 @@
import { eventManager } from './eventManager';
import { HIDE_ALL, DISPLAY_MENU } from './actions';
import { MenuId } from '../types';
import { MenuId } from '../types';
import React, { SyntheticEvent } from 'react';


export interface ContextMenu {
show: (
params: {
Expand All @@ -17,7 +16,11 @@ export interface ContextMenu {

const contextMenu: ContextMenu = {
show({ id, event, props }) {
eventManager.emit(DISPLAY_MENU(id), (event as SyntheticEvent).nativeEvent || event, props);
eventManager.emit(
DISPLAY_MENU(id),
(event as SyntheticEvent).nativeEvent || event,
props
);
},
hideAll() {
eventManager.emit(HIDE_ALL);
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Expand Up @@ -25,8 +25,7 @@ module.exports = {
externals: [
'react',
'react-dom',
'prop-types',
'react-transition-group'
'prop-types'
],
plugins: [
new webpack.DefinePlugin({
Expand Down
10 changes: 2 additions & 8 deletions yarn.lock
Expand Up @@ -1077,7 +1077,7 @@ class-utils@^0.3.5:
isobject "^3.0.0"
static-extend "^0.1.1"

classnames@^2.2.5:
classnames@^2.2.6:
version "2.2.6"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"

Expand Down Expand Up @@ -5583,7 +5583,7 @@ prompts@^0.1.9:
kleur "^2.0.1"
sisteransi "^0.1.1"

prop-types@^15.6.0, prop-types@^15.6.2:
prop-types@^15.6.2:
version "15.6.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102"
dependencies:
Expand Down Expand Up @@ -5738,12 +5738,6 @@ rc@^1.2.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

"react-contexify@file:/Users/gugu/works/react-contexify":
version "3.0.3"
dependencies:
classnames "^2.2.5"
prop-types "^15.6.0"

react-dom@^16.4.2:
version "16.5.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.5.2.tgz#b69ee47aa20bab5327b2b9d7c1fe2a30f2cfa9d7"
Expand Down

0 comments on commit 819e6ba

Please sign in to comment.