@khanacademy/wonder-blocks-popover 1.1.33 → 2.0.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 +18 -0
- package/dist/components/close-button.js.flow +1 -1
- package/dist/components/focus-manager.js.flow +1 -1
- package/dist/components/initial-focus.js.flow +1 -1
- package/dist/components/popover-anchor.js.flow +1 -1
- package/dist/components/popover-content-core.js.flow +1 -1
- package/dist/components/popover-content.js.flow +5 -5
- package/dist/components/popover-dialog.js.flow +1 -1
- package/dist/components/popover-event-listener.js.flow +1 -1
- package/dist/components/popover.js.flow +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-popover
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1ca4d7e3]
|
|
12
|
+
- @khanacademy/wonder-blocks-color@2.0.0
|
|
13
|
+
- @khanacademy/wonder-blocks-core@5.0.0
|
|
14
|
+
- @khanacademy/wonder-blocks-icon@2.0.0
|
|
15
|
+
- @khanacademy/wonder-blocks-icon-button@4.0.0
|
|
16
|
+
- @khanacademy/wonder-blocks-modal@4.0.0
|
|
17
|
+
- @khanacademy/wonder-blocks-spacing@4.0.0
|
|
18
|
+
- @khanacademy/wonder-blocks-tooltip@2.0.0
|
|
19
|
+
- @khanacademy/wonder-blocks-typography@2.0.0
|
|
20
|
+
|
|
3
21
|
## 1.1.33
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -102,5 +102,5 @@ declare export default class FocusManager extends React.Component<Props> {
|
|
|
102
102
|
* the focus is redirected to the last focusable element inside the popover.
|
|
103
103
|
*/
|
|
104
104
|
handleKeydownNextFocusableElement: (e: KeyboardEvent) => void;
|
|
105
|
-
render(): React.Element
|
|
105
|
+
render(): React.Element<any>;
|
|
106
106
|
}
|
|
@@ -40,5 +40,5 @@ declare export default class InitialFocus extends React.Component<Props> {
|
|
|
40
40
|
* Returns the first focusable element found inside the children
|
|
41
41
|
*/
|
|
42
42
|
maybeGetFirstFocusableElement(node: HTMLElement): HTMLElement | null;
|
|
43
|
-
render(): React.Element
|
|
43
|
+
render(): React.Element<any>;
|
|
44
44
|
}
|
|
@@ -34,7 +34,7 @@ declare type Props = {
|
|
|
34
34
|
| ((arg1: {
|
|
35
35
|
close: () => mixed,
|
|
36
36
|
...
|
|
37
|
-
}) => React.Element
|
|
37
|
+
}) => React.Element<any>),
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Close button label for use in screen readers
|
|
@@ -110,8 +110,8 @@ declare export default class PopoverContent extends React.Component<Props> {
|
|
|
110
110
|
* Runtime validation in case we try to use an invalid shape
|
|
111
111
|
*/
|
|
112
112
|
validateProps(x: PopoverContextType): void;
|
|
113
|
-
maybeRenderImage: (context: PopoverContextType) => React.Element
|
|
114
|
-
maybeRenderIcon: () => React.Element
|
|
115
|
-
maybeRenderActions: (close: () => mixed) => React.Element
|
|
116
|
-
render(): React.Element
|
|
113
|
+
maybeRenderImage: (context: PopoverContextType) => React.Element<any>;
|
|
114
|
+
maybeRenderIcon: () => React.Element<any>;
|
|
115
|
+
maybeRenderActions: (close: () => mixed) => React.Element<any>;
|
|
116
|
+
render(): React.Element<any>;
|
|
117
117
|
}
|
|
@@ -178,5 +178,5 @@ declare export default class Popover extends React.Component<Props, State> {
|
|
|
178
178
|
renderContent(): PopoverContents;
|
|
179
179
|
renderPopper(uniqueId: string): React.Node;
|
|
180
180
|
getHost(): Element | null | void;
|
|
181
|
-
render(): React.Element
|
|
181
|
+
render(): React.Element<any>;
|
|
182
182
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-popover",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-color": "^
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "^
|
|
21
|
-
"@khanacademy/wonder-blocks-icon": "^
|
|
22
|
-
"@khanacademy/wonder-blocks-icon-button": "^
|
|
23
|
-
"@khanacademy/wonder-blocks-modal": "^
|
|
24
|
-
"@khanacademy/wonder-blocks-spacing": "^
|
|
25
|
-
"@khanacademy/wonder-blocks-tooltip": "^
|
|
26
|
-
"@khanacademy/wonder-blocks-typography": "^
|
|
19
|
+
"@khanacademy/wonder-blocks-color": "^2.0.0",
|
|
20
|
+
"@khanacademy/wonder-blocks-core": "^5.0.0",
|
|
21
|
+
"@khanacademy/wonder-blocks-icon": "^2.0.0",
|
|
22
|
+
"@khanacademy/wonder-blocks-icon-button": "^4.0.0",
|
|
23
|
+
"@khanacademy/wonder-blocks-modal": "^4.0.0",
|
|
24
|
+
"@khanacademy/wonder-blocks-spacing": "^4.0.0",
|
|
25
|
+
"@khanacademy/wonder-blocks-tooltip": "^2.0.0",
|
|
26
|
+
"@khanacademy/wonder-blocks-typography": "^2.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@popperjs/core": "^2.10.1",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"react-popper": "^2.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"wb-dev-build-settings": "^0.
|
|
36
|
+
"wb-dev-build-settings": "^0.8.0"
|
|
37
37
|
}
|
|
38
38
|
}
|