@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 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
@@ -40,5 +40,5 @@ declare type DefaultProps = {
40
40
  */
41
41
  declare export default class CloseButton extends React.Component<Props> {
42
42
  static defaultProps: DefaultProps;
43
- render(): React.Element<>;
43
+ render(): React.Element<any>;
44
44
  }
@@ -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
  }
@@ -50,5 +50,5 @@ declare type Props = {
50
50
  */
51
51
  declare export default class PopoverAnchor extends React.Component<Props> {
52
52
  componentDidMount(): void;
53
- render(): React.Element<>;
53
+ render(): React.Element<any>;
54
54
  }
@@ -72,5 +72,5 @@ declare type DefaultProps = {
72
72
  */
73
73
  declare export default class PopoverContentCore extends React.Component<Props> {
74
74
  static defaultProps: DefaultProps;
75
- render(): React.Element<>;
75
+ render(): React.Element<any>;
76
76
  }
@@ -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
  }
@@ -52,5 +52,5 @@ declare type Props = {
52
52
  */
53
53
  declare export default class PopoverDialog extends React.Component<Props> {
54
54
  componentDidUpdate(prevProps: Props): void;
55
- render(): React.Element<>;
55
+ render(): React.Element<any>;
56
56
  }
@@ -42,5 +42,5 @@ declare export default class PopoverEventListener
42
42
  componentWillUnmount(): void;
43
43
  _handleKeyup: (e: KeyboardEvent) => void;
44
44
  _handleClick: (e: MouseEvent) => void;
45
- render(): React.Element<> | null;
45
+ render(): React.Element<any> | null;
46
46
  }
@@ -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": "1.1.33",
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": "^1.2.3",
20
- "@khanacademy/wonder-blocks-core": "^4.9.1",
21
- "@khanacademy/wonder-blocks-icon": "^1.2.40",
22
- "@khanacademy/wonder-blocks-icon-button": "^3.4.24",
23
- "@khanacademy/wonder-blocks-modal": "^3.0.10",
24
- "@khanacademy/wonder-blocks-spacing": "^3.0.7",
25
- "@khanacademy/wonder-blocks-tooltip": "^1.4.9",
26
- "@khanacademy/wonder-blocks-typography": "^1.1.41"
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.7.4"
36
+ "wb-dev-build-settings": "^0.8.0"
37
37
  }
38
38
  }