@khanacademy/wonder-blocks-popover 6.0.7 → 6.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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # @khanacademy/wonder-blocks-popover
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3be8b60: Popover: Add optional `initialFocusDelay` prop. This sets a delay before the first focusable element is focused when a Popover is opened
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [28fa0c0]
12
+ - Updated dependencies [28fa0c0]
13
+ - Updated dependencies [c9a0147]
14
+ - @khanacademy/wonder-blocks-core@12.3.0
15
+ - @khanacademy/wonder-blocks-icon-button@9.0.6
16
+ - @khanacademy/wonder-blocks-modal@7.1.14
17
+ - @khanacademy/wonder-blocks-tooltip@4.1.14
18
+ - @khanacademy/wonder-blocks-typography@3.2.1
19
+
20
+ ## 6.0.8
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [b9e4946]
25
+ - Updated dependencies [9bb3cf2]
26
+ - Updated dependencies [b9e4946]
27
+ - @khanacademy/wonder-blocks-tokens@10.0.0
28
+ - @khanacademy/wonder-blocks-tooltip@4.1.13
29
+ - @khanacademy/wonder-blocks-typography@3.2.0
30
+ - @khanacademy/wonder-blocks-icon-button@9.0.5
31
+ - @khanacademy/wonder-blocks-modal@7.1.13
32
+ - @khanacademy/wonder-blocks-styles@0.2.7
33
+ - @khanacademy/wonder-blocks-core@12.2.1
34
+
3
35
  ## 6.0.7
4
36
 
5
37
  ### Patch Changes
@@ -13,6 +13,13 @@ type Props = {
13
13
  * When not set, the first tabbable element within the dialog will be used.
14
14
  */
15
15
  initialFocusId?: string;
16
+ /**
17
+ * The delay in milliseconds before the initial focus is set.
18
+ * This is to ensure that any active event listeners have time to finish.
19
+ *
20
+ * Defaults to 0.
21
+ */
22
+ initialFocusDelay?: number;
16
23
  };
17
24
  /**
18
25
  * This component ensures that focus flows correctly when the popover is open.
@@ -9,6 +9,13 @@ type Props = {
9
9
  * When not set, the first tabbable element within the component will be used.
10
10
  */
11
11
  initialFocusId?: string;
12
+ /**
13
+ * The delay in milliseconds before the initial focus is set.
14
+ * This is to ensure that any active event listeners have time to finish.
15
+ *
16
+ * Defaults to 0.
17
+ */
18
+ delay?: number;
12
19
  };
13
20
  /**
14
21
  * This component finds which element (from within the children) needs to
@@ -62,6 +62,13 @@ type Props = AriaProps & Readonly<{
62
62
  * popover content will be used.
63
63
  */
64
64
  initialFocusId?: string;
65
+ /**
66
+ * The delay in milliseconds before the initial focus is set.
67
+ * This allows any active event listeners to finish before focusing.
68
+ *
69
+ * Defaults to 0.
70
+ */
71
+ initialFocusDelay?: number;
65
72
  /**
66
73
  * Renders the popover when true, renders nothing when false.
67
74
  *