@khanacademy/wonder-blocks-tooltip 2.0.6 → 2.0.8
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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-tooltip
|
|
2
2
|
|
|
3
|
+
## 2.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @khanacademy/wonder-blocks-layout@2.0.8
|
|
8
|
+
- @khanacademy/wonder-blocks-modal@4.0.8
|
|
9
|
+
- @khanacademy/wonder-blocks-typography@2.0.8
|
|
10
|
+
|
|
11
|
+
## 2.0.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @khanacademy/wonder-blocks-layout@2.0.7
|
|
16
|
+
- @khanacademy/wonder-blocks-modal@4.0.7
|
|
17
|
+
- @khanacademy/wonder-blocks-typography@2.0.7
|
|
18
|
+
|
|
3
19
|
## 2.0.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -49,7 +49,7 @@ export type Props = {|
|
|
|
49
49
|
/**
|
|
50
50
|
* The `TooltipContent` element that will be rendered in the bubble.
|
|
51
51
|
*/
|
|
52
|
-
children: React.Element<
|
|
52
|
+
children: React.Element<typeof TooltipContent>,
|
|
53
53
|
onActiveChanged: (active: boolean) => mixed,
|
|
54
54
|
|},
|
|
55
55
|
...PopperElementProps,
|
|
@@ -11,15 +11,15 @@ declare type Props = {|
|
|
|
11
11
|
* The title for the tooltip content.
|
|
12
12
|
* Optional.
|
|
13
13
|
*/
|
|
14
|
-
title?: string | React.Element<
|
|
14
|
+
title?: string | React.Element<Typography>,
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The main content for a tooltip.
|
|
18
18
|
*/
|
|
19
19
|
children:
|
|
20
20
|
| string
|
|
21
|
-
| React.Element<
|
|
22
|
-
| Array<React.Element<
|
|
21
|
+
| React.Element<Typography>
|
|
22
|
+
| Array<React.Element<Typography>>,
|
|
23
23
|
|};
|
|
24
24
|
/**
|
|
25
25
|
* This component is used to provide the content that is to be rendered in the
|
|
@@ -23,12 +23,12 @@ declare type Props = {|
|
|
|
23
23
|
* The title of the tooltip.
|
|
24
24
|
* Optional.
|
|
25
25
|
*/
|
|
26
|
-
title?: string | React.Element<
|
|
26
|
+
title?: string | React.Element<Typography>,
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* The content to render in the tooltip.
|
|
30
30
|
*/
|
|
31
|
-
content: string | React.Element<
|
|
31
|
+
content: string | React.Element<typeof TooltipContent>,
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* The unique identifier to give to the tooltip. Provide this in cases where
|
|
@@ -143,9 +143,7 @@ declare export default class Tooltip extends React.Component<Props, State> {
|
|
|
143
143
|
state: State;
|
|
144
144
|
static ariaContentId: string;
|
|
145
145
|
_updateAnchorElement(ref?: Element | null): void;
|
|
146
|
-
_renderBubbleContent(): React.Element<
|
|
147
|
-
React.ElementProps<typeof TooltipContent>
|
|
148
|
-
>;
|
|
146
|
+
_renderBubbleContent(): React.Element<typeof TooltipContent>;
|
|
149
147
|
_renderPopper(ids?: IIdentifierFactory): React.Node;
|
|
150
148
|
_getHost(): Element | null | void;
|
|
151
149
|
_renderTooltipAnchor(ids?: IIdentifierFactory): React.Node;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-tooltip",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
19
|
"@khanacademy/wonder-blocks-color": "^2.0.1",
|
|
20
20
|
"@khanacademy/wonder-blocks-core": "^5.0.4",
|
|
21
|
-
"@khanacademy/wonder-blocks-layout": "^2.0.
|
|
22
|
-
"@khanacademy/wonder-blocks-modal": "^4.0.
|
|
21
|
+
"@khanacademy/wonder-blocks-layout": "^2.0.8",
|
|
22
|
+
"@khanacademy/wonder-blocks-modal": "^4.0.8",
|
|
23
23
|
"@khanacademy/wonder-blocks-spacing": "^4.0.1",
|
|
24
|
-
"@khanacademy/wonder-blocks-typography": "^2.0.
|
|
24
|
+
"@khanacademy/wonder-blocks-typography": "^2.0.8"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@popperjs/core": "^2.10.1",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"react-popper": "^2.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"wb-dev-build-settings": "^0.9.
|
|
34
|
+
"wb-dev-build-settings": "^0.9.7"
|
|
35
35
|
}
|
|
36
36
|
}
|