@khanacademy/wonder-blocks-tooltip 4.0.7 → 4.1.1
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 +468 -435
- package/LICENSE +21 -0
- package/dist/es/index.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +11 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Khan Academy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/es/index.js
CHANGED
|
@@ -597,7 +597,7 @@ class RefTracker {
|
|
|
597
597
|
if (domNode instanceof HTMLElement && domNode !== this._lastRef) {
|
|
598
598
|
var _this$_targetFn;
|
|
599
599
|
this._lastRef = domNode;
|
|
600
|
-
(_this$_targetFn = this._targetFn) == null
|
|
600
|
+
(_this$_targetFn = this._targetFn) == null || _this$_targetFn.call(this, domNode);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
};
|
|
@@ -683,7 +683,7 @@ class TooltipPopper extends React.Component {
|
|
|
683
683
|
}
|
|
684
684
|
this._observer = new MutationObserver(() => {
|
|
685
685
|
var _this$_popperUpdate;
|
|
686
|
-
(_this$_popperUpdate = this._popperUpdate) == null
|
|
686
|
+
(_this$_popperUpdate = this._popperUpdate) == null || _this$_popperUpdate.call(this);
|
|
687
687
|
});
|
|
688
688
|
this._observer.observe(anchorElement, {
|
|
689
689
|
attributes: true,
|
|
@@ -693,7 +693,7 @@ class TooltipPopper extends React.Component {
|
|
|
693
693
|
}
|
|
694
694
|
componentWillUnmount() {
|
|
695
695
|
var _this$_observer;
|
|
696
|
-
(_this$_observer = this._observer) == null
|
|
696
|
+
(_this$_observer = this._observer) == null || _this$_observer.disconnect();
|
|
697
697
|
}
|
|
698
698
|
_renderPositionedContent(popperProps) {
|
|
699
699
|
const {
|
package/dist/index.js
CHANGED
|
@@ -625,7 +625,7 @@ class RefTracker {
|
|
|
625
625
|
if (domNode instanceof HTMLElement && domNode !== this._lastRef) {
|
|
626
626
|
var _this$_targetFn;
|
|
627
627
|
this._lastRef = domNode;
|
|
628
|
-
(_this$_targetFn = this._targetFn) == null
|
|
628
|
+
(_this$_targetFn = this._targetFn) == null || _this$_targetFn.call(this, domNode);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
};
|
|
@@ -711,7 +711,7 @@ class TooltipPopper extends React__namespace.Component {
|
|
|
711
711
|
}
|
|
712
712
|
this._observer = new MutationObserver(() => {
|
|
713
713
|
var _this$_popperUpdate;
|
|
714
|
-
(_this$_popperUpdate = this._popperUpdate) == null
|
|
714
|
+
(_this$_popperUpdate = this._popperUpdate) == null || _this$_popperUpdate.call(this);
|
|
715
715
|
});
|
|
716
716
|
this._observer.observe(anchorElement, {
|
|
717
717
|
attributes: true,
|
|
@@ -721,7 +721,7 @@ class TooltipPopper extends React__namespace.Component {
|
|
|
721
721
|
}
|
|
722
722
|
componentWillUnmount() {
|
|
723
723
|
var _this$_observer;
|
|
724
|
-
(_this$_observer = this._observer) == null
|
|
724
|
+
(_this$_observer = this._observer) == null || _this$_observer.disconnect();
|
|
725
725
|
}
|
|
726
726
|
_renderPositionedContent(popperProps) {
|
|
727
727
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-tooltip",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,19 +9,15 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/es/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
|
|
15
|
-
},
|
|
16
12
|
"author": "",
|
|
17
13
|
"license": "MIT",
|
|
18
14
|
"dependencies": {
|
|
19
|
-
"@babel/runtime": "^7.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "
|
|
21
|
-
"@khanacademy/wonder-blocks-layout": "
|
|
22
|
-
"@khanacademy/wonder-blocks-modal": "
|
|
23
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
24
|
-
"@khanacademy/wonder-blocks-typography": "
|
|
15
|
+
"@babel/runtime": "^7.24.5",
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.1.1",
|
|
17
|
+
"@khanacademy/wonder-blocks-layout": "3.1.1",
|
|
18
|
+
"@khanacademy/wonder-blocks-modal": "7.1.1",
|
|
19
|
+
"@khanacademy/wonder-blocks-tokens": "4.2.1",
|
|
20
|
+
"@khanacademy/wonder-blocks-typography": "3.1.1"
|
|
25
21
|
},
|
|
26
22
|
"peerDependencies": {
|
|
27
23
|
"@popperjs/core": "^2.10.1",
|
|
@@ -31,6 +27,9 @@
|
|
|
31
27
|
"react-popper": "^2.0.0"
|
|
32
28
|
},
|
|
33
29
|
"devDependencies": {
|
|
34
|
-
"@khanacademy/wb-dev-build-settings": "
|
|
30
|
+
"@khanacademy/wb-dev-build-settings": "2.1.1"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
35
34
|
}
|
|
36
35
|
}
|