@khanacademy/wonder-blocks-tooltip 2.3.6 → 2.3.7
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 +12 -0
- package/dist/es/index.js +1 -15
- package/dist/index.js +5 -16
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-tooltip
|
|
2
2
|
|
|
3
|
+
## 2.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
8
|
+
- Updated dependencies [559e82d5]
|
|
9
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
10
|
+
- @khanacademy/wonder-blocks-layout@2.1.2
|
|
11
|
+
- @khanacademy/wonder-blocks-modal@5.1.8
|
|
12
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
13
|
+
- @khanacademy/wonder-blocks-typography@2.1.14
|
|
14
|
+
|
|
3
15
|
## 2.3.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Text as Text$1, View, UniqueIDProvider } from '@khanacademy/wonder-bloc
|
|
|
4
4
|
import { maybeGetPortalMountedModalHostElement } from '@khanacademy/wonder-blocks-modal';
|
|
5
5
|
import { StyleSheet, css } from 'aphrodite';
|
|
6
6
|
import { spacing, color } from '@khanacademy/wonder-blocks-tokens';
|
|
7
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
7
8
|
import { Strut } from '@khanacademy/wonder-blocks-layout';
|
|
8
9
|
import { HeadingSmall, LabelMedium } from '@khanacademy/wonder-blocks-typography';
|
|
9
10
|
import { Popper } from 'react-popper';
|
|
@@ -207,21 +208,6 @@ TooltipAnchor.defaultProps = {
|
|
|
207
208
|
};
|
|
208
209
|
TooltipAnchor.ariaContentId = "aria-content";
|
|
209
210
|
|
|
210
|
-
function _extends() {
|
|
211
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
212
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
213
|
-
var source = arguments[i];
|
|
214
|
-
for (var key in source) {
|
|
215
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
216
|
-
target[key] = source[key];
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
return target;
|
|
221
|
-
};
|
|
222
|
-
return _extends.apply(this, arguments);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
211
|
let tempIdCounter = 0;
|
|
226
212
|
class TooltipTail extends React.Component {
|
|
227
213
|
_calculateDimensionsFromPlacement() {
|
package/dist/index.js
CHANGED
|
@@ -8,10 +8,13 @@ var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
|
8
8
|
var wonderBlocksModal = require('@khanacademy/wonder-blocks-modal');
|
|
9
9
|
var aphrodite = require('aphrodite');
|
|
10
10
|
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
|
|
11
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
11
12
|
var wonderBlocksLayout = require('@khanacademy/wonder-blocks-layout');
|
|
12
13
|
var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
13
14
|
var reactPopper = require('react-popper');
|
|
14
15
|
|
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
|
+
|
|
15
18
|
function _interopNamespace(e) {
|
|
16
19
|
if (e && e.__esModule) return e;
|
|
17
20
|
var n = Object.create(null);
|
|
@@ -32,6 +35,7 @@ function _interopNamespace(e) {
|
|
|
32
35
|
|
|
33
36
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
37
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
38
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
35
39
|
|
|
36
40
|
class ActiveTracker {
|
|
37
41
|
constructor() {
|
|
@@ -232,21 +236,6 @@ TooltipAnchor.defaultProps = {
|
|
|
232
236
|
};
|
|
233
237
|
TooltipAnchor.ariaContentId = "aria-content";
|
|
234
238
|
|
|
235
|
-
function _extends() {
|
|
236
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
237
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
238
|
-
var source = arguments[i];
|
|
239
|
-
for (var key in source) {
|
|
240
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
241
|
-
target[key] = source[key];
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return target;
|
|
246
|
-
};
|
|
247
|
-
return _extends.apply(this, arguments);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
239
|
let tempIdCounter = 0;
|
|
251
240
|
class TooltipTail extends React__namespace.Component {
|
|
252
241
|
_calculateDimensionsFromPlacement() {
|
|
@@ -469,7 +458,7 @@ class TooltipTail extends React__namespace.Component {
|
|
|
469
458
|
updateRef
|
|
470
459
|
} = this.props;
|
|
471
460
|
return React__namespace.createElement(wonderBlocksCore.View, {
|
|
472
|
-
style: [styles$2.tailContainer,
|
|
461
|
+
style: [styles$2.tailContainer, _extends__default["default"]({}, offset), this._getContainerStyle()],
|
|
473
462
|
"data-placement": placement,
|
|
474
463
|
ref: updateRef
|
|
475
464
|
}, this._renderArrow());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-tooltip",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-core": "^6.4.
|
|
20
|
-
"@khanacademy/wonder-blocks-layout": "^2.1.
|
|
21
|
-
"@khanacademy/wonder-blocks-modal": "^5.1.
|
|
22
|
-
"@khanacademy/wonder-blocks-tokens": "^1.3.
|
|
23
|
-
"@khanacademy/wonder-blocks-typography": "^2.1.
|
|
19
|
+
"@khanacademy/wonder-blocks-core": "^6.4.3",
|
|
20
|
+
"@khanacademy/wonder-blocks-layout": "^2.1.2",
|
|
21
|
+
"@khanacademy/wonder-blocks-modal": "^5.1.8",
|
|
22
|
+
"@khanacademy/wonder-blocks-tokens": "^1.3.1",
|
|
23
|
+
"@khanacademy/wonder-blocks-typography": "^2.1.14"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@popperjs/core": "^2.10.1",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"react-popper": "^2.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@khanacademy/wb-dev-build-settings": "^1.0.
|
|
33
|
+
"@khanacademy/wb-dev-build-settings": "^1.0.1"
|
|
34
34
|
}
|
|
35
35
|
}
|