@khanacademy/wonder-blocks-tooltip 4.0.7 → 4.1.0
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 +456 -435
- package/LICENSE +21 -0
- package/dist/es/index.js +13 -13
- package/dist/index.js +20 -24
- 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
|
@@ -51,13 +51,13 @@ const TRACKER = new ActiveTracker();
|
|
|
51
51
|
class TooltipAnchor extends React.Component {
|
|
52
52
|
constructor(props) {
|
|
53
53
|
super(props);
|
|
54
|
-
this._weSetFocusivity =
|
|
55
|
-
this._anchorNode =
|
|
56
|
-
this._focused =
|
|
57
|
-
this._hovered =
|
|
58
|
-
this._stolenFromUs =
|
|
59
|
-
this._unsubscribeFromTracker =
|
|
60
|
-
this._timeoutID =
|
|
54
|
+
this._weSetFocusivity = undefined;
|
|
55
|
+
this._anchorNode = undefined;
|
|
56
|
+
this._focused = undefined;
|
|
57
|
+
this._hovered = undefined;
|
|
58
|
+
this._stolenFromUs = undefined;
|
|
59
|
+
this._unsubscribeFromTracker = undefined;
|
|
60
|
+
this._timeoutID = undefined;
|
|
61
61
|
this.activeStateStolen = () => {
|
|
62
62
|
this._stolenFromUs = this.state.active || !!this._timeoutID;
|
|
63
63
|
this._focused = false;
|
|
@@ -585,19 +585,19 @@ const styles = StyleSheet.create({
|
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
|
|
588
|
-
var t=e=>null==e||"object"!=typeof e?e:Array.isArray(e)?e.map(t):Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}),n=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",InvalidUse:"InvalidUse",NotFound:"NotFound",NotAllowed:"NotAllowed",Unauthorized:"Unauthorized",NotImplemented:"NotImplemented"});function r(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(
|
|
588
|
+
var t=e=>null==e||"object"!=typeof e?e:Array.isArray(e)?e.map(t):Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}),n=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",InvalidUse:"InvalidUse",NotFound:"NotFound",NotAllowed:"NotAllowed",Unauthorized:"Unauthorized",NotImplemented:"NotImplemented"});function r(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(undefined!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}class s{constructor(t,e,n){r(this,"_name",undefined),r(this,"_message",undefined),r(this,"_stackFrames",undefined),this._name=t,this._message=e,this._stackFrames=[...n];}get message(){return this._message}get name(){return this._name}get messageWithName(){return "".concat(this.name,": ").concat(this.message)}get stack(){return [...this._stackFrames]}get standardizedStack(){return "".concat(this.messageWithName,"\n").concat(this._stackFrames.join("\n"))}static fromConsequenceAndCause(t,e){var n;if("production"!==process.env.NODE_ENV){if(!(t instanceof s))throw new Error("consequence must be an instance of ErrorInfo");if(!(e instanceof s))throw new Error("cause must be an instance of ErrorInfo");if(e===t)throw new Error("cause and consequence must be different")}for(var r=[],i=e.stack,a=null!==(n=null==t?undefined:t.stack)&&undefined!==n?n:[],o=i.length-1,c=a.length-1;o>=0&&c>=0&&i[o]===a[c];)r.unshift(i[o]),o--,c--;for(;o>=0;o--)r.unshift(i[o]);for(;c>=0;c--)r.unshift(a[c]);return new s(t.name,((t,e)=>{var n=t=>(null==t?undefined:t.trim())||"(empty message)",r=n(t);return null==e?r:"".concat(r,"\n\tcaused by\n\t\t").concat(n(e))})(t.message,e.messageWithName),r)}static normalize(t){var e,n,r,i=arguments.length>1&&undefined!==arguments[1]?arguments[1]:0,a=arguments.length>2&&undefined!==arguments[2]?arguments[2]:1;if("production"!==process.env.NODE_ENV){if(!(t instanceof Error))throw new Error("Error must be an instance of Error");if(i<0)throw new Error("stripFrames must be >= 0");if(a<0)throw new Error("minimumFrameCount must be >= 0")}var o=null!==(e=t.message.toString().split("\n").find((t=>t.trim().length)))&&undefined!==e?e:"(empty message)",c=t.toString(),u=(null!==(n=t.stack)&&undefined!==n&&n.startsWith(c)&&t.stack!==c?t.stack.substring(c.length):null!==(r=t.stack)&&undefined!==r?r:"").split("\n").filter((t=>t.trim().length)),l=u.length>=i+a?i:0;return new s(t.name,o,u.slice(l))}static from(t){var e,n;if("production"!==process.env.NODE_ENV&&!(t instanceof Error))throw new Error("Error must be an instance of Error");var r=t.toString(),i=(null!==(e=t.stack)&&undefined!==e&&e.startsWith(r)&&t.stack!==r?t.stack.substring(r.length):null!==(n=t.stack)&&undefined!==n?n:"").split("\n").filter((t=>t.trim().length));return new s(t.name,t.message,i)}}class i extends Error{constructor(e){var i=arguments.length>1&&undefined!==arguments[1]?arguments[1]:n.Unknown,{cause:a,prefix:o,name:c,metadata:u,stripStackFrames:l,minimumFrameCount:m,compositeStack:d}=arguments.length>2&&undefined!==arguments[2]?arguments[2]:Object.freeze({});if("production"!==process.env.NODE_ENV){if(a&&!(a instanceof Error))throw new Error("cause must be an instance of Error");if(null!=c&&/\s/g.test(c))throw new Error("name must not contain whitespace");if(/\s/g.test(i))throw new Error("kind must not contain whitespace");if(null!=o&&/\s/g.test(o))throw new Error("prefix must not contain whitespace");if(null!=l&&l<0)throw new Error("stripStackFrames must be >= 0");if(null!=m&&m<0)throw new Error("minimumFrameCount must be >= 0")}super(e),r(this,"kind",undefined),r(this,"originalMessage",undefined),r(this,"originalStack",undefined),r(this,"metadata",undefined),r(this,"cause",undefined),this.originalMessage=e,this.metadata=(e=>{if(null==e)return e;var n=t(e);return Object.freeze(n)})(u),this.name="".concat(null!=o?o:"").concat(i).concat(null!=c?c:"","Error"),this.kind=i,this.originalStack=this.stack,this.cause=a;var f=s.normalize(this,null!=l?l:0,null!=m?m:1);if(delete this.stack,this.stack=f.standardizedStack,null!=a){var h=s.from(a),v=s.fromConsequenceAndCause(f,h);this.message=v.message,true===d&&(this.stack=v.standardizedStack);}}}class w extends i{constructor(t){var e=arguments.length>1&&undefined!==arguments[1]?arguments[1]:n.InvalidInput,r=arguments.length>2?arguments[2]:undefined;super("Unhandled case for '".concat(t,"'"),e,r);}}
|
|
589
589
|
|
|
590
590
|
class RefTracker {
|
|
591
591
|
constructor() {
|
|
592
|
-
this._lastRef =
|
|
593
|
-
this._targetFn =
|
|
592
|
+
this._lastRef = undefined;
|
|
593
|
+
this._targetFn = undefined;
|
|
594
594
|
this.updateRef = ref => {
|
|
595
595
|
if (ref) {
|
|
596
596
|
const domNode = ReactDOM.findDOMNode(ref);
|
|
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
|
@@ -13,10 +13,7 @@ var wonderBlocksLayout = require('@khanacademy/wonder-blocks-layout');
|
|
|
13
13
|
var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
14
14
|
var reactPopper = require('react-popper');
|
|
15
15
|
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
function _interopNamespace(e) {
|
|
19
|
-
if (e && e.__esModule) return e;
|
|
16
|
+
function _interopNamespaceDefault(e) {
|
|
20
17
|
var n = Object.create(null);
|
|
21
18
|
if (e) {
|
|
22
19
|
Object.keys(e).forEach(function (k) {
|
|
@@ -29,13 +26,12 @@ function _interopNamespace(e) {
|
|
|
29
26
|
}
|
|
30
27
|
});
|
|
31
28
|
}
|
|
32
|
-
n
|
|
29
|
+
n.default = e;
|
|
33
30
|
return Object.freeze(n);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
var React__namespace = /*#__PURE__*/
|
|
37
|
-
var ReactDOM__namespace = /*#__PURE__*/
|
|
38
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
33
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
34
|
+
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
39
35
|
|
|
40
36
|
class ActiveTracker {
|
|
41
37
|
constructor() {
|
|
@@ -79,13 +75,13 @@ const TRACKER = new ActiveTracker();
|
|
|
79
75
|
class TooltipAnchor extends React__namespace.Component {
|
|
80
76
|
constructor(props) {
|
|
81
77
|
super(props);
|
|
82
|
-
this._weSetFocusivity =
|
|
83
|
-
this._anchorNode =
|
|
84
|
-
this._focused =
|
|
85
|
-
this._hovered =
|
|
86
|
-
this._stolenFromUs =
|
|
87
|
-
this._unsubscribeFromTracker =
|
|
88
|
-
this._timeoutID =
|
|
78
|
+
this._weSetFocusivity = undefined;
|
|
79
|
+
this._anchorNode = undefined;
|
|
80
|
+
this._focused = undefined;
|
|
81
|
+
this._hovered = undefined;
|
|
82
|
+
this._stolenFromUs = undefined;
|
|
83
|
+
this._unsubscribeFromTracker = undefined;
|
|
84
|
+
this._timeoutID = undefined;
|
|
89
85
|
this.activeStateStolen = () => {
|
|
90
86
|
this._stolenFromUs = this.state.active || !!this._timeoutID;
|
|
91
87
|
this._focused = false;
|
|
@@ -461,7 +457,7 @@ class TooltipTail extends React__namespace.Component {
|
|
|
461
457
|
updateRef
|
|
462
458
|
} = this.props;
|
|
463
459
|
return React__namespace.createElement(wonderBlocksCore.View, {
|
|
464
|
-
style: [styles$2.tailContainer,
|
|
460
|
+
style: [styles$2.tailContainer, _extends({}, offset), this._getContainerStyle()],
|
|
465
461
|
"data-placement": placement,
|
|
466
462
|
ref: updateRef
|
|
467
463
|
}, this._renderArrow());
|
|
@@ -613,19 +609,19 @@ const styles = aphrodite.StyleSheet.create({
|
|
|
613
609
|
}
|
|
614
610
|
});
|
|
615
611
|
|
|
616
|
-
var t=e=>null==e||"object"!=typeof e?e:Array.isArray(e)?e.map(t):Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}),n=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",InvalidUse:"InvalidUse",NotFound:"NotFound",NotAllowed:"NotAllowed",Unauthorized:"Unauthorized",NotImplemented:"NotImplemented"});function r(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(
|
|
612
|
+
var t=e=>null==e||"object"!=typeof e?e:Array.isArray(e)?e.map(t):Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}),n=Object.freeze({Unknown:"Unknown",Internal:"Internal",InvalidInput:"InvalidInput",InvalidUse:"InvalidUse",NotFound:"NotFound",NotAllowed:"NotAllowed",Unauthorized:"Unauthorized",NotImplemented:"NotImplemented"});function r(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(undefined!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}class s{constructor(t,e,n){r(this,"_name",undefined),r(this,"_message",undefined),r(this,"_stackFrames",undefined),this._name=t,this._message=e,this._stackFrames=[...n];}get message(){return this._message}get name(){return this._name}get messageWithName(){return "".concat(this.name,": ").concat(this.message)}get stack(){return [...this._stackFrames]}get standardizedStack(){return "".concat(this.messageWithName,"\n").concat(this._stackFrames.join("\n"))}static fromConsequenceAndCause(t,e){var n;if("production"!==process.env.NODE_ENV){if(!(t instanceof s))throw new Error("consequence must be an instance of ErrorInfo");if(!(e instanceof s))throw new Error("cause must be an instance of ErrorInfo");if(e===t)throw new Error("cause and consequence must be different")}for(var r=[],i=e.stack,a=null!==(n=null==t?undefined:t.stack)&&undefined!==n?n:[],o=i.length-1,c=a.length-1;o>=0&&c>=0&&i[o]===a[c];)r.unshift(i[o]),o--,c--;for(;o>=0;o--)r.unshift(i[o]);for(;c>=0;c--)r.unshift(a[c]);return new s(t.name,((t,e)=>{var n=t=>(null==t?undefined:t.trim())||"(empty message)",r=n(t);return null==e?r:"".concat(r,"\n\tcaused by\n\t\t").concat(n(e))})(t.message,e.messageWithName),r)}static normalize(t){var e,n,r,i=arguments.length>1&&undefined!==arguments[1]?arguments[1]:0,a=arguments.length>2&&undefined!==arguments[2]?arguments[2]:1;if("production"!==process.env.NODE_ENV){if(!(t instanceof Error))throw new Error("Error must be an instance of Error");if(i<0)throw new Error("stripFrames must be >= 0");if(a<0)throw new Error("minimumFrameCount must be >= 0")}var o=null!==(e=t.message.toString().split("\n").find((t=>t.trim().length)))&&undefined!==e?e:"(empty message)",c=t.toString(),u=(null!==(n=t.stack)&&undefined!==n&&n.startsWith(c)&&t.stack!==c?t.stack.substring(c.length):null!==(r=t.stack)&&undefined!==r?r:"").split("\n").filter((t=>t.trim().length)),l=u.length>=i+a?i:0;return new s(t.name,o,u.slice(l))}static from(t){var e,n;if("production"!==process.env.NODE_ENV&&!(t instanceof Error))throw new Error("Error must be an instance of Error");var r=t.toString(),i=(null!==(e=t.stack)&&undefined!==e&&e.startsWith(r)&&t.stack!==r?t.stack.substring(r.length):null!==(n=t.stack)&&undefined!==n?n:"").split("\n").filter((t=>t.trim().length));return new s(t.name,t.message,i)}}class i extends Error{constructor(e){var i=arguments.length>1&&undefined!==arguments[1]?arguments[1]:n.Unknown,{cause:a,prefix:o,name:c,metadata:u,stripStackFrames:l,minimumFrameCount:m,compositeStack:d}=arguments.length>2&&undefined!==arguments[2]?arguments[2]:Object.freeze({});if("production"!==process.env.NODE_ENV){if(a&&!(a instanceof Error))throw new Error("cause must be an instance of Error");if(null!=c&&/\s/g.test(c))throw new Error("name must not contain whitespace");if(/\s/g.test(i))throw new Error("kind must not contain whitespace");if(null!=o&&/\s/g.test(o))throw new Error("prefix must not contain whitespace");if(null!=l&&l<0)throw new Error("stripStackFrames must be >= 0");if(null!=m&&m<0)throw new Error("minimumFrameCount must be >= 0")}super(e),r(this,"kind",undefined),r(this,"originalMessage",undefined),r(this,"originalStack",undefined),r(this,"metadata",undefined),r(this,"cause",undefined),this.originalMessage=e,this.metadata=(e=>{if(null==e)return e;var n=t(e);return Object.freeze(n)})(u),this.name="".concat(null!=o?o:"").concat(i).concat(null!=c?c:"","Error"),this.kind=i,this.originalStack=this.stack,this.cause=a;var f=s.normalize(this,null!=l?l:0,null!=m?m:1);if(delete this.stack,this.stack=f.standardizedStack,null!=a){var h=s.from(a),v=s.fromConsequenceAndCause(f,h);this.message=v.message,true===d&&(this.stack=v.standardizedStack);}}}class w extends i{constructor(t){var e=arguments.length>1&&undefined!==arguments[1]?arguments[1]:n.InvalidInput,r=arguments.length>2?arguments[2]:undefined;super("Unhandled case for '".concat(t,"'"),e,r);}}
|
|
617
613
|
|
|
618
614
|
class RefTracker {
|
|
619
615
|
constructor() {
|
|
620
|
-
this._lastRef =
|
|
621
|
-
this._targetFn =
|
|
616
|
+
this._lastRef = undefined;
|
|
617
|
+
this._targetFn = undefined;
|
|
622
618
|
this.updateRef = ref => {
|
|
623
619
|
if (ref) {
|
|
624
620
|
const domNode = ReactDOM__namespace.findDOMNode(ref);
|
|
625
621
|
if (domNode instanceof HTMLElement && domNode !== this._lastRef) {
|
|
626
622
|
var _this$_targetFn;
|
|
627
623
|
this._lastRef = domNode;
|
|
628
|
-
(_this$_targetFn = this._targetFn) == null
|
|
624
|
+
(_this$_targetFn = this._targetFn) == null || _this$_targetFn.call(this, domNode);
|
|
629
625
|
}
|
|
630
626
|
}
|
|
631
627
|
};
|
|
@@ -674,7 +670,7 @@ function _modifyPosition({
|
|
|
674
670
|
const popperHeight = state.rects.popper.height + state.rects.reference.height;
|
|
675
671
|
const minHeight = document.documentElement.clientHeight;
|
|
676
672
|
if (minHeight < popperHeight && state.modifiersData.hide) {
|
|
677
|
-
state.modifiersData.hide =
|
|
673
|
+
state.modifiersData.hide = _extends({}, state.modifiersData.hide, {
|
|
678
674
|
isReferenceHidden: false
|
|
679
675
|
});
|
|
680
676
|
}
|
|
@@ -711,7 +707,7 @@ class TooltipPopper extends React__namespace.Component {
|
|
|
711
707
|
}
|
|
712
708
|
this._observer = new MutationObserver(() => {
|
|
713
709
|
var _this$_popperUpdate;
|
|
714
|
-
(_this$_popperUpdate = this._popperUpdate) == null
|
|
710
|
+
(_this$_popperUpdate = this._popperUpdate) == null || _this$_popperUpdate.call(this);
|
|
715
711
|
});
|
|
716
712
|
this._observer.observe(anchorElement, {
|
|
717
713
|
attributes: true,
|
|
@@ -721,7 +717,7 @@ class TooltipPopper extends React__namespace.Component {
|
|
|
721
717
|
}
|
|
722
718
|
componentWillUnmount() {
|
|
723
719
|
var _this$_observer;
|
|
724
|
-
(_this$_observer = this._observer) == null
|
|
720
|
+
(_this$_observer = this._observer) == null || _this$_observer.disconnect();
|
|
725
721
|
}
|
|
726
722
|
_renderPositionedContent(popperProps) {
|
|
727
723
|
const {
|
|
@@ -906,4 +902,4 @@ Tooltip.defaultProps = {
|
|
|
906
902
|
exports.TooltipContent = TooltipContent;
|
|
907
903
|
exports.TooltipPopper = TooltipPopper;
|
|
908
904
|
exports.TooltipTail = TooltipTail;
|
|
909
|
-
exports
|
|
905
|
+
exports.default = Tooltip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-tooltip",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
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.0",
|
|
17
|
+
"@khanacademy/wonder-blocks-layout": "3.1.0",
|
|
18
|
+
"@khanacademy/wonder-blocks-modal": "7.1.0",
|
|
19
|
+
"@khanacademy/wonder-blocks-tokens": "4.2.0",
|
|
20
|
+
"@khanacademy/wonder-blocks-typography": "3.1.0"
|
|
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.0"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
35
34
|
}
|
|
36
35
|
}
|