onix-board
Advanced tools
Comparing version 1.4.22 to 1.4.23
@@ -71,4 +71,3 @@ import * as tslib_1 from "tslib"; | ||
isDragging: monitor.isDragging() | ||
}); }), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
}); }) | ||
], ChessDragLayer); | ||
@@ -75,0 +74,0 @@ return ChessDragLayer; |
import * as React from 'react'; | ||
import { DragSourceSpec } from 'react-dnd'; | ||
import { DragSourceSpec, ConnectDragSource } from 'react-dnd'; | ||
import { BoardRelatedStore } from './BoardState'; | ||
@@ -11,4 +11,4 @@ export interface PieceProps { | ||
dnd: boolean; | ||
children?: React.ReactNode; | ||
context?: any; | ||
connectDragSource?: ConnectDragSource; | ||
isDragging?: boolean; | ||
} | ||
@@ -15,0 +15,0 @@ export interface DragPiece { |
@@ -50,4 +50,3 @@ import * as tslib_1 from "tslib"; | ||
ChessPiece = tslib_1.__decorate([ | ||
DragSource("DND_TYPES.PIECE", pieceSource, collect), | ||
tslib_1.__metadata("design:paramtypes", [Object, Object]) | ||
DragSource("DND_TYPES.PIECE", pieceSource, collect) | ||
], ChessPiece); | ||
@@ -54,0 +53,0 @@ return ChessPiece; |
import * as React from 'react'; | ||
import { ConnectDropTarget } from 'react-dnd'; | ||
import { BoardRelatedStore } from './BoardState'; | ||
@@ -11,2 +12,5 @@ export interface SquareProps { | ||
dnd: boolean; | ||
connectDropTarget?: ConnectDropTarget; | ||
isOver?: boolean; | ||
canDrop?: boolean; | ||
} | ||
@@ -13,0 +17,0 @@ export declare class ChessSquare extends React.Component<SquareProps, {}> { |
@@ -90,4 +90,3 @@ import * as tslib_1 from "tslib"; | ||
ChessSquare = tslib_1.__decorate([ | ||
DropTarget("DND_TYPES.PIECE", squareTarget, collect), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
DropTarget("DND_TYPES.PIECE", squareTarget, collect) | ||
], ChessSquare); | ||
@@ -94,0 +93,0 @@ return ChessSquare; |
{ | ||
"name": "onix-board", | ||
"version": "1.4.22", | ||
"version": "1.4.23", | ||
"description": "Onix chess board abstractions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103466
86
2170