@khanacademy/wonder-blocks-search-field 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +2 -29
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -779,14 +779,12 @@ function _extends() {
|
|
|
779
779
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
780
780
|
for (var i = 1; i < arguments.length; i++) {
|
|
781
781
|
var source = arguments[i];
|
|
782
|
-
|
|
783
782
|
for (var key in source) {
|
|
784
783
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
785
784
|
target[key] = source[key];
|
|
786
785
|
}
|
|
787
786
|
}
|
|
788
787
|
}
|
|
789
|
-
|
|
790
788
|
return target;
|
|
791
789
|
};
|
|
792
790
|
return _extends.apply(this, arguments);
|
|
@@ -1782,13 +1780,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1782
1780
|
var target = {};
|
|
1783
1781
|
var sourceKeys = Object.keys(source);
|
|
1784
1782
|
var key, i;
|
|
1785
|
-
|
|
1786
1783
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
1787
1784
|
key = sourceKeys[i];
|
|
1788
1785
|
if (excluded.indexOf(key) >= 0) continue;
|
|
1789
1786
|
target[key] = source[key];
|
|
1790
1787
|
}
|
|
1791
|
-
|
|
1792
1788
|
return target;
|
|
1793
1789
|
}
|
|
1794
1790
|
|
|
@@ -2468,19 +2464,16 @@ function _extends() {
|
|
|
2468
2464
|
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
2469
2465
|
for (var i = 1; i < arguments.length; i++) {
|
|
2470
2466
|
var source = arguments[i];
|
|
2471
|
-
|
|
2472
2467
|
for (var key in source) {
|
|
2473
2468
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2474
2469
|
target[key] = source[key];
|
|
2475
2470
|
}
|
|
2476
2471
|
}
|
|
2477
2472
|
}
|
|
2478
|
-
|
|
2479
2473
|
return target;
|
|
2480
2474
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2481
2475
|
return _extends.apply(this, arguments);
|
|
2482
2476
|
}
|
|
2483
|
-
|
|
2484
2477
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2485
2478
|
|
|
2486
2479
|
/***/ }),
|
|
@@ -6586,7 +6579,6 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6586
6579
|
onMouseLeave: () => void 0,
|
|
6587
6580
|
onMouseDown: () => void 0,
|
|
6588
6581
|
onMouseUp: () => void 0,
|
|
6589
|
-
onDragStart: () => void 0,
|
|
6590
6582
|
onTouchStart: () => void 0,
|
|
6591
6583
|
onTouchEnd: () => void 0,
|
|
6592
6584
|
onTouchCancel: () => void 0,
|
|
@@ -6625,7 +6617,7 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6625
6617
|
* 3. Keyup (spacebar/enter) -> focus state
|
|
6626
6618
|
*
|
|
6627
6619
|
* Warning: The event handlers returned (onClick, onMouseEnter, onMouseLeave,
|
|
6628
|
-
* onMouseDown, onMouseUp,
|
|
6620
|
+
* onMouseDown, onMouseUp, onTouchStart, onTouchEnd, onTouchCancel,
|
|
6629
6621
|
* onKeyDown, onKeyUp, onFocus, onBlur, tabIndex) should be passed on to the
|
|
6630
6622
|
* component that has the ClickableBehavior. You cannot override these handlers
|
|
6631
6623
|
* without potentially breaking the functionality of ClickableBehavior.
|
|
@@ -6721,13 +6713,7 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6721
6713
|
};
|
|
6722
6714
|
|
|
6723
6715
|
this.handleMouseEnter = e => {
|
|
6724
|
-
|
|
6725
|
-
if (e.buttons === 1) {
|
|
6726
|
-
this.dragging = true;
|
|
6727
|
-
this.setState({
|
|
6728
|
-
pressed: true
|
|
6729
|
-
});
|
|
6730
|
-
} else if (!this.waitingForClick) {
|
|
6716
|
+
if (!this.waitingForClick) {
|
|
6731
6717
|
this.setState({
|
|
6732
6718
|
hovered: true
|
|
6733
6719
|
});
|
|
@@ -6736,7 +6722,6 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6736
6722
|
|
|
6737
6723
|
this.handleMouseLeave = () => {
|
|
6738
6724
|
if (!this.waitingForClick) {
|
|
6739
|
-
this.dragging = false;
|
|
6740
6725
|
this.setState({
|
|
6741
6726
|
hovered: false,
|
|
6742
6727
|
pressed: false,
|
|
@@ -6752,22 +6737,12 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6752
6737
|
};
|
|
6753
6738
|
|
|
6754
6739
|
this.handleMouseUp = e => {
|
|
6755
|
-
if (this.dragging) {
|
|
6756
|
-
this.dragging = false;
|
|
6757
|
-
this.handleClick(e);
|
|
6758
|
-
}
|
|
6759
|
-
|
|
6760
6740
|
this.setState({
|
|
6761
6741
|
pressed: false,
|
|
6762
6742
|
focused: false
|
|
6763
6743
|
});
|
|
6764
6744
|
};
|
|
6765
6745
|
|
|
6766
|
-
this.handleDragStart = e => {
|
|
6767
|
-
this.dragging = true;
|
|
6768
|
-
e.preventDefault();
|
|
6769
|
-
};
|
|
6770
|
-
|
|
6771
6746
|
this.handleTouchStart = () => {
|
|
6772
6747
|
this.setState({
|
|
6773
6748
|
pressed: true
|
|
@@ -6863,7 +6838,6 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
6863
6838
|
this.state = startState;
|
|
6864
6839
|
this.waitingForClick = false;
|
|
6865
6840
|
this.enterClick = false;
|
|
6866
|
-
this.dragging = false;
|
|
6867
6841
|
}
|
|
6868
6842
|
|
|
6869
6843
|
navigateOrReset(shouldNavigate) {
|
|
@@ -7017,7 +6991,6 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
7017
6991
|
onMouseLeave: this.handleMouseLeave,
|
|
7018
6992
|
onMouseDown: this.handleMouseDown,
|
|
7019
6993
|
onMouseUp: this.handleMouseUp,
|
|
7020
|
-
onDragStart: this.handleDragStart,
|
|
7021
6994
|
onTouchStart: this.handleTouchStart,
|
|
7022
6995
|
onTouchEnd: this.handleTouchEnd,
|
|
7023
6996
|
onTouchCancel: this.handleTouchCancel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-search-field",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Search Field components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@khanacademy/wonder-blocks-color": "^1.2.0",
|
|
20
20
|
"@khanacademy/wonder-blocks-core": "^4.5.0",
|
|
21
21
|
"@khanacademy/wonder-blocks-icon": "^1.2.32",
|
|
22
|
-
"@khanacademy/wonder-blocks-icon-button": "^3.4.
|
|
22
|
+
"@khanacademy/wonder-blocks-icon-button": "^3.4.16",
|
|
23
23
|
"@khanacademy/wonder-blocks-spacing": "^3.0.5",
|
|
24
24
|
"@khanacademy/wonder-blocks-typography": "^1.1.34"
|
|
25
25
|
},
|